c5ebe174ac0e4b75622bf7b1b0f9d3aa359e931c
[gnulib.git] / ChangeLog
1 2011-09-11  Bruno Haible  <bruno@clisp.org>
2
3         C++ tests for module 'sys_types'.
4         * modules/sys_types-c++-tests: New file.
5         * tests/test-sys_types-c++.cc: New file.
6
7         Tests for module 'sys_types'.
8         * modules/sys_types-tests: New file.
9         * tests/test-sys_types.c: New file.
10
11         New module 'sys_types'.
12         * lib/sys_types.in.h: New file.
13         * m4/sys_types_h.m4: New file.
14         * modules/sys_types: New file.
15         * doc/posix-headers/sys_types.texi: Mention the new module and the
16         size_t problem on MSVC 9.
17
18 2011-09-11  Bruno Haible  <bruno@clisp.org>
19
20         Support for MSVC compiler: Avoid division by a literal 0.
21         * lib/math.in.h (NAN): Define through a function call also on MSVC.
22         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
23         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
24         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
25         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
26         * tests/infinity.h: New file.
27         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
28         on MSVC.
29         * tests/test-ceilf1.c: Include infinity.h.
30         (main): Use Infinityf.
31         * tests/test-ceil1.c: Include infinity.h.
32         (main): Use Infinityd.
33         * tests/test-ceill.c: Include infinity.h.
34         (main): Use Infinityl.
35         * tests/test-dprintf-posix.c: Include infinity.h.
36         (test_function): Use Infinityd.
37         * tests/test-floorf1.c: Include infinity.h.
38         (main): Use Infinityf.
39         * tests/test-floor1.c: Include infinity.h.
40         (main): Use Infinityd.
41         * tests/test-floorl.c: Include infinity.h.
42         (main): Use Infinityl.
43         * tests/test-fprintf-posix.c: Include infinity.h.
44         (test_function): Use Infinityd.
45         * tests/test-frexp.c: Include infinity.h.
46         (main): Use Infinityd.
47         * tests/test-frexpl.c: Include infinity.h.
48         (main): Use Infinityl.
49         * tests/test-isfinite.c: Include infinity.h.
50         (test_isfinitef): Use Infinityf.
51         (test_isfinited): Use Infinityd.
52         (test_isfinitel): Use Infinityl.
53         * tests/test-isinf.c: Include infinity.h.
54         (test_isinff): Use Infinityf.
55         (test_isinfd): Use Infinityd.
56         (test_isinfl): Use Infinityl.
57         * tests/test-isnan.c: Include infinity.h.
58         (test_float): Use Infinityf.
59         (test_double): Use Infinityd.
60         (test_long_double): Use Infinityl.
61         * tests/test-isnanf.h: Include infinity.h.
62         (main): Use Infinityf.
63         * tests/test-isnand.h: Include infinity.h.
64         (main): Use Infinityd.
65         * tests/test-isnanl.h: Include infinity.h.
66         (main): Use Infinityl.
67         * tests/test-ldexpl.c: Include infinity.h.
68         (main): Use Infinityl.
69         * tests/test-printf-posix.h: Include infinity.h.
70         (test_function): Use Infinityd.
71         * tests/test-roundf1.c: Include infinity.h.
72         (main): Use Infinityf.
73         * tests/test-round1.c: Include infinity.h.
74         (main): Use Infinityd.
75         * tests/test-roundl.c: Include infinity.h.
76         (main): Use Infinityl.
77         * tests/test-signbit.c: Include infinity.h.
78         (test_signbitf): Use Infinityf.
79         (test_signbitd): Use Infinityd.
80         (test_signbitl): Use Infinityl.
81         * tests/test-snprintf-posix.h: Include infinity.h.
82         (test_function): Use Infinityd, Infinityl.
83         * tests/test-sprintf-posix.h: Include infinity.h.
84         (test_function): Use Infinityd, Infinityl.
85         * tests/test-truncf1.c: Include infinity.h.
86         (main): Use Infinityf.
87         * tests/test-trunc1.c: Include infinity.h.
88         (main): Use Infinityd.
89         * tests/test-truncl.c: Include infinity.h.
90         (main): Use Infinityl.
91         * tests/test-vasnprintf-posix.c: Include infinity.h.
92         (test_function): Use Infinityd, Infinityl.
93         * tests/test-vasprintf-posix.c: Include infinity.h.
94         (test_function): Use Infinityd, Infinityl.
95         * modules/ceilf-tests (Files): Add tests/infinity.h.
96         * modules/ceil-tests (Files): Likewise.
97         * modules/ceill-tests (Files): Likewise.
98         * modules/dprintf-posix-tests (Files): Likewise.
99         * modules/floorf-tests (Files): Likewise.
100         * modules/floor-tests (Files): Likewise.
101         * modules/floorl-tests (Files): Likewise.
102         * modules/fprintf-posix-tests (Files): Likewise.
103         * modules/frexp-tests (Files): Likewise.
104         * modules/frexp-nolibm-tests (Files): Likewise.
105         * modules/frexpl-tests (Files): Likewise.
106         * modules/frexpl-nolibm-tests (Files): Likewise.
107         * modules/isfinite-tests (Files): Likewise.
108         * modules/isinf-tests (Files): Likewise.
109         * modules/isnan-tests (Files): Likewise.
110         * modules/isnanf-tests (Files): Likewise.
111         * modules/isnanf-nolibm-tests (Files): Likewise.
112         * modules/isnand-tests (Files): Likewise.
113         * modules/isnand-nolibm-tests (Files): Likewise.
114         * modules/isnanl-tests (Files): Likewise.
115         * modules/isnanl-nolibm-tests (Files): Likewise.
116         * modules/ldexpl-tests (Files): Likewise.
117         * modules/printf-posix-tests (Files): Likewise.
118         * modules/roundf-tests (Files): Likewise.
119         * modules/round-tests (Files): Likewise.
120         * modules/roundl-tests (Files): Likewise.
121         * modules/signbit-tests (Files): Likewise.
122         * modules/snprintf-posix-tests (Files): Likewise.
123         * modules/sprintf-posix-tests (Files): Likewise.
124         * modules/truncf-tests (Files): Likewise.
125         * modules/trunc-tests (Files): Likewise.
126         * modules/truncl-tests (Files): Likewise.
127         * modules/vasnprintf-posix-tests (Files): Likewise.
128         * modules/vasprintf-posix-tests (Files): Likewise.
129         * modules/vdprintf-posix-tests (Files): Likewise.
130         * modules/vfprintf-posix-tests (Files): Likewise.
131         * modules/vprintf-posix-tests (Files): Likewise.
132         * modules/vsnprintf-posix-tests (Files): Likewise.
133         * modules/vsprintf-posix-tests (Files): Likewise.
134         * modules/xprintf-posix-tests (Files): Likewise.
135
136 2011-09-11  Bruno Haible  <bruno@clisp.org>
137
138         Ensure pid_t gets defined.
139         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
140         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
141         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
142         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
143         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
144         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
145         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
146         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
147         * tests/test-fcntl-h.c: Check that pid_t is defined.
148         * tests/test-sched.c: Likewise.
149         * tests/test-termios.c: Likewise.
150         * tests/test-time.c: Likewise.
151         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
152         * doc/posix-headers/signal.texi: Likewise.
153         * doc/posix-headers/sys_types.texi: Likewise.
154         * doc/posix-headers/time.texi: Likewise.
155
156 2011-09-11  Bruno Haible  <bruno@clisp.org>
157
158         acl: Fix compilation on Solaris 10 (older version).
159         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
160         of ACE_EVERYONE.
161         * lib/set-mode-acl.c (qset_acl): Likewise.
162         Reported by Christian Jullien <eligis@orange.fr>.
163
164 2011-09-10  Bruno Haible  <bruno@clisp.org>
165
166         iconv, unsetenv: Add support for MSVC compiler.
167         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
168         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
169
170 2011-09-10  Bruno Haible  <bruno@clisp.org>
171
172         *printf: Add support for MSVC compiler.
173         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
174         handles the exception caused by the %n directive. When cross-compiling,
175         guess no on native Windows.
176         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
177         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
178         emulate it through vsnprintf.
179         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
180         * doc/posix-functions/dprintf.texi: Update documentation regarding
181         MSVC 9.
182         * doc/posix-functions/fprintf.texi: Likewise.
183         * doc/posix-functions/printf.texi: Likewise.
184         * doc/posix-functions/snprintf.texi: Likewise.
185         * doc/posix-functions/sprintf.texi: Likewise.
186         * doc/posix-functions/swprintf.texi: Likewise.
187         * doc/posix-functions/vdprintf.texi: Likewise.
188         * doc/posix-functions/vfprintf.texi: Likewise.
189         * doc/posix-functions/vprintf.texi: Likewise.
190         * doc/posix-functions/vsnprintf.texi: Likewise.
191         * doc/posix-functions/vsprintf.texi: Likewise.
192         * doc/glibc-functions/asprintf.texi: Likewise.
193         * doc/glibc-functions/obstack_printf.texi: Likewise.
194         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
195         * doc/glibc-functions/vasprintf.texi: Likewise.
196
197 2011-09-10  Bruno Haible  <bruno@clisp.org>
198
199         nocrash: Add support for native Windows.
200         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
201
202 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
203             Bruno Haible  <bruno@clisp.org>
204
205         absolute-header, include-next: Add support for MSVC compiler.
206         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
207         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
208         directory separator in #line directives.
209         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
210         recognize also backslash as directory separator in #line directives.
211
212 2011-09-08  Jim Meyering  <meyering@redhat.com>
213
214         maint.mk: mark the post-release commit log with "maint: " prefix
215         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
216         one-line commit-log summary.
217
218 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
219             Bruno Haible  <bruno@clisp.org>
220
221         Doc about crypt functions.
222         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
223         systems.
224         * doc/posix-functions/encrypt.texi: Likewise.
225         * doc/posix-functions/setkey.texi: Likewise.
226
227 2011-09-08  Simon Josefsson  <simon@josefsson.org>
228
229         * lib/gc.h: Fix copyright header.
230
231 2011-09-07  Bruno Haible  <bruno@clisp.org>
232
233         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
234         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
235         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
236
237 2011-09-07  Bruno Haible  <bruno@clisp.org>
238
239         openat: Work around compilation error with OSF/1 5.1 DTK cc.
240         * lib/fopen.c: Use different syntax for include of <stdio.h>.
241         * lib/freopen.c: Likewise.
242         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
243         * lib/lstat.c: Likewise.
244         * lib/stat.c: Likewise.
245         * lib/open.c: Use different syntax for include of <fcntl.h>.
246         * lib/openat.c: Include fcntl.h again, explicitly.
247
248 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
249
250         parse-datetime: document the newly accepted format
251         * doc/parse-datetime.texi (Combined date and time of day items):
252         New section.
253
254 2011-09-06  Bruno Haible  <bruno@clisp.org>
255
256         acl: Fix a test failure on newer Solaris 10 with ZFS.
257         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
258         ENOSYS as no ACL.
259         Reported by Jim Meyering.
260
261 2011-09-06  Bruno Haible  <bruno@clisp.org>
262
263         acl: Update for AIX >= 5.3 with NFS.
264         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
265         ENOSYS as no ACL.
266
267         acl: Fix a test failure on AIX >= 5.3 with NFS.
268         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
269         as no ACL.
270
271 2011-09-06  Bruno Haible  <bruno@clisp.org>
272
273         acl: Fix a test failure on IRIX 6.5 with NFS.
274         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
275         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
276         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
277         * lib/copy-acl.c (qcopy_acl): Likewise.
278
279 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
280
281         openat: port to AIX 7.1 with large files
282         AIX 7.1 does a "#define openat open64at" if large files are in use,
283         so we can't simply #undef openat.  Use the orig_openat trick (similar
284         to orig_open in lib/open.c) to work around the problem.  Problem
285         reported by Kevin Brott for GNU tar, in the thread containing
286         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
287         * lib/openat.c (__need_system_fcntl_h): Define first.
288         Include <fcntl.h> and <sys/types.h> before undefining.
289         (orig_openat) [HAVE_OPENAT]: New inline function.
290         (openat) [HAVE_OPENAT]: Do not undef.
291         (rpl_openat): Use orig_openat, not openat.
292
293 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
294             Bruno Haible  <bruno@clisp.org>
295
296         acl: Avoid errors on NonStop Kernel.
297         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
298         ENOTSUP errors.
299
300 2011-09-05  Bruno Haible  <bruno@clisp.org>
301
302         acl: Clean up Solaris code.
303         * lib/acl-internal.h: Remove no-op #if.
304         * lib/file-has-acl.c: Likewise.
305         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
306         * lib/copy-acl.c (qcopy_acl): Likewise.
307
308 2011-09-05  Bruno Haible  <bruno@clisp.org>
309
310         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
311         binaries built on the original Solaris 10.
312         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
313         trivial.
314
315 2011-09-05  Bruno Haible  <bruno@clisp.org>
316
317         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
318         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
319         10.
320         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
321         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
322         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
323         instead of acl_get, facl_get, acl_set, facl_set.
324
325 2011-09-05  Bruno Haible  <bruno@clisp.org>
326
327         copy-file: Try unit tests on more file systems.
328         * tests/test-copy-file-1.sh: New file.
329         * tests/test-copy-file-2.sh: New file.
330         * modules/copy-file-tests (Files): Add them.
331         (Makefile.am): Add them to TESTS.
332
333         acl: Try unit tests on more file systems.
334         * tests/test-file-has-acl-1.sh: New file.
335         * tests/test-file-has-acl-2.sh: New file.
336         * tests/test-set-mode-acl-1.sh: New file.
337         * tests/test-set-mode-acl-2.sh: New file.
338         * tests/test-copy-acl-1.sh: New file.
339         * tests/test-copy-acl-2.sh: New file.
340         * modules/acl-tests (Files): Add them.
341         (Makefile.am): Add them to TESTS.
342
343 2011-09-04  Bruno Haible  <bruno@clisp.org>
344
345         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
346         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
347         10.
348         (OLD_ALLOW, OLD_DENY): New macros.
349         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
350         ACE_ACCESS_ALLOWED_ACE_TYPE.
351         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
352         ACE_ACCESS_DENIED_ACE_TYPE.
353         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
354         (NEW_ACE_EXECUTE): Fix value.
355         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
356         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
357         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
358         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
359         NEW_ACE_SYNCHRONIZE): New macros.
360         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
361         instead of acl_fromtext, acl_set, facl_set.
362         Fixes a coreutils/tests/cp/perm failure.
363
364 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
365
366         openat: test for fstatat (..., 0) bug
367         Further testing with tar suggests that fstatat (..., 0)
368         does not work in general, on AIX 7.1; see
369         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
370         So, give up entirely on AIX 7.1's fstatat, and fall back on our
371         replacement fstatat (which is what older AIX releases were using
372         anyway).
373         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
374         use is now changed to orig_fstatat.  This was probably the right
375         thing to do anyway.
376         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
377         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
378         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
379         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
380         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
381         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
382         if the bug is found.
383
384         openat: test for fstatat (AT_FDCWD, ..., 0) bug
385         This tests for another fstatat bug on AIX 7.1:
386         fstatat (AT_FDCWD, ..., 0) does not work.  See
387         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
388         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
389         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
390         (rpl_fstatat): Adjust so that it works around either (or both)
391         bugs if present.
392         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
393
394 2011-09-03  Karl Berry  <karl@gnu.org>
395
396         * doc/regex.texi (Character Class Operators): Avoid literal ":"
397         in index entries.
398
399 2011-09-02  Bruno Haible  <bruno@clisp.org>
400
401         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
402         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
403         values of AR, ARFLAGS, RANLIB.
404         Reported by John W. Eaton <jwe@gnu.org> for Octave.
405
406 2011-09-02  Bruno Haible  <bruno@clisp.org>
407
408         Find 'ar' program that fits with --host argument.
409         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
410
411 2011-09-02  Bruno Haible  <bruno@clisp.org>
412
413         tests: init.sh: Support any non-GNU diff.
414         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
415         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
416         Solaris 8.
417
418 2011-09-02  Bruno Haible  <bruno@clisp.org>
419
420         tests: init.sh: work also with any non-GNU diff that supports -u
421         * tests/init.sh: Relax check for diff -u support.
422         Rather than checking for GNU diff via --version, simply check
423         for support for -u itself.  Useful at least on OpenBSD 4.9,
424         AIX 7.1, IRIX 6.5, and Solaris 10.
425
426 2011-09-01  Bruno Haible  <bruno@clisp.org>
427
428         strtoimax, strtoumax: Document problem on HP-UX 11.
429         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
430         * doc/posix-functions/strtoumax.texi: Likewise.
431
432 2011-09-01  Bruno Haible  <bruno@clisp.org>
433
434         strtoumax: Avoid link error on OSF/1 with DTK cc.
435         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
436         defined as a function.
437         * modules/strtoumax (Depends-on, configure.ac): Test only whether
438         strtoumax is defined, not whether it is declared.
439
440 2011-09-01  Bruno Haible  <bruno@clisp.org>
441
442         strtoimax: Avoid link error on OSF/1 with DTK cc.
443         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
444         defined as a function.
445         * modules/strtoimax (Depends-on, configure.ac): Test only whether
446         strtoimax is defined, not whether it is declared.
447
448 2011-09-01  Bruno Haible  <bruno@clisp.org>
449
450         imaxdiv: Avoid link error on OSF/1 with DTK cc.
451         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
452         as a function.
453         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
454         whether it is declared.
455
456 2011-09-01  Bruno Haible  <bruno@clisp.org>
457
458         imaxabs: Avoid link error on OSF/1 with DTK cc.
459         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
460         as a function.
461         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
462         whether it is declared.
463
464 2011-09-01  Bruno Haible  <bruno@clisp.org>
465
466         Tests for module 'strtoumax'.
467         * modules/strtoumax-tests: New file.
468         * tests/test-strtoumax.c: New file.
469
470         Tests for module 'strtoimax'.
471         * modules/strtoimax-tests: New file.
472         * tests/test-strtoimax.c: New file.
473
474         Tests for module 'imaxdiv'.
475         * modules/imaxdiv-tests: New file.
476         * tests/test-imaxdiv.c: New file.
477
478         Tests for module 'imaxabs'.
479         * modules/imaxabs-tests: New file.
480         * tests/test-imaxabs.c: New file.
481
482 2011-09-01  Bruno Haible  <bruno@clisp.org>
483
484         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
485         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
486         pthread_create.
487
488 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
489
490         openat: work around AIX 7.1 fstatat issue
491         This should fix the problem that was not properly fixed
492         in the previous change, dated 2011-08-30.
493         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
494         __need_system_stat_h defined.
495         (orig_fstatat) [HAVE_FSTATAT]: New function.
496         (rpl_fstatat): Go back to the old way of doing things,
497         except call orig_fstatat instead of fstatat.
498         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
499         Remove unnecessary check whether fstatat fills in st_size etc.
500
501 2011-09-01  Bruno Haible  <bruno@clisp.org>
502
503         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
504         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
505         just include the system's header.
506
507 2011-08-31  Jim Meyering  <meyering@redhat.com>
508
509         tests: avoid spurious assertion failure in test-float.c on ppc64
510         * tests/test-float.c (test_long_double): Comment out an assertion,
511         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
512         with gcc-4.4.4.
513
514         maint: indent with spaces, not TABs
515         I need to get in the habit of running gnulib's "make check".
516         Both of these would have been caught.
517         * m4/largefile.m4: Indent with spaces, not TABs.
518         * lib/parse-datetime.y (iso_8601_time): Likewise.
519         Spotted by Pádraig Brady.
520
521         test-parse-datetime.c: accommodate a relatively strict gcc warning
522         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
523         to avoid a warning from gcc's -Werror=missing-declarations.
524         Insert a few spaces-before-funcall-parenthesis.
525
526 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
527
528         parse-datetime: accept ISO 8601 date and time rep with "T" separator
529         The parser now accepts ISO 8601 date-time strings with "T" as the
530         separator.  It has long parsed dates like "2004-02-29 16:21:42"
531         with a space between the date and time strings.  Now it also parses
532         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
533         variants like "2004-02-29T16:21:42.333-07:00"
534         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
535         of day representation using the 'T' separator character.
536         * doc/parse-datetime.texi (General date syntax): replace use of
537         deprecated --iso-8601 option with --rfc-3339 in example of date
538         command output formats that can be parsed.
539         * tests/test-parse-datetime.c (tm_diff): New function, taken from
540         lib/parse-datetime.y.
541         (gmt_offset): New function.
542         (main): Add additional test cases to validate ISO8601 extended
543         date and time of day parsing.
544
545 2011-08-31  Bruno Haible  <bruno@clisp.org>
546
547         freopen: Documentation.
548         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
549         name.
550         Reported by Claudio Bley <claudio.bley@gmail.com>.
551
552 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
553
554         freopen: Don't crash if the filename argument is NULL.
555         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
556         NULL.
557
558 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
559
560         openat: work around AIX 7.1 fstatat bug
561         Problem reported by Kevin Brott for GNU tar, in the thread containing
562         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
563         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
564         FSTATAT_ST_SIZE_ETC_BROKEN.
565         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
566         rpl_fstatat.
567         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
568         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
569         AC_CHECK_FUNCS_ONCE for fstatat.
570         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
571         fchmodat, mkdirat, openat and unlinkat.
572
573 2011-08-30  Bruno Haible  <bruno@clisp.org>
574
575         Avoid endless recursions if config.h includes some header files.
576         * lib/fopen.c (__need_FILE): Define already before including config.h.
577         * lib/freopen.c (__need_FILE): Likewise.
578         * lib/open.c (__need_system_fcntl_h): Likewise.
579         * lib/stat.c (__need_system_sys_stat_h): Likewise.
580         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
581         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
582
583 2011-08-25  Karl Berry  <karl@gnu.org>
584
585         * config/srclist.txt (ylwrap): new try.
586         * build-aux/ylwrap: new file.
587
588 2011-08-23  Bruno Haible  <bruno@clisp.org>
589
590         tmpdir: Use a good default directory on native Windows.
591         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
592         (P_tmpdir): Default to _P_tmpdir on native Windows.
593         (path_search): On native Windows, try the value returned by GetTempPath
594         before trying P_tmpdir.
595         * modules/tmpdir (Depends-on): Add pathmax.
596         Suggested by John Darrington <john@darrington.wattle.id.au>.
597
598 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
599
600         doc: fix typo in README-release
601         * top/README-release: Capitalize first word of a sentence.
602
603 2011-08-19  Jim Meyering  <meyering@redhat.com>
604
605         fts: do not exhaust memory when processing million-entry directories
606         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
607         directory would require about 256*N bytes of memory.  Thus, it was
608         easy to construct a directory too large to be processed by any of
609         those tools.  With this change, fts' maximum memory utilization is
610         now limited to around 30MB.
611         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
612         (fts_read): When we've processed the final entry (i.e., when
613         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
614         using the parent entry to read any remaining entries.  Dispatch
615         depending on what fts_build returns:
616         - NULL+stop, aka failure: stop
617         - NULL otherwise: move up in the dir hierarchy
618         - non-NULL: handle this new entry
619         (fts_build): Declare and use new local, continue_readdir.
620         Prepare to be called from fts_read, when the entries
621         from a partially-read directory have just been exhausted.
622         In that case, we'll skip the opendir and instead use the parent's
623         fts_dirp and derive dir_fd from that.
624         Finally, in the readdir loop, if we read max_entries entries,
625         exit the loop ensuring *not* to call closedir.  This is required
626         so that fts_dirp can be reused on a subsequent call.
627         Prompted by Ben England's report of memory exhaustion in find
628         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
629
630         maint: fts: move decl of `dp' down into while loop; split a long line
631         * lib/fts.c (fts_build): No semantic change.
632
633         fts: add/use new struct member, fts_dirp
634         We are about to use this to manage any directory with
635         too many entries to read all of them into memory at once.
636         To do that, we'll need to save the DIR* pointer in each
637         affected FTSENT struct.
638         * lib/fts_.h: Include <dirent.h>.
639         (struct FTSENT) [fts_dirp]: New member.
640         * lib/fts.c (closedir_and_clear): Define.
641         Use it in place of closedir so that we are sure to
642         clear the new fts_dirp member when done with it.
643         (fts_alloc): Initialize the new member.
644         (fts_lfree): Free, if needed.
645
646         maint: fts: give __opendir2 a new parameter and rename
647         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
648         than surreptitiously using sole caller's "dir_fd".
649         (fts_opendir): Rename from __opendir2.
650
651         maint: fts.c: remove __opendir2's now-unused parameter, oflag
652         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
653
654         maint: fts.c: correct off-by-one indentation
655         * lib/fts.c (fts_build): Correct indentation, change style
656         of a couple of block comments, and bracing style.
657
658         maint: fts.c: move __opendir2 #define "up" out of function body
659         * lib/fts.c (__opendir2): Move "up".  No semantic change.
660
661         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
662         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
663         out for a long time and besides was useful only on BSD systems.
664
665 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
666
667         regex: port to Stratus OpenVOS
668         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
669         define to empty, rather than attempting nonportable optimizations.
670         Problem reported by Paul Green in:
671         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
672         and fix suggested by Eric Blake in:
673         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
674
675 2011-08-17  Eric Blake  <eblake@redhat.com>
676
677         getcwd: fix test failures on mingw
678         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
679         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
680         test if long directory cannot be created, and allow mingw errno.
681
682         getcwd-lgpl: fix m4 to match relaxed test for BSD
683         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
684         (gl_FUNC_GETCWD_SIGNATURE): New macro.
685         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
686         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
687         signature problem.
688
689         getcwd: fix compilation on mingw64
690         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
691         getcwd.
692         Reported by Marc-André Lureau.
693
694         pipe2: silence compiler warning
695         * lib/pipe2.c (pipe2): Hide label if it is not used.
696
697 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
698
699         relocatable-prog: fix link error
700         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
701         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
702         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
703         into modules/relocatable-lib without noticing that
704         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
705         also needs to build relocatable.c.
706
707 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
708
709         getaddrinfo: fix sh typo in gai_strerrorA decl checking
710         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
711         shell code: it contained a 'break' that was not in a loop.
712         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
713         via a shell-language loop; this may have been true in old Autoconf
714         versions, but it's not true in Autoconf 2.68.  I found this bug
715         when testing coreutils git on Solaris 8, whose shell complains
716         about the syntax error.
717
718 2011-08-12  Simon Josefsson  <simon@josefsson.org>
719
720         * lib/base64.c: Fix comment to reference RFC 4648.
721         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
722         <gvtulder@gmail.com>.
723
724 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
725
726         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
727
728         po/Makefile.in.in: fix make -q problem
729         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
730         rule, since there's no file named 'check-macro-version' and its
731         use as a file breaks make -q.
732         (all): Don't depend on check-macro-version.
733         (CHECK_MACRO_VERSION): New macro.
734         (stamp-po): Use it.
735
736         configmake: fix make -q problem
737         * modules/configmake (configmake.h): Update configmake.h's time stamp
738         even if the file does not change.  Otherwise, 'make -q' fails.
739         Problem reported by Simon Josefsson in
740         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
741
742 2011-08-11  Jim Meyering  <meyering@redhat.com>
743
744         git-version-gen: correct the advice in a comment
745         * build-aux/git-version-gen: Correct comment.
746         Don't recommend to list .tarball-version in .gitignore.
747
748 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
749
750         base64: fix off-by-one buffer size bug
751         Problem and (trivial) fix reported by Gijs van Tulder in
752         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
753         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
754         * tests/test-base64.c (main): Catch the bug.
755
756 2011-08-10  Eric Blake  <eblake@redhat.com>
757
758         closein: correct comments
759         * lib/closein.c (close_stdin): Improve comments.
760
761 2011-08-09  Bruno Haible  <bruno@clisp.org>
762
763         More tests for 'fseeko'.
764         * tests/test-fseeko3.c: New file, from Eric Blake.
765         * tests/test-fseeko3.sh: New file.
766         * modules/fseeko-tests (Files): Add them.
767         (TESTS): Add test-fseeko3.sh.
768         (check_PROGRAMS): Add test-fseeko3.
769
770 2011-08-09  Eric Blake  <eblake@redhat.com>
771
772         fseeko: remove unneeded hack
773         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
774
775         fseeko: fix bug on glibc
776         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
777         Reported by John W. Eaton.
778
779 2011-08-08  Bruno Haible  <bruno@clisp.org>
780
781         unictype/base: Fix interoperability with preinstalled libunistring.
782         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
783         Reported by Simon Josefsson.
784
785 2011-08-08  Bruno Haible  <bruno@clisp.org>
786
787         iswblank: Detect declaration correctly.
788         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
789         AC_CHECK_DECLS invocation.
790
791 2011-08-08  Bruno Haible  <bruno@clisp.org>
792
793         tcgetsid: Detect declaration correctly.
794         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
795         AC_CHECK_DECLS invocation.
796         Reported by Simon Josefsson.
797
798 2011-08-08  Eric Blake  <eblake@redhat.com>
799
800         largefile: fix typo that regressed large file support
801         * modules/largefile (configure.ac-early): Fix section name.
802
803 2011-08-06  Karl Berry  <karl@gnu.org>
804
805         * MODULES.html.sh (func_all_files): _Noreturn is no longer
806         a separate module.
807
808 2011-08-05  Simon Josefsson  <simon@josefsson.org>
809
810         openat: Fix warnings and commens when building unlinkat.c on Hurd.
811         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
812         get prototype for free.
813
814 2011-08-04  Bruno Haible  <bruno@clisp.org>
815
816         Tests for module 'pathmax'.
817         * modules/pathmax-tests: New file.
818         * tests/test-pathmax.c: New file.
819
820         canonicalize-lgpl: Support larger filenames on the Hurd.
821         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
822         Reported by Paul Eggert.
823
824         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
825         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
826         * lib/chdir-long.h: Include pathmax.h.
827         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
828         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
829         (PATH_MAX): Remove code that is done by pathmax.h.
830         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
831         * lib/tmpfile.c: Add a comment.
832         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
833         * modules/chdir-long (Depends-on): Add pathmax.
834         * modules/getcwd (Depends-on): Add pathmax.
835         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
836         is not defined.
837         * doc/posix-headers/limits.texi: Mention the pathmax module.
838         * NEWS: Mention the change.
839
840 2011-08-02  Bruno Haible  <bruno@clisp.org>
841
842         pthread_sigmask: Actually use results of gl_THREADLIB.
843         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
844         gl_THREADLIB, not gl_[]THREADLIB.
845         Reported by Eric Blake.
846
847 2011-08-02  Jim Meyering  <meyering@redhat.com>
848
849         maint.mk: relax the default _gl_TS_function_match regexp
850         * top/maint.mk (_gl_TS_function_match): Don't require at least one
851         space between function name and "(" in an "extern" declaration.
852         That would fail to match a decl with no space there: extern void foo();
853
854 2011-07-31  Iain Nicol  <iain@thenicols.net>
855
856         git-version-gen: document that EXTRA_DIST must include .version
857         * build-aux/git-version-gen: In the how-to-use comment, document
858         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
859         will fail when run from an unpacked distribution tarball.
860
861 2011-08-01  Bruno Haible  <bruno@clisp.org>
862
863         wctype-h: Fix last change.
864         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
865         REPLACE_TOWLOWER to 0.
866         Reported by Sam Steingold <sds@gnu.org>.
867
868 2011-07-31  Bruno Haible  <bruno@clisp.org>
869
870         frexpl: Update autoconf test.
871         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
872         according to changes of 2011-06-20.
873
874 2011-07-31  Bruno Haible  <bruno@clisp.org>
875
876         sys_utsname: Add support for Minix.
877         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
878         <sys/utsname.h>.
879         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
880         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
881
882 2011-07-31  Bruno Haible  <bruno@clisp.org>
883
884         strings: Add support for Minix.
885         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
886         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
887         * doc/posix-headers/strings.texi: Document the Minix problem.
888
889 2011-07-31  Bruno Haible  <bruno@clisp.org>
890
891         wctype-h: Add support for Minix.
892         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
893         REPLACE_TOWLOWER.
894         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
895         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
896         REPLACE_ISWCNTRL.
897
898 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
899
900         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
901         This is a performance improvement for 64-bit hosts: it causes the
902         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
903
904 2011-07-31  Bruno Haible  <bruno@clisp.org>
905
906         stdioext: Add support for Minix.
907         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
908         * lib/fpurge.c (fpurge): Likewise.
909         * lib/freadahead.c (freadahead): Likewise.
910         * lib/freadable.c (freadable): Likewise.
911         * lib/freading.c (freading): Likewise.
912         * lib/freadptr.c (freadptr): Likewise.
913         * lib/freadseek.c (freadptrinc): Likewise.
914         * lib/fseeko.c (rpl_fseeko): Likewise.
915         * lib/fseterr.c (fseterr): Likewise.
916         * lib/fwritable.c (fwritable): Likewise.
917         * lib/fwriting.c (fwriting): Likewise.
918         * lib/fflush.c (clear_ungetc_buffer): Update comment.
919         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
920
921 2011-07-31  Bruno Haible  <bruno@clisp.org>
922
923         errno: Port to Minix.
924         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
925         ECONNABORTED are defined.
926         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
927         GNULIB_defined_ECONNABORTED): New macros.
928         * lib/strerror-override.h (strerror_override): Test also
929         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
930         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
931         ECONNABORTED.
932         * doc/posix-headers/errno.texi: Mention the Minix problem.
933
934 2011-07-31  Bruno Haible  <bruno@clisp.org>
935
936         Work around declaration collisions on Minix.
937         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
938         defined, set REPLACE_MBSINIT.
939         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
940         defined, set REPLACE_MBRTOWC.
941         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
942         set REPLACE_MBRLEN.
943         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
944         defined, set REPLACE_MBSRTOWCS.
945         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
946         defined, set REPLACE_WCRTOMB.
947         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
948         defined, set REPLACE_WCSRTOMBS.
949
950 2011-07-31  Bruno Haible  <bruno@clisp.org>
951
952         Add support for Minix with ACK compiler.
953         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
954         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
955         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
956
957 2011-07-31  Bruno Haible  <bruno@clisp.org>
958
959         Documentation about Minix.
960         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
961         * doc/glibc-headers/*.texi: Likewise.
962         * doc/posix-functions/*.texi: Likewise.
963         * doc/glibc-functions/*.texi: Likewise.
964
965 2011-07-31  Bruno Haible  <bruno@clisp.org>
966
967         snippet/warn-on-use: Fix indentation.
968         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
969
970 2011-07-25  Jim Meyering  <meyering@redhat.com>
971
972         tests: test-update-copyright.sh: remove unnecessary "rm" commands
973         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
974         commands.
975
976 2011-07-27  Jim Meyering  <meyering@redhat.com>
977
978         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
979         * top/maint.mk (gl_extract_significant_defines_): Now that
980         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
981         gnulib/lib/signal.in.h, and now that we recommend to
982         define-if-undefined those two symbols in application code,
983         we must filter them out of the "significant" list.
984         This avoids a "make syntax-check" failure in coreutils.
985
986 2011-07-26  Eric Blake  <eblake@redhat.com>
987
988         warnings: add comments about previous patch
989         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
990         * m4/include_next.m4: Likewise.
991         * m4/warn-on-use.m4: Likewise.
992         * m4/warnings.m4: Likewise, and simplify use.
993         Suggested by Stefano Lattarini.
994
995         include-next, warnings: support older autoconf
996         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
997         AS_VAR_PUSHDEF in a way that works with older autoconf.
998         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
999         Reported by Daniel P. Berrange.
1000
1001 2011-07-25  Bruno Haible  <bruno@clisp.org>
1002
1003         fseek, ftell: Fix doc.
1004         * doc/posix-functions/fseek.texi: Reword statement about
1005         AC_SYS_LARGEFILE.
1006         * doc/posix-functions/ftell.texi: Likewise.
1007
1008 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
1009             Bruno Haible  <bruno@clisp.org>
1010
1011         Add dependencies to the 'largefile' module.
1012         * modules/fopen (Depends-on): Add 'largefile'.
1013         * modules/freopen (Depends-on): Likewise.
1014         * modules/fseeko (Depends-on): Likewise.
1015         * modules/ftello (Depends-on): Likewise.
1016         * modules/glob (Depends-on): Likewise.
1017         * modules/lseek (Depends-on): Likewise.
1018         * modules/lstat (Depends-on): Likewise.
1019         * modules/mkostemp (Depends-on): Likewise.
1020         * modules/mkostemps (Depends-on): Likewise.
1021         * modules/mkstemp (Depends-on): Likewise.
1022         * modules/mkstemps (Depends-on): Likewise.
1023         * modules/open (Depends-on): Likewise.
1024         * modules/openat (Depends-on): Likewise.
1025         * modules/pread (Depends-on): Likewise.
1026         * modules/pwrite (Depends-on): Likewise.
1027         * modules/scandir (Depends-on): Likewise.
1028         * modules/stat (Depends-on): Likewise.
1029         * modules/tmpfile (Depends-on): Likewise.
1030         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
1031         since the containing module now depends on the largefile module.
1032         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
1033         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
1034         off_t is fixed by gnulib.
1035         * doc/posix-functions/freopen.texi: Likewise.
1036         * doc/posix-functions/fseeko.texi: Likewise.
1037         * doc/posix-functions/fstatat.texi: Likewise.
1038         * doc/posix-functions/ftello.texi: Likewise.
1039         * doc/posix-functions/glob.texi: Likewise.
1040         * doc/posix-functions/lseek.texi: Likewise.
1041         * doc/posix-functions/lstat.texi: Likewise.
1042         * doc/posix-functions/mkstemp.texi: Likewise.
1043         * doc/posix-functions/open.texi: Likewise.
1044         * doc/posix-functions/openat.texi: Likewise.
1045         * doc/posix-functions/pread.texi: Likewise.
1046         * doc/posix-functions/pwrite.texi: Likewise.
1047         * doc/posix-functions/scandir.texi: Likewise.
1048         * doc/posix-functions/stat.texi: Likewise.
1049         * doc/posix-functions/tmpfile.texi: Likewise.
1050         * doc/glibc-functions/mkostemp.texi: Likewise.
1051         * doc/glibc-functions/mkostemps.texi: Likewise.
1052         * doc/glibc-functions/mkstemps.texi: Likewise.
1053
1054 2011-07-25  Bruno Haible  <bruno@clisp.org>
1055
1056         fcntl: Move AC_LIBOBJ invocation to module description.
1057         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
1058         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
1059
1060         fcntl: Remove call-in from fchdir.m4.
1061         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
1062         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
1063
1064         dup3: Remove potential call-in from fchdir.m4.
1065         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
1066         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
1067
1068         dup2: Move AC_LIBOBJ invocation to module description.
1069         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
1070         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
1071         Don't invoke AC_LIBOBJ.
1072         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
1073
1074         dup2: Remove call-in from fchdir.m4.
1075         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
1076         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
1077
1078         fclose: Move AC_LIBOBJ invocation to module description.
1079         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
1080         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
1081         to 1.
1082         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
1083
1084         fclose: Remove call-in from close.m4.
1085         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
1086         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
1087
1088         close: Move AC_LIBOBJ invocation to module description.
1089         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
1090         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
1091         1.
1092         * modules/close (configure.ac): Invoke AC_LIBOBJ.
1093
1094         close: Remove call-in from fchdir.m4.
1095         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
1096         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
1097
1098         open: Move AC_LIBOBJ invocation to module description.
1099         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
1100         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
1101         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
1102
1103         open: Remove call-in from fchdir.m4.
1104         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
1105         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
1106
1107         fchdir: Start to remove gl_REPLACE_* idiom.
1108         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
1109         (gl_FUNC_FCHDIR): Invoke it.
1110
1111 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
1112
1113         * lib/ftell.c (ftell): Comment out cast.
1114
1115         close: use gl_REPLACE_FCLOSE only if defined
1116         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
1117         is defined.  The close module doesn't depend on the fclose module
1118         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
1119         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
1120         I reproduced the problem with "./gnulib-tool --test close sys_socket".
1121
1122 2011-07-24  Jim Meyering  <meyering@redhat.com>
1123
1124         test-select.h: avoid warning when using gcc's -Wmissing-declarations
1125         * tests/test-select.h (test_function): Declare as "static".
1126
1127 2011-07-24  Bruno Haible  <bruno@clisp.org>
1128
1129         doc: Mention the effects of AC_SYS_LARGEFILE.
1130         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
1131         on this function.
1132         * doc/posix-functions/aio_error.texi: Likewise.
1133         * doc/posix-functions/aio_fsync.texi: Likewise.
1134         * doc/posix-functions/aio_read.texi: Likewise.
1135         * doc/posix-functions/aio_return.texi: Likewise.
1136         * doc/posix-functions/aio_suspend.texi: Likewise.
1137         * doc/posix-functions/aio_write.texi: Likewise.
1138         * doc/posix-functions/fgetpos.texi: Likewise.
1139         * doc/posix-functions/fopen.texi: Likewise.
1140         * doc/posix-functions/freopen.texi: Likewise.
1141         * doc/posix-functions/fsetpos.texi: Likewise.
1142         * doc/posix-functions/fstatvfs.texi: Likewise.
1143         * doc/posix-functions/ftruncate.texi: Likewise.
1144         * doc/posix-functions/ftw.texi: Likewise.
1145         * doc/posix-functions/getrlimit.texi: Likewise.
1146         * doc/posix-functions/glob.texi: Likewise.
1147         * doc/posix-functions/lio_listio.texi: Likewise.
1148         * doc/posix-functions/lockf.texi: Likewise.
1149         * doc/posix-functions/mkstemp.texi: Likewise.
1150         * doc/posix-functions/mmap.texi: Likewise.
1151         * doc/posix-functions/nftw.texi: Likewise.
1152         * doc/posix-functions/openat.texi: Likewise.
1153         * doc/posix-functions/opendir.texi: Likewise.
1154         * doc/posix-functions/posix_fadvise.texi: Likewise.
1155         * doc/posix-functions/posix_fallocate.texi: Likewise.
1156         * doc/posix-functions/pread.texi: Likewise.
1157         * doc/posix-functions/pwrite.texi: Likewise.
1158         * doc/posix-functions/readdir.texi: Likewise.
1159         * doc/posix-functions/readdir_r.texi: Likewise.
1160         * doc/posix-functions/rewinddir.texi: Likewise.
1161         * doc/posix-functions/scandir.texi: Likewise.
1162         * doc/posix-functions/seekdir.texi: Likewise.
1163         * doc/posix-functions/setrlimit.texi: Likewise.
1164         * doc/posix-functions/statvfs.texi: Likewise.
1165         * doc/posix-functions/telldir.texi: Likewise.
1166         * doc/posix-functions/tmpfile.texi: Likewise.
1167         * doc/posix-functions/truncate.texi: Likewise.
1168         * doc/glibc-functions/fallocate.texi: Likewise.
1169         * doc/glibc-functions/fstatfs.texi: Likewise.
1170         * doc/glibc-functions/fts_children.texi: Likewise.
1171         * doc/glibc-functions/fts_read.texi: Likewise.
1172         * doc/glibc-functions/getdirentries.texi: Likewise.
1173         * doc/glibc-functions/mkostemp.texi: Likewise.
1174         * doc/glibc-functions/mkostemps.texi: Likewise.
1175         * doc/glibc-functions/mkstemps.texi: Likewise.
1176         * doc/glibc-functions/preadv.texi: Likewise.
1177         * doc/glibc-functions/pwritev.texi: Likewise.
1178         * doc/glibc-functions/sendfile.texi: Likewise.
1179         * doc/glibc-functions/statfs.texi: Likewise.
1180
1181 2011-07-24  Bruno Haible  <bruno@clisp.org>
1182
1183         doc: Fix typo.
1184         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
1185
1186 2011-07-24  Bruno Haible  <bruno@clisp.org>
1187
1188         doc: Mention fsusage.
1189         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
1190
1191 2011-07-24  Bruno Haible  <bruno@clisp.org>
1192
1193         doc: Mention new glibc headers and functions.
1194         * doc/glibc-headers/gshadow.texi: New file.
1195         * doc/glibc-functions/endsgent.texi: New file.
1196         * doc/glibc-functions/fgetsgent.texi: New file.
1197         * doc/glibc-functions/fgetsgent_r.texi: New file.
1198         * doc/glibc-functions/getsgent.texi: New file.
1199         * doc/glibc-functions/getsgent_r.texi: New file.
1200         * doc/glibc-functions/getsgnam.texi: New file.
1201         * doc/glibc-functions/getsgnam_r.texi: New file.
1202         * doc/glibc-functions/putsgent.texi: New file.
1203         * doc/glibc-functions/setsgent.texi: New file.
1204         * doc/glibc-functions/sgetsgent.texi: New file.
1205         * doc/glibc-functions/sgetsgent_r.texi: New file.
1206         * doc/glibc-functions/malloc_info.texi: New file.
1207         * doc/glibc-functions/preadv.texi: New file.
1208         * doc/glibc-functions/pwritev.texi: New file.
1209         * doc/glibc-functions/register_printf_modifier.texi: New file.
1210         * doc/glibc-functions/register_printf_specifier.texi: New file.
1211         * doc/glibc-functions/register_printf_type.texi: New file.
1212         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
1213         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
1214         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
1215         * doc/glibc-functions/pthread_getname_np.texi: New file.
1216         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
1217         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
1218         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
1219         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
1220         * doc/glibc-functions/pthread_setname_np.texi: New file.
1221         * doc/glibc-functions/pthread_sigqueue.texi: New file.
1222         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
1223         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
1224         * doc/glibc-functions/qsort_r.texi: New file.
1225         * doc/glibc-functions/quick_exit.texi: New file.
1226         * doc/glibc-functions/syncfs.texi: New file.
1227         * doc/gnulib.texi: Include them.
1228         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
1229         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
1230         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
1231         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
1232         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
1233         * doc/glibc-functions/execvpe.texi: Likewise.
1234
1235 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
1236
1237         ftell: don't include <unistd.h>
1238         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
1239         guaranteed to define off_t, and the ftell module depends on the
1240         stdio module.
1241
1242         ftell: do not assume wraparound signed arithmetic
1243         * lib/ftell.c: Include <limits.h>.
1244         (ftell): Don't assume wraparound signed arithmetic.
1245
1246 2011-07-24  Bruno Haible  <bruno@clisp.org>
1247
1248         close: No longer depend on module 'fclose'.
1249         * modules/close (Depends-on): Remove fclose.
1250         * NEWS: Mention the change.
1251         Suggested by Sam Steingold <sds@gnu.org>.
1252
1253 2011-07-24  Bruno Haible  <bruno@clisp.org>
1254
1255         fsusage: Enable large volume support on AIX >= 5.2.
1256         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
1257         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
1258         instead of STAT_STATVFS.
1259         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
1260
1261         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
1262         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
1263         f_blocks field only on MacOS X.
1264
1265         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
1266         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
1267         * modules/fsusage (Depends-on): Add largefile.
1268
1269 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
1270
1271         * README: Modernize discussion of signed integers.
1272         Assuming overflow wraparound is no longer safe.
1273         Mention ones' complement and signed magnitude.
1274
1275 2011-07-22  Bruno Haible  <bruno@clisp.org>
1276
1277         select tests, pselect tests: Refactor.
1278         * tests/test-select.h: New file, extracted from tests/test-select.c.
1279         (select_fn): New type.
1280         (test, do_select, do_select_nowait, do_select_wait, test_tty,
1281         test_connect_first, test_accept_first, test_pair, test_socket_pair,
1282         test_pipe): Add my_select argument.
1283         (test_function): Renamed from main. Add my_select argument.
1284         * tests/test-select.c: Move most code to tests/test-select.h. Include
1285         test-select.h.
1286         * modules/select-tests (Files): Add tests/test-select.h.
1287         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
1288         (my_select, main): New functions.
1289         * modules/pselect-tests (Files): Add tests/test-select.h,
1290         tests/macros.h, tests/signature.h.
1291         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
1292         (configure.ac): Check for <sys/wait.h>.
1293
1294 2011-07-22  Bruno Haible  <bruno@clisp.org>
1295
1296         sys_select tests: Check the signature of FD_*.
1297         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
1298         signature tests from here...
1299         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
1300         here.
1301         * modules/sys_select-tests (Files): Add tests/signature.h.
1302
1303 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
1304
1305         largefile: new module, replacing large-inode
1306         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
1307         * MODULES.html.sh: Add largefile, remove large-inode.
1308         * modules/largefile, m4/largefile.m4: New files.
1309         * modules/large-inode, m4/large-inode.m4: Remove.
1310
1311         fsusage: port to MacOS X 10.7 with 4 TiB file systems
1312         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
1313         implementations that use only 32 bits to count blocks.
1314         On typical hosts with 1024-byte blocks, this fails with file
1315         systems as small as 4 TiB.  Problem reported by Herb Wartens
1316         <http://debbugs.gnu.org/9140> and this should also fix a similar
1317         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
1318
1319         large-inode: New module
1320         * MODULES.html.sh: Add it.
1321         * modules/large-inode, m4/large-inode.m4: New files.
1322
1323         extensions: Enable extensions on MacOS X 10.5 and later.
1324         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
1325
1326 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
1327
1328         file-has-acl: use acl_extended_file_nofollow if available
1329         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
1330         (acl_extended_file): New macro.
1331         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
1332         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
1333
1334 2011-07-21  Bruno Haible  <bruno@clisp.org>
1335
1336         Declare system functions in a way that works with C++.
1337         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
1338         declare fdopendir as extern "C".
1339         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
1340         declare frexpl as extern "C".
1341         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
1342         declare gai_strerror as extern "C".
1343         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
1344         programs, declare gai_strerror as extern "C".
1345         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
1346         declare getlogin_r as extern "C".
1347         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
1348         as extern "C".
1349         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
1350         declare ldexpl as extern "C".
1351         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
1352         as extern "C".
1353         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
1354         program, declare getmntinfo as extern "C".
1355         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
1356         stpncpy as extern "C".
1357         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
1358         program, declare __xpg_strerror_r as extern "C".
1359         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
1360         strndup as extern "C".
1361         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
1362         declare memset and bzero as extern "C".
1363         Reported by Sam Steingold <sds@gnu.org>.
1364
1365 2011-07-12  Jim Meyering  <meyering@redhat.com>
1366
1367         maint.mk: prohibit inclusion of "verify.h" without use
1368         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
1369
1370 2011-07-19  Pádraig Brady  <P@draigBrady.com>
1371
1372         timer-time: A new module to check for timer_settime()
1373         * m4/timer_time.m4: Check for the posix function.
1374         * modules/timer-time: Add the new module.
1375         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
1376         Mention it.
1377
1378 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
1379             Bruno Haible  <bruno@clisp.org>
1380
1381         pthread_sigmask: assume POSIX threads if --avoid=threadlib
1382         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
1383         not defined, assume POSIX threads and look for pthread_sigmask in
1384         $LIBS, without changing $CPPFLAGS.
1385
1386 2011-07-19  Bruno Haible  <bruno@clisp.org>
1387
1388         strstr: Update cross-compilation guess.
1389         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
1390         CPUs, guess no, in view of glibc
1391         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
1392         Suggested by Eric Blake. Reported by Reuben Thomas.
1393
1394 2011-07-19  Pádraig Brady  <P@draigBrady.com>
1395
1396         getopt-gnu: suppress core dumps from detection code
1397         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
1398         to suppress core dumps that may well occur on glibc systems.
1399         * modules/getopt-gnu: Depend on nocrash.
1400
1401 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
1402
1403         pthread_sigmask: ensure usleep is declared
1404         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
1405         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
1406
1407 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
1408
1409         doc: Document NonStop portability issues.
1410         * doc/posix-functions/sigaction.texi (sigaction):
1411         * doc/posix-headers/signal.texi (signal.h):
1412         Document NonStop.  See Joachim Schmitz in
1413         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
1414
1415 2011-07-15  Bruno Haible  <bruno@clisp.org>
1416
1417         ffsl, ffsll: Avoid unportable behaviour.
1418         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
1419
1420 2011-07-15  Bruno Haible  <bruno@clisp.org>
1421
1422         ffs: More tests.
1423         * tests/test-ffs.c (NBITS): New macro.
1424         (main): Add more tests.
1425         * tests/test-ffsl.c (NBITS): New macro.
1426         (main): Add more tests.
1427         * tests/test-ffsll.c (NBITS): New macro.
1428         (main): Add more tests.
1429
1430 2011-07-15  Eric Blake  <eblake@redhat.com>
1431
1432         ffsl, ffsll: new modules
1433         * modules/ffsl: New file.
1434         * modules/ffsll: Likewise.
1435         * m4/ffsl.m4: Likewise.
1436         * m4/ffsll.m4: Likewise.
1437         * lib/ffsl.c: Likewise.
1438         * lib/ffsl.h: Likewise.
1439         * lib/ffsll.c: Likewise.
1440         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
1441         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
1442         * modules/string (Makefile.am): Substitute witnesses.
1443         * lib/strings.in.h (ffsl, ffsll): Declare.
1444         * modules/ffsl-tests: New test file.
1445         * modules/ffsll-tests: Likewise.
1446         * tests/test-ffsl.c: Likewise.
1447         * tests/test-ffsll.c: Likewise.
1448         * MODULES.html.sh (Integer arithmetic functions): Mention it.
1449         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
1450         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
1451
1452         ffs: fix m4 prerequisite
1453         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
1454
1455         ffs: avoid undefined behavior
1456         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
1457         * tests/test-ffs.c (naive, main): Avoid signed shifts.
1458         Reported by Bruno Haible.
1459
1460 2011-07-12  Bruno Haible  <bruno@clisp.org>
1461
1462         pthread_sigmask: Rely on module 'threadlib'.
1463         * modules/pthread_sigmask (Depends-on): Add threadlib.
1464         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
1465         is defined.
1466
1467 2011-07-12  Bruno Haible  <bruno@clisp.org>
1468
1469         regex: Depend on module 'strcase'.
1470         * modules/regex (Depends-on): Add strcase, for strcasecmp().
1471
1472 2011-07-12  Jim Meyering  <meyering@redhat.com>
1473
1474         warn-on-use: fix typo in file name
1475         * modules/snippet/warn-on-use (Files): Correct file name:
1476         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
1477
1478 2011-07-12  Bruno Haible  <bruno@clisp.org>
1479
1480         strings: Document module.
1481         * doc/posix-headers/strings.texi: Mention module 'strings'.
1482
1483 2011-07-12  Bruno Haible  <bruno@clisp.org>
1484
1485         Rename module '_Noreturn' to 'snippet/_Noreturn'.
1486         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
1487         (Files, Makefile.am): Update.
1488         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
1489         * modules/stdlib (Depends-on): Update.
1490
1491 2011-07-12  Bruno Haible  <bruno@clisp.org>
1492
1493         * NEWS: Mention the changes.
1494
1495         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
1496         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
1497         (Files, Makefile.am): Update.
1498         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
1499         * modules/arpa_inet (Depends-on): Update.
1500         * modules/ctype (Depends-on): Update.
1501         * modules/dirent (Depends-on): Update.
1502         * modules/fcntl-h (Depends-on): Update.
1503         * modules/glob (Depends-on): Update.
1504         * modules/iconv-h (Depends-on): Update.
1505         * modules/inttypes-incomplete (Depends-on): Update.
1506         * modules/langinfo (Depends-on): Update.
1507         * modules/locale (Depends-on): Update.
1508         * modules/math (Depends-on): Update.
1509         * modules/netdb (Depends-on): Update.
1510         * modules/poll-h (Depends-on): Update.
1511         * modules/pty (Depends-on): Update.
1512         * modules/search (Depends-on): Update.
1513         * modules/signal (Depends-on): Update.
1514         * modules/spawn (Depends-on): Update.
1515         * modules/stdio (Depends-on): Update.
1516         * modules/stdlib (Depends-on): Update.
1517         * modules/string (Depends-on): Update.
1518         * modules/strings (Depends-on): Update.
1519         * modules/sys_file (Depends-on): Update.
1520         * modules/sys_ioctl (Depends-on): Update.
1521         * modules/sys_select (Depends-on): Update.
1522         * modules/sys_socket (Depends-on): Update.
1523         * modules/sys_stat (Depends-on): Update.
1524         * modules/sys_time (Depends-on): Update.
1525         * modules/sys_times (Depends-on): Update.
1526         * modules/sys_utsname (Depends-on): Update.
1527         * modules/sys_wait (Depends-on): Update.
1528         * modules/termios (Depends-on): Update.
1529         * modules/time (Depends-on): Update.
1530         * modules/unistd (Depends-on): Update.
1531         * modules/wchar (Depends-on): Update.
1532         * modules/wctype-h (Depends-on): Update.
1533         * MODULES.html.sh (Support for building libraries and executables):
1534         Update.
1535
1536         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
1537         * modules/snippet/unused-parameter: Renamed from
1538         modules/unused-parameter.
1539         (Files, Makefile.am): Update.
1540         * build-aux/snippet/unused-parameter.h: Renamed from
1541         build-aux/unused-parameter.h.
1542         * modules/selinux-h (Depends-on): Update.
1543         * modules/unistr/base (Depends-on): Update.
1544         * MODULES.html.sh (Core language properties): Update.
1545
1546         Rename module 'link-warning' to 'snippet/link-warning'.
1547         * modules/snippet/link-warning: Renamed from modules/link-warning.
1548         (Files, Makefile.am): Update.
1549         * build-aux/snippet/link-warning.h: Renamed from
1550         build-aux/link-warning.h.
1551         * MODULES.html.sh (Support for building libraries and executables):
1552         Update.
1553
1554         Rename module 'c++defs' to 'snippet/c++defs'.
1555         * modules/snippet/c++defs: Renamed from modules/c++defs.
1556         (Files, Makefile.am): Update.
1557         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
1558         * modules/arpa_inet (Depends-on): Update.
1559         * modules/ctype (Depends-on): Update.
1560         * modules/dirent (Depends-on): Update.
1561         * modules/fcntl-h (Depends-on): Update.
1562         * modules/glob (Depends-on): Update.
1563         * modules/iconv-h (Depends-on): Update.
1564         * modules/langinfo (Depends-on): Update.
1565         * modules/locale (Depends-on): Update.
1566         * modules/math (Depends-on): Update.
1567         * modules/netdb (Depends-on): Update.
1568         * modules/poll-h (Depends-on): Update.
1569         * modules/pty (Depends-on): Update.
1570         * modules/search (Depends-on): Update.
1571         * modules/signal (Depends-on): Update.
1572         * modules/spawn (Depends-on): Update.
1573         * modules/stdio (Depends-on): Update.
1574         * modules/stdlib (Depends-on): Update.
1575         * modules/string (Depends-on): Update.
1576         * modules/strings (Depends-on): Update.
1577         * modules/sys_ioctl (Depends-on): Update.
1578         * modules/sys_select (Depends-on): Update.
1579         * modules/sys_socket (Depends-on): Update.
1580         * modules/sys_stat (Depends-on): Update.
1581         * modules/sys_time (Depends-on): Update.
1582         * modules/sys_wait (Depends-on): Update.
1583         * modules/termios (Depends-on): Update.
1584         * modules/time (Depends-on): Update.
1585         * modules/unistd (Depends-on): Update.
1586         * modules/wchar (Depends-on): Update.
1587         * modules/wctype-h (Depends-on): Update.
1588
1589         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
1590         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
1591         (Files, Makefile.am): Update.
1592         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
1593         * modules/argv-iter (Depends-on): Update.
1594         * modules/arpa_inet (Depends-on): Update.
1595         * modules/dirent (Depends-on): Update.
1596         * modules/fcntl-h (Depends-on): Update.
1597         * modules/fnmatch (Depends-on): Update.
1598         * modules/getopt-posix (Depends-on): Update.
1599         * modules/glob (Depends-on): Update.
1600         * modules/iconv-h (Depends-on): Update.
1601         * modules/inttypes-incomplete (Depends-on): Update.
1602         * modules/locale (Depends-on): Update.
1603         * modules/math (Depends-on): Update.
1604         * modules/netdb (Depends-on): Update.
1605         * modules/search (Depends-on): Update.
1606         * modules/signal (Depends-on): Update.
1607         * modules/spawn (Depends-on): Update.
1608         * modules/stdio (Depends-on): Update.
1609         * modules/stdlib (Depends-on): Update.
1610         * modules/string (Depends-on): Update.
1611         * modules/strings (Depends-on): Update.
1612         * modules/sys_socket (Depends-on): Update.
1613         * modules/sys_stat (Depends-on): Update.
1614         * modules/sys_time (Depends-on): Update.
1615         * modules/sys_times (Depends-on): Update.
1616         * modules/sys_utsname (Depends-on): Update.
1617         * modules/time (Depends-on): Update.
1618         * modules/unistd (Depends-on): Update.
1619         * modules/wchar (Depends-on): Update.
1620         * MODULES.html.sh (Support for building libraries and executables):
1621         Update.
1622
1623 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
1624
1625         Improvements on _Noreturn and related modules.
1626
1627         modules/_Exit-tests: test _Noreturn too
1628         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
1629         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
1630         (main): Use them.
1631
1632         stdnoreturn, stdnoreturn-tests: remove modules
1633         They're not needed here and a bit premature for use elsewhere.  See
1634         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
1635         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
1636         * tests/test-stdnoreturn.c: Remove files.
1637         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
1638         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
1639         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
1640         and using noreturn.
1641         * modules/openat, modules/sigpipe-die, modules/xalloc:
1642         * modules/xmemdup0, modules/xstrtol:
1643         Remove dependency on stdnoreturn.
1644
1645         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
1646         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
1647         Reparenthesize to avoid GCC warning.
1648         Support Microsoft's syntax.
1649         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
1650
1651         _Noreturn-tests: remove module
1652         * modules/_Noreturn-tests: Remove.
1653         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
1654         * tests/test-_Noreturn.c: Remove.
1655         * tests/test-stdnoreturn.c: Merge from the old
1656         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
1657
1658 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
1659
1660         _Noreturn, stdnoreturn, and related modules.
1661
1662         * top/maint.mk: Adjust to new noreturn support.
1663         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
1664         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
1665
1666         xalloc: use stdnoreturn.h
1667         * lib/xalloc.h: Include <stdnoreturn.h>.
1668         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
1669         * modules/xalloc (Depends-on): Add stdnoreturn.
1670
1671         xstrtol: use stdnoreturn.h
1672         * lib/xstrtol.h: Include <stdnoreturn.h>.
1673         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
1674         * modules/xstrtol (Depends-on): Add stdnoreturn.
1675
1676         xmemdup0: use stdnoreturn.h
1677         * lib/xmemdup0.h: Include <stdnoreturn.h>.
1678         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
1679         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
1680
1681         sigpipe-die: use stdnoreturn.h
1682         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
1683         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
1684         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
1685
1686         openat: use stdnoreturn.h
1687         * lib/openat.h: Include <stdnoreturn.h>.
1688         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
1689         * modules/openat (Depends-on): Add stdnoreturn.
1690
1691         * lib/openat-die.c (openat_save_fail): Modernize comment.
1692
1693         * lib/xalloc-die.c (xalloc_die): Modernize comment.
1694
1695         * lib/glthread/thread.h: Modernize comment.
1696
1697         obstack: use _Noreturn
1698         * lib/obstack.c (__attribute__): Remove macro.
1699         (print_and_abort): Use _Noreturn.
1700
1701         c-stack: use _Noreturn
1702         * lib/c-stack.c (die, overflow_handler, segv_handler):
1703         Use _Noreturn rather than __attribute__((noreturn)).
1704
1705         argmatch-tests, exclude_tests: use _Noreturn
1706         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
1707         Remove.
1708         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
1709
1710         stdlib: use _Noreturn
1711         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
1712         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
1713         * modules/stdlib (Depends-on): Add _Noreturn.
1714         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
1715
1716         stdnoreturn-tests: new module
1717         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
1718
1719         stdnoreturn: new module
1720         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
1721         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
1722
1723         _Noreturn-tests: new module
1724         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
1725
1726         _Noreturn: new module
1727         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
1728         New section, mentioning it.
1729         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
1730
1731         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
1732
1733 2011-07-11  Eric Blake  <eblake@redhat.com>
1734
1735         ffs: new module
1736         * modules/ffs: New file.
1737         * m4/ffs.m4: Likewise.
1738         * lib/ffs.c: Likewise.
1739         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
1740         * modules/strings (Makefile.am): Substitute witness.
1741         (Depends-on): Add c++defs.
1742         * lib/strings.in.h (ffs): Declare.
1743         * modules/ffs-tests: New test file.
1744         * tests/test-ffs.c: Test new module.
1745         * MODULES.html.sh (Integer arithmetic functions): Mention it.
1746         * doc/posix-functions/ffs.texi (ffs): Likewise.
1747
1748         regex: avoid compiler warning
1749         * lib/regex.c (includes): Include <strings.h>, for use of
1750         strcasecmp in regcomp.c.
1751         Reported by Joachim Schmitz.
1752
1753 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
1754
1755         stdint: respect system's intmax_t if INTMAX_MAX
1756         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
1757         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
1758         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
1759         long but int64_t is long long, and where we will clash with the
1760         system intmax_t if we override it.  See
1761         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
1762         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
1763         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
1764         similarly for UINTMAX_C.
1765
1766 2011-07-08  Bruno Haible  <bruno@clisp.org>
1767
1768         pthread_sigmask tests: Avoid a compiler warning.
1769         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
1770         non-zero.
1771
1772         sigprocmask tests: A better way to avoid a compiler warning.
1773         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
1774         (main): Complain if system() returns non-zero.
1775         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
1776
1777 2011-07-08  Bruno Haible  <bruno@clisp.org>
1778
1779         pthread_sigmask: Work around IRIX bug.
1780         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
1781         bug.
1782         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
1783         there may be unblocked pending signals.
1784         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
1785
1786 2011-07-08  Bruno Haible  <bruno@clisp.org>
1787
1788         pthread_sigmask: Work around Cygwin bug.
1789         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
1790         bug.
1791         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
1792         the system's pthread_sigmask function.
1793         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
1794
1795 2011-07-08  Bruno Haible  <bruno@clisp.org>
1796
1797         pthread_sigmask: Work around bug in single-threaded implementation.
1798         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
1799         FreeBSD, HP-UX, Solaris bug.
1800         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
1801         * lib/pthread_sigmask.c: Include <stddef.h>.
1802         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
1803         the system's pthread_sigmask function.
1804         * modules/pthread_sigmask (configure.ac): Invoke
1805         gl_PREREQ_PTHREAD_SIGMASK.
1806         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
1807         HP-UX, Solaris.
1808
1809 2011-07-08  Eric Blake  <eblake@redhat.com>
1810
1811         test-sigprocmask: avoid compiler warning
1812         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
1813         * tests/test-sigprocmask.c (main): Use it to silence warning.
1814         Reported by Jim Meyering.
1815
1816         test-snprintf: avoid compiler warning
1817         * tests/test-snprintf.c (main): Avoid shadowed declaration.
1818         * tests/test-vsnprintf.c (main): Likewise.
1819         Reported by Jim Meyering.
1820
1821 2011-07-08  Bruno Haible  <bruno@clisp.org>
1822
1823         Tests for module 'pthread_sigmask'.
1824         * modules/pthread_sigmask-tests: New file.
1825         * tests/test-pthread_sigmask1.c: New file, based on
1826         tests/test-sigprocmask.c.
1827         * tests/test-pthread_sigmask2.c: New file.
1828
1829 2011-07-08  Jim Meyering  <meyering@redhat.com>
1830
1831         test-getopt.h: avoid warning about an unused variable
1832         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
1833
1834 2011-07-07  Jim Meyering  <meyering@redhat.com>
1835
1836         maint: reduce list of files exempt from sc_prohibit_leading_TABs
1837         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
1838         now that it no longer contains leading TABs.
1839         Remove unused "url=FIXME" statement.
1840
1841 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
1842
1843         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
1844         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
1845         When gl_THREADLIB is not in use, assume that the POSIX sematics
1846         are desired.  This is better for Emacs, which uses POSIX semantics
1847         on GNUish and/or POSIXish platforms, and does not use threads at
1848         all otherwise.
1849
1850         pthread_sigmask: fix typo when testing for libraries
1851         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
1852         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
1853
1854 2011-07-08  Eric Blake  <eblake@redhat.com>
1855
1856         fts: introduce FTS_NOATIME
1857         * lib/fts_.h (FTS_NOATIME): New bit flag.
1858         (FTS_OPTIONMASK): Adjust.
1859         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
1860         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
1861
1862 2011-07-08  Bruno Haible  <bruno@clisp.org>
1863
1864         Tests for module 'thread'.
1865         * modules/thread-tests: New file.
1866         * tests/test-thread_self.c: New file.
1867         * tests/test-thread_create.cc: New file.
1868
1869 2011-07-08  Bruno Haible  <bruno@clisp.org>
1870
1871         thread: Avoid gcc warnings when using gl_thread_self().
1872         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
1873         'void *'.
1874         (gl_thread_self_pointer): Update.
1875
1876 2011-07-07  Bruno Haible  <bruno@clisp.org>
1877
1878         signal-c++-tests: Check declaration of pthread_sigmask.
1879         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
1880         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
1881         $(LIB_PTHREAD_SIGMASK).
1882
1883 2011-07-07  Bruno Haible  <bruno@clisp.org>
1884
1885         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
1886         * lib/signal.in.h (pthread_sigmask): Override if
1887         REPLACE_PTHREAD_SIGMASK is 1.
1888         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
1889         REPLACE_PTHREAD_SIGMASK.
1890         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
1891         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
1892         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
1893         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
1894         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
1895
1896 2011-07-07  Bruno Haible  <bruno@clisp.org>
1897
1898         pthread_sigmask: Ensure declaration in <signal.h>.
1899         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
1900         include <pthread.h>.
1901         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
1902         problem.
1903
1904 2011-07-07  Bruno Haible  <bruno@clisp.org>
1905
1906         pthread_sigmask: Document the module.
1907         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
1908
1909 2011-07-07  Bruno Haible  <bruno@clisp.org>
1910
1911         pthread_sigmask: Follow gnulib conventions.
1912         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
1913         gl_PTHREAD_SIGMASK.
1914         * modules/pthread_sigmask (configure.ac): Update.
1915
1916 2011-07-07  Bruno Haible  <bruno@clisp.org>
1917
1918         pthread_sigmask: Make declaration C++ safe.
1919         * lib/signal.in.h: In two special conditions, just do an #include_next.
1920         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
1921         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
1922         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
1923         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
1924         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
1925         not REPLACE_PTHREAD_MASK.
1926         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
1927         not REPLACE_PTHREAD_MASK.
1928         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
1929
1930 2011-07-07  Bruno Haible  <bruno@clisp.org>
1931
1932         pthread_sigmask: Fix return value.
1933         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
1934         * lib/pthread_sigmask.c: New file.
1935         * modules/pthread_sigmask (Files): Add it.
1936         (configure.ac): Invoke AC_LIBOBJ.
1937
1938 2011-07-07  Eric Blake  <eblake@redhat.com>
1939
1940         getopt: more portable argv creation
1941         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
1942         const, use char arrays rather than strings.
1943         Suggested by Paul Eggert.
1944
1945 2011-07-07  Bruno Haible  <bruno@clisp.org>
1946
1947         Tests for module 'sigprocmask'.
1948         * modules/sigprocmask-tests: New file.
1949         * tests/test-sigprocmask.c: New file.
1950
1951 2011-07-07  Bruno Haible  <bruno@clisp.org>
1952
1953         float tests: Tweak.
1954         * tests/test-float.c (main): Tweak skip message.
1955
1956 2011-07-07  Eric Blake  <eblake@redhat.com>
1957
1958         getopt: avoid compiler warning during configure
1959         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
1960         assigning string literals to non-const pointer.
1961
1962         getopt-gnu: avoid crash in glibc getopt
1963         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
1964         * tests/test-getopt.h (test_getopt): Enhance test.
1965         * tests/test-getopt_long.h (test_getopt_long): Likewise.
1966         * doc/posix-functions/getopt.texi (getopt): Document it.
1967         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
1968         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
1969         Likewise.
1970
1971 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
1972
1973         getopt: handle W; without long options in getopt [BZ #12922]
1974         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
1975         but no long options are defined, just return 'W'.
1976
1977 2011-07-07  Bruno Haible  <bruno@clisp.org>
1978
1979         Avoid literal tabs.
1980         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
1981         variable containing a tab instead of a literal tab.
1982         Reported by Jim Meyering.
1983
1984 2011-07-07  Bruno Haible  <bruno@clisp.org>
1985
1986         Comments.
1987         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
1988
1989 2011-07-06  Bruno Haible  <bruno@clisp.org>
1990
1991         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
1992         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
1993         <winsock2.h>.
1994         (rpl_fd_isset, FD_ISSET): New definitions, copied from
1995         lib/sys_socket.in.h.
1996         (close, gethostname): Hide declarations from <winsock2.h>.
1997         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
1998         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
1999         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
2000         (select): Don't override if gnulib's <sys/select.h> was already
2001         included.
2002         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
2003         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
2004         setsockopt, shutdown, select): Tweak indentation.
2005
2006 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
2007
2008         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
2009         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
2010         in an application that does not use the sys_select module.
2011
2012 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
2013
2014         poll: do not return 0 on timeout=-1
2015         * lib/poll.c: Loop with yield if no events occured
2016
2017 2011-07-06  Eric Blake  <eblake@redhat.com>
2018
2019         pthread_sigmask: always replace when not using pthread
2020         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
2021         replacement when using some threading other than pthread.  Fix
2022         logic bug.
2023
2024 2011-07-06  Bruno Haible  <bruno@clisp.org>
2025
2026         Comments.
2027         * m4/printf.m4: Update comments about mingw.
2028
2029 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
2030
2031         sys_select: define sigset_t more portably
2032         * lib/sys_select.in.h: Always include <sys/types.h>, since
2033         we now need sigset_t and mingw defines it there.
2034         Include <signal.h> before split inclusion guard, to avoid
2035         mishaps on Solaris, whose <signal.h> eventually includes us.
2036         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
2037         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
2038         which come from ...
2039         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
2040         gl_CHECK_TYPE_SIGSET_T.
2041         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
2042         does the real work.
2043         * modules/sys_select (Depends-on): Add 'signal'.
2044
2045         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
2046         Suggested by Bruno Haible.
2047
2048         pselect: Use pthread_sigmask, not sigprocmask.
2049         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
2050         multithreaded apps better than sigprocmask does.
2051         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
2052         sigprocmask directly.
2053
2054 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
2055
2056         * lib/pselect.c (pselect): Use plain name, without "rpl_".
2057         Don't #undef,  since we don't need any underlying pselect.
2058         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
2059         (Depends-on): Add select.
2060         (Link): Add $(LIBSOCKET).
2061         These changes suggested by Bruno Haible.
2062
2063         pselect: document better
2064         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
2065         * doc/posix-functions/pselect.texi (pselect): Document new module.
2066
2067         pthread_sigmask: new module
2068         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
2069         * doc/posix-functions/pthread_sigmask.texi: Document new module.
2070         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
2071         This is done only as a macro; I don't know how well that'll
2072         work for C++.  Move <sys/types.h> include before the include_next,
2073         to avoid mishap on Solaris.
2074         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
2075         * modules/signal (Makefile.am): Substitute the check's results.
2076         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
2077
2078         test-pselect: new module
2079         * modules/pselect-tests, tests/test-pselect.c: New files.
2080         * tests/test-select.c, tests/test-sys_select-c++.cc:
2081         If TEST_PSELECT is defined, test pselect instead of testing select.
2082
2083         * tests/test-sys_select.c (sigset_t): Test for it, too.
2084         Suggested by Bruno Haible.
2085
2086 2011-07-05  Eric Blake  <eblake@redhat.com>
2087
2088         snprintf: guarantee %1$d, for libintl
2089         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
2090         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
2091         * doc/posix-functions/snprintf.texi (snprintf): Update.
2092         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
2093         * tests/test-snprintf.c (main): Enhance test.
2094         * tests/test-vsnprintf.c (main): Likewise.
2095
2096 2011-07-05  Jim Meyering  <meyering@redhat.com>
2097
2098         maint: exempt stdio-read.c and stdio-write.c from the cppi check
2099         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
2100         per Bruno's request, to accommodate this idiom (no space after "#")
2101         even when the function is inside an #if block:
2102         char *
2103         gets (char *s)
2104         #undef gets
2105         {
2106           ...
2107         }
2108
2109 2011-07-04  Jim Meyering  <meyering@redhat.com>
2110
2111         maint: indent with spaces, not TABs, and add a rule to check this
2112         * tests/test-userspec.c: Indent with spaces, not TABs.
2113         * tests/test-argp.c: Likewise.
2114         * tests/test-c-stack2.sh: Likewise.
2115         * tests/test-parse-duration.sh: Likewise
2116         * m4/strtod.m4: Likewise.
2117         * m4/alloca.m4: Likewise.
2118         * m4/pselect.m4: Likewise.
2119         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
2120
2121 2011-07-03  Jim Meyering  <meyering@redhat.com>
2122
2123         maint.mk: correct omissions in prohibit_argmatch_without_use check
2124         This rule would mistakenly report that argmatch.h is included without
2125         use even when both the argmatch and invalid_arg macro were used.
2126         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
2127         of argmatch and invalid_arg.
2128
2129 2011-07-03  Bruno Haible  <bruno@clisp.org>
2130
2131         Comments about EINTR.
2132         * lib/safe-read.h: Explain the purpose of this module.
2133         * lib/safe-write.h: Likewise.
2134         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
2135         module.
2136         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
2137         module.
2138         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
2139
2140 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
2141
2142         xnanosleep: Rewrite to use new dtotimespec module.
2143         It has the conversion code that used to be in xnanosleep.
2144         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
2145         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
2146         (TIME_T_MAX): Remove.
2147         (xnanosleep): Rewrite in terms of dtotimespec.
2148         * modules/xnanosleep (Depends-on): Add dtotimespec.
2149         Remove intprops, stdbool.
2150
2151         timespec-add, timespec-sub: new modules
2152         * lib/timespec.h (timespec_add, timespec_sub): New decls.
2153         * lib/timespec-add.c, lib/timespec-sub.c:
2154         * modules/timespec-add, modules/timespec-sub: New files.
2155
2156         dtotimespec: new module
2157         * lib/timespec.h (dtotimespec): New decl.
2158         * lib/dtotimespec.c, modules/dtotimespec: New files.
2159
2160         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
2161
2162         pselect: new module
2163         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
2164         (pselect): New decls.
2165         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
2166         since the standard pselect decl uses 'restrict'.
2167         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
2168         HAVE_PSELECT, REPLACE_PSELECT.
2169         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
2170         HAVE_PSELECT, REPLACE_PSELECT.
2171         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
2172
2173         sys_select: don't depend on sys_socket
2174         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
2175         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
2176         This fix works on GNU and GNU-like platforms, but has not been tested
2177         on native Windows.
2178         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
2179         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
2180         gl_HEADER_SYS_SOCKET.
2181         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
2182         gl_PREREQ_SYS_H_WINSOCK2.
2183
2184 2011-06-29  Eric Blake  <eblake@redhat.com>
2185
2186         pipe2: fix C89 compile problem
2187         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
2188         Reported by Bruno Haible.
2189
2190         pipe, pipe2: don't corrupt fd on error
2191         * lib/pipe.c (pipe): Leave fd unchanged on error.
2192         * lib/pipe2.c (pipe2): Likewise.
2193         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
2194         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
2195
2196 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
2197
2198         mmap-anon: do not use regular expressions inadvertently
2199         * m4/mmap-anon.m4: Remove trailing period from strings sought
2200         in the output.
2201
2202 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
2203
2204         nanosleep: fix integer overflow problem
2205         * lib/nanosleep.c (my_usleep): Don't assume signed integer
2206         arithmetic wraps around on overflow.
2207
2208         nanosleep: simplify carrying
2209         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
2210         first call to the underyling nanosleep, not for the last one.
2211         This doesn't fix any bugs, but it simplifies the computation of
2212         the remaining delay.  Found while auditing integer overflow issues.
2213
2214         dup2: remove test for existence of fcntl
2215         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
2216         "#if HAVE_FCNTL", in the configure-time test program.
2217         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
2218         and therefore speeds up "configure" a bit.  Found while
2219         adding the dup2 module to Emacs.
2220
2221 2011-06-24  Eric Blake  <eblake@redhat.com>
2222
2223         maint.mk: enhance useless header checks
2224         * top/maint.mk (_sc_header_without_use): Check both include
2225         styles.
2226         (sc_prohibit_assert_without_use)
2227         (sc_prohibit_close_stream_without_use)
2228         (sc_prohibit_getopt_without_use)
2229         (sc_prohibit_quotearg_without_use)
2230         (sc_prohibit_quote_without_use)
2231         (sc_prohibit_long_options_without_use)
2232         (sc_prohibit_inttostr_without_use)
2233         (sc_prohibit_ignore_value_without_use)
2234         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
2235         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
2236         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
2237         (sc_prohibit_hash_pjw_without_use)
2238         (sc_prohibit_safe_read_without_use)
2239         (sc_prohibit_argmatch_without_use)
2240         (sc_prohibit_canonicalize_without_use)
2241         (sc_prohibit_root_dev_ino_without_use)
2242         (sc_prohibit_openat_without_use)
2243         (sc_prohibit_c_ctype_without_use)
2244         (sc_prohibit_signal_without_use)
2245         (sc_prohibit_stdio--_without_use)
2246         (sc_prohibit_stdio-safer_without_use)
2247         (sc_prohibit_strings_without_use)
2248         (sc_prohibit_intprops_without_use)
2249         (sc_prohibit_stddef_without_use)
2250         (sc_prohibit_xfreopen_without_use): Update clients.
2251
2252 2011-06-24  Jim Meyering  <meyering@redhat.com>
2253
2254         syntax-check: keep one maint.mk rule in sync with its header
2255         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
2256         of the bug Eric has just fixed, with today's commit 25e4c2ec.
2257         I prefer to avoid temporary files here, so use <(...), but that
2258         is not supported by /bin/sh, so...
2259         (SHELL): Define to /bin/bash.
2260
2261 2011-06-24  Eric Blake  <eblake@redhat.com>
2262
2263         maint.mk: update sc_prohibit_intprops_without_use
2264         * top/maint.mk (_intprops_names): Match recent changes.
2265
2266 2011-06-24  Bruno Haible  <bruno@clisp.org>
2267
2268         strerror-override: No-op tweak.
2269         * lib/strerror-override.h (strerror_override): Reorder conditions,
2270         for consistency with lib/strerror-override.c.
2271
2272 2011-06-23  Eric Blake  <eblake@redhat.com>
2273
2274         maint.mk: test further PATH_MAX issues
2275         * top/maint.mk (sc_prohibit_path_max_array): Rename...
2276         (sc_prohibit_path_max_allocation): ...and also test alloca.
2277         Suggested by Jim Meyering.
2278
2279 2011-06-22  Eric Blake  <eblake@redhat.com>
2280
2281         maint.mk: add syntax-check to avoid char[PATH_MAX]
2282         * top/maint.mk (sc_prohibit_path_max_array): New rule.
2283
2284         stat: be robust to PATH_MAX definition
2285         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
2286         * modules/stat (Depends-on): Add verify.
2287
2288         link: work around IRIX bug
2289         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
2290         * lib/link.c (rpl_link): Work around it.
2291         * tests/test-link.h (test_link): Enhance test.
2292         * doc/posix-functions/link.texi (link): Document the bug.
2293
2294         getopt: silence clang warning
2295         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
2296         dereference.
2297         Reported by Gustavo Martin Domato.
2298
2299 2011-06-22  Jim Meyering  <meyering@redhat.com>
2300
2301         bootstrap: do not insert a blank line into each .gitignore file
2302         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
2303
2304 2011-06-21  Eric Blake  <eblake@redhat.com>
2305
2306         perror: test for output mismatch
2307         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
2308         perror on IRIX.
2309
2310         strerror_r: fix OpenBSD behavior on out-of-range
2311         * lib/strerror_r.c (strerror_r): Always use maximal string.
2312         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
2313
2314         strerror_r: fix OpenBSD behavior on 0
2315         * lib/strerror-override.c (strerror_override): Also override 0
2316         when needed.
2317         * lib/strerror-override.h (strerror_override): Likewise.
2318         * lib/strerror.c (strerror): Simplify, now that 0 override is done
2319         earlier.
2320         * lib/strerror_r.c (strerror_r): Likewise.
2321         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
2322         behavior...
2323         (gl_FUNC_STRERROR_0): ...into new macro.
2324         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
2325         is overridden.
2326         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
2327         * modules/strerror-override (Files): Add strerror.m4.
2328         (configure.ac): Also provide override for 0 when needed.
2329         * doc/posix-functions/strerror.texi (strerror): Document this.
2330         * doc/posix-functions/perror.texi (perror): Likewise.
2331
2332         perror: adjust array size
2333         * modules/perror (Depends-on): Add strerror-override.
2334         * lib/perror.c (perror): Use it to avoid magic number.
2335
2336         strerror-override: reduce size
2337         * lib/strerror-override.c (strerror_override): Use fewer lines.
2338
2339 2011-06-20  Bruno Haible  <bruno@clisp.org>
2340
2341         pathmax: Ensure correct value for PATH_MAX on HP-UX.
2342         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
2343
2344 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
2345
2346         alloca: port to compilers that can optimize like GCC 4.6.0
2347         * lib/alloca.c (find_stack_direction): New signature, taken from
2348         Autoconf git.  This works with GCC 4.6.0.  This code should never
2349         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
2350         be used with other compilers that optimize as well as GCC 4.6.0 does.
2351         (alloca): Adjust to new signature.
2352         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
2353         New macro, which patches Autoconf in a similar way.
2354
2355         c-stack: stop worrying about stack direction
2356         * lib/c-stack.c (find_stack_direction): Remove.
2357         (segv_handler): Don't worry about stack direction growth, as it's
2358         too much of a pain to configure this correctly, given how compilers
2359         are optimizing-away our stack-growth detection code.  Instead, assume
2360         that any access to just before or just after the stack is OK.
2361         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
2362         Don't require AC_FUNC_ALLOCA; no longer needed.
2363
2364 2011-06-20  Eric Blake  <eblake@redhat.com>
2365
2366         test-stat: don't allocate PATH_MAX bytes
2367         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
2368         PATH_MAX-sized buffer.
2369         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
2370         * modules/stat-tests (Depends-on): Likewise.
2371         * tests/test-fstatat.c (includes): Drop pathmax.h.
2372         * tests/test-stat.c (includes): Likewise.
2373         Reported by Bruno Haible.
2374
2375 2011-06-20  Bruno Haible  <bruno@clisp.org>
2376
2377         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
2378         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
2379         * lib/float.c: New file.
2380         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
2381         REPLACE_FLOAT_LDBL.
2382         * modules/float (Files): Add lib/float.c.
2383         (configure.ac): Invoke AC_LIBOBJ.
2384         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
2385
2386 2011-06-20  Bruno Haible  <bruno@clisp.org>
2387
2388         Tests for module 'float'.
2389         * modules/float-tests: New file.
2390         * tests/test-float.c: New file.
2391
2392 2011-06-19  Bruno Haible  <bruno@clisp.org>
2393
2394         isinf: Coding style.
2395         * lib/isinf.c: Use GNU coding style.
2396
2397 2011-06-19  Bruno Haible  <bruno@clisp.org>
2398
2399         linkat test: Avoid test failure on AIX 7.1.
2400         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
2401         * tests/test-link.h (test_link): Likewise.
2402
2403 2011-06-19  Bruno Haible  <bruno@clisp.org>
2404
2405         pread test: Avoid test failure on OpenBSD 4.9.
2406         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
2407
2408 2011-06-19  Bruno Haible  <bruno@clisp.org>
2409
2410         sprintf-posix: Fix test failure on AIX 7.1.
2411         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
2412         * doc/posix-functions/dprintf.texi: Mention limited precision problem
2413         on AIX.
2414         * doc/posix-functions/fprintf.texi: Likewise.
2415         * doc/posix-functions/printf.texi: Likewise.
2416         * doc/posix-functions/snprintf.texi: Likewise.
2417         * doc/posix-functions/sprintf.texi: Likewise.
2418         * doc/posix-functions/vdprintf.texi: Likewise.
2419         * doc/posix-functions/vfprintf.texi: Likewise.
2420         * doc/posix-functions/vprintf.texi: Likewise.
2421         * doc/posix-functions/vsnprintf.texi: Likewise.
2422         * doc/posix-functions/vsprintf.texi: Likewise.
2423
2424 2011-06-19  Bruno Haible  <bruno@clisp.org>
2425
2426         roundl-ieee: Fix test failure on AIX 7.1.
2427         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
2428         * doc/posix-functions/roundl.texi: Mention problem with negative
2429         arguments.
2430
2431 2011-06-19  Bruno Haible  <bruno@clisp.org>
2432
2433         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
2434         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
2435         * doc/posix-functions/round.texi: Mention problem with negative
2436         arguments.
2437         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
2438
2439 2011-06-19  Bruno Haible  <bruno@clisp.org>
2440
2441         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
2442         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
2443         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
2444         * doc/posix-functions/roundf.texi: Mention problem with negative
2445         arguments.
2446         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
2447
2448 2011-06-19  Bruno Haible  <bruno@clisp.org>
2449
2450         ceilf-ieee: Work around bug on MacOS X 10.5.
2451         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
2452
2453         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
2454         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
2455         IEEE compliant, avoid compiler optimizations.
2456         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
2457         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
2458         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
2459         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
2460         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
2461         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
2462         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
2463         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
2464         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
2465         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
2466
2467 2011-06-19  Bruno Haible  <bruno@clisp.org>
2468
2469         ceilf-ieee: Work around bug on AIX 7.1.
2470         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
2471         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
2472
2473 2011-06-19  Bruno Haible  <bruno@clisp.org>
2474
2475         ceil-ieee: Work around bug on AIX 7.1.
2476         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
2477         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
2478
2479 2011-06-18  Bruno Haible  <bruno@clisp.org>
2480
2481         fsync test: Avoid test failure on MacOS X and AIX.
2482         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
2483         EINVAL.
2484
2485 2011-06-18  Bruno Haible  <bruno@clisp.org>
2486
2487         openat, fdopendir tests: Fix link errors.
2488         * modules/openat-tests (Depends-on): Add progname.
2489         * modules/fdopendir-tests (Depends-on): Likewise.
2490         * tests/test-fchownat.c: Include progname.h.
2491         (main): Call set_program_name.
2492         * tests/test-fstatat.c: Include progname.h.
2493         (main): Call set_program_name.
2494         * tests/test-mkdirat.c: Include progname.h.
2495         (main): Call set_program_name.
2496         * tests/test-openat.c: Include progname.h.
2497         (main): Call set_program_name.
2498         * tests/test-unlinkat.c: Include progname.h.
2499         (main): Call set_program_name.
2500         * tests/test-fdopendir.c: Include progname.h.
2501         (main): Call set_program_name.
2502
2503 2011-06-18  Bruno Haible  <bruno@clisp.org>
2504
2505         Doc update.
2506         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
2507         HP-UX.
2508         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
2509
2510 2011-06-18  Bruno Haible  <bruno@clisp.org>
2511
2512         getcwd tests: Avoid compilation error on HP-UX 11.31.
2513         * modules/getcwd-tests (Depends-on): Add pathmax.
2514         * tests/test-getcwd.c: Include pathmax.h.
2515
2516 2011-06-18  Bruno Haible  <bruno@clisp.org>
2517
2518         isfinite, isinf: Fix link error on AIX 6 and 7.
2519         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
2520         needed, also test the macro with a 'float' argument.
2521         * m4/isinf.m4 (gl_ISINF): Likewise.
2522
2523 2011-06-18  Bruno Haible  <bruno@clisp.org>
2524
2525         getloadavg: Don't clobber LIBS. Regression from previous commit.
2526         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
2527         AC_CHECK_LIB from here...
2528         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
2529         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
2530         gl_func_getloadavg_done.
2531         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2532
2533 2011-06-18  Bruno Haible  <bruno@clisp.org>
2534
2535         clean-temp: Improve documentation.
2536         * lib/clean-temp.h: Explain better how to use this module.
2537         Reported by John Darrington <john@darrington.wattle.id.au>.
2538
2539 2011-06-17  Bruno Haible  <bruno@clisp.org>
2540
2541         pread, pwrite: Avoid cc warning on AIX.
2542         * lib/unistd.in.h (pread): Undefine before defining as a macro.
2543         (pwrite): Likewise.
2544
2545 2011-06-17  Bruno Haible  <bruno@clisp.org>
2546
2547         spawn-pipe tests: Fix link error.
2548         * tests/test-spawn-pipe-child.c: Undefine fprintf.
2549         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2550
2551 2011-06-17  Bruno Haible  <bruno@clisp.org>
2552
2553         Tests: Remove unnecessary dependency.
2554         * modules/canonicalize-tests (Depends-on): Remove progname.
2555         * modules/chown-tests (Depends-on): Likewise.
2556         * modules/dirname-tests (Depends-on): Likewise.
2557         * modules/fdopendir-tests (Depends-on): Likewise.
2558         * modules/fdutimensat-tests (Depends-on): Likewise.
2559         * modules/hash-tests (Depends-on): Likewise.
2560         * modules/lchown-tests (Depends-on): Likewise.
2561         * modules/linkat-tests (Depends-on): Likewise.
2562         * modules/renameat-tests (Depends-on): Likewise.
2563         * modules/spawn-pipe-tests (Depends-on): Likewise.
2564         * modules/utimensat-tests (Depends-on): Likewise.
2565
2566 2011-06-17  Bruno Haible  <bruno@clisp.org>
2567
2568         spawn-pipe tests: Fix link error.
2569         * tests/test-spawn-pipe-child.c: Undefine fflush.
2570
2571 2011-06-17  Bruno Haible  <bruno@clisp.org>
2572
2573         Fix tests link errors.
2574         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
2575         * modules/chown-tests (Makefile.am): Don't link test-chown with
2576         LIBINTL.
2577         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
2578         LIBINTL.
2579         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
2580         LIBINTL.
2581         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
2582         LIBINTL.
2583
2584 2011-06-16  Bruno Haible  <bruno@clisp.org>
2585
2586         crypto/gc-sha1: Fix recent regression.
2587         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
2588         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
2589
2590         crypto/gc-md5: Fix recent regression.
2591         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
2592
2593         crypto/gc-md4: Fix recent regression.
2594         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
2595         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
2596
2597         crypto/gc-arctwo: Fix recent regression.
2598         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
2599         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
2600
2601         crypto/gc-rijndael: Fix recent regression.
2602         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
2603         (configure.ac): Invoke AC_LIBOBJ here.
2604         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
2605         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2606
2607         crypto/gc-hmac-sha1: Fix recent regression.
2608         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
2609         (configure.ac): Invoke AC_LIBOBJ here.
2610         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
2611         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2612
2613         crypto/gc-hmac-md5: Fix recent regression.
2614         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
2615         (configure.ac): Invoke AC_LIBOBJ here.
2616         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
2617         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2618
2619         crypto/gc-des: Fix recent regression.
2620         * modules/crypto/gc-des (Files): Remove m4/des.m4.
2621         (configure.ac): Invoke AC_LIBOBJ here.
2622         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
2623         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2624
2625         crypto/gc-arcfour: Fix recent regression.
2626         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
2627         (configure.ac): Invoke AC_LIBOBJ here.
2628         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
2629         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2630
2631 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
2632
2633         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
2634         After the 2011-05-21 change, this macro requires
2635         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
2636         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
2637
2638 2011-06-16  Bruno Haible  <bruno@clisp.org>
2639
2640         fprintftime: Move AC_LIBOBJ invocations to module description.
2641         * m4/fprintftime.m4: Remove file.
2642         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
2643         (configure.ac): Remove gl_FPRINTFTIME call.
2644         (Makefile.am): Augment lib_SOURCES.
2645         Reported by Jim Meyering.
2646
2647 2011-06-16  Bruno Haible  <bruno@clisp.org>
2648
2649         tmpfile-safer: Finish 2011-05-23 commit.
2650         * m4/stdio-safer.m4: Really remove file.
2651         Reported by Jim Meyering.
2652
2653 2011-06-16  Bruno Haible  <bruno@clisp.org>
2654
2655         syntax-check: Fix typo.
2656         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
2657         printf-posix.m4.
2658         Reported by Jim Meyering.
2659
2660 2011-06-13  Jim Meyering  <meyering@redhat.com>
2661
2662         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
2663         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
2664
2665 2011-05-23  Bruno Haible  <bruno@clisp.org>
2666
2667         yesno: Move AC_LIBOBJ invocations to module description.
2668         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
2669         * modules/yesno (Makefile.am): Augment lib_SOURCES.
2670
2671 2011-05-23  Bruno Haible  <bruno@clisp.org>
2672
2673         xstrtol: Move AC_LIBOBJ invocations to module description.
2674         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
2675         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
2676
2677 2011-05-23  Bruno Haible  <bruno@clisp.org>
2678
2679         xstrtold: Move AC_LIBOBJ invocations to module description.
2680         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
2681         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
2682
2683 2011-05-23  Bruno Haible  <bruno@clisp.org>
2684
2685         xstrtod: Move AC_LIBOBJ invocations to module description.
2686         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
2687         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
2688
2689 2011-05-23  Bruno Haible  <bruno@clisp.org>
2690
2691         xnanosleep: Move AC_LIBOBJ invocations to module description.
2692         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
2693         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
2694
2695 2011-05-23  Bruno Haible  <bruno@clisp.org>
2696
2697         xgetcwd: Move AC_LIBOBJ invocations to module description.
2698         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
2699         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
2700
2701 2011-05-23  Bruno Haible  <bruno@clisp.org>
2702
2703         xalloc: Move AC_LIBOBJ invocations to module description.
2704         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
2705         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
2706
2707 2011-05-23  Bruno Haible  <bruno@clisp.org>
2708
2709         write-any-file: Move AC_LIBOBJ invocations to module description.
2710         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
2711         invocation.
2712         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
2713
2714 2011-05-23  Bruno Haible  <bruno@clisp.org>
2715
2716         utimens: Move AC_LIBOBJ invocations to module description.
2717         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
2718         * modules/utimens (Makefile.am): Augment lib_SOURCES.
2719
2720 2011-05-23  Bruno Haible  <bruno@clisp.org>
2721
2722         utimecmp: Move AC_LIBOBJ invocations to module description.
2723         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
2724         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
2725
2726 2011-05-23  Bruno Haible  <bruno@clisp.org>
2727
2728         userspec: Move AC_LIBOBJ invocations to module description.
2729         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
2730         * modules/userspec (Makefile.am): Augment lib_SOURCES.
2731
2732 2011-05-23  Bruno Haible  <bruno@clisp.org>
2733
2734         unlinkdir: Move AC_LIBOBJ invocations to module description.
2735         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
2736         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
2737
2738 2011-05-23  Bruno Haible  <bruno@clisp.org>
2739
2740         unistd-safer: Move AC_LIBOBJ invocations to module description.
2741         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
2742         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
2743
2744 2011-05-23  Bruno Haible  <bruno@clisp.org>
2745
2746         tempname: Move AC_LIBOBJ invocations to module description.
2747         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
2748         * modules/tempname (Makefile.am): Augment lib_SOURCES.
2749
2750 2011-05-23  Bruno Haible  <bruno@clisp.org>
2751
2752         strftime: Move AC_LIBOBJ invocations to module description.
2753         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
2754         * modules/strftime (Makefile.am): Augment lib_SOURCES.
2755
2756 2011-05-23  Bruno Haible  <bruno@clisp.org>
2757
2758         stdlib-safer: Move AC_LIBOBJ invocations to module description.
2759         * m4/stdlib-safer.m4: Remove file.
2760         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
2761         (configure.ac): Remove gl_STDLIB_SAFER call.
2762         (Makefile.am): Augment lib_SOURCES.
2763
2764 2011-05-23  Bruno Haible  <bruno@clisp.org>
2765
2766         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
2767         * m4/stdio-safer.m4: Remove file.
2768         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
2769         (configure.ac): Remove gl_TMPFILE_SAFER call.
2770         (Makefile.am): Augment lib_SOURCES.
2771
2772 2011-05-23  Bruno Haible  <bruno@clisp.org>
2773
2774         popen-safer: Move AC_LIBOBJ invocations to module description.
2775         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
2776         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
2777         (configure.ac): Remove gl_POPEN_SAFER call.
2778         (Makefile.am): Augment lib_SOURCES.
2779
2780 2011-05-23  Bruno Haible  <bruno@clisp.org>
2781
2782         freopen-safer: Move AC_LIBOBJ invocations to module description.
2783         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
2784         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
2785         (configure.ac): Remove gl_FREOPEN_SAFER call.
2786         (Makefile.am): Augment lib_SOURCES.
2787
2788 2011-05-23  Bruno Haible  <bruno@clisp.org>
2789
2790         fopen-safer: Move AC_LIBOBJ invocations to module description.
2791         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
2792         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
2793         (configure.ac): Remove gl_FOPEN_SAFER call.
2794         (Makefile.am): Augment lib_SOURCES.
2795
2796 2011-05-23  Bruno Haible  <bruno@clisp.org>
2797
2798         crypto/sha512: Move AC_LIBOBJ invocations to module description.
2799         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
2800         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
2801
2802 2011-05-23  Bruno Haible  <bruno@clisp.org>
2803
2804         crypto/sha256: Move AC_LIBOBJ invocations to module description.
2805         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
2806         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
2807
2808 2011-05-23  Bruno Haible  <bruno@clisp.org>
2809
2810         crypto/sha1: Move AC_LIBOBJ invocations to module description.
2811         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
2812         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
2813
2814 2011-05-23  Bruno Haible  <bruno@clisp.org>
2815
2816         settime: Move AC_LIBOBJ invocations to module description.
2817         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
2818         * modules/settime (Makefile.am): Augment lib_SOURCES.
2819
2820 2011-05-23  Bruno Haible  <bruno@clisp.org>
2821
2822         savedir: Move AC_LIBOBJ invocations to module description.
2823         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
2824         * modules/savedir (Makefile.am): Augment lib_SOURCES.
2825
2826 2011-05-23  Bruno Haible  <bruno@clisp.org>
2827
2828         save-cwd: Move AC_LIBOBJ invocations to module description.
2829         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
2830         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
2831
2832 2011-05-23  Bruno Haible  <bruno@clisp.org>
2833
2834         same: Move AC_LIBOBJ invocations to module description.
2835         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
2836         * modules/same (Makefile.am): Augment lib_SOURCES.
2837
2838 2011-05-23  Bruno Haible  <bruno@clisp.org>
2839
2840         safe-write: Move AC_LIBOBJ invocations to module description.
2841         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
2842         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
2843         instead of gl_SAFE_WRITE.
2844         (Makefile.am): Augment lib_SOURCES.
2845
2846 2011-05-23  Bruno Haible  <bruno@clisp.org>
2847
2848         safe-read: Move AC_LIBOBJ invocations to module description.
2849         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
2850         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
2851         of gl_SAFE_READ.
2852         (Makefile.am): Augment lib_SOURCES.
2853
2854 2011-05-23  Bruno Haible  <bruno@clisp.org>
2855
2856         safe-alloc: Move AC_LIBOBJ invocations to module description.
2857         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
2858         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
2859
2860 2011-05-23  Bruno Haible  <bruno@clisp.org>
2861
2862         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
2863         * m4/rijndael.m4: Remove file.
2864         * modules/crypto/rijndael (Files): Remove it.
2865         (configure.ac): Remove gl_RIJNDAEL call.
2866         (Makefile.am): Augment lib_SOURCES.
2867
2868 2011-05-23  Bruno Haible  <bruno@clisp.org>
2869
2870         readtokens: Move AC_LIBOBJ invocations to module description.
2871         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
2872         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
2873
2874 2011-05-23  Bruno Haible  <bruno@clisp.org>
2875
2876         read-file: Move AC_LIBOBJ invocations to module description.
2877         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
2878         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
2879         of gl_FUNC_READ_FILE.
2880         (Makefile.am): Augment lib_SOURCES.
2881
2882 2011-05-23  Bruno Haible  <bruno@clisp.org>
2883
2884         quotearg: Move AC_LIBOBJ invocations to module description.
2885         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
2886         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
2887
2888 2011-05-23  Bruno Haible  <bruno@clisp.org>
2889
2890         quote: Move AC_LIBOBJ invocations to module description.
2891         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
2892         * modules/quote (Makefile.am): Augment lib_SOURCES.
2893
2894 2011-05-23  Bruno Haible  <bruno@clisp.org>
2895
2896         posixver: Move AC_LIBOBJ invocations to module description.
2897         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
2898         * modules/posixver (Makefile.am): Augment lib_SOURCES.
2899
2900 2011-05-23  Bruno Haible  <bruno@clisp.org>
2901
2902         posixtm: Move AC_LIBOBJ invocations to module description.
2903         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
2904         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
2905
2906 2011-05-23  Bruno Haible  <bruno@clisp.org>
2907
2908         physmem: Move AC_LIBOBJ invocations to module description.
2909         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
2910         * modules/physmem (Makefile.am): Augment lib_SOURCES.
2911
2912 2011-05-23  Bruno Haible  <bruno@clisp.org>
2913
2914         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
2915         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
2916         invocation.
2917         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
2918
2919 2011-05-23  Bruno Haible  <bruno@clisp.org>
2920
2921         mpsort: Move AC_LIBOBJ invocations to module description.
2922         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
2923         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
2924
2925 2011-05-23  Bruno Haible  <bruno@clisp.org>
2926
2927         modechange: Move AC_LIBOBJ invocations to module description.
2928         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
2929         * modules/modechange (Makefile.am): Augment lib_SOURCES.
2930
2931 2011-05-23  Bruno Haible  <bruno@clisp.org>
2932
2933         mkdir-p: Move AC_LIBOBJ invocations to module description.
2934         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
2935         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
2936
2937 2011-05-23  Bruno Haible  <bruno@clisp.org>
2938
2939         mkancesdirs: Move AC_LIBOBJ invocations to module description.
2940         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
2941         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
2942
2943 2011-05-23  Bruno Haible  <bruno@clisp.org>
2944
2945         mgetgroups: Move AC_LIBOBJ invocations to module description.
2946         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
2947         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
2948
2949 2011-05-23  Bruno Haible  <bruno@clisp.org>
2950
2951         memxor: Move AC_LIBOBJ invocations to module description.
2952         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
2953         * modules/memxor (Makefile.am): Augment lib_SOURCES.
2954
2955 2011-05-23  Bruno Haible  <bruno@clisp.org>
2956
2957         memcoll: Move AC_LIBOBJ invocations to module description.
2958         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
2959         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
2960
2961 2011-05-23  Bruno Haible  <bruno@clisp.org>
2962
2963         memcasecmp: Move AC_LIBOBJ invocations to module description.
2964         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
2965         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
2966
2967 2011-05-23  Bruno Haible  <bruno@clisp.org>
2968
2969         crypto/md5: Move AC_LIBOBJ invocations to module description.
2970         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
2971         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
2972
2973 2011-05-23  Bruno Haible  <bruno@clisp.org>
2974
2975         crypto/md4: Move AC_LIBOBJ invocations to module description.
2976         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
2977         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
2978
2979 2011-05-23  Bruno Haible  <bruno@clisp.org>
2980
2981         crypto/md2: Move AC_LIBOBJ invocations to module description.
2982         * m4/md2.m4: Remove file.
2983         * modules/crypto/md2 (Files): Remove it.
2984         (configure.ac): Remove gl_MD2 call.
2985         (Makefile.am): Augment lib_SOURCES.
2986
2987 2011-05-23  Bruno Haible  <bruno@clisp.org>
2988
2989         long-options: Move AC_LIBOBJ invocations to module description.
2990         * m4/long-options.m4: Remove file.
2991         * modules/long-options (Files): Remove it.
2992         (configure.ac): Remove gl_LONG_OPTIONS call.
2993         (Makefile.am): Augment lib_SOURCES.
2994
2995 2011-05-23  Bruno Haible  <bruno@clisp.org>
2996
2997         i-ring: Move AC_LIBOBJ invocations to module description.
2998         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
2999         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
3000
3001 2011-05-23  Bruno Haible  <bruno@clisp.org>
3002
3003         idcache: Move AC_LIBOBJ invocations to module description.
3004         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
3005         * modules/idcache (Makefile.am): Augment lib_SOURCES.
3006
3007 2011-05-23  Bruno Haible  <bruno@clisp.org>
3008
3009         human: Move AC_LIBOBJ invocations to module description.
3010         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
3011         * modules/human (Makefile.am): Augment lib_SOURCES.
3012
3013 2011-05-23  Bruno Haible  <bruno@clisp.org>
3014
3015         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
3016         * m4/hmac-sha1.m4: Remove file.
3017         * modules/crypto/hmac-sha1 (Files): Remove it.
3018         (configure.ac): Remove gl_HMAC_SHA1 call.
3019         (Makefile.am): Augment lib_SOURCES.
3020
3021 2011-05-23  Bruno Haible  <bruno@clisp.org>
3022
3023         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
3024         * m4/hmac-md5.m4: Remove file.
3025         * modules/crypto/hmac-md5 (Files): Remove it.
3026         (configure.ac): Remove gl_HMAC_MD5 call.
3027         (Makefile.am): Augment lib_SOURCES.
3028
3029 2011-05-23  Bruno Haible  <bruno@clisp.org>
3030
3031         hash: Move AC_LIBOBJ invocations to module description.
3032         * m4/hash.m4: Remove file.
3033         * modules/hash (Files): Remove it.
3034         (configure.ac): Remove gl_HASH call.
3035         (Makefile.am): Augment lib_SOURCES.
3036
3037 2011-05-23  Bruno Haible  <bruno@clisp.org>
3038
3039         hard-locale: Move AC_LIBOBJ invocations to module description.
3040         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
3041         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
3042
3043 2011-05-23  Bruno Haible  <bruno@clisp.org>
3044
3045         getugroups: Move AC_LIBOBJ invocations to module description.
3046         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
3047         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
3048
3049 2011-05-23  Bruno Haible  <bruno@clisp.org>
3050
3051         gettime: Move AC_LIBOBJ invocations to module description.
3052         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
3053         * modules/gettime (Makefile.am): Augment lib_SOURCES.
3054
3055 2011-05-23  Bruno Haible  <bruno@clisp.org>
3056
3057         getndelim2: Move AC_LIBOBJ invocations to module description.
3058         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
3059         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
3060
3061 2011-05-23  Bruno Haible  <bruno@clisp.org>
3062
3063         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
3064         * m4/gc-pbkdf2-sha1.m4: Remove file.
3065         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
3066         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
3067         (Makefile.am): Augment lib_SOURCES.
3068
3069 2011-05-23  Bruno Haible  <bruno@clisp.org>
3070
3071         fts: Move AC_LIBOBJ invocations to module description.
3072         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
3073         * modules/fts (configure.ac): ... to here.
3074
3075 2011-05-23  Bruno Haible  <bruno@clisp.org>
3076
3077         file-type: Move AC_LIBOBJ invocations to module description.
3078         * m4/file-type.m4: Remove file.
3079         * modules/file-type (Files): Remove it.
3080         (configure.ac): Remove gl_FILE_TYPE call.
3081         (Makefile.am): Augment lib_SOURCES.
3082
3083 2011-05-23  Bruno Haible  <bruno@clisp.org>
3084
3085         filenamecat*: Respect rules for use of AC_LIBOBJ.
3086         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
3087         Remove AC_LIBOBJ invocation.
3088         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
3089         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
3090
3091 2011-05-23  Bruno Haible  <bruno@clisp.org>
3092
3093         filemode: Move AC_LIBOBJ invocations to module description.
3094         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
3095         * modules/filemode (Makefile.am): Augment lib_SOURCES.
3096
3097 2011-05-23  Bruno Haible  <bruno@clisp.org>
3098
3099         openat-safer: Move AC_LIBOBJ invocations to module description.
3100         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
3101         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
3102
3103 2011-05-23  Bruno Haible  <bruno@clisp.org>
3104
3105         fcntl-safer: Move AC_LIBOBJ invocations to module description.
3106         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
3107         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
3108
3109 2011-05-23  Bruno Haible  <bruno@clisp.org>
3110
3111         exclude: Move AC_LIBOBJ invocations to module description.
3112         * m4/exclude.m4: Remove file.
3113         * modules/exclude (Files): Remove it.
3114         (configure.ac): Remove gl_EXCLUDE call.
3115         (Makefile.am): Augment lib_SOURCES.
3116
3117 2011-05-23  Bruno Haible  <bruno@clisp.org>
3118
3119         dirname*: Respect rules for use of AC_LIBOBJ.
3120         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
3121         invocations.
3122         * modules/dirname (Makefile.am): Augment lib_SOURCES.
3123         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
3124
3125 2011-05-23  Bruno Haible  <bruno@clisp.org>
3126
3127         dirent-safer: Move AC_LIBOBJ invocations to module description.
3128         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
3129         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
3130
3131 2011-05-23  Bruno Haible  <bruno@clisp.org>
3132
3133         crypto/des: Move AC_LIBOBJ invocations to module description.
3134         * m4/des.m4: Remove file.
3135         * modules/crypto/des (Files): Remove it.
3136         (configure.ac): Remove gl_DES call.
3137         (Makefile.am): Augment lib_SOURCES.
3138
3139 2011-05-23  Bruno Haible  <bruno@clisp.org>
3140
3141         cycle-check: Move AC_LIBOBJ invocations to module description.
3142         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
3143         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
3144
3145 2011-05-23  Bruno Haible  <bruno@clisp.org>
3146
3147         c-strtold: Move AC_LIBOBJ invocations to module description.
3148         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
3149         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
3150
3151 2011-05-23  Bruno Haible  <bruno@clisp.org>
3152
3153         c-strtod: Move AC_LIBOBJ invocations to module description.
3154         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
3155         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
3156
3157 2011-05-23  Bruno Haible  <bruno@clisp.org>
3158
3159         crc: Move AC_LIBOBJ invocations to module description.
3160         * m4/crc.m4: Remove file.
3161         * modules/crc (Files): Remove it.
3162         (configure.ac): Remove gl_CRC call.
3163         (Makefile.am): Augment lib_SOURCES.
3164
3165 2011-05-23  Bruno Haible  <bruno@clisp.org>
3166
3167         close-stream: Move AC_LIBOBJ invocations to module description.
3168         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
3169         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
3170
3171 2011-05-23  Bruno Haible  <bruno@clisp.org>
3172
3173         closeout: Move AC_LIBOBJ invocations to module description.
3174         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
3175         * modules/closeout (Makefile.am): Augment lib_SOURCES.
3176
3177 2011-05-23  Bruno Haible  <bruno@clisp.org>
3178
3179         closein: Move AC_LIBOBJ invocations to module description.
3180         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
3181         * modules/closein (Makefile.am): Augment lib_SOURCES.
3182
3183 2011-05-23  Bruno Haible  <bruno@clisp.org>
3184
3185         cloexec: Move AC_LIBOBJ invocations to module description.
3186         * m4/cloexec.m4: Remove file.
3187         * modules/cloexec (Files): Remove it.
3188         (configure.ac): Remove gl_CLOEXEC call.
3189         (Makefile.am): Augment lib_SOURCES.
3190
3191 2011-05-23  Bruno Haible  <bruno@clisp.org>
3192
3193         check-version: Move AC_LIBOBJ invocations to module description.
3194         * m4/check-version.m4: Remove file.
3195         * modules/check-version (Files): Remove it.
3196         (configure.ac): Remove gl_CHECK_VERSION call.
3197         (Makefile.am): Augment lib_SOURCES.
3198
3199 2011-05-23  Bruno Haible  <bruno@clisp.org>
3200
3201         chdir-safer: Move AC_LIBOBJ invocations to module description.
3202         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
3203         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
3204
3205 2011-05-23  Bruno Haible  <bruno@clisp.org>
3206
3207         canonicalize: Move AC_LIBOBJ invocations to module description.
3208         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
3209         AC_LIBOBJ invocation.
3210         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
3211
3212 2011-05-23  Bruno Haible  <bruno@clisp.org>
3213
3214         canon-host: Move AC_LIBOBJ invocations to module description.
3215         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
3216         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
3217         instead of gl_CANON_HOST.
3218         (Makefile.am): Augment lib_SOURCES.
3219
3220 2011-05-23  Bruno Haible  <bruno@clisp.org>
3221
3222         backupfile: Move AC_LIBOBJ invocations to module description.
3223         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
3224         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
3225
3226 2011-05-23  Bruno Haible  <bruno@clisp.org>
3227
3228         argmatch: Move AC_LIBOBJ invocations to module description.
3229         * m4/argmatch.m4: Remove file.
3230         * modules/argmatch (Files): Remove it.
3231         (configure.ac): Remove gl_ARGMATCH call.
3232         (Makefile.am): Augment lib_SOURCES.
3233
3234 2011-05-23  Bruno Haible  <bruno@clisp.org>
3235
3236         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
3237         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
3238         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
3239
3240 2011-05-23  Bruno Haible  <bruno@clisp.org>
3241
3242         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
3243         * m4/arcfour.m4: Remove file.
3244         * modules/crypto/arcfour (Files): Remove it.
3245         (configure.ac): Remove gl_ARCFOUR call.
3246         (Makefile.am): Augment lib_SOURCES.
3247
3248 2011-05-22  Bruno Haible  <bruno@clisp.org>
3249
3250         write: Move AC_LIBOBJ invocations to module description.
3251         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
3252         * modules/write (configure.ac): ... to here.
3253
3254 2011-05-22  Bruno Haible  <bruno@clisp.org>
3255
3256         wmemset: Move AC_LIBOBJ invocations to module description.
3257         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
3258         here...
3259         * modules/wmemset (configure.ac): ... to here.
3260
3261 2011-05-22  Bruno Haible  <bruno@clisp.org>
3262
3263         wmemmove: Move AC_LIBOBJ invocations to module description.
3264         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
3265         here...
3266         * modules/wmemmove (configure.ac): ... to here.
3267
3268 2011-05-22  Bruno Haible  <bruno@clisp.org>
3269
3270         wmemcpy: Move AC_LIBOBJ invocations to module description.
3271         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
3272         here...
3273         * modules/wmemcpy (configure.ac): ... to here.
3274
3275 2011-05-22  Bruno Haible  <bruno@clisp.org>
3276
3277         wmemcmp: Move AC_LIBOBJ invocations to module description.
3278         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
3279         here...
3280         * modules/wmemcmp (configure.ac): ... to here.
3281
3282 2011-05-22  Bruno Haible  <bruno@clisp.org>
3283
3284         wmemchr: Move AC_LIBOBJ invocations to module description.
3285         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
3286         here...
3287         * modules/wmemchr (configure.ac): ... to here.
3288
3289 2011-05-22  Bruno Haible  <bruno@clisp.org>
3290
3291         wcswidth: Move AC_LIBOBJ invocations to module description.
3292         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
3293         here...
3294         * modules/wcswidth (configure.ac): ... to here.
3295
3296 2011-05-22  Bruno Haible  <bruno@clisp.org>
3297
3298         wcwidth: Respect rules for use of AC_LIBOBJ.
3299         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
3300         invocation from here...
3301         * modules/wcwidth (configure.ac): ... to here.
3302         (Depends-on): Update conditions.
3303
3304 2011-05-22  Bruno Haible  <bruno@clisp.org>
3305
3306         wctype: Move AC_LIBOBJ invocations to module description.
3307         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
3308         invocation from here...
3309         * modules/wctype (configure.ac): ... to here.
3310         (Depends-on): Update conditions.
3311
3312 2011-05-22  Bruno Haible  <bruno@clisp.org>
3313
3314         wctrans: Move AC_LIBOBJ invocations to module description.
3315         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
3316         invocation from here...
3317         * modules/wctrans (configure.ac): ... to here.
3318
3319 2011-05-22  Bruno Haible  <bruno@clisp.org>
3320
3321         wctomb: Move AC_LIBOBJ invocations to module description.
3322         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
3323         invocations from here...
3324         * modules/wctomb (configure.ac): ... to here.
3325
3326 2011-05-22  Bruno Haible  <bruno@clisp.org>
3327
3328         wctob: Move AC_LIBOBJ invocations to module description.
3329         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
3330         gl_PREREQ_WCTOB invocations from here...
3331         * modules/wctob (configure.ac): ... to here.
3332         (Depends-on): Update conditions.
3333
3334 2011-05-22  Bruno Haible  <bruno@clisp.org>
3335
3336         wcsxfrm: Move AC_LIBOBJ invocations to module description.
3337         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
3338         here...
3339         * modules/wcsxfrm (configure.ac): ... to here.
3340
3341 2011-05-22  Bruno Haible  <bruno@clisp.org>
3342
3343         wcstok: Move AC_LIBOBJ invocations to module description.
3344         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
3345         * modules/wcstok (configure.ac): ... to here.
3346
3347 2011-05-22  Bruno Haible  <bruno@clisp.org>
3348
3349         wcsstr: Move AC_LIBOBJ invocations to module description.
3350         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
3351         * modules/wcsstr (configure.ac): ... to here.
3352
3353 2011-05-22  Bruno Haible  <bruno@clisp.org>
3354
3355         wcsspn: Move AC_LIBOBJ invocations to module description.
3356         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
3357         * modules/wcsspn (configure.ac): ... to here.
3358
3359 2011-05-22  Bruno Haible  <bruno@clisp.org>
3360
3361         wcsrtombs: Move AC_LIBOBJ invocations to module description.
3362         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
3363         gl_PREREQ_WCSRTOMBS invocations from here...
3364         * modules/wcsrtombs (configure.ac): ... to here.
3365
3366 2011-05-22  Bruno Haible  <bruno@clisp.org>
3367
3368         wcsrchr: Move AC_LIBOBJ invocations to module description.
3369         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
3370         here...
3371         * modules/wcsrchr (configure.ac): ... to here.
3372
3373 2011-05-22  Bruno Haible  <bruno@clisp.org>
3374
3375         wcspbrk: Move AC_LIBOBJ invocations to module description.
3376         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
3377         here...
3378         * modules/wcspbrk (configure.ac): ... to here.
3379
3380 2011-05-22  Bruno Haible  <bruno@clisp.org>
3381
3382         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
3383         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
3384         gl_PREREQ_WCSNRTOMBS invocations from here...
3385         * modules/wcsnrtombs (configure.ac): ... to here.
3386
3387 2011-05-22  Bruno Haible  <bruno@clisp.org>
3388
3389         wcsnlen: Move AC_LIBOBJ invocations to module description.
3390         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
3391         here...
3392         * modules/wcsnlen (configure.ac): ... to here.
3393
3394 2011-05-22  Bruno Haible  <bruno@clisp.org>
3395
3396         wcsncpy: Move AC_LIBOBJ invocations to module description.
3397         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
3398         here...
3399         * modules/wcsncpy (configure.ac): ... to here.
3400
3401 2011-05-22  Bruno Haible  <bruno@clisp.org>
3402
3403         wcsncmp: Move AC_LIBOBJ invocations to module description.
3404         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
3405         here...
3406         * modules/wcsncmp (configure.ac): ... to here.
3407
3408 2011-05-22  Bruno Haible  <bruno@clisp.org>
3409
3410         wcsncat: Move AC_LIBOBJ invocations to module description.
3411         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
3412         here...
3413         * modules/wcsncat (configure.ac): ... to here.
3414
3415 2011-05-22  Bruno Haible  <bruno@clisp.org>
3416
3417         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
3418         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
3419         from here...
3420         * modules/wcsncasecmp (configure.ac): ... to here.
3421
3422 2011-05-22  Bruno Haible  <bruno@clisp.org>
3423
3424         wcslen: Move AC_LIBOBJ invocations to module description.
3425         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
3426         * modules/wcslen (configure.ac): ... to here.
3427
3428 2011-05-22  Bruno Haible  <bruno@clisp.org>
3429
3430         wcsdup: Move AC_LIBOBJ invocations to module description.
3431         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
3432         * modules/wcsdup (configure.ac): ... to here.
3433
3434 2011-05-22  Bruno Haible  <bruno@clisp.org>
3435
3436         wcscspn: Move AC_LIBOBJ invocations to module description.
3437         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
3438         here...
3439         * modules/wcscspn (configure.ac): ... to here.
3440
3441 2011-05-22  Bruno Haible  <bruno@clisp.org>
3442
3443         wcscpy: Move AC_LIBOBJ invocations to module description.
3444         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
3445         * modules/wcscpy (configure.ac): ... to here.
3446
3447 2011-05-22  Bruno Haible  <bruno@clisp.org>
3448
3449         wcscoll: Move AC_LIBOBJ invocations to module description.
3450         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
3451         here...
3452         * modules/wcscoll (configure.ac): ... to here.
3453
3454 2011-05-22  Bruno Haible  <bruno@clisp.org>
3455
3456         wcscmp: Move AC_LIBOBJ invocations to module description.
3457         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
3458         * modules/wcscmp (configure.ac): ... to here.
3459
3460 2011-05-22  Bruno Haible  <bruno@clisp.org>
3461
3462         wcschr: Move AC_LIBOBJ invocations to module description.
3463         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
3464         * modules/wcschr (configure.ac): ... to here.
3465
3466 2011-05-22  Bruno Haible  <bruno@clisp.org>
3467
3468         wcscat: Move AC_LIBOBJ invocations to module description.
3469         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
3470         * modules/wcscat (configure.ac): ... to here.
3471
3472 2011-05-22  Bruno Haible  <bruno@clisp.org>
3473
3474         wcscasecmp: Move AC_LIBOBJ invocations to module description.
3475         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
3476         here...
3477         * modules/wcscasecmp (configure.ac): ... to here.
3478
3479 2011-05-22  Bruno Haible  <bruno@clisp.org>
3480
3481         wcrtomb: Move AC_LIBOBJ invocations to module description.
3482         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
3483         invocations from here...
3484         * modules/wcrtomb (configure.ac): ... to here.
3485
3486 2011-05-22  Bruno Haible  <bruno@clisp.org>
3487
3488         wcpncpy: Move AC_LIBOBJ invocations to module description.
3489         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
3490         here...
3491         * modules/wcpncpy (configure.ac): ... to here.
3492
3493 2011-05-22  Bruno Haible  <bruno@clisp.org>
3494
3495         wcpcpy: Move AC_LIBOBJ invocations to module description.
3496         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
3497         * modules/wcpcpy (configure.ac): ... to here.
3498
3499 2011-05-22  Bruno Haible  <bruno@clisp.org>
3500
3501         waitpid: Move AC_LIBOBJ invocations to module description.
3502         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
3503         invocation from here...
3504         * modules/waitpid (configure.ac): ... to here.
3505
3506 2011-05-22  Bruno Haible  <bruno@clisp.org>
3507
3508         utimensat: Move AC_LIBOBJ invocations to module description.
3509         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
3510         here...
3511         * modules/utimensat (configure.ac): ... to here.
3512
3513 2011-05-22  Bruno Haible  <bruno@clisp.org>
3514
3515         usleep: Move AC_LIBOBJ invocations to module description.
3516         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
3517         here...
3518         * modules/usleep (configure.ac): ... to here.
3519
3520 2011-05-22  Bruno Haible  <bruno@clisp.org>
3521
3522         unlockpt: Move AC_LIBOBJ invocations to module description.
3523         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
3524         gl_PREREQ_UNLOCKPT invocations from here...
3525         * modules/unlockpt (configure.ac): ... to here.
3526
3527 2011-05-22  Bruno Haible  <bruno@clisp.org>
3528
3529         unlink: Respect rules for use of AC_LIBOBJ.
3530         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
3531         * modules/unlink (configure.ac): ... to here.
3532
3533 2011-05-22  Bruno Haible  <bruno@clisp.org>
3534
3535         uname: Move AC_LIBOBJ invocations to module description.
3536         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
3537         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
3538         here...
3539         * modules/uname (configure.ac): ... to here.
3540
3541 2011-05-22  Bruno Haible  <bruno@clisp.org>
3542
3543         ttyname_r: Move AC_LIBOBJ invocations to module description.
3544         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
3545         gl_PREREQ_TTYNAME_R invocations from here...
3546         * modules/ttyname_r (configure.ac): ... to here.
3547
3548 2011-05-22  Bruno Haible  <bruno@clisp.org>
3549
3550         tsearch: Move AC_LIBOBJ invocations to module description.
3551         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
3552         invocations from here...
3553         * modules/tsearch (configure.ac): ... to here.
3554
3555 2011-05-22  Bruno Haible  <bruno@clisp.org>
3556
3557         towctrans: Move AC_LIBOBJ invocations to module description.
3558         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
3559         AC_LIBOBJ invocation from here...
3560         * modules/towctrans (configure.ac): ... to here.
3561
3562 2011-05-22  Bruno Haible  <bruno@clisp.org>
3563
3564         tmpfile: Move AC_LIBOBJ invocations to module description.
3565         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
3566         invocations from here...
3567         * modules/tmpfile (configure.ac): ... to here.
3568
3569 2011-05-22  Bruno Haible  <bruno@clisp.org>
3570
3571         times: Move AC_LIBOBJ invocations to module description.
3572         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
3573         * modules/times (configure.ac): ... to here.
3574
3575 2011-05-22  Bruno Haible  <bruno@clisp.org>
3576
3577         time_r: Move AC_LIBOBJ invocations to module description.
3578         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
3579         invocations from here...
3580         * modules/time_r (configure.ac): ... to here.
3581
3582 2011-05-22  Bruno Haible  <bruno@clisp.org>
3583
3584         timegm: Move AC_LIBOBJ invocations to module description.
3585         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
3586         invocations from here...
3587         * modules/timegm (configure.ac): ... to here.
3588
3589 2011-05-22  Bruno Haible  <bruno@clisp.org>
3590
3591         tcgetsid: Move AC_LIBOBJ invocations to module description.
3592         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
3593         and gl_PREREQ_TCGETSID invocations from here...
3594         * modules/tcgetsid (configure.ac): ... to here.
3595         (Depends-on): Update conditions.
3596
3597 2011-05-22  Bruno Haible  <bruno@clisp.org>
3598
3599         symlinkat: Move AC_LIBOBJ invocations to module description.
3600         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
3601         here...
3602         * modules/symlinkat (configure.ac): ... to here.
3603
3604 2011-05-22  Bruno Haible  <bruno@clisp.org>
3605
3606         symlink: Move AC_LIBOBJ invocations to module description.
3607         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
3608         here...
3609         * modules/symlink (configure.ac): ... to here.
3610
3611 2011-05-22  Bruno Haible  <bruno@clisp.org>
3612
3613         strverscmp: Move AC_LIBOBJ invocations to module description.
3614         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
3615         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
3616         from here...
3617         * modules/strverscmp (configure.ac): ... to here.
3618
3619 2011-05-22  Bruno Haible  <bruno@clisp.org>
3620
3621         strtok_r: Move AC_LIBOBJ invocations to module description.
3622         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
3623         and gl_PREREQ_STRTOK_R invocations from here...
3624         * modules/strtok_r (configure.ac): ... to here.
3625         (Depends-on): Update conditions.
3626
3627 2011-05-22  Bruno Haible  <bruno@clisp.org>
3628
3629         strtoumax: Move AC_LIBOBJ invocations to module description.
3630         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
3631         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
3632         from here...
3633         * modules/strtoumax (configure.ac): ... to here.
3634
3635 2011-05-22  Bruno Haible  <bruno@clisp.org>
3636
3637         strtoimax: Move AC_LIBOBJ invocations to module description.
3638         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
3639         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
3640         from here...
3641         * modules/strtoimax (configure.ac): ... to here.
3642
3643 2011-05-22  Bruno Haible  <bruno@clisp.org>
3644
3645         strtoull: Move AC_LIBOBJ invocations to module description.
3646         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
3647         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
3648         from here...
3649         * modules/strtoull (configure.ac): ... to here.
3650
3651 2011-05-22  Bruno Haible  <bruno@clisp.org>
3652
3653         strtoll: Move AC_LIBOBJ invocations to module description.
3654         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
3655         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
3656         here...
3657         * modules/strtoll (configure.ac): ... to here.
3658
3659 2011-05-22  Bruno Haible  <bruno@clisp.org>
3660
3661         strtoul: Move AC_LIBOBJ invocations to module description.
3662         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
3663         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
3664         * modules/strtoul (configure.ac): ... to here.
3665
3666 2011-05-22  Bruno Haible  <bruno@clisp.org>
3667
3668         strtol: Move AC_LIBOBJ invocations to module description.
3669         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
3670         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
3671         * modules/strtol (configure.ac): ... to here.
3672
3673 2011-05-22  Bruno Haible  <bruno@clisp.org>
3674
3675         strtod: Move AC_LIBOBJ invocations to module description.
3676         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
3677         invocations from here...
3678         * modules/strtod (configure.ac): ... to here.
3679
3680 2011-05-22  Bruno Haible  <bruno@clisp.org>
3681
3682         strstr*: Move AC_LIBOBJ invocations to module description.
3683         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
3684         invocations from here...
3685         * modules/strstr-simple (configure.ac): ... to here.
3686         * modules/strstr (configure.ac): ... and here.
3687
3688 2011-05-22  Bruno Haible  <bruno@clisp.org>
3689
3690         strsignal: Move AC_LIBOBJ invocations to module description.
3691         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
3692         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
3693         * modules/strsignal (configure.ac): ... to here.
3694         (Depends-on): Update conditions.
3695
3696 2011-05-22  Bruno Haible  <bruno@clisp.org>
3697
3698         strsep: Move AC_LIBOBJ invocations to module description.
3699         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
3700         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
3701         here...
3702         * modules/strsep (configure.ac): ... to here.
3703
3704 2011-05-22  Bruno Haible  <bruno@clisp.org>
3705
3706         strptime: Move AC_LIBOBJ invocations to module description.
3707         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
3708         gl_PREREQ_STRPTIME invocations from here...
3709         * modules/strptime (configure.ac): ... to here.
3710
3711 2011-05-22  Bruno Haible  <bruno@clisp.org>
3712
3713         strpbrk: Move AC_LIBOBJ invocations to module description.
3714         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
3715         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
3716         here...
3717         * modules/strpbrk (configure.ac): ... to here.
3718
3719 2011-05-22  Bruno Haible  <bruno@clisp.org>
3720
3721         strnlen: Move AC_LIBOBJ invocations to module description.
3722         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
3723         invocations from here...
3724         * modules/strnlen (configure.ac): ... to here.
3725
3726 2011-05-22  Bruno Haible  <bruno@clisp.org>
3727
3728         strndup: Move AC_LIBOBJ invocations to module description.
3729         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
3730         invocations from here...
3731         * modules/strndup (configure.ac): ... to here.
3732         (Depends-on): Update conditions.
3733
3734 2011-05-22  Bruno Haible  <bruno@clisp.org>
3735
3736         strncat: Move AC_LIBOBJ invocations to module description.
3737         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
3738         invocations from here...
3739         * modules/strncat (configure.ac): ... to here.
3740
3741 2011-05-22  Bruno Haible  <bruno@clisp.org>
3742
3743         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
3744         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
3745         invocations from here...
3746         * modules/strdup (configure.ac): ... to here.
3747         * modules/strdup-posix (configure.ac): ... and here.
3748
3749 2011-05-22  Bruno Haible  <bruno@clisp.org>
3750
3751         strcspn: Move AC_LIBOBJ invocations to module description.
3752         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
3753         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
3754         here...
3755         * modules/strcspn (configure.ac): ... to here.
3756
3757 2011-05-22  Bruno Haible  <bruno@clisp.org>
3758
3759         strchrnul: Move AC_LIBOBJ invocations to module description.
3760         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
3761         gl_PREREQ_STRCHRNUL invocations from here...
3762         * modules/strchrnul (configure.ac): ... to here.
3763
3764 2011-05-22  Bruno Haible  <bruno@clisp.org>
3765
3766         strcasestr*: Move AC_LIBOBJ invocations to module description.
3767         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
3768         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
3769         * modules/strcasestr-simple (configure.ac): ... to here.
3770         * modules/strcasestr (configure.ac): ... and here.
3771
3772 2011-05-22  Bruno Haible  <bruno@clisp.org>
3773
3774         strcase: Move AC_LIBOBJ invocations to module description.
3775         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
3776         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
3777         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
3778         gl_PREREQ_STRNCASECMP invocations from here...
3779         * modules/strcase (configure.ac): ... to here.
3780
3781 2011-05-22  Bruno Haible  <bruno@clisp.org>
3782
3783         stpncpy: Move AC_LIBOBJ invocations to module description.
3784         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
3785         here...
3786         * modules/stpncpy (configure.ac): ... to here.
3787
3788 2011-05-22  Bruno Haible  <bruno@clisp.org>
3789
3790         stpcpy: Move AC_LIBOBJ invocations to module description.
3791         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
3792         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
3793         here...
3794         * modules/stpcpy (configure.ac): ... to here.
3795
3796 2011-05-21  Bruno Haible  <bruno@clisp.org>
3797
3798         stat: Move AC_LIBOBJ invocations to module description.
3799         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
3800         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
3801         here...
3802         * modules/stat (configure.ac): ... to here.
3803
3804 2011-05-21  Bruno Haible  <bruno@clisp.org>
3805
3806         sleep: Move AC_LIBOBJ invocations to module description.
3807         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
3808         * modules/sleep (configure.ac): ... to here.
3809
3810 2011-05-21  Bruno Haible  <bruno@clisp.org>
3811
3812         signbit: Move AC_LIBOBJ invocations to module description.
3813         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
3814         * modules/signbit (configure.ac): ... to here.
3815
3816 2011-05-21  Bruno Haible  <bruno@clisp.org>
3817
3818         sigprocmask: Move AC_LIBOBJ invocations to module description.
3819         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
3820         gl_PREREQ_SIGPROMASK invocations from here...
3821         * modules/sigprocmask (configure.ac): ... to here.
3822
3823 2011-05-21  Bruno Haible  <bruno@clisp.org>
3824
3825         sigaction: Move AC_LIBOBJ invocations to module description.
3826         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
3827         gl_PREREQ_SIGACTION invocations from here...
3828         * modules/sigaction (configure.ac): ... to here.
3829
3830 2011-05-21  Bruno Haible  <bruno@clisp.org>
3831
3832         sig2str: Move AC_LIBOBJ invocations to module description.
3833         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
3834         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
3835         here...
3836         * modules/sig2str (configure.ac): ... to here.
3837
3838 2011-05-21  Bruno Haible  <bruno@clisp.org>
3839
3840         setlocale: Move AC_LIBOBJ invocations to module description.
3841         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
3842         gl_PREREQ_SETLOCALE invocations from here...
3843         * modules/setlocale (configure.ac): ... to here.
3844
3845 2011-05-21  Bruno Haible  <bruno@clisp.org>
3846
3847         unsetenv: Move AC_LIBOBJ invocations to module description.
3848         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
3849         and gl_PREREQ_UNSETENV invocations from here...
3850         * modules/unsetenv (configure.ac): ... to here.
3851         (Depends-on): Update.
3852
3853 2011-05-21  Bruno Haible  <bruno@clisp.org>
3854
3855         setenv: Move AC_LIBOBJ invocations to module description.
3856         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
3857         here...
3858         * modules/setenv (configure.ac): ... to here.
3859
3860 2011-05-21  Bruno Haible  <bruno@clisp.org>
3861
3862         selinux-h: Move AC_LIBOBJ invocations to module description.
3863         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
3864         AC_LIBOBJ invocation from here...
3865         * modules/selinux-h (configure.ac): ... to here.
3866
3867 2011-05-21  Bruno Haible  <bruno@clisp.org>
3868
3869         select: Respect rules for use of AC_LIBOBJ.
3870         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
3871         here...
3872         * modules/select (configure.ac): ... to here.
3873
3874 2011-05-21  Bruno Haible  <bruno@clisp.org>
3875
3876         scandir: Move AC_LIBOBJ invocations to module description.
3877         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
3878         invocations from here...
3879         * modules/scandir (configure.ac): ... to here.
3880
3881 2011-05-21  Bruno Haible  <bruno@clisp.org>
3882
3883         rpmatch: Move AC_LIBOBJ invocations to module description.
3884         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
3885         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
3886         here...
3887         * modules/rpmatch (configure.ac): ... to here.
3888
3889 2011-05-21  Bruno Haible  <bruno@clisp.org>
3890
3891         rmdir: Respect rules for use of AC_LIBOBJ.
3892         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
3893         * modules/rmdir (configure.ac): ... to here.
3894
3895 2011-05-21  Bruno Haible  <bruno@clisp.org>
3896
3897         renameat: Move AC_LIBOBJ invocations to module description.
3898         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
3899         here...
3900         * modules/renameat (configure.ac): ... to here.
3901
3902 2011-05-21  Bruno Haible  <bruno@clisp.org>
3903
3904         rename: Respect rules for use of AC_LIBOBJ.
3905         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
3906         here...
3907         * modules/rename (configure.ac): ... to here.
3908
3909 2011-05-21  Bruno Haible  <bruno@clisp.org>
3910
3911         remove: Move AC_LIBOBJ invocations to module description.
3912         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
3913         here...
3914         * modules/remove (configure.ac): ... to here.
3915
3916 2011-05-21  Bruno Haible  <bruno@clisp.org>
3917
3918         relocatable-lib: Move AC_LIBOBJ invocations to module description.
3919         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
3920         macro.
3921         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
3922         * modules/relocatable-lib (configure.ac): ... to here.
3923         * modules/relocatable-prog-wrapper (configure.ac): Invoke
3924         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
3925
3926 2011-05-21  Bruno Haible  <bruno@clisp.org>
3927
3928         relocatable-prog: Move AC_LIBOBJ invocations to module description.
3929         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
3930         here...
3931         * modules/relocatable-prog (configure.ac): ... to here.
3932
3933 2011-05-21  Bruno Haible  <bruno@clisp.org>
3934
3935         regex: Move AC_LIBOBJ invocations to module description.
3936         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
3937         invocations from here...
3938         * modules/regex (configure.ac): ... to here.
3939
3940 2011-05-21  Bruno Haible  <bruno@clisp.org>
3941
3942         realloc-*: Move AC_LIBOBJ invocations to module description.
3943         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
3944         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
3945         AC_LIBOBJ invocations from here...
3946         * modules/realloc-gnu (configure.ac): ... to here.
3947         * modules/realloc-posix (configure.ac): ... and here.
3948
3949 2011-05-21  Bruno Haible  <bruno@clisp.org>
3950
3951         readutmp: Move AC_LIBOBJ invocations to module description.
3952         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
3953         * modules/readutmp (configure.ac): ... to here.
3954
3955 2011-05-21  Bruno Haible  <bruno@clisp.org>
3956
3957         readlinkat: Move AC_LIBOBJ invocations to module description.
3958         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
3959         here...
3960         * modules/readlinkat (configure.ac): ... to here.
3961
3962 2011-05-21  Bruno Haible  <bruno@clisp.org>
3963
3964         readlink: Move AC_LIBOBJ invocations to module description.
3965         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
3966         gl_PREREQ_READLINK invocations from here...
3967         * modules/readlink (configure.ac): ... to here.
3968
3969 2011-05-21  Bruno Haible  <bruno@clisp.org>
3970
3971         readline: Move AC_LIBOBJ invocations to module description.
3972         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
3973         gl_PREREQ_READLINE invocations from here...
3974         * modules/readline (configure.ac): ... to here.
3975
3976 2011-05-21  Bruno Haible  <bruno@clisp.org>
3977
3978         read: Move AC_LIBOBJ invocations to module description.
3979         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
3980         * modules/read (configure.ac): ... to here.
3981
3982 2011-05-21  Bruno Haible  <bruno@clisp.org>
3983
3984         rawmemchr: Move AC_LIBOBJ invocations to module description.
3985         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
3986         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
3987         from here...
3988         * modules/rawmemchr (configure.ac): ... to here.
3989
3990 2011-05-21  Bruno Haible  <bruno@clisp.org>
3991
3992         random_r: Move AC_LIBOBJ invocations to module description.
3993         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
3994         gl_PREREQ_RANDOM_R invocations from here...
3995         * modules/random_r (configure.ac): ... to here.
3996
3997 2011-05-21  Bruno Haible  <bruno@clisp.org>
3998
3999         pwrite: Move AC_LIBOBJ invocations to module description.
4000         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
4001         * modules/pwrite (configure.ac): ... to here.
4002
4003 2011-05-21  Bruno Haible  <bruno@clisp.org>
4004
4005         putenv: Move AC_LIBOBJ invocations to module description.
4006         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
4007         * modules/putenv (configure.ac): ... to here.
4008
4009 2011-05-21  Bruno Haible  <bruno@clisp.org>
4010
4011         login_tty: Move AC_LIBOBJ invocations to module description.
4012         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
4013         * modules/login_tty (configure.ac): ... to here.
4014
4015 2011-05-21  Bruno Haible  <bruno@clisp.org>
4016
4017         openpty: Move AC_LIBOBJ invocations to module description.
4018         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
4019         * modules/openpty (configure.ac): ... to here.
4020
4021 2011-05-21  Bruno Haible  <bruno@clisp.org>
4022
4023         forkpty: Move AC_LIBOBJ invocations to module description.
4024         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
4025         * modules/forkpty (configure.ac): ... to here.
4026
4027 2011-05-21  Bruno Haible  <bruno@clisp.org>
4028
4029         ptsname: Move AC_LIBOBJ invocations to module description.
4030         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
4031         invocations from here...
4032         * modules/ptsname (configure.ac): ... to here.
4033
4034 2011-05-21  Bruno Haible  <bruno@clisp.org>
4035
4036         pread: Move AC_LIBOBJ invocations to module description.
4037         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
4038         * modules/pread (configure.ac): ... to here.
4039
4040 2011-05-21  Bruno Haible  <bruno@clisp.org>
4041
4042         posix_spawn*: Move AC_LIBOBJ invocations to module description.
4043         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
4044         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
4045         * modules/posix_spawn (configure.ac): ... to here.
4046         * modules/posix_spawnp (configure.ac): ... and here.
4047
4048 2011-05-21  Bruno Haible  <bruno@clisp.org>
4049
4050         popen: Move AC_LIBOBJ invocations to module description.
4051         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
4052         invocations from here...
4053         * modules/popen (configure.ac): ... to here.
4054
4055 2011-05-21  Bruno Haible  <bruno@clisp.org>
4056
4057         poll: Move AC_LIBOBJ invocations to module description.
4058         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
4059         invocations from here...
4060         * modules/poll (configure.ac): ... to here.
4061
4062 2011-05-21  Bruno Haible  <bruno@clisp.org>
4063
4064         pipe-posix: Move AC_LIBOBJ invocations to module description.
4065         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
4066         * modules/pipe-posix (configure.ac): ... to here.
4067
4068 2011-05-21  Bruno Haible  <bruno@clisp.org>
4069
4070         openat: Respect rules for use of AC_LIBOBJ.
4071         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
4072         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
4073         * modules/openat (configure.ac): ... to here.
4074
4075 2011-05-21  Bruno Haible  <bruno@clisp.org>
4076
4077         obstack-printf*: Move AC_LIBOBJ invocations to module description.
4078         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
4079         invocation from here...
4080         * modules/obstack-printf (configure.ac): ... to here.
4081         * modules/obstack-printf-posix (configure.ac): ... and here.
4082
4083 2011-05-21  Bruno Haible  <bruno@clisp.org>
4084
4085         nl_langinfo: Move AC_LIBOBJ invocations to module description.
4086         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
4087         from here...
4088         * modules/nl_langinfo (configure.ac): ... to here.
4089
4090 2011-05-21  Bruno Haible  <bruno@clisp.org>
4091
4092         nanosleep: Move AC_LIBOBJ invocations to module description.
4093         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
4094         gl_PREREQ_NANOSLEEP invocations from here...
4095         * modules/nanosleep (configure.ac): ... to here.
4096
4097 2011-05-21  Bruno Haible  <bruno@clisp.org>
4098
4099         mountlist: Move AC_LIBOBJ invocations to module description.
4100         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
4101         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
4102         * modules/mountlist (configure.ac): ... to here.
4103
4104 2011-05-21  Bruno Haible  <bruno@clisp.org>
4105
4106         mktime: Respect rules for use of AC_LIBOBJ.
4107         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
4108         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
4109         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
4110         (gl_FUNC_MKTIME_INTERNAL): ... and here...
4111         * modules/mktime (configure.ac): ... to here.
4112         * modules/mktime-internal (configure.ac): ... and here.
4113         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
4114
4115 2011-05-21  Bruno Haible  <bruno@clisp.org>
4116
4117         mkstemps: Move AC_LIBOBJ invocations to module description.
4118         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
4119         here...
4120         * modules/mkstemps (configure.ac): ... to here.
4121
4122 2011-05-21  Bruno Haible  <bruno@clisp.org>
4123
4124         mkstemp: Move AC_LIBOBJ invocations to module description.
4125         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
4126         gl_PREREQ_MKSTEMP invocations from here...
4127         * modules/mkstemp (configure.ac): ... to here.
4128
4129 2011-05-21  Bruno Haible  <bruno@clisp.org>
4130
4131         mkostemps: Move AC_LIBOBJ invocations to module description.
4132         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
4133         here...
4134         * modules/mkostemps (configure.ac): ... to here.
4135
4136 2011-05-21  Bruno Haible  <bruno@clisp.org>
4137
4138         mkostemp: Move AC_LIBOBJ invocations to module description.
4139         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
4140         gl_PREREQ_MKOSTEMP invocations from here...
4141         * modules/mkostemp (configure.ac): ... to here.
4142
4143 2011-05-21  Bruno Haible  <bruno@clisp.org>
4144
4145         mknod: Move AC_LIBOBJ invocations to module description.
4146         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
4147         * modules/mknod (configure.ac): ... to here.
4148
4149 2011-05-21  Bruno Haible  <bruno@clisp.org>
4150
4151         mkfifoat: Move AC_LIBOBJ invocations to module description.
4152         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
4153         here...
4154         * modules/mkfifoat (configure.ac): ... to here.
4155
4156 2011-05-21  Bruno Haible  <bruno@clisp.org>
4157
4158         mkfifo: Respect rules for use of AC_LIBOBJ.
4159         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
4160         here...
4161         * modules/mkfifo (configure.ac): ... to here.
4162
4163 2011-05-21  Bruno Haible  <bruno@clisp.org>
4164
4165         mkdtemp: Move AC_LIBOBJ invocations to module description.
4166         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
4167         invocations from here...
4168         * modules/mkdtemp (configure.ac): ... to here.
4169
4170 2011-05-21  Bruno Haible  <bruno@clisp.org>
4171
4172         mkdir: Move AC_LIBOBJ invocations to module description.
4173         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
4174         * modules/mkdir (configure.ac): ... to here.
4175
4176 2011-05-21  Bruno Haible  <bruno@clisp.org>
4177
4178         memset: Move AC_LIBOBJ invocations to module description.
4179         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
4180         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
4181         here...
4182         * modules/memset (configure.ac): ... to here.
4183
4184 2011-05-21  Bruno Haible  <bruno@clisp.org>
4185
4186         memrchr: Move AC_LIBOBJ invocations to module description.
4187         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
4188         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
4189         here...
4190         * modules/memrchr (configure.ac): ... to here.
4191
4192 2011-05-21  Bruno Haible  <bruno@clisp.org>
4193
4194         mempcpy: Move AC_LIBOBJ invocations to module description.
4195         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
4196         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
4197         here...
4198         * modules/mempcpy (configure.ac): ... to here.
4199
4200 2011-05-21  Bruno Haible  <bruno@clisp.org>
4201
4202         memmove: Move AC_LIBOBJ invocations to module description.
4203         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
4204         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
4205         here...
4206         * modules/memmove (configure.ac): ... to here.
4207
4208 2011-05-21  Bruno Haible  <bruno@clisp.org>
4209
4210         memmem*: Move AC_LIBOBJ invocations to module description.
4211         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
4212         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
4213         here...
4214         (gl_FUNC_MEMMEM): ... and here...
4215         * modules/memmem-simple (configure.ac): ... to here.
4216         * modules/memmem (configure.ac): ... and here.
4217
4218 2011-05-21  Bruno Haible  <bruno@clisp.org>
4219
4220         memcpy: Move AC_LIBOBJ invocations to module description.
4221         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
4222         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
4223         here...
4224         * modules/memcpy (configure.ac): ... to here.
4225
4226 2011-05-21  Bruno Haible  <bruno@clisp.org>
4227
4228         memcmp: Simplify autoconf macro.
4229         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
4230         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
4231         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
4232
4233 2011-05-21  Bruno Haible  <bruno@clisp.org>
4234
4235         memcmp: Move AC_LIBOBJ invocations to module description.
4236         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
4237         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
4238         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
4239         * modules/memcmp (configure.ac): ... to here.
4240         (Depends-on): Update conditions.
4241
4242 2011-05-21  Bruno Haible  <bruno@clisp.org>
4243
4244         memchr: Respect rules for use of AC_LIBOBJ.
4245         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
4246         invocations from here...
4247         * modules/memchr (configure.ac): ... to here.
4248
4249 2011-05-21  Bruno Haible  <bruno@clisp.org>
4250
4251         mbtowc: Move AC_LIBOBJ invocations to module description.
4252         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
4253         invocations from here...
4254         * modules/mbtowc (configure.ac): ... to here.
4255
4256 2011-05-21  Bruno Haible  <bruno@clisp.org>
4257
4258         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
4259         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
4260         gl_PREREQ_MBSRTOWCS invocations from here...
4261         * modules/mbsrtowcs (configure.ac): ... to here.
4262
4263 2011-05-21  Bruno Haible  <bruno@clisp.org>
4264
4265         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
4266         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
4267         gl_PREREQ_MBSNRTOWCS invocations from here...
4268         * modules/mbsnrtowcs (configure.ac): ... to here.
4269
4270 2011-05-21  Bruno Haible  <bruno@clisp.org>
4271
4272         mbsinit: Move AC_LIBOBJ invocations to module description.
4273         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
4274         invocations from here...
4275         * modules/mbsinit (configure.ac): ... to here.
4276
4277 2011-05-21  Bruno Haible  <bruno@clisp.org>
4278
4279         mbrlen: Move AC_LIBOBJ invocations to module description.
4280         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
4281         invocations from here...
4282         * modules/mbrlen (configure.ac): ... to here.
4283
4284 2011-05-21  Bruno Haible  <bruno@clisp.org>
4285
4286         mbrtowc: Respect rules for use of AC_LIBOBJ.
4287         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
4288         invocations from here...
4289         * modules/mbrtowc (configure.ac): ... to here.
4290
4291 2011-05-21  Bruno Haible  <bruno@clisp.org>
4292
4293         malloc-*: Move AC_LIBOBJ invocations to module description.
4294         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
4295         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
4296         AC_LIBOBJ invocations from here...
4297         * modules/malloc-gnu (configure.ac): ... to here.
4298         * modules/malloc-posix (configure.ac): ... and here.
4299
4300 2011-05-21  Bruno Haible  <bruno@clisp.org>
4301
4302         lstat, openat: Respect rules for use of AC_LIBOBJ.
4303         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
4304         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
4305         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
4306         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
4307         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
4308         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
4309         here.
4310         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
4311
4312 2011-05-21  Bruno Haible  <bruno@clisp.org>
4313
4314         lseek: Move AC_LIBOBJ invocations to module description.
4315         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
4316         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
4317         * modules/lseek (configure.ac): ... to here.
4318
4319 2011-05-21  Bruno Haible  <bruno@clisp.org>
4320
4321         linkat: Move AC_LIBOBJ invocations to module description.
4322         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
4323         here...
4324         * modules/linkat (configure.ac): ... to here.
4325
4326 2011-05-21  Bruno Haible  <bruno@clisp.org>
4327
4328         link: Respect rules for use of AC_LIBOBJ.
4329         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
4330         * modules/link (configure.ac): ... to here.
4331
4332 2011-05-21  Bruno Haible  <bruno@clisp.org>
4333
4334         lchown: Move AC_LIBOBJ invocations to module description.
4335         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
4336         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
4337         * modules/lchown (configure.ac): ... to here.
4338
4339 2011-05-21  Bruno Haible  <bruno@clisp.org>
4340
4341         iswctype: Move AC_LIBOBJ invocations to module description.
4342         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
4343         here...
4344         * modules/iswctype (configure.ac): ... to here.
4345
4346 2011-05-21  Bruno Haible  <bruno@clisp.org>
4347
4348         iswblank: Move AC_LIBOBJ invocations to module description.
4349         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
4350         here...
4351         * modules/iswblank (configure.ac): ... to here.
4352
4353 2011-05-21  Bruno Haible  <bruno@clisp.org>
4354
4355         atanl: Move AC_LIBOBJ invocations to module description.
4356         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
4357         * modules/atanl (configure.ac): ... to here.
4358
4359 2011-05-21  Bruno Haible  <bruno@clisp.org>
4360
4361         acosl: Move AC_LIBOBJ invocations to module description.
4362         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
4363         * modules/acosl (configure.ac): ... to here.
4364
4365 2011-05-21  Bruno Haible  <bruno@clisp.org>
4366
4367         asinl: Respect rules for use of AC_LIBOBJ.
4368         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
4369         * modules/asinl (configure.ac): ... to here.
4370
4371 2011-05-21  Bruno Haible  <bruno@clisp.org>
4372
4373         tanl: Move AC_LIBOBJ invocations to module description.
4374         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
4375         * modules/tanl (configure.ac): ... to here.
4376
4377 2011-05-21  Bruno Haible  <bruno@clisp.org>
4378
4379         cosl: Move AC_LIBOBJ invocations to module description.
4380         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
4381         * modules/cosl (configure.ac): ... to here.
4382
4383 2011-05-21  Bruno Haible  <bruno@clisp.org>
4384
4385         sinl: Move AC_LIBOBJ invocations to module description.
4386         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
4387         * modules/sinl (configure.ac): ... to here.
4388
4389 2011-05-21  Bruno Haible  <bruno@clisp.org>
4390
4391         logl: Move AC_LIBOBJ invocations to module description.
4392         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
4393         * modules/logl (configure.ac): ... to here.
4394
4395 2011-05-21  Bruno Haible  <bruno@clisp.org>
4396
4397         expl: Move AC_LIBOBJ invocations to module description.
4398         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
4399         * modules/expl (configure.ac): ... to here.
4400
4401 2011-05-21  Bruno Haible  <bruno@clisp.org>
4402
4403         roundl: Move AC_LIBOBJ invocations to module description.
4404         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
4405         * modules/roundl (configure.ac): ... to here.
4406
4407 2011-05-21  Bruno Haible  <bruno@clisp.org>
4408
4409         round: Move AC_LIBOBJ invocations to module description.
4410         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
4411         * modules/round (configure.ac): ... to here.
4412
4413 2011-05-21  Bruno Haible  <bruno@clisp.org>
4414
4415         roundf: Move AC_LIBOBJ invocations to module description.
4416         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
4417         * modules/roundf (configure.ac): ... to here.
4418
4419 2011-05-21  Bruno Haible  <bruno@clisp.org>
4420
4421         truncl: Move AC_LIBOBJ invocations to module description.
4422         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
4423         * modules/truncl (configure.ac): ... to here.
4424
4425 2011-05-21  Bruno Haible  <bruno@clisp.org>
4426
4427         trunc: Move AC_LIBOBJ invocations to module description.
4428         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
4429         * modules/trunc (configure.ac): ... to here.
4430
4431 2011-05-21  Bruno Haible  <bruno@clisp.org>
4432
4433         truncf: Move AC_LIBOBJ invocations to module description.
4434         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
4435         * modules/truncf (configure.ac): ... to here.
4436
4437 2011-05-21  Bruno Haible  <bruno@clisp.org>
4438
4439         ceill: Move AC_LIBOBJ invocations to module description.
4440         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
4441         * modules/ceill (configure.ac): ... to here.
4442
4443 2011-05-21  Bruno Haible  <bruno@clisp.org>
4444
4445         ceil: Move AC_LIBOBJ invocations to module description.
4446         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
4447         * modules/ceil (configure.ac): ... to here.
4448
4449 2011-05-21  Bruno Haible  <bruno@clisp.org>
4450
4451         ceilf: Move AC_LIBOBJ invocations to module description.
4452         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
4453         * modules/ceilf (configure.ac): ... to here.
4454
4455 2011-05-21  Bruno Haible  <bruno@clisp.org>
4456
4457         floorl: Respect rules for use of AC_LIBOBJ.
4458         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
4459         * modules/floorl (configure.ac): ... to here.
4460
4461 2011-05-21  Bruno Haible  <bruno@clisp.org>
4462
4463         floor: Respect rules for use of AC_LIBOBJ.
4464         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
4465         * modules/floor (configure.ac): ... to here.
4466
4467 2011-05-21  Bruno Haible  <bruno@clisp.org>
4468
4469         floorf: Move AC_LIBOBJ invocations to module description.
4470         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
4471         * modules/floorf (configure.ac): ... to here.
4472
4473 2011-05-20  Bruno Haible  <bruno@clisp.org>
4474
4475         sqrtl: Respect rules for use of AC_LIBOBJ.
4476         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
4477         * modules/sqrtl (configure.ac): ... to here.
4478
4479 2011-05-20  Bruno Haible  <bruno@clisp.org>
4480
4481         ldexpl: Respect rules for use of AC_LIBOBJ.
4482         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
4483         * modules/ldexpl (configure.ac): ... to here.
4484
4485 2011-05-20  Bruno Haible  <bruno@clisp.org>
4486
4487         frexpl*: Respect rules for use of AC_LIBOBJ.
4488         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
4489         invocation from here...
4490         * modules/frexpl (configure.ac): ... to here.
4491         * modules/frexpl-nolibm (configure.ac): ... and here.
4492
4493 2011-05-20  Bruno Haible  <bruno@clisp.org>
4494
4495         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
4496         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
4497         invocation from here...
4498         * modules/frexp (configure.ac): ... to here.
4499         * modules/frexp-nolibm (configure.ac): ... and here.
4500
4501 2011-05-20  Bruno Haible  <bruno@clisp.org>
4502
4503         isnan: Respect rules for use of AC_LIBOBJ.
4504         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
4505         invocations here.
4506         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
4507         REPLACE_ISNAN.
4508         * modules/isnand (configure.ac): Likewise.
4509         * modules/isnanl (configure.ac): Likewise.
4510
4511 2011-05-20  Bruno Haible  <bruno@clisp.org>
4512
4513         isnanl*: Respect rules for use of AC_LIBOBJ.
4514         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
4515         invocation from here...
4516         * modules/isnanl (configure.ac): ... to here.
4517         * modules/isnanl-nolibm (configure.ac): ... and here.
4518
4519 2011-05-20  Bruno Haible  <bruno@clisp.org>
4520
4521         isnand*: Move AC_LIBOBJ invocations to module description.
4522         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
4523         invocation from here...
4524         * modules/isnand (configure.ac): ... to here.
4525         * modules/isnand-nolibm (configure.ac): ... and here.
4526
4527 2011-05-20  Bruno Haible  <bruno@clisp.org>
4528
4529         isnanf*: Move AC_LIBOBJ invocations to module description.
4530         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
4531         invocation from here...
4532         * modules/isnanf (configure.ac): ... to here.
4533         * modules/isnanf-nolibm (configure.ac): ... and here.
4534
4535 2011-05-20  Bruno Haible  <bruno@clisp.org>
4536
4537         isnan*: Separate the AC_LIBOBJ invocations.
4538         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
4539         AC_LIBOBJ invocation.
4540         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
4541         here.
4542         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
4543         AC_LIBOBJ invocation.
4544         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
4545         here.
4546         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
4547         AC_LIBOBJ invocation.
4548         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
4549         here.
4550         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
4551
4552 2011-05-08  Bruno Haible  <bruno@clisp.org>
4553
4554         isinf: Move AC_LIBOBJ invocations to module description.
4555         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
4556         * modules/isinf (configure.ac): ... to here.
4557
4558 2011-05-08  Bruno Haible  <bruno@clisp.org>
4559
4560         isfinite: Move AC_LIBOBJ invocations to module description.
4561         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
4562         * modules/isfinite (configure.ac): ... to here.
4563
4564 2011-05-08  Bruno Haible  <bruno@clisp.org>
4565
4566         isblank: Move AC_LIBOBJ invocations to module description.
4567         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
4568         here...
4569         * modules/isblank (configure.ac): ... to here.
4570
4571 2011-05-08  Bruno Haible  <bruno@clisp.org>
4572
4573         isapipe: Move AC_LIBOBJ invocations to module description.
4574         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
4575         gl_PREREQ_ISAPIPE invocations from here...
4576         * modules/isapipe (configure.ac): ... to here.
4577         (Depends-on): Update condition.
4578
4579 2011-05-08  Bruno Haible  <bruno@clisp.org>
4580
4581         ioctl: Move AC_LIBOBJ invocations to module description.
4582         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
4583         invocations from here...
4584         * modules/ioctl (configure.ac): ... to here.
4585         (Depends-on): Update condition.
4586
4587 2011-05-08  Bruno Haible  <bruno@clisp.org>
4588
4589         imaxdiv: Move AC_LIBOBJ invocations to module description.
4590         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
4591         invocations from here...
4592         * modules/imaxdiv (configure.ac): ... to here.
4593
4594 2011-05-08  Bruno Haible  <bruno@clisp.org>
4595
4596         imaxabs: Move AC_LIBOBJ invocations to module description.
4597         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
4598         invocations from here...
4599         * modules/imaxabs (configure.ac): ... to here.
4600
4601 2011-05-08  Bruno Haible  <bruno@clisp.org>
4602
4603         getaddrinfo: Move AC_LIBOBJ invocations to module description.
4604         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
4605         AC_LIBOBJ invocations from here...
4606         * modules/getaddrinfo (configure.ac): ... to here.
4607         (Depends-on): Add conditions.
4608
4609 2011-05-08  Bruno Haible  <bruno@clisp.org>
4610
4611         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
4612         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
4613         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
4614         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
4615         (gl_PREREQ_INET_PTON): ... from here.
4616         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
4617         gl_PREREQ_INET_PTON here.
4618         (Depends-on): Update condition.
4619
4620 2011-05-08  Bruno Haible  <bruno@clisp.org>
4621
4622         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
4623         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
4624         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
4625         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
4626         (gl_PREREQ_INET_NTOP): ... from here.
4627         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
4628         gl_PREREQ_INET_NTOP here.
4629         (Depends-on): Update condition.
4630
4631 2011-05-08  Bruno Haible  <bruno@clisp.org>
4632
4633         iconv_open: Move AC_LIBOBJ invocations to module description.
4634         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
4635         AC_LIBOBJ invocations from here...
4636         * modules/iconv_open (configure.ac): ... to here.
4637
4638 2011-05-08  Bruno Haible  <bruno@clisp.org>
4639
4640         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
4641         If module 'iconv_open' is among the main modules and module
4642         'iconv_open-utf' is among the tests dependencies, then
4643         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
4644         return the special iconv_t values. Therefore iconv() and iconv_close()
4645         must support these special iconv_t values, already in lib, not only in
4646         tests.
4647         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
4648         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
4649         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
4650         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
4651         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
4652         (Depends-on): Add the dependencies of iconv_open-utf.
4653         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
4654         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
4655         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
4656
4657 2011-05-08  Bruno Haible  <bruno@clisp.org>
4658
4659         group-member: Move AC_LIBOBJ invocations to module description.
4660         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
4661         gl_PREREQ_GROUP_MEMBER invocations from here...
4662         * modules/group-member (configure.ac): ... to here.
4663
4664 2011-05-08  Bruno Haible  <bruno@clisp.org>
4665
4666         grantpt: Move AC_LIBOBJ invocations to module description.
4667         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
4668         invocations from here...
4669         * modules/grantpt (configure.ac): ... to here.
4670
4671 2011-05-08  Bruno Haible  <bruno@clisp.org>
4672
4673         glob: Move AC_LIBOBJ invocations to module description.
4674         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
4675         from here...
4676         * modules/glob (configure.ac): ... to here.
4677
4678 2011-05-08  Bruno Haible  <bruno@clisp.org>
4679
4680         getusershell: Move AC_LIBOBJ invocations to module description.
4681         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
4682         Move AC_LIBOBJ invocation from here...
4683         * modules/getusershell (configure.ac): ... to here.
4684         (Depends-on): Update condition.
4685
4686 2011-05-08  Bruno Haible  <bruno@clisp.org>
4687
4688         gettimeofday: Move AC_LIBOBJ invocations to module description.
4689         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
4690         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
4691         gl_PREREQ_GETTIMEOFDAY invocations from here...
4692         * modules/gettimeofday (configure.ac): ... to here.
4693
4694 2011-05-08  Bruno Haible  <bruno@clisp.org>
4695
4696         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
4697         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
4698         just gl_FUNC_TZSET.
4699         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
4700         (gl_FUNC_TZSET_CLOBBER): Remove actions.
4701         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
4702         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
4703
4704 2011-05-08  Bruno Haible  <bruno@clisp.org>
4705
4706         getsubopt: Move AC_LIBOBJ invocations to module description.
4707         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
4708         gl_PREREQ_GETSUBOPT invocations from here...
4709         * modules/getsubopt (configure.ac): ... to here.
4710
4711 2011-05-08  Bruno Haible  <bruno@clisp.org>
4712
4713         getpass-gnu: Move AC_LIBOBJ invocations to module description.
4714         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
4715         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
4716         * modules/getpass-gnu (configure.ac): ... to here.
4717
4718 2011-05-08  Bruno Haible  <bruno@clisp.org>
4719
4720         getpass: Move AC_LIBOBJ invocations to module description.
4721         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
4722         gl_PREREQ_GETPASS invocations from here...
4723         * modules/getpass (configure.ac): ... to here.
4724
4725 2011-05-08  Bruno Haible  <bruno@clisp.org>
4726
4727         getpagesize: Move AC_LIBOBJ invocations to module description.
4728         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
4729         from here...
4730         * modules/getpagesize (configure.ac): ... to here.
4731
4732 2011-05-08  Bruno Haible  <bruno@clisp.org>
4733
4734         getopt: Move AC_LIBOBJ invocations to module description.
4735         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
4736         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
4737         invocations from here...
4738         * modules/getopt-gnu (configure.ac): ... to here.
4739         * modules/getopt-posix (configure.ac): ... and here.
4740         (Depends-on): Update condition.
4741
4742 2011-05-08  Bruno Haible  <bruno@clisp.org>
4743
4744         getopt, argp: Respect rules for use of AC_LIBOBJ.
4745         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
4746         (gl_REPLACE_GETOPT_ALWAYS): New macro.
4747         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
4748         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
4749
4750 2011-05-08  Bruno Haible  <bruno@clisp.org>
4751
4752         getlogin_r: Move AC_LIBOBJ invocations to module description.
4753         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
4754         gl_PREREQ_GETLOGIN_R invocations from here...
4755         * modules/getlogin_r (configure.ac): ... to here.
4756
4757 2011-05-08  Bruno Haible  <bruno@clisp.org>
4758
4759         getlogin: Move AC_LIBOBJ invocations to module description.
4760         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
4761         here...
4762         * modules/getlogin (configure.ac): ... to here.
4763
4764 2011-05-08  Bruno Haible  <bruno@clisp.org>
4765
4766         getloadavg: Move AC_LIBOBJ invocations to module description.
4767         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
4768         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
4769         * modules/getloadavg (configure.ac): ... to here.
4770
4771 2011-05-08  Bruno Haible  <bruno@clisp.org>
4772
4773         gethrxtime: Move AC_LIBOBJ invocations to module description.
4774         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
4775         LIB_GETHRXTIME from here...
4776         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
4777         invocations from here...
4778         * modules/gethrxtime (configure.ac): ... to here.
4779
4780 2011-05-08  Bruno Haible  <bruno@clisp.org>
4781
4782         gethostname: Move AC_LIBOBJ invocations to module description.
4783         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
4784         gl_PREREQ_GETHOSTNAME invocations from here...
4785         * modules/gethostname (configure.ac): ... to here.
4786
4787 2011-05-08  Bruno Haible  <bruno@clisp.org>
4788
4789         getgroups: Move AC_LIBOBJ invocations to module description.
4790         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
4791         here...
4792         * modules/getgroups (configure.ac): ... to here.
4793
4794 2011-05-08  Bruno Haible  <bruno@clisp.org>
4795
4796         getdtablesize: Move AC_LIBOBJ invocations to module description.
4797         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
4798         invocation from here...
4799         * modules/getdtablesize (configure.ac): ... to here.
4800
4801 2011-05-08  Bruno Haible  <bruno@clisp.org>
4802
4803         getdomainname: Move AC_LIBOBJ invocations to module description.
4804         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
4805         gl_PREREQ_GETDOMAINNAME invocations from here...
4806         * modules/getdomainname (configure.ac): ... to here.
4807
4808 2011-05-08  Bruno Haible  <bruno@clisp.org>
4809
4810         getline: Move AC_LIBOBJ invocations to module description.
4811         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
4812         invocations from here...
4813         * modules/getline (configure.ac): ... to here.
4814
4815 2011-05-08  Bruno Haible  <bruno@clisp.org>
4816
4817         getline: Simplify.
4818         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
4819         It's already handled through the module dependency.
4820
4821 2011-05-08  Bruno Haible  <bruno@clisp.org>
4822
4823         getdelim: Move AC_LIBOBJ invocations to module description.
4824         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
4825         and gl_PREREQ_GETDELIM invocations from here...
4826         * modules/getdelim (configure.ac): ... to here.
4827         (Depends-on): Fix condition.
4828
4829 2011-05-08  Bruno Haible  <bruno@clisp.org>
4830
4831         getcwd: Move AC_LIBOBJ invocations to module description.
4832         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
4833         invocations from here...
4834         * modules/getcwd (configure.ac): ... to here.
4835
4836 2011-05-08  Bruno Haible  <bruno@clisp.org>
4837
4838         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
4839         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
4840         here...
4841         * modules/getcwd-lgpl (configure.ac): ... to here.
4842
4843 2011-05-07  Bruno Haible  <bruno@clisp.org>
4844
4845         crypto/gc: Move AC_LIBOBJ invocations to module description.
4846         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
4847         * modules/crypto/gc (configure.ac): ... to here.
4848
4849 2011-05-07  Bruno Haible  <bruno@clisp.org>
4850
4851         fwriting: Move AC_LIBOBJ invocations to module description.
4852         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
4853         here...
4854         * modules/fwriting (configure.ac): ... to here.
4855
4856 2011-05-07  Bruno Haible  <bruno@clisp.org>
4857
4858         fwritable: Move AC_LIBOBJ invocations to module description.
4859         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
4860         here...
4861         * modules/fwritable (configure.ac): ... to here.
4862
4863 2011-05-07  Bruno Haible  <bruno@clisp.org>
4864
4865         futimens: Move AC_LIBOBJ invocations to module description.
4866         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
4867         here...
4868         * modules/futimens (configure.ac): ... to here.
4869
4870 2011-05-07  Bruno Haible  <bruno@clisp.org>
4871
4872         ftruncate: Move AC_LIBOBJ invocations to module description.
4873         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
4874         gl_PREREQ_FTRUNCATE invocations from here...
4875         * modules/ftruncate (configure.ac): ... to here.
4876
4877 2011-05-07  Bruno Haible  <bruno@clisp.org>
4878
4879         fsync: Move AC_LIBOBJ invocations to module description.
4880         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
4881         invocations from here...
4882         * modules/fsync (configure.ac): ... to here.
4883
4884 2011-05-07  Bruno Haible  <bruno@clisp.org>
4885
4886         fsusage: Move AC_LIBOBJ invocations to module description.
4887         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
4888         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
4889         * modules/fsusage (configure.ac): ... to here.
4890
4891 2011-05-07  Bruno Haible  <bruno@clisp.org>
4892
4893         freopen: Move AC_LIBOBJ invocations to module description.
4894         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
4895         invocations from here...
4896         * modules/freopen (configure.ac): ... to here.
4897
4898 2011-05-07  Bruno Haible  <bruno@clisp.org>
4899
4900         free: Move AC_LIBOBJ invocations to module description.
4901         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
4902         invocations from here...
4903         * modules/free (configure.ac): ... to here.
4904
4905 2011-05-07  Bruno Haible  <bruno@clisp.org>
4906
4907         freadable: Move AC_LIBOBJ invocations to module description.
4908         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
4909         here...
4910         * modules/freadable (configure.ac): ... to here.
4911
4912 2011-05-07  Bruno Haible  <bruno@clisp.org>
4913
4914         fpurge: Move AC_LIBOBJ invocations to module description.
4915         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
4916         invocations from here...
4917         * modules/fpurge (configure.ac): ... to here.
4918
4919 2011-05-07  Bruno Haible  <bruno@clisp.org>
4920
4921         fpending: Move AC_LIBOBJ invocations to module description.
4922         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
4923         gl_FUNC_FPENDING.
4924         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
4925         invocations from here...
4926         * modules/fpending (configure.ac): ... to here.
4927
4928 2011-05-07  Bruno Haible  <bruno@clisp.org>
4929
4930         fopen: Move AC_LIBOBJ invocations to module description.
4931         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
4932         invocations from here...
4933         * modules/fopen (configure.ac): ... to here.
4934
4935 2011-05-07  Bruno Haible  <bruno@clisp.org>
4936
4937         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
4938         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
4939         gl_FUNC_FNMATCH_POSIX.
4940         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
4941         invocations from here...
4942         * modules/fnmatch (configure.ac): ... to here.
4943         * modules/fnmatch-gnu (configure.ac): ... and here.
4944
4945 2011-05-07  Bruno Haible  <bruno@clisp.org>
4946
4947         flock: Move AC_LIBOBJ invocations to module description.
4948         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
4949         invocations from here...
4950         * modules/flock (configure.ac): ... to here.
4951
4952 2011-05-07  Bruno Haible  <bruno@clisp.org>
4953
4954         fileblocks: Move AC_LIBOBJ invocations to module description.
4955         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
4956         gl_PREREQ_FILEBLOCKS invocations from here...
4957         * modules/fileblocks (configure.ac): ... to here.
4958
4959 2011-05-06  Bruno Haible  <bruno@clisp.org>
4960
4961         fflush: Move AC_LIBOBJ invocations to module description.
4962         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
4963         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
4964         invocations from here...
4965         * modules/fflush (configure.ac): ... to here.
4966
4967 2011-05-06  Bruno Haible  <bruno@clisp.org>
4968
4969         fdopendir: Move AC_LIBOBJ invocations to module description.
4970         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
4971         here...
4972         * modules/fdopendir (configure.ac): ... to here.
4973         (Depends-on): Improve conditions.
4974
4975 2011-05-06  Bruno Haible  <bruno@clisp.org>
4976
4977         _Exit: Move AC_LIBOBJ invocations to module description.
4978         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
4979         invocations from here...
4980         * modules/_Exit (configure.ac): ... to here.
4981
4982 2011-05-21  Bruno Haible  <bruno@clisp.org>
4983
4984         euidaccess: Respect rules for use of AC_LIBOBJ.
4985         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
4986         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
4987         from here...
4988         * modules/euidaccess (configure.ac): ... to here.
4989
4990 2011-05-06  Bruno Haible  <bruno@clisp.org>
4991
4992         error: Move AC_LIBOBJ invocations to module description.
4993         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
4994         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
4995         invocations from here...
4996         * modules/error (configure.ac): ... to here.
4997
4998 2011-05-06  Bruno Haible  <bruno@clisp.org>
4999
5000         duplocale: Move AC_LIBOBJ invocations to module description.
5001         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
5002         gl_PREREQ_DUPLOCALE invocations from here...
5003         * modules/duplocale (configure.ac): ... to here.
5004
5005 2011-05-05  Bruno Haible  <bruno@clisp.org>
5006
5007         dirfd: Move AC_LIBOBJ invocations to module description.
5008         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
5009         gl_FUNC_DIRFD.
5010         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
5011         here...
5012         * modules/dirfd (configure.ac): ... to here.
5013         (Depends-on): Fix condition.
5014
5015 2011-05-05  Bruno Haible  <bruno@clisp.org>
5016
5017         chown: Respect rules for use of AC_LIBOBJ.
5018         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
5019         * modules/chown (configure.ac): ... to here.
5020
5021 2011-05-05  Bruno Haible  <bruno@clisp.org>
5022
5023         chdir-long: Move AC_LIBOBJ invocations to module description.
5024         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
5025         gl_PREREQ_CHDIR_LONG invocations from here...
5026         * modules/chdir-long (configure.ac): ... to here.
5027
5028 2011-05-05  Bruno Haible  <bruno@clisp.org>
5029
5030         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
5031         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
5032         from here...
5033         * modules/canonicalize-lgpl (configure.ac): ... to here.
5034
5035 2011-05-05  Bruno Haible  <bruno@clisp.org>
5036
5037         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
5038         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
5039         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
5040         REPLACE_CALLOC.
5041         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
5042         * modules/calloc-gnu (configure.ac): Likewise.
5043
5044 2011-05-05  Bruno Haible  <bruno@clisp.org>
5045
5046         btowc: Move AC_LIBOBJ invocations to module description.
5047         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
5048         invocations from here...
5049         * modules/btowc (configure.ac): ... to here.
5050
5051 2011-05-21  Bruno Haible  <bruno@clisp.org>
5052
5053         atexit: Move AC_LIBOBJ invocations to module description.
5054         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
5055         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
5056         here...
5057         * modules/atexit (configure.ac): ... to here.
5058
5059 2011-05-05  Bruno Haible  <bruno@clisp.org>
5060
5061         atoll: Move AC_LIBOBJ invocations to module description.
5062         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
5063         invocations from here...
5064         * modules/atoll (configure.ac): ... to here.
5065
5066 2011-05-05  Bruno Haible  <bruno@clisp.org>
5067
5068         argz: Move AC_LIBOBJ invocations to module description.
5069         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
5070         * modules/argz (configure.ac): ... to here.
5071
5072 2011-05-05  Bruno Haible  <bruno@clisp.org>
5073
5074         alphasort: Move AC_LIBOBJ invocations to module description.
5075         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
5076         gl_PREREQ_ALPHASORT invocations from here...
5077         * modules/alphasort (configure.ac): ... to here.
5078
5079 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
5080
5081         verify: new macro verify_expr; verify_true deprecated
5082         * NEWS: Mention this.
5083         * doc/verify.texi (Compile-time Assertions): Document this.
5084         * lib/verify.h (verify_true): Deprecate.
5085         (verify_expr): New macro.
5086         * tests/test-verify.c (function): Test verify_expr.
5087
5088 2011-06-14  Jim Meyering  <meyering@redhat.com>
5089
5090         init.sh: give more portable redirection-related advice in a comment
5091         * tests/init.sh (stderr_fileno_): Update the advice in comments.
5092         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
5093         for lots of discussion.  Stefano Lattarini suggested the solution
5094         of putting "9>&2" after the command.  Reported by Bruno Haible.
5095
5096 2011-06-13  Bruno Haible  <bruno@clisp.org>
5097
5098         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
5099         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
5100         'none'.
5101
5102 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
5103
5104         ftoastr: use strtof only if HAVE_STRTOF
5105         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
5106         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
5107         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
5108         * modules/ftoastr (configure.ac): Check for strtof.
5109
5110 2011-06-13  Bruno Haible  <bruno@clisp.org>
5111
5112         gnulib-tool: Addendum to 2011-06-08 commit.
5113         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
5114         and --witness-c-macro have been given, augment AM_CPPFLAGS.
5115
5116 2011-06-13  Bruno Haible  <bruno@clisp.org>
5117
5118         fseeko: Provide a non-inline replacement of fseek().
5119         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
5120         * modules/fseeko (Depends-on): Add fseek.
5121         * modules/fseek (License): Change to LGPLv2+.
5122
5123 2011-06-13  Bruno Haible  <bruno@clisp.org>
5124
5125         ftello: Provide a non-inline replacement of ftell().
5126         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
5127         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
5128         not have ftello() (such as on mingw).
5129         * modules/ftello (Depends-on): Add ftell.
5130         * modules/ftell (License): Change to LGPLv2+.
5131
5132 2011-05-07  Bruno Haible  <bruno@clisp.org>
5133
5134         ftell: Move AC_LIBOBJ invocations to module description.
5135         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
5136         * modules/ftell (configure.ac): ... to here.
5137
5138 2011-05-07  Bruno Haible  <bruno@clisp.org>
5139
5140         ftello: Respect rules for use of AC_LIBOBJ.
5141         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
5142         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
5143         here...
5144         * modules/ftello (configure.ac): ... to here.
5145
5146 2011-05-07  Bruno Haible  <bruno@clisp.org>
5147
5148         fseeko: Simplify.
5149         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
5150         (gl_FUNC_FSEEKO): Inline it here.
5151
5152 2011-05-07  Bruno Haible  <bruno@clisp.org>
5153
5154         fseek: Move AC_LIBOBJ invocations to module description.
5155         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
5156         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
5157         * modules/fseek (configure.ac): ... to here.
5158
5159 2011-05-07  Bruno Haible  <bruno@clisp.org>
5160
5161         fseek: Respect rules for use of AC_LIBOBJ.
5162         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
5163         here...
5164         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
5165
5166 2011-05-07  Bruno Haible  <bruno@clisp.org>
5167
5168         fseeko: Respect rules for use of AC_LIBOBJ.
5169         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
5170         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
5171         here...
5172         * modules/fseeko (configure.ac): ... to here.
5173
5174 2011-06-13  Bruno Haible  <bruno@clisp.org>
5175
5176         gnulib-tool: Allow comments in the 'Depends-on' section.
5177         * doc/gnulib.texi (Module description): Mention comment syntax in the
5178         Depends-on section.
5179         * gnulib-tool (func_get_dependencies): Filter out comment lines.
5180
5181 2011-06-13  Bruno Haible  <bruno@clisp.org>
5182
5183         file-set.h: guard __attibute__ use, now that it's not always defined
5184         * lib/file-set.h (record_file): Use __attribute__ only with compiler
5185         versions that support it.  This fixes a coreutils build failure with
5186         the vendor cc on HP-UX 11.31.
5187
5188 2011-06-12  Bruno Haible  <bruno@clisp.org>
5189
5190         acl: Add support for HP-UX >= 11.11 JFS ACLs.
5191         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
5192         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
5193         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
5194         (acl, aclsort): New declarations.
5195         (aclv_nontrivial): New declaration.
5196         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
5197         (file_has_acl): Read also the second kind of HP-UX ACLs.
5198         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
5199         kind of HP-UX ACLs if the first kind fails.
5200         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
5201         second kind of HP-UX ACLs.
5202         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
5203         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
5204         agree.
5205         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
5206         hpuxjfs.
5207         Handle hpuxjfs.
5208         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
5209         hpuxjfs.
5210         Handle hpuxjfs.
5211         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
5212         (func_test_same_acls): Use both lsacl and getacl.
5213         Handle hpuxjfs.
5214         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
5215         (func_test_same_acls): Use both lsacl and getacl.
5216         Handle hpuxjfs.
5217
5218 2011-06-12  Bruno Haible  <bruno@clisp.org>
5219
5220         acl: Complete the 2010-08-10 fix.
5221         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
5222         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
5223         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
5224         explicitly.
5225         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
5226         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
5227
5228 2011-06-12  Bruno Haible  <bruno@clisp.org>
5229
5230         spawn-pipe tests: Comments.
5231         * tests/test-spawn-pipe-child.c (main): Update comment.
5232         Reported by James Youngman <jay@gnu.org>.
5233
5234 2011-06-11  James Youngman  <jay@gnu.org>
5235
5236         New module 'stat-size'.
5237         * modules/stat-size: New module.  Provides macros for accessing
5238         file size information in instances of struct stat.  Depends on the
5239         fileblocks module because it calls st_blocks.
5240         * lib/stat-size.h: New file, adapted from coreutils' system.h.
5241         * doc/gnulib.texi: Include stat-size.texi.
5242         * doc/stat-size.texi: Documentation for this module.
5243         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
5244         * m4/fileblocks.m4: Mention that stat-size depends on the call to
5245         AC_STRUCT_ST_BLOCKS.
5246
5247 2011-06-09  Bruno Haible  <bruno@clisp.org>
5248
5249         thread: Support pthreads-win32.
5250         * lib/glthread/thread.h (gl_thread_self): Define differently on
5251         pthreads-win32.
5252         (gl_null_thread): New declaration.
5253         (gl_thread_self_pointer): New macro.
5254         * lib/glthread/thread.c (gl_null_thread): New constant.
5255         * tests/test-lock.c: Use gl_thread_self_pointer instead of
5256         gl_thread_self.
5257         * tests/test-tls.c: Likewise.
5258         Suggested by Paul Eggert. Reported by Eric Blake.
5259
5260 2011-06-09  Bruno Haible  <bruno@clisp.org>
5261
5262         thread: Fix confusion between NULL and 0.
5263         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
5264         Reported by Paul Eggert.
5265
5266 2011-06-09  Bruno Haible  <bruno@clisp.org>
5267
5268         spawn-pipe tests: Avoid test failure on HP-UX 11.
5269         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
5270         is closed.
5271
5272 2011-06-09  Bruno Haible  <bruno@clisp.org>
5273
5274         acl tests: Fix compilation error on HP-UX 11.
5275         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
5276
5277 2011-06-09  Bruno Haible  <bruno@clisp.org>
5278
5279         rmdir: Avoid test failure on HP-UX 10.20.
5280         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
5281         EEXIST.
5282
5283 2011-06-08  Eric Blake  <eblake@redhat.com>
5284
5285         perror: fix test on mingw
5286         * modules/perror-tests (Depends-on): Add dup2.
5287
5288         strerror_r-posix: fix on MacOS
5289         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
5290         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
5291         logic bug.
5292         * lib/strerror_r.c (strerror_r): Fix the bug.
5293         * lib/strerror.c (strerror): Likewise.
5294         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
5295         problem.
5296         * doc/posix-functions/strerror.texi (strerror): Likewise.
5297         * doc/posix-functions/perror.texi (perror): Likewise.
5298         * tests/test-strerror.c (main): Enhance test.
5299         * tests/test-strerror_r.c (main): Likewise.
5300
5301 2011-06-08  Bruno Haible  <bruno@clisp.org>
5302
5303         gnulib-tool: Better isolation between different gnulib-tool invocations.
5304         * gnulib-tool: New option --witness-c-macro.
5305         (witness_c_macro): New variable.
5306         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
5307         AM_CPPFLAGS define it as a C macro.
5308         (func_emit_tests_Makefile_am): Likewise.
5309         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
5310         read it from there.
5311         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
5312         m4_define, not AC_DEFUN.
5313         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
5314         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
5315         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
5316         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
5317         s|...|...|, to substitute the values of the GNULIB_* module indicator
5318         variables.
5319         * modules/dirent (Makefile.am): Likewise.
5320         * modules/fcntl-h (Makefile.am): Likewise.
5321         * modules/iconv-h (Makefile.am): Likewise.
5322         * modules/langinfo (Makefile.am): Likewise.
5323         * modules/locale (Makefile.am): Likewise.
5324         * modules/math (Makefile.am): Likewise.
5325         * modules/netdb (Makefile.am): Likewise.
5326         * modules/poll-h (Makefile.am): Likewise.
5327         * modules/pty (Makefile.am): Likewise.
5328         * modules/search (Makefile.am): Likewise.
5329         * modules/signal (Makefile.am): Likewise.
5330         * modules/spawn (Makefile.am): Likewise.
5331         * modules/stdio (Makefile.am): Likewise.
5332         * modules/stdlib (Makefile.am): Likewise.
5333         * modules/string (Makefile.am): Likewise.
5334         * modules/sys_ioctl (Makefile.am): Likewise.
5335         * modules/sys_select (Makefile.am): Likewise.
5336         * modules/sys_socket (Makefile.am): Likewise.
5337         * modules/sys_stat (Makefile.am): Likewise.
5338         * modules/sys_times (Makefile.am): Likewise.
5339         * modules/sys_utsname (Makefile.am): Likewise.
5340         * modules/sys_wait (Makefile.am): Likewise.
5341         * modules/termios (Makefile.am): Likewise.
5342         * modules/time (Makefile.am): Likewise.
5343         * modules/unistd (Makefile.am): Likewise.
5344         * modules/wchar (Makefile.am): Likewise.
5345
5346 2011-06-08  Eric Blake  <eblake@redhat.com>
5347
5348         strerror: simplify replacement
5349         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
5350         * modules/strerror (configure.ac): No prereqs needed here...
5351         * modules/strerror-override (configure.ac): ...but this needs it.
5352         (Files): Add file for needed prereq macro.
5353
5354 2011-06-08  Bruno Haible  <bruno@clisp.org>
5355
5356         strerror_r-posix: Tweaks.
5357         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
5358         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
5359         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
5360         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
5361         (gl_FUNC_STRERROR_R): ... to here.
5362         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
5363
5364 2011-06-07  Eric Blake  <eblake@redhat.com>
5365
5366         perror: document fixed bugs
5367         * doc/posix-functions/perror.texi (perror): Document recent
5368         patches.
5369
5370 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
5371
5372         stat-time: get_stat_birthtime failure is better-defined
5373         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
5374         return a timestamp whose tv_sec and tv_nsec values are both -1.
5375         Previously, the spec said only that the tv_nsec value was negative.
5376         This upward-compatible change simplifies GNU tar a bit.
5377
5378 2011-06-07  Eric Blake  <eblake@redhat.com>
5379
5380         strerror_r-posix: work around cygwin 1.7.9
5381         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
5382         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
5383         bug without replacing strerror_r.
5384         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
5385         strerror_r is buggy, but without requiring strerror_r compilation.
5386         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
5387
5388         test-perror: relax test to ignore cygwin bug
5389         * tests/test-perror2.c (main): Relax test on requiring detection
5390         of stream errors, and use unbuffered stream.
5391         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
5392         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
5393         * doc/posix-functions/fputc.texi (fputc): Likewise.
5394         * doc/posix-functions/fputs.texi (fputs): Likewise.
5395         * doc/posix-functions/fputws.texi (fputws): Likewise.
5396         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
5397         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
5398         * doc/posix-functions/getopt.texi (getopt): Likewise.
5399         * doc/posix-functions/perror.texi (perror): Likewise.
5400         * doc/posix-functions/printf.texi (printf): Likewise.
5401         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
5402         * doc/posix-functions/psignal.texi (psignal): Likewise.
5403         * doc/posix-functions/putc.texi (putc): Likewise.
5404         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
5405         Likewise.
5406         * doc/posix-functions/putchar.texi (putchar): Likewise.
5407         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
5408         Likewise.
5409         * doc/posix-functions/puts.texi (puts): Likewise.
5410         * doc/posix-functions/putwc.texi (putwc): Likewise.
5411         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
5412         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
5413         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
5414         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
5415         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
5416         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
5417         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
5418         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
5419
5420 2011-05-22  Bruno Haible  <bruno@clisp.org>
5421
5422         strerror: Move AC_LIBOBJ invocations to module description.
5423         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
5424         gl_PREREQ_STRERROR invocations from here...
5425         * modules/strerror (configure.ac): ... to here.
5426
5427 2011-05-21  Bruno Haible  <bruno@clisp.org>
5428
5429         perror: Use common idiom.
5430         * modules/perror (configure.ac): Reorder statements.
5431
5432 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
5433
5434         tests: fix usage message in 'mktempd_'
5435         * tests/init.sh (mktempd_): In the usage message, use literal
5436         'mktempd_', not '$ME' (which is even undefined), as the name of
5437         the subroutine.
5438
5439 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
5440
5441         tests init: new function 'fatal_', for hard errors
5442         Before this patch, the only way offered by tests/init.sh to
5443         properly signal a hard error was the `framework_failure_'
5444         function.  But the error message issued by that function,
5445         as its name would suggest, refers to a set-up failure in the
5446         testsuite, while hard errors can obviously also be due to
5447         other reasons.  The best way to fix this inconsistency is to
5448         introduce a new function with a more general error message.
5449         * tests/init.sh (fatal_): New function.
5450
5451 2011-06-06  Eric Blake  <eblake@redhat.com>
5452
5453         canonicalize-lgpl: use common idiom
5454         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
5455         over newer POSIX -Rf.
5456         Reported by Bruno Haible.
5457
5458         canonicalize-lgpl: work around AIX realpath bug
5459         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
5460         * doc/posix-functions/realpath.texi (realpath): Document it.
5461         Reported by Bruno Haible.
5462
5463         strerror: work around FreeBSD bug
5464         * lib/strerror.c (strerror): Special case 0.
5465         Reported by Bruno Haible.
5466
5467         strerror-override: avoid bloating errno module
5468         * modules/errno (Files, configure.ac): Move replacement strings...
5469         * modules/strerror-override: ...to new module.
5470         * modules/strerror (Depends-on): Add strerror-override.
5471         * modules/strerror_r-posix (Depends-on): Likewise.
5472         * MODULES.html.sh: Document new module.
5473         Reported by Bruno Haible.
5474
5475 2011-06-06  Bruno Haible  <bruno@clisp.org>
5476
5477         spawn-pipe tests: Rename program.
5478         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
5479         * tests/test-spawn-pipe-child.c: Update comment.
5480         * tests/test-spawn-pipe.sh: Update.
5481         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
5482
5483         spawn-pipe tests: Link the child program only against libc.
5484         * tests/test-spawn-pipe-child.c: New file, extracted from
5485         tests/test-spawn-pipe.c.
5486         (main): Expect only one argument.
5487         (is_open): New function, copied from tests/test-pipe.c.
5488         * tests/test-spawn-pipe.c: Don't include <errno.h>.
5489         (child_main): Remove function.
5490         (test_pipe): Pass only one argument to the child program.
5491         (main): Remove child process code. Expect the child program's name as
5492         first argument.
5493         * tests/test-spawn-pipe.sh: Pass the child program's name as first
5494         argument.
5495         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
5496         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
5497         test-spawn-pipe-child against no libraries.
5498
5499 2011-06-06  Bruno Haible  <bruno@clisp.org>
5500
5501         careadlinkat: Avoid mismatch between ssize_t and int.
5502         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
5503         * lib/careadlinkat.c (careadlinkatcwd): Define always.
5504
5505 2011-06-06  Jim Meyering  <meyering@redhat.com>
5506
5507         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
5508         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
5509         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
5510
5511 2011-06-05  Bruno Haible  <bruno@clisp.org>
5512
5513         ansi-c++-opt: Interoperability with libtool.
5514         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
5515         set the variable to "no", not to ":".
5516         * NEWS: Mention the change.
5517
5518 2011-06-05  Bruno Haible  <bruno@clisp.org>
5519
5520         acl: Fix test failure on AIX 7.
5521         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
5522         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
5523
5524 2011-06-05  Bruno Haible  <bruno@clisp.org>
5525
5526         pipe-filter-ii: Fix test failure on AIX and IRIX.
5527         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
5528         with EAGAIN, retry with a smaller buffer size.
5529
5530 2011-06-05  Bruno Haible  <bruno@clisp.org>
5531
5532         localename: Fix link dependencies.
5533         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
5534         * modules/localename-tests (Makefile.am): Link test-localename with
5535         $(LIBTHREAD).
5536
5537 2011-06-05  Bruno Haible  <bruno@clisp.org>
5538
5539         error: Avoid gcc warning.
5540         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
5541
5542 2011-06-05  Bruno Haible  <bruno@clisp.org>
5543
5544         unsetenv: Avoid gcc warning.
5545         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
5546
5547 2011-06-05  Bruno Haible  <bruno@clisp.org>
5548
5549         setenv: Avoid gcc warning.
5550         * lib/setenv.c (setenv): Provide declaration if system lacks it.
5551
5552 2011-06-05  Bruno Haible  <bruno@clisp.org>
5553
5554         sys_select: Ensure memset is declared also on AIX 7.
5555         * lib/sys_select.in.h: Include <string.h> also on AIX.
5556         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
5557         self-contained also on AIX 7.1.
5558
5559 2011-06-04  Jim Meyering  <meyering@redhat.com>
5560
5561         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
5562         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
5563         function name, "error".
5564         (_gl_translatable_diag_func_re): New configurable variable.
5565
5566 2011-06-04  Bruno Haible  <bruno@clisp.org>
5567
5568         getopt: Avoid gcc warning.
5569         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
5570
5571 2011-06-04  Bruno Haible  <bruno@clisp.org>
5572
5573         strerror_r: Fix comments.
5574         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
5575         commit.
5576
5577 2011-06-04  Bruno Haible  <bruno@clisp.org>
5578
5579         perror: Fix compilation error.
5580         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
5581         Undefine fprintf, not sprintf.
5582         * modules/perror (Depends-on): Remove intprops, verify.
5583
5584 2011-06-04  Bruno Haible  <bruno@clisp.org>
5585
5586         setlocale: Enable replacement on Cygwin 1.5.
5587         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
5588         Cygwin 1.5.x.
5589         * doc/posix-functions/setlocale.texi: Mention that the problem with the
5590         LC_CTYPE category also exists on Cygwin 1.5.x.
5591
5592 2011-06-04  Bruno Haible  <bruno@clisp.org>
5593
5594         strerror-override: Don't disable symbol renamings.
5595         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
5596         * lib/strerror-override.c: Include config.h.
5597         (strerror_override): Don't undefine.
5598
5599 2011-06-03  Bruno Haible  <bruno@clisp.org>
5600
5601         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
5602         * lib/localename.h: Update copyright header.
5603         * lib/localename.c: Likewise.
5604         * lib/relocatable.h: Likewise.
5605         * lib/relocatable.c: Likewise.
5606
5607 2011-06-02  Bruno Haible  <bruno@clisp.org>
5608
5609         doc: Fix a module name.
5610         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
5611
5612 2011-06-02  Bruno Haible  <bruno@clisp.org>
5613
5614         pipe2: Remove dependency on 'nonblocking' module.
5615         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
5616         O_NONBLOCK is defined by gnulib.
5617         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
5618         is zero.
5619         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
5620         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
5621         defined by gnulib.
5622         (get_nonblocking_flag): New function.
5623         (main): Test O_NONBLOCK flag only if it is nonzero.
5624         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
5625
5626 2011-06-03  Jim Meyering  <meyering@redhat.com>
5627
5628         maint: three new prohibit-header-without-use rules
5629         Prohibit use of cloexec.h, posixver.h, same.h without use.
5630         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
5631         (sc_prohibit_posixver_without_use): Likewise.
5632         (sc_prohibit_same_without_use): Likewise.
5633
5634 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
5635
5636         allocator: 'die' routine is now given requested size
5637         * lib/allocator.h (struct allocator.die): New size arg.
5638         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
5639         If the actual problem is an ssize_t limitation, not a size_t or
5640         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
5641
5642 2011-06-01  Eric Blake  <eblake@redhat.com>
5643
5644         strerror: drop strerror_r dependency
5645         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
5646         * lib/strerror-override.c (strerror_override): ...to new file.
5647         * lib/strerror-override.h: Add prototype.
5648         * lib/strerror-impl.h: Delete.
5649         * lib/strerror.c (strerror): New implementation.
5650         * modules/errno (Files): Add new files.
5651         (configure.ac): Compile new file as appropriate.
5652         * modules/strerror (Files): Drop unused file.
5653         (Depends-on): Drop strerror_r-posix.
5654         * MODULES.html.sh: Document strerror_r-posix.
5655         Requested by Sam Steingold.
5656
5657         perror: call strerror_r directly
5658         * modules/perror (Files): Drop strerror-impl.h.
5659         * lib/perror.c (perror): Use our own stack buffer, rather than
5660         calling a wrapper that uses static storage.
5661         * doc/posix-functions/perror.texi (perror): Document a limitation
5662         of our replacement.
5663
5664         strerror_r: fix includes for FreeBSD
5665         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
5666         since we use abort on some platforms.
5667         Reported by Matthias Bolte.
5668
5669 2011-05-31  Bruno Haible  <bruno@clisp.org>
5670
5671         Fix link errors in tests: openat-die uses gettext-h.
5672         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
5673         against $(LIBINTL).
5674         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
5675         against $(LIBINTL).
5676         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
5677         $(LIBINTL).
5678         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
5679         against $(LIBINTL).
5680         * modules/linkat-tests (Makefile.am): Link test-linkat against
5681         $(LIBINTL).
5682         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
5683         $(LIBINTL).
5684         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
5685         against $(LIBINTL).
5686         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
5687         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
5688         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
5689         $(LIBINTL).
5690         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
5691         $(LIBINTL).
5692         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
5693         $(LIBINTL).
5694         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5695
5696 2011-05-31  Bruno Haible  <bruno@clisp.org>
5697
5698         Fix link errors in tests: wait-process uses gettext-h.
5699         * modules/nonblocking-pipe-tests (Makefile.am): Set
5700         test_nonblocking_pipe_main_LDADD.
5701         * modules/nonblocking-socket-tests (Makefile.am): Link
5702         test-nonblocking-socket-main against $(LIBINTL).
5703         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5704
5705 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
5706
5707         assert-h: work around 'verify' incompatibility
5708         * lib/verify.h: Use @...@ directives, not ifdef.
5709         * modules/assert-h (assert.h): Implement the directives.
5710         (assert.h): Substitute the symbol-prefix more consistently.
5711
5712 2011-05-29  Jim Meyering  <meyering@redhat.com>
5713
5714         trim: remove three superfluous assignments
5715         * lib/trim.c (trim2): Remove three superfluous assignments
5716         and correct brace positioning.
5717
5718 2011-05-29  Bruno Haible  <bruno@clisp.org>
5719
5720         wctype-h: Avoid namespace pollution on Solaris 2.6.
5721         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
5722         identifiers.
5723         * doc/posix-headers/wctype.texi: Mention the problem.
5724         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5725
5726 2011-05-28  Jim Meyering  <meyering@redhat.com>
5727
5728         parse-datetime.y: accommodate -Wstrict-overflow
5729         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
5730         placate -Wstrict-overflow.
5731
5732         trim: avoid a warning from -O2 -Wstrict-overflow
5733         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
5734
5735 2011-05-29  Bruno Haible  <bruno@clisp.org>
5736
5737         gnulib-tool: Fix bug in yesterday's commit.
5738         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
5739         twice.
5740
5741 2011-05-29  Bruno Haible  <bruno@clisp.org>
5742
5743         Allow multiple gnulib generated include files to be combined.
5744         * gnulib-tool (func_compute_include_guard_prefix): New function.
5745         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
5746         ${gl_include_guard_prefix} references.
5747         (func_import, func_create_testdir): Invoke
5748         func_compute_include_guard_prefix.
5749         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
5750         * lib/ctype.in.h: Likewise.
5751         * lib/dirent.in.h: Likewise.
5752         * lib/errno.in.h: Likewise.
5753         * lib/fcntl.in.h: Likewise.
5754         * lib/float.in.h: Likewise.
5755         * lib/getopt.in.h: Likewise.
5756         * lib/iconv.in.h: Likewise.
5757         * lib/langinfo.in.h: Likewise.
5758         * lib/locale.in.h: Likewise.
5759         * lib/math.in.h: Likewise.
5760         * lib/netdb.in.h: Likewise.
5761         * lib/netinet_in.in.h: Likewise.
5762         * lib/poll.in.h: Likewise.
5763         * lib/pthread.in.h: Likewise.
5764         * lib/pty.in.h: Likewise.
5765         * lib/sched.in.h: Likewise.
5766         * lib/se-selinux.in.h: Likewise.
5767         * lib/search.in.h: Likewise.
5768         * lib/signal.in.h: Likewise.
5769         * lib/spawn.in.h: Likewise.
5770         * lib/stdarg.in.h: Likewise.
5771         * lib/stddef.in.h: Likewise.
5772         * lib/stdint.in.h: Likewise.
5773         * lib/stdio.in.h: Likewise.
5774         * lib/stdlib.in.h: Likewise.
5775         * lib/string.in.h: Likewise.
5776         * lib/strings.in.h: Likewise.
5777         * lib/sys_file.in.h: Likewise.
5778         * lib/sys_ioctl.in.h: Likewise.
5779         * lib/sys_select.in.h: Likewise.
5780         * lib/sys_socket.in.h: Likewise.
5781         * lib/sys_stat.in.h: Likewise.
5782         * lib/sys_time.in.h: Likewise.
5783         * lib/sys_times.in.h: Likewise.
5784         * lib/sys_uio.in.h: Likewise.
5785         * lib/sys_utsname.in.h: Likewise.
5786         * lib/sys_wait.in.h: Likewise.
5787         * lib/sysexits.in.h: Likewise.
5788         * lib/termios.in.h: Likewise.
5789         * lib/time.in.h: Likewise.
5790         * lib/unistd.in.h: Likewise.
5791         * lib/wchar.in.h: Likewise.
5792         * lib/wctype.in.h: Likewise.
5793         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
5794         * modules/ctype (Makefile.am): Likewise.
5795         * modules/dirent (Makefile.am): Likewise.
5796         * modules/errno (Makefile.am): Likewise.
5797         * modules/fcntl-h (Makefile.am): Likewise.
5798         * modules/float (Makefile.am): Likewise.
5799         * modules/getopt-posix (Makefile.am): Likewise.
5800         * modules/iconv-h (Makefile.am): Likewise.
5801         * modules/langinfo (Makefile.am): Likewise.
5802         * modules/locale (Makefile.am): Likewise.
5803         * modules/math (Makefile.am): Likewise.
5804         * modules/netdb (Makefile.am): Likewise.
5805         * modules/netinet_in (Makefile.am): Likewise.
5806         * modules/poll-h (Makefile.am): Likewise.
5807         * modules/pthread (Makefile.am): Likewise.
5808         * modules/pty (Makefile.am): Likewise.
5809         * modules/sched (Makefile.am): Likewise.
5810         * modules/search (Makefile.am): Likewise.
5811         * modules/selinux-h (Makefile.am): Likewise.
5812         * modules/signal (Makefile.am): Likewise.
5813         * modules/spawn (Makefile.am): Likewise.
5814         * modules/stdarg (Makefile.am): Likewise.
5815         * modules/stddef (Makefile.am): Likewise.
5816         * modules/stdint (Makefile.am): Likewise.
5817         * modules/stdio (Makefile.am): Likewise.
5818         * modules/stdlib (Makefile.am): Likewise.
5819         * modules/string (Makefile.am): Likewise.
5820         * modules/strings (Makefile.am): Likewise.
5821         * modules/sys_file (Makefile.am): Likewise.
5822         * modules/sys_ioctl (Makefile.am): Likewise.
5823         * modules/sys_select (Makefile.am): Likewise.
5824         * modules/sys_socket (Makefile.am): Likewise.
5825         * modules/sys_stat (Makefile.am): Likewise.
5826         * modules/sys_time (Makefile.am): Likewise.
5827         * modules/sys_times (Makefile.am): Likewise.
5828         * modules/sys_uio (Makefile.am): Likewise.
5829         * modules/sys_utsname (Makefile.am): Likewise.
5830         * modules/sys_wait (Makefile.am): Likewise.
5831         * modules/sysexits (Makefile.am): Likewise.
5832         * modules/termios (Makefile.am): Likewise.
5833         * modules/time (Makefile.am): Likewise.
5834         * modules/unistd (Makefile.am): Likewise.
5835         * modules/wchar (Makefile.am): Likewise.
5836         * modules/wctype-h (Makefile.am): Likewise.
5837         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
5838
5839 2011-05-29  Bruno Haible  <bruno@clisp.org>
5840
5841         assert-h: Allow multiple gnulib generated replacements to coexist.
5842         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
5843
5844 2011-05-29  Bruno Haible  <bruno@clisp.org>
5845
5846         argp: Allow coexistence with strerror_r-posix module.
5847         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
5848         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
5849         by gnulib's <string.h> replacement), assume it has the POSIX signature,
5850         not the glibc signature.
5851
5852 2011-05-28  Bruno Haible  <bruno@clisp.org>
5853
5854         gnulib-tool: Alternative structure of testdirs, similar to --import.
5855         * gnulib-tool: New option --single-configure.
5856         (func_usage): Document it.
5857         (single_configure): New variable.
5858         (func_modules_transitive_closure_separately,
5859         func_modules_transitive_closure_separately,
5860         func_determine_use_libtests, func_modules_add_dummy_separately,
5861         func_modules_to_filelist_separately): New functions, extracted from
5862         func_import.
5863         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
5864         (func_import): Use the new functions.
5865         (func_create_testdir): Set final_modules. Handle $single_configure =
5866         true case.
5867
5868 2011-05-28  Bruno Haible  <bruno@clisp.org>
5869
5870         getloadavg: Remove an unreliable safety check.
5871         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
5872         getloadavg.c is in place.
5873         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
5874         Reported by Sam Steingold <sds@gnu.org>.
5875
5876 2011-05-28  Bruno Haible  <bruno@clisp.org>
5877
5878         doc: Cleanup yet another file produced by texinfo.tex.
5879         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
5880
5881 2011-05-28  Bruno Haible  <bruno@clisp.org>
5882
5883         Finish the conditional dependencies mechanism.
5884         * gnulib-tool: New option --no-conditional-dependencies.
5885         (func_usage): Document it. Don't mark --conditional-dependencies as
5886         experimental.
5887         (cond_dependencies): The possible values can now be true, false, empty.
5888         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
5889         (func_import): Store setting in gnulib-cache.m4 and read it from there.
5890         * doc/gnulib-tool.texi (Conditional dependencies): New section.
5891
5892 2011-05-28  Bruno Haible  <bruno@clisp.org>
5893
5894         doc: Use a recent texinfo.tex.
5895         * doc/Makefile (tex_opts): New variable.
5896         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
5897
5898 2011-05-28  Jim Meyering  <meyering@redhat.com>
5899
5900         intprops.h: adjust comment to match code change
5901         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
5902         only once, it *may* have side effects.  Also fix an unrelated typo.
5903         (_GL_INT_SIGNED): Likewise.
5904
5905 2011-05-26  Simon Josefsson  <simon@josefsson.org>
5906
5907         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
5908
5909 2011-05-26  Bruno Haible  <bruno@clisp.org>
5910
5911         mbsrchr: Avoid collision with system function on Interix.
5912         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
5913         Reported by Markus Duft <mduft@gentoo.org>.
5914
5915 2011-05-15  James Youngman  <jay@gnu.org>
5916
5917         getopt: for ambiguous options, enumerate the possibilities.
5918         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
5919         the ambiguous options when an ambiguous prefix is given. This was
5920         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
5921         glibc change was
5922         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
5923
5924 2011-05-25  Eric Blake  <eblake@redhat.com>
5925
5926         getcwd: work around mingw bug
5927         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
5928         * doc/posix-functions/getcwd.texi (getcwd): Document it.
5929         Reported by Matthias Bolte.
5930
5931 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
5932
5933         test-intprops: disable -Wtype-limits diagnostics
5934         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
5935         diagnostics.  Otherwise, the integer overflow macros generate many
5936         diagnostics.  Reported by Jim Meyering in
5937         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
5938
5939         intprops: shorten, to pacify gcc -Woverlength-strings
5940         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
5941         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
5942         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
5943         likely to run afoul of C compiler limits for string constant lengths.
5944         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
5945
5946 2011-05-24  Eric Blake  <eblake@redhat.com>
5947
5948         docs: document recently fixed glibc printf bug
5949         * doc/posix-functions/fprintf.texi (fprintf): Document it.
5950         * doc/posix-functions/printf.texi (printf): Likewise.
5951         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
5952         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
5953
5954         closein-tests: convert to init.sh
5955         * modules/closein-tests (Files): Add init.sh
5956         * tests/test-closein.sh Use it.
5957
5958         yesno-tests: convert to init.sh
5959         * modules/yesno-tests (Files): Add init.sh.
5960         * tests/test-yesno.sh: Use it.
5961
5962         atexit-tests: ensure reliable exit status
5963         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
5964         Reported by Bruno Haible.
5965
5966 2011-05-24  Bruno Haible  <bruno@clisp.org>
5967
5968         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
5969         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
5970         gl_PREREQ_STRERROR_R invocations from here...
5971         * modules/strerror_r-posix (configure.ac): ... to here.
5972
5973 2011-05-24  Eric Blake  <eblake@redhat.com>
5974
5975         strerror_r: fix missing header
5976         * lib/strerror_r.c: Avoid compiler warning about snprintf.
5977
5978         strerror_r: fix AIX test failures
5979         * lib/strerror_r.c (strerror_r): Convert silent truncation to
5980         ERANGE failure.
5981
5982         strerror_r: fix Solaris test failures
5983         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
5984         failures.
5985         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
5986
5987         strerror_r: enforce POSIX recommendations
5988         * lib/strerror_r.c (safe_copy): New helper method.
5989         (strerror_r): Guarantee a non-empty string.
5990         * tests/test-strerror_r.c (main): Enhance tests to incorporate
5991         recent POSIX rulings and to match our strerror guarantees.
5992         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
5993
5994 2011-05-24  Jim Meyering  <meyering@redhat.com>
5995
5996         test-perror2.c: avoid warning about unused variable
5997         * tests/test-perror2.c (main): Remove declaration of unused "fp".
5998
5999 2011-05-24  Eric Blake  <eblake@redhat.com>
6000
6001         perror: avoid spurious test failure on HP-UX
6002         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
6003
6004         tests: fix logic bug in init.sh
6005         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
6006         shell.
6007
6008 2011-05-24  Jim Meyering  <meyering@redhat.com>
6009
6010         utimensat: do not reference an out-of-scope buffer
6011         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
6012         declared in an inner scope, yet "times" would be dereferenced outside
6013         the scope in which "ts" was valid.
6014         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
6015         of ts[2] "out/up", so that the use of aliased "times" (via
6016         "times = ts;") does not end up referencing an out-of-scope "ts"
6017
6018         opendir-safer.c: don't clobber errno; don't close negative FD
6019         * lib/opendir-safer.c (opendir_safer):
6020         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
6021         file descriptor, and more importantly, don't clobber the
6022         offending errno value with EINVAL.  Before, upon failure
6023         of dup_safer, we would pass the negative file descriptor to
6024         fdopendir, which would clobber errno.
6025
6026 2011-05-23  Bruno Haible  <bruno@clisp.org>
6027
6028         idcache: Fix module description.
6029         * modules/idcache (Include): Set to "idcache.h".
6030
6031 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
6032
6033         gnulib-tool: fix portability problem with MacOS sed
6034         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
6035         before the "}".  Problem reported by Leo in
6036         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
6037         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
6038         sed_extract_condition1, sed_extract_condition2.
6039
6040 2011-05-23  Bruno Haible  <bruno@clisp.org>
6041
6042         hash: Simplify autoconf macro.
6043         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
6044
6045 2011-05-23  Bruno Haible  <bruno@clisp.org>
6046
6047         getugroups: Fix module description.
6048         * modules/getugroups (Include): Set to "getugroups.h".
6049
6050 2011-05-23  Bruno Haible  <bruno@clisp.org>
6051
6052         linkat: Simplify autoconf macro.
6053         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
6054
6055 2011-05-23  Bruno Haible  <bruno@clisp.org>
6056             Eric Blake  <eblake@redhat.com>
6057
6058         linkat, renameat: Update dependencies.
6059         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
6060         * modules/linkat (Depends-on): Likewise. Remove also readlink,
6061         symlinkat.
6062
6063 2011-05-23  Jim Meyering  <meyering@redhat.com>
6064
6065         maint.mk: more tight_scope improvements
6066         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
6067         (_gl_TS_headers): Define only in if-0'd block.
6068         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
6069         sometimes we must *not* use it.  Adjust uses accordingly.
6070         (sc_tight_scope): Use much simpler grep-based test to determine
6071         whether we skip this rule.
6072
6073         maint.mk: generalize/improve the tight-scope rule
6074         * top/maint.mk: Emit a warning when the test is skipped.
6075         (_gl_TS_dir): Add $(srcdir)/ prefix.
6076         (_gl_TS_function_match): Simplify, rather than trying
6077         to enumerate common types.  Otherwise, it would fail to match an
6078         "extern unsigned char const *" declaration in idutils.
6079         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
6080         a way to support use of that type of macro.
6081         (_gl_TS_var_match): Simplify regexp.
6082         (_gl_TS_obj_files): New configurable variable.
6083         (_gl_TS_headers): Likewise.
6084
6085 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
6086
6087         verify: fix bug when gnulib <assert.h> is also included
6088         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
6089         is defined, not if _GL_STATIC_ASSERT_H is not defined.
6090         Perhaps there's a better way, but this fixes the immediate problem.
6091         Problem reported by Bruno Haible in
6092         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
6093
6094 2011-05-22  Bruno Haible  <bruno@clisp.org>
6095
6096         xgetcwd: Simplify autoconf macro.
6097         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
6098
6099 2011-05-22  Bruno Haible  <bruno@clisp.org>
6100
6101         New module 'mktime-internal'.
6102         * modules/mktime-internal: New file.
6103         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
6104         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
6105         mktime_internal as a C macro if libc has __mktime_internal.
6106         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
6107         conditions.
6108         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
6109
6110 2011-05-22  Bruno Haible  <bruno@clisp.org>
6111
6112         timegm: Correct mktime replacement statements.
6113         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
6114         defining mktime as a C macro. This completes a 2009-07-28 commit.
6115
6116 2011-05-22  Bruno Haible  <bruno@clisp.org>
6117
6118         timegm: Simplify autoconf macro.
6119         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
6120
6121 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
6122
6123         clock-time: change to LGPLv2+.
6124         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
6125         BSD-like but we have no mark for that; this is good enough for now.
6126
6127 2011-05-21  Bruno Haible  <bruno@clisp.org>
6128
6129         strerror_r: Fix comments.
6130         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
6131
6132 2011-05-21  Bruno Haible  <bruno@clisp.org>
6133
6134         relocatable-prog-wrapper: Fix possible link error.
6135         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
6136         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
6137         (gl_FUNC_SETENV): ... to here.
6138         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
6139         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
6140
6141 2011-05-21  Bruno Haible  <bruno@clisp.org>
6142
6143         relocatable-prog-wrapper: Assume strerror() exists.
6144         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
6145         m4/strerror.m4.
6146         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
6147         * lib/relocwrapper.c: Remove mention of strerror module.
6148         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
6149         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
6150         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
6151         C macro.
6152
6153 2011-05-21  Bruno Haible  <bruno@clisp.org>
6154
6155         select: Simplify replacement idiom.
6156         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
6157         Win32 platforms.
6158         * lib/sys_select.in.h (select): Simplify accordingly.
6159         * modules/select (Depends-on): Likewise.
6160
6161 2011-05-21  Bruno Haible  <bruno@clisp.org>
6162
6163         mkdir-p: Simplify autoconf macro.
6164         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
6165         gl_FUNC_LCHOWN.
6166
6167 2011-05-21  Eric Blake  <eblake@redhat.com>
6168
6169         strerror_r: avoid clobbering strerror on cygwin
6170         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
6171         fall back instead to sys_errlist.
6172         * modules/strerror (configure.ac): Add witness.
6173         * tests/test-strerror_r.c (main): Enhance test.
6174         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
6175         * tests/test-perror2.c (main): Free memory before exit.
6176
6177 2011-05-21  Bruno Haible  <bruno@clisp.org>
6178
6179         mkdtemp: Use gnulib naming conventions.
6180         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
6181         * modules/mkdtemp (configure.ac): Update.
6182
6183 2011-05-20  Eric Blake  <eblake@redhat.com>
6184
6185         strerror_r: avoid corrupting errno on Solaris
6186         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
6187         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
6188
6189         strerror_r: avoid compiler warning
6190         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
6191
6192         strerror_r: simplify AIX code
6193         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
6194
6195         test-perror: avoid spurious failure on FreeBSD
6196         * modules/perror-tests (Depends-on): Add strerror, now that
6197         strerror_r no longer pulls it in.
6198
6199 2011-05-20  Bruno Haible  <bruno@clisp.org>
6200
6201         strerror_r-posix: Remove unused dependencies.
6202         * modules/strerror_r-posix (Depends-on): Remove strerror.
6203         Reported by Eric Blake.
6204
6205 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
6206
6207         intprops: remove assumption about A|B representation
6208         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
6209         is a valid integer if both A and B are.  Although this is true for
6210         all known practical hosts, the C standard doesn't guarantee it,
6211         and the code need not assume it.  Also, this change may work around
6212         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
6213         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
6214
6215 2011-05-20  Eric Blake  <eblake@redhat.com>
6216
6217         perror: work around FreeBSD bug
6218         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
6219         is broken.  Move AC_LIBOBJ...
6220         * modules/perror (configure.ac): Here.
6221         * doc/posix-functions/perror.texi (perror): Document this.
6222         * tests/test-perror2.c (main): Enhance test.
6223
6224         test-perror: check for strerror interactions
6225         * tests/macros.h (STREQ): Add macro.
6226         * modules/perror-tests (Files): Add second test.
6227         * tests/test-perror2.c (main): New file.
6228         * doc/posix-functions/perror.texi (perror): Document glibc bug.
6229
6230         test-perror: rewrite to use init script
6231         * modules/perror-tests (Files): Add init.sh.
6232         * tests/test-perror.sh: Use temporary directory.
6233
6234 2011-05-20  Jim Meyering  <meyering@redhat.com>
6235
6236         maint: replace misused "a" with "an"
6237         * doc/intprops.texi: "a integer"
6238         * doc/regex.texi: "a explanation"
6239         * lib/alignof.h: "a object"
6240         * lib/argmatch.h: "a explanation"
6241         * lib/argp-help.c: "a option" and "a OPTION_DOC"
6242         * lib/stdint.in.h: "a integer"
6243         * lib/userspec.c: "a owner"
6244         * doc/gnulib.texi: Fix "a idea", and reword.
6245
6246 2011-05-19  Jim Meyering  <meyering@redhat.com>
6247
6248         maint: correct misuse of "a" and "an"
6249         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
6250         * lib/argp-help.c: "an docum...": s/an/a/
6251         * lib/argp-parse.c: "An vector": s/An/A/
6252         * lib/execute.c: "an native": s/an/a/
6253         * lib/spawn-pipe.c: Likewise.
6254         * lib/gc.h: "an Gc_rc": s/an/a/
6255         * lib/unigbrk.in.h: "an grapheme": s/an/a/
6256         * lib/fts.c: "an stat.st_dev": s/an/a/
6257
6258 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
6259
6260         intprops-tests: work around HP-UX 11.23 cc bug with constants
6261         * tests/test-intprops.c (VERIFY): New macro.
6262         (main): Use it, instead of verify, to work around the compiler bug; see
6263         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
6264
6265         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
6266         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
6267         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
6268         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
6269         (_GL_REMAINDER_OVERFLOW): Use it.
6270
6271         intprops-tests: revert unsigned part of previous change
6272         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
6273         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
6274         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
6275         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
6276
6277 2011-05-19  Bruno Haible  <bruno@clisp.org>
6278
6279         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
6280         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
6281         strerror_r() returned without filling the buffer.
6282         Reported by Eric Blake.
6283
6284 2011-05-19  Eric Blake  <eblake@redhat.com>
6285
6286         strerror_r: guarantee unchanged errno
6287         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
6288         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
6289         failure.
6290         * tests/test-strerror_r.c (main): Enhance test.
6291
6292 2011-05-19  Bruno Haible  <bruno@clisp.org>
6293
6294         strerror_r: Reorder #if blocks.
6295         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
6296         for consistency with the previous commit.
6297
6298 2011-05-19  Bruno Haible  <bruno@clisp.org>
6299
6300         perror: Avoid clobbering the strerror buffer when possible.
6301         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
6302         * lib/strerror.c: Include it.
6303         * modules/strerror (Files): Add lib/strerror-impl.h.
6304         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
6305         (my_strerror): New function, defined through lib/strerror-impl.h.
6306         (perror): Use it instead of strerror.
6307         * modules/perror (Files): Add lib/strerror-impl.h.
6308         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
6309
6310 2011-05-19  Eric Blake  <eblake@redhat.com>
6311
6312         strerror_r: fix on newer cygwin
6313         * lib/strerror_r.c (strerror_r): Cygwin now has
6314         __xpg_strerror_r, use it.
6315
6316 2011-05-19  Bruno Haible  <bruno@clisp.org>
6317
6318         strerror_r: Avoid clobbering the strerror buffer when possible.
6319         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
6320         (sys_nerr, sys_errlist): New declarations.
6321         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
6322         HP-UX, native Win32, IRIX, and 32-bit Solaris.
6323         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
6324
6325 2011-05-19  Bruno Haible  <bruno@clisp.org>
6326
6327         strerror_r: Fix test failure on mingw.
6328         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
6329         EXTEND_STRERROR_R.
6330         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
6331         macros from errno.in.h instead.
6332
6333 2011-05-19  Eric Blake  <eblake@redhat.com>
6334
6335         strerror: relax test for Solaris
6336         * tests/test-strerror.c (main): Permit Solaris behavior.
6337         * tests/test-strerror_r.c (main): Likewise.
6338
6339         strerror: enforce POSIX ruling on strerror(0)
6340         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
6341         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
6342         * lib/strerror_r.c (rpl_strerror_r): Work around it.
6343         * doc/posix-functions/strerror.texi (strerror): Document it.
6344         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
6345         * tests/test-strerror.c (main): Strengthen test.
6346         * tests/test-strerror_r.c (main): Likewise.
6347
6348 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
6349
6350         intprop-tests: port to older and more-pedantic compilers
6351         * modules/intprops-tests (Files): Add tests/macros.h.
6352         * tests/test-intprops.c: Include macros.h.
6353         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
6354         it's no longer documented to expand to an integer constant expression.
6355         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
6356         argument is floating point, as it's no longer documented to expand
6357         to an integer constant expression in that case.
6358         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
6359         compiler bugs reported by Bruno Haible.  See
6360         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
6361         (U0, U1): New constants, to work around the same bugs.  Also,
6362         in tests, use e.g., "(unsigned int) 39" rather than "39u".
6363
6364         intprops: work around C compiler bugs
6365         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
6366         bug in Sun C 5.11 2010/08/13 and other compilers; see
6367         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
6368
6369         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
6370         * doc/intprops.texi (Integer Type Determination): Fix
6371         documentation for TYPE_IS_INTEGER: it returns an constant
6372         expression, not an integer constant expression.  Fix doc for
6373         TYPE_SIGNED: it returns an integer constant expression only if its
6374         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
6375         hardly worth documented that way....)
6376
6377 2011-05-18  Bruno Haible  <bruno@clisp.org>
6378
6379         strerror_r: Avoid clobbering the strerror buffer when possible.
6380         * lib/strerror_r.c (strerror_r): Merge the three implementations.
6381         Handle gnulib defined errno values here. When strerror() returns NULL
6382         or an empty string, return EINVAL.
6383         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
6384         gnulib defined errno values here.
6385         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
6386
6387 2011-05-18  Eric Blake  <eblake@redhat.com>
6388
6389         fnmatch: avoid compiler warning
6390         * lib/fnmatch_loop.c (FCT): Use correct type.
6391         Reported by Matthias Bolte.
6392
6393 2011-05-13  Jim Meyering  <meyering@redhat.com>
6394
6395         maint.mk: three new prohibit_<HDR>_without_use rules
6396         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
6397         (sc_prohibit_stdio-safer_without_use): Likewise.
6398         (sc_prohibit_xfreopen_without_use): Likewise.
6399
6400 2011-05-17  Jim Meyering  <meyering@redhat.com>
6401
6402         announce-gen: fail if the NEWS delta is empty
6403         If there's nothing noteworthy in NEWS, then either you forgot
6404         or you shouldn't be releasing.
6405         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
6406
6407 2011-05-17  Pádraig Brady <P@draigBrady.com>
6408
6409         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
6410         reserved symbols starting with double underscore from the check.
6411
6412 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
6413
6414         intprops: add doc
6415         * doc/intprops.texi: New file, documenting intprops.
6416         * doc/gnulib.texi (Particular Modules): Include it.
6417
6418         verify: add doc to gnulib manual and fix example
6419         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
6420         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
6421         (Compile-time Assertions): Fix example so it can't overflow.
6422
6423 2011-05-17  Jim Meyering  <meyering@redhat.com>
6424
6425         warnings.m4: don't usurp save_CPPFLAGS variable name
6426         * m4/warnings.m4: Prefix local temporary variable name with gl_.
6427
6428         doc: fix typo
6429         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
6430
6431 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
6432             Bruno Haible  <bruno@clisp.org>
6433
6434         doc: Tweak recent change.
6435         * README (Portability guidelines): Tweak new text.
6436         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
6437         Interix 6.1.
6438
6439 2011-05-16  Eric Blake  <eblake@redhat.com>
6440
6441         inttypes: avoid autoconf warning
6442         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
6443         * m4/stdint.m4 (gl_STDINT_H): Likewise.
6444
6445 2011-05-16  Sam Steingold <sds@gnu.org>
6446         and Eric Blake  <eblake@redhat.com>
6447
6448         vc-list-files: accept multiple directory operands
6449         * build-aux/vc-list-files: Iterate over all remaining operands.
6450
6451 2011-05-16  Bruno Haible  <bruno@clisp.org>
6452
6453         Fix confusion regarding deprecated modules.
6454         * modules/calloc (Status, Notice): Mark module as deprecated, not
6455         obsolete.
6456         * modules/fnmatch-posix (Status, Notice): Likewise.
6457         * modules/getdate (Status, Notice): Likewise.
6458         * modules/getopt (Status, Notice): Likewise.
6459         * modules/malloc (Status, Notice): Likewise.
6460         * modules/pipe (Status, Notice): Likewise.
6461         * modules/realloc (Status, Notice): Likewise.
6462         * modules/rename-dest-slash (Status, Notice): Likewise.
6463         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
6464         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
6465         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
6466         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
6467         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
6468
6469 2011-05-16  Bruno Haible  <bruno@clisp.org>
6470
6471         doc: List the target platforms.
6472         * doc/gnulib-intro.texi (Target Platforms): New section.
6473         * doc/gnulib.texi (Introduction): Update menu.
6474         * README (Portability guidelines): Refer to the new section. Update
6475         statement about oldest supported environment. Remove rationale why
6476         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
6477         unportable C89 function.
6478         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
6479         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
6480
6481 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
6482
6483         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
6484
6485 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
6486
6487         intprops-tests: new module
6488         * modules/intprops-tests, tests/test-intprops.c: New files.
6489
6490         intprops: add safe, portable integer overflow checking
6491         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
6492         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
6493         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
6494         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
6495         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
6496         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
6497         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
6498         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
6499         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
6500         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
6501         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
6502
6503 2011-05-12  James Youngman  <jay@gnu.org>
6504
6505         Add a test for glibc's Bugzilla bug #12378.
6506         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
6507         doesn't allow the literal matching of a lone "[" (which is
6508         required by POSIX).
6509         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
6510
6511 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
6512
6513         Sync glibc change fixing Bugzilla bug #12378.
6514         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
6515         beginning and fall back to matching as normal character if the
6516         string ends before the matching ']' is found.  This is what POSIX
6517         requires.
6518
6519 2011-05-13  Eric Blake  <eblake@redhat.com>
6520
6521         getcwd-lgpl: relax test for FreeBSD
6522         * doc/posix-functions/getcwd.texi (getcwd): Document portability
6523         issue.
6524         * tests/test-getcwd-lgpl.c (main): Relax test.
6525         Reported by Matthias Bolte.
6526
6527 2011-05-11  Eric Blake  <eblake@redhat.com>
6528
6529         test-fflush: silence compiler warning
6530         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
6531
6532 2011-05-11  Bruno Haible  <bruno@clisp.org>
6533
6534         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
6535         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
6536         * modules/canonicalize (Depends-on): Add 'nocrash'.
6537         * modules/canonicalize-lgpl (Depends-on): Likewise.
6538         * doc/posix-functions/realpath.texi: Update platforms list.
6539         Reported by Ryan Schmidt <ryandesign@macports.org>.
6540
6541 2011-05-11  Bruno Haible  <bruno@clisp.org>
6542
6543         group-member: Declare function in <unistd.h>.
6544         * lib/unistd.in.h (group_member): New declaration.
6545         * lib/group-member.h: Remove file.
6546         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
6547         * tests/test-unistd-c++.cc: Check signature of group_member.
6548         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
6549         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
6550         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
6551         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
6552         HAVE_GROUP_MEMBER.
6553         * modules/group-member (Files): Remove lib/group-member.h.
6554         (Depends-on): Add unistd. Specify conditions.
6555         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
6556         (Include): Change to <unistd.h>.
6557         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
6558         HAVE_GROUP_MEMBER.
6559         * NEWS: Mention the change.
6560         * lib/euidaccess.c: Don't include group-member.h.
6561
6562 2011-05-11  Bruno Haible  <bruno@clisp.org>
6563
6564         group-member: Document module.
6565         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
6566         module.
6567
6568 2011-05-11  Bruno Haible  <bruno@clisp.org>
6569
6570         fclose: Fix mistake earlier today.
6571         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
6572
6573 2011-05-11  Eric Blake  <eblake@redhat.com>
6574
6575         fclose: preserve fflush errors
6576         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
6577         Reported by Jim Meyering.
6578
6579         bootstrap: support a prereq of 'rpcgen -' on RHEL5
6580         * build-aux/bootstrap (check_versions): When no specific version
6581         is required, merely check that the app produces an exit status
6582         that indicates its existence.
6583
6584         maint.mk: drop redundant check
6585         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
6586         the same but better.
6587
6588 2011-05-11  Bruno Haible  <bruno@clisp.org>
6589
6590         fclose: Fix possible link error.
6591         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
6592         unregister_shadow_fd. Improve comments.
6593         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
6594         Eric Blake.
6595
6596 2011-05-11  Jim Meyering  <meyering@redhat.com>
6597
6598         maint.mk: improve "can not" detection and generalize rule name
6599         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
6600         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
6601         Use the same technique as in sc_prohibit_doubled_word, so that
6602         we recognize "can not" also when the words are separated by a newline.
6603         Suggested by Eric Blake.
6604         (perl_filename_lineno_text_): Define.  Factored out of...
6605         (prohibit_doubled_word_): ...here.  Use the new definition.
6606         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
6607         (prohibit_undesirable_word_seq_RE_): New overridable variable.
6608         (ignore_undesirable_word_sequence_RE_): New overridable variable.
6609
6610 2011-05-10  Eric Blake  <eblake@redhat.com>
6611
6612         fclose: avoid double close race when possible
6613         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
6614         all but WINDOWS_SOCKETS.
6615
6616 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
6617
6618         openat: correct new comment
6619         * lib/openat-proc.c (openat_proc_name): Correct the comment.
6620
6621 2011-05-10  Jim Meyering  <meyering@redhat.com>
6622
6623         openat: add comments
6624         * lib/openat-proc.c (openat_proc_name): Add comments,
6625         mostly from Eric Blake.
6626
6627 2011-05-09  Eric Blake  <eblake@redhat.com>
6628
6629         openat: reduce syscalls in first probe of /proc
6630         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
6631         be a directory.  Simplify the probe for .. bugs.
6632         * modules/openat (Depends-on): Drop same-inode.
6633         Reported by Bastien ROUCARIES.
6634
6635 2011-05-09  Jim Meyering  <meyering@redhat.com>
6636
6637         maint.mk: change semantics/name of tight_scope variables
6638         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
6639         Rename variables to align with semantics that make them more useful.
6640
6641         maint.mk: tweak new rule's name not to impinge
6642         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
6643         (sc_tight_scope): Use new rule name rather than $@-0.
6644
6645         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
6646         * top/maint.mk (sc_tight_scope): New rule.
6647         (sc_tight_scope-0): New rule, ifdef'd out.
6648         (_gl_TS_dir): Default.
6649         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
6650         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
6651
6652 2011-05-09  Simon Josefsson  <simon@josefsson.org>
6653
6654         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
6655         Haible <bruno@clisp.org>.
6656
6657 2011-05-08  Bruno Haible  <bruno@clisp.org>
6658
6659         Comments.
6660         * m4/isnanf.m4: Add comment.
6661         * m4/isnanl.m4: Likewise.
6662
6663 2011-05-08  Bruno Haible  <bruno@clisp.org>
6664
6665         glob: Remove obsolete macro.
6666         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
6667
6668 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
6669
6670         intprops: Sun C 5.11 supports __typeof__
6671         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
6672         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
6673         which is new.
6674         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
6675
6676         intprops: switch to usual gnulib indenting and naming
6677         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
6678         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
6679
6680         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
6681
6682 2011-05-08  Jim Meyering  <meyering@redhat.com>
6683
6684         maint.mk: suppress "Entering/Leaving directory" diag in announcement
6685         * top/maint.mk (release-prep): Use make's --no-print-directory
6686         option when generating the announcement.  This eliminates the
6687         pesky "make[2]: Entering/Leaving directory" diagnostics in the
6688         generated announcement template.
6689
6690 2011-05-08  Bruno Haible  <bruno@clisp.org>
6691
6692         tzset: Fix gettimeofday wrapper on Solaris 2.6.
6693         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
6694         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
6695
6696 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
6697
6698         ignore-value, verify: Omit include files from lib_SOURCES.
6699         * modules/ignore-value, modules/verify (Makefile.am):
6700         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
6701         that leads Automake to duplicate use of am__objects_... variables
6702         in Makefile.in.  See
6703         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
6704
6705 2011-05-07  Bruno Haible  <bruno@clisp.org>
6706
6707         fclose: Simplify autoconf macro.
6708         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
6709         defined.
6710
6711 2011-05-07  Bruno Haible  <bruno@clisp.org>
6712
6713         canonicalize-lgpl: Fix autoconf macro ordering bug.
6714         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
6715         gl_STDLIB_H_DEFAULTS.
6716
6717 2011-05-06  Eric Blake  <eblake@redhat.com>
6718
6719         maintainer-makefile: make sc_po_check easier to tune
6720         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
6721         to probe for strings, such as an alternate location for gnulib.
6722
6723         fclose: guarantee behavior on seekable stdin
6724         * modules/fclose (Depends-on): Add fflush.
6725         * doc/posix-functions/fclose.texi (fclose): Document this.
6726         * tests/test-fclose.c (main): Make test for this unconditional.
6727
6728 2011-05-06  Bruno Haible  <bruno@clisp.org>
6729
6730         fflush, fpurge: Relicense under LGPLv2+.
6731         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
6732         * modules/fpurge (License): Likewise.
6733         With permission from Eric Blake and Jim Meyering.
6734         Suggested by Eric Blake.
6735
6736 2011-05-06  Karl Berry  <karl@gnu.org>
6737
6738         * MODULES.html.sh (func_all_modules): remove exit.
6739
6740 2011-05-06  Jim Meyering  <meyering@redhat.com>
6741
6742         maint.mk: use info-gnu@ as the default only for a stable release
6743         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
6744         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
6745         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
6746         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
6747
6748 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
6749
6750         assert-h: new module, which supports C1X-style static_assert
6751         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
6752         * lib/verify.h: Revamp so that this can be copied into assert.h,
6753         while retaining the ability to use it standalone as before.
6754         Rename private identifiers so as not to encroach on the
6755         standard C namespace, since this is now used by assert.h.
6756         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
6757         the old verify_true.
6758         (_GL_VERIFY_TRUE): New macro, with much of the contents of
6759         the old verify_true.  Use _GL_VERIFY_TYPE.
6760         (_GL_VERIFY): New macro, with much of the contents of the old verify.
6761         (static_assert): New macro, if _GL_STATIC_ASSERT_H
6762         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
6763         defined when this file is copied into the replacement assert.h.
6764         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
6765         and _Static_assert is not built in.
6766         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
6767         defined, and use the new macros mentioned above.
6768         * doc/posix-headers/assert.texi: Document this.
6769
6770 2011-05-05  Bruno Haible  <bruno@clisp.org>
6771
6772         fclose, fflush: Respect rules for use of AC_LIBOBJ.
6773         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
6774         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
6775         gl_REPLACE_FCLOSE here.
6776         * modules/fflush (Depends-on): Remove fclose.
6777         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
6778         combination with module 'fclose'.
6779
6780 2011-05-05  Bruno Haible  <bruno@clisp.org>
6781
6782         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
6783         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
6784         gl_FUNC_FFLUSH.
6785         (gl_FUNC_FFLUSH): Use it.
6786         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
6787         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
6788         gl_REPLACE_FSEEKO here.
6789
6790 2011-05-05  Bruno Haible  <bruno@clisp.org>
6791
6792         tzset: Relicense under LGPL.
6793         * modules/tzset (License): Change to LGPL.
6794         No agreement needed; it's a no-op.
6795
6796         strtoimax, strtoumax: Relicense under LGPL.
6797         * modules/strtoimax (License): Change to LGPL.
6798         * modules/strtoumax (License): Likewise.
6799         With permission from Jim Meyering, Paul Eggert:
6800         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
6801         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
6802
6803         getgroups: Relicense under LGPL.
6804         * modules/getgroups (License): Change to LGPL.
6805         With permission from Jim Meyering, Paul Eggert, Eric Blake:
6806         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
6807         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
6808         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
6809
6810         nanosleep: Relicense under LGPL.
6811         * modules/nanosleep (License): Change to LGPL.
6812         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
6813         Haible:
6814         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
6815         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
6816         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
6817         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
6818
6819         futimens: Relicense under LGPL.
6820         * modules/futimens (License): Change to LGPL.
6821         With permission from Eric Blake:
6822         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
6823
6824         fflush: Relicense under LGPL.
6825         * modules/fflush (License): Change to LGPL.
6826         With permission from Eric Blake, Bruno Haible, Jim Meyering:
6827         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
6828         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
6829         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
6830
6831         tmpfile: Relicense under LGPL.
6832         * modules/tmpfile (License): Change to LGPL.
6833         With permission from Ben Pfaff:
6834         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
6835
6836         isfinite: Relicense under LGPL.
6837         * modules/isfinite (License): Change to LGPL.
6838         With permission from Ben Pfaff, Bruno Haible:
6839         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
6840         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
6841
6842         acosl..tanl: Relicense under LGPL.
6843         * modules/acosl (License): Change to LGPL.
6844         * modules/asinl (License): Likewise.
6845         * modules/atanl (License): Likewise.
6846         * modules/cosl (License): Likewise.
6847         * modules/expl (License): Likewise.
6848         * modules/logl (License): Likewise.
6849         * modules/sinl (License): Likewise.
6850         * modules/sqrtl (License): Likewise.
6851         * modules/tanl (License): Likewise.
6852         Source code originally from glibc and Paolo Bonzini. Agreements:
6853         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
6854         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
6855
6856 2011-05-05  Bruno Haible  <bruno@clisp.org>
6857
6858         signal: Define sighandler_t.
6859         * lib/signal.in.h (sighandler_t): New type.
6860         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
6861         whether sighandler_t is defined.
6862         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
6863         * modules/signal (Depends-on): Add extensions.
6864         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
6865         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
6866         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
6867
6868 2011-05-05  Eric Blake  <eblake@redhat.com>
6869
6870         maint: remove useless REPLACE_*_H macros
6871         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
6872         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
6873         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
6874         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
6875         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
6876         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
6877         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
6878         * m4/btowc.m4: Update callers.
6879         * m4/dirfd.m4: Likewise.
6880         * m4/duplocale.m4: Likewise.
6881         * m4/fchdir.m4: Likewise.
6882         * m4/fdopendir.m4: Likewise.
6883         * m4/inet_ntop.m4: Likewise.
6884         * m4/inet_pton.m4: Likewise.
6885         * m4/ioctl.m4: Likewise.
6886         * m4/mbrlen.m4: Likewise.
6887         * m4/mbrtowc.m4: Likewise.
6888         * m4/mbsinit.m4: Likewise.
6889         * m4/mbsnrtowcs.m4: Likewise.
6890         * m4/mbsrtowcs.m4: Likewise.
6891         * m4/poll.m4: Likewise.
6892         * m4/setlocale.m4: Likewise.
6893         * m4/wcrtomb.m4: Likewise.
6894         * m4/wcsnrtombs.m4: Likewise.
6895         * m4/wcsrtombs.m4: Likewise.
6896         * m4/wctob.m4: Likewise.
6897         * m4/wcwidth.m4: Likewise.
6898         * modules/posix_spawn: Likewise.
6899         * modules/posix_spawn_file_actions_addclose: Likewise.
6900         * modules/posix_spawn_file_actions_adddup2: Likewise.
6901         * modules/posix_spawn_file_actions_addopen: Likewise.
6902         * modules/posix_spawn_file_actions_destroy: Likewise.
6903         * modules/posix_spawn_file_actions_init: Likewise.
6904         * modules/posix_spawnattr_destroy: Likewise.
6905         * modules/posix_spawnattr_getflags: Likewise.
6906         * modules/posix_spawnattr_getpgroup: Likewise.
6907         * modules/posix_spawnattr_getschedparam: Likewise.
6908         * modules/posix_spawnattr_getschedpolicy: Likewise.
6909         * modules/posix_spawnattr_getsigdefault: Likewise.
6910         * modules/posix_spawnattr_getsigmask: Likewise.
6911         * modules/posix_spawnattr_init: Likewise.
6912         * modules/posix_spawnattr_setflags: Likewise.
6913         * modules/posix_spawnattr_setpgroup: Likewise.
6914         * modules/posix_spawnattr_setschedparam: Likewise.
6915         * modules/posix_spawnattr_setschedpolicy: Likewise.
6916         * modules/posix_spawnattr_setsigdefault: Likewise.
6917         * modules/posix_spawnattr_setsigmask: Likewise.
6918         * modules/posix_spawnp: Likewise.
6919
6920 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
6921
6922         Add option to do-release-commit-and-tag to specify branch.
6923         * build-aux/do-release-commit-and-tag: Add --branch.
6924
6925 2011-05-03  Bruno Haible  <bruno@clisp.org>
6926
6927         Avoid unnecessary compilation units, through conditional dependencies.
6928         * modules/accept (Depends-on): Add conditions to the dependencies.
6929         * modules/acosl (Depends-on): Likewise.
6930         * modules/argz (Depends-on): Likewise.
6931         * modules/asinl (Depends-on): Likewise.
6932         * modules/atanl (Depends-on): Likewise.
6933         * modules/atoll (Depends-on): Likewise.
6934         * modules/bind (Depends-on): Likewise.
6935         * modules/btowc (Depends-on): Likewise.
6936         * modules/canonicalize-lgpl (Depends-on): Likewise.
6937         * modules/ceil (Depends-on): Likewise.
6938         * modules/ceilf (Depends-on): Likewise.
6939         * modules/ceill (Depends-on): Likewise.
6940         * modules/chdir-long (Depends-on): Likewise.
6941         * modules/chown (Depends-on): Likewise.
6942         * modules/close (Depends-on): Likewise.
6943         * modules/connect (Depends-on): Likewise.
6944         * modules/cosl (Depends-on): Likewise.
6945         * modules/dirfd (Depends-on): Likewise.
6946         * modules/dprintf (Depends-on): Likewise.
6947         * modules/dprintf-posix (Depends-on): Likewise.
6948         * modules/error (Depends-on): Likewise.
6949         * modules/euidaccess (Depends-on): Likewise.
6950         * modules/expl (Depends-on): Likewise.
6951         * modules/faccessat (Depends-on): Likewise.
6952         * modules/fchdir (Depends-on): Likewise.
6953         * modules/fclose (Depends-on): Likewise.
6954         * modules/fcntl (Depends-on): Likewise.
6955         * modules/fdopendir (Depends-on): Likewise.
6956         * modules/fflush (Depends-on): Likewise.
6957         * modules/floor (Depends-on): Likewise.
6958         * modules/floorf (Depends-on): Likewise.
6959         * modules/floorl (Depends-on): Likewise.
6960         * modules/fnmatch (Depends-on): Likewise.
6961         * modules/fopen (Depends-on): Likewise.
6962         * modules/fprintf-posix (Depends-on): Likewise.
6963         * modules/frexp (Depends-on): Likewise.
6964         * modules/frexp-nolibm (Depends-on): Likewise.
6965         * modules/frexpl (Depends-on): Likewise.
6966         * modules/frexpl-nolibm (Depends-on): Likewise.
6967         * modules/fseek (Depends-on): Likewise.
6968         * modules/fsusage (Depends-on): Likewise.
6969         * modules/ftell (Depends-on): Likewise.
6970         * modules/ftello (Depends-on): Likewise.
6971         * modules/futimens (Depends-on): Likewise.
6972         * modules/getcwd (Depends-on): Likewise.
6973         * modules/getcwd-lgpl (Depends-on): Likewise.
6974         * modules/getdelim (Depends-on): Likewise.
6975         * modules/getdomainname (Depends-on): Likewise.
6976         * modules/getgroups (Depends-on): Likewise.
6977         * modules/gethostname (Depends-on): Likewise.
6978         * modules/getline (Depends-on): Likewise.
6979         * modules/getlogin_r (Depends-on): Likewise.
6980         * modules/getopt-posix (Depends-on): Likewise.
6981         * modules/getpeername (Depends-on): Likewise.
6982         * modules/getsockname (Depends-on): Likewise.
6983         * modules/getsockopt (Depends-on): Likewise.
6984         * modules/getsubopt (Depends-on): Likewise.
6985         * modules/getusershell (Depends-on): Likewise.
6986         * modules/glob (Depends-on): Likewise.
6987         * modules/grantpt (Depends-on): Likewise.
6988         * modules/iconv_open (Depends-on): Likewise.
6989         * modules/iconv_open-utf (Depends-on): Likewise.
6990         * modules/inet_ntop (Depends-on): Likewise.
6991         * modules/inet_pton (Depends-on): Likewise.
6992         * modules/ioctl (Depends-on): Likewise.
6993         * modules/isapipe (Depends-on): Likewise.
6994         * modules/isfinite (Depends-on): Likewise.
6995         * modules/isinf (Depends-on): Likewise.
6996         * modules/lchown (Depends-on): Likewise.
6997         * modules/ldexpl (Depends-on): Likewise.
6998         * modules/link (Depends-on): Likewise.
6999         * modules/linkat (Depends-on): Likewise.
7000         * modules/listen (Depends-on): Likewise.
7001         * modules/logl (Depends-on): Likewise.
7002         * modules/lstat (Depends-on): Likewise.
7003         * modules/mbrlen (Depends-on): Likewise.
7004         * modules/mbrtowc (Depends-on): Likewise.
7005         * modules/mbsinit (Depends-on): Likewise.
7006         * modules/mbsnrtowcs (Depends-on): Likewise.
7007         * modules/mbsrtowcs (Depends-on): Likewise.
7008         * modules/mbtowc (Depends-on): Likewise.
7009         * modules/memcmp (Depends-on): Likewise.
7010         * modules/mkdir (Depends-on): Likewise.
7011         * modules/mkdtemp (Depends-on): Likewise.
7012         * modules/mkfifo (Depends-on): Likewise.
7013         * modules/mkfifoat (Depends-on): Likewise.
7014         * modules/mknod (Depends-on): Likewise.
7015         * modules/mkostemp (Depends-on): Likewise.
7016         * modules/mkostemps (Depends-on): Likewise.
7017         * modules/mkstemp (Depends-on): Likewise.
7018         * modules/mkstemps (Depends-on): Likewise.
7019         * modules/mktime (Depends-on): Likewise.
7020         * modules/nanosleep (Depends-on): Likewise.
7021         * modules/open (Depends-on): Likewise.
7022         * modules/openat (Depends-on): Likewise.
7023         * modules/perror (Depends-on): Likewise.
7024         * modules/poll (Depends-on): Likewise.
7025         * modules/popen (Depends-on): Likewise.
7026         * modules/posix_spawn (Depends-on): Likewise.
7027         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
7028         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
7029         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
7030         * modules/posix_spawnp (Depends-on): Likewise.
7031         * modules/pread (Depends-on): Likewise.
7032         * modules/printf-posix (Depends-on): Likewise.
7033         * modules/ptsname (Depends-on): Likewise.
7034         * modules/putenv (Depends-on): Likewise.
7035         * modules/pwrite (Depends-on): Likewise.
7036         * modules/readline (Depends-on): Likewise.
7037         * modules/readlink (Depends-on): Likewise.
7038         * modules/readlinkat (Depends-on): Likewise.
7039         * modules/recv (Depends-on): Likewise.
7040         * modules/recvfrom (Depends-on): Likewise.
7041         * modules/regex (Depends-on): Likewise.
7042         * modules/remove (Depends-on): Likewise.
7043         * modules/rename (Depends-on): Likewise.
7044         * modules/renameat (Depends-on): Likewise.
7045         * modules/rmdir (Depends-on): Likewise.
7046         * modules/round (Depends-on): Likewise.
7047         * modules/roundf (Depends-on): Likewise.
7048         * modules/roundl (Depends-on): Likewise.
7049         * modules/rpmatch (Depends-on): Likewise.
7050         * modules/select (Depends-on): Likewise.
7051         * modules/send (Depends-on): Likewise.
7052         * modules/sendto (Depends-on): Likewise.
7053         * modules/setenv (Depends-on): Likewise.
7054         * modules/setlocale (Depends-on): Likewise.
7055         * modules/setsockopt (Depends-on): Likewise.
7056         * modules/shutdown (Depends-on): Likewise.
7057         * modules/sigaction (Depends-on): Likewise.
7058         * modules/signbit (Depends-on): Likewise.
7059         * modules/sigprocmask (Depends-on): Likewise.
7060         * modules/sinl (Depends-on): Likewise.
7061         * modules/sleep (Depends-on): Likewise.
7062         * modules/snprintf (Depends-on): Likewise.
7063         * modules/snprintf-posix (Depends-on): Likewise.
7064         * modules/socket (Depends-on): Likewise.
7065         * modules/sprintf-posix (Depends-on): Likewise.
7066         * modules/sqrtl (Depends-on): Likewise.
7067         * modules/stat (Depends-on): Likewise.
7068         * modules/strchrnul (Depends-on): Likewise.
7069         * modules/strdup-posix (Depends-on): Likewise.
7070         * modules/strerror (Depends-on): Likewise.
7071         * modules/strerror_r-posix (Depends-on): Likewise.
7072         * modules/strndup (Depends-on): Likewise.
7073         * modules/strnlen (Depends-on): Likewise.
7074         * modules/strptime (Depends-on): Likewise.
7075         * modules/strsep (Depends-on): Likewise.
7076         * modules/strsignal (Depends-on): Likewise.
7077         * modules/strstr-simple (Depends-on): Likewise.
7078         * modules/strtod (Depends-on): Likewise.
7079         * modules/strtoimax (Depends-on): Likewise.
7080         * modules/strtok_r (Depends-on): Likewise.
7081         * modules/strtoumax (Depends-on): Likewise.
7082         * modules/symlink (Depends-on): Likewise.
7083         * modules/symlinkat (Depends-on): Likewise.
7084         * modules/tanl (Depends-on): Likewise.
7085         * modules/tcgetsid (Depends-on): Likewise.
7086         * modules/tmpfile (Depends-on): Likewise.
7087         * modules/trunc (Depends-on): Likewise.
7088         * modules/truncf (Depends-on): Likewise.
7089         * modules/truncl (Depends-on): Likewise.
7090         * modules/uname (Depends-on): Likewise.
7091         * modules/unlink (Depends-on): Likewise.
7092         * modules/unlockpt (Depends-on): Likewise.
7093         * modules/unsetenv (Depends-on): Likewise.
7094         * modules/usleep (Depends-on): Likewise.
7095         * modules/utimensat (Depends-on): Likewise.
7096         * modules/vasprintf (Depends-on): Likewise.
7097         * modules/vdprintf (Depends-on): Likewise.
7098         * modules/vdprintf-posix (Depends-on): Likewise.
7099         * modules/vfprintf-posix (Depends-on): Likewise.
7100         * modules/vprintf-posix (Depends-on): Likewise.
7101         * modules/vsnprintf (Depends-on): Likewise.
7102         * modules/vsnprintf-posix (Depends-on): Likewise.
7103         * modules/vsprintf-posix (Depends-on): Likewise.
7104         * modules/wcrtomb (Depends-on): Likewise.
7105         * modules/wcscasecmp (Depends-on): Likewise.
7106         * modules/wcscspn (Depends-on): Likewise.
7107         * modules/wcsdup (Depends-on): Likewise.
7108         * modules/wcsncasecmp (Depends-on): Likewise.
7109         * modules/wcsnrtombs (Depends-on): Likewise.
7110         * modules/wcspbrk (Depends-on): Likewise.
7111         * modules/wcsrtombs (Depends-on): Likewise.
7112         * modules/wcsspn (Depends-on): Likewise.
7113         * modules/wcsstr (Depends-on): Likewise.
7114         * modules/wcstok (Depends-on): Likewise.
7115         * modules/wcswidth (Depends-on): Likewise.
7116         * modules/wctob (Depends-on): Likewise.
7117         * modules/wctomb (Depends-on): Likewise.
7118         * modules/wctype (Depends-on): Likewise.
7119         * modules/wcwidth (Depends-on): Likewise.
7120         * modules/write (Depends-on): Likewise.
7121
7122 2011-05-03  Bruno Haible  <bruno@clisp.org>
7123
7124         Support for conditional dependencies.
7125         * doc/gnulib.texi (Module description): Document the syntax of
7126         conditional dependencies.
7127         * gnulib-tool: New option --conditional-dependencies.
7128         (func_usage): Document it.
7129         (cond_dependencies): New variable.
7130         (func_get_automake_snippet_conditional,
7131         func_get_automake_snippet_unconditional): New functions, extracted from
7132         func_get_automake_snippet.
7133         (func_get_automake_snippet): Use them.
7134         (sed_first_32_chars): New variable.
7135         (func_module_shellfunc_name): New function.
7136         (func_module_shellvar_name): New function.
7137         (func_module_conditional_name): New function.
7138         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
7139         func_cond_module_condition): New functions.
7140         (func_modules_transitive_closure): Add support for conditional
7141         dependencies.
7142         (func_emit_lib_Makefile_am): For a conditional module, enclose the
7143         conditional automake snippet in an automake conditional.
7144         (func_emit_autoconf_snippets): Emit shell functions that contain the
7145         code for conditional modules.
7146         (func_import, func_create_testdir): Update specification.
7147
7148 2011-05-03  Eric Blake  <eblake@redhat.com>
7149
7150         test-getaddrinfo: report error information
7151         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
7152
7153 2011-05-03  Jim Meyering  <meyering@redhat.com>
7154
7155         bootstrap: avoid build failure when $GZIP is set
7156         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
7157         program name.  If defined at all, it is supposed to list gzip options.
7158         Reported by Alan Curry in http://debbugs.gnu.org/8609
7159
7160 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
7161
7162         readme-release: new module with release instructions
7163         * modules/readme-release: New module.
7164         * top/README-release: New file, from coreutils, grep, diffutils.
7165         * MODULES.html.sh (Support for maintaining and releasing): Add it.
7166
7167 2011-05-02  Eric Blake  <eblake@redhat.com>
7168
7169         fflush: also replace fclose when fixing fflush
7170         * modules/fflush (Depends-on): Add fclose.
7171         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
7172         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
7173         memstreams with no backing fd.
7174         * doc/posix-functions/fclose.texi (fclose): Document the use of
7175         fflush module to fix the bug.
7176         * tests/test-fclose.c (main): Relax test when fclose is used in
7177         isolation.
7178
7179         fclose: add some tests
7180         * modules/fclose-tests: New test module.
7181         * tests/test-fclose.c: New file.
7182         * doc/posix-functions/fclose.texi (fclose): Document the bug.
7183
7184         fclose: reduced dependencies
7185         * modules/fclose (Depends-on): Switch from fflush/fseeko to
7186         simpler lseek.
7187         * lib/fclose.c (rpl_fclose): Likewise.
7188         Reported by Simon Josefsson.
7189
7190         exit: drop remaining clients
7191         * modules/argmatch (Depends-on): Replace exit with stdlib.
7192         * modules/copy-file (Depends-on): Likewise.
7193         * modules/execute (Depends-on): Likewise.
7194         * modules/exitfail (Depends-on): Likewise.
7195         * modules/obstack (Depends-on): Likewise.
7196         * modules/pagealign_alloc (Depends-on): Likewise.
7197         * modules/pipe-filter-gi (Depends-on): Likewise.
7198         * modules/pipe-filter-ii (Depends-on): Likewise.
7199         * modules/savewd (Depends-on): Likewise.
7200         * modules/spawn-pipe (Depends-on): Likewise.
7201         * modules/wait-process (Depends-on): Likewise.
7202         * modules/xsetenv (Depends-on): Likewise.
7203         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
7204         * modules/git-merge-changelog (Depends-on): Likewise.
7205         * modules/long-options (Depends-on): Likewise.
7206         * modules/pt_chown (Depends-on): Likewise.
7207         * modules/sysexits (Depends-on): Likewise.
7208
7209         freading: relax license from LGPLv3+ to LGPLv2+
7210         * modules/freading (License): Relax LGPL version.
7211
7212 2011-05-02  Bruno Haible  <bruno@clisp.org>
7213
7214         fchdir: Remove unused dependencies.
7215         * modules/fchdir (Depends-on): Remove include_next.
7216
7217 2011-05-02  Bruno Haible  <bruno@clisp.org>
7218
7219         gnulib-tool: Refactor.
7220         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
7221         from func_emit_autoconf_snippets.
7222         (func_emit_autoconf_snippets): Use it.
7223
7224 2011-05-02  Simon Josefsson  <simon@josefsson.org>
7225
7226         * NEWS: Document removal of 'exit'.
7227         * modules/exit: Remove file.
7228
7229 2011-05-01  Bruno Haible  <bruno@clisp.org>
7230
7231         Update DEPENDENCIES.
7232         * DEPENDENCIES (gettext): Recommend the newest release.
7233         Reported by Simon Josefsson.
7234
7235 2011-05-01  Bruno Haible  <bruno@clisp.org>
7236
7237         gnulib-tool: Reduce code duplication.
7238         * gnulib-tool (func_emit_autoconf_snippets): New function.
7239         (func_import, func_create_testdir): Use it.
7240
7241 2011-04-30  Eric Blake  <eblake@redhat.com>
7242
7243         fclose: don't fail on non-seekable input stream
7244         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
7245         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
7246         since fflush is allowed to fail in that case.
7247
7248 2011-04-30  Bruno Haible  <bruno@clisp.org>
7249
7250         dup3: cleanup
7251         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
7252
7253 2011-04-30  Bruno Haible  <bruno@clisp.org>
7254
7255         netdb: Make it work in C++ mode.
7256         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
7257         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
7258         module.
7259         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
7260         gl_MODULE_INDICATOR_FOR_TESTS.
7261         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
7262         * modules/netdb-c++-tests: New file.
7263         * tests/test-netdb-c++.cc: New file.
7264
7265 2011-04-30  Bruno Haible  <bruno@clisp.org>
7266
7267         New modules 'vfscanf', 'vscanf'.
7268         * modules/vfscanf: New file.
7269         * modules/vscanf: New file.
7270         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
7271         here.
7272         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
7273         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
7274
7275 2011-04-30  Bruno Haible  <bruno@clisp.org>
7276
7277         passfd: Add comments.
7278         * lib/passfd.c: Add comments about platforms.
7279
7280 2011-04-30  Bruno Haible  <bruno@clisp.org>
7281
7282         sys_uio: Make <sys/uio.h> self-contained.
7283         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
7284         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
7285
7286 2011-04-30  Bruno Haible  <bruno@clisp.org>
7287
7288         sys_socket: Ensure 'struct iovec' definition.
7289         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
7290         <sys/socket.h>.
7291         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
7292
7293 2011-04-30  Bruno Haible  <bruno@clisp.org>
7294
7295         sys_uio: Protect definition of 'struct iovec'.
7296         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
7297         it as a C struct.
7298
7299 2011-04-30  Bruno Haible  <bruno@clisp.org>
7300
7301         manywarnings: fix indentation
7302         * m4/manywarnings.m4: Indent by 2 spaces consistently.
7303
7304 2011-04-30  Pádraig Brady <P@draigBrady.com>
7305
7306         manywarnings: add -Wno-missing-field-initializers if needed.
7307         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
7308         option if it's needed to allow initialization with { 0, }
7309
7310 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
7311
7312         announce-gen: cosmetic improvement
7313         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
7314
7315 2011-04-29  Jim Meyering  <meyering@redhat.com>
7316
7317         vc-list-files: indent with spaces, not TABs
7318         * build-aux/vc-list-files: Convert leading TABs to spaces,
7319         to match the style of most other files in gnulib.
7320
7321         announce-gen: indent with spaces, not TABs
7322         * build-aux/announce-gen: Convert all TABs to spaces, to match
7323         the style of most other files in gnulib.
7324
7325 2011-04-29  Eric Blake  <eblake@redhat.com>
7326
7327         quotearg: avoid uninitialized variable use
7328         * lib/quotearg.c (quoting_options_from_style): Initialize
7329         remaining fields, and ensure that custom styles are only used via
7330         quoting_options rather than quoting_style.
7331
7332 2011-04-29  Jim Meyering  <meyering@redhat.com>
7333
7334         maint.mk: remove unused VC-tag variable
7335         * top/maint.mk (VC-tag): Remove unused variable.
7336
7337 2011-04-29  Bruno Haible  <bruno@clisp.org>
7338
7339         netdb: fix gai_strerror replacements
7340         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
7341         * modules/netdb: Substitute it.
7342
7343 2011-04-29  Jim Meyering  <meyering@redhat.com>
7344
7345         test-getcwd.c: avoid new set-but-not-used warning
7346         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
7347         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
7348         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
7349         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
7350
7351         test-hash.c: avoid a new shadowing warning
7352         * tests/test-hash.c (main): Don't shadow "dup".
7353
7354 2011-04-28  Eric Blake  <eblake@redhat.com>
7355
7356         getaddrinfo: fix gai_strerror signature
7357         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
7358         and work around mingw with UNICODE defined.
7359         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
7360         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
7361         * modules/netdb (Makefile.am): Substitute it.
7362         * lib/netdb.in.h (gai_strerror): Declare replacement.
7363         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
7364         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
7365         the fix.
7366
7367         getsockopt: avoid compiler warning
7368         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
7369         Reported by Matthias Bolte.
7370
7371         tests: drop unused link dependency
7372         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
7373         * modules/dirent-safer-tests (Makefile.am): Likewise.
7374         * modules/fdopendir-tests (Makefile.am): Likewise.
7375         * modules/mkfifoat-tests (Makefile.am): Likewise.
7376         * modules/openat-safer-tests (Makefile.am): Likewise.
7377         * modules/openat-tests (Makefile.am): Likewise.
7378         * modules/readlinkat-tests (Makefile.am): Likewise.
7379         * modules/symlinkat-tests (Makefile.am): Likewise.
7380         * modules/linkat-tests (Makefile.am): Likewise.
7381         (Depends-on): Switch to filenamecat-lgpl.
7382         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
7383         LIBINTL.
7384         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
7385         * tests/test-linkat.c (main): Don't require xalloc.
7386
7387         hash, mgetgroups: drop xalloc dependency
7388         * lib/hash.c (includes): Adjust includes.
7389         * lib/mgetgroups.c (includes): Likewise.
7390         (xgetgroups): Move...
7391         * lib/xgetgroups.c: ...to new file.
7392         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
7393         * modules/xgetgroups: New file, split from...
7394         * modules/mgetgroups: ...here.
7395         (Depends-on): Add xalloc-oversized.
7396         * modules/hash (Depends-on): Likewise.
7397         * modules/hash-tests (Depends-on): Drop xalloc.
7398         (test_hash_LDADD): Drop unused library.
7399         * tests/test-hash.c (main): Break xalloc dependency.
7400         (includes): Drop unused include.
7401
7402         xalloc-oversized: new module
7403         * modules/xalloc-oversized: New module.
7404         * modules/xalloc (Depends-on): Add it.
7405         * lib/xalloc.h (xalloc_oversized): Move...
7406         * lib/xalloc-oversized.h: ...into new file.
7407
7408         utimecmp: drop dependency on xmalloc
7409         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
7410         due to memory pressure.
7411         * modules/utimecmp (Depends-on): Drop xalloc.
7412
7413 2011-04-27  Eric Blake  <eblake@redhat.com>
7414
7415         getcwd: fix mingw bugs
7416         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
7417         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
7418         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
7419
7420 2011-04-27  Bruno Haible  <bruno@clisp.org>
7421
7422         mkstemps: Ensure declaration on MacOS X 10.5.
7423         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
7424         * doc/glibc-functions/mkstemps.texi: Document header file problem on
7425         MacOS X.
7426
7427 2011-04-27  Bruno Haible  <bruno@clisp.org>
7428
7429         mkstemp: More documentation.
7430         * doc/posix-functions/mkstemp.texi: Document header file problem on
7431         MacOS X.
7432
7433 2011-04-27  Bruno Haible  <bruno@clisp.org>
7434
7435         mkstemp: Tweak configure message when cross-compiling.
7436         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
7437         result as a guess.
7438
7439 2011-04-27  Bruno Haible  <bruno@clisp.org>
7440
7441         clean-temp: Clarify what it does.
7442         * lib/clean-temp.h: Add more comments.
7443         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
7444         module.
7445         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
7446         * doc/glibc-functions/mkstemps.texi: Likewise.
7447         * doc/glibc-functions/mkostemps.texi: Likewise.
7448
7449 2011-04-27  Eric Blake  <eblake@redhat.com>
7450
7451         fchdir: avoid extra chdir and fix test
7452         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
7453         getcwd-lgpl.
7454         * lib/fchdir.c (get_name): Any absolute name will do; it does not
7455         have to be canonical.
7456         (canonicalize_file_name): Drop unused macro.
7457         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
7458
7459         filenamecat-lgpl: fix licence
7460         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
7461         when it was first created.
7462
7463         linkat, renameat: add missing dependency
7464         * modules/linkat (Depends-on): Require getcwd-lgpl.
7465         * modules/renameat (Depends-on): Likewise.
7466
7467         tests: reduce dependencies
7468         * tests/test-linkat.c (main): Use lighter-weight getcwd.
7469         * tests/test-renameat.c (main): Likewise.
7470         * modules/linkat-tests (Depends-on): Relax dependency.
7471         * modules/renameat-tests (Depends-on): Likewise.
7472         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
7473         dependency explicit.
7474
7475         save-cwd: reduce default dependency
7476         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
7477         * lib/save-cwd.c: Update comments.
7478         * NEWS: Document the semantic change.
7479
7480         getcwd: enhance tests
7481         * tests/test-getcwd-lgpl.c: New file, taken from...
7482         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
7483         repeat long path stress tests from m4 probe.
7484         * modules/getcwd-lgpl-tests: New module.
7485         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
7486         * m4/getcwd-abort-bug.m4: Update comment.
7487         * m4/getcwd-path-max.m4: Likewise.
7488
7489         getcwd-lgpl: new module
7490         * modules/getcwd-lgpl: New module.
7491         * lib/getcwd-lgpl.c: New file.
7492         * doc/posix-functions/getcwd.texi (getcwd): Document it.
7493         * MODULES.html.sh (lacking POSIX:2008): Likewise.
7494         * modules/getcwd (configure.ac): Set C witness.
7495         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
7496
7497         getcwd: tweak comments
7498         * m4/getcwd-abort-bug.m4: Fix comments.
7499         * m4/getcwd-path-max.m4: Likewise.
7500         * m4/getcwd.m4: Likewise.
7501
7502 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
7503         and Eric Blake  <eblake@redhat.com>
7504
7505         mkstemp: replace if system version uses wrong permissions
7506         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
7507         read/write mode bits set in file created by mkstemp.
7508         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
7509
7510 2011-04-27  Eric Blake  <eblake@redhat.com>
7511
7512         passfd: avoid compiler warning
7513         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
7514         Reported by Laine Stump.
7515
7516 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
7517
7518         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
7519         required by the NetBSD (and perhaps other 4.4BSD derived) join.
7520
7521 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
7522         and Eric Blake  <eblake@redhat.com>
7523
7524         mkstemp: mention clean-temp module
7525         * lib/mkstemp.c: Add comment.
7526         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
7527
7528 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
7529
7530         inttypes: also provide default values for 32-bit tests
7531         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
7532         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
7533
7534 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
7535
7536         strtoumax: remove dependency on strtoimax
7537         This is like the strtoull change of yesterday.
7538         * modules/strtoumax (Files): Add lib/strtoimax.c.
7539         (Depends-on): Remove strtoimax and add verify.
7540
7541         inttypes-incomplete: new module
7542         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
7543         all but the PRI* and SCN* parts of gl_INTTYPES_H.
7544         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
7545         of gl_INTTYPES_H.
7546         (gl_INTTYPES_H): Rewrite in terms of these new macros.
7547         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
7548         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
7549         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
7550         * modules/strtoumax, modules/xstrtol (Depends-on):
7551         Depend on inttypes-incomplete, not inttypes.
7552         * modules/inttypes-incomplete: New module, containing the contents
7553         of the old modules/inttypes module, except that the Files: section
7554         omits m4/inttypes-pri.m4, and the configure.ac section invokes
7555         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
7556         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
7557         (Depends-on): Depend only on inttypes-incomplete.
7558         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
7559
7560         inttypes: omit now-redundant strtoimax and strtoumax work
7561         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
7562         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
7563
7564         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
7565         This supports apps that need pointers to strtoimax and strtoumax,
7566         and ports to HP-UX 11.00 64.bit, which has macros that expand to
7567         nonexistent functions.  See
7568         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
7569         et seq.
7570         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
7571         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
7572         a macro.
7573         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
7574
7575 2011-04-25  Simon Josefsson  <simon@josefsson.org>
7576
7577         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
7578
7579 2011-04-25  Bruno Haible  <bruno@clisp.org>
7580
7581         strtol, strtoul: Mark modules as obsolete.
7582         * modules/strtol (Status, Notice): New sections.
7583         * modules/strtoul (Status, Notice): New sections.
7584
7585 2011-04-25  Bruno Haible  <bruno@clisp.org>
7586
7587         strtod: Remove check for strtod, unless supporting old platforms.
7588         * modules/strtod-obsolete: New file.
7589         * m4/strtod-obsolete.m4: New file.
7590         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
7591         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
7592         * modules/strtod (Depends-on): Add strtod-obsolete.
7593         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
7594
7595 2011-04-25  Bruno Haible  <bruno@clisp.org>
7596
7597         strcase: Make module obsolete.
7598         * modules/strcase (Status, Notice): New sections.
7599
7600 2011-04-25  Bruno Haible  <bruno@clisp.org>
7601
7602         dup2: Remove check for dup2, unless supporting old obsolete platforms.
7603         * modules/dup2-obsolete: New file.
7604         * m4/dup2-obsolete.m4: New file.
7605         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
7606         gl_FUNC_DUP2_OBSOLETE is not also defined.
7607         * modules/dup2 (Depends-on): Add dup2-obsolete.
7608         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
7609
7610 2011-04-25  Bruno Haible  <bruno@clisp.org>
7611
7612         strnlen: Avoid memchr related link error on old obsolete platforms.
7613         * modules/memchr-obsolete: New file.
7614         * m4/memchr-obsolete.m4: New file.
7615         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
7616         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
7617         * modules/memchr (Depends-on): Add memchr-obsolete.
7618         * modules/strnlen (Depends-on): Likewise.
7619         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
7620
7621 2011-04-25  Jim Meyering  <meyering@redhat.com>
7622
7623         maint.mk: makefile_at_at_check extend and clean up
7624         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
7625         in addition to */Makefile.am.
7626         Exempt legitimate uses of @VAR@ notation, e.g.,
7627         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
7628         Remove obsolete coreutils-specific comment.
7629         Prompted by discussion here:
7630         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
7631
7632 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
7633
7634         strtoul: remove dependency on strtol
7635         This is so that 'configure' need not check for strtol merely because
7636         the application needs strtoul.
7637         * modules/strtoul (Files): Add lib/strtol.c.
7638         (Depends-on): Remove strtol.
7639
7640         strtoull: remove dependency on strtoul
7641         This is like the strtoll change.
7642         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
7643         (Depends-on): Remove strtoul.
7644
7645         strtoll: remove dependency on strtol
7646         This is so that 'configure' need not check for strtol merely because
7647         the application needs strtoll.
7648         * modules/strtoll (Files): Add lib/strtol.c.
7649         (Depends-on): Remove strtol.
7650
7651 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
7652
7653         inttypes: Move some configure check to module 'imaxdiv'.
7654         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
7655         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
7656         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
7657
7658 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
7659
7660         inttypes: Move some configure check to module 'imaxabs'.
7661         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
7662         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
7663         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
7664
7665 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
7666
7667         inttypes: Remove configure tests that are not needed since 2009-12-31.
7668         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
7669         gl_cv_header_working_inttypes_h.
7670
7671 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
7672
7673         * modules/strnlen (Depends-on): Remove memchr.
7674         The strnlen implementation doesn't need the memchr module's fixes; see
7675         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
7676
7677         strtol: remove dependency on wchar
7678         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
7679         * modules/strtol (Depends-on): Remove wchar.
7680
7681 2011-04-21  Eric Blake  <eblake@redhat.com>
7682
7683         passfd: fix test regression on Linux
7684         * modules/passfd-tests (configure.ac): Correct socketpair check.
7685
7686         passfd: speed up configure and drop unused code
7687         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
7688         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
7689         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
7690         Instead of probing at configure for unix_scm_rights_bsd44_way,
7691         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
7692         check to a struct member probe.
7693         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
7694         (sendfd, recvfd): Update preprocessor checks.
7695         * modules/passfd (Files): Reflect rename, and drop unused file.
7696         (Depends-on): Drop unused dependency.
7697
7698         passfd: allow compilation on mingw
7699         * modules/sys_socket (Depends-on): Add sys_uio.
7700         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
7701         iovec and a minimal struct msghdr.
7702         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
7703         * tests/test-sys_socket.c (main): Enhance test.
7704         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
7705         guaranteed to provide what we need.
7706         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
7707         * modules/passfd-tests (Depends-on): Add sys_wait.
7708         * tests/test-passfd.c (main): Skip test on mingw, for now.
7709         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
7710         partial 'struct msghdr' implementation.
7711
7712         sys_uio: new module
7713         * modules/sys_uio: New module.
7714         * modules/sys_uio-tests: Likewise.
7715         * lib/sys_uio.in.h: New file.
7716         * m4/sys_uio_h.m4: Likewise.
7717         * tests/test-sys_uio.c: Likewise.
7718         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
7719         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
7720
7721 2011-04-20  Jim Meyering  <meyering@redhat.com>
7722
7723         useless-if-before-free: avoid false-positive
7724         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
7725         disjunct so that it too requires a terminating ";".  Without that,
7726         this script would identify as useless one statement from gcc that
7727         was not:
7728           if (aligned_ptr)
7729             free (((void **) aligned_ptr) [-1]);
7730
7731 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
7732
7733         doc: update users.txt.
7734         * users.txt: Add barcode.
7735
7736 2011-04-19  Bruno Haible  <bruno@clisp.org>
7737
7738         ioctl: Remove link dependency on native Windows.
7739         * lib/fd-hook.h: Renamed from lib/close-hook.h.
7740         (gl_close_fn, gl_ioctl_fn): New types.
7741         (struct fd_hook): Renamed from struct close_hook. Change type of
7742         private_close_fn field. Add private_ioctl_fn field.
7743         (close_hook_fn): Add parameter for primary close method.
7744         (execute_close_hooks, execute_all_close_hooks): Likewise.
7745         (ioctl_hook_fn): New type.
7746         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
7747         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
7748         argument.
7749         (unregister_fd_hook): Renamed from unregister_close_hook.
7750         * lib/fd-hook.c: Renamed from lib/close-hook.c.
7751         Don't include <unistd.h>.
7752         (close): Remove undef.
7753         (anchor): Update.
7754         (execute_close_hooks): Add argument for primary close method.
7755         (execute_all_close_hooks): Likewise.
7756         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
7757         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
7758         argument. Allow each argument to be NULL.
7759         (unregister_fd_hook): Renamed from unregister_close_hook.
7760         * lib/close.c (rpl_close): Pass 'close' function pointer to
7761         execute_all_close_hooks.
7762         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
7763         (primary_ioctl): New function.
7764         (ioctl): Don't call ioctlsocket here. Instead, call
7765         execute_all_ioctl_hooks.
7766         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
7767         close method.
7768         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
7769         (fd_sockets_hook): Renamed from close_sockets_hook.
7770         (gl_sockets_startup, gl_sockets_cleanup): Update.
7771         * modules/fd-hook: Renamed from modules/close-hook. Update.
7772         * modules/close (Depends-on): Add fd-hook, remove close-hook.
7773         * modules/sockets (Depends-on): Likewise.
7774         * modules/ioctl (Depends-on): Add fd-hook.
7775         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
7776         GNULIB_SOCKET.
7777
7778 2011-04-19  Bruno Haible  <bruno@clisp.org>
7779
7780         Move the support of O_NONBLOCK in open() to the 'open' module.
7781         * modules/nonblocking (Depends-on): Remove 'open'.
7782         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
7783         gl_cv_have_open_O_NONBLOCK.
7784         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
7785         O_NONBLOCK support.
7786         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
7787
7788 2011-04-17  Bruno Haible  <bruno@clisp.org>
7789
7790         pipe2: Simplify code.
7791         * lib/pipe2.c (pipe2): Reduce code duplication.
7792
7793 2011-04-17  Bruno Haible  <bruno@clisp.org>
7794
7795         nonblocking: Add comment.
7796         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
7797
7798 2011-04-17  Bruno Haible  <bruno@clisp.org>
7799
7800         nonblocking: Add tests for sockets.
7801         * tests/test-nonblocking-socket.sh: New file.
7802         * tests/test-nonblocking-socket-main.c: New file.
7803         * tests/test-nonblocking-socket-child.c: New file.
7804         * tests/test-nonblocking-socket.h: New file.
7805         * tests/socket-server.h: New file.
7806         * tests/socket-client.h: New file.
7807         * modules/nonblocking-socket-tests: New file.
7808         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
7809
7810 2011-04-17  Bruno Haible  <bruno@clisp.org>
7811
7812         nonblocking: Add tests for pipes.
7813         * tests/test-nonblocking-pipe.sh: New file.
7814         * tests/test-nonblocking-pipe-main.c: New file.
7815         * tests/test-nonblocking-pipe-child.c: New file.
7816         * tests/test-nonblocking-pipe.h: New file.
7817         * tests/test-nonblocking-writer.h: New file.
7818         * tests/test-nonblocking-reader.h: New file.
7819         * tests/test-nonblocking-misc.h: New file.
7820         * modules/nonblocking-pipe-tests: New file.
7821         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
7822
7823 2011-04-16  Bruno Haible  <bruno@clisp.org>
7824
7825         gettext: Clarify the needed programmer actions.
7826         * modules/gettext (Notice): New field.
7827         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
7828
7829 2011-04-16  Bruno Haible  <bruno@clisp.org>
7830
7831         strchrnul: Tweak last commit.
7832         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
7833         bug.
7834         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
7835         as in _GL_FUNCDECL_SYS.
7836         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
7837         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
7838
7839 2011-04-15  Eric Blake  <eblake@redhat.com>
7840
7841         strchrnul: work around cygwin bug
7842         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
7843         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
7844         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
7845         * modules/string (Makefile.am): Substitute it.
7846         * lib/string.in.h (strchrnul): Use it.
7847
7848 2011-04-15  Bruno Haible  <bruno@clisp.org>
7849
7850         Don't require lib/stdio-write.c when only module 'stdio' is used.
7851         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
7852         invocation.
7853         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
7854
7855 2011-04-14  Bruno Haible  <bruno@clisp.org>
7856
7857         Support non-blocking pipe I/O in read() on native Windows.
7858         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
7859         (read): New declaration.
7860         * lib/read.c: New file.
7861         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
7862         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
7863         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
7864         vscanf): New declarations.
7865         * lib/stdio-read.c: New file.
7866         * m4/read.m4: New file.
7867         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
7868         REPLACE_READ.
7869         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
7870         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
7871         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
7872         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
7873         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
7874         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
7875         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
7876         * modules/read: New file.
7877         * modules/nonblocking (Files): Add lib/stdio-read.c.
7878         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
7879         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
7880         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
7881         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
7882         * modules/pread (Depends-on): Add read.
7883         * modules/safe-read (Depends-on): Likewise.
7884         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
7885         gets, scanf, vfscanf, vscanf): Verify signatures.
7886         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
7887         problem with non-blocking pipes.
7888         * doc/posix-functions/fgetc.texi: Likewise.
7889         * doc/posix-functions/fgets.texi: Likewise.
7890         * doc/posix-functions/fread.texi: Likewise.
7891         * doc/posix-functions/fscanf.texi: Likewise.
7892         * doc/posix-functions/getc.texi: Likewise.
7893         * doc/posix-functions/getchar.texi: Likewise.
7894         * doc/posix-functions/gets.texi: Likewise.
7895         * doc/posix-functions/scanf.texi: Likewise.
7896         * doc/posix-functions/vfscanf.texi: Likewise.
7897         * doc/posix-functions/vscanf.texi: Likewise.
7898
7899 2011-04-14  Bruno Haible  <bruno@clisp.org>
7900
7901         Support non-blocking pipe I/O in write() on native Windows.
7902         * lib/write.c (rpl_write): Split a write request that failed merely
7903         because the byte count was larger than the pipe buffer's size.
7904         * doc/posix-functions/write.texi: Mention the problem with large byte
7905         counts.
7906
7907 2011-04-14  Bruno Haible  <bruno@clisp.org>
7908
7909         wchar: Ensure that wchar_t gets defined on uClibc.
7910         * lib/wchar.in.h: On uClibc, include <stddef.h>.
7911         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
7912
7913 2011-04-13  Bruno Haible  <bruno@clisp.org>
7914
7915         safe-write, full-read: Avoid unnecessary compilation units.
7916         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
7917         (Depends-on): Remove safe-read. Add ssize_t.
7918         * modules/full-read (Files): Add lib/full-write.c.
7919         (Depends-on): Add full-write.
7920
7921 2011-04-13  Bruno Haible  <bruno@clisp.org>
7922
7923         Support non-blocking pipe I/O and SIGPIPE in pwrite().
7924         * modules/pwrite (Depends-on): Add 'write'.
7925
7926 2011-04-13  Bruno Haible  <bruno@clisp.org>
7927
7928         Support non-blocking pipe I/O in write() on native Windows.
7929         * lib/unistd.in.h (write): Enable replacement also if
7930         GNULIB_UNISTD_H_NONBLOCKING is 1.
7931         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
7932         (rpl_write): When failing to write on a non-blocking pipe, change
7933         errno from ENOSPC to EAGAIN.
7934         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
7935         putchar, puts, vfprintf, vprintf): Enable replacement also if
7936         GNULIB_STDIO_H_NONBLOCKING is 1.
7937         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
7938         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
7939         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
7940         CALL_WITH_SIGPIPE_EMULATION.
7941         (CALL_WITH_SIGPIPE_EMULATION): Use them.
7942         * m4/nonblocking.m4: New file.
7943         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
7944         for non-blocking I/O support.
7945         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
7946         GNULIB_UNISTD_H_NONBLOCKING.
7947         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
7948         required for non-blocking I/O support.
7949         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
7950         * modules/nonblocking (Files): Add m4/nonblocking.m4,
7951         lib/stdio-write.c, m4/asm-underscore.m4.
7952         (Depends-on): Add stdio, unistd.
7953         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
7954         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
7955         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
7956         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
7957         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
7958         problem with non-blocking pipes.
7959         * doc/posix-functions/fputc.texi: Likewise.
7960         * doc/posix-functions/fputs.texi: Likewise.
7961         * doc/posix-functions/fwrite.texi: Likewise.
7962         * doc/posix-functions/printf.texi: Likewise.
7963         * doc/posix-functions/putc.texi: Likewise.
7964         * doc/posix-functions/putchar.texi: Likewise.
7965         * doc/posix-functions/puts.texi: Likewise.
7966         * doc/posix-functions/vfprintf.texi: Likewise.
7967         * doc/posix-functions/vprintf.texi: Likewise.
7968         * doc/posix-functions/write.texi: Likewise.
7969
7970 2011-04-10  Jim Meyering  <meyering@redhat.com>
7971
7972         maint.mk: prohibit doubled words
7973         Detect them also when they're separated by a newline.
7974         There are 3 ways to customize it:
7975           - disable the test on a per file basis, as usual with rules using
7976             $(VC_LIST_EXCEPT)
7977           - replace the default doubled-word-selecting regexp (affects all files)
7978           - ignore a particular file-vs-doubled-word match
7979         I nearly used that last one to ignore the "is is" match in
7980         coreutils' NEWS file, since the text was "ls -is is ..."
7981         To do that, I would have added this line to cfg.mk:
7982           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
7983         but it would have ignored any "is is" match in NEWS.
7984         Low probability, but still...
7985         Instead, I changed the text, slightly:
7986           -  ls -is is now consistent with ls -lis in ignoring values returned
7987           +  "ls -is" is now consistent with ls -lis in ignoring values returned
7988         * top/maint.mk (prohibit_double_word_RE_): Provide default.
7989         (prohibit_doubled_word_): Define.
7990         (sc_prohibit_doubled_word): New rule.
7991         (sc_prohibit_the_the): Remove.  Subsumed by the above.
7992
7993 2011-04-10  Jim Meyering  <meyering@redhat.com>
7994
7995         maint: fix doubled-word typo in comment
7996         * m4/gethostname.m4: s/is is/it is/
7997         * m4/getdomainname.m4: Likewise.
7998
7999 2011-04-10  Jim Meyering  <meyering@redhat.com>
8000
8001         maint: remove doubled word: s/it it/it/
8002         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
8003
8004 2011-04-10  Jim Meyering  <meyering@redhat.com>
8005
8006         maint.mk: remove useless semicolon and backslash
8007         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
8008         semicolon and backslash.
8009
8010 2011-04-10  Bruno Haible  <bruno@clisp.org>
8011
8012         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
8013         * modules/stdint-tests (Depends-on): Add wchar.
8014
8015 2011-04-10  Jim Meyering  <meyering@redhat.com>
8016
8017         maint: remove doubled words in comments, e.g., s/a a/a/
8018         * lib/strptime.c (day_of_the_week): s/the the/the/
8019         * tests/test-chown.h (test_chown): s/a a/a/
8020
8021         test-chown.h: correct a cast
8022         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
8023         when the destination is a stat.st_gid.
8024
8025 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
8026
8027         getaddrinfo: Fix test for sa_len member.
8028         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
8029         include <sys/types.h> before <sys/socket.h>.
8030
8031 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
8032
8033         maint: change "can not" to "cannot"
8034         * doc/posix-functions/iconv.texi (iconv): This one crossed line
8035         boundaries.
8036
8037 2011-04-09  Jim Meyering  <meyering@redhat.com>
8038
8039         maint: change "a a" to "a"
8040         * tests/test-lchown.h (test_lchown): s/a a/a/
8041
8042         maint.mk: prohibit \<the the\>
8043         * top/maint.mk (sc_prohibit_the_the): New rule.
8044
8045         maint: fix "the the" in comment
8046         * lib/count-one-bits.h: s/the the/the/
8047
8048         maint: change "can not" to "cannot"
8049         But do not change the occurrences in maintain.texi or in
8050         build-aux/po/Makefile.in.in, which I presume comes from gettext.
8051         * doc/gnulib-tool.texi: s/can not/cannot/
8052         * doc/posix-functions/accept.texi (accept): Likewise.
8053         * doc/posix-functions/socket.texi (socket): Likewise.
8054         * lib/mbrtowc.c: Likewise.
8055
8056         maint.mk: prohibit use of "can not"
8057         * top/maint.mk (sc_prohibit_can_not): New rule.
8058         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
8059
8060 2011-04-09  Bruno Haible  <bruno@clisp.org>
8061
8062         careadlinkat: Guard against misuse of careadlinkatcwd.
8063         * lib/careadlinkat.c: Include <stdlib.h>.
8064         (careadlinkatcwd): Check that the fd argument is as expected.
8065
8066 2011-04-09  Bruno Haible  <bruno@clisp.org>
8067
8068         careadlinkat: Use common coding style.
8069         * lib/careadlinkat.c: Move gnulib includes after system includes.
8070
8071 2011-04-09  Bruno Haible  <bruno@clisp.org>
8072
8073         careadlinkat: Clarify specification.
8074         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
8075         (careadlinkatcwd): Add comment.
8076         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
8077
8078 2011-04-09  Bruno Haible  <bruno@clisp.org>
8079
8080         areadlinkat: Avoid link error on many platforms.
8081         * modules/areadlinkat (Depends-on): Add areadlink.
8082
8083 2011-04-09  Bruno Haible  <bruno@clisp.org>
8084
8085         allocator, careadlinkat: Fix double-inclusion guard.
8086         * lib/allocator.h: Fix double-inclusion guard.
8087         * lib/careadlinkat.h: Likewise.
8088
8089 2011-04-09  Bruno Haible  <bruno@clisp.org>
8090
8091         relocatable-prog-wrapper: Update after module 'areadlink' changed.
8092         * lib/relocwrapper.c: Update dependencies hierarchy.
8093         * build-aux/install-reloc: Update list of files to be compiled.
8094         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
8095         lib/allocator.[hc].
8096
8097 2011-04-08  Eric Blake  <eblake@redhat.com>
8098
8099         strftime: silence gnulib-tool warning
8100         * modules/strftime-tests (Depends-on): Drop automatic dependency.
8101
8102 2011-04-08  Bruno Haible  <bruno@clisp.org>
8103
8104         verify: Fix syntax error with GCC 4.6 in C++ mode.
8105         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
8106         (HAVE_STATIC_ASSERT): New macro.
8107         (verify_true, verify): Use 'static_assert' if it is supported and
8108         '_Static_assert' is not supported.
8109
8110 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
8111
8112         allocator: New module.
8113         * modules/allocator, lib/allocator.c: New files.
8114         * lib/allocator.h (stdlib_allocator): New decl.
8115         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
8116         Remove.  Do not include <stdlib.h>.
8117         (careadlinkat): Use stdlib_allocator instead of rolling our own.
8118         * modules/careadlinkat (Files): Remove lib/allocator.h.
8119         (Depends-on): Add allocator.
8120
8121         stdlib: let modules use system malloc, realloc
8122         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
8123         if !_GL_USE_STDLIB_ALLOC.
8124         (malloc, realloc): Limit this change to a smaller scope.
8125
8126         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
8127         (malloc, realloc): Don't #undef; no longer needed.
8128         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
8129         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
8130         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
8131         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
8132         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
8133         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
8134         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
8135         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
8136
8137         careadlinkat: rename members to avoid problem
8138         * lib/allocator.h (struct allocator): Rename members from
8139         malloc/realloc to allocate/reallocate, to avoid problems if malloc
8140         and realloc are #define'd.  Reported by Eric Blake in
8141         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
8142         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
8143
8144 2011-04-08  Eric Blake  <eblake@redhat.com>
8145
8146         nonblocking: reduce dependency
8147         * tests/test-nonblocking.c: Only test sockets when in use.
8148         * modules/nonblocking-tests (Depends-on): Drop socket.
8149         (Makefile.am): Link even if sockets are not present.
8150         * modules/pipe2-tests (Makefile.am): Likewise.
8151         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
8152
8153         pipe2: fix O_NONBLOCK support on mingw
8154         * modules/pipe2 (Depends-on): Add nonblocking.
8155         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
8156         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
8157         * tests/test-nonblocking.c (main): Likewise.
8158         * modules/pipe2-tests (Makefile.am): Avoid link failure.
8159
8160         fcntl-h: fix O_ACCMODE on cygwin
8161         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
8162         * lib/fcntl.in.h (O_ACCMODE): Fix it.
8163
8164         pipe-filter: drop O_NONBLOCK workarounds
8165         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
8166         * modules/pipe-filter-ii (Depends-on): Likewise.
8167         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
8168
8169         nonblocking: provide O_NONBLOCK for mingw
8170         * modules/nonblocking (Depends-on): Add open.
8171         (configure.ac): Set new witness macro.
8172         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
8173         * modules/fcntl-h (Makefile.am): Substitute it.
8174         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
8175         nonblocking module is in use.
8176         * lib/nonblocking.c: Adjust portability test.
8177         * lib/open.c (open): Don't let native open see gnulib flag.
8178         * tests/test-fcntl-h.c (main): Enhance test.
8179         * tests/test-open.h (test_open): Likewise.
8180         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
8181
8182         careadlinkat: fix compilation error on mingw
8183         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
8184         within struct allocator.
8185
8186 2011-04-06  Eric Blake  <eblake@redhat.com>
8187
8188         binary-io: relicense under LGPLv2+
8189         * modules/binary-io (License): Relax to LGPLv2+.
8190         Requested for libvirt, and required by pipe2.
8191
8192 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
8193
8194         verify: use _Static_assert if available
8195         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
8196         (verify_true, verify): Use it if available.  This generates better
8197         diagnostics with GCC 4.6.0 and later.
8198
8199 2011-04-05  Bruno Haible  <bruno@clisp.org>
8200
8201         Remove leftover generated .h files after config.status changed.
8202
8203         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
8204         GL_GENERATE_ALLOCA_H.
8205         * modules/alloca-opt (Makefile.am): Remove alloca.h if
8206         GL_GENERATE_ALLOCA_H evaluates to false.
8207
8208         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
8209         GL_GENERATE_ARGZ_H.
8210         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
8211         evaluates to false.
8212
8213         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
8214         GL_GENERATE_BYTESWAP_H.
8215         * modules/byteswap (Makefile.am): Remove byteswap.h if
8216         GL_GENERATE_BYTESWAP_H evaluates to false.
8217
8218         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
8219         GL_GENERATE_ERRNO_H.
8220         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
8221         evaluates to false.
8222
8223         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
8224         GL_GENERATE_FLOAT_H.
8225         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
8226         evaluates to false.
8227
8228         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
8229         GL_GENERATE_FNMATCH_H.
8230         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
8231         GL_GENERATE_FNMATCH_H evaluates to false.
8232
8233         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
8234         GL_GENERATE_GLOB_H.
8235         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
8236         evaluates to false.
8237
8238         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
8239         automake conditional GL_GENERATE_ICONV_H.
8240         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
8241         evaluates to false.
8242
8243         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
8244         GL_GENERATE_NETINET_IN_H.
8245         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
8246         GL_GENERATE_NETINET_IN_H evaluates to false.
8247
8248         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
8249         conditional GL_GENERATE_PTHREAD_H.
8250         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
8251         * modules/pthread (Makefile.am): Remove pthread.h if
8252         GL_GENERATE_PTHREAD_H evaluates to false.
8253
8254         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
8255         GL_GENERATE_SCHED_H.
8256         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
8257         evaluates to false.
8258
8259         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
8260         conditional GL_GENERATE_SELINUX_CONTEXT_H.
8261         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
8262         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
8263
8264         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
8265         GL_GENERATE_STDARG_H.
8266         * modules/stdarg (Makefile.am): Remove stdarg.h if
8267         GL_GENERATE_STDARG_H evaluates to false.
8268
8269         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
8270         GL_GENERATE_STDBOOL_H.
8271         * modules/stdbool (Makefile.am): Remove stdbool.h if
8272         GL_GENERATE_STDBOOL_H evaluates to false.
8273
8274         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
8275         conditional GL_GENERATE_STDDEF_H.
8276         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
8277         * modules/stddef (Makefile.am): Remove stddef.h if
8278         GL_GENERATE_STDDEF_H evaluates to false.
8279
8280         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
8281         GL_GENERATE_STDINT_H.
8282         * modules/stdint (Makefile.am): Remove stdint.h if
8283         GL_GENERATE_STDINT_H evaluates to false.
8284
8285         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
8286         GL_GENERATE_SYSEXITS_H.
8287         * modules/sysexits (Makefile.am): Remove sysexits.h if
8288         GL_GENERATE_SYSEXITS_H evaluates to false.
8289
8290         Reported by Karl Berry and Ralf Wildenhues.
8291
8292 2011-04-05  Bruno Haible  <bruno@clisp.org>
8293
8294         Ensure to rebuild generated .h files when config.status has changed.
8295         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
8296         config.status.
8297         * modules/ctype (Makefile.am): Likewise.
8298         * modules/dirent (Makefile.am): Likewise.
8299         * modules/errno (Makefile.am): Likewise.
8300         * modules/fcntl-h (Makefile.am): Likewise.
8301         * modules/float (Makefile.am): Likewise.
8302         * modules/getopt-posix (Makefile.am): Likewise.
8303         * modules/glob (Makefile.am): Likewise.
8304         * modules/iconv-h (Makefile.am): Likewise.
8305         * modules/inttypes (Makefile.am): Likewise.
8306         * modules/langinfo (Makefile.am): Likewise.
8307         * modules/locale (Makefile.am): Likewise.
8308         * modules/math (Makefile.am): Likewise.
8309         * modules/netdb (Makefile.am): Likewise.
8310         * modules/netinet_in (Makefile.am): Likewise.
8311         * modules/poll-h (Makefile.am): Likewise.
8312         * modules/pthread (Makefile.am): Likewise.
8313         * modules/pty (Makefile.am): Likewise.
8314         * modules/sched (Makefile.am): Likewise.
8315         * modules/search (Makefile.am): Likewise.
8316         * modules/selinux-h (Makefile.am): Likewise.
8317         * modules/signal (Makefile.am): Likewise.
8318         * modules/spawn (Makefile.am): Likewise.
8319         * modules/stdarg (Makefile.am): Likewise.
8320         * modules/stdbool (Makefile.am): Likewise.
8321         * modules/stddef (Makefile.am): Likewise.
8322         * modules/stdint (Makefile.am): Likewise.
8323         * modules/stdio (Makefile.am): Likewise.
8324         * modules/stdlib (Makefile.am): Likewise.
8325         * modules/string (Makefile.am): Likewise.
8326         * modules/strings (Makefile.am): Likewise.
8327         * modules/sys_file (Makefile.am): Likewise.
8328         * modules/sys_ioctl (Makefile.am): Likewise.
8329         * modules/sys_select (Makefile.am): Likewise.
8330         * modules/sys_socket (Makefile.am): Likewise.
8331         * modules/sys_stat (Makefile.am): Likewise.
8332         * modules/sys_time (Makefile.am): Likewise.
8333         * modules/sys_times (Makefile.am): Likewise.
8334         * modules/sys_utsname (Makefile.am): Likewise.
8335         * modules/sys_wait (Makefile.am): Likewise.
8336         * modules/sysexits (Makefile.am): Likewise.
8337         * modules/termios (Makefile.am): Likewise.
8338         * modules/time (Makefile.am): Likewise.
8339         * modules/unistd (Makefile.am): Likewise.
8340         * modules/wchar (Makefile.am): Likewise.
8341         * modules/wctype-h (Makefile.am): Likewise.
8342         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
8343
8344 2011-04-05  Bruno Haible  <bruno@clisp.org>
8345
8346         pipe2: Relicense under LGPLv2+.
8347         * modules/pipe2 (License): Change to LGPLv2+.
8348         Requested by Eric Blake, for libvirt.
8349
8350 2011-04-05  Bruce Korb  <bkorb@gnu.org>
8351
8352         bootstrap: compute gnulib_extra_files after updating build_aux
8353         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
8354         change build_aux or also supply gnulib_extra_files.  Handle correctly.
8355
8356 2011-04-05  Eric Blake  <eblake@redhat.com>
8357
8358         bootstrap: preserve git whitelist item sorting
8359         * build-aux/bootstrap (sort_patterns): New function.
8360         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
8361
8362 2011-04-05  Simon Josefsson  <simon@josefsson.org>
8363
8364         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
8365         sc_space_tab check.
8366
8367 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
8368
8369         areadlink, areadlinkat: rewrite in terms of careadlinkat
8370         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
8371         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
8372         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
8373         (malloc, realloc): Remove #undefs.
8374         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
8375         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
8376         readlink, ssize_t, stdint, unistd.
8377         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
8378         areadlink, stdint.
8379
8380         careadlinkat: new module
8381         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
8382         * modules/careadlinkat: New files, written by me with
8383         a review and feedback from Ben Pfaff in
8384         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
8385
8386 2011-04-01  Bruno Haible  <bruno@clisp.org>
8387
8388         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
8389         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
8390         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
8391         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
8392         Reported by Bruce Korb <bruce.korb@gmail.com>.
8393
8394 2011-04-01  Bruno Haible  <bruno@clisp.org>
8395
8396         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
8397         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
8398         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
8399         * modules/wcpcpy (Depends-on): Add extensions.
8400         * modules/wcpncpy (Depends-on): Likewise.
8401         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
8402         systems.
8403         * doc/posix-functions/wcpncpy.texi: Likewise.
8404         * doc/posix-functions/wcwidth.texi: Likewise.
8405
8406 2011-03-31  Eric Blake  <eblake@redhat.com>
8407
8408         nonblocking: fix mingw test failures
8409         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
8410         non-blocking flag on regular file.
8411         (get_nonblocking_flag): Set errno on invalid fd.
8412         * tests/test-nonblocking.c (main): Avoid test failure on
8413         directories if fchdir is not active.
8414         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
8415
8416 2011-03-31  Bruno Haible  <bruno@clisp.org>
8417
8418         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
8419         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
8420         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
8421         Reported by Simon Josefsson <simon@josefsson.org>.
8422
8423 2011-03-31  Bruno Haible  <bruno@clisp.org>
8424         and Eric Blake  <eblake@redhat.com>
8425
8426         nonblocking: new module
8427         * modules/nonblocking: New module.
8428         * modules/nonblocking-tests: Likewise.
8429         * lib/nonblocking.h: New file.
8430         * lib/nonblocking.c: Likewise.
8431         * tests/test-nonblocking.c: New test.
8432         * lib/ioctl.c (ioctl) [mingw]: Update comment.
8433
8434 2011-03-30  Bruno Haible  <bruno@clisp.org>
8435
8436         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
8437         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
8438         instead of 'printf' format for GCC >= 4.4.
8439         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
8440         (fprintf, printf, vfprintf, vprintf): Declare with
8441         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
8442         the system's vfprintf() function.
8443         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
8444
8445 2011-03-30  Eric Blake  <eblake@redhat.com>
8446
8447         passfd: fix scoping bug
8448         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
8449         before sendmsg/recvmsg.
8450
8451         passfd: standardize coding conventions
8452         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
8453         can be learned at compile time.
8454         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
8455         ifdefs.
8456         (sendfd, recvfd): Follow gnulib code conventions.
8457
8458         passfd: fix incorrect sendmsg arguments
8459         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
8460         incorrect msg_controllen value.
8461         * modules/passfd-tests (Depends-on): Check for alarm.
8462         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
8463         Reported by Bastien ROUCARIES.
8464
8465 2011-03-30  Bruno Haible  <bruno@clisp.org>
8466
8467         c-strcasestr: Relicense under LGPLv2+.
8468         * modules/c-strcasestr (License): Change to LGPLv2+.
8469         Requested by Eric Blake, for libvirt.
8470
8471 2011-03-30  Simon Josefsson  <simon@josefsson.org>
8472
8473         * users.txt: Add libidn2.  Fix libtasn1 link.
8474
8475 2011-03-30  Jim Meyering  <meyering@redhat.com>
8476
8477         tests: readlink* ("",... fails with EINVAL on newer kernels
8478         readlink and readlinkat have typically failed with ENOENT for
8479         the invalid, empty file name,  "".  However, with the advent
8480         of linux-2.6.39, they fail with EINVAL.
8481         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
8482         when operating on the empty file name.
8483         * tests/test-readlink.h (test_readlink): Likewise.
8484
8485 2011-03-29  Bruno Haible  <bruno@clisp.org>
8486
8487         Relicense some modules under LGPLv2+, for libidn2.
8488         * modules/array-mergesort (License): Change to LGPLv2+.
8489         * modules/c-strcaseeq (License): Likewise.
8490         * modules/striconveh (License): Likewise.
8491         * modules/striconveha (License): Likewise.
8492         * modules/uniconv/base (License): Likewise.
8493         * modules/uniconv/u8-conv-from-enc (License): Likewise.
8494         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
8495         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
8496         * modules/unictype/base (License): Likewise.
8497         * modules/unictype/bidiclass-of (License): Likewise.
8498         * modules/unictype/category-M (License): Likewise.
8499         * modules/unictype/category-none (License): Likewise.
8500         * modules/unictype/category-of (License): Likewise.
8501         * modules/unictype/category-test (License): Likewise.
8502         * modules/unictype/category-test-withtable (License): Likewise.
8503         * modules/unictype/combining-class (License): Likewise.
8504         * modules/unictype/joiningtype-of (License): Likewise.
8505         * modules/unictype/scripts (License): Likewise.
8506         * modules/uninorm/base (License): Likewise.
8507         * modules/uninorm/canonical-decomposition (License): Likewise.
8508         * modules/uninorm/composition (License): Likewise.
8509         * modules/uninorm/decompose-internal (License): Likewise.
8510         * modules/uninorm/decomposition-table (License): Likewise.
8511         * modules/uninorm/nfc (License): Likewise.
8512         * modules/uninorm/nfd (License): Likewise.
8513         * modules/uninorm/u32-normalize (License): Likewise.
8514         * modules/unistr/base (License): Likewise.
8515         * modules/unistr/u32-cpy (License): Likewise.
8516         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
8517         * modules/unistr/u32-to-u8 (License): Likewise.
8518         * modules/unistr/u32-uctomb (License): Likewise.
8519         * modules/unistr/u8-check (License): Likewise.
8520         * modules/unistr/u8-mblen (License): Likewise.
8521         * modules/unistr/u8-mbtouc (License): Likewise.
8522         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
8523         * modules/unistr/u8-mbtoucr (License): Likewise.
8524         * modules/unistr/u8-prev (License): Likewise.
8525         * modules/unistr/u8-strlen (License): Likewise.
8526         * modules/unistr/u8-to-u32 (License): Likewise.
8527         * modules/unistr/u8-uctomb (License): Likewise.
8528         * modules/unitypes (License): Likewise.
8529         Requested by Simon Josefsson.
8530
8531 2011-03-29  Simon Josefsson  <simon@josefsson.org>
8532
8533         lib-symbol-visibility: Add a notice.
8534         * modules/lib-symbol-visibility (Notice): New field.
8535
8536 2011-03-29  Bruno Haible  <bruno@clisp.org>
8537
8538         getaddrinfo: Doc fix.
8539         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
8540         section "fixed in Gnulib".
8541
8542 2011-03-28  Simon Josefsson  <simon@josefsson.org>
8543
8544         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
8545         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
8546
8547 2011-03-26  Bruno Haible  <bruno@clisp.org>
8548
8549         unictype/property-byname: Reduce the number of load-time relocations.
8550         * lib/unictype/pr_byname.c: Include <stdlib.h>.
8551         (UC_PROPERTY_INDEX_*): New enumeration values.
8552         (uc_property_byname): Convert an index from the lookup table to an
8553         uc_property_t.
8554         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
8555         values.
8556
8557 2011-03-26  Bruno Haible  <bruno@clisp.org>
8558
8559         unictype/property-byname: Allow omitted word separators and aliases.
8560         * lib/unictype/pr_byname.gperf: Add property names without word
8561         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
8562         for 'space'.
8563
8564 2011-03-26  Bruno Haible  <bruno@clisp.org>
8565
8566         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
8567         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
8568         also hyphens to space.
8569         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
8570         without spaces.
8571         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
8572
8573 2011-03-26  Bruno Haible  <bruno@clisp.org>
8574
8575         unictype/joiningtype-byname: Recognize long names as well.
8576         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
8577         a long name.
8578         * lib/unictype/joiningtype_byname.c: Include <string.h>,
8579         unictype/joiningtype_byname.h.
8580         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
8581         * lib/unictype/joiningtype_byname.gperf: New file.
8582         * modules/unictype/joiningtype-byname (Files): Add
8583         lib/unictype/joiningtype_byname.gperf.
8584         (Depends-on): Add gperf.
8585         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
8586         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
8587         long names.
8588
8589         Tests for module 'unictype/joiningtype-longname'.
8590         * modules/unictype/joiningtype-longname-tests: New file.
8591         * tests/unictype/test-joiningtype_longname.c: New file.
8592
8593         New module 'unictype/joiningtype-longname'.
8594         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
8595         * lib/unictype/joiningtype_longname.c: New file.
8596         * modules/unictype/joiningtype-longname: New file.
8597         * modules/unictype/joiningtype-all (Depends-on): Add
8598         unictype/joiningtype-longname.
8599
8600 2011-03-26  Bruno Haible  <bruno@clisp.org>
8601
8602         unictype/bidiclass-byname: Recognize long names as well.
8603         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
8604         name.
8605         * lib/unictype/bidi_byname.c: Include <string.h>,
8606         unictype/bidi_byname.h.
8607         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
8608         * lib/unictype/bidi_byname.gperf: New file.
8609         * modules/unictype/bidiclass-byname (Files): Add
8610         lib/unictype/bidi_byname.gperf.
8611         (Depends-on): Add gperf.
8612         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
8613         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
8614         long names.
8615
8616         Tests for module 'unictype/bidiclass-longname'.
8617         * modules/unictype/bidiclass-longname-tests: New file.
8618         * tests/unictype/test-bidi_longname.c: New file.
8619
8620         New module 'unictype/bidiclass-longname'.
8621         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
8622         * lib/unictype/bidi_longname.c: New file.
8623         * modules/unictype/bidiclass-longname: New file.
8624         * modules/unictype/bidiclass-all (Depends-on): Add
8625         unictype/bidiclass-longname.
8626
8627 2011-03-26  Bruno Haible  <bruno@clisp.org>
8628
8629         unictype/bidi*: Rename modules.
8630         * modules/unictype/bidiclass-all: Renamed from
8631         modules/unictype/bidicategory-all.
8632         * modules/unictype/bidiclass-name: Renamed from
8633         modules/unictype/bidiclass-name.
8634         (Description): Update.
8635         * modules/unictype/bidiclass-name-tests: Renamed from
8636         modules/unictype/bidicategory-name-tests.
8637         * modules/unictype/bidiclass-byname: Renamed from
8638         modules/unictype/bidicategory-byname.
8639         (Description): Update.
8640         * modules/unictype/bidiclass-byname-tests: Renamed from
8641         modules/unictype/bidicategory-byname-tests.
8642         * modules/unictype/bidiclass-of: Renamed from
8643         modules/unictype/bidicategory-of.
8644         (Description): Update.
8645         * modules/unictype/bidiclass-of-tests: Renamed from
8646         modules/unictype/bidicategory-of-tests.
8647         * modules/unictype/bidiclass-test: Renamed from
8648         modules/unictype/bidicategory-test.
8649         (Description): Update.
8650         * modules/unictype/bidiclass-test-tests: Renamed from
8651         modules/unictype/bidicategory-test-tests.
8652         * modules/unictype/bidicategory-all: New file, a simple redirection.
8653         * modules/unictype/bidicategory-name: Likewise.
8654         * modules/unictype/bidicategory-byname: Likewise.
8655         * modules/unictype/bidicategory-of: Likewise.
8656         * modules/unictype/bidicategory-test: Likewise.
8657         * modules/unictype/property-bidi-* (Dependencies): Update.
8658         * lib/unictype/bidi_*.c: Update comment.
8659
8660 2011-03-26  Bruno Haible  <bruno@clisp.org>
8661
8662         unictype/bidi*: Rename functions, part 2.
8663         * modules/unictype/bidicategory-name (configure.ac): Update required
8664         libunistring version.
8665         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
8666
8667 2011-03-25  Bruno Haible  <bruno@clisp.org>
8668
8669         New module 'unictype/combining-class-all'.
8670         * modules/unictype/combining-class-all: New file.
8671
8672         Tests for module 'unictype/combining-class-byname'.
8673         * modules/unictype/combining-class-byname-tests: New file.
8674         * tests/unictype/test-combiningclass_byname.c: New file.
8675
8676         New module 'unictype/combining-class-byname'.
8677         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
8678         * lib/unictype/combiningclass_byname.c: New file.
8679         * lib/unictype/combiningclass_byname.gperf: New file.
8680         * modules/unictype/combining-class-byname: New file.
8681
8682         Tests for module 'unictype/combining-class-longname'.
8683         * modules/unictype/combining-class-longname-tests: New file.
8684         * tests/unictype/test-combiningclass_longname.c: New file.
8685
8686         New module 'unictype/combining-class-longname'.
8687         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
8688         * lib/unictype/combiningclass_longname.c: New file.
8689         * modules/unictype/combining-class-longname: New file.
8690
8691         Tests for module 'unictype/combining-class-name'.
8692         * modules/unictype/combining-class-name-tests: New file.
8693         * tests/unictype/test-combiningclass_name.c: New file.
8694
8695         New module 'unictype/combining-class-name'.
8696         * lib/unictype.in.h (uc_combining_class_name): New declaration.
8697         * lib/unictype/combiningclass_name.c: New file.
8698         * modules/unictype/combining-class-name: New file.
8699
8700 2011-03-25  Bruno Haible  <bruno@clisp.org>
8701
8702         unictype/combining-class: Rename source files.
8703         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
8704         of unictype/combining.h.
8705         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
8706         Update.
8707         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
8708         * modules/unictype/combining-class (Description): Fix.
8709         (Files, Makefile.am): Update.
8710         * tests/unictype/test-combiningclass.c: Renamed from
8711         tests/unictype/test-combining.c.
8712         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
8713
8714 2011-03-25  Bruno Haible  <bruno@clisp.org>
8715
8716         unictype: Update list of canonical combining classes.
8717         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
8718
8719 2011-03-25  Bruno Haible  <bruno@clisp.org>
8720
8721         unictype/category-byname: Recognize long names as well.
8722         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
8723         a long name.
8724         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
8725         unictype/categ_byname.h.
8726         (UC_CATEGORY_INDEX_*): New enumeration values.
8727         (uc_general_category_byname): Use uc_general_category_lookup and
8728         convert from index to value.
8729         * lib/unictype/categ_byname.gperf: New file.
8730         * modules/unictype/category-byname (Files): Add
8731         lib/unictype/categ_byname.gperf.
8732         (Depends-on): Add gperf.
8733         (Makefile.am): Add rule for generating unictype/categ_byname.h.
8734         * tests/unictype/test-categ_byname.c (main): Test the recognition of
8735         long names.
8736
8737         Tests for module 'unictype/category-longname'.
8738         * modules/unictype/category-longname-tests: New file.
8739         * tests/unictype/test-categ_longname.c: New file.
8740
8741         New module 'unictype/category-longname'.
8742         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
8743         * lib/unictype/categ_longname.c: New file.
8744         * modules/unictype/category-longname: New file.
8745         * modules/unictype/category-all (Depends-on): Add it.
8746
8747 2011-03-25  Bruno Haible  <bruno@clisp.org>
8748
8749         Tests for module 'unictype/category-LC'.
8750         * modules/unictype/category-LC-tests: New file.
8751         * tests/unictype/test-categ_LC.c: New file, automatically generated.
8752
8753         New module 'unictype/category-LC'.
8754         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
8755         (UC_CATEGORY_LC): New declaration.
8756         (UC_CASED_LETTER): New macro.
8757         * lib/gen-uni-tables.c (is_category_LC): New function.
8758         (output_categories): Also handle category LC.
8759         (UC_CATEGORY_MASK_LC): New enumeration value.
8760         (general_category_byname): Also handle category LC.
8761         * lib/unictype/categ_LC.c: New file.
8762         * lib/unictype/categ_LC.h: New file, automatically generated.
8763         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
8764         category LC.
8765         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
8766         * modules/unictype/category-LC: New file.
8767         * modules/unictype/category-byname (Depends-on): Add
8768         unictype/category-LC.
8769         * modules/unictype/category-all (Depends-on): Likewise.
8770
8771 2011-03-25  Eric Blake  <eblake@redhat.com>
8772
8773         xmalloc: revert yesterday's regression
8774         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
8775         realloc's underlying behavior (allowing allocation of zero-size
8776         objects, especially if malloc-gnu is also in use).
8777
8778 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
8779
8780         maint.mk: add missing version to VC-tag
8781         * top/maint.mk: git tag was missing actual tag name; add it.
8782
8783         valgrind: do leak checking, and exit with code 1 on error (not 0)
8784         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
8785         to VALGRIND.
8786
8787 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
8788
8789         posix-modules: say what it does.
8790         * posix-modules: Add a line to the --help output saying what it does.
8791
8792 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
8793
8794         xmalloc: Do not leak if underlying realloc is C99 compatible.
8795         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
8796         This avoids a leak on C99-based systems.  See
8797         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
8798
8799 2011-03-24  Eric Blake  <eblake@redhat.com>
8800
8801         realloc: document portability problem
8802         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
8803         passing 0 size to realloc.
8804
8805 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
8806
8807         doc: update users.txt
8808         * users.txt: Add cvsps, tmpwatch
8809
8810 2011-03-23  Matt Rice  <ratmice@gmail.com>
8811
8812         doc: update users.txt
8813         * users.txt: Add gdb.
8814
8815 2011-03-23  Jim Meyering  <meyering@redhat.com>
8816
8817         doc: update users.txt
8818         Looking through matches up to the following URL (there are still
8819         several more pages), I found several projects that use gnulib:
8820         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
8821         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
8822         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
8823
8824 2011-03-22  Bruno Haible  <bruno@clisp.org>
8825
8826         unictype/bidi*: Rename functions.
8827         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
8828         uc_bidi_class, uc_is_bidi_class): New declarations.
8829         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
8830         uc_bidi_category_byname.
8831         (uc_bidi_category_byname): New function.
8832         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
8833         u_bidi_category_name.
8834         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
8835         (uc_bidi_category_name): New function.
8836         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
8837         uc_bidi_category.
8838         (uc_bidi_category): New function.
8839         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
8840         uc_is_bidi_category. Invoke uc_bidi_class.
8841         (uc_is_bidi_category): New function.
8842         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
8843         instead of uc_bidi_category_byname.
8844         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
8845         instead of uc_bidi_category_name.
8846         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
8847         uc_bidi_category.
8848         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
8849         instead of uc_is_bidi_category.
8850
8851 2011-03-21  Bruno Haible  <bruno@clisp.org>
8852
8853         New module 'unictype/joininggroup-all'.
8854         * modules/unictype/joininggroup-all: New file.
8855
8856         Tests for module 'unictype/joininggroup-of'.
8857         * modules/unictype/joininggroup-of-tests: New file.
8858         * tests/unictype/test-joininggroup_of.c: New file.
8859         * tests/unictype/test-joininggroup_of.h: New file, automatically
8860         generated by gen-uni-tables.
8861
8862         New module 'unictype/joininggroup-of'.
8863         * modules/unictype/joininggroup-of: New file.
8864         * lib/unictype/joininggroup_of.c: New file.
8865         * lib/unictype/joininggroup_of.h: New file, automatically generated by
8866         gen-uni-tables.
8867
8868         Tests for module 'unictype/joininggroup-byname'.
8869         * modules/unictype/joininggroup-byname-tests: New file.
8870         * tests/unictype/test-joininggroup_byname.c: New file.
8871
8872         New module 'unictype/joininggroup-byname'.
8873         * modules/unictype/joininggroup-byname: New file.
8874         * lib/unictype/joininggroup_byname.c: New file.
8875         * lib/unictype/joininggroup_byname.gperf: New file.
8876
8877         Tests for module 'unictype/joininggroup-name'.
8878         * modules/unictype/joininggroup-name-tests: New file.
8879         * tests/unictype/test-joininggroup_name.c: New file.
8880
8881         New module 'unictype/joininggroup-name'.
8882         * modules/unictype/joininggroup-name: New file.
8883         * lib/unictype/joininggroup_name.c: New file.
8884         * lib/unictype/joininggroup_name.h: New file.
8885
8886         New module 'unictype/joiningtype-all'.
8887         * modules/unictype/joiningtype-all: New file.
8888
8889         Tests for module 'unictype/joiningtype-of'.
8890         * modules/unictype/joiningtype-of-tests: New file.
8891         * tests/unictype/test-joiningtype_of.c: New file.
8892         * tests/unictype/test-joiningtype_of.h: New file, automatically
8893         generated by gen-uni-tables.
8894
8895         New module 'unictype/joiningtype-of'.
8896         * modules/unictype/joiningtype-of: New file.
8897         * lib/unictype/joiningtype_of.c: New file.
8898         * lib/unictype/joiningtype_of.h: New file, automatically generated by
8899         gen-uni-tables.
8900
8901         Tests for module 'unictype/joiningtype-byname'.
8902         * modules/unictype/joiningtype-byname-tests: New file.
8903         * tests/unictype/test-joiningtype_byname.c: New file.
8904
8905         New module 'unictype/joiningtype-byname'.
8906         * modules/unictype/joiningtype-byname: New file.
8907         * lib/unictype/joiningtype_byname.c: New file.
8908
8909         Tests for module 'unictype/joiningtype-name'.
8910         * modules/unictype/joiningtype-name-tests: New file.
8911         * tests/unictype/test-joiningtype_name.c: New file.
8912
8913         New module 'unictype/joiningtype-name'.
8914         * modules/unictype/joiningtype-name: New file.
8915         * lib/unictype/joiningtype_name.c: New file.
8916
8917         unictype: Add support for Arabic shaping properties.
8918         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
8919         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
8920         declarations.
8921         (UC_JOINING_GROUP_*): New enumeration values.
8922         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
8923         declarations.
8924         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
8925         (unicode_joining_type): New variable.
8926         (UC_JOINING_GROUP_*): New enumeration values.
8927         (unicode_joining_group): New variable.
8928         (fill_arabicshaping, joining_type_as_c_identifier,
8929         output_joining_type_test, output_joining_type,
8930         joining_group_as_c_identifier, output_joining_group_test,
8931         output_joining_group): New functions.
8932         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
8933         fill_arabicshaping and output_joining_type_test, output_joining_type,
8934         output_joining_group_test, output_joining_group.
8935         Reported by Simon Josefsson.
8936
8937 2011-03-21  Jim Meyering  <meyering@redhat.com>
8938
8939         strftime: fix a bug in yesterday's change
8940         * lib/strftime.c (add): Accommodate width's initial value of -1.
8941         Otherwise, nstrftime would copy uninitialized data into
8942         the result buffer.
8943
8944 2011-03-21  Jim Meyering  <meyering@redhat.com>
8945
8946         tests: add strftime-tests module
8947         * tests/test-strftime.c: New file.
8948         * modules/strftime-tests: New module.
8949
8950 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
8951
8952         strftime: don't assume a byte count fits in 'int'
8953         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
8954         found this problem by static analysis, using gcc -Wstrict-overflow
8955         (GCC 4.5.2, x86-64).  This reported an optimization that depended
8956         on an integer overflow having undefined behavior, but it turns out
8957         that the argument is a size, which might not fit in 'int' anyway,
8958
8959 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
8960
8961         stdio: don't require ignore_value around fwrite
8962
8963         This patch works around libc bug 11959
8964         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
8965         Without this patch, applications must often write
8966         ignore_value (fwrite (...)) even though the ignore_value is
8967         not helpful here.  It's common to write many objects, using
8968         fwrite/printf/etc., and then use ferror to detect output error.
8969
8970         I considered making this patch optional, but decided against it,
8971         because libc is obviously being inconsistent here: there is no
8972         reason libc should insist that user code must inspect fwrite
8973         return's value without also insisting that it inspect printf's,
8974         putchar's, etc.  If user code wants to have a strict style where
8975         all these functions' values are checked (so that ferror need not
8976         be checked), we could add support for that style in a new gnulib
8977         module, but in the meantime it's better to be consistent and to
8978         support common usage.
8979
8980         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
8981         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
8982         that we are compiling in checking mode, and if not C++, and
8983         if not already wrapping fwrite for some other reason.
8984         (fwrite): #define to rpl_fwrite if the latter is defined.
8985
8986 2011-03-20  Bruno Haible  <bruno@clisp.org>
8987
8988         verror: Fix compilation error introduced on 2011-02-13.
8989         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
8990         instead of __attribute__.
8991         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8992
8993 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
8994             Bruno Haible  <bruno@clisp.org>
8995
8996         socklen: do not depend on sys_socket
8997         While trying to modify Emacs to use gnulib's socklen module,
8998         I discovered a circular dependency: socklen depends on sys_socket
8999         and vice versa.  Emacs can use socklen, but it does not need
9000         sys_socket because it has its own substitute for sys/socket.h.
9001         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
9002         gl_TYPE_SOCKLEN_T.
9003         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
9004         gl_PREREQ_SYS_H_SOCKET.
9005         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
9006         gl_PREREQ_SYS_H_SOCKET.
9007         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
9008         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
9009         * modules/socklen (Depends-on): Do not depend on sys_socket.
9010         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
9011
9012 2011-03-20  Jim Meyering  <meyering@redhat.com>
9013
9014         maint.mk: sort file names *after* new transformation
9015         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
9016         prefix would have led to an unwarranted failure in GNU parted.
9017         Sort after that transformation.
9018
9019 2011-03-19  Jim Meyering  <meyering@redhat.com>
9020
9021         maint.mk: fix po-file syntax-check rule
9022         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
9023         Patch by Bruno Haible.
9024
9025 2011-03-19  Bruno Haible  <bruno@clisp.org>
9026
9027         socklen: Update comment.
9028         * m4/socklen.m4: Update comment about platforms.
9029
9030 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
9031             Bruno Haible  <bruno@clisp.org>
9032
9033         inet_ntop, inet_pton: Simplify.
9034         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
9035         documented to provide socklen_t and we already depend on sys_socket.
9036         * modules/inet_pton (Depends-on): Likewise.
9037         * lib/arpa_inet.in.h: Adjust comment.
9038
9039 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
9040             Bruno Haible  <bruno@clisp.org>
9041
9042         netdb: Simplify.
9043         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
9044         documented to provide socklen_t and we already depend on sys_socket.
9045         * lib/netdb.in.h: Adjust comment.
9046
9047 2011-03-19  Bruno Haible  <bruno@clisp.org>
9048
9049         sys_socket, netdb: Document problem with socklen_t.
9050         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
9051         platforms.
9052         * doc/posix-headers/netdb.texi: Likewise.
9053
9054 2011-03-18  Eric Blake  <eblake@redhat.com>
9055
9056         maint.mk: let po check work in VPATH build
9057         * top/maint.mk (po_file): Allow cfg.mk override.
9058         (sc_po_check): Allow VPATH use.
9059         Reported by Jiri Denemark.
9060
9061 2011-03-16  Jim Meyering  <meyering@redhat.com>
9062
9063         maint.mk: allow fine-grained syntax-check exclusion via Make variables
9064         Before, you would have had to create one .x-sc_ file per rule in order
9065         to exempt offending files.  Now, you may instead use a Make variable --
9066         usually defined in cfg.mk -- whose name identifies the affected rule.
9067         * top/maint.mk (_sc_excl): Define.
9068         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
9069         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
9070
9071 2011-03-13  Bruno Haible  <bruno@clisp.org>
9072
9073         ignore-value tests: Avoid warnings.
9074         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
9075         empty for gcc < 3.4.
9076
9077 2011-03-13  Bruno Haible  <bruno@clisp.org>
9078
9079         passfd: Fix link error on Solaris.
9080         * modules/passfd (Description): Correct.
9081         (Depends-on): Add socketlib.
9082         (Link): New section.
9083         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
9084
9085 2011-03-13  Bruno Haible  <bruno@clisp.org>
9086
9087         passfd: Fix link error on AIX 5.2.
9088         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
9089
9090 2011-03-13  Bruno Haible  <bruno@clisp.org>
9091
9092         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
9093         * lib/sys_socket.in.h: Include <stddef.h>.
9094         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
9095         CMSG_FIRSTHDR. Remove unused variable.
9096
9097 2011-03-13  Bruno Haible  <bruno@clisp.org>
9098
9099         passfd: Fix compilation error on OpenBSD.
9100         * lib/passfd.c: Include <sys/uio.h>.
9101
9102 2011-03-13  Bruno Haible  <bruno@clisp.org>
9103
9104         passfd test: Fix warnings.
9105         * tests/test-passfd.c: Include <sys/wait.h>.
9106         (main): Fix typo.
9107
9108 2011-03-13  Bruno Haible  <bruno@clisp.org>
9109
9110         passfd module, part 4, tweaks.
9111         * tests/test-passfd.c: Reorder includes.
9112         (main): Fix perror and printf calls.
9113
9114 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
9115
9116         passfd module, part 4.
9117         * modules/passfd-tests: New file.
9118         * tests/test-passfd.c: New file.
9119
9120 2011-03-13  Jim Meyering  <meyering@redhat.com>
9121
9122         Makefile: rely on GNU make; derive syntax-check rule names
9123         Rather than requiring that each sc_ rule be listed as a dependent
9124         of "check", use features of GNU make to derive the list.
9125         * Makefile (syntax-check-rules): Define.
9126         (check): Depend on the new variable, not the hard-coded list.
9127
9128 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
9129             Bruno Haible  <bruno@clisp.org>
9130
9131         passfd module, part 3.
9132         * lib/passfd.h (recvfd): Add a flags argument.
9133         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
9134         (recvfd): Add a flags argument.
9135         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
9136         exists.
9137         * modules/passfd (Depends-on): Add cloexec.
9138         Suggested by Eric Blake.
9139
9140 2011-03-13  Bruno Haible  <bruno@clisp.org>
9141
9142         passfd module, part 2, tweaks.
9143         * modules/passfd (Files): Reorder.
9144         (Depends-on): Remove errno.
9145         (Include): Remove <sys/socket.h>, <sys/un.h>.
9146         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
9147         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
9148         specification header. Include <sys/socket.h> always. Don't include
9149         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
9150         (sendfd): Clarify that it sets errno when it fails.
9151         (recvfd): Fix specification.
9152
9153 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
9154
9155         passfd module, part 2.
9156         * modules/passfd: New file.
9157         * lib/passfd.h: New file.
9158         * lib/passfd.c: New file.
9159
9160 2011-03-12  Bruno Haible  <bruno@clisp.org>
9161
9162         wcswidth, mbswidth: Avoid integer overflow.
9163         * lib/wcswidth.c: Include <limits.h>.
9164         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
9165         * lib/mbswidth.c: Include <limits.h>.
9166         (mbsnwidth): Avoid 'int' overflow.
9167         Reported by Jim Meyering.
9168
9169 2011-03-12  Bruno Haible  <bruno@clisp.org>
9170
9171         futimens, utimensat: Avoid endless recursion on Solaris 10.
9172         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
9173         Solaris.
9174         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
9175         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
9176
9177 2011-03-11  Jim Meyering  <meyering@redhat.com>
9178
9179         maint.mk: relax a regexp to accommodate other formatting styles
9180         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
9181         between "ngettext" and the following "(".
9182
9183 2011-03-11  Pádraig Brady <P@draigBrady.com>
9184
9185         maint.mk: suppress a false positive warning
9186         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
9187         diagnostics are marked with ngettext.
9188
9189 2011-03-10  Eric Blake  <eblake@redhat.com>
9190
9191         wchar: add explicit dependencies, for Tru64
9192         * modules/mbmemcasecoll (Depends-on): Add wchar.
9193         * modules/mbtowc (Depends-on): Likewise.
9194         * modules/vasnprintf (Depends-on): Likewise.
9195         * modules/unistdio/u-printf-args (Depends-on): Likewise.
9196         * modules/wctomb (Depends-on): Likewise.
9197         Reported by Peter O'Gorman.
9198
9199 2011-03-08  Bruno Haible  <bruno@clisp.org>
9200
9201         passfd module, part 1, tweaks.
9202         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
9203         Improve indentation. Improve AC_MSG_CHECKING messages.
9204         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
9205         gl_SOCKET_FAMILIES.
9206
9207 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
9208
9209         passfd module, part 1.
9210         * m4/afunix.m4: New file.
9211         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
9212         sockets.
9213
9214 2011-03-08  Bruno Haible  <bruno@clisp.org>
9215
9216         regex-quote: New API.
9217         * lib/regex-quote.h: Include <stdbool.h>.
9218         (struct regex_quote_spec): New type.
9219         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
9220         New declarations.
9221         (regex_quote_length, regex_quote_copy, regex_quote): Take a
9222         'const struct regex_quote_spec *' argument.
9223         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
9224         (pcre_special): New constant.
9225         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
9226         New functions.
9227         (regex_quote_length, regex_quote_copy, regex_quote): Take a
9228         'const struct regex_quote_spec *' argument.
9229         * modules/regex-quote (Depends-on): Add stdbool.
9230         * tests/test-regex-quote.c (check): Update for new API. Add test for
9231         anchored results.
9232         * NEWS: Mention the API change.
9233         Reported by Reuben Thomas and Eric Blake.
9234
9235 2011-03-06  Bruno Haible  <bruno@clisp.org>
9236
9237         regex-quote: Fix creation of POSIX extended regular expressions.
9238         * lib/regex-quote.c (ere_special): Add grouping and alternation
9239         operators.
9240
9241 2011-03-05  Bruno Haible  <bruno@clisp.org>
9242
9243         doc: Improve doc regarding autopoint vs. gnulib.
9244         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
9245         disable autopoint while running autoreconf.
9246         Suggested by Ralf Wildenhues.
9247
9248 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9249
9250         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
9251         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
9252
9253 2011-03-03  Bruce Korb  <bkorb@gnu.org>
9254
9255         parse-duration: remove xalloc.h dependency
9256         * lib/parse-duration.c (parse_period): handle NULL return from
9257         strdup instead of calling xstrdup().
9258         * modules/parse-duration: remove "xalloc" dependency
9259
9260 2011-03-03  Matthew Booth  <mbooth@redhat.com>
9261
9262         bootstrap: honor m4_base when running aclocal
9263         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
9264
9265 2011-03-02  Jim Meyering  <meyering@redhat.com>
9266
9267         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
9268         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
9269         on request from Matt Booth.
9270
9271 2011-03-01  Eric Blake  <eblake@redhat.com>
9272
9273         test-link: work on Hurd
9274         * tests/test-link.h (test_link): Hurd rejects linking directories
9275         with EISDIR instead of the POSIX-mandated EPERM.
9276
9277 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
9278
9279         stdio: simplify by moving files to printf-posix, sigpipe
9280         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
9281         since this symbol is needed only if printf is replaced.
9282         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
9283         Require gl_ASM_SYMBOL_PREFIX.
9284         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
9285         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
9286         (Depends-on): Add 'raise'.
9287         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
9288         * modules/stdio (Files): Remove lib/stdio-write.c,
9289         m4/asm-underscore.m4.
9290         (Depends-on): Remove 'raise'.
9291
9292         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
9293         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
9294         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
9295         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
9296
9297 2011-02-28  Bruno Haible  <bruno@clisp.org>
9298
9299         localcharset: Assume ANSI C behaviour of free().
9300         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
9301         calling free().
9302         Suggested by Simon Josefsson <simon@josefsson.org>.
9303
9304 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
9305             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
9306             Bruno Haible  <bruno@clisp.org>  (tiny change)
9307
9308         On Cygwin, use /proc file system instead of win32 API.
9309         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
9310         Win32 file names.
9311         (DllMain): Simplify by removing Cygwin specific code.
9312         (find_shared_library_fullname): Use Linux specific implementation also
9313         for Cygwin.
9314         (get_shared_library_fullname): Update accordingly.
9315         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
9316         Win32 file names.
9317         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
9318         Cygwin specific code.
9319
9320 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
9321             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
9322
9323         Fix OpenMP flag detection for various Fortran compilers.
9324         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
9325         OpenMP-conditional compilation construct, to force compile
9326         failure with missing OpenMP flag.
9327         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
9328
9329 2011-02-25  Eric Blake  <eblake@redhat.com>
9330
9331         strstr: expand test coverage
9332         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
9333         compilation.
9334         * tests/test-memmem.c (main): Duplicate tests.
9335         * tests/test-strcasestr.c (main): Likewise.
9336         * tests/test-c-strcasestr.c (main): Likewise.
9337
9338 2011-02-25  Jim Meyering  <meyering@redhat.com>
9339
9340         maint.mk: detect missing-NL-at-EOF, too
9341         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
9342         it also detects when a file lacks a newline at EOF.
9343         (require_exactly_one_NL_at_EOF_): Renamed from
9344         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
9345         since people may well have .x-sc_... file names tied to the
9346         existing name.  Suggested by Eric Blake.
9347
9348 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
9349
9350         dirname: move m4/dos.m4 functionality into lib/dosname.h
9351
9352         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
9353         extracts symbols from it, puts them into config.h; but it's much
9354         easier to use the symbols directly.  filename.h already does this,
9355         but it disagrees with dos.m4 in some respects.  This patch
9356         introduces a different include file dosname.h that packages up
9357         dos.m4, and then later we can work on merging filename.h and
9358         dosname.h.  Applications that need only the easy-to-configure
9359         symbols should consider including dosname.h rather than dirname.h.
9360         * NEWS: Mention incompatible changes.
9361         * m4/dos.m4: Remove.
9362         * lib/dosname.h, modules/dosname: New files.
9363         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
9364         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
9365         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
9366         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
9367         Include dosname.h, not dirname.h.
9368         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
9369         Include dosname.h, for definitions of symbols like ISSLASH
9370         that used to be in config.h.
9371         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
9372         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
9373         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
9374         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
9375         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
9376         * modules/rmdir (Files): Likewise.
9377         * modules/stat (Files): Likewise.
9378         * modules/unlink (Files): Likewise.
9379         * modules/dirname-lgpl (Depends-on): Add dosname.
9380         * modules/lstat (Depends-on): Likewise.
9381         * modules/openat (Depends-on): Likewise.
9382         * modules/rmdir (Depends-on): Likewise.
9383         * modules/savewd (Depends-on): Likewise.
9384         * modules/stat (Depends-on): Likewise.
9385         * modules/unlink (Depends-on): Likewise.
9386         * modules/openat (Depends-on): Remove dirname-lgpl.
9387         * modules/savewd (Depends-on): Likewise.
9388         * tests/test-dirname.c: Do not use removed symbols like
9389         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
9390         the remaining symbols, e.g., ISSLASH ('\\').
9391
9392 2011-02-25  Eric Blake  <eblake@redhat.com>
9393
9394         strstr: revert patches that introduced bug and pessimization
9395         * lib/str-two-way.h: Add another reference.
9396         (two_way_short_needle, two_way_long_needle): Revert changes from
9397         2011-02-24; they pessimize search speed.
9398         (critical_factorization): Partially revert changes from
9399         2010-06-22; they violate the requirement that the left half of the
9400         needle be smaller than the period of the needle.
9401
9402 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
9403
9404         filenamecat: remove unnecessary dependency on dirname-lgpl
9405         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
9406         is no direct dependency, just an indirect one via filenamecat-lgpl.
9407
9408         remove: remove unnecessary use of m4/dos.m4
9409         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
9410         * modules/remove (FILES): Remove m4/dos.m4.
9411
9412         * lib/openat-proc.c: Don't include dirname.h; not needed.
9413
9414         backupfile: remove unnecessary use of m4/dos.m4
9415         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
9416         of its symbols are used by the backupfile code.  backupfile.c does
9417         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
9418         for the rare case of programs that want all their backup file
9419         names to live within 8+3 limits, and dos.m4 doesn't address that.
9420         * modules/backupfile (Files): Remove m4/dos.m4.
9421
9422 2011-02-24  Jim Meyering  <meyering@redhat.com>
9423
9424         strstr: fix a bug whereby strstr would mistakenly return NULL
9425         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
9426         in period calculation.
9427         (two_way_long_needle): Likewise.
9428         The original problem was reported by Mike Stump in
9429         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
9430         Ralf Wildenhues provided the short needle and haystack.
9431         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
9432         Add a more involved test to trigger the bug in two_way_long_needle.
9433
9434 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
9435
9436         gnulib-tool: remove use of bold display in help screen
9437         * gnulib-tool (func_usage): Do not use bold display anymore in the
9438         help screen.  That was just meant to be a temporary emphasis for a
9439         backward-incompatible change.
9440
9441 2011-02-23  Bruno Haible  <bruno@clisp.org>
9442
9443         Fix misindentation of preprocessor directives.
9444         * lib/argp-namefrob.h: Reindent preprocessor directives.
9445         * lib/getopt_int.h (struct _getopt_data): Likewise.
9446         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
9447         * lib/vasnprintf.c (decode_long_double): Likewise.
9448         * tests/test-argmatch.c: Insert blank lines, for clarity.
9449         * tests/test-exclude.c: Likewise.
9450
9451 2011-02-22  Bruno Haible  <bruno@clisp.org>
9452
9453         ioctl: Fix for MacOS X in 64-bit mode.
9454         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
9455         value.
9456         Suggested by Eric Blake.
9457         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
9458
9459 2011-02-22  Jim Meyering  <meyering@redhat.com>
9460
9461         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
9462         * Makefile (sc_cpp_indent_check): Don't limit the check to files
9463         in lib/.
9464
9465 2011-02-22  Eric Blake  <eblake@redhat.com>
9466
9467         maint: avoid any CDPATH issue
9468         * Makefile (sc_cpp_indent_check): Anchor cd argument.
9469
9470         maint: adjust cpp indentation for my modules, as well
9471         * Makefile (sc_cpp_indent_check): Add my name.
9472         * lib/fbufmode.c: Filter through cppi.
9473         * lib/fpurge.c: Likewise.
9474         * lib/freadable.c: Likewise.
9475         * lib/freading.c: Likewise.
9476         * lib/fwritable.c: Likewise.
9477         * lib/fwriting.c: Likewise.
9478         * lib/sigaction.c: Likewise.
9479
9480 2011-02-22  Jim Meyering  <meyering@redhat.com>
9481
9482         maint: adjust cpp indentation to reflect nesting depth
9483         I.e., in a block of code that begins with an unnested "#if",
9484         put one space between the "#" in column 1 and following token.
9485         For example,
9486         -#include <sys/vfs.h>
9487         +# include <sys/vfs.h>
9488         Do this only in .c files that are part of a module I maintain.
9489         * lib/linkat.c: Filter through cppi.
9490         * lib/nanosleep.c: Likewise.
9491         * lib/openat.c: Likewise.
9492         * lib/openat-die.c: Likewise.
9493         * lib/dup3.c: Likewise.
9494         * lib/fchownat.c: Likewise.
9495         * lib/flock.c: Likewise.
9496         * lib/fsync.c: Likewise.
9497         * lib/fts.c: Likewise.
9498         * lib/getpass.c: Likewise.
9499         * lib/gettimeofday.c: Likewise.
9500         * lib/userspec.c: Likewise.
9501         * Makefile (sc_cpp_indent_check): New rule, to check this.
9502
9503 2011-02-22  Bruno Haible  <bruno@clisp.org>
9504
9505         New module 'wctomb'.
9506         * lib/stdlib.in.h (wctomb): New declaration.
9507         * lib/wctomb.c: New file.
9508         * lib/wctomb-impl.h: New file.
9509         * m4/wctomb.m4: New file.
9510         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
9511         REPLACE_WCTOMB.
9512         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
9513         REPLACE_WCTOMB.
9514         * modules/wctomb: New file.
9515         * tests/test-stdlib-c++.cc: Test signature of wctomb.
9516         * doc/posix-functions/wctomb.texi: Mention the new module.
9517         * modules/wctob (Depends-on): Add wctomb.
9518
9519 2011-02-22  Bruno Haible  <bruno@clisp.org>
9520
9521         New module 'mbtowc'.
9522         * lib/stdlib.in.h (mbtowc): New declaration.
9523         * lib/mbtowc.c: New file.
9524         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
9525         * m4/mbtowc.m4: New file.
9526         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
9527         REPLACE_MBTOWC.
9528         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
9529         REPLACE_MBTOWC.
9530         * modules/mbtowc: New file.
9531         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
9532         * doc/posix-functions/mbtowc.texi: Mention the new module.
9533         * modules/btowc (Depends-on): Add mbtowc.
9534
9535 2011-02-22  Bruno Haible  <bruno@clisp.org>
9536
9537         wcrtomb: Add more tests for native Windows platforms.
9538         * tests/test-wcrtomb-w32-1.sh: New file.
9539         * tests/test-wcrtomb-w32-2.sh: New file.
9540         * tests/test-wcrtomb-w32-3.sh: New file.
9541         * tests/test-wcrtomb-w32-4.sh: New file.
9542         * tests/test-wcrtomb-w32-5.sh: New file.
9543         * tests/test-wcrtomb-w32.c: New file.
9544         * modules/wcrtomb-tests (Files): Add them.
9545         (Makefile.am): Arrange to run these tests.
9546         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
9547         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
9548
9549 2011-02-20  Bruno Haible  <bruno@clisp.org>
9550
9551         wcrtomb: Enhance test.
9552         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
9553
9554 2011-02-20  Bruno Haible  <bruno@clisp.org>
9555
9556         mbrtowc: Tiny optimization.
9557         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
9558
9559 2011-02-20  Jim Meyering  <meyering@redhat.com>
9560
9561         test-exclude.c: remove unmatched #endif
9562         * tests/test-exclude.c: Remove stray #endif, left over from
9563         the change of a week ago.
9564
9565 2011-02-19  Jim Meyering  <meyering@redhat.com>
9566
9567         git-version-gen: skip "-dirty" check when appropriate
9568         * build-aux/git-version-gen: Don't run any git commands when the
9569         version string comes from .tarball-version.  Prior to this, we
9570         would run git update-index --refresh even from a just-unpacked
9571         tarball directory, and that could affect a .git/ directory in a
9572         parent of the build directory.  Reported by Mike Frysinger.
9573
9574 2011-02-19  Bruno Haible  <bruno@clisp.org>
9575
9576         unictype/property-byname: Reduce the size of the 'data' segment.
9577         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
9578
9579 2011-02-19  Bruno Haible  <bruno@clisp.org>
9580
9581         unictype/scripts: Reduce the size of the 'data' segment.
9582         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
9583         '%pic'.
9584         * lib/unictype/scripts_byname.gperf: Regenerated.
9585
9586 2011-02-19  Bruno Haible  <bruno@clisp.org>
9587
9588         stdint: Update documentation.
9589         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
9590
9591 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
9592
9593         stdint: omit redundant check for wchar.h
9594         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
9595         always tests whether wchar.h exists, so remove the now-redundant test.
9596
9597 2011-02-18  Bruno Haible  <bruno@clisp.org>
9598
9599         stdint: Cut dependency to module 'wchar'.
9600         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
9601         include the necessary prerequisites.
9602         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
9603         * modules/stdint (Depends-on): Remove wchar.
9604         (Makefile.am): Substitute HAVE_WCHAR_H.
9605         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
9606
9607 2011-02-18  Eric Blake  <eblake@redhat.com>
9608
9609         longlong: skip, rather than fail, on cross-compilation
9610         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
9611         when cross-compiling; regression from 2011-02-16.
9612
9613 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
9614
9615         * NEWS: Mention 2011-02-08 change to stdlib.
9616
9617 2011-02-17  Bruno Haible  <bruno@clisp.org>
9618
9619         getloadavg: Add comments about platforms.
9620         * m4/getloadavg.m4: Add comment.
9621         * lib/getloadavg.c: Likewise.
9622
9623 2011-02-17  Bruno Haible  <bruno@clisp.org>
9624
9625         getloadavg: Fix link error on Solaris 2.6.
9626         * modules/getloadavg (Link): New section.
9627         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
9628         linking test-getloadavg.
9629         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
9630         getloadavg.
9631
9632 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
9633
9634         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
9635         It was 'int', but this doesn't match the IRIX 6.5 manual.
9636         Suggested by Bruno Haible in
9637         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
9638
9639 2011-02-17  Bruno Haible  <bruno@clisp.org>
9640
9641         havelib: Fix comments.
9642         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
9643         change.
9644
9645 2011-02-17  Bruno Haible  <bruno@clisp.org>
9646
9647         havelib: Update config.rpath.
9648         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
9649
9650 2011-02-17  Bruno Haible  <bruno@clisp.org>
9651
9652         getloadavg test: Add some plausibility checks.
9653         * tests/test-getloadavg.c (check_avg): Print a warning when the value
9654         is improbable.
9655
9656 2011-02-16  Eric Blake  <eblake@redhat.com>
9657
9658         maintainer-makefile: make syntax-check a no-op from tarballs
9659         * top/maint.mk (no-vc-detected): New rule.
9660         (local-checks-available): Use it to avoid hanging if someone tries
9661         'make syntax-check' from a tarball.  Also append to any non-syntax
9662         checks already defined in cfg.mk.
9663
9664 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
9665
9666         longlong: tune, particularly for common case of c99
9667
9668         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
9669         or running anything if c99, or if unsigned long long int does not
9670         work.  In either case, we know the answer without further tests.
9671         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
9672         it at most once, and use its results for both long long int and
9673         unsigned long long int.  This is more likely to be efficient in
9674         the common case where the program wants to check for both long
9675         long int and unsigned long long int.
9676         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
9677         since the answer is already known.
9678
9679 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
9680
9681         getloadavg: set errno
9682         * lib/getloadavg.c: Set errno when returning -1.  If no other
9683         error number looks appropriate, set it to ENOSYS if the getloadavg
9684         looks like it can't possibly ever work, ENOTSUP otherwise.
9685         Suggested by Bruno Haible in
9686         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
9687
9688         getloadavg: trim unused parts and speed up 'configure'
9689         * NEWS: Document this.
9690         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
9691         always compiled if getloadavg is absent.
9692         Move test code to ...
9693         * tests/test-getloadavg.c: New file, containing previous
9694         contents of test from lib/getloadavg.c.  It also contains
9695         suggestions by Bruno Haible in
9696         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
9697         * modules/getloadavg-tests: New file.
9698         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
9699         Do tests in the same order as they're needed for getloadavg.c.
9700         Omit setgid-related tests that generate symbols KMEM_GROUP,
9701         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
9702         Do only the tests that are needed to see whether the system has
9703         getloadavg, moving the other tests into ...
9704         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
9705         NLIST_NAME_UNION; nobody should be using it.  Do not define
9706         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
9707         relevant, as the user of this module shouldn't care how getloadavg
9708         is implemented.
9709
9710         getloadavg: omit unused var
9711         * lib/getloadavg.c (getloadavg): Omit unused local variable.
9712
9713 2011-02-15  Jim Meyering  <meyering@redhat.com>
9714
9715         doc: update users.txt
9716         * users.txt: Update iwhd's URL.
9717
9718 2011-02-13  Bruno Haible  <bruno@clisp.org>
9719
9720         Consistent macro naming for macros that use GCC __attribute__.
9721         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
9722         _ATTRIBUTE_NONNULL_.
9723         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
9724         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
9725         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
9726         ATTRIBUTE_DEPRECATED.
9727         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
9728         ATTRIBUTE_NORETURN.
9729         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
9730         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
9731         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
9732         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
9733         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
9734         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
9735         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
9736         ATTRIBUTE_SENTINEL.
9737         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
9738         ATTRIBUTE_RETURN_CHECK.
9739         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
9740         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
9741         ATTRIBUTE_NORETURN.
9742         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
9743         Reported by Paul Eggert.
9744
9745 2011-02-13  Bruno Haible  <bruno@clisp.org>
9746
9747         Don't interfere with a program's definition of __attribute__.
9748         * lib/argp.h (__attribute__): Remove definition.
9749         (_GL_ATTRIBUTE_FORMAT): New macro.
9750         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
9751         * lib/argp-fmtstream.h (__attribute__): Remove definition.
9752         (_GL_ATTRIBUTE_FORMAT): New macro.
9753         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
9754         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
9755         GCC 3 or newer.
9756         * lib/error.h (__attribute__): Remove definition.
9757         (_GL_ATTRIBUTE_FORMAT): New macro.
9758         (error, error_at_line): Use it.
9759         * lib/hash.h (__attribute__): Remove definition.
9760         (ATTRIBUTE_WUR): Update definition. Define always.
9761         * lib/openat.h (__attribute__): Remove definition.
9762         (ATTRIBUTE_NORETURN): Update definition. Define always.
9763         * lib/sigpipe-die.h (__attribute__): Remove definition.
9764         (ATTRIBUTE_NORETURN): Update definition. Define always.
9765         * lib/vasnprintf.h (__attribute__): Remove definition.
9766         (_GL_ATTRIBUTE_FORMAT): New macro.
9767         (asnprintf, vasnprintf): Use it.
9768         * lib/xalloc.h (__attribute__): Remove definition.
9769         (ATTRIBUTE_NORETURN): Update definition. Define always.
9770         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
9771         * lib/xmemdup0.h (__attribute__): Remove definition.
9772         (ATTRIBUTE_NORETURN): Update definition. Define always.
9773         * lib/xprintf.h (__attribute__): Remove definition.
9774         (_GL_ATTRIBUTE_FORMAT): New macro.
9775         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
9776         * lib/xstrtol.h (__attribute__): Remove definition.
9777         (ATTRIBUTE_NORETURN): Update definition. Define always.
9778         * lib/xvasprintf.h (__attribute__): Remove definition.
9779         (_GL_ATTRIBUTE_FORMAT): New macro.
9780         (xasprintf, xvasprintf): Use it.
9781         * tests/test-argmatch.c (__attribute__): Remove definition.
9782         (ATTRIBUTE_NORETURN): Update definition. Define always.
9783         * tests/test-exclude.c (__attribute__): Remove definition.
9784         (ATTRIBUTE_NORETURN): Update definition. Define always.
9785         Reported by Paul Eggert.
9786
9787 2011-02-13  Bruno Haible  <bruno@clisp.org>
9788
9789         mbrtowc: Add more tests for native Windows platforms.
9790         * tests/test-mbrtowc-w32-1.sh: New file.
9791         * tests/test-mbrtowc-w32-2.sh: New file.
9792         * tests/test-mbrtowc-w32-3.sh: New file.
9793         * tests/test-mbrtowc-w32-4.sh: New file.
9794         * tests/test-mbrtowc-w32-5.sh: New file.
9795         * tests/test-mbrtowc-w32.c: New file.
9796         * modules/mbrtowc-tests (Files): Add them.
9797         (Makefile.am): Arrange to run these tests.
9798         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
9799         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
9800
9801 2011-02-13  Bruno Haible  <bruno@clisp.org>
9802
9803         mbrtowc: Work around native Windows bug.
9804         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
9805         guess when no suitable locale for testing was found.
9806         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
9807
9808 2011-02-13  Bruno Haible  <bruno@clisp.org>
9809
9810         mbsinit: Work around mingw bug.
9811         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
9812         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
9813         Windows.
9814         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
9815
9816 2011-02-13  Bruno Haible  <bruno@clisp.org>
9817
9818         mbsinit: Don't crash for a NULL argument.
9819         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
9820         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
9821
9822 2011-02-13  Bruno Haible  <bruno@clisp.org>
9823
9824         Don't interfere with a program's definition of __attribute__.
9825         * lib/stdio.in.h (__attribute__): Remove definition.
9826         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
9827         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
9828         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
9829         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
9830         * lib/string.in.h (__attribute__): Remove definition.
9831         Reported by Paul Eggert.
9832
9833 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
9834
9835         stdlib: don't get in the way of non-GCC __attribute__
9836         See thread starting at
9837         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
9838         Revert previous stdlib change, installing the following instead:
9839         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
9840         to get in the way of a non-GCC compiler that supports __attribute__.
9841         (_GL_ATTRIBUTE_RETURN): New macro.
9842         (_Exit): Use it instead of __attribute__.
9843
9844 2011-02-12  Bruno Haible  <bruno@clisp.org>
9845
9846         quotearg test: Avoid test failure on mingw.
9847         * tests/test-quotearg.sh: Convert the locale identifier from native
9848         Windows syntax to Unix syntax.
9849
9850 2011-02-12  Bruno Haible  <bruno@clisp.org>
9851
9852         setlocale: Prefer gnulib's override over libintl's override.
9853         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
9854         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
9855         GNULIB_defined_setlocale is set.
9856
9857 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
9858
9859         stdlib: support non-GCC __attribute__
9860
9861         Fix a serious and tricky problem encountered when attempting to
9862         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
9863         5.5, but it crashed due to memory corruption on Solaris 10 with
9864         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
9865         bits that are otherwise zero.  This tagging is optional inside
9866         Emacs but is preferred and is used when __attribute__ ((__aligned
9867         (8))) works, as it does with both recent-enough GCC and with Sun C
9868         5.11.  However, Sun C 5.11 is not GCC and does not #define
9869         __GNUC__ and __GNUC_MINOR__.
9870
9871         When I added the getloadavg module to Emacs, it brought in
9872         stdlib.in.h, which contained this fragment:
9873
9874            #ifndef __attribute__
9875            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
9876            #  define __attribute__(Spec)   /* empty */
9877            # endif
9878            #endif
9879
9880         When files that include <stdlib.h> were compiled with Sun C 5.11,
9881         the above code disabled __attribute__ ((__aligned (8))), which
9882         caused variables to not be properly aligned, which eventually led
9883         to the pointer corruption mentioned above.  (This was a bit hard
9884         to diagnose, unfortunately.)
9885
9886         Several "#define __attribute__(X) /* empty */" code snippets need
9887         to be eradicated from Gnulib to work with non-GCC compilers that
9888         support __attribute__.  The Autoconf way to do this is to test for
9889         each kind of attribute that we want support for, and selectively
9890         enable that in source code.
9891
9892         Fix this problem just for stdlib.h, by adding a test for the
9893         __noreturn__ attribute, and change stdlib.in.h to use that test
9894         when needed.  This technique can be easily generalized to the
9895         other *.in.h files and attributes, and a similar technique can be
9896         used for *.h and *.c files.  This patch is enough to solve the
9897         problem for Emacs + getloadavg, and I thought I'd publish it for
9898         feedback before undertaking further, similar fixes in other
9899         modules.
9900
9901         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
9902         because it's not needed for stdlib.h.  It merely substitutes the
9903         value directly into stdlib.h.  We may well need to #define it, or
9904         similar symbols, for other modules, but it's nice to also have an
9905         option to not #define it for applications like Emacs that do not
9906         need it.
9907
9908         * lib/stdlib.in.h (__attribute__): Do not #define.
9909         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
9910         be defined only if the _Exit module is also used.
9911         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
9912         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
9913         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
9914         platforms.
9915         * modules/_Exit (Files): Add m4/attribute.m4.
9916         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
9917         * m4/attribute.m4: New file.
9918
9919 2011-02-12  Bruno Haible  <bruno@clisp.org>
9920
9921         wcsrtombs: Work around bug on native Windows.
9922         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
9923         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
9924         instead of len.
9925         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
9926
9927 2011-02-12  Bruno Haible  <bruno@clisp.org>
9928
9929         mbsrtowcs: Work around bug on native Windows.
9930         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
9931         against mingw bug.
9932         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
9933
9934 2011-02-12  Bruno Haible  <bruno@clisp.org>
9935
9936         Avoid setlocale bugs in tests.
9937         * modules/btowc (Dependencies): Add setlocale.
9938         * modules/c-strcase (Dependencies): Likewise.
9939         * modules/mbmemcasecmp (Dependencies): Likewise.
9940         * modules/mbmemcasecoll (Dependencies): Likewise.
9941         * modules/mbrtowc (Dependencies): Likewise.
9942         * modules/mbscasecmp (Dependencies): Likewise.
9943         * modules/mbscasestr (Dependencies): Likewise.
9944         * modules/mbschr (Dependencies): Likewise.
9945         * modules/mbscspn (Dependencies): Likewise.
9946         * modules/mbsinit (Dependencies): Likewise.
9947         * modules/mbsncasecmp (Dependencies): Likewise.
9948         * modules/mbsnrtowcs (Dependencies): Likewise.
9949         * modules/mbspbrk (Dependencies): Likewise.
9950         * modules/mbspcasecmp (Dependencies): Likewise.
9951         * modules/mbsrchr (Dependencies): Likewise.
9952         * modules/mbsrtowcs (Dependencies): Likewise.
9953         * modules/mbsspn (Dependencies): Likewise.
9954         * modules/mbsstr (Dependencies): Likewise.
9955         * modules/nl_langinfo (Dependencies): Likewise.
9956         * modules/quotearg (Dependencies): Likewise.
9957         * modules/unicase/locale-language (Dependencies): Likewise.
9958         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
9959         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
9960         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
9961         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
9962         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
9963         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
9964         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
9965         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
9966         * modules/vasnprintf-posix (Dependencies): Likewise.
9967         * modules/wcrtomb (Dependencies): Likewise.
9968         * modules/wcsnrtombs (Dependencies): Likewise.
9969         * modules/wcsrtombs (Dependencies): Likewise.
9970
9971 2011-02-12  Bruno Haible  <bruno@clisp.org>
9972
9973         setlocale: Workaround native Windows bug.
9974         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
9975         succeeds but sets LC_CTYPE to "C", report a failure.
9976         * tests/test-setlocale2.sh: New file.
9977         * tests/test-setlocale2.c: New file.
9978         * modules/setlocale-tests (Files): Add the new files.
9979         (Makefile.am): Enable test-setlocale2.sh test.
9980         * doc/posix-functions/setlocale.texi: Mention workaround.
9981
9982 2011-02-11  Bruno Haible  <bruno@clisp.org>
9983
9984         Tests for module 'setlocale'.
9985         * modules/setlocale-tests: New file.
9986         * tests/test-setlocale1.sh: New file.
9987         * tests/test-setlocale1.c: New file.
9988
9989         New module 'setlocale'.
9990         * lib/locale.in.h (setlocale): New declaration.
9991         * lib/setlocale.c: New file, based on
9992         gettext/gettext-runtime/intl/setlocale.c.
9993         * m4/setlocale.m4: New file.
9994         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
9995         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
9996         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
9997         REPLACE_SETLOCALE.
9998         * modules/setlocale: New file.
9999         * tests/test-locale-c++.cc: Test the declaration of setlocale.
10000         * doc/posix-functions/setlocale.texi: Mention the new module.
10001
10002 2011-02-11  Bruno Haible  <bruno@clisp.org>
10003
10004         Prepare for locale dependent tests on mingw.
10005         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
10006         because it has the wrong locale encoding.
10007         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
10008         French_France.1252 instead of "fr".
10009         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
10010         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
10011         because it has the wrong locale encoding.
10012         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
10013         native Windows, try Turkish_Turkey.65001.
10014         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
10015         Chinese_China.54936.
10016
10017         Prepare for locale dependent tests on mingw.
10018         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
10019         differently.
10020         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
10021         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
10022         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
10023         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
10024
10025 2011-02-11  Eric Blake  <eblake@redhat.com>
10026
10027         strptime: avoid compiler warnings
10028         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
10029         compiler warnings about dead code.
10030         Reported by Daniel P. Berrange.
10031
10032 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
10033
10034         doc: update users.txt
10035         * users.txt: Add rcs.
10036
10037 2011-02-10  John W. Eaton  <jwe@gnu.org>
10038
10039         doc: update users.txt
10040         * users.txt: Add octave.
10041
10042 2011-02-10  Jim Meyering  <meyering@redhat.com>
10043
10044         doc: update users.txt
10045         * users.txt: Add iwhd.
10046
10047 2011-02-09  Bruno Haible  <bruno@clisp.org>
10048
10049         gnulib-tool: Make copyright notice adjustment more robust.
10050         * gnulib-tool (func_import): In sed_transform_main_lib_file,
10051         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
10052         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
10053         License".
10054         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
10055
10056 2011-02-06  Bruno Haible  <bruno@clisp.org>
10057
10058         New module 'towctrans'.
10059         * modules/towctrans: New file.
10060         * lib/wctype.in.h (towctrans): New declaration.
10061         * lib/towctrans.c: New file.
10062         * lib/towctrans-impl.h: New file.
10063         * m4/towctrans.m4: New file.
10064         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
10065         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
10066         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
10067         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
10068         * doc/posix-functions/towctrans.texi: Mention the new module.
10069
10070 2011-02-06  Bruno Haible  <bruno@clisp.org>
10071
10072         New module 'wctrans'.
10073         * modules/wctrans: New file.
10074         * lib/wctype.in.h (wctrans): New declaration.
10075         * lib/wctrans.c: New file.
10076         * lib/wctrans-impl.h: New file.
10077         * m4/wctrans.m4: New file.
10078         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
10079         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
10080         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
10081         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
10082         * doc/posix-functions/wctrans.texi: Mention the new module.
10083
10084 2011-02-06  Bruno Haible  <bruno@clisp.org>
10085
10086         New module 'iswctype'.
10087         * modules/iswctype: New file.
10088         * lib/wctype.in.h (iswctype): New declaration.
10089         * lib/iswctype.c: New file.
10090         * lib/iswctype-impl.h: New file.
10091         * m4/iswctype.m4: New file.
10092         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
10093         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
10094         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
10095         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
10096         * doc/posix-functions/iswctype.texi: Mention the new module and the
10097         HP-UX 11.00 problem.
10098
10099 2011-02-06  Bruno Haible  <bruno@clisp.org>
10100
10101         New module 'wctype'.
10102         * modules/wctype: Change to represent the wctype() substitute.
10103         * lib/wctype.in.h (wctype): New declaration.
10104         * lib/wctype.c: New file.
10105         * lib/wctype-impl.h: New file.
10106         * m4/wctype.m4: New file.
10107         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
10108         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
10109         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
10110         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
10111         * doc/posix-functions/wctype.texi: Mention the new module and the
10112         HP-UX 11.00 problem.
10113
10114 2011-02-06  Bruno Haible  <bruno@clisp.org>
10115
10116         wctype-h: Ensure wctype_t and wctrans_t are defined.
10117         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
10118         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
10119         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
10120         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
10121         HAVE_WCTRANS_T.
10122         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
10123
10124 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
10125
10126         flock: fix license typo
10127
10128         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
10129         omitted.
10130
10131 2011-02-08  Bruno Haible  <bruno@clisp.org>
10132
10133         Split large sed scripts, for HP-UX sed.
10134         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
10135         to avoid HP-UX limit of 99 commands, in the near future.
10136         * modules/stdlib (Makefile.am): Likewise.
10137         * modules/unistd (Makefile.am): Likewise.
10138         * modules/wchar (Makefile.am): Likewise.
10139         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
10140         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
10141         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
10142
10143 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
10144             Bruno Haible  <bruno@clisp.org>
10145
10146         stdlib: improve random_r modularization
10147         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
10148         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
10149         you also need the random_r module to get this material right.
10150         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
10151         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
10152         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
10153
10154 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
10155
10156         stdlib: don't depend on stdint
10157         * lib/stdlib.in.h: Don't include <stdint.h> merely because
10158         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
10159         be independent of whether stdint.h is needed.
10160         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
10161         here, instead of ...
10162         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
10163         struct random_data should be using the random_r module, not just
10164         the stdlib module (which wouldn't make sense: what package needs
10165         just struct random_data without also needing random_r?).
10166         * modules/stdlib (Depends-on): Remove stdint.
10167
10168         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
10169         See the thread rooted at
10170         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
10171         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
10172         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
10173         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
10174         __VMS)); previously it was always included (via fcntl--.h).
10175         (getloadavg): Do not use c_strtod.  Instead, approximate it by
10176         hand; this is good enough for load averages.  Also, do not use
10177         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
10178         flags directly if available and don't bother otherwise.  (Packages
10179         that need the extra reliability should use the modules that define
10180         these flags on older platforms that lack them.)
10181         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
10182         fcntl-safer.
10183
10184 2011-02-08  Jim Meyering  <meyering@redhat.com>
10185
10186         di-set.h, ino-map.h: add multiple-inclusion guard
10187         Technically, the guard is required only for ino-map.h, due to its
10188         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
10189         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
10190         * lib/ino-map.h: Likewise.
10191
10192 2011-02-06  Bruno Haible  <bruno@clisp.org>
10193
10194         iswblank: Ensure declaration on glibc systems.
10195         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
10196         * modules/iswblank (Dependencies): Add 'extensions'.
10197         * doc/posix-functions/iswblank.texi: Document the glibc problem.
10198
10199 2011-02-06  Bruno Haible  <bruno@clisp.org>
10200
10201         New module 'iswblank'.
10202         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
10203         * modules/iswblank: New file.
10204         * modules/wctype-h (Files): Remove lib/iswblank.c.
10205         (Makefile.am): Substitute GNULIB_ISWBLANK.
10206         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
10207         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
10208         (gl_WCTYPE_H_DEFAULTS): New macro.
10209         (gl_WCTYPE_H): Require it. Remove iswblank related code.
10210         * modules/iswblank-tests: New file.
10211         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
10212         * tests/test-wctype-h.c (main): Remove iswblank tests.
10213         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
10214         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
10215         of 'wctype-h'.
10216         * NEWS: Mention the change.
10217         * modules/mbchar (Depends-on): Add iswblank.
10218
10219 2011-02-08  Bruno Haible  <bruno@clisp.org>
10220
10221         di-set tests: Refactor.
10222         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
10223         unnecessary includes.
10224         (ASSERT): Remove macro.
10225         (main): Make C90 compliant by avoiding variable declaration after
10226         statement.
10227         * modules/di-set-tests (Files): Add tests/macros.h.
10228
10229 2011-02-08  Bruno Haible  <bruno@clisp.org>
10230
10231         ino-map tests: Refactor.
10232         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
10233         unnecessary includes.
10234         (ASSERT): Remove macro.
10235         (main): Make C90 compliant by avoiding variable declaration after
10236         statement.
10237         * modules/ino-map-tests (Files): Add tests/macros.h.
10238
10239 2011-02-08  Jim Meyering  <meyering@redhat.com>
10240
10241         di-set: add "const" to a cast
10242         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
10243         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
10244
10245 2011-02-06  Bruno Haible  <bruno@clisp.org>
10246
10247         Rename module 'wctype' to 'wctype-h'.
10248         * modules/wctype-h: Renamed from modules/wctype.
10249         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
10250         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
10251         (Files, Depends-on, Makefile.am): Update.
10252         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
10253         (Files, Makefile.am): Update.
10254         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
10255         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
10256         * doc/posix-headers/wctype.texi: Update.
10257         * doc/posix-functions/iswalnum.texi: Update.
10258         * doc/posix-functions/iswalpha.texi: Update.
10259         * doc/posix-functions/iswblank.texi: Update.
10260         * doc/posix-functions/iswcntrl.texi: Update.
10261         * doc/posix-functions/iswdigit.texi: Update.
10262         * doc/posix-functions/iswgraph.texi: Update.
10263         * doc/posix-functions/iswlower.texi: Update.
10264         * doc/posix-functions/iswprint.texi: Update.
10265         * doc/posix-functions/iswpunct.texi: Update.
10266         * doc/posix-functions/iswspace.texi: Update.
10267         * doc/posix-functions/iswupper.texi: Update.
10268         * doc/posix-functions/iswxdigit.texi: Update.
10269         * doc/posix-functions/towlower.texi: Update.
10270         * doc/posix-functions/towupper.texi: Update.
10271         * NEWS: Mention the change.
10272         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
10273         * modules/mbchar (Dependencies): Likewise.
10274         * modules/mbswidth (Dependencies): Likewise.
10275         * modules/quotearg (Dependencies): Likewise.
10276         * modules/regex (Dependencies): Likewise.
10277         * modules/wcscasecmp (Dependencies): Likewise.
10278         * modules/wcsncasecmp (Dependencies): Likewise.
10279         * modules/wcwidth (Dependencies): Likewise.
10280
10281 2011-02-06  Bruno Haible  <bruno@clisp.org>
10282
10283         New module 'wcswidth'.
10284         * modules/wcswidth: New file.
10285         * lib/wchar.in.h (wcswidth): New declaration.
10286         * lib/wcswidth.c: New file.
10287         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
10288         * m4/wcswidth.m4: New file.
10289         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
10290         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
10291         REPLACE_WCSWIDTH.
10292         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
10293         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
10294         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
10295         * doc/posix-functions/wcswidth.texi: Mention the new module.
10296
10297 2011-02-06  Bruno Haible  <bruno@clisp.org>
10298
10299         New module 'wcstok'.
10300         * modules/wcstok: New file.
10301         * lib/wchar.in.h (wcstok): New declaration.
10302         * lib/wcstok.c: New file.
10303         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
10304         * m4/wcstok.m4: New file.
10305         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
10306         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
10307         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
10308         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
10309         * doc/posix-functions/wcstok.texi: Mention the new module.
10310
10311 2011-02-06  Bruno Haible  <bruno@clisp.org>
10312
10313         New module 'wcsstr'.
10314         * modules/wcsstr: New file.
10315         * lib/wchar.in.h (wcsstr): New declaration.
10316         * lib/wcsstr.c: New file.
10317         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
10318         * m4/wcsstr.m4: New file.
10319         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
10320         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
10321         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
10322         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
10323         * doc/posix-functions/wcsstr.texi: Mention the new module.
10324
10325 2011-02-06  Bruno Haible  <bruno@clisp.org>
10326
10327         New module 'wcspbrk'.
10328         * modules/wcspbrk: New file.
10329         * lib/wchar.in.h (wcspbrk): New declaration.
10330         * lib/wcspbrk.c: New file.
10331         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
10332         * m4/wcspbrk.m4: New file.
10333         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
10334         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
10335         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
10336         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
10337         * doc/posix-functions/wcspbrk.texi: Mention the new module.
10338
10339 2011-02-06  Bruno Haible  <bruno@clisp.org>
10340
10341         New module 'wcsspn'.
10342         * modules/wcsspn: New file.
10343         * lib/wchar.in.h (wcsspn): New declaration.
10344         * lib/wcsspn.c: New file.
10345         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
10346         * m4/wcsspn.m4: New file.
10347         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
10348         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
10349         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
10350         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
10351         * doc/posix-functions/wcsspn.texi: Mention the new module.
10352
10353 2011-02-06  Bruno Haible  <bruno@clisp.org>
10354
10355         New module 'wcscspn'.
10356         * modules/wcscspn: New file.
10357         * lib/wchar.in.h (wcscspn): New declaration.
10358         * lib/wcscspn.c: New file.
10359         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
10360         * m4/wcscspn.m4: New file.
10361         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
10362         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
10363         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
10364         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
10365         * doc/posix-functions/wcscspn.texi: Mention the new module.
10366
10367 2011-02-06  Bruno Haible  <bruno@clisp.org>
10368
10369         New module 'wcsrchr'.
10370         * modules/wcsrchr: New file.
10371         * lib/wchar.in.h (wcsrchr): New declaration.
10372         * lib/wcsrchr.c: New file.
10373         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
10374         * m4/wcsrchr.m4: New file.
10375         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
10376         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
10377         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
10378         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
10379         * doc/posix-functions/wcsrchr.texi: Mention the new module.
10380
10381 2011-02-06  Bruno Haible  <bruno@clisp.org>
10382
10383         New module 'wcschr'.
10384         * modules/wcschr: New file.
10385         * lib/wchar.in.h (wcschr): New declaration.
10386         * lib/wcschr.c: New file.
10387         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
10388         * m4/wcschr.m4: New file.
10389         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
10390         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
10391         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
10392         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
10393         * doc/posix-functions/wcschr.texi: Mention the new module.
10394
10395 2011-02-06  Bruno Haible  <bruno@clisp.org>
10396
10397         New module 'wcsdup'.
10398         * modules/wcsdup: New file.
10399         * lib/wchar.in.h (wcsdup): New declaration.
10400         * lib/wcsdup.c: New file.
10401         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
10402         * m4/wcsdup.m4: New file.
10403         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
10404         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
10405         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
10406         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
10407         * doc/posix-functions/wcsdup.texi: Mention the new module.
10408
10409 2011-02-06  Bruno Haible  <bruno@clisp.org>
10410
10411         New module 'wcsxfrm'.
10412         * modules/wcsxfrm: New file.
10413         * lib/wchar.in.h (wcsxfrm): New declaration.
10414         * lib/wcsxfrm.c: New file.
10415         * lib/wcsxfrm-impl.h: New file.
10416         * m4/wcsxfrm.m4: New file.
10417         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
10418         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
10419         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
10420         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
10421         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
10422
10423 2011-02-06  Bruno Haible  <bruno@clisp.org>
10424
10425         New module 'wcscoll'.
10426         * modules/wcscoll: New file.
10427         * lib/wchar.in.h (wcscoll): New declaration.
10428         * lib/wcscoll.c: New file.
10429         * lib/wcscoll-impl.h: New file.
10430         * m4/wcscoll.m4: New file.
10431         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
10432         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
10433         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
10434         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
10435         * doc/posix-functions/wcscoll.texi: Mention the new module.
10436
10437 2011-02-06  Bruno Haible  <bruno@clisp.org>
10438
10439         New module 'wcsncasecmp'.
10440         * modules/wcsncasecmp: New file.
10441         * lib/wchar.in.h (wcsncasecmp): New declaration.
10442         * lib/wcsncasecmp.c: New file.
10443         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
10444         * m4/wcsncasecmp.m4: New file.
10445         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
10446         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
10447         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
10448         HAVE_WCSNCASECMP.
10449         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
10450         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
10451
10452 2011-02-06  Bruno Haible  <bruno@clisp.org>
10453
10454         New module 'wcscasecmp'.
10455         * modules/wcscasecmp: New file.
10456         * lib/wchar.in.h (wcscasecmp): New declaration.
10457         * lib/wcscasecmp.c: New file.
10458         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
10459         * m4/wcscasecmp.m4: New file.
10460         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
10461         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
10462         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
10463         HAVE_WCSCASECMP.
10464         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
10465         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
10466
10467 2011-02-05  Bruno Haible  <bruno@clisp.org>
10468
10469         New module 'wcsncmp'.
10470         * modules/wcsncmp: New file.
10471         * lib/wchar.in.h (wcsncmp): New declaration.
10472         * lib/wcsncmp.c: New file.
10473         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
10474         * m4/wcsncmp.m4: New file.
10475         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
10476         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
10477         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
10478         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
10479         * doc/posix-functions/wcsncmp.texi: Mention the new module.
10480
10481 2011-02-05  Bruno Haible  <bruno@clisp.org>
10482
10483         New module 'wcscmp'.
10484         * modules/wcscmp: New file.
10485         * lib/wchar.in.h (wcscmp): New declaration.
10486         * lib/wcscmp.c: New file.
10487         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
10488         * m4/wcscmp.m4: New file.
10489         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
10490         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
10491         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
10492         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
10493         * doc/posix-functions/wcscmp.texi: Mention the new module.
10494
10495 2011-02-05  Bruno Haible  <bruno@clisp.org>
10496
10497         New module 'wcsncat'.
10498         * modules/wcsncat: New file.
10499         * lib/wchar.in.h (wcsncat): New declaration.
10500         * lib/wcsncat.c: New file.
10501         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
10502         * m4/wcsncat.m4: New file.
10503         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
10504         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
10505         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
10506         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
10507         * doc/posix-functions/wcsncat.texi: Mention the new module.
10508
10509 2011-02-05  Bruno Haible  <bruno@clisp.org>
10510
10511         New module 'wcscat'.
10512         * modules/wcscat: New file.
10513         * lib/wchar.in.h (wcscat): New declaration.
10514         * lib/wcscat.c: New file.
10515         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
10516         * m4/wcscat.m4: New file.
10517         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
10518         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
10519         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
10520         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
10521         * doc/posix-functions/wcscat.texi: Mention the new module.
10522
10523 2011-02-05  Bruno Haible  <bruno@clisp.org>
10524
10525         New module 'wcpncpy'.
10526         * modules/wcpncpy: New file.
10527         * lib/wchar.in.h (wcpncpy): New declaration.
10528         * lib/wcpncpy.c: New file.
10529         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
10530         * m4/wcpncpy.m4: New file.
10531         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
10532         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
10533         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
10534         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
10535         * doc/posix-functions/wcpncpy.texi: Mention the new module.
10536
10537 2011-02-05  Bruno Haible  <bruno@clisp.org>
10538
10539         New module 'wcsncpy'.
10540         * modules/wcsncpy: New file.
10541         * lib/wchar.in.h (wcsncpy): New declaration.
10542         * lib/wcsncpy.c: New file.
10543         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
10544         * m4/wcsncpy.m4: New file.
10545         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
10546         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
10547         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
10548         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
10549         * doc/posix-functions/wcsncpy.texi: Mention the new module.
10550
10551 2011-02-05  Bruno Haible  <bruno@clisp.org>
10552
10553         New module 'wcpcpy'.
10554         * modules/wcpcpy: New file.
10555         * lib/wchar.in.h (wcpcpy): New declaration.
10556         * lib/wcpcpy.c: New file.
10557         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
10558         * m4/wcpcpy.m4: New file.
10559         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
10560         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
10561         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
10562         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
10563         * doc/posix-functions/wcpcpy.texi: Mention the new module.
10564
10565 2011-02-05  Bruno Haible  <bruno@clisp.org>
10566
10567         New module 'wcscpy'.
10568         * modules/wcscpy: New file.
10569         * lib/wchar.in.h (wcscpy): New declaration.
10570         * lib/wcscpy.c: New file.
10571         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
10572         * m4/wcscpy.m4: New file.
10573         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
10574         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
10575         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
10576         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
10577         * doc/posix-functions/wcscpy.texi: Mention the new module.
10578
10579 2011-02-05  Bruno Haible  <bruno@clisp.org>
10580
10581         New module 'wcsnlen'.
10582         * modules/wcsnlen: New file.
10583         * lib/wchar.in.h (wcsnlen): New declaration.
10584         * lib/wcsnlen.c: New file.
10585         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
10586         * m4/wcsnlen.m4: New file.
10587         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
10588         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
10589         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
10590         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
10591         * doc/posix-functions/wcsnlen.texi: Mention the new module.
10592
10593 2011-02-05  Bruno Haible  <bruno@clisp.org>
10594
10595         New module 'wcslen'.
10596         * modules/wcslen: New file.
10597         * lib/wchar.in.h (wcslen): New declaration.
10598         * lib/wcslen.c: New file.
10599         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
10600         * m4/wcslen.m4: New file.
10601         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
10602         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
10603         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
10604         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
10605         * doc/posix-functions/wcslen.texi: Mention the new module.
10606
10607 2011-02-05  Bruno Haible  <bruno@clisp.org>
10608
10609         New module 'wmemset'.
10610         * modules/wmemset: New file.
10611         * lib/wchar.in.h (wmemset): New declaration.
10612         * lib/wmemset.c: New file.
10613         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
10614         * m4/wmemset.m4: New file.
10615         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
10616         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
10617         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
10618         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
10619         * doc/posix-functions/wmemset.texi: Mention the new module.
10620
10621 2011-02-05  Bruno Haible  <bruno@clisp.org>
10622
10623         New module 'wmemmove'.
10624         * modules/wmemmove: New file.
10625         * lib/wchar.in.h (wmemmove): New declaration.
10626         * lib/wmemmove.c: New file.
10627         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
10628         * m4/wmemmove.m4: New file.
10629         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
10630         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
10631         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
10632         HAVE_WMEMMOVE.
10633         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
10634         * doc/posix-functions/wmemmove.texi: Mention the new module.
10635
10636 2011-02-05  Bruno Haible  <bruno@clisp.org>
10637
10638         New module 'wmemcpy'.
10639         * modules/wmemcpy: New file.
10640         * lib/wchar.in.h (wmemcpy): New declaration.
10641         * lib/wmemcpy.c: New file.
10642         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
10643         * m4/wmemcpy.m4: New file.
10644         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
10645         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
10646         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
10647         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
10648         * doc/posix-functions/wmemcpy.texi: Mention the new module.
10649
10650 2011-02-05  Bruno Haible  <bruno@clisp.org>
10651
10652         New module 'wmemcmp'.
10653         * modules/wmemcmp: New file.
10654         * lib/wchar.in.h (wmemcmp): New declaration.
10655         * lib/wmemcmp.c: New file.
10656         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
10657         * m4/wmemcmp.m4: New file.
10658         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
10659         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
10660         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
10661         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
10662         * doc/posix-functions/wmemcmp.texi: Mention the new module.
10663
10664 2011-02-07  Jim Meyering  <meyering@redhat.com>
10665
10666         di-set, ino-map: new modules, from coreutils
10667         * lib/di-set.c: New file.
10668         * lib/di-set.h: Likewise.
10669         * lib/ino-map.c: Likewise.
10670         * lib/ino-map.h: Likewise.
10671         * modules/di-set: Likewise.
10672         * modules/di-set-tests: Likewise.
10673         * modules/ino-map: Likewise.
10674         * modules/ino-map-tests: Likewise.
10675         * tests/test-di-set.c: Likewise.
10676         * tests/test-ino-map.c: Likewise.
10677
10678 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
10679
10680         getloadavg: merge minor changes from Emacs
10681
10682         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
10683         (getloadavg): Use memset, not bzero.
10684
10685         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
10686         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
10687         clash (bug#86).
10688
10689 2010-11-14  Bruno Haible  <bruno@clisp.org>
10690
10691         Allow multiple gnulib generated replacements to coexist.
10692         * lib/getopt.in.h (struct option): Avoid identical redefinition.
10693         * lib/inttypes.in.h (imaxdiv_t): Likewise.
10694         * lib/langinfo.in.h (nl_item): Likewise.
10695         * lib/math.in.h (_NaN, NAN): Likewise.
10696         * lib/netdb.in.h (struct addrinfo): Likewise.
10697         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
10698         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
10699         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
10700         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
10701         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
10702         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
10703         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
10704         pthread_mutexattr_init, pthread_mutexattr_settype,
10705         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
10706         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
10707         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
10708         pthread_spin_trylock, pthread_spin_unlock): Likewise.
10709         * lib/sched.in.h (struct sched_param): Likewise.
10710         * lib/se-selinux.in.h (security_class_t, security_context_t,
10711         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
10712         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
10713         lsetfilecon, fsetfilecon, security_check_context,
10714         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
10715         Likewise.
10716         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
10717         Likewise.
10718         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
10719         _gl_function_taking_int_returning_void_t, union sigval,
10720         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
10721         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
10722         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
10723         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
10724         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
10725         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
10726         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
10727         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
10728         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
10729         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
10730         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
10731         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
10732         socklen_t, rpl_fd_isset): Likewise.
10733         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
10734         * lib/sys_time.in.h (struct timeval): Likewise.
10735         * lib/sys_times.in.h (struct tms): Likewise.
10736         * lib/sys_utsname.in.h (struct utsname):
10737         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
10738         * lib/unistd.in.h (getpagesize): Likewise.
10739         * lib/wchar.in.h (mbstate_t): Likewise.
10740         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
10741         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
10742         towlower, towupper): Likewise.
10743         Reported by Sam Steingold <sds@gnu.org>.
10744
10745 2011-02-05  Eric Blake  <eblake@redhat.com>
10746
10747         unsetenv: work around Haiku issues
10748         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
10749         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
10750
10751 2010-12-30  Bruce Korb  <bkorb@gnu.org>
10752
10753         libposix: avoid calling error() within libposix
10754         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
10755         is defined.
10756
10757 2011-02-05  Eric Blake  <eblake@redhat.com>
10758
10759         strerror_r-posix: port to cygwin
10760         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
10761         implementation.
10762         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
10763         * tests/test-strerror_r.c (main): Fix test.
10764         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
10765         issue.
10766
10767 2011-02-05  Bruno Haible  <bruno@clisp.org>
10768
10769         New module 'wmemchr'.
10770         * modules/wmemchr: New file.
10771         * lib/wchar.in.h (wmemchr): New declaration.
10772         * lib/wmemchr.c: New file.
10773         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
10774         * m4/wmemchr.m4: New file.
10775         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
10776         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
10777         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
10778         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
10779         * doc/posix-functions/wmemchr.texi: Mention the new module.
10780
10781 2011-02-04  Eric Blake  <eblake@redhat.com>
10782
10783         fdopendir: detect FreeBSD bug
10784         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
10785         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
10786
10787 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
10788
10789         stdbool: do not define HAVE_STDBOOL_H
10790         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
10791         AC_HEADER_STDBOOL.  All uses changed.  Do not define
10792         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
10793         imported from the latest Autoconf git.  It was motivated by Emacs,
10794         which uses gnulib but does not need HAVE_STDBOOL_H.
10795
10796 2011-02-04  Bruno Haible  <bruno@clisp.org>
10797
10798         wcsnrtombs: Prepare for new module wwcsnrtombs.
10799         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
10800         * lib/wcsnrtombs.c: Include it.
10801         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
10802
10803         wcsrtombs: Prepare for new module wwcsrtombs.
10804         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
10805         * lib/wcsrtombs.c: Include it.
10806         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
10807
10808         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
10809         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
10810         * lib/mbsnrtowcs.c: Include it.
10811         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
10812
10813         mbsrtowcs: Prepare for new module mbsrtowwcs.
10814         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
10815         * lib/mbsrtowcs.c: Include it.
10816         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
10817
10818 2011-02-04  Bruno Haible  <bruno@clisp.org>
10819
10820         vasnprintf: Reduce use of malloc for small format strings.
10821         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
10822         (arguments): Add room for the first 7 arguments.
10823         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
10824         (char_directives, u8_directives, u16_directives, u32_directives): Add
10825         room for the first 7 directives.
10826         * lib/printf-parse.c: Include <string.h>.
10827         (PRINTF_PARSE): Change memory handling code so that it uses the first
10828         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
10829         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
10830         Reported by Pádraig Brady <P@draigbrady.com>.
10831
10832 2011-01-31  Eric Blake  <eblake@redhat.com>
10833
10834         dup2: work around Haiku bug
10835         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
10836         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
10837         * doc/posix-functions/dup2.texi (dup2): Document the bug.
10838         * tests/test-dup2.c (main): Enhance test.
10839
10840 2011-01-31  Simon Josefsson  <simon@josefsson.org>
10841
10842         doc: off_t is not available in eglibc 2.11.2 stdio.h.
10843         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
10844         declared by eglibc 2.11.2.
10845         * lib/stdio.in.h: Likewise.
10846
10847 2011-01-31  Eric Blake  <eblake@redhat.com>
10848
10849         ignore-value: add missing test dependency
10850         * tests/test-ignore-value.c: Revert previous change; stdio.h
10851         provides off_t.
10852         * modules/ignore-value-tests (Depends-on): Add missing dependency.
10853
10854 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
10855
10856         mktime: clarify long_int width checking
10857         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
10858         the top level, to make it clearer that the assumption about
10859         long_int width is being checked.  See
10860         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
10861
10862 2011-01-30  Simon Josefsson  <simon@josefsson.org>
10863
10864         ignore-value: Fix self-test.
10865         * tests/test-ignore-value.c: Include sys/types.h for off_t.
10866
10867 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
10868
10869         TYPE_MAXIMUM: avoid theoretically undefined behavior
10870         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
10871         negative number, which the C Standard says has undefined behavior.
10872         In practice this is not a problem, but might as well do it by the book.
10873         Reported by Rich Felker and Eric Blake; see
10874         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
10875         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
10876         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
10877         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
10878         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
10879         * m4/stdint.m4 (gl_STDINT_H): Likewise.
10880         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
10881
10882         mktime: #undef mktime before #defining it
10883         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
10884
10885         mktime: systematically normalize tm_isdst comparisons
10886         * lib/mktime.c (isdst_differ): New function.
10887         (__mktime_internal): Use it systematically for all isdst comparisons.
10888         This completes the fix for libc BZ #6723, and removes the need for
10889         normalizing tm_isdst.  See
10890         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
10891         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
10892
10893         mktime: fix some integer overflow issues and sidestep the rest
10894
10895         This was prompted by a bug report by Benjamin Lindner for MinGW
10896         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
10897         His bug is due to signed integer overflow (0 - INT_MIN), and I
10898         I scanned through mktime.c looking for other integer overflow
10899         problems, fixing all the bugs I found.
10900
10901         Although the C Standard says the resulting code is still not safe
10902         in the presence of integer overflow, in practice it should be good
10903         enough for all real-world two's-complement implementations, except
10904         for debugging environments that deliberately trap on integer
10905         overflow (e.g., gcc -ftrapv).
10906
10907         * lib/mktime.c (WRAPV): New macro.
10908         (SHR): Also check that long_int and time_t shift right in the
10909         usual way, before using the fast-but-unportable method.
10910         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
10911         used.  The code already assumed two's complement, so there's
10912         no need to test for alternatives.  All uses removed.
10913         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
10914         the C standard.  Problem reported by Rich Felker in
10915         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
10916         (twos_complement_arithmetic): Also check long_int and time_t.
10917         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
10918         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
10919         (__mktime_internal): Avoid integer overflow with unary subtraction
10920         in two instances where -1 - X is an adequate replacement for -X,
10921         since the calculations are approximate.
10922
10923 2011-01-29  Eric Blake  <eblake@redhat.com>
10924
10925         mktime: avoid infinite loop
10926         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
10927         type; behavior is still undefined but portable to all known targets.
10928         Reported by Rich Felker.
10929
10930 2011-01-29  Simon Josefsson  <simon@josefsson.org>
10931
10932         rename, unlink, same-inode: Relicense.
10933         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
10934         * modules/unlink (License): Likewise.
10935         * modules/same-inode (License): Likewise.
10936
10937 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
10938
10939         mktime: avoid problems on NetBSD 5 / i386
10940         * lib/mktime.c (long_int): New type.  This works around a problem
10941         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
10942         but time_t is 64 bits, and where I expect the existing code is
10943         wrong in some cases.
10944         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
10945         (ydhms_diff): Bring back the compile-time check for wide-enough
10946         year and yday.
10947
10948         mktime: fix misspelling in comment
10949         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
10950         This merges all recent glibc changes of importance.
10951
10952 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10953
10954         move-if-change: cope with concurrent mv of identical file.
10955         * build-aux/move-if-change (CMPPROG): Accept environment
10956         variable as an override for `cmp'.
10957         (usage): Document CMPPROG.
10958         Adjust comparison to drop stdout.  Cope with failure of mv if
10959         the target file exists and is identical to the source, for
10960         parallel builds.
10961         Report from H.J. Lu against binutils in PR binutils/12283.
10962
10963 2011-01-28  Bruce Korb  <bkorb@gnu.org>
10964
10965         * users.txt: Mention sharutils.
10966
10967 2011-01-28  Simon Josefsson  <simon@josefsson.org>
10968
10969         * users.txt: Mention OATH Toolkit.
10970
10971 2011-01-27  Bruno Haible  <bruno@clisp.org>
10972
10973         Prepare for supporting FreeBSD 10.
10974         * build-aux/config.libpath: Remove handling of freebsd1*.
10975
10976 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
10977
10978         Prepare for supporting FreeBSD 10.
10979         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
10980         match FreeBSD 10.0.
10981
10982 2011-01-27  Bruno Haible  <bruno@clisp.org>
10983
10984         vma-iter, get-rusage-as: Add OpenBSD support.
10985         * modules/vma-iter (configure.ac): Test for mquery.
10986         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
10987         * lib/vma-iter.c: Include <sys/mman.h>.
10988         (vma_iterate): Add an implementation based on mquery().
10989         * lib/resource-ext.h (get_rusage_as): Update comments.
10990         * lib/get-rusage-as.c: Likewise.
10991         * lib/get-rusage-data.c: Likewise.
10992
10993 2011-01-26  Karl Berry  <karl@gnu.org>
10994
10995         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
10996         variables to make it easier to override the makeinfo program used.
10997
10998 2011-01-26  Eric Blake  <eblake@redhat.com>
10999
11000         fcntl: work around Haiku F_DUPFD bugs
11001         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
11002         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
11003         cloexec bit on duplication.
11004         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
11005
11006 2011-01-26  Bruno Haible  <bruno@clisp.org>
11007
11008         Enable memory leak tests on AIX.
11009         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
11010         * tests/test-fprintf-posix3.c (main): Likewise.
11011
11012 2011-01-26  Bruno Haible  <bruno@clisp.org>
11013
11014         Tests for module 'get-rusage-data'.
11015         * modules/get-rusage-data-tests: New file.
11016         * tests/test-get-rusage-data.c: New file.
11017
11018         New module 'get-rusage-data'.
11019         * lib/resource-ext.h (get_rusage_data): New declaration.
11020         * lib/get-rusage-data.c: New file.
11021         * modules/get-rusage-data: New file.
11022
11023 2011-01-25  Bruno Haible  <bruno@clisp.org>
11024
11025         get-rusage-as: Allow for easier testing.
11026         * lib/resource-ext.h (get_rusage_as): Add comment.
11027         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
11028         (main): New function for interactive testing.
11029
11030 2011-01-25  Bruno Haible  <bruno@clisp.org>
11031
11032         vma-iter: Treat Haiku like BeOS.
11033         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
11034         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
11035
11036 2011-01-25  Eric Blake  <eblake@redhat.com>
11037
11038         c-stack: fix regression on cygwin when libsigsegv is present
11039         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
11040
11041 2011-01-24  Bruno Haible  <bruno@clisp.org>
11042
11043         vma-iter: Avoid empty intervals.
11044         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
11045         on an empty interval.
11046
11047 2011-01-24  Jim Meyering  <meyering@redhat.com>
11048
11049         u64: remove unnecessary #include
11050         * lib/u64.h: Don't include <stddef.h>.  It was not used.
11051
11052 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
11053
11054         Allow the user to avoid the HAVE_RAW_DECL_* macros.
11055         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
11056
11057 2011-01-23  Bruno Haible  <bruno@clisp.org>
11058
11059         New module 'vma-iter'.
11060         * lib/vma-iter.h: New file.
11061         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
11062         * modules/vma-iter: New file.
11063         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
11064         for get_rusage_as_via_iterator.
11065         (vma_iterate_callback): New function.
11066         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
11067         * modules/get-rusage-as (Depends-on): Add vma-iter.
11068
11069 2011-01-23  Bruno Haible  <bruno@clisp.org>
11070
11071         uninorm: Tweak includes.
11072         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
11073         Reported by Jim Meyering.
11074
11075 2011-01-23  Bruno Haible  <bruno@clisp.org>
11076
11077         get-rusage-as: Improve on NetBSD.
11078         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
11079         /proc, like on FreeBSD.
11080
11081 2011-01-23  Jim Meyering  <meyering@redhat.com>
11082
11083         xreadlink.h: remove unnecessary #include
11084         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
11085
11086         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
11087         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
11088
11089 2011-01-23  Bruno Haible  <bruno@clisp.org>
11090
11091         get-rusage-as: Fix bug.
11092         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
11093         original limit when aborting the first loop.
11094
11095 2011-01-23  Bruno Haible  <bruno@clisp.org>
11096
11097         wctype: Ensure valid C syntax.
11098         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
11099         unconditionally, instead of gl_NEXT_HEADERS conditionally.
11100
11101 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
11102
11103         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
11104         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
11105         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
11106         as they are needed only for configure's test case.
11107         This removes two unnecessary symbols from config.h.
11108
11109         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
11110         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
11111         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
11112         AC_CHECK_HEADERS_ONCE on a header that we also invoke
11113         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
11114         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
11115         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
11116         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
11117         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
11118         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
11119         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
11120         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
11121         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
11122         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
11123         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
11124         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
11125         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
11126         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
11127
11128 2011-01-21  Eric Blake  <eblake@redhat.com>
11129
11130         maintainer-makefile: work with older git for submodule check
11131         * top/maint.mk (public-submodule-commit): Rewrite to avoid
11132         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
11133         Reported by Matthias Bolte.
11134
11135         bootstrap: minor portability fixes
11136         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
11137         (usage): Omit leading capital and trailing . on help phrases, per
11138         GNU Coding Standards.
11139         (check_versions, top level): Prefix messages with script name.
11140
11141 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
11142
11143         bootstrap: support --no-git option
11144         * build-aux/bootstrap: Add --no-git option, to be used when
11145         --gnulib-srcdir points to the exact desired checkout.
11146
11147 2011-01-21  Eric Blake  <eblake@redhat.com>
11148
11149         strerror_r-posix: work with glibc 2.13
11150         * lib/strerror_r.c (strerror_r): Fix return type.
11151
11152 2011-01-21  Pádraig Brady  <P@draigBrady.com>
11153             Bruno Haible  <bruno@clisp.org>
11154
11155         uN_strstr: New unit tests.
11156         * modules/unistr/u8-strstr-tests: New file.
11157         * modules/unistr/u16-strstr-tests: New file.
11158         * modules/unistr/u32-strstr-tests: New file.
11159         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
11160         * tests/unistr/test-u8-strstr.c: New file.
11161         * tests/unistr/test-u16-strstr.c: New file.
11162         * tests/unistr/test-u32-strstr.c: New file.
11163
11164 2011-01-21  Pádraig Brady  <P@draigBrady.com>
11165             Bruno Haible  <bruno@clisp.org>
11166
11167         Make uN_strstr functions O(n) worst-case.
11168         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
11169         16-bit and 32-bit unit cases, use the unibyte algorithm from
11170         lib/mbsstr.c.
11171         * lib/unistr/u8-strstr.c: Include <string.h>.
11172         (UNIT_IS_UINT8_T): New macro.
11173         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
11174         (U_STRLEN, U_STRNLEN): New macros.
11175         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
11176         (U_STRLEN, U_STRNLEN): New macros.
11177         * modules/unistr/u8-strstr (Depends-on): Add strstr.
11178         (configure.ac): Update required libunistring version.
11179         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
11180         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
11181         malloca.
11182         (configure.ac): Update required libunistring version.
11183         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
11184         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
11185         malloca.
11186         (configure.ac): Update required libunistring version.
11187
11188 2011-01-21  Pádraig Brady  <P@draigBrady.com>
11189             Bruno Haible  <bruno@clisp.org>
11190
11191         Prepare for faster uN_strstr functions.
11192         * lib/str-kmp.h: Support definable UNITs.
11193         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
11194         needle_len argument.
11195         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
11196         * lib/mbscasestr.c (mbscasestr): Likewise.
11197
11198 2011-01-21  Pádraig Brady <P@draigBrady.com>
11199
11200         malloca-tests: make faster by unsetting MALLOC_PERTURB_
11201         * tests/test-malloca.c (main): Unset the environment variable
11202         to greatly speed up the test.
11203         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
11204         * modules/malloca-tests: Depend on unsetenv.
11205
11206 2011-01-21  Pádraig Brady <P@draigBrady.com>
11207
11208         ignore-value: remove stdint dependency
11209         * lib/ignore-value.h: Remove <stdint.h>
11210         * modules/ignore-value: Remove stdint dependency.
11211
11212 2011-01-21  Jim Meyering  <meyering@redhat.com>
11213
11214         maint.mk: adjust variable name to be consistent with other gl_ vars
11215         * top/maint.mk (gl_public_submodule_commit): Rename the variable
11216         to be lower case.
11217
11218 2011-01-20  Jim Meyering  <meyering@redhat.com>
11219
11220         maint.mk: make "check" depend on public-submodule-commit by default
11221         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
11222
11223 2011-01-20  Bruno Haible  <bruno@clisp.org>
11224
11225         mbfile, mbiter: Complete change from 2008-12-21.
11226         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
11227         * m4/mbiter.m4 (gl_MBITER): Likewise.
11228
11229 2011-01-20  Jim Meyering  <meyering@redhat.com>
11230
11231         init.sh: insert space between each function name and "()"
11232         * tests/init.sh: Make it a little easier to see that a function's
11233         name is "warn_", and not "warn" when looking at the first part of
11234         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
11235
11236 2011-01-20  Jim Meyering  <meyering@redhat.com>
11237
11238         mountlist: clean up code formatting
11239         * lib/mountlist.c (read_file_system_list): Split a long line,
11240         correct bracing style, use NULL in place of "(struct statfs *)0",
11241         don't parenthesize return value, add spaces around "=" and after
11242         ";-in-for-stmt".
11243
11244 2011-01-14  Markus Duft <mduft@gentoo.org>
11245
11246         mountlist: add support for Interix
11247         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
11248         Apply statvfs to all entries of /dev/fs.
11249         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
11250         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
11251
11252 2011-01-20  Jim Meyering  <meyering@redhat.com>
11253
11254         maint.mk: improve the public-submodule-commit rule
11255         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
11256         to suppress printing of its commands... unless V=1.
11257         Add git submodule's --quiet option to suppress printing of e.g.,
11258         "Entering gnulib" output.
11259         "cd" into $(srcdir) before running git submodule.
11260
11261 2011-01-20  Bruno Haible  <bruno@clisp.org>
11262
11263         include_next: Fix bug introduced on 2011-01-18.
11264         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
11265         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
11266         ac_cv_header_... variable if the second argument is not 'check'.
11267         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
11268         gl_NEXT_HEADERS_INTERNAL.
11269
11270 2011-01-20  Bruno Haible  <bruno@clisp.org>
11271
11272         Allow the user to avoid the GNULIB_TEST_* macros.
11273         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
11274         Suggested by Paul Eggert.
11275
11276 2011-01-14  Jim Meyering  <meyering@redhat.com>
11277
11278         bootstrap: avoid failure when there is no .gitmodules file
11279         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
11280         has been assigned to, even when its value is the empty string.
11281         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
11282         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
11283         Reported by John W. Eaton <jwe@gnu.org>.
11284
11285 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
11286
11287         assume <ctype.h>, ..., <time.h> exist
11288         For years gnulib has been assuming the existence of the headers
11289         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
11290         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
11291         them, since they don't appear to be needed.
11292         * README (Portability guidelines): Document this.
11293         * lib/flock.c: Assume <fcntl.h> exists.
11294         * lib/regex_internal.h: Assume <locale.h> exists.
11295         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
11296         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
11297         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
11298         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
11299         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
11300         * m4/regex.m4 (gl_REGEX): Likewise.
11301         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
11302         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
11303         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
11304         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
11305         * tests/test-argp.c: Likewise.
11306         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
11307
11308         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
11309         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
11310         AA_APPLE_UNIVERSAL_BUILD.  See
11311         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
11312         * NEWS: Document this.
11313
11314 2011-01-19  Eric Blake  <eblake@redhat.com>
11315
11316         c-stack: assume stack overflow if SA_SIGINFO unsupported
11317         * lib/c-stack.c (SIGACTION_WORKS): Rename...
11318         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
11319         sigaction will work.
11320         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
11321         behavior match Linux.
11322         * tests/test-c-stack.c (main): Prefer NULL for pointers.
11323
11324         stdbool-tests: accomodate Haiku
11325         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
11326
11327         binary-io: fix O_TEXT on Haiku
11328         * modules/binary-io (Depends-on): Add fcntl-h.
11329         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
11330         than blindly undefining O_TEXT.
11331         Reported by Scott McCreary.
11332
11333 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
11334
11335         include_next: do not check for standard headers like stddef.h
11336
11337         I found this problem when modifying Emacs to use gnulib.
11338         I noticed that it added HAVE_STDDEF_H to config.h, even though
11339         gnulib always assumes <stddef.h> exists as per README and this
11340         symbol is unnecessary.
11341         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
11342         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
11343         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
11344         faster for headers like stddef.h that are known to exist.
11345         (gl_CHECK_NEXT_HEADERS): Use it.
11346         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
11347         rather than gl_CHECK_NEXT_HEADERS.
11348         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
11349         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
11350
11351 2011-01-18  Eric Blake  <eblake@redhat.com>
11352
11353         ansi-c++-opt: skip C++ dependency style if C++ is unused
11354         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
11355         tests when we know C++ compilation is not desired.
11356         Reported by Scott McCreary.
11357
11358 2011-01-18  Bruno Haible  <bruno@clisp.org>
11359
11360         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
11361         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
11362         (main): Perform test also when getrlimit and setrlimit don't exist or
11363         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
11364         limiting the address space size using setrlimit, compare the address
11365         space size before and after the the test.
11366         * tests/test-dprintf-posix2.c: Likewise.
11367         * tests/test-fprintf-posix3.sh: Update skip messages.
11368         * tests/test-dprintf-posix2.sh: Likewise.
11369         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
11370         * modules/dprintf-posix-tests (Depends-on): Likewise.
11371         Reported by Bruce Korb <bkorb@gnu.org> and
11372         Gary V. Vaughan <gary@gnu.org>.
11373
11374 2011-01-18  Bruno Haible  <bruno@clisp.org>
11375
11376         get-rusage-as: Improvement for Cygwin.
11377         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
11378         areas that are merely reserved.
11379
11380 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
11381
11382         strftime: remove dependencies on multibyte modules
11383
11384         strftime depended on mbrlen, mbsinit, and wchar, but these modules
11385         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
11386         only if __osf__ is defined, and I suspect OSF doesn't need these
11387         other modules.  If my guess is wrong, we'll need to come up with a
11388         variant of strftime that doesn't need the multibyte modules.
11389
11390         I discovered this problem when attempting modify Emacs to use the
11391         strftime module.  With the previous gnulib, this caused Emacs to
11392         need 31 new files, ranging from lib/config.charset to
11393         m4/wint_t.m4.  This was overkill and I expect would be offputting
11394         to the Emacs maintainers.  After this change, only 6 new files are
11395         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
11396         stdbool.m4, and tm_gmtoff.m4.
11397
11398         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
11399         Suggested by Bruno Haible in
11400         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
11401         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
11402         and do not check for wchar.h.
11403         * modules/strftime (Files): Remove m4/mbstate_t.m4.
11404         (Depends-on): Remove mbrlen, mbsinit, wchar.
11405
11406 2011-01-18  Bruno Haible  <bruno@clisp.org>
11407
11408         Tests for module 'get-rusage-as'.
11409         * modules/get-rusage-as-tests: New file.
11410         * tests/test-get-rusage-as.c: New file.
11411
11412         New module 'get-rusage-as'.
11413         * modules/get-rusage-as: New file.
11414         * lib/resource-ext.h: New file.
11415         * lib/get-rusage-as.c: New file.
11416
11417 2011-01-17  Eric Blake  <eblake@redhat.com>
11418
11419         sigaction: relax license from LGPLv3+ to LGPLv2+
11420         * modules/sigaction (License): Relax to LGPLv2+.
11421
11422 2011-01-14  Bruno Haible  <bruno@clisp.org>
11423
11424         filemode: Make function declarations usable in C++ mode.
11425         * lib/filemode.h: Enclose function declarations in extern "C" block.
11426         Reported by John W. Eaton <jwe@gnu.org>.
11427
11428 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
11429
11430         save-cwd: no longer include "xgetcwd.h"
11431         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
11432         This avoids a compilation failure in projects that use save-cwd
11433         without also using the xgetcwd module.
11434
11435 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
11436
11437         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
11438         This is so that a program like Emacs, which needs only dtoastr,
11439         does not have to bother with distributing and compiling ftoastr
11440         and ldtoastr.
11441         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
11442         * modules/dtoastr, modules/ldtoastr: New files.
11443         * modules/ftoastr: Now works just for 'float'.
11444         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
11445         (Makefile.am): Remove ftoastr.h (not needed and no effect),
11446         dtoastr.c, ldtoastr.c.
11447
11448 2011-01-11  Jim Meyering  <meyering@redhat.com>
11449
11450         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
11451         There is no need to work around the lack of the fchdir function,
11452         since gnulib can now provide a replacement when required.
11453         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
11454         * modules/save-cwd (Depends-on): Add fchdir.
11455
11456 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
11457
11458         openat, save-cwd: avoid xmalloc
11459
11460         This removes a direct (but undocumented) dependency of openat on
11461         xalloc, along with an indirect dependency via save-cwd.  It also
11462         removes a dependency of save-cwd on xgetcwd, and thereby
11463         indirectly on xalloc.  This change causes the openat substitute
11464         to fall back on save_cwd when memory is tight, and for save_cwd to
11465         fail instead of dying when memory is tight, but that's good enough.
11466         Problem and initial idea for fix reported by Bastien Roucaries in
11467         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
11468
11469         * lib/openat-proc.c: Include stdlib.h (for malloc), not
11470         xalloc.h (for xmalloc).
11471         (openat_proc_name): Use malloc, not xmalloc.
11472         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
11473         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
11474
11475         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
11476         This avoids heap allocation for file names whose lengths are in
11477         the range 512..1023, with the upper bound increasing to at most
11478         4031 depending on the platform's PATH_MAX.  (We do not want
11479         pathmax.h here as it might supply a non-constant PATH_MAX.)
11480         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
11481         Perhaps they should be moved to malloca.h?
11482         (OPENAT_BUFFER_SIZE): Use them.
11483
11484 2011-01-10  Bruno Haible  <bruno@clisp.org>
11485
11486         doc: Update users.txt.
11487         * users.txt: Add recutils.
11488
11489 2011-01-09  Karl Berry  <karl@gnu.org>
11490
11491         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
11492
11493         * doc/configmake.texi: New file.
11494         * doc/gnulib.texi: Include it.
11495         * modules/configmake: Move documentation from here.
11496
11497 2011-01-09  Bruno Haible  <bruno@clisp.org>
11498
11499         Update to Unicode 6.0.0.
11500         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
11501         (get_lbp): Update for Unicode 6.0.0.
11502         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
11503         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
11504         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
11505         U+11001, U+11038..U+11046. Remove U+06DE.
11506         (uc_width): Fix bounds of planes.
11507         * tests/uniwidth/test-uc_width2.sh: Same updates as in
11508         lib/uniwidth/width.c.
11509         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
11510         trailing whitespace removed.
11511         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
11512         without comments, but with the original copyright notice.
11513         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
11514         * lib/unicase/ignorable.h: Likewise.
11515         * lib/unicase/tocasefold.h: Likewise.
11516         * lib/unicase/tolower.h: Likewise.
11517         * lib/unicase/totitle.h: Likewise.
11518         * lib/unicase/toupper.h: Likewise.
11519         * lib/unictype/bidi_of.h: Likewise.
11520         * lib/unictype/blocks.h: Likewise.
11521         * lib/unictype/categ_C.h: Likewise.
11522         * lib/unictype/categ_Cn.h: Likewise.
11523         * lib/unictype/categ_L.h: Likewise.
11524         * lib/unictype/categ_Ll.h: Likewise.
11525         * lib/unictype/categ_Lm.h: Likewise.
11526         * lib/unictype/categ_Lo.h: Likewise.
11527         * lib/unictype/categ_Lu.h: Likewise.
11528         * lib/unictype/categ_M.h: Likewise.
11529         * lib/unictype/categ_Mc.h: Likewise.
11530         * lib/unictype/categ_Me.h: Likewise.
11531         * lib/unictype/categ_Mn.h: Likewise.
11532         * lib/unictype/categ_N.h: Likewise.
11533         * lib/unictype/categ_Nd.h: Likewise.
11534         * lib/unictype/categ_No.h: Likewise.
11535         * lib/unictype/categ_P.h: Likewise.
11536         * lib/unictype/categ_Po.h: Likewise.
11537         * lib/unictype/categ_S.h: Likewise.
11538         * lib/unictype/categ_Sc.h: Likewise.
11539         * lib/unictype/categ_Sk.h: Likewise.
11540         * lib/unictype/categ_Sm.h: Likewise.
11541         * lib/unictype/categ_So.h: Likewise.
11542         * lib/unictype/categ_of.h: Likewise.
11543         * lib/unictype/combining.h: Likewise.
11544         * lib/unictype/ctype_alnum.h: Likewise.
11545         * lib/unictype/ctype_alpha.h: Likewise.
11546         * lib/unictype/ctype_graph.h: Likewise.
11547         * lib/unictype/ctype_lower.h: Likewise.
11548         * lib/unictype/ctype_print.h: Likewise.
11549         * lib/unictype/ctype_punct.h: Likewise.
11550         * lib/unictype/ctype_upper.h: Likewise.
11551         * lib/unictype/decdigit.h: Likewise.
11552         * lib/unictype/digit.h: Likewise.
11553         * lib/unictype/numeric.h: Likewise.
11554         * lib/unictype/pr_alphabetic.h: Likewise.
11555         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
11556         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
11557         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
11558         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
11559         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
11560         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
11561         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
11562         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
11563         * lib/unictype/pr_case_ignorable.h: Likewise.
11564         * lib/unictype/pr_cased.h: Likewise.
11565         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
11566         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
11567         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
11568         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
11569         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
11570         * lib/unictype/pr_combining.h: Likewise.
11571         * lib/unictype/pr_composite.h: Likewise.
11572         * lib/unictype/pr_currency_symbol.h: Likewise.
11573         * lib/unictype/pr_decimal_digit.h: Likewise.
11574         * lib/unictype/pr_deprecated.h: Likewise.
11575         * lib/unictype/pr_format_control.h: Likewise.
11576         * lib/unictype/pr_grapheme_base.h: Likewise.
11577         * lib/unictype/pr_grapheme_extend.h: Likewise.
11578         * lib/unictype/pr_grapheme_link.h: Likewise.
11579         * lib/unictype/pr_id_continue.h: Likewise.
11580         * lib/unictype/pr_id_start.h: Likewise.
11581         * lib/unictype/pr_ideographic.h: Likewise.
11582         * lib/unictype/pr_lowercase.h: Likewise.
11583         * lib/unictype/pr_math.h: Likewise.
11584         * lib/unictype/pr_numeric.h: Likewise.
11585         * lib/unictype/pr_other_alphabetic.h: Likewise.
11586         * lib/unictype/pr_other_id_continue.h: Likewise.
11587         * lib/unictype/pr_other_math.h: Likewise.
11588         * lib/unictype/pr_punctuation.h: Likewise.
11589         * lib/unictype/pr_sentence_terminal.h: Likewise.
11590         * lib/unictype/pr_terminal_punctuation.h: Likewise.
11591         * lib/unictype/pr_unassigned_code_value.h: Likewise.
11592         * lib/unictype/pr_unified_ideograph.h: Likewise.
11593         * lib/unictype/pr_uppercase.h: Likewise.
11594         * lib/unictype/pr_xid_continue.h: Likewise.
11595         * lib/unictype/pr_xid_start.h: Likewise.
11596         * lib/unictype/scripts.h: Likewise.
11597         * lib/unictype/scripts_byname.gperf: Likewise.
11598         * lib/unictype/sy_java_ident.h: Likewise.
11599         * lib/unigbrk/gbrkprop.h: Likewise.
11600         * lib/unilbrk/lbrkprop1.h: Likewise.
11601         * lib/unilbrk/lbrkprop2.h: Likewise.
11602         * lib/uninorm/decomposition-table2.h: Likewise.
11603         * lib/uniwbrk/wbrkprop.h: Likewise.
11604         * tests/unicase/test-cased.c: Likewise.
11605         * tests/unicase/test-ignorable.c: Likewise.
11606         * tests/unicase/test-uc_tolower.c: Likewise.
11607         * tests/unicase/test-uc_totitle.c: Likewise.
11608         * tests/unicase/test-uc_toupper.c: Likewise.
11609         * tests/unictype/test-categ_C.c: Likewise.
11610         * tests/unictype/test-categ_Cn.c: Likewise.
11611         * tests/unictype/test-categ_L.c: Likewise.
11612         * tests/unictype/test-categ_Ll.c: Likewise.
11613         * tests/unictype/test-categ_Lm.c: Likewise.
11614         * tests/unictype/test-categ_Lo.c: Likewise.
11615         * tests/unictype/test-categ_Lu.c: Likewise.
11616         * tests/unictype/test-categ_M.c: Likewise.
11617         * tests/unictype/test-categ_Mc.c: Likewise.
11618         * tests/unictype/test-categ_Me.c: Likewise.
11619         * tests/unictype/test-categ_Mn.c: Likewise.
11620         * tests/unictype/test-categ_N.c: Likewise.
11621         * tests/unictype/test-categ_Nd.c: Likewise.
11622         * tests/unictype/test-categ_No.c: Likewise.
11623         * tests/unictype/test-categ_P.c: Likewise.
11624         * tests/unictype/test-categ_Po.c: Likewise.
11625         * tests/unictype/test-categ_S.c: Likewise.
11626         * tests/unictype/test-categ_Sc.c: Likewise.
11627         * tests/unictype/test-categ_Sk.c: Likewise.
11628         * tests/unictype/test-categ_Sm.c: Likewise.
11629         * tests/unictype/test-categ_So.c: Likewise.
11630         * tests/unictype/test-ctype_alnum.c: Likewise.
11631         * tests/unictype/test-ctype_alpha.c: Likewise.
11632         * tests/unictype/test-ctype_graph.c: Likewise.
11633         * tests/unictype/test-ctype_lower.c: Likewise.
11634         * tests/unictype/test-ctype_print.c: Likewise.
11635         * tests/unictype/test-ctype_punct.c: Likewise.
11636         * tests/unictype/test-ctype_upper.c: Likewise.
11637         * tests/unictype/test-decdigit.h: Likewise.
11638         * tests/unictype/test-digit.h: Likewise.
11639         * tests/unictype/test-numeric.h: Likewise.
11640         * tests/unictype/test-pr_alphabetic.c: Likewise.
11641         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
11642         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
11643         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
11644         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
11645         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
11646         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
11647         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
11648         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
11649         * tests/unictype/test-pr_case_ignorable.c: Likewise.
11650         * tests/unictype/test-pr_cased.c: Likewise.
11651         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
11652         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
11653         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
11654         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
11655         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
11656         * tests/unictype/test-pr_combining.c: Likewise.
11657         * tests/unictype/test-pr_composite.c: Likewise.
11658         * tests/unictype/test-pr_currency_symbol.c: Likewise.
11659         * tests/unictype/test-pr_decimal_digit.c: Likewise.
11660         * tests/unictype/test-pr_deprecated.c: Likewise.
11661         * tests/unictype/test-pr_format_control.c: Likewise.
11662         * tests/unictype/test-pr_grapheme_base.c: Likewise.
11663         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
11664         * tests/unictype/test-pr_grapheme_link.c: Likewise.
11665         * tests/unictype/test-pr_id_continue.c: Likewise.
11666         * tests/unictype/test-pr_id_start.c: Likewise.
11667         * tests/unictype/test-pr_ideographic.c: Likewise.
11668         * tests/unictype/test-pr_lowercase.c: Likewise.
11669         * tests/unictype/test-pr_math.c: Likewise.
11670         * tests/unictype/test-pr_numeric.c: Likewise.
11671         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
11672         * tests/unictype/test-pr_other_id_continue.c: Likewise.
11673         * tests/unictype/test-pr_other_math.c: Likewise.
11674         * tests/unictype/test-pr_punctuation.c: Likewise.
11675         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
11676         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
11677         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
11678         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
11679         * tests/unictype/test-pr_uppercase.c: Likewise.
11680         * tests/unictype/test-pr_xid_continue.c: Likewise.
11681         * tests/unictype/test-pr_xid_start.c: Likewise.
11682         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
11683         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
11684         changes.
11685         * lib/unictype/categ_Cc.h: Likewise.
11686         * lib/unictype/categ_Cf.h: Likewise.
11687         * lib/unictype/categ_Co.h: Likewise.
11688         * lib/unictype/categ_Cs.h: Likewise.
11689         * lib/unictype/categ_Lt.h: Likewise.
11690         * lib/unictype/categ_Nl.h: Likewise.
11691         * lib/unictype/categ_Pc.h: Likewise.
11692         * lib/unictype/categ_Pd.h: Likewise.
11693         * lib/unictype/categ_Pe.h: Likewise.
11694         * lib/unictype/categ_Pf.h: Likewise.
11695         * lib/unictype/categ_Pi.h: Likewise.
11696         * lib/unictype/categ_Ps.h: Likewise.
11697         * lib/unictype/categ_Z.h: Likewise.
11698         * lib/unictype/categ_Zl.h: Likewise.
11699         * lib/unictype/categ_Zp.h: Likewise.
11700         * lib/unictype/categ_Zs.h: Likewise.
11701         * lib/unictype/ctype_blank.h: Likewise.
11702         * lib/unictype/ctype_cntrl.h: Likewise.
11703         * lib/unictype/ctype_digit.h: Likewise.
11704         * lib/unictype/ctype_space.h: Likewise.
11705         * lib/unictype/ctype_xdigit.h: Likewise.
11706         * lib/unictype/mirror.h: Likewise.
11707         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
11708         * lib/unictype/pr_bidi_block_separator.h: Likewise.
11709         * lib/unictype/pr_bidi_common_separator.h: Likewise.
11710         * lib/unictype/pr_bidi_control.h: Likewise.
11711         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
11712         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
11713         * lib/unictype/pr_bidi_european_digit.h: Likewise.
11714         * lib/unictype/pr_bidi_pdf.h: Likewise.
11715         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
11716         * lib/unictype/pr_bidi_whitespace.h: Likewise.
11717         * lib/unictype/pr_dash.h: Likewise.
11718         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
11719         * lib/unictype/pr_diacritic.h: Likewise.
11720         * lib/unictype/pr_extender.h: Likewise.
11721         * lib/unictype/pr_hex_digit.h: Likewise.
11722         * lib/unictype/pr_hyphen.h: Likewise.
11723         * lib/unictype/pr_ids_binary_operator.h: Likewise.
11724         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
11725         * lib/unictype/pr_ignorable_control.h: Likewise.
11726         * lib/unictype/pr_iso_control.h: Likewise.
11727         * lib/unictype/pr_join_control.h: Likewise.
11728         * lib/unictype/pr_left_of_pair.h: Likewise.
11729         * lib/unictype/pr_line_separator.h: Likewise.
11730         * lib/unictype/pr_logical_order_exception.h: Likewise.
11731         * lib/unictype/pr_non_break.h: Likewise.
11732         * lib/unictype/pr_not_a_character.h: Likewise.
11733         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
11734         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
11735         * lib/unictype/pr_other_id_start.h: Likewise.
11736         * lib/unictype/pr_other_lowercase.h: Likewise.
11737         * lib/unictype/pr_other_uppercase.h: Likewise.
11738         * lib/unictype/pr_paired_punctuation.h: Likewise.
11739         * lib/unictype/pr_paragraph_separator.h: Likewise.
11740         * lib/unictype/pr_pattern_syntax.h: Likewise.
11741         * lib/unictype/pr_pattern_white_space.h: Likewise.
11742         * lib/unictype/pr_private_use.h: Likewise.
11743         * lib/unictype/pr_quotation_mark.h: Likewise.
11744         * lib/unictype/pr_radical.h: Likewise.
11745         * lib/unictype/pr_soft_dotted.h: Likewise.
11746         * lib/unictype/pr_space.h: Likewise.
11747         * lib/unictype/pr_titlecase.h: Likewise.
11748         * lib/unictype/pr_variation_selector.h: Likewise.
11749         * lib/unictype/pr_white_space.h: Likewise.
11750         * lib/unictype/pr_zero_width.h: Likewise.
11751         * lib/unictype/sy_c_ident.h: Likewise.
11752         * lib/unictype/sy_c_whitespace.h: Likewise.
11753         * lib/unictype/sy_java_whitespace.h: Likewise.
11754         * lib/uninorm/composition-table.gperf: Likewise.
11755         * lib/uninorm/decomposition-table1.h: Likewise.
11756         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
11757         LB8.
11758         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
11759         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
11760         * modules/unictype/*: Bump version number of expected libunistring
11761         version.
11762
11763 2011-01-09  Bruno Haible  <bruno@clisp.org>
11764
11765         Update to Unicode 5.2.0.
11766         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
11767         trailing whitespace removed.
11768
11769 2011-01-09  Bruno Haible  <bruno@clisp.org>
11770
11771         New Unicode character properties, from Unicode 5.2.0.
11772         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
11773         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
11774         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
11775         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
11776         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
11777         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
11778         uc_is_property_cased, uc_is_property_case_ignorable,
11779         uc_is_property_changes_when_lowercased,
11780         uc_is_property_changes_when_uppercased,
11781         uc_is_property_changes_when_titlecased,
11782         uc_is_property_changes_when_casefolded,
11783         uc_is_property_changes_when_casemapped): New declarations.
11784         * lib/unictype/pr_byname.gperf: Add the new properties.
11785         * modules/unictype/property-byname (Depends-on): Depend on the new
11786         properties modules.
11787         * modules/unictype/property-all (Depends-on): Likewise.
11788         * MODULES.html.sh (Unicode string functions): Add
11789         unictype/property-case-ignorable, unictype/property-cased,
11790         unictype/property-changes-when-casefolded,
11791         unictype/property-changes-when-casemapped,
11792         unictype/property-changes-when-lowercased,
11793         unictype/property-changes-when-titlecased,
11794         unictype/property-changes-when-uppercased.
11795
11796         New module 'unictype/property-changes-when-casemapped'.
11797         * modules/unictype/property-changes-when-casemapped: New file.
11798         * lib/unictype/pr_changes_when_casemapped.c: New file.
11799         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
11800         generated by gen-uni-tables.
11801         * modules/unictype/property-changes-when-casemapped-tests: New file.
11802         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
11803         automatically generated by gen-uni-tables.
11804
11805         New module 'unictype/property-changes-when-casefolded'.
11806         * modules/unictype/property-changes-when-casefolded: New file.
11807         * lib/unictype/pr_changes_when_casefolded.c: New file.
11808         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
11809         generated by gen-uni-tables.
11810         * modules/unictype/property-changes-when-casefolded-tests: New file.
11811         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
11812         automatically generated by gen-uni-tables.
11813
11814         New module 'unictype/property-changes-when-titlecased'.
11815         * modules/unictype/property-changes-when-titlecased: New file.
11816         * lib/unictype/pr_changes_when_titlecased.c: New file.
11817         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
11818         generated by gen-uni-tables.
11819         * modules/unictype/property-changes-when-titlecased-tests: New file.
11820         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
11821         automatically generated by gen-uni-tables.
11822
11823         New module 'unictype/property-changes-when-uppercased'.
11824         * modules/unictype/property-changes-when-uppercased: New file.
11825         * lib/unictype/pr_changes_when_uppercased.c: New file.
11826         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
11827         generated by gen-uni-tables.
11828         * modules/unictype/property-changes-when-uppercased-tests: New file.
11829         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
11830         automatically generated by gen-uni-tables.
11831
11832         New module 'unictype/property-changes-when-lowercased'.
11833         * modules/unictype/property-changes-when-lowercased: New file.
11834         * lib/unictype/pr_changes_when_lowercased.c: New file.
11835         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
11836         generated by gen-uni-tables.
11837         * modules/unictype/property-changes-when-lowercased-tests: New file.
11838         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
11839         automatically generated by gen-uni-tables.
11840
11841         New module 'unictype/property-case-ignorable'.
11842         * modules/unictype/property-case-ignorable: New file.
11843         * lib/unictype/pr_case_ignorable.c: New file.
11844         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
11845         by gen-uni-tables.
11846         * modules/unictype/property-case-ignorable-tests: New file.
11847         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
11848         generated by gen-uni-tables.
11849
11850         New module 'unictype/property-cased'.
11851         * modules/unictype/property-cased: New file.
11852         * lib/unictype/pr_cased.c: New file.
11853         * lib/unictype/pr_cased.h: New file, automatically generated by
11854         gen-uni-tables.
11855         * modules/unictype/property-cased-tests: New file.
11856         * tests/unictype/test-pr_cased.c: New file, automatically generated by
11857         gen-uni-tables.
11858
11859 2011-01-09  Bruno Haible  <bruno@clisp.org>
11860
11861         Update to Unicode 5.2.0.
11862         * lib/gen-uni-tables.c (output_predicate, output_category,
11863         output_combclass, output_bidi_category, output_decimal_digit_test,
11864         output_decimal_digit, output_digit_test, output_digit,
11865         output_numeric_test, output_numeric, output_mirror, output_scripts,
11866         output_scripts_byname, output_blocks, output_ident_category): Fix
11867         comment header.
11868         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
11869         get_wbp.
11870         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
11871         items.
11872         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
11873         Changes_When_Lowercased, Changes_When_Uppercased,
11874         Changes_When_Titlecased, Changes_When_Casefolded,
11875         Changes_When_Casemapped.
11876         (is_property_alphabetic, is_property_default_ignorable_code_point):
11877         Update for Unicode 5.2.0.
11878         (is_property_cased, is_property_case_ignorable,
11879         is_property_changes_when_lowercased,
11880         is_property_changes_when_uppercased,
11881         is_property_changes_when_titlecased,
11882         is_property_changes_when_casefolded,
11883         is_property_changes_when_casemapped): New functions.
11884         (output_properties): Output also the properties cased, case_ignorable,
11885         changes_when_lowercased, changes_when_uppercased,
11886         changes_when_titlecased, changes_when_casefolded,
11887         changes_when_casemapped.
11888         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
11889         Unicode TR#11 revision 17 -> 19.
11890         (LBP_CP): New enumeration value.
11891         (LBP_*): Adjust values accordingly.
11892         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
11893         TR#14 revision 22 -> 24.
11894         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
11895         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
11896         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
11897         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
11898         is_WBP_MIDLETTER.
11899         (output_composition_tables): Allow for 24 bits instead of 16 bits in
11900         the code1 and code2 of each composition rule.
11901         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
11902         * lib/unicase/ignorable.h: Likewise.
11903         * lib/unicase/tocasefold.h: Likewise.
11904         * lib/unicase/tolower.h: Likewise.
11905         * lib/unicase/totitle.h: Likewise.
11906         * lib/unicase/toupper.h: Likewise.
11907         * lib/unictype/bidi_of.h: Likewise.
11908         * lib/unictype/blocks.h: Likewise.
11909         * lib/unictype/categ_C.h: Likewise.
11910         * lib/unictype/categ_Cf.h: Likewise.
11911         * lib/unictype/categ_Cn.h: Likewise.
11912         * lib/unictype/categ_L.h: Likewise.
11913         * lib/unictype/categ_Ll.h: Likewise.
11914         * lib/unictype/categ_Lm.h: Likewise.
11915         * lib/unictype/categ_Lo.h: Likewise.
11916         * lib/unictype/categ_Lu.h: Likewise.
11917         * lib/unictype/categ_M.h: Likewise.
11918         * lib/unictype/categ_Mc.h: Likewise.
11919         * lib/unictype/categ_Mn.h: Likewise.
11920         * lib/unictype/categ_N.h: Likewise.
11921         * lib/unictype/categ_Nd.h: Likewise.
11922         * lib/unictype/categ_Nl.h: Likewise.
11923         * lib/unictype/categ_No.h: Likewise.
11924         * lib/unictype/categ_P.h: Likewise.
11925         * lib/unictype/categ_Pd.h: Likewise.
11926         * lib/unictype/categ_Po.h: Likewise.
11927         * lib/unictype/categ_S.h: Likewise.
11928         * lib/unictype/categ_Sc.h: Likewise.
11929         * lib/unictype/categ_So.h: Likewise.
11930         * lib/unictype/categ_of.h: Likewise.
11931         * lib/unictype/combining.h: Likewise.
11932         * lib/unictype/ctype_alnum.h: Likewise.
11933         * lib/unictype/ctype_alpha.h: Likewise.
11934         * lib/unictype/ctype_graph.h: Likewise.
11935         * lib/unictype/ctype_lower.h: Likewise.
11936         * lib/unictype/ctype_print.h: Likewise.
11937         * lib/unictype/ctype_punct.h: Likewise.
11938         * lib/unictype/ctype_upper.h: Likewise.
11939         * lib/unictype/decdigit.h: Likewise.
11940         * lib/unictype/digit.h: Likewise.
11941         * lib/unictype/numeric.h: Likewise.
11942         * lib/unictype/pr_alphabetic.h: Likewise.
11943         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
11944         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
11945         * lib/unictype/pr_bidi_european_digit.h: Likewise.
11946         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
11947         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
11948         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
11949         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
11950         * lib/unictype/pr_combining.h: Likewise.
11951         * lib/unictype/pr_composite.h: Likewise.
11952         * lib/unictype/pr_currency_symbol.h: Likewise.
11953         * lib/unictype/pr_dash.h: Likewise.
11954         * lib/unictype/pr_decimal_digit.h: Likewise.
11955         * lib/unictype/pr_deprecated.h: Likewise.
11956         * lib/unictype/pr_diacritic.h: Likewise.
11957         * lib/unictype/pr_extender.h: Likewise.
11958         * lib/unictype/pr_grapheme_base.h: Likewise.
11959         * lib/unictype/pr_grapheme_extend.h: Likewise.
11960         * lib/unictype/pr_grapheme_link.h: Likewise.
11961         * lib/unictype/pr_id_continue.h: Likewise.
11962         * lib/unictype/pr_id_start.h: Likewise.
11963         * lib/unictype/pr_ideographic.h: Likewise.
11964         * lib/unictype/pr_ignorable_control.h: Likewise.
11965         * lib/unictype/pr_logical_order_exception.h: Likewise.
11966         * lib/unictype/pr_lowercase.h: Likewise.
11967         * lib/unictype/pr_numeric.h: Likewise.
11968         * lib/unictype/pr_other_alphabetic.h: Likewise.
11969         * lib/unictype/pr_punctuation.h: Likewise.
11970         * lib/unictype/pr_sentence_terminal.h: Likewise.
11971         * lib/unictype/pr_terminal_punctuation.h: Likewise.
11972         * lib/unictype/pr_unassigned_code_value.h: Likewise.
11973         * lib/unictype/pr_unified_ideograph.h: Likewise.
11974         * lib/unictype/pr_uppercase.h: Likewise.
11975         * lib/unictype/pr_xid_continue.h: Likewise.
11976         * lib/unictype/pr_xid_start.h: Likewise.
11977         * lib/unictype/pr_zero_width.h: Likewise.
11978         * lib/unictype/scripts.h: Likewise.
11979         * lib/unictype/scripts_byname.gperf: Likewise.
11980         * lib/unictype/sy_java_ident.h: Likewise.
11981         * lib/unigbrk/gbrkprop.h: Likewise.
11982         * lib/unilbrk/lbrkprop1.h: Likewise.
11983         * lib/unilbrk/lbrkprop2.h: Likewise.
11984         * lib/unilbrk/lbrktables.h: Likewise.
11985         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
11986         LBP_CP. Implement rule LB30.
11987         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
11988         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
11989         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
11990         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
11991         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
11992         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
11993         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
11994         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
11995         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
11996         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
11997         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
11998         bits instead of 16 bits in the code1 and code2 of each composition
11999         rule.
12000         (uc_composition): Update for Unicode 5.2.0.
12001         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
12002         * lib/uninorm/decomposition-table2.h: Likewise.
12003         * lib/uniwbrk/wbrkprop.h: Likewise.
12004         * tests/unicase/test-cased.c: Likewise.
12005         * tests/unicase/test-ignorable.c: Likewise.
12006         * tests/unicase/test-uc_tolower.c: Likewise.
12007         * tests/unicase/test-uc_totitle.c: Likewise.
12008         * tests/unicase/test-uc_toupper.c: Likewise.
12009         * tests/unictype/test-categ_C.c: Likewise.
12010         * tests/unictype/test-categ_Cf.c: Likewise.
12011         * tests/unictype/test-categ_Cn.c: Likewise.
12012         * tests/unictype/test-categ_L.c: Likewise.
12013         * tests/unictype/test-categ_Ll.c: Likewise.
12014         * tests/unictype/test-categ_Lm.c: Likewise.
12015         * tests/unictype/test-categ_Lo.c: Likewise.
12016         * tests/unictype/test-categ_Lu.c: Likewise.
12017         * tests/unictype/test-categ_M.c: Likewise.
12018         * tests/unictype/test-categ_Mc.c: Likewise.
12019         * tests/unictype/test-categ_Mn.c: Likewise.
12020         * tests/unictype/test-categ_N.c: Likewise.
12021         * tests/unictype/test-categ_Nd.c: Likewise.
12022         * tests/unictype/test-categ_Nl.c: Likewise.
12023         * tests/unictype/test-categ_No.c: Likewise.
12024         * tests/unictype/test-categ_P.c: Likewise.
12025         * tests/unictype/test-categ_Pd.c: Likewise.
12026         * tests/unictype/test-categ_Po.c: Likewise.
12027         * tests/unictype/test-categ_S.c: Likewise.
12028         * tests/unictype/test-categ_Sc.c: Likewise.
12029         * tests/unictype/test-categ_So.c: Likewise.
12030         * tests/unictype/test-ctype_alnum.c: Likewise.
12031         * tests/unictype/test-ctype_alpha.c: Likewise.
12032         * tests/unictype/test-ctype_graph.c: Likewise.
12033         * tests/unictype/test-ctype_lower.c: Likewise.
12034         * tests/unictype/test-ctype_print.c: Likewise.
12035         * tests/unictype/test-ctype_punct.c: Likewise.
12036         * tests/unictype/test-ctype_upper.c: Likewise.
12037         * tests/unictype/test-decdigit.h: Likewise.
12038         * tests/unictype/test-digit.h: Likewise.
12039         * tests/unictype/test-numeric.h: Likewise.
12040         * tests/unictype/test-pr_alphabetic.c: Likewise.
12041         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
12042         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
12043         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
12044         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
12045         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
12046         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
12047         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
12048         * tests/unictype/test-pr_combining.c: Likewise.
12049         * tests/unictype/test-pr_composite.c: Likewise.
12050         * tests/unictype/test-pr_currency_symbol.c: Likewise.
12051         * tests/unictype/test-pr_dash.c: Likewise.
12052         * tests/unictype/test-pr_decimal_digit.c: Likewise.
12053         * tests/unictype/test-pr_deprecated.c: Likewise.
12054         * tests/unictype/test-pr_diacritic.c: Likewise.
12055         * tests/unictype/test-pr_extender.c: Likewise.
12056         * tests/unictype/test-pr_grapheme_base.c: Likewise.
12057         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
12058         * tests/unictype/test-pr_grapheme_link.c: Likewise.
12059         * tests/unictype/test-pr_id_continue.c: Likewise.
12060         * tests/unictype/test-pr_id_start.c: Likewise.
12061         * tests/unictype/test-pr_ideographic.c: Likewise.
12062         * tests/unictype/test-pr_ignorable_control.c: Likewise.
12063         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
12064         * tests/unictype/test-pr_lowercase.c: Likewise.
12065         * tests/unictype/test-pr_numeric.c: Likewise.
12066         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
12067         * tests/unictype/test-pr_punctuation.c: Likewise.
12068         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
12069         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
12070         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
12071         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
12072         * tests/unictype/test-pr_uppercase.c: Likewise.
12073         * tests/unictype/test-pr_xid_continue.c: Likewise.
12074         * tests/unictype/test-pr_xid_start.c: Likewise.
12075         * tests/unictype/test-pr_zero_width.c: Likewise.
12076         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
12077         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
12078         changed behaviour: line breaking is now disallowed between a letter
12079         or '=' and '('.
12080         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
12081         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
12082         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
12083         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
12084         * tests/uniwidth/test-uc_width2.sh: Same updates as in
12085         lib/uniwidth/width.c.
12086         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
12087         without comments, but with the original copyright notice.
12088         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
12089         changes.
12090         * lib/unictype/categ_Cc.h: Likewise.
12091         * lib/unictype/categ_Co.h: Likewise.
12092         * lib/unictype/categ_Cs.h: Likewise.
12093         * lib/unictype/categ_Lt.h: Likewise.
12094         * lib/unictype/categ_Me.h: Likewise.
12095         * lib/unictype/categ_Pc.h: Likewise.
12096         * lib/unictype/categ_Pe.h: Likewise.
12097         * lib/unictype/categ_Pf.h: Likewise.
12098         * lib/unictype/categ_Pi.h: Likewise.
12099         * lib/unictype/categ_Ps.h: Likewise.
12100         * lib/unictype/categ_Sk.h: Likewise.
12101         * lib/unictype/categ_Sm.h: Likewise.
12102         * lib/unictype/categ_Z.h: Likewise.
12103         * lib/unictype/categ_Zl.h: Likewise.
12104         * lib/unictype/categ_Zp.h: Likewise.
12105         * lib/unictype/categ_Zs.h: Likewise.
12106         * lib/unictype/ctype_blank.h: Likewise.
12107         * lib/unictype/ctype_cntrl.h: Likewise.
12108         * lib/unictype/ctype_digit.h: Likewise.
12109         * lib/unictype/ctype_space.h: Likewise.
12110         * lib/unictype/ctype_xdigit.h: Likewise.
12111         * lib/unictype/mirror.h: Likewise.
12112         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
12113         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
12114         * lib/unictype/pr_bidi_block_separator.h: Likewise.
12115         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
12116         * lib/unictype/pr_bidi_common_separator.h: Likewise.
12117         * lib/unictype/pr_bidi_control.h: Likewise.
12118         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
12119         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
12120         * lib/unictype/pr_bidi_pdf.h: Likewise.
12121         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
12122         * lib/unictype/pr_bidi_whitespace.h: Likewise.
12123         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
12124         * lib/unictype/pr_format_control.h: Likewise.
12125         * lib/unictype/pr_hex_digit.h: Likewise.
12126         * lib/unictype/pr_hyphen.h: Likewise.
12127         * lib/unictype/pr_ids_binary_operator.h: Likewise.
12128         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
12129         * lib/unictype/pr_iso_control.h: Likewise.
12130         * lib/unictype/pr_join_control.h: Likewise.
12131         * lib/unictype/pr_left_of_pair.h: Likewise.
12132         * lib/unictype/pr_line_separator.h: Likewise.
12133         * lib/unictype/pr_math.h: Likewise.
12134         * lib/unictype/pr_non_break.h: Likewise.
12135         * lib/unictype/pr_not_a_character.h: Likewise.
12136         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
12137         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
12138         * lib/unictype/pr_other_id_continue.h: Likewise.
12139         * lib/unictype/pr_other_id_start.h: Likewise.
12140         * lib/unictype/pr_other_lowercase.h: Likewise.
12141         * lib/unictype/pr_other_math.h: Likewise.
12142         * lib/unictype/pr_other_uppercase.h: Likewise.
12143         * lib/unictype/pr_paired_punctuation.h: Likewise.
12144         * lib/unictype/pr_paragraph_separator.h: Likewise.
12145         * lib/unictype/pr_pattern_syntax.h: Likewise.
12146         * lib/unictype/pr_pattern_white_space.h: Likewise.
12147         * lib/unictype/pr_private_use.h: Likewise.
12148         * lib/unictype/pr_quotation_mark.h: Likewise.
12149         * lib/unictype/pr_radical.h: Likewise.
12150         * lib/unictype/pr_soft_dotted.h: Likewise.
12151         * lib/unictype/pr_space.h: Likewise.
12152         * lib/unictype/pr_titlecase.h: Likewise.
12153         * lib/unictype/pr_variation_selector.h: Likewise.
12154         * lib/unictype/pr_white_space.h: Likewise.
12155         * lib/unictype/sy_c_ident.h: Likewise.
12156         * lib/unictype/sy_c_whitespace.h: Likewise.
12157         * lib/unictype/sy_java_whitespace.h: Likewise.
12158         * modules/uni*/*: Bump version number of expected libunistring version.
12159         Reported by Simon Josefsson.
12160
12161 2011-01-09  Karl Heuer  <kwzh@gnu.org>
12162
12163         useless-if-before-free: fix typo in --help and make the internal,
12164         automatic version date update process work once again.
12165         --help output contained a NUL character instead of the
12166         backslash-zero that was intended.  Also, the "must lie within
12167         the first 8 lines" line is on line 9, and hence not getting
12168         automatically updated.
12169         * build-aux/useless-if-before-free: Fix the former by adding a
12170         backslash, and the latter by condensing the three lines of what-it-does
12171         to a single line, leaving one line of slack for the future.
12172
12173 2011-01-09  Bruno Haible  <bruno@clisp.org>
12174
12175         uniwidth/width: Fix width of U+1D173..U+1D17A.
12176         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
12177         symbolic_width, output_width_property_test): New functions.
12178         (main): Invoke output_nonspacing_property, output_width_property_test.
12179         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
12180         U+1D173..U+1D17A.
12181         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
12182         1.
12183         * modules/uniwidth/*: Bump version number of expected libunistring
12184         version.
12185         * modules/unilbrk/*: Likewise.
12186
12187 2011-01-08  Bruno Haible  <bruno@clisp.org>
12188
12189         uninorm tests: Preserve copyright of Unicode data file.
12190         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
12191         Mention modifications.
12192
12193 2011-01-08  Bruno Haible  <bruno@clisp.org>
12194
12195         gen-uni-tables: Prepare for Unicode 5.2.0.
12196         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
12197         (debug_output_lbp, output_lbp): Update.
12198
12199 2011-01-08  Bruno Haible  <bruno@clisp.org>
12200
12201         unilbrk: Clarify gen-uni-tables.c code.
12202         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
12203         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
12204         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
12205
12206 2011-01-07  Bruno Haible  <bruno@clisp.org>
12207
12208         strtod: Restore errno when successfully parsing Infinity or NaN.
12209         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
12210         restore the original errno.
12211
12212 2011-01-07  Bruno Haible  <bruno@clisp.org>
12213
12214         remove test: Avoid failure on HP-UX 11.
12215         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
12216
12217 2011-01-07  Bruno Haible  <bruno@clisp.org>
12218
12219         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
12220         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
12221         error code.
12222
12223 2011-01-07  Pádraig Brady <P@draigBrady.com>
12224
12225         ignore-value: fixup comments, and add Eric Blake
12226         as an author since he rewrote the macros.
12227         * lib/ignore-value.h (ignore_value):  State that
12228         we now support aggregates.  Also specify exactly
12229         when the GCC warn_unused_result feature was added.
12230
12231 2011-01-06  Eric Blake  <eblake@redhat.com>
12232
12233         ignore-value: support aggregate types
12234         * lib/ignore-value.h (ignore_value): Provide separate gcc
12235         definition.
12236         * modules/ignore-value-tests: New test module.
12237         * tests/test-ignore-value.c: New test.
12238
12239         maint.mk: improve sc_prohibit_strcmp regex
12240         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
12241         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
12242         definition of STRNEQ.
12243
12244         signal: work around Haiku issue with SIGBUS
12245         * lib/siglist.h: Add comment.
12246         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
12247         strsignal's favoring of SIGSEGV.
12248         * tests/test-signal.c (main): Avoid test failure.
12249         * doc/posix-headers/signal.texi (signal.h): Document the issue.
12250         Reported by Scott McCreary.
12251
12252         maint.mk: add pre-release check to ensure submodule commits are public
12253         * top/maint.mk (public-submodule-commit): New rule.
12254         (submodule-checks): New variable.
12255         (alpha beta stable): Depend on the variable.
12256
12257 2011-01-05  Pádraig Brady <P@draigBrady.com>
12258         and Jim Meyering  <meyering@redhat.com>
12259
12260         ignore-value: make ignore_value more generic; deprecate ignore_ptr
12261         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
12262         (ATTRIBUTE_DEPRECATED): Define.
12263         (_ignore_case): New function.
12264         (ignore_value): New macro, to replace the old function.
12265         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
12266         * modules/ignore-value (Depends-on): Add stdint.
12267
12268 2011-01-04  Eric Blake  <eblake@redhat.com>
12269
12270         doc: regenerate INSTALL
12271         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
12272         @firstparagraphindent support, now that autoconf dropped it.
12273         (INSTALL_PRELUDE): Reinstate old macro.
12274         * doc/install.texi: Resync from autoconf.
12275         * doc/INSTALL: Reflect recent autoconf update.
12276         * doc/INSTALL.ISO: Likewise.
12277         * doc/INSTALL.UTF-8: Likewise.
12278         Reported by Karl Berry.
12279
12280 2011-01-04  Bruce Korb  <address@hidden>
12281
12282         git-version-gen: avoid a sub-shell
12283         * build-aux/git-version-gen: Redirect stderr in `...` via
12284         "exec 2>...", rather than via an added sub-shell.
12285
12286 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
12287
12288         git-version-gen: use (...) rather than sh -c '...'
12289         * build-aux/git-version-gen: Rather than hard-coding a shell's name
12290         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
12291
12292 2011-01-03  Jim Meyering  <meyering@redhat.com>
12293
12294         git-version-gen: convert leading TABs to spaces
12295         * build-aux/git-version-gen: Expand leading TABs.
12296
12297         git-version-gen: handle failed "git rev-list"
12298         * build-aux/git-version-gen: Rather than leaking a "fatal" error
12299         from git and proceeding as if it had succeeded but printed no SHA1
12300         checksums, suppress the diagnostic and handle the failure.
12301         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
12302
12303         git-version-gen: include command name in one more diagnostic
12304         * build-aux/git-version-gen: When the required .tarball-version file
12305         was missing or unreadable, you might see the diagnostic from "cat",
12306         but no trace of the name of the invoking script.  Now, you still see
12307         the diagnostic from cat, but also get one from "git-version-gen: ".
12308         Inspired by a patch from Bruce Korb.
12309
12310         update-copyright: adjust test to match changed code
12311         * tests/test-update-copyright.sh: Change test's expected output
12312         to match new actual output.
12313
12314 2011-01-02  Bruno Haible  <bruno@clisp.org>
12315
12316         getlogin_r: Avoid test failure on HP-UX 11.
12317         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
12318         ERANGE when the second argument is zero.
12319         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
12320         portability problem.
12321
12322 2011-01-02  Bruce Korb  <bkorb@gnu.org>
12323
12324         * build-aux/update-copyright: doc Simon's changes
12325
12326 2011-01-02  Simon Josefsson  <simon@josefsson.org>
12327
12328         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
12329         environment variable.
12330
12331 2011-01-02  Bruno Haible  <bruno@clisp.org>
12332
12333         unigbrk: Avoid gcc warnings.
12334         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
12335         unused variable.
12336         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
12337         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
12338         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
12339         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
12340         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
12341         Change type of first argument to 'const char *'.
12342         (main): Remove unused variable.
12343         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
12344         type of first argument to 'const char *'.
12345         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
12346         Likewise.
12347         (main): Change type of variable 's'.
12348         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
12349         to 'int'.
12350
12351 2011-01-02  Bruno Haible  <bruno@clisp.org>
12352
12353         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
12354         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
12355         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
12356         bug.
12357         * lib/pwrite.c: Undo 2010-12-31 patch.
12358         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
12359
12360 2011-01-02  Bruno Haible  <bruno@clisp.org>
12361
12362         pread: Fix test whether it works.
12363         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
12364
12365 2011-01-02  Bruno Haible  <bruno@clisp.org>
12366
12367         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
12368         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
12369         ends in "6". Don't require a specific month name. Try also the locale
12370         names found on HP-UX 11 and Solaris 7.
12371
12372 2011-01-02  Bruno Haible  <bruno@clisp.org>
12373
12374         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
12375         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
12376         C linkage.
12377         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
12378
12379 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
12380
12381         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
12382         for consistency, since the "cluster" term is not used elsewhere.
12383         * lib/unigbrk.in.h: Update name.
12384         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
12385         * lib/unigbrk/u16-grapheme-next.c: Update name.
12386         * lib/unigbrk/u16-grapheme-prev.c: Update name.
12387         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
12388         * lib/unigbrk/u32-grapheme-next.c: Update name.
12389         * lib/unigbrk/u32-grapheme-prev.c: Update name.
12390         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
12391         * lib/unigbrk/u8-grapheme-next.c: Update name.
12392         * lib/unigbrk/u8-grapheme-prev.c: Update name.
12393         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
12394         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
12395         Suggested by Bruno Haible.
12396
12397 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
12398
12399         Remove module 'u8-grapheme-len' as too redundant with
12400         'u8-grapheme-next'.
12401         * modules/unigbrk/u8-grapheme-len: Delete file.
12402         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
12403         * lib/unigbrk.in.h: Remove prototype for deleted function.
12404         * lib/unigbrk/u8-grapheme-len.c: Delete file.
12405         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
12406
12407         Remove module 'u16-grapheme-len' as too redundant with
12408         'u16-grapheme-next'.
12409         * modules/unigbrk/u16-grapheme-len: Delete file.
12410         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
12411         * lib/unigbrk.in.h: Remove prototype for deleted function.
12412         * lib/unigbrk/u16-grapheme-len.c: Delete file.
12413         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
12414
12415         Remove module 'u32-grapheme-len' as too redundant with
12416         'u32-grapheme-next'.
12417         * modules/unigbrk/u32-grapheme-len: Delete file.
12418         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
12419         * lib/unigbrk.in.h: Remove prototype for deleted function.
12420         * lib/unigbrk/u32-grapheme-len.c: Delete file.
12421         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
12422
12423         Suggested by Bruno Haible.
12424
12425 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
12426
12427         * unigbrk.in.h: Fix typo: "ben" => "been".
12428         Reported by Bruno Haible.
12429
12430 2011-01-01  Jim Meyering  <meyering@redhat.com>
12431
12432         maint: update almost all copyright ranges to include 2011
12433         Run the new "make update-copyright" rule.
12434
12435 2011-01-01  Jim Meyering  <meyering@redhat.com>
12436
12437         maint: update-copyright: exempt doc/INSTALL*
12438         * Makefile (update-copyright): Also exclude doc/INSTALL*,
12439         since they are generated.  Suggested by Bruno Haible.
12440
12441 2011-01-01  Jim Meyering  <meyering@redhat.com>
12442
12443         maint: refine the update-copyright rule
12444         * Makefile (update-copyright): Also exclude any file that includes
12445         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
12446         code that merely generates the comment.
12447
12448 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
12449
12450         New module 'u8-grapheme-len'.
12451         * modules/unigbrk/u8-grapheme-len: New file.
12452         * modules/unigbrk/u8-grapheme-len-tests: New file.
12453         * lib/unigbrk.in.h: Add prototype for new function.
12454         * lib/unigbrk/u8-grapheme-len.c: New file.
12455         * tests/unigbrk/test-u8-grapheme-len.c: New file.
12456
12457         New module 'u16-grapheme-len'.
12458         * modules/unigbrk/u16-grapheme-len: New file.
12459         * modules/unigbrk/u16-grapheme-len-tests: New file.
12460         * lib/unigbrk.in.h: Add prototype for new function.
12461         * lib/unigbrk/u16-grapheme-len.c: New file.
12462         * tests/unigbrk/test-u16-grapheme-len.c: New file.
12463
12464         New module 'u32-grapheme-len'.
12465         * modules/unigbrk/u32-grapheme-len: New file.
12466         * modules/unigbrk/u32-grapheme-len-tests: New file.
12467         * lib/unigbrk.in.h: Add prototype for new function.
12468         * lib/unigbrk/u32-grapheme-len.c: New file.
12469         * tests/unigbrk/test-u32-grapheme-len.c: New file.
12470
12471         New module 'u8-grapheme-next'.
12472         * modules/unigbrk/u8-grapheme-next: New file.
12473         * modules/unigbrk/u8-grapheme-next-tests: New file.
12474         * lib/unigbrk.in.h: Add prototype for new function.
12475         * lib/unigbrk/u8-grapheme-next.c: New file.
12476         * tests/unigbrk/test-u8-grapheme-next.c: New file.
12477
12478         New module 'u16-grapheme-next'.
12479         * modules/unigbrk/u16-grapheme-next: New file.
12480         * modules/unigbrk/u16-grapheme-next-tests: New file.
12481         * lib/unigbrk.in.h: Add prototype for new function.
12482         * lib/unigbrk/u16-grapheme-next.c: New file.
12483         * tests/unigbrk/test-u16-grapheme-next.c: New file.
12484
12485         New module 'u32-grapheme-next'.
12486         * modules/unigbrk/u32-grapheme-next: New file.
12487         * modules/unigbrk/u32-grapheme-next-tests: New file.
12488         * lib/unigbrk.in.h: Add prototype for new function.
12489         * lib/unigbrk/u32-grapheme-next.c: New file.
12490         * tests/unigbrk/test-u32-grapheme-next.c: New file.
12491
12492         New module 'u8-grapheme-prev'.
12493         * modules/unigbrk/u8-grapheme-prev: New file.
12494         * modules/unigbrk/u8-grapheme-prev-tests: New file.
12495         * lib/unigbrk.in.h: Add prototype for new function.
12496         * lib/unigbrk/u8-grapheme-prev.c: New file.
12497         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
12498
12499         New module 'u16-grapheme-prev'.
12500         * modules/unigbrk/u16-grapheme-prev: New file.
12501         * modules/unigbrk/u16-grapheme-prev-tests: New file.
12502         * lib/unigbrk.in.h: Add prototype for new function.
12503         * lib/unigbrk/u16-grapheme-prev.c: New file.
12504         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
12505
12506         New module 'u32-grapheme-prev'.
12507         * modules/unigbrk/u32-grapheme-prev: New file.
12508         * modules/unigbrk/u32-grapheme-prev-tests: New file.
12509         * lib/unigbrk.in.h: Add prototype for new function.
12510         * lib/unigbrk/u32-grapheme-prev.c: New file.
12511         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
12512
12513         New module 'u8-grapheme-breaks'.
12514         * modules/unigbrk/u8-grapheme-breaks: New file.
12515         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
12516         * lib/unigbrk.in.h: Add prototype for new function.
12517         * lib/unigbrk/u8-grapheme-breaks.c: New file.
12518         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
12519
12520         New module 'u16-grapheme-breaks'.
12521         * modules/unigbrk/u16-grapheme-breaks: New file.
12522         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
12523         * lib/unigbrk.in.h: Add prototype for new function.
12524         * lib/unigbrk/u16-grapheme-breaks.c: New file.
12525         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
12526
12527         New module 'u32-grapheme-breaks'.
12528         * modules/unigbrk/u32-grapheme-breaks: New file.
12529         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
12530         * lib/unigbrk.in.h: Add prototype for new function.
12531         * lib/unigbrk/u32-grapheme-breaks.c: New file.
12532         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
12533
12534         New module 'ulc-grapheme-breaks'.
12535         * modules/unigbrk/ulc-grapheme-breaks: New file.
12536         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
12537         * m4/locale-ar.m4: New file.
12538         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
12539         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
12540         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
12541
12542 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
12543
12544         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
12545         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
12546         modified how this file was generated before I initially submitted
12547         the module, but failed to regenerate it.  This meant that several
12548         of the level2 entries were wrong.
12549         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
12550         Remove the division-by-2 that is folded into the table now that
12551         gbrkprop.h has been regenerated properly.  Now -1 entries are
12552         handled correctly.
12553
12554         New module 'unigbrk/uc-gbrk-prop-tests'.
12555         * modules/unigbrk/uc-gbrk-prop-tests: New file.
12556         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
12557         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
12558         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
12559
12560 2011-01-01  Bruno Haible  <bruno@clisp.org>
12561
12562         Avoid use of hexadecimal escapes.
12563         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
12564         instead of hexadecimal escapes.
12565
12566 2011-01-01  Jim Meyering  <meyering@redhat.com>
12567
12568         maint: new rule to update copyright year ranges
12569         * Makefile (update-copyright): New rule.
12570
12571         maint: indent with TABs in Makefile
12572         * Makefile: Expand leading sequences of spaces to TABs
12573
12574         version-etc: update the copyright year it reports
12575         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
12576
12577 2010-12-31  Bruno Haible  <bruno@clisp.org>
12578
12579         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
12580         * lib/isfinite.c (zerof, zerod, zerol): New variables.
12581         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
12582         zero.
12583
12584 2010-12-31  Bruno Haible  <bruno@clisp.org>
12585
12586         pwrite: Work around HP-UX 11.11 bug.
12587         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
12588         works and set REPLACE_PWRITE if not.
12589         * lib/pwrite.c (pwrite): Add an implementation that uses the system
12590         function.
12591         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
12592
12593 2010-12-31  Bruno Haible  <bruno@clisp.org>
12594
12595         pread: Work around HP-UX 11 bugs.
12596         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
12597         and set REPLACE_PREAD if not.
12598         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
12599
12600 2010-12-31  Eric Blake  <eblake@redhat.com>
12601
12602         nl_langinfo: fix YESEXPR on Irix 6.5
12603         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
12604         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
12605         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
12606         it.
12607
12608 2010-12-31  Bruno Haible  <bruno@clisp.org>
12609
12610         iconv: Document HP-UX 11 bug.
12611         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
12612
12613 2010-12-31  Bruno Haible  <bruno@clisp.org>
12614
12615         ldexpl: Fix link error on HP-UX 11.
12616         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
12617         LDEXPL_LIBM, using $ISNANL_LIBM.
12618
12619 2010-12-31  Eric Blake  <eblake@redhat.com>
12620
12621         ftello: avoid compilation failure with SunStudio c89
12622         * lib/ftello.c (ftello): Use lseek, not llseek.
12623
12624         tests: avoid failing coreutils tests on cygwin
12625         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
12626         (create_exe_shims_): Return 0 when skipping.
12627
12628 2010-12-31  Bruno Haible  <bruno@clisp.org>
12629
12630         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
12631         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
12632
12633 2010-12-31  Bruno Haible  <bruno@clisp.org>
12634
12635         waitpid: Fix link error in C++ mode.
12636         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
12637
12638 2010-12-31  Bruno Haible  <bruno@clisp.org>
12639
12640         isnan: Use GCC built-ins when possible.
12641         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
12642         __builtin_isnan.
12643         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
12644         (isnan): Define using GCC built-ins for GCC >= 4.0.
12645
12646 2010-12-31  Bruno Haible  <bruno@clisp.org>
12647
12648         isnand: Fix mistake.
12649         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
12650         __builtin_isnand.
12651
12652 2010-12-31  Bruno Haible  <bruno@clisp.org>
12653
12654         open: Avoid C++ error on HP-UX 11.
12655         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
12656
12657 2010-12-31  Bruno Haible  <bruno@clisp.org>
12658
12659         time_r: Add missing declarations on HP-UX 11.
12660         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
12661         instead of HAVE_LOCALTIME_R.
12662         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
12663         HAVE_LOCALTIME_R always.
12664         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
12665         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
12666         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
12667         HAVE_LOCALTIME_R.
12668         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
12669         * doc/posix-functions/localtime_r.texi: Likewise.
12670
12671 2010-12-29  Eric Blake  <eblake@redhat.com>
12672
12673         mountlist: tweak previous commit
12674         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
12675         Reported by Paul Eggert.
12676
12677         mountlist: fix local drive detection on cygwin
12678         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
12679         that works for cygwin.
12680
12681 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
12682
12683         ftoastr, snprintf: ftoastr + snprintf module
12684         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
12685         since the snprintf module now should be good enough here.
12686         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
12687         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
12688         and gl_MODULE_INDICATOR([snprintf]), but the former enables
12689         GNULIB_SNPRINTF only for the test directory, and the latter
12690         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
12691         seems to suffice by itself.
12692
12693 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
12694
12695         alloca: one step towards thread-safety
12696         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
12697         need for a static variable.  All callers changed.  This does not
12698         make the alloca replacement thread-safe, but it's one step.
12699
12700         tests: minor indenting change
12701         * tests/init.sh: Sync from coreutils housekeeping patch
12702         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
12703         to keep lines within 80 columns.
12704
12705 2010-12-28  Jim Meyering  <meyering@redhat.com>
12706
12707         regex: don't infloop on persistent failing calloc
12708         * lib/regexec.c (build_trtable): Return failure indication upon
12709         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
12710         In glibc, this was fixed for version 2.13:
12711         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
12712
12713 2010-12-28  Bruno Haible  <bruno@clisp.org>
12714             Paul Eggert <eggert@cs.ucla.edu>
12715
12716         linkat: Make implementation robust against system behaviour variations.
12717         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
12718         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
12719         way, and to -2 if it needs a generic runtime test.
12720         * lib/linkat.c (solaris_optimized_link_immediate,
12721         solaris_optimized_link_follow): New functions.
12722         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
12723         (check_same_link): Use it.
12724
12725 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
12726
12727         New module 'unigbrk/base'.
12728         * modules/unigbrk/base: New file.
12729         * lib/unigbrk.in.h: New file.
12730
12731         New module 'unigbrk/uc-gbrk-prop'.
12732         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
12733         * modules/unigbrk/uc-gbrk-prop: New file.
12734         * lib/unigbrk/gbrkprop.h: New file.
12735         * lib/unigbrk/uc-gbrk-prop.c: New file.
12736
12737         New module 'unigbrk/uc-is-grapheme-break'.
12738         * modules/unigbrk/uc-is-grapheme-break: New file.
12739         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
12740         * lib/unigbrk/uc-is-grapheme-break.c: New file.
12741         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
12742         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
12743         * tests/unigbrk/GraphemeBreakTest.txt: New file.
12744
12745         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
12746
12747 2010-12-27  Bruno Haible  <bruno@clisp.org>
12748
12749         linkat test: Avoid failure on Solaris 11 2010-11.
12750         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
12751
12752 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
12753
12754         utimens: work around glibc rounding bug on more platforms
12755         * lib/utimens.c (fdutimens): Work around rounding bug even if
12756         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
12757         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
12758
12759 2010-12-27  Bruno Haible  <bruno@clisp.org>
12760
12761         select tests: Improve comments.
12762         * tests/test-select.c (do_select): Add comments.
12763
12764 2010-12-27  Bruno Haible  <bruno@clisp.org>
12765
12766         select tests: Safer way of handling timeout.
12767         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
12768         at every invocation.
12769
12770 2010-12-27  Bruno Haible  <bruno@clisp.org>
12771
12772         select tests: Use 'bool' where appropriate.
12773         * tests/test-select.c (connect_to_socket): Change argument type to
12774         'bool'.
12775
12776 2010-12-27  Bruno Haible  <bruno@clisp.org>
12777
12778         select tests: Use existing modules.
12779         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
12780         (configure.ac): Don't test for unistd.h.
12781         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
12782         declared in <unistd.h>.
12783
12784 2010-12-27  Bruno Haible  <bruno@clisp.org>
12785
12786         mbrtowc: Work around a Solaris 7 bug.
12787         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
12788         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
12789         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
12790         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
12791         MBRTOWC_NULL_ARG1_BUG.
12792         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
12793         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
12794         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
12795         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
12796
12797 2010-12-27  Jim Meyering  <meyering@redhat.com>
12798
12799         read-file.c: tweak syntax
12800         * lib/read-file.c (fread_file): Remove space after "*" in function
12801         definitions.
12802
12803 2010-12-27  Bruno Haible  <bruno@clisp.org>
12804
12805         times test: Avoid gcc warnings on OSF/1.
12806         * tests/test-times.c (main): Cast printf arguments from clock_t to
12807         'long int'.
12808
12809 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
12810
12811         utimens: work around glibc rounding bug on older Linux kernels
12812         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
12813         on Linux with a glibc whose utimes might not work, then work
12814         around a longstanding glibc bug involving rounding rather than
12815         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
12816         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
12817
12818 2010-12-26  Bruno Haible  <bruno@clisp.org>
12819
12820         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
12821         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
12822         _GL_CXXALIAS_SYS.
12823         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
12824
12825 2010-12-26  Bruno Haible  <bruno@clisp.org>
12826
12827         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
12828         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
12829         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
12830         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
12831         looking for the declaration.
12832         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
12833         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
12834         problem.
12835         * doc/posix-functions/inet_pton.texi: Likewise.
12836
12837 2010-12-26  Bruno Haible  <bruno@clisp.org>
12838
12839         arpa_inet: Use the common idioms with C++ support.
12840         * lib/arpa_inet.in.h: Include c++defs.h.
12841         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
12842         support.
12843         * modules/arpa_inet (Depends-on): Add c++defs.
12844         (Makefile.am): Substitute the contents of c++defs.h.
12845         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
12846         * modules/arpa_inet-c++-tests: New file.
12847         * tests/test-arpa_inet-c++.cc: New file.
12848
12849 2010-12-25  Bruno Haible  <bruno@clisp.org>
12850
12851         Fix more C++ link errors on Solaris 8.
12852         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
12853         $(LIB_EACCESS).
12854         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
12855         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
12856         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
12857         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
12858         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
12859
12860 2010-12-25  Bruno Haible  <bruno@clisp.org>
12861
12862         printf-posix: Fix link error when a non-GCC compiler is used.
12863         * lib/stdio.in.h (printf): When not using GCC, override printf
12864         correctly.
12865         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
12866
12867 2010-12-25  Bruno Haible  <bruno@clisp.org>
12868
12869         strerror_r-posix: Update doc.
12870         * doc/posix-functions/strerror_r.texi: Update doc about the return
12871         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
12872
12873 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
12874
12875         utimens: simplify the logic of the previous change
12876         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
12877         This should not affect whether the test succeeds or fails.
12878
12879         utimens: configure better on hosts with NFS clock skew
12880         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
12881         uses the clock of the local host.  It might use the clock of the
12882         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
12883         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
12884
12885 2010-12-25  Bruno Haible  <bruno@clisp.org>
12886
12887         ptsname test: Avoid failure on Solaris.
12888         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
12889         open a pseudo-terminal; don't use BSD-style ptys.
12890         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
12891
12892 2010-12-25  Bruno Haible  <bruno@clisp.org>
12893
12894         ptsname: Avoid ERANGE failure on some systems.
12895         * lib/ptsname.c (buffer): Increase size.
12896
12897 2010-12-25  Bruno Haible  <bruno@clisp.org>
12898
12899         rename, renameat: Avoid test failures at NFS mounted locations.
12900         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
12901         so that subsequent mkdir calls succeed.
12902
12903 2010-12-25  Bruno Haible  <bruno@clisp.org>
12904
12905         iswblank: Fix C++ link error on Solaris 8.
12906         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
12907         _GL_FUNCDECL_SYS.
12908
12909 2010-12-25  Bruno Haible  <bruno@clisp.org>
12910
12911         unistd: Fix C++ link error on Solaris 8.
12912         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
12913
12914 2010-12-25  Bruno Haible  <bruno@clisp.org>
12915
12916         readlink doc: Mention an old glibc bug.
12917         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
12918
12919 2010-12-25  Bruno Haible  <bruno@clisp.org>
12920
12921         fcntl-h: Fix for use of C++ on glibc systems.
12922         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
12923         also on glibc systems in C++ mode.
12924         Reported by Gary V. Vaughan <gary@gnu.org>.
12925
12926 2010-12-25  Bruno Haible  <bruno@clisp.org>
12927
12928         roundl-ieee: Make it work on OSF/1 5.1 with cc.
12929         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
12930
12931 2010-12-25  Bruno Haible  <bruno@clisp.org>
12932
12933         truncl-ieee: Make it work on OSF/1 5.1 with cc.
12934         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
12935         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
12936         test whether truncl works according to ISO C 99 with IEC 60559.
12937         * m4/truncl-ieee.m4: New file.
12938         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
12939         m4/signbit.m4.
12940         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
12941
12942 2010-12-25  Bruno Haible  <bruno@clisp.org>
12943
12944         ceill-ieee: Make it work on OSF/1 5.1 with cc.
12945         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
12946         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
12947         test whether ceill works according to ISO C 99 with IEC 60559.
12948         * m4/ceill-ieee.m4: New file.
12949         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
12950         m4/signbit.m4.
12951         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
12952
12953 2010-12-25  Bruno Haible  <bruno@clisp.org>
12954
12955         Ensure all prerequisites of <wchar.h> are included.
12956         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
12957         before <wchar.h>.
12958         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
12959         gl_MBRLEN_NUL_RETVAL): Likewise.
12960         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
12961         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
12962         AC_FUNC_MBRTOWC): Likewise.
12963         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
12964         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
12965         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
12966         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
12967         Likewise.
12968         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
12969         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
12970         (gl_WCHAR_H): Improve comments.
12971         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
12972
12973 2010-12-25  Bruno Haible  <bruno@clisp.org>
12974
12975         strtok_r: Fix C syntax error in autoconf macro.
12976         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
12977         characters in test program.
12978
12979 2010-12-24  Bruno Haible  <bruno@clisp.org>
12980
12981         ceil, trunc, round: Fix gcc warnings.
12982         * lib/ceil.c (MIN): Undefine before redefining.
12983         * lib/trunc.c (MIN): Likewise.
12984         * lib/round.c (MIN): Likewise.
12985         Include <math.h> first.
12986
12987 2010-12-24  Bruno Haible  <bruno@clisp.org>
12988
12989         select tests: Avoid failures on OSF/1 5.1.
12990         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
12991         failure of closing the last socket; it may fail with ECONNRESET.
12992
12993 2010-12-24  Eric Blake  <eblake@redhat.com>
12994
12995         stdint: avoid HP-UX 10.20 preprocessor bug
12996         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
12997         than #if.
12998         * tests/test-floor2.c (main): Likewise.
12999         Reported by Peter O'Gorman.
13000
13001         pipe: make obsoletion transition easier
13002         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
13003         * modules/pipe (Files): Include revived file.
13004         (Include): Drop reference, to mirror getdate's behavior.
13005
13006 2010-12-24  Bruno Haible  <bruno@clisp.org>
13007
13008         sys_socket: Hide mismatch of declarations on NonStop Kernel.
13009         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
13010         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
13011         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13012
13013 2010-12-24  Bruno Haible  <bruno@clisp.org>
13014
13015         gethostname: Ensure declaration on NonStop Kernel.
13016         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
13017         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13018
13019 2010-12-24  Bruno Haible  <bruno@clisp.org>
13020
13021         sys_select: Ensure all necessary types on NonStop Kernel.
13022         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
13023         include <sys/time.h>.
13024         * doc/posix-headers/sys_select.texi: Mention that it's missing on
13025         NonStop Kernel.
13026         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13027
13028 2010-12-24  Bruno Haible  <bruno@clisp.org>
13029
13030         sys_select: Remove unneeded include.
13031         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
13032         have <sys/select.h>.
13033
13034 2010-12-24  Bruno Haible  <bruno@clisp.org>
13035
13036         gethostname: Provide a fallback for HOST_NAME_MAX.
13037         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
13038         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
13039         instead.
13040         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13041
13042 2010-12-24  Bruno Haible  <bruno@clisp.org>
13043
13044         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
13045         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
13046         (SA_RESTART): Likewise.
13047         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13048
13049 2010-12-24  Bruno Haible  <bruno@clisp.org>
13050
13051         signal: Define NSIG.
13052         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
13053         * tests/test-signal.c (nsig): New variable.
13054         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13055
13056 2010-12-24  Bruno Haible  <bruno@clisp.org>
13057
13058         rename, renameat: Avoid test failures on OSF/1 5.1.
13059         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
13060         alternative error codes.
13061         * tests/test-renameat.c (main): Likewise.
13062
13063 2010-12-24  Bruno Haible  <bruno@clisp.org>
13064
13065         *printf: Detect large precisions bug on Solaris 10/SPARC.
13066         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
13067         by Paul Eggert.
13068         * tests/test-snprintf-posix.h (test_function): Add this test code here
13069         too.
13070         * tests/test-sprintf-posix.h (test_function): Likewise.
13071         * tests/test-vasnprintf-posix.c (test_function): Likewise.
13072         * tests/test-vasprintf-posix.c (test_function): Likewise.
13073         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
13074         around by gnulib.
13075         * doc/posix-functions/printf.texi: Likewise.
13076         * doc/posix-functions/snprintf.texi: Likewise.
13077         * doc/posix-functions/sprintf.texi: Likewise.
13078         * doc/posix-functions/vfprintf.texi: Likewise.
13079         * doc/posix-functions/vprintf.texi: Likewise.
13080         * doc/posix-functions/vsnprintf.texi: Likewise.
13081         * doc/posix-functions/vsprintf.texi: Likewise.
13082         * doc/posix-functions/dprintf.texi: Undo last commit.
13083         * doc/posix-functions/vdprintf.texi: Likewise.
13084
13085 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
13086
13087         tests: port test-fdutimensat.c to Solaris 8
13088         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
13089         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
13090         On Solaris 8, it fails with errno == ENOSYS, because there is no
13091         futimens (so it can't use the fd), and there is no lutimens (so it
13092         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
13093
13094         vsnprintf: make more consistent with snprintf; doc fixes
13095
13096         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
13097         the byte count return problem was promoted from the snprintf-posix
13098         to the snprintf module.
13099         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
13100         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
13101         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
13102         * tests/test-snprintf.c (main): Check the byte count returned.
13103         * tests/test-vsnprintf.c (main): Likewise.
13104
13105 2010-12-23  Eric Blake  <eblake@redhat.com>
13106
13107         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
13108         * modules/sigpipe (License): Relax license.
13109
13110 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
13111
13112         doc: document Solaris printf bug with large float precisions
13113         * doc/posix-functions/dprintf.texi (dprintf):
13114         * doc/posix-functions/fprintf.texi (fprintf):
13115         * doc/posix-functions/printf.texi (printf):
13116         * doc/posix-functions/snprintf.texi (snprintf):
13117         * doc/posix-functions/sprintf.texi (sprintf):
13118         * doc/posix-functions/vdprintf.texi (vdprintf):
13119         * doc/posix-functions/vfprintf.texi (vfprintf):
13120         * doc/posix-functions/vprintf.texi (vprintf):
13121         * doc/posix-functions/vsnprintf.texi (vsnprintf):
13122         * doc/posix-functions/vsprintf.texi (vsprintf):
13123         Mention that these functions mishandle large floating point
13124         precisions on Solaris 10.  The same bug is also present in Solaris
13125         8, and I assume earlier.  This causes "cd gnulib-tests; make
13126         check" to fail on Solaris 8 (and I assume, later) when building
13127         the latest coreutils, in test-vasprintf-posix's call to
13128         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
13129         the wide flavors (e.g., wprintf) so this patch just updates the
13130         documentation for the narrow ones.
13131
13132         test-posixtm.c: add two tests
13133         * tests/test-posixtm.c: Add two tests, to highlight the
13134         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
13135         around this bug; this is merely to document it.
13136
13137 2010-12-22  Bruno Haible  <bruno@clisp.org>
13138
13139         getlogin_r: Work around portability problem on OSF/1.
13140         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
13141         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
13142         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
13143         test for a truncated result.
13144         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
13145         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
13146         * modules/getlogin_r (Depends-on): Add memchr.
13147         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
13148
13149 2010-12-22  Bruno Haible  <bruno@clisp.org>
13150
13151         ptsname: Avoid test failure on OSF/1 5.1.
13152         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
13153         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
13154         (same_slave): New function.
13155         (main): Use it to compare ptsname's result with the expected file name.
13156
13157 2010-12-22  Bruno Haible  <bruno@clisp.org>
13158
13159         Port extended stdio modules to HP NonStop Kernel.
13160         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
13161         macros.
13162         * lib/fbufmode.c: Update comments.
13163         * lib/fflush.c: Likewise.
13164         * lib/fpurge.c: Likewise.
13165         * lib/freadable.c: Likewise.
13166         * lib/freadahead.c: Likewise.
13167         * lib/freading.c: Likewise.
13168         * lib/freadptr.c: Likewise.
13169         * lib/freadseek.c: Likewise.
13170         * lib/fseeko.c: Likewise.
13171         * lib/fseterr.c: Likewise.
13172         * lib/fwritable.c: Likewise.
13173         * lib/fwriting.c: Likewise.
13174         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13175
13176 2010-12-22  Bruno Haible  <bruno@clisp.org>
13177
13178         ttyname_r: Work around bug on OSF/1 5.1.
13179         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
13180         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
13181         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
13182         present.
13183         * lib/ttyname_r.c (ttyname_r): Update comments.
13184
13185 2010-12-22  Bruno Haible  <bruno@clisp.org>
13186
13187         round: Implement result sign according to IEEE 754.
13188         * lib/round.c (MIN, MINUS_ZERO): New macros.
13189         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
13190         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
13191         * tests/test-round-ieee.c (main): Likewise.
13192         * tests/test-roundl-ieee.c (main): Likewise.
13193
13194         trunc: Implement result sign according to IEEE 754.
13195         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
13196         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
13197         * tests/test-trunc2.c: Include minus-zero.h.
13198         (MINUS_ZERO): New macro.
13199         (trunc_reference): Keep in sync with lib/trunc.c.
13200         * tests/test-truncf2.c: Include minus-zero.h.
13201         (MINUS_ZERO): New macro.
13202         (truncf_reference): Keep in sync with lib/trunc.c.
13203         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
13204         * tests/test-trunc-ieee.c (main): Likewise.
13205         * tests/test-truncl-ieee.c (main): Likewise.
13206
13207         ceil: Implement result sign according to IEEE 754.
13208         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
13209         (FUNC): Return -0.0 for -1 < x < 0.
13210         * tests/test-ceil2.c: Include minus-zero.h.
13211         (MINUS_ZERO): New macro.
13212         (ceil_reference): Keep in sync with lib/ceil.c.
13213         * tests/test-ceilf2.c: Include minus-zero.h.
13214         (MINUS_ZERO): New macro.
13215         (ceilf_reference): Keep in sync with lib/ceil.c.
13216         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
13217         * tests/test-ceil-ieee.c (main): Likewise.
13218         * tests/test-ceill-ieee.c (main): Likewise.
13219
13220         floor: Implement result sign according to IEEE 754.
13221         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
13222         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
13223         * tests/test-floorf2.c (floorf_reference): Likewise.
13224         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
13225         * tests/test-floor-ieee.c (main): Likewise.
13226         * tests/test-floorl-ieee.c (main): Likewise.
13227
13228 2010-12-22  Bruno Haible  <bruno@clisp.org>
13229
13230         getaddrinfo: Update doc.
13231         * doc/posix-functions/gai_strerror.texi: Return type is also different
13232         on AIX and HP-UX.
13233
13234 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
13235
13236         getaddrinfo, inet_ntop: Update doc for Solaris.
13237         * doc/posix-functions/gai_strerror.texi: Return type is also an
13238         issue on Solaris 9 and earlier.
13239         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
13240         on Solaris 10 and earlier.
13241
13242 2010-12-21  Bruno Haible  <bruno@clisp.org>
13243
13244         New module 'roundl-ieee'.
13245         * modules/roundl-ieee: New file.
13246         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
13247         test whether roundl works according to ISO C 99 with IEC 60559.
13248         * m4/roundl-ieee.m4: New file.
13249         * modules/roundl-ieee-tests: New file.
13250         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
13251         * tests/test-roundl.c (main): Remove signbit tests.
13252         * modules/roundl-tests (Depends-on): Remove signbit.
13253         * doc/posix-functions/roundl.texi: Mention the new module.
13254
13255 2010-12-21  Bruno Haible  <bruno@clisp.org>
13256
13257         New module 'truncl-ieee'.
13258         * modules/truncl-ieee: New file.
13259         * modules/truncl-ieee-tests: New file.
13260         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
13261         * tests/test-truncl.c (main): Remove signbit tests.
13262         * modules/truncl-tests (Depends-on): Remove signbit.
13263         * doc/posix-functions/truncl.texi: Mention the new module.
13264
13265 2010-12-21  Bruno Haible  <bruno@clisp.org>
13266
13267         New module 'ceill-ieee'.
13268         * modules/ceill-ieee: New file.
13269         * modules/ceill-ieee-tests: New file.
13270         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
13271         * tests/test-ceill.c (main): Remove signbit tests.
13272         * modules/ceill-tests (Depends-on): Remove signbit.
13273         * doc/posix-functions/ceill.texi: Mention the new module.
13274
13275 2010-12-21  Bruno Haible  <bruno@clisp.org>
13276
13277         New module 'floorl-ieee'.
13278         * modules/floorl-ieee: New file.
13279         * modules/floorl-ieee-tests: New file.
13280         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
13281         * tests/test-floorl.c (main): Remove signbit tests.
13282         * modules/floorl-tests (Depends-on): Remove signbit.
13283         * doc/posix-functions/floorl.texi: Mention the new module.
13284
13285 2010-12-21  Bruno Haible  <bruno@clisp.org>
13286
13287         New module 'round-ieee'.
13288         * modules/round-ieee: New file.
13289         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
13290         whether round works according to ISO C 99 with IEC 60559.
13291         * m4/round-ieee.m4: New file.
13292         * modules/round-ieee-tests: New file.
13293         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
13294         * tests/test-round1.c (main): Remove signbit tests.
13295         * modules/round-tests (Depends-on): Remove 'signbit'.
13296         * doc/posix-functions/round.texi: Mention the new module.
13297
13298 2010-12-21  Bruno Haible  <bruno@clisp.org>
13299
13300         New module 'trunc-ieee'.
13301         * modules/trunc-ieee: New file.
13302         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
13303         whether trunc works according to ISO C 99 with IEC 60559.
13304         * m4/trunc-ieee.m4: New file.
13305         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
13306         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
13307         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
13308         * modules/trunc-ieee-tests: New file.
13309         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
13310         * tests/test-trunc1.c (main): Remove signbit tests.
13311         * modules/trunc-tests (Depends-on): Remove 'signbit'.
13312         * doc/posix-functions/trunc.texi: Mention the new module.
13313
13314 2010-12-21  Bruno Haible  <bruno@clisp.org>
13315
13316         New module 'ceil-ieee'.
13317         * modules/ceil-ieee: New file.
13318         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
13319         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
13320         ISO C 99 with IEC 60559.
13321         * m4/ceil-ieee.m4: New file.
13322         * modules/ceil (Files): Add lib/ceil.c.
13323         (Depends-on): Add 'float'.
13324         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
13325         * lib/math.in.h (ceil): New declaration.
13326         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
13327         REPLACE_CEIL.
13328         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
13329         * modules/ceil-ieee-tests: New file.
13330         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
13331         * tests/test-math-c++.cc: Check the signature of 'ceil'.
13332         * doc/posix-functions/ceil.texi: Mention the new module.
13333
13334 2010-12-21  Bruno Haible  <bruno@clisp.org>
13335
13336         New module 'floor-ieee'.
13337         * modules/floor-ieee: New file.
13338         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
13339         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
13340         ISO C 99 with IEC 60559.
13341         * m4/floor-ieee.m4: New file.
13342         * modules/floor (Files): Add lib/floor.c.
13343         (Depends-on): Add 'float'.
13344         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
13345         * lib/math.in.h (floor): New declaration.
13346         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
13347         REPLACE_FLOOR.
13348         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
13349         * modules/floor-ieee-tests: New file.
13350         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
13351         * tests/test-math-c++.cc: Check the signature of 'floor'.
13352         * doc/posix-functions/floor.texi: Mention the new module.
13353
13354 2010-12-21  Bruno Haible  <bruno@clisp.org>
13355
13356         New module 'roundf-ieee'.
13357         * modules/roundf-ieee: New file.
13358         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
13359         test whether roundf works according to ISO C 99 with IEC 60559.
13360         * m4/roundf-ieee.m4: New file.
13361         * modules/roundf-ieee-tests: New file.
13362         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
13363         * tests/test-roundf1.c (main): Remove signbit tests.
13364         * modules/roundf-tests (Depends-on): Remove 'signbit'.
13365         * doc/posix-functions/roundf.texi: Mention the new module.
13366
13367 2010-12-21  Bruno Haible  <bruno@clisp.org>
13368
13369         New module 'truncf-ieee'.
13370         * modules/truncf-ieee: New file.
13371         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
13372         test whether truncf works according to ISO C 99 with IEC 60559.
13373         * m4/truncf-ieee.m4: New file.
13374         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
13375         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
13376         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
13377         * modules/truncf-ieee-tests: New file.
13378         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
13379         * tests/test-truncf1.c (main): Remove signbit tests.
13380         * modules/truncf-tests (Depends-on): Remove 'signbit'.
13381         * doc/posix-functions/truncf.texi: Mention the new module.
13382
13383 2010-12-21  Bruno Haible  <bruno@clisp.org>
13384
13385         New module 'ceilf-ieee'.
13386         * modules/ceilf-ieee: New file.
13387         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
13388         test whether ceilf works according to ISO C 99 with IEC 60559.
13389         * m4/ceilf-ieee.m4: New file.
13390         * modules/ceilf-ieee-tests: New file.
13391         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
13392         * tests/test-ceilf1.c (main): Remove signbit tests.
13393         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
13394         * doc/posix-functions/ceilf.texi: Mention the new module.
13395
13396 2010-12-21  Bruno Haible  <bruno@clisp.org>
13397
13398         New module 'floorf-ieee'.
13399         * modules/floorf-ieee: New file.
13400         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
13401         test whether floorf works according to ISO C 99 with IEC 60559.
13402         * m4/floorf-ieee.m4: New file.
13403         * modules/floorf-ieee-tests: New file.
13404         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
13405         * tests/test-floorf1.c (main): Remove signbit tests.
13406         * modules/floorf-tests (Depends-on): Remove 'signbit'.
13407         * doc/posix-functions/floorf.texi: Mention the new module.
13408
13409 2010-12-21  Bruno Haible  <bruno@clisp.org>
13410
13411         Support for minus zero in autoconf macros.
13412         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
13413         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
13414         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
13415         * tests/minus-zero.h: Update comments.
13416
13417 2010-12-21  Bruno Haible  <bruno@clisp.org>
13418
13419         Tests for module 'ceil'.
13420         * modules/ceil-tests: New file.
13421         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
13422         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
13423
13424 2010-12-21  Bruno Haible  <bruno@clisp.org>
13425
13426         Tests for module 'floor'.
13427         * modules/floor-tests: New file.
13428         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
13429         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
13430
13431 2010-12-21  Bruno Haible  <bruno@clisp.org>
13432
13433         math: Fix indentation.
13434         * lib/math.in.h (floorf): Fix indentation.
13435
13436 2010-12-21  Bruno Haible  <bruno@clisp.org>
13437
13438         Fix cross-compilation guesses on Solaris.
13439         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
13440         not match "solaris2.10".
13441         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
13442         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
13443         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
13444
13445 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
13446
13447         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
13448         This fixes a problem observed with the latest coreutils snapshot
13449         that caused a test to fail on Solaris 8.  src/csplit.c's call
13450         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
13451         earlier, instead of returning the number of bytes that would have
13452         been generated; this causes csplit to incorrectly report memory
13453         exhaustion.
13454         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
13455         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
13456         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
13457         comments to match.
13458         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
13459         Fix typo in matching older versions of Solaris: "solaris2.10"
13460         is matched by the shell pattern "solaris2.[0-9]*".  This matters
13461         only for guessing while cross-compiling.
13462         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
13463
13464 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
13465
13466         ftoastr: fix comment again
13467         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
13468         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
13469         Also, simplify example a bit by using flags = 0.
13470
13471 2010-12-20  Bruno Haible  <bruno@clisp.org>
13472
13473         round*, trunc*: Update documentation regarding glibc.
13474         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
13475         * doc/posix-functions/round.texi: Likewise.
13476         * doc/posix-functions/roundl.texi: Likewise.
13477         * doc/posix-functions/truncf.texi: Likewise.
13478         * doc/posix-functions/trunc.texi: Likewise.
13479         * doc/posix-functions/truncl.texi: Likewise.
13480
13481 2010-12-20  Bruno Haible  <bruno@clisp.org>
13482
13483         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
13484         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
13485         * doc/posix-functions/round.texi: Likewise.
13486         * doc/posix-functions/roundl.texi: Likewise.
13487
13488 2010-12-20  Bruno Haible  <bruno@clisp.org>
13489
13490         ttyname_r: Add missing declaration on HP-UX 11.
13491         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
13492         HAVE_TTYNAME_R.
13493         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
13494         declared. Set HAVE_TTYNAME_R always.
13495         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
13496         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
13497         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
13498         HAVE_TTYNAME_R.
13499         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
13500
13501 2010-12-20  Bruno Haible  <bruno@clisp.org>
13502
13503         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
13504         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
13505         * doc/posix-functions/getlogin_r.texi: Likewise.
13506         * tests/test-getlogin.c: Include <errno.h>.
13507         (main): Avoid test failure on HP-UX 11.11.
13508         * tests/test-getlogin_r.c (main): Likewise.
13509
13510 2010-12-20  Bruno Haible  <bruno@clisp.org>
13511
13512         getlogin_r: Add missing declaration on HP-UX 11.
13513         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
13514         declared also when it exists as a function.
13515         * doc/posix-functions/getlogin_r.texi: Document this workaround.
13516
13517 2010-12-20  Bruno Haible  <bruno@clisp.org>
13518
13519         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
13520         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
13521         through wcrtomb.
13522
13523 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
13524
13525         ftoastr: fix comment
13526         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
13527         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
13528
13529 2010-12-19  Bruno Haible  <bruno@clisp.org>
13530
13531         isnan: Ensure it is a macro.
13532         * lib/math.in.h (isnan): Define as a macro if not already a macro.
13533         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
13534         Solaris.
13535
13536 2010-12-19  Bruno Haible  <bruno@clisp.org>
13537
13538         ldexpl test: Fix link error on OSF/1 5.1.
13539         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
13540
13541 2010-12-19  Bruno Haible  <bruno@clisp.org>
13542
13543         wctype: Make it work in C++ mode on OSF/1 5.1.
13544         * lib/wctype.in.h (iswblank): Declare but not define here.
13545         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
13546         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
13547         * modules/wctype (Files): Add lib/iswblank.c.
13548
13549 2010-12-19  Bruno Haible  <bruno@clisp.org>
13550
13551         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
13552         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
13553         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
13554
13555 2010-12-19  Bruno Haible  <bruno@clisp.org>
13556
13557         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
13558         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
13559         _POSIX_PII_SOCKET.
13560         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
13561         * doc/posix-functions/recvfrom.texi: Likewise.
13562         * doc/posix-functions/send.texi: Likewise.
13563         * doc/posix-functions/sendto.texi: Likewise.
13564
13565 2010-12-19  Bruno Haible  <bruno@clisp.org>
13566
13567         tcgetsid: Add missing declaration on OSF/1 5.1.
13568         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
13569         HAVE_TCGETSID.
13570         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
13571         Don't set HAVE_TCGETSID.
13572         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
13573         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
13574         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
13575         HAVE_TCGETSID.
13576         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
13577
13578 2010-12-19  Bruno Haible  <bruno@clisp.org>
13579
13580         stdio: Fix problem with popen() declaration on OSF/1 5.1.
13581         * lib/stdio.in.h: During the include_next statement, let recursive
13582         includes of this file include only the system header file.
13583
13584 2010-12-19  Bruno Haible  <bruno@clisp.org>
13585
13586         iconv_open: Fix regression from 2010-12-04.
13587         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
13588         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
13589
13590 2010-12-19  Bruno Haible  <bruno@clisp.org>
13591
13592         stdbool test: Avoid a gcc warning.
13593         * tests/test-stdbool.c (main): Fail if e1 is false.
13594         Reported by Jim Meyering.
13595
13596 2010-12-19  Jim Meyering  <meyering@redhat.com>
13597
13598         setenv: restore to working order
13599         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
13600         mistakenly removed.
13601         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
13602         HAVE_SETENV.
13603         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
13604         HAVE_SETENV.
13605
13606 2010-12-19  Bruno Haible  <bruno@clisp.org>
13607
13608         Document some different function declarations on OSF/1 5.1.
13609         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
13610         * doc/posix-functions/inet_ntop.texi: Likewise.
13611         * doc/posix-functions/gethostname.texi: Likewise.
13612         * lib/unistd.in.h (gethostname): Update comment.
13613
13614 2010-12-19  Bruno Haible  <bruno@clisp.org>
13615
13616         doc: Mention vasprintf-posix module.
13617         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
13618         the 'vasprintf-posix' module.
13619         * doc/glibc-functions/vasprintf.texi: Likewise.
13620
13621 2010-12-19  Bruno Haible  <bruno@clisp.org>
13622
13623         unsetenv: Add missing declaration on OSF/1 5.1.
13624         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
13625         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
13626         Don't set HAVE_UNSETENV. In the test program, set _BSD.
13627         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
13628         not HAVE_UNSETENV.
13629         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
13630         HAVE_UNSETENV.
13631         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
13632
13633 2010-12-19  Bruno Haible  <bruno@clisp.org>
13634
13635         setenv: Add missing declaration on OSF/1 5.1.
13636         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
13637         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
13638         declared. Don't set HAVE_SETENV.
13639         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
13640         not HAVE_SETENV.
13641         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
13642         HAVE_SETENV.
13643         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
13644
13645 2010-12-19  Bruno Haible  <bruno@clisp.org>
13646
13647         nl_langinfo tests: Avoid gcc warning.
13648         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
13649
13650 2010-12-19  Bruno Haible  <bruno@clisp.org>
13651
13652         mknod: Avoid error in C++ mode on OSF/1 with GCC.
13653         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
13654         _GL_CXXALIAS_SYS.
13655
13656 2010-12-19  Bruno Haible  <bruno@clisp.org>
13657
13658         stdbool: Relax test.
13659         * tests/test-stdbool.c (e): Don't require that casts from a variable's
13660         address to 'bool' work in static initializer, for compilers other than
13661         GCC.
13662
13663 2010-12-19  Bruno Haible  <bruno@clisp.org>
13664
13665         ftello: Add missing declaration on OSF/1 5.1.
13666         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
13667         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
13668         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
13669         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
13670         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
13671
13672 2010-12-19  Bruno Haible  <bruno@clisp.org>
13673
13674         fseeko: Add missing declaration on OSF/1 5.1.
13675         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
13676         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
13677         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
13678         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
13679         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
13680
13681 2010-12-19  Bruno Haible  <bruno@clisp.org>
13682
13683         fchdir: Add missing declaration on OSF/1 5.1.
13684         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
13685         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
13686         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
13687         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
13688         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
13689
13690 2010-12-19  Bruno Haible  <bruno@clisp.org>
13691
13692         relocatable-prog-wrapper: Separate from relocatable-prog.
13693         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
13694         uninstall-relocwrapper rule here.
13695         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
13696         Reported by Ian Beckwith <ianb@erislabs.net>.
13697
13698 2010-12-19  Bruno Haible  <bruno@clisp.org>
13699
13700         unistr/u8-mbsnlen: Add missing dependency.
13701         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
13702         Reported by Ian Beckwith <ianb@erislabs.net>.
13703
13704 2010-12-19  Bruno Haible  <bruno@clisp.org>
13705
13706         iconv: Make it possible again to use this module without 'iconv-h'.
13707         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
13708         if it is not defined.
13709         Reported by Ian Beckwith <ianb@erislabs.net>.
13710
13711 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
13712
13713         acl: port to Solaris 8 when copying from tmpfs to ufs
13714         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
13715         error number.  Problem observed on Solaris 8 with latest
13716         coreutils, with "mv A B", where A is on a tmpfs file system and B
13717         is on a ufs file system.  This caused coreutils' mv/part-symlink
13718         test to fail.
13719
13720         tests: set fail=0 at start
13721         * tests/init.sh (setup_): Move fail=0 initialization here ...
13722         (mktempd_): ... from here, so that tests can rely on fail being
13723         set to 0 initially.  This fixes a problem in coreutils; see:
13724         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
13725
13726 2010-12-18  Bruno Haible  <bruno@clisp.org>
13727
13728         memmem-simple: Stylistic changes.
13729         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
13730         Fix preprocessor directive indentation.
13731
13732 2010-12-15  Pádraig Brady <P@draigBrady.com>
13733
13734         memmem, memmem-simple: reorganize and expand empty needle check
13735         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
13736         functional checks to memmem-simple so that one has a fully functional
13737         memmem by using just this module.
13738         Restrict the performance only check to the memmem module.
13739         Also expand the empty needle check to ensure the correct
13740         pointer is returned, not just a non NULL pointer.
13741         * doc/glibc-functions/memmem.texi: Rearrange the portability
13742         documentation to correlate with the rearranged checks.
13743         Clarify exactly how the memmem and memmem-simple modules
13744         relate to each other.
13745
13746 2010-12-15  Pádraig Brady <P@draigBrady.com>
13747             Bruno Haible  <bruno@clisp.org>
13748
13749         Improve cross-compilation guesses for uClibc.
13750         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
13751         that uClibc does not have the glibc bug.
13752         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
13753         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
13754
13755 2010-12-14  Eric Blake  <eblake@redhat.com>
13756
13757         configmake: provide fallbacks for oldest supported autotools
13758         * m4/configmake.m4: New file.
13759         * modules/configmake (Files): Ship it.
13760         (configure.ac): Use it to guarantee fallbacks.
13761
13762 2010-12-13  Pádraig Brady <P@draigBrady.com>
13763
13764         read-file: Improve handling of large files
13765         * lib/read-file.c (fread_file): Minimize realloc()s
13766         for regular files, and better manage sizes around SIZE_MAX.
13767
13768 2010-12-13  Eric Blake  <eblake@redhat.com>
13769
13770         cloexec, fcntl: relax license
13771         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
13772         consent from all contributors.
13773         * modules/fcntl (License): Likewise.
13774
13775 2010-12-10  Bruno Haible  <bruno@clisp.org>
13776
13777         Tests for module 'pipe-posix'.
13778         * modules/pipe-posix-tests: New file.
13779         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
13780
13781 2010-12-10  Bruno Haible  <bruno@clisp.org>
13782
13783         pipe-posix: Make it work in C++ mode.
13784         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
13785         (pipe): Use common idiom, not a macro definition.
13786         * lib/pipe.c: New file.
13787         * m4/pipe.m4: New file.
13788         * modules/pipe-posix (Description): Enhance.
13789         (Files): Add lib/pipe.c, m4/pipe.m4.
13790         (configure.ac): Invoke gl_FUNC_PIPE.
13791         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
13792         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
13793         * tests/test-unistd-c++.cc: Check the signature of pipe.
13794
13795 2010-12-10  Bruno Haible  <bruno@clisp.org>
13796
13797         Rename module 'pipe' to 'spawn-pipe'.
13798         * modules/spawn-pipe: New file, renamed from modules/pipe.
13799         (Files, configure.ac, Makefile.am): Update.
13800         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
13801         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
13802         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
13803         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
13804         "spawn-pipe.h" instead of "pipe.h".
13805         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
13806         to gl_SPAWN_PIPE.
13807         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
13808         (Files, Makefile.am): Update.
13809         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
13810         Update.
13811         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
13812         Include "spawn-pipe.h" instead of "pipe.h".
13813         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
13814         * lib/javacomp.c: Likewise.
13815         * lib/javaversion.c: Likewise.
13816         * lib/pipe-filter-gi.c: Likewise.
13817         * lib/pipe-filter-ii.c: Likewise.
13818         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
13819         * modules/javacomp (Depends-on): Likewise.
13820         * modules/javaversion (Depends-on): Likewise.
13821         * modules/pipe-filter-gi (Depends-on): Likewise.
13822         * modules/pipe-filter-ii (Depends-on): Likewise.
13823         * MODULES.html.sh (Executing programs): Update.
13824         * NEWS: Mention the change.
13825
13826 2010-12-10  Eric Blake  <eblake@redhat.com>
13827
13828         pipe-posix: new module
13829         * modules/pipe-posix: New file.
13830         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
13831         (gl_UNISTD_H): Check for declaration.
13832         * modules/unistd (Makefile.am): Substitute it.
13833         * lib/unistd.in.h (pipe): Provide it for mingw.
13834         * doc/posix-functions/pipe.texi (pipe): Update documentation.
13835         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
13836
13837 2010-12-07  Bruno Haible  <bruno@clisp.org>
13838
13839         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
13840         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
13841         u8_strcmp_gnu.
13842         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
13843
13844 2010-12-06  Bruno Haible  <bruno@clisp.org>
13845
13846         Update internal documentation.
13847         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
13848
13849 2010-12-04  Bruno Haible  <bruno@clisp.org>
13850
13851         Put more information about failed tests into the test return codes.
13852         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
13853         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
13854         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
13855         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
13856         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
13857         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
13858         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
13859         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
13860         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
13861         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
13862         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
13863         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
13864         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
13865         * m4/stdint.m4 (gl_STDINT_H): Likewise.
13866         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
13867         returns a bit mask.
13868         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
13869         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
13870         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
13871         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
13872         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
13873         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
13874         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
13875         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
13876         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
13877         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
13878         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
13879         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
13880         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
13881         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
13882         * m4/link.m4 (gl_FUNC_LINK): Likewise.
13883         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
13884         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
13885         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
13886         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
13887         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
13888         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
13889         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
13890         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
13891         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
13892         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
13893         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
13894         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
13895         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
13896         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
13897         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
13898         gl_PRINTF_PRECISION): Likewise.
13899         * m4/regex.m4 (gl_REGEX): Likewise.
13900         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
13901         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
13902         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
13903         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
13904         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
13905         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
13906         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
13907         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
13908         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
13909         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
13910         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
13911         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
13912         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
13913         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
13914         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
13915         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
13916         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
13917         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
13918         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
13919         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
13920         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
13921         enumerated value.
13922         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
13923
13924 2010-12-04  Bruno Haible  <bruno@clisp.org>
13925
13926         Update for Solaris 11 2010-11.
13927         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
13928         Express, released in November 2010.
13929
13930 2010-12-04  Bruno Haible  <bruno@clisp.org>
13931
13932         nproc: Relax license.
13933         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
13934         and Paul Eggert.
13935         Requested by Ludovic Courtès <ludo@gnu.org>.
13936
13937 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
13938
13939         utimecmp: fine-grained src to nearby coarse-grained dest
13940
13941         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
13942         and the source is on a file system with higher-resolution time
13943         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
13944         not work, and the time stamps are close together, the algorithm to
13945         determine the exact resolution from the read-back mtime was buggy:
13946         it had a "!=" where it should have had an "==".  This bug has been
13947         in the code ever since it was introduced to gnulib.
13948         Problem reported by Dan Jacobson in
13949         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
13950
13951 2010-11-30  Bruno Haible  <bruno@clisp.org>
13952
13953         strerror_r-posix: Fix autoconf test.
13954         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
13955
13956 2010-11-28  Bruno Haible  <bruno@clisp.org>
13957             Paul Eggert  <eggert@cs.ucla.edu>
13958
13959         Tests for module 'getdomainname'.
13960         * modules/getdomainname-tests: New file.
13961         * tests/test-getdomainname.c: New file, based on
13962         tests/test-gethostname.c.
13963
13964 2010-11-28  Bruno Haible  <bruno@clisp.org>
13965             Paul Eggert  <eggert@cs.ucla.edu>
13966
13967         getdomainname: Use the system function when possible.
13968         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
13969         (getdomainname): Replace if needed. Provide the declaration if it is
13970         missing. Don't use _GL_CXXALIAS_SYS_CAST.
13971         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
13972         (getdomainname): When the system has getdomainname, call the system
13973         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
13974         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
13975         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
13976         found in libnsl. Look for the declaration also in <netdb.h>. Replace
13977         the function if its second argument is of type 'int' or if it is found
13978         in libnsl.
13979         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
13980         <sys/systeminfo.h> and sysinfo().
13981         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
13982         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
13983         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
13984         HAVE_GETDOMAINNAME.
13985         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
13986         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
13987         * doc/glibc-functions/getdomainname.texi: Document the problems with
13988         the getdomainname declaration.
13989
13990 2010-11-28  Bruno Haible  <bruno@clisp.org>
13991
13992         sys_socket: Ensure ss_family field on AIX.
13993         * lib/sys_socket.in.h (ss_family): New macro definition.
13994         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
13995         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
13996         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
13997         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
13998         * modules/sys_socket (Makefile.am): Substitute
13999         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
14000         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
14001
14002 2010-11-27  Bruno Haible  <bruno@clisp.org>
14003
14004         readline: Improve configure output.
14005         * m4/readline.m4 (gl_FUNC_READLINE): Make the
14006         "checking for readline..." result understandable.
14007
14008 2010-11-27  Bruno Haible  <bruno@clisp.org>
14009
14010         *printf-posix: Detect a bug on Solaris 10/x86.
14011         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
14012         for floating-point output.
14013         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
14014         directive.
14015         * tests/test-snprintf-posix.h (test_function): Likewise.
14016         * tests/test-sprintf-posix.h (test_function): Likewise.
14017         * tests/test-vasprintf-posix.c (test_function): Likewise.
14018         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
14019         * doc/posix-functions/printf.texi: Likewise.
14020         * doc/posix-functions/snprintf.texi: Likewise.
14021         * doc/posix-functions/sprintf.texi: Likewise.
14022         * doc/posix-functions/vfprintf.texi: Likewise.
14023         * doc/posix-functions/vprintf.texi: Likewise.
14024         * doc/posix-functions/vsnprintf.texi: Likewise.
14025         * doc/posix-functions/vsprintf.texi: Likewise.
14026         * doc/glibc-functions/obstack_printf.texi: Likewise.
14027         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
14028
14029 2010-11-27  Bruno Haible  <bruno@clisp.org>
14030
14031         Fix link error when module libunistring-optional is in use.
14032         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
14033         * modules/striconveha-tests (Makefile.am): Likewise.
14034
14035 2010-11-27  Bruno Haible  <bruno@clisp.org>
14036
14037         regex: Mention link dependencies.
14038         * modules/regex (Link): New section.
14039         * modules/rpmatch (Link): Likewise.
14040         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
14041
14042 2010-11-27  Bruno Haible  <bruno@clisp.org>
14043
14044         ftoastr: Fix compilation error on Solaris.
14045         * lib/ftoastr.c: Include <config.h>.
14046
14047 2010-11-27  Bruno Haible  <bruno@clisp.org>
14048
14049         getloadavg: Update documentation.
14050         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
14051
14052 2010-11-27  Bruno Haible  <bruno@clisp.org>
14053
14054         sys_socket: Fix test whether the functions are declared.
14055         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
14056         not <sys/select.h>.
14057
14058 2010-11-27  Bruno Haible  <bruno@clisp.org>
14059
14060         getpass: Make sure to get system declaration on some platforms.
14061         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
14062         gl_USE_SYSTEM_EXTENSIONS.
14063         * modules/getpass (Depends-on): Add extensions.
14064
14065 2010-11-26  Bruno Haible  <bruno@clisp.org>
14066
14067         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
14068         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
14069         'iconv' module is present.
14070         (ICONV_CONST): New macro.
14071         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
14072         ICONV_CONST.
14073         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
14074         set ICONV_CONST.
14075         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
14076         here.
14077         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
14078         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
14079         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
14080         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
14081         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
14082         present.
14083
14084 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
14085
14086         ftoastr: comment fix
14087         * lib/ftoastr.c: "little" -> "little or no" in comment
14088
14089 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
14090
14091         stdint: port to GCC 4.3 + OSX + Octave
14092         On this platform, stdint.h is buggy and defines int64_t to long
14093         long int.  The replacement defined it to long int, causing
14094         problems with C++ style name mangling.  Instead, trust the system
14095         definition if INT64_MAX is defined, and likewise for the unsigned
14096         variant.   Problem reported by Jarno Rajahalme in
14097         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
14098         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
14099         and don't mess with int64_t and INT64_MAX in this case.
14100         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
14101
14102 2010-11-24  Bruno Haible  <bruno@clisp.org>
14103
14104         doc: Corrections regarding MacOS X 10.4 and 10.5.
14105         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
14106         MacOS X.
14107         Reported by Simon Josefsson.
14108
14109 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
14110
14111         Uninstall ".bin" files installed by relocwrapper.
14112         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
14113         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
14114         unless it is already there.
14115
14116 2010-11-21  Bruno Haible  <bruno@clisp.org>
14117
14118         Update for NetBSD 5.0.
14119         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
14120         NetBSD; the test fails on NetBSD 5.0.
14121         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
14122         about NetBSD.
14123
14124 2010-11-21  Bruno Haible  <bruno@clisp.org>
14125
14126         Update for HP-UX 11.23 and HP-UX 11.31.
14127         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
14128         HP-UX.
14129
14130 2010-11-21  Bruno Haible  <bruno@clisp.org>
14131
14132         Update for MacOS X 10.5.
14133         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
14134         MacOS X; the test fails on MacOS X 10.5.8.
14135         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
14136         about MacOS X.
14137
14138 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
14139
14140         bootstrap: add bootstrap_sync option.
14141         See discussion at
14142         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
14143         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
14144         * build-aux/bootstrap: Accept --bootstrap-sync to update
14145         bootstrap if it is not identical to the local gnulib's
14146         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
14147         enable this by default.  Accept --no-bootstrap-sync to disable
14148         it.
14149
14150 2010-11-20  Bruno Haible  <bruno@clisp.org>
14151
14152         Ensure that <features.h> is included before __GLIBC__ is tested.
14153         * lib/printf-parse.h: Include <features.h>.
14154         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
14155         Reported by Mike Frysinger <vapier@gentoo.org>.
14156
14157         Ensure that <features.h> is included before __GLIBC__ is tested.
14158         * lib/wchar.in.h: Include <features.h>.
14159         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
14160         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
14161         Reported by Mike Frysinger <vapier@gentoo.org>.
14162
14163         Ensure that <features.h> is included before __GLIBC__ is tested.
14164         * lib/arpa_inet.in.h: Include <features.h>.
14165         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
14166         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
14167         Reported by Mike Frysinger <vapier@gentoo.org>.
14168
14169         Ensure that <features.h> is included before __GLIBC__ is tested.
14170         * build-aux/link-warning.h: Include <features.h>.
14171         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
14172         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
14173         Reported by Mike Frysinger <vapier@gentoo.org>.
14174
14175         Ensure that <features.h> is included before __GLIBC__ is tested.
14176         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
14177         Reported by Mike Frysinger <vapier@gentoo.org>.
14178
14179 2010-11-20  Bruno Haible  <bruno@clisp.org>
14180
14181         memmem: Fix autoconf test.
14182         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
14183
14184 2010-11-20  Bruno Haible  <bruno@clisp.org>
14185
14186         Port to uClibc.
14187         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
14188         * lib/fcntl.in.h: Likewise.
14189         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
14190         * lib/mbrtowc.c (mbrtowc): Likewise.
14191         * lib/relocatable.c (find_shared_library_fullname): Likewise.
14192         * lib/strerror_r.c: Likewise.
14193         * lib/unistr/u8-strnlen.c: Likewise.
14194         * lib/vasnprintf.c (decimal_point_char): Likewise.
14195         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
14196         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
14197         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
14198         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
14199         * tests/test-sigaction.c (handler, main): Likewise.
14200         * lib/freading.h: Treat uClibc like a non-glibc platform.
14201         * lib/freading.c: Likewise.
14202         * lib/gettext.h: Likewise.
14203         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
14204         Likewise.
14205         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
14206         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
14207         * lib/propername.c (proper_name_utf8): Likewise.
14208         * lib/spawn.in.h: Likewise.
14209         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
14210         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
14211         mem_cd_iconveh_internal): Likewise.
14212         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
14213         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
14214         strstr, strcasestr): Likewise.
14215         * lib/unicodeio.c (unicode_to_mb): Likewise.
14216         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
14217         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
14218         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
14219         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
14220         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
14221         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
14222         * lib/unistr/u8-stpncpy.c: Likewise.
14223         * lib/vasnprintf.c (VASNPRINTF): Likewise.
14224         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
14225         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
14226         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
14227         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
14228         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
14229         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
14230         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
14231         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
14232         Likewise.
14233         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
14234         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
14235         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
14236         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
14237         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
14238         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
14239         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
14240         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
14241         * tests/test-getopt.h (OPTIND_MIN): Likewise.
14242         * tests/test-striconveha.c (main): Likewise.
14243         * tests/test-vasnprintf-posix.c (test_function): Likewise.
14244         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
14245         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
14246         * doc/posix-functions/getline.texi: Likewise.
14247         Reported by Mike Frysinger <vapier@gentoo.org>.
14248
14249 2010-11-20  Bruno Haible  <bruno@clisp.org>
14250
14251         nproc: Fix condition.
14252         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
14253         HAVE_PTHREAD_AFFINITY_NP.
14254
14255 2010-11-20  Bruno Haible  <bruno@clisp.org>
14256
14257         Fix a comment.
14258         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
14259
14260 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
14261
14262         ftoastr: don't assume snprintf
14263         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
14264         Implement a subset of snprintf here, by using sprintf safely.
14265         * modules/ftoastr (Depends-on): Remove snprintf.
14266
14267 2010-11-19  Jim Meyering  <meyering@redhat.com>
14268
14269         test-rename.h: fix compilation failure
14270         * tests/test-rename.h (test_rename): Add omitted "}".
14271
14272 2010-11-17  Jim Meyering  <meyering@redhat.com>
14273
14274         maint.mk: add a URL discussing the no-@acronym policy
14275         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
14276
14277 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
14278
14279         ftoastr: depend on snprintf, improve comments
14280         * lib/ftoastr.c: Also mention Loitsch's draft.
14281         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
14282         needed in the current implementation, but it might simplify
14283         speeding up the code later.
14284         * modules/ftoastr: Depend on snprintf; this improves portability.
14285         Suggested by Bruno Haible in the same email.
14286
14287         ftoastr: port to hosts lacking strtof and strtold
14288         Problem reported by Bruno Haible in
14289         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
14290         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
14291         environment and strtold (and presumably strtof) are not available.
14292         * modules/ftoastr (Files): Add m4/c-strtod.m4.
14293         (configure.ac): Require gl_C99_STRTOLD.
14294
14295 2010-11-18  Bruno Haible  <bruno@clisp.org>
14296
14297         c-strtold: Avoid link error on AIX 7.
14298         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
14299         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
14300         (gl_C_STRTOLD): Test whether strtold_l exists.
14301         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
14302
14303 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
14304
14305         intprops: new macro INT_BITS_STRLEN_BOUND
14306         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
14307         ftoastr.h.  This exposes an internal of intprops.h that was formerly
14308         not exposed.  Also, it uses a slightly tighter bound than before;
14309         though this makes no practical difference, we might as well be as
14310         tight as we easily can.
14311
14312         ftoastr: new module, for lossless conversion of floats to short strings
14313         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
14314         * modules/ftoastr: New files.
14315
14316 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
14317
14318         bootstrap: port to Solaris sed
14319         * build-aux/bootstrap (get_version): Port to Solaris sed.
14320         See Ralf Wildenhues's note in
14321         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
14322
14323 2010-11-14  Jim Meyering  <meyering@redhat.com>
14324
14325         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
14326         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
14327         and move definition closer to sole use.
14328
14329 2010-11-13  Jim Meyering  <meyering@redhat.com>
14330
14331         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
14332         Now we require at least autoconf-2.59, which means the work-around
14333         is no longer needed.
14334         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
14335         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
14336         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
14337         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
14338         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
14339
14340 2010-11-13  Bruno Haible  <bruno@clisp.org>
14341
14342         rename, renameat: Avoid test failures at NFS mounted locations.
14343         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
14344         functions.
14345         (test_rename): Use assert_nonexistent.
14346         * tests/test-rename.c: Include <dirent.h>.
14347         * tests/test-renameat.c: Likewise.
14348         Reported by Gary V. Vaughan <gary@gnu.org>.
14349
14350         rename, renameat: Document Linux bug with NFS
14351         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
14352         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
14353         * doc/posix-functions/renameat.texi: Likewise.
14354         Suggested by Eric Blake.
14355
14356 2010-11-13  Bruno Haible  <bruno@clisp.org>
14357
14358         rename test: Add comments.
14359         * tests/test-rename.h (test_rename): Add structure and comments.
14360
14361 2010-11-13  Eric Blake  <eblake@redhat.com>
14362
14363         maintainer-makefile: cover a few more files
14364         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
14365         scripts generated within C files, for libvirt.
14366
14367 2010-11-13  Bruno Haible  <bruno@clisp.org>
14368
14369         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
14370         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
14371         character, return the number of bytes that belong together, not always
14372         1.
14373         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
14374         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
14375         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
14376         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
14377         number of bytes of an invalid character.
14378         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
14379         (main): Invoke it.
14380         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
14381         results.
14382         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
14383         malformed byte sequences.
14384         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
14385         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
14386         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
14387         Reported by Ben Pfaff and Paolo Bonzini.
14388
14389 2010-11-13  Bruno Haible  <bruno@clisp.org>
14390
14391         openat: Work around glibc bug with fchownat() and empty file names.
14392         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
14393         (gl_FUNC_FCHOWNAT): Invoke it.
14394         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
14395         * doc/posix-functions/fchownat.texi: Document the glibc bug.
14396         Reported by Gary V. Vaughan <gary@gnu.org>.
14397
14398 2010-11-13  Bruno Haible  <bruno@clisp.org>
14399
14400         openat: Ensure autoconf macro ordering.
14401         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
14402         gl_USE_SYSTEM_EXTENSIONS.
14403         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
14404
14405 2010-11-13  Bruno Haible  <bruno@clisp.org>
14406
14407         Update comments.
14408         * lib/unistr/u8-check.c: Update file name in comments.
14409         * lib/unistr/u8-mblen.c: Likewise.
14410         * lib/unistr/u8-prev.c: Likewise.
14411         * lib/unistr/u8-strmblen.c: Likewise.
14412         * lib/unistr/u8-strmbtouc.c: Likewise.
14413
14414 2010-11-13  Jim Meyering  <meyering@redhat.com>
14415
14416         tests: avoid test failure on Solaris 10 due to lack of PATH export
14417         * tests/test-update-copyright.sh: Don't forget to export PATH.
14418
14419         init.sh: ensure that IFS is defined, just in case...
14420         * tests/init.sh (setup_): Ensure that IFS is defined,
14421         so that saving and restoring it works as expected.  This
14422         appears to be useful at least for an old version of dash
14423         from a long time ago (RH 6).  See here for details:
14424         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
14425
14426         maint.mk: tighten "test a == b" check
14427         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
14428         test to files that contain something like #!/bin/sh.
14429         Without this, coreutils would get two false positives in
14430         the comments of C source files.
14431
14432 2010-11-12  Eric Blake  <eblake@redhat.com>
14433
14434         bootstrap: fix typo in previous attempt
14435         * build-aux/bootstrap (buildreq): Correct the grouping.
14436         Reported by Paul Eggert.
14437
14438         maintainer-makefile: prohibit test x == x
14439         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
14440         Based on a report by Matthias Bolte.
14441
14442         bootstrap: allow FreeBSD gzip
14443         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
14444         which has no '.' and goes to stderr.
14445         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
14446         Reported by Matthias Bolte.
14447
14448         maintainer-makefile: check for i18n setup
14449         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
14450         will likely work.
14451
14452 2010-11-12  Bruno Haible  <bruno@clisp.org>
14453
14454         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
14455         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
14456         * lib/nanosleep.c (nanosleep): Likewise.
14457
14458 2010-11-11  Bruno Haible  <bruno@clisp.org>
14459
14460         fcntl-h: Fix for use of C++ on glibc systems.
14461         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
14462         also on glibc systems in C++ mode.
14463         Reported by Gary V. Vaughan <gary@gnu.org>.
14464
14465 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
14466
14467         mknod: avoid false failure with dash
14468         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
14469
14470 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
14471
14472         unlink: Fix "is it should" typo in diagnostic.
14473         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
14474         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
14475
14476 2010-11-11  Bruno Haible  <bruno@clisp.org>
14477
14478         Tests for module 'strerror_r-posix'.
14479         * modules/strerror_r-posix-tests: New file.
14480         * tests/test-strerror_r.c: New file.
14481         * tests/test-string-c++.cc: Check the signature of strerror_r.
14482
14483         New module 'strerror_r-posix'.
14484         * lib/string.in.h (strerror_r): New declaration.
14485         * lib/strerror_r.c: New file.
14486         * m4/strerror_r.m4: New file.
14487         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
14488         of strerror_r.
14489         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
14490         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
14491         * modules/strerror_r-posix: New file.
14492         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
14493         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
14494         * doc/posix-functions/strerror_r.texi: Mention the new module and the
14495         portability problems.
14496
14497 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
14498
14499         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
14500         line is also considered for output. Quoted function name in shell
14501         command, so temporary files for functions like MyClass::operator()
14502         are removed correctly without errors.
14503
14504 2010-11-09  Bruno Haible  <bruno@clisp.org>
14505
14506         * doc/posix-functions/strerror.texi: List more failing platforms.
14507
14508         * doc/posix-functions/strerror.texi: Add a comment.
14509
14510 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
14511
14512         fdopendir: fix bug on MacOS X when low on file descriptors
14513
14514         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
14515         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
14516         All callers changed.
14517         (fdopendir): Invoke save_cwd at the top level, not after using
14518         multiple dup() calls to use up file descriptors.  Then retry
14519         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
14520         less than the maximum number of open file descriptors, because
14521         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
14522         on Mac OS X 10.6.4 for tar 1.24
14523         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
14524         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
14525         and for tar 1.25
14526         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
14527
14528 2010-11-07  Bruno Haible  <bruno@clisp.org>
14529
14530         vasnprintf: Support I flag on glibc systems.
14531         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
14532         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
14533         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
14534         snprintf function.
14535         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
14536         glibc systems.
14537         * tests/test-vasnprintf-posix3.c: New file.
14538         * modules/vasnprintf-posix-tests (Files): Add it.
14539         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
14540
14541 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
14542
14543         [html] Fix copy/paste bug: Use unique name for compiler warnings.
14544         * MODULES.html.sh: For compiler warnings, use name
14545         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
14546
14547 2010-11-05  Eric Blake  <eblake@redhat.com>
14548
14549         ceil, floor: avoid spurious failure with icc
14550         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
14551         [denormals-as-zero] when optimizing without -mieee-fp option.
14552         * tests/test-floorf2.c (floorf_reference): Likewise.
14553         * tests/test-ceilf1.c (dummy): New function.
14554         (main): Use it to outsmart icc's optimization.
14555         * tests/test-floorf1.c (dummy, main): Likewise.
14556
14557         tests: require working signbit
14558         * modules/ceilf-tests (Depends-on): Add signbit.
14559         * modules/ceill-tests (Depends-on): Likewise.
14560         * modules/floorf-tests (Depends-on): Likewise.
14561         * modules/floorl-tests (Depends-on): Likewise.
14562         * modules/round-tests (Depends-on): Likewise.
14563         * modules/roundf-tests (Depends-on): Likewise.
14564         * modules/roundl-tests (Depends-on): Likewise.
14565         * modules/trunc-tests (Depends-on): Likewise.
14566         * modules/truncf-tests (Depends-on): Likewise.
14567         * modules/truncl-tests (Depends-on): Likewise.
14568
14569         strtod: work around icc bug
14570         * lib/strtod.c (minus_zero): Define to working value.
14571         (strtod): Use it to avoid icc bug.
14572
14573         copysign: enhance tests
14574         * modules/copysign-tests (Files): Add minus-zero.h.
14575         * tests/test-copysign.c (main): Also test zeros.
14576
14577 2010-11-04  Eric Blake  <eblake@redhat.com>
14578
14579         ceil, floor, round, trunc: enhance tests of -0
14580         * tests/test-ceilf1.c (main): Ensure correct sign of result.
14581         * tests/test-ceill.c (main): Likewise.
14582         * tests/test-floorf1.c (main): Likewise.
14583         * tests/test-floorl.c (main): Likewise.
14584         * tests/test-round1.c (main): Likewise.
14585         * tests/test-roundf1.c (main): Likewise.
14586         * tests/test-roundl.c (main): Likewise.
14587         * tests/test-trunc1.c (main): Likewise.
14588         * tests/test-truncf1.c (main): Likewise.
14589         * tests/test-truncl.c (main): Likewise.
14590
14591 2010-11-04  Eric Blake  <eblake@redhat.com>
14592
14593         frexp, tests: work around ICC bug with -zero
14594         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
14595         works with more compilers.
14596         * tests/minus-zero.h: New file.
14597         * modules/ceilf-tests (Files): Include it.
14598         * modules/ceill-tests (Files): Likewise.
14599         * modules/floorf-tests (Files): Likewise.
14600         * modules/floorl-tests (Files): Likewise.
14601         * modules/frexp-nolibm-tests (Files): Likewise.
14602         * modules/frexp-tests (Files): Likewise.
14603         * modules/frexpl-nolibm-tests (Files): Likewise.
14604         * modules/frexpl-tests (Files): Likewise.
14605         * modules/isnan-tests (Files): Likewise.
14606         * modules/isnand-nolibm-tests (Files): Likewise.
14607         * modules/isnand-tests (Files): Likewise.
14608         * modules/isnanf-nolibm-tests (Files): Likewise.
14609         * modules/isnanf-tests (Files): Likewise.
14610         * modules/isnanl-nolibm-tests (Files): Likewise.
14611         * modules/isnanl-tests (Files): Likewise.
14612         * modules/round-tests (Files): Likewise.
14613         * modules/roundf-tests (Files): Likewise.
14614         * modules/roundl-tests (Files): Likewise.
14615         * modules/ldexpl-tests (Files): Likewise.
14616         * modules/signbit-tests (Files): Likewise.
14617         * modules/snprintf-posix-tests (Files): Likewise.
14618         * modules/sprintf-posix-tests (Files): Likewise.
14619         * modules/strtod-tests (Files): Likewise.
14620         * modules/trunc-tests (Files): Likewise.
14621         * modules/truncf-tests (Files): Likewise.
14622         * modules/truncl-tests (Files): Likewise.
14623         * modules/vsnprintf-posix-tests (Files): Likewise.
14624         * modules/vsprintf-posix-tests (Files): Likewise.
14625         * modules/vasnprintf-posix-tests (Files): Likewise.
14626         * modules/vasprintf-posix-tests (Files): Likewise.
14627         * tests/test-ceilf1.c (main): Use it.
14628         * tests/test-ceill.c (main): Likewise.
14629         * tests/test-floorf1.c (main): Likewise.
14630         * tests/test-floorl.c (main): Likewise.
14631         * tests/test-frexp.c (main): Likewise.
14632         * tests/test-frexpl.c (main): Likewise.
14633         * tests/test-isnan.c (main): Likewise.
14634         * tests/test-isnand.h (main): Likewise.
14635         * tests/test-isnanf.h (main): Likewise.
14636         * tests/test-isnanl.h (main): Likewise.
14637         * tests/test-ldexpl.c (main): Likewise.
14638         * tests/test-round.c (main): Likewise.
14639         * tests/test-roundf.c (main): Likewise.
14640         * tests/test-roundl.c (main): Likewise.
14641         * tests/test-signbit.c (test_signbitf, test_signbitd)
14642         (test_signbitl): Likewise.
14643         * tests/test-snprintf-posix.h (test_function): Likewise.
14644         * tests/test-sprintf-posix.h (test_function): Likewise.
14645         * tests/test-strtod.c (main): Likewise.
14646         * tests/test-trunc1.c (main): Likewise.
14647         * tests/test-truncf1.c (main): Likewise.
14648         * tests/test-truncl.c (main): Likewise.
14649
14650         isnanl: work around icc bug
14651         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
14652
14653 2010-11-03  Eric Blake  <eblake@redhat.com>
14654
14655         tests: fix compiler warnings
14656         * tests/test-getopt.h (test_getopt): Fix condition.
14657         * tests/test-getopt_long.h (test_getopt_long): Likewise.
14658         * tests/test-pipe2.c (main): Likewise.
14659         * tests/test-quotearg-simple.c (main): Avoid icc warning.
14660
14661         utimens: fix broken m4 test
14662         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
14663
14664 2010-10-28  Bruno Haible  <bruno@clisp.org>
14665
14666         posix_spawn*, getdtablesize: Relax license.
14667         * modules/posix_spawn (License): Change to LGPLv2+.
14668         * modules/posix_spawnp (License): Likewise.
14669         * modules/posix_spawn-internal (License): Likewise.
14670         * modules/posix_spawnattr_init (License): Likewise.
14671         * modules/posix_spawnattr_getflags (License): Likewise.
14672         * modules/posix_spawnattr_setflags (License): Likewise.
14673         * modules/posix_spawnattr_getpgroup (License): Likewise.
14674         * modules/posix_spawnattr_setpgroup (License): Likewise.
14675         * modules/posix_spawnattr_getschedparam (License): Likewise.
14676         * modules/posix_spawnattr_setschedparam (License): Likewise.
14677         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
14678         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
14679         * modules/posix_spawnattr_getsigdefault (License): Likewise.
14680         * modules/posix_spawnattr_setsigdefault (License): Likewise.
14681         * modules/posix_spawnattr_getsigmask (License): Likewise.
14682         * modules/posix_spawnattr_setsigmask (License): Likewise.
14683         * modules/posix_spawnattr_destroy (License): Likewise.
14684         * modules/posix_spawn_file_actions_init (License): Likewise.
14685         * modules/posix_spawn_file_actions_addclose (License): Likewise.
14686         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
14687         * modules/posix_spawn_file_actions_addopen (License): Likewise.
14688         * modules/posix_spawn_file_actions_destroy (License): Likewise.
14689         * modules/getdtablesize (License): Likewise.
14690         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
14691
14692 2010-10-26  Bruno Haible  <bruno@clisp.org>
14693
14694         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
14695         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
14696         Cygwin and mingw.
14697         Suggested by Eric Blake.
14698
14699 2010-10-26  Bruno Haible  <bruno@clisp.org>
14700
14701         stdio: Work around compilation error due to renameat() on Solaris 10.
14702         * lib/stdio.in.h: Include <unistd.h> on Solaris.
14703         * lib/renameat.c: Don't include <unistd.h> here.
14704         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
14705         Reported by Paul Eggert and Eric Blake.
14706
14707 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
14708
14709         renameat: port to Solaris 10, which declares renameat in unistd.h
14710
14711         * lib/renameat.c: Include unistd.h before stdio.h, because
14712         Solaris 10 declares renameat in unistd.h.  Problem encountered
14713         when building GNU tar 1.24 on Solaris 10.
14714
14715 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
14716
14717         fdopendir: fix C89 compilation
14718         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
14719         compilers.
14720
14721 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
14722
14723         inttostr: simplify by removing unnecessary redundancy
14724         * lib/anytostr.c: Don't include verify.h.
14725         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
14726         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
14727         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
14728         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
14729         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
14730         Likewise.
14731         * modules/inttostr (Depends-on): Remove 'verify'.
14732
14733 2010-10-23  Bruno Haible  <bruno@clisp.org>
14734
14735         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
14736         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
14737         Reported by Eric Blake.
14738
14739 2010-10-23  Bruno Haible  <bruno@clisp.org>
14740
14741         Tests: Fix LOCALE_JA on MirBSD 10.
14742         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
14743         to an UTF-8 locale.
14744         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
14745         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
14746         Reported by Eric Blake.
14747
14748 2010-10-21  Bruno Haible  <bruno@clisp.org>
14749
14750         nl_langinfo test: Avoid test failure on NetBSD 5.
14751         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
14752         Reported by Eric Blake.
14753
14754 2010-10-21  Eric Blake  <eblake@redhat.com>
14755
14756         c-stack: work around libsigsegv 2.8 bug
14757         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
14758         overflow on at least PowerPC64.
14759
14760 2010-10-17  Bruno Haible  <bruno@clisp.org>
14761
14762         userspec: Drop redundant file.
14763         * modules/userspec (Files): Remove lib/inttostr.h.
14764
14765 2010-10-17  Bruno Haible  <bruno@clisp.org>
14766
14767         nl_langinfo tests: Silence some warnings.
14768         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
14769         Reported by Jim Meyering.
14770
14771 2010-10-17  Bruno Haible  <bruno@clisp.org>
14772
14773         Make use of GCC's attribute __alloc_size__.
14774         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
14775         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
14776         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
14777         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
14778         __alloc_size__.
14779         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
14780         Suggested by Jim Meyering.
14781
14782 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
14783
14784         bootstrap: anchor .gitignore entries.
14785         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
14786         with...
14787         (insert_vc_ignore): ... this new function, which prepends `/' to
14788         all .gitignore entries before passing them to
14789         insert_sorted_if_absent.
14790
14791 2010-10-16  Bruno Haible  <bruno@clisp.org>
14792
14793         nextafter: Fix configure check.
14794         * modules/nextafter (configure.ac): Correct expected prototype.
14795
14796 2010-10-16  Bruno Haible  <bruno@clisp.org>
14797
14798         termios: Update documentation.
14799         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
14800
14801 2010-10-16  Bruno Haible  <bruno@clisp.org>
14802
14803         tests: Make them compile with TinyCC.
14804         * tests/test-strstr.c (main): Remove parentheses around array
14805         initializer.
14806
14807 2010-10-15  Eric Blake  <eblake@redhat.com>
14808
14809         ignore-value: make header idempotent
14810         * lib/ignore-value.h: Add double-inclusion guards.
14811         Reported by Stefan Berger.
14812
14813 2010-10-15  Jim Meyering  <meyering@redhat.com>
14814
14815         GNUmakefile: handle "stable" target, not "major"
14816         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
14817         lists in maint.mk and announce-gen.  Without this, "make stable"
14818         would fail to ensure that $(VERSION) is up to date.
14819
14820 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
14821
14822         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
14823         & co.
14824
14825 2010-10-14  Bruno Haible  <bruno@clisp.org>
14826
14827         vasnprintf: Don't set errno to 0.
14828         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
14829         block that sets it to 0.
14830         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
14831
14832 2010-10-14  Bruno Haible  <bruno@clisp.org>
14833
14834         socketlib: Fix.
14835         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
14836         gl_PREREQ_SYS_H_WINSOCK2.
14837         Reported by Ian Beckwith <ianb@erislabs.net>.
14838
14839 2010-10-13  Jim Meyering  <meyering@redhat.com>
14840
14841         test-select-stdin.c: avoid warn_unused_result warnings
14842         * tests/test-select-stdin.c: Include "macros.h".
14843         ASSERT that read and fflush succeed.
14844
14845 2010-10-13  Jim Meyering  <meyering@redhat.com>
14846
14847         git-version-gen: do require git-VC'd files in cwd
14848         * build-aux/git-version-gen: Reject a git version string
14849         if there are no commits associated with the current directory.
14850         This avoids an unlikely false-positive (unrelated dir whose parent
14851         repository also contains a tag matching v*), as pointed out
14852         by Giuseppe Scrivano in
14853         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
14854
14855 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
14856
14857         argv-iter: omit nonconforming declaration
14858         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
14859         enum arg_iter_err declaration, which doesn't conform to C99.
14860         Solaris 10 cc warns about this.
14861
14862 2010-10-13  Eric Blake  <eblake@redhat.com>
14863
14864         termios: fix compilation on mingw
14865         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
14866         (gl_TERMIOS_H): Adjust it on mingw.
14867         * modules/termios (Makefile.am): Substitute new key.
14868         * lib/termios.in.h (includes): Make include_next conditional.
14869         * doc/posix-headers/termios.texi (termios.h): Update
14870         documentation.
14871         Reported by Daniel P. Berrange.
14872
14873 2010-10-13  Jim Meyering  <meyering@redhat.com>
14874
14875         git-version-gen: don't require that .git/ be in the current dir
14876         * build-aux/git-version-gen: Adjust this script so that it works
14877         when run from any working directory beneath the top-level .git/-
14878         containing directory.  Inspired by a patch from Giuseppe Scrivano,
14879         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
14880
14881         test-select: avoid warn_unused_result warnings
14882         * tests/test-select.c: Include "macros.h".
14883         ASSERT that each call to read, write, and pipe succeeds.
14884         While not technically required, also check each "close".
14885         * modules/select-tests (Files): Add tests/macros.h.
14886
14887         test-symlinkat: remove declaration of unused local
14888         * tests/test-symlinkat.c (main): Remove unused local, "buf".
14889
14890         test-inttostr: avoid shadowing warnings
14891         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
14892         and use malloc rather than the stack for the same reason as
14893         mentioned in the comment justifying the other allocation.
14894
14895 2010-10-11  Bruno Haible  <bruno@clisp.org>
14896
14897         stdlib: Allow multiple gnulib generated replacements to coexist.
14898         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
14899         Reported by Sam Steingold <sds@gnu.org>.
14900
14901 2010-10-11  Jim Meyering  <meyering@redhat.com>
14902
14903         fix a documentation typo
14904         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
14905
14906 2010-10-11  Eric Blake  <eblake@redhat.com>
14907
14908         futimens: work around Solaris 11 bug
14909         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
14910         * tests/test-futimens.h (test_futimens): Enhance, rather than
14911         weaken test.
14912         * doc/posix-functions/futimens.texi (futimens): Document the bug.
14913
14914 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
14915
14916         Indentation.
14917         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
14918         higher-level operators more to the left.
14919
14920 2010-10-11  Jim Meyering  <meyering@redhat.com>
14921
14922         test-futimens: avoid unwarranted test failure on Solaris 5.11
14923         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
14924         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
14925         because it tries to dereference the NULL name argument.
14926
14927 2010-10-11  Bruno Haible  <bruno@clisp.org>
14928
14929         Indentation.
14930         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
14931         indentation.
14932
14933 2010-10-11  Jim Meyering  <meyering@redhat.com>
14934
14935         spawn.in.h: make indentation consistent with parentheses
14936         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
14937         Make indentation consistent with parentheses.
14938
14939 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
14940
14941         Fix mismatched parens in previous commit
14942         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
14943         parens.
14944
14945 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
14946
14947         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
14948
14949         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
14950         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
14951         * lib/malloca.c: Include "verify.h".
14952         (verify1): Remove, replacing with a verify call.
14953         * lib/relocwrapper.c (verify1): Likewise.
14954         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
14955         Likewise.
14956         * modules/malloca (Depends-on): Add 'verify'.
14957         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
14958         * modules/vasnprintf (Depends-on): Add 'verify'.
14959         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
14960         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
14961         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
14962         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
14963         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
14964         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
14965         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
14966
14967         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
14968
14969         Formerly the style was sometimes 2*X - 1, because the C standard
14970         was wrongly thought to disallow ?: in integral constant expressions.
14971         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
14972         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
14973         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
14974         * lib/stdint.in.h (_verify_intmax_size): Likewise.
14975         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
14976         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
14977         verify that time_t cannot be floating.
14978
14979 2010-10-08  Eric Blake  <eblake@redhat.com>
14980
14981         time: enforce recent POSIX ruling that time_t is integral
14982         * lib/time.in.h (__time_t_must_be_integral): Detect any
14983         problematic systems, allowing the rest of gnulib to assume POSIX.
14984
14985 2010-10-08  Jim Meyering  <meyering@redhat.com>
14986
14987         fdopendir: fix a bug on systems lacking openat and /proc support
14988         OpenBSD 4.7 is one such system.  The most noticeable effect was
14989         failure of any application making nontrivial use of fts: rm, du,
14990         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
14991           ./rm: traversal failed: `a': Bad file descriptor
14992         Debugging that, you see that even though FD 6 was closed just
14993         prior to the opendir call in fd_clone_opendir, its resulting
14994         dir->dd_fd was 8, rather than the expected value of 6:
14995
14996         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
14997         93                close (fd);
14998         (gdb) n
14999         94                dir = fd_clone_opendir (dupfd);
15000         (gdb) n
15001         95                saved_errno = errno;
15002         (gdb) p dir->dd_fd
15003         $11 = 8
15004
15005         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
15006         The problem is that on OpenBSD, fd_clone_opendir has to resort
15007         to using the old-style save/restore CWD mechanism, due to its
15008         lack of openat/proc support, and *that* would steal the FD (6)
15009         that opendir was supposed to use.
15010
15011         The fix is to squirrel away the desired FD so that save_cwd uses a
15012         different one, and then free the dest FD right before calling opendir.
15013         That guarantees opendir will use the required file descriptor.
15014
15015         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
15016
15017 2010-10-08  Bruno Haible  <bruno@clisp.org>
15018
15019         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
15020         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
15021
15022 2010-10-08  Bruno Haible  <bruno@clisp.org>
15023
15024         nanosleep: Make replacement POSIX compliant.
15025         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
15026         is out of range.
15027         Reported by Jim Meyering.
15028
15029 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
15030
15031         bootstrap: add hook for altering gnulib.mk, for Bison
15032         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
15033         the Bison bootstrapping process can rewrite file names and variables
15034         in this file before later parts of 'bootstrap' use the file.
15035         Bison wants to include lib/gnulib.mk from the top-level makefile,
15036         so it needs the file names in this file to be relative to the top
15037         level, not relative to lib; plus it needs variable names to be
15038         rewritten.
15039         (slurp): Use the new function.
15040
15041         bootstrap: reformat for readability
15042         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
15043
15044 2010-10-08  Eric Blake  <eblake@redhat.com>
15045
15046         docs: update cygwin progress
15047         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
15048         1.7.7.
15049         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
15050         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
15051         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
15052         * doc/posix-functions/carg.texi (carg): Likewise.
15053         * doc/posix-functions/cargf.texi (cargf): Likewise.
15054         * doc/posix-functions/casin.texi (casin): Likewise.
15055         * doc/posix-functions/casinf.texi (casinf): Likewise.
15056         * doc/posix-functions/casinh.texi (casinh): Likewise.
15057         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
15058         * doc/posix-functions/catan.texi (catan): Likewise.
15059         * doc/posix-functions/catanf.texi (catanf): Likewise.
15060         * doc/posix-functions/catanh.texi (catanh): Likewise.
15061         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
15062         * doc/posix-functions/ccos.texi (ccos): Likewise.
15063         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
15064         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
15065         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
15066         * doc/posix-functions/cexp.texi (cexp): Likewise.
15067         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
15068         * doc/posix-functions/cimag.texi (cimag): Likewise.
15069         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
15070         * doc/posix-functions/clog.texi (clog): Likewise.
15071         * doc/posix-functions/clogf.texi (clogf): Likewise.
15072         * doc/posix-functions/conj.texi (conj): Likewise.
15073         * doc/posix-functions/conjf.texi (conjf): Likewise.
15074         * doc/posix-functions/cpow.texi (cpow): Likewise.
15075         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
15076         * doc/posix-functions/cproj.texi (cproj): Likewise.
15077         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
15078         * doc/posix-functions/creal.texi (creal): Likewise.
15079         * doc/posix-functions/crealf.texi (crealf): Likewise.
15080         * doc/posix-functions/csin.texi (csin): Likewise.
15081         * doc/posix-functions/csinf.texi (csinf): Likewise.
15082         * doc/posix-functions/csinh.texi (csinh): Likewise.
15083         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
15084         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
15085         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
15086         * doc/posix-functions/ctan.texi (ctan): Likewise.
15087         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
15088         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
15089         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
15090         * doc/posix-headers/complex.texi (complex.h): Likewise.
15091
15092 2010-10-07  Jim Meyering  <meyering@redhat.com>
15093
15094         parse-datetime: avoid compilation failure on OpenBSD 4.7
15095         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
15096         This works around a compilation failure on OpenBSD 4.7:
15097         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
15098
15099 2010-10-07  Eric Blake  <eblake@redhat.com>
15100
15101         docs: update cygwin progress
15102         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
15103         1.7.6.
15104         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
15105         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
15106         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
15107         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
15108         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
15109         Likewise.
15110         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
15111         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
15112         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
15113         Likewise.
15114         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
15115         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
15116         Likewise.
15117         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
15118         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
15119         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
15120         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
15121         Likewise.
15122         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
15123         Likewise.
15124         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
15125
15126         docs: update parse-datetime history
15127         * doc/parse-datetime.texi (Authors of parse_datetime): Better
15128         documentation of this function's history and alternatives.
15129
15130         cygwin: use more robust version check
15131         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
15132         exclude an eventual cygwin 1.9.1.
15133         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
15134         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
15135         (gl_FUNC_STRCASESTR): Likewise.
15136         Reported by Bruno Haible.
15137
15138 2010-10-06  Bruno Haible  <bruno@clisp.org>
15139
15140         string, sys_select: Avoid #including large headers unless necessary.
15141         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
15142         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
15143         OSF/1, BeOS, Haiku.
15144         Reported by Jim Meyering.
15145
15146 2010-10-05  Eric Blake  <eblake@redhat.com>
15147
15148         memmem, strstr, strcasestr: fix bug with long periodic needle
15149         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
15150         periodic needle having false positive.
15151         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
15152         and cygwin 1.7.7.
15153         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
15154         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
15155         (gl_FUNC_STRCASESTR): Likewise.
15156         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
15157         * tests/test-memmem.c (main): Expose the bug.
15158         * tests/test-strcasestr.c (main): Likewise.
15159         * tests/test-strstr.c (main): Likewise.
15160         * tests/test-c-strcasestr.c (main): Likewise.
15161         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
15162         * doc/posix-functions/strstr.texi (strstr): Likewise.
15163         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
15164         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
15165
15166 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
15167
15168         parse-datetime: do some more renaming
15169         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
15170         parse_datetime, not get_date.  Mention the renaming.
15171         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
15172         in comments.
15173         * m4/bison.m4: Likewise.
15174
15175 2010-10-05  Eric Blake  <eblake@redhat.com>
15176
15177         parse-datetime: better name than get_date
15178         * NEWS: Reword the deprecation notice.
15179         * modules/get_date: Rename to modules/parse-datetime.
15180         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
15181         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
15182         * lib/get_date.y: Rename to lib/parse-datetime.y.
15183         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
15184         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
15185         * doc/getdate.texi: Provide fallback wrapper.
15186         * lib/getdate.h: Move guts, and wrap...
15187         * lib/parse-datetime.h: ...new file.
15188         * lib/parse-datetime.y (get_date): Rename...
15189         (parse_datetime): ...to this.
15190         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
15191         (gl_PARSE_DATETIME): ...to this.
15192         * doc/posix-functions/getdate.texi (get_date): Provide fallback
15193         documentation.
15194         * modules/getdate (Files): Provide fallback docs and header.
15195         (Notice, Depends-on): Update references.
15196         * tests/test-parse-datetime.c: Likewise.
15197         * DEPENDENCIES: Likewise.
15198         * MODULES.html.sh (Date and time <time.h>): Likewise.
15199         * doc/parse-datetime.texi (Date input formats)
15200         (Authors of parse_datetime): Likewise.
15201         * modules/parse-datetime (Files, configure.ac, Makefile.am)
15202         (Include): Likewise.
15203         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
15204         * gnulib-tool: Likewise.
15205         * m4/bison.m4 (gl_BISON): Likewise.
15206         Suggested by Bruno Haible.
15207
15208 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
15209
15210         more ports to Solaris tr, which needs [] around ranges
15211         * gnulib-tool: Solaris tr needs [] around ranges.
15212         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
15213         * tests/test-pipe-filter-gi1.c (main): Likewise.
15214         * tests/test-pipe-filter-ii1.c (main): Likewise.
15215
15216 2010-10-05  Eric Blake  <eblake@redhat.com>
15217
15218         bootstrap: fix Solaris regression
15219         * build-aux/bootstrap (check_versions): Solaris tr still needs []
15220         around ranges.
15221         Reported by Pádraig Brady.
15222
15223         bootstrap: work with pkg-config
15224         * build-aux/bootstrap (check_versions): Also transliterate - in
15225         prerequisite name.
15226         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
15227         prerequisites that were already found, to avoid confusion.
15228         Reported by Justin Clift.
15229
15230         faccessat: remove unused wrappers
15231         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
15232         presence of these wrappers dragged in -lgen on Solaris.
15233         Reported by Clemens Brogi; fix suggested by Paul Eggert.
15234
15235 2010-10-05  Jim Meyering  <meyering@redhat.com>
15236
15237         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
15238         * Makefile (sc_pragma_columns): New syntax-check rule.
15239
15240 2010-10-04  Bruno Haible  <bruno@clisp.org>
15241
15242         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
15243         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
15244         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
15245         Reported by Bruce Korb and Eric Blake.
15246
15247 2010-10-04  Bruno Haible  <bruno@clisp.org>
15248
15249         threadlib: Make option --with-libpth-prefix work.
15250         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
15251         use $LIBPTH, not just -lpth.
15252
15253 2010-10-04  Bruno Haible  <bruno@clisp.org>
15254
15255         Avoid line length limitation from HP NonStop system header files.
15256         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
15257         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
15258         * lib/ctype.in.h: Likewise.
15259         * lib/dirent.in.h: Likewise.
15260         * lib/errno.in.h: Likewise.
15261         * lib/fcntl.in.h: Likewise.
15262         * lib/float.in.h: Likewise.
15263         * lib/getopt.in.h: Likewise.
15264         * lib/iconv.in.h: Likewise.
15265         * lib/inttypes.in.h: Likewise.
15266         * lib/langinfo.in.h: Likewise.
15267         * lib/locale.in.h: Likewise.
15268         * lib/math.in.h: Likewise.
15269         * lib/netdb.in.h: Likewise.
15270         * lib/netinet_in.in.h: Likewise.
15271         * lib/poll.in.h: Likewise.
15272         * lib/pthread.in.h: Likewise.
15273         * lib/pty.in.h: Likewise.
15274         * lib/sched.in.h: Likewise.
15275         * lib/se-selinux.in.h: Likewise.
15276         * lib/search.in.h: Likewise.
15277         * lib/signal.in.h: Likewise.
15278         * lib/spawn.in.h: Likewise.
15279         * lib/stdarg.in.h: Likewise.
15280         * lib/stddef.in.h: Likewise.
15281         * lib/stdint.in.h: Likewise.
15282         * lib/stdio.in.h: Likewise.
15283         * lib/stdlib.in.h: Likewise.
15284         * lib/string.in.h: Likewise.
15285         * lib/strings.in.h: Likewise.
15286         * lib/sys_file.in.h: Likewise.
15287         * lib/sys_ioctl.in.h: Likewise.
15288         * lib/sys_select.in.h: Likewise.
15289         * lib/sys_socket.in.h: Likewise.
15290         * lib/sys_stat.in.h: Likewise.
15291         * lib/sys_time.in.h: Likewise.
15292         * lib/sys_times.in.h: Likewise.
15293         * lib/sys_utsname.in.h: Likewise.
15294         * lib/sys_wait.in.h: Likewise.
15295         * lib/sysexits.in.h: Likewise.
15296         * lib/termios.in.h: Likewise.
15297         * lib/time.in.h: Likewise.
15298         * lib/unistd.in.h: Likewise.
15299         * lib/wchar.in.h: Likewise.
15300         * lib/wctype.in.h: Likewise.
15301         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
15302         * modules/ctype (Makefile.am): Likewise.
15303         * modules/dirent (Makefile.am): Likewise.
15304         * modules/errno (Makefile.am): Likewise.
15305         * modules/fcntl-h (Makefile.am): Likewise.
15306         * modules/float (Makefile.am): Likewise.
15307         * modules/getopt-posix (Makefile.am): Likewise.
15308         * modules/iconv-h (Makefile.am): Likewise.
15309         * modules/inttypes (Makefile.am): Likewise.
15310         * modules/langinfo (Makefile.am): Likewise.
15311         * modules/locale (Makefile.am): Likewise.
15312         * modules/math (Makefile.am): Likewise.
15313         * modules/netdb (Makefile.am): Likewise.
15314         * modules/netinet_in (Makefile.am): Likewise.
15315         * modules/poll-h (Makefile.am): Likewise.
15316         * modules/pthread (Makefile.am): Likewise.
15317         * modules/pty (Makefile.am): Likewise.
15318         * modules/sched (Makefile.am): Likewise.
15319         * modules/search (Makefile.am): Likewise.
15320         * modules/selinux-h (Makefile.am): Likewise.
15321         * modules/signal (Makefile.am): Likewise.
15322         * modules/spawn (Makefile.am): Likewise.
15323         * modules/stdarg (Makefile.am): Likewise.
15324         * modules/stddef (Makefile.am): Likewise.
15325         * modules/stdint (Makefile.am): Likewise.
15326         * modules/stdio (Makefile.am): Likewise.
15327         * modules/stdlib (Makefile.am): Likewise.
15328         * modules/string (Makefile.am): Likewise.
15329         * modules/strings (Makefile.am): Likewise.
15330         * modules/sys_file (Makefile.am): Likewise.
15331         * modules/sys_ioctl (Makefile.am): Likewise.
15332         * modules/sys_select (Makefile.am): Likewise.
15333         * modules/sys_socket (Makefile.am): Likewise.
15334         * modules/sys_stat (Makefile.am): Likewise.
15335         * modules/sys_time (Makefile.am): Likewise.
15336         * modules/sys_times (Makefile.am): Likewise.
15337         * modules/sys_utsname (Makefile.am): Likewise.
15338         * modules/sys_wait (Makefile.am): Likewise.
15339         * modules/sysexits (Makefile.am): Likewise.
15340         * modules/termios (Makefile.am): Likewise.
15341         * modules/time (Makefile.am): Likewise.
15342         * modules/unistd (Makefile.am): Likewise.
15343         * modules/wchar (Makefile.am): Likewise.
15344         * modules/wctype (Makefile.am): Likewise.
15345
15346 2010-10-04  Bruno Haible  <bruno@clisp.org>
15347
15348         read-file tests: Avoid a test failure on NonStop Kernel.
15349         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
15350         a regular file.
15351         Reported by Joachim Schmitz <schmitz@hp.com>.
15352
15353 2010-10-03  Bruno Haible  <bruno@clisp.org>
15354
15355         gnulib-tool: Fixes for --create-testdir with --libtool.
15356         * gnulib-tool (func_get_automake_snippet): Don't augment
15357         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
15358         an executable.
15359         (func_create_testdir): Handle module 'alloca' like func_import.
15360         Reported by Bruce Korb <bruce.korb@gmail.com>.
15361
15362 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
15363
15364         Avoid some lines longer than 80 characters.
15365         * lib/stdint.in.h: Break long comment lines.
15366         * lib/math.in.h: Likewise.
15367         (_GL_NUM_UINT_WORDS): New macro, for readability.
15368         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
15369         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
15370         * lib/stdlib.in.h: Likewise.
15371         * lib/spawn.in.h: Likewise.
15372         * lib/sys_socket.in.h: Update an URL.
15373         * lib/sys_stat.in.h: Break long line.
15374
15375 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
15376
15377         Improve pmccabe2html.
15378         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
15379         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
15380         when the sources change. Remove the line in the HTML about "Used
15381         ranges" (which implied that there might be other unused ranges),
15382         rename "Resume" to "Summary" (easier to understand for more users).
15383         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
15384         styles, and some unnecessary blank lines.
15385
15386 2010-10-03  Bruno Haible  <bruno@clisp.org>
15387             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
15388
15389         acl: Add support for ACLs on NonStop Kernel.
15390         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
15391         Check whether the function aclsort() exists.
15392         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
15393         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
15394         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
15395         (acl_nontrivial [HAVE_ACLSORT]: New function.
15396         (file_has_acl): Implement for NonStop Kernel.
15397         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
15398         (qset_acl): Implement for NonStop Kernel.
15399         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
15400         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
15401         (main): Implement for NonStop Kernel.
15402         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
15403         Kernel. Handle this flavor.
15404         * tests/test-set-mode-acl.sh: Likewise.
15405         * tests/test-copy-acl.sh: Likewise.
15406         * tests/test-copy-file.sh: Likewise.
15407
15408 2010-10-03  Bruno Haible  <bruno@clisp.org>
15409
15410         Info about ACLs on NonStop Kernel.
15411         * doc/acl-resources.txt: Add info about NonStop Kernel.
15412         References by Joachim Schmitz <schmitz@hp.com>.
15413
15414 2010-10-02  Bruno Haible  <bruno@clisp.org>
15415
15416         Define missing EDQUOT on NonStop Kernel.
15417         * lib/errno.in.h (EDQUOT): Assign a value if missing.
15418         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
15419         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
15420         missing.
15421         * doc/posix-headers/errno.texi: Mention the NSK bug.
15422         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
15423         Reported by Joachim Schmitz <schmitz@hp.com>.
15424
15425 2010-10-02  Bruno Haible  <bruno@clisp.org>
15426
15427         Update doc for POSIX:2008.
15428         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
15429         Update URL of POSIX specification.
15430
15431 2010-10-02  Bruno Haible  <bruno@clisp.org>
15432
15433         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
15434         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
15435         from gnulib, not from Automake.
15436
15437 2010-10-02  Bruno Haible  <bruno@clisp.org>
15438
15439         New module 'system-posix'.
15440         * modules/system-posix: New file.
15441         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
15442         module is present.
15443         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
15444         GNULIB_SYSTEM_POSIX.
15445         * modules/stdlib (Depends-on): Remove sys_wait.
15446         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
15447         * doc/posix-functions/system.texi: Mention the new module.
15448         * doc/posix-headers/stdlib.texi: Likewise.
15449         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
15450         define test_sys_wait_macros to a no-op.
15451         Reported by Sam Steingold <sds@gnu.org>.
15452
15453 2010-09-30  Bruno Haible  <bruno@clisp.org>
15454
15455         More renaming from 'getdate' to 'get_date'.
15456         * doc/get_date.texi: Renamed from doc/getdate.texi.
15457         * modules/get_date (Files): Update.
15458         * MODULES.html.sh (Date and time <time.h>): Update.
15459         * DEPENDENCIES: Update.
15460         * gnulib-tool: Update comment.
15461         * m4/bison.m4 (gl_BISON): Likewise.
15462         * m4/get_date.m4 (gl_GET_DATE): Likewise.
15463
15464 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
15465
15466         bootstrap: support ACLOCAL_FLAGS during aclocal
15467         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
15468         can add additional -I dir for third-party .m4 files.
15469
15470 2010-09-30  Eric Blake  <eblake@redhat.com>
15471
15472         bootstrap: use glibtoolize on MacOS
15473         * build-aux/bootstrap (check_versions): Convert libtool into
15474         libtoolize.
15475         (tool search): Move libtool check earlier, and look for
15476         glibtoolize for MacOS.
15477         (gnulib_tool_options): Auto-add --libtool when appropriate.
15478         Reported by Justin Clift.
15479
15480         poll: fix typo that broke test on MacOS
15481         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
15482         Reported by Justin Clift.
15483
15484         getdate: rename to get_date
15485         Note: getdate.h is not renamed, to minimize client impact.
15486         * modules/getdate: Mark obsolete.  Move old contents...
15487         * modules/get_date: ...to new module name.
15488         * modules/getdate-tests: Move...
15489         * modules/get_date-tests: ...here.
15490         * m4/getdate.m4: Move...
15491         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
15492         * lib/getdate.y: Move...
15493         * lib/get_date.y: ...here.
15494         * tests/test-getdate.c: Move...
15495         * tests/test-get_date.c: ...here.
15496         * doc/posix-functions/getdate.texi (getdate): Update name.
15497         * NEWS: Mention the change.
15498
15499 2010-09-29  Bruno Haible  <bruno@clisp.org>
15500
15501         Separate the module 'waitpid' from the module 'sys_wait'.
15502         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
15503         present.
15504         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
15505         gl_MODULE_INDICATOR_FOR_TESTS.
15506         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
15507         * modules/sys_wait (Depends-on): Remove waitpid.
15508         (Makefile.am): Substitute GNULIB_WAITPID.
15509         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
15510         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
15511         signature only if the 'waitpid' module is present.
15512         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
15513         * NEWS: Mention the change.
15514         * modules/grantpt (Depends-on): Add waitpid.
15515         * modules/wait-process (Depends-on): Likewise.
15516
15517 2010-09-29  Bruno Haible  <bruno@clisp.org>
15518
15519         More tests for module 'sys_wait'.
15520         * modules/sys_wait-c++-tests: New file.
15521         * tests/test-sys_wait-c++.cc: New file.
15522         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
15523         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
15524
15525 2010-09-29  Bruno Haible  <bruno@clisp.org>
15526
15527         New module 'waitpid'.
15528         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
15529         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
15530         Don't include <process.h>.
15531         (waitpid): Declare only, using modern idiom.
15532         * m4/waitpid.m4: New file.
15533         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
15534         * modules/waitpid: New file.
15535         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
15536         (Makefile.am): Update.
15537         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
15538
15539 2010-09-28  Bruno Haible  <bruno@clisp.org>
15540
15541         poll: Assume ANSI C.
15542         * lib/poll.c (poll): Use an ANSI C declaration.
15543
15544 2010-09-28  Bruno Haible  <bruno@clisp.org>
15545
15546         poll-h: Create poll.h on all platforms.
15547         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
15548         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
15549         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
15550         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
15551         (gl_REPLACE_POLL_H): Don't set POLL_H.
15552         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
15553         * modules/poll-h (Depends-on): Add include_next.
15554         (Makefile.am): Create poll.h unconditionally. Substitute also
15555         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
15556
15557 2010-09-28  Bruno Haible  <bruno@clisp.org>
15558
15559         Tests for module 'poll-h'.
15560         * modules/poll-h-c++-tests: New file.
15561         * tests/test-poll-h-c++.cc: New file.
15562
15563         Tests for module 'poll-h'.
15564         * modules/poll-h-tests: New file.
15565         * tests/test-poll-h.c: New file.
15566
15567 2010-09-28  Bruno Haible  <bruno@clisp.org>
15568
15569         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
15570         * modules/poll-h (Depends-on): Add 'extensions'.
15571
15572 2010-09-28  Bruno Haible  <bruno@clisp.org>
15573
15574         New module 'poll-h'.
15575         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
15576         (poll): Use modern idiom.
15577         * modules/poll-h: New file.
15578         * modules/poll (Files): Remove lib/poll.in.h.
15579         (Depends-on): Add poll-h.
15580         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
15581         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
15582         * m4/poll_h.m4: New file.
15583         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
15584         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
15585         and invoke gl_REPLACE_POLL_H.
15586         * lib/poll.c: Use common idiom.
15587         * tests/test-poll.c: Likewise.
15588         * doc/posix-headers/poll.texi: Mention the poll-h module.
15589         Suggested by Eric Blake.
15590
15591 2010-09-26  Bruno Haible  <bruno@clisp.org>
15592
15593         sys_wait: Implement WSTOPSIG.
15594         * lib/sys_wait.in.h (WSTOPSIG): New macro.
15595         Reported by Simon Josefsson.
15596
15597 2010-09-26  Simon Josefsson  <simon@josefsson.org>
15598
15599         stdlib, sys_wait: Avoid compilation error on mingw.
15600         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
15601
15602 2010-09-26  Bruno Haible  <bruno@clisp.org>
15603
15604         stdlib tests: Avoid code duplication.
15605         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
15606         * modules/sys_wait-tests (Files): Likewise.
15607         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
15608         * tests/test-stdlib.c: Include test-sys_wait.h.
15609         (main): Invoke test_sys_wait_macros.
15610         * tests/test-sys_wait.c: Include test-sys_wait.h.
15611         (main): Invoke test_sys_wait_macros.
15612
15613 2010-09-25  Simon Josefsson  <simon@josefsson.org>
15614
15615         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
15616         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
15617         sure Windows sockets are working before calling getaddrinfo.
15618         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
15619         * doc/gnulib.texi (Windows sockets): Fix typo.
15620
15621 2010-09-25  Bruno Haible  <bruno@clisp.org>
15622
15623         Tests for module 'regex-quote'.
15624         * modules/regex-quote-tests: New file.
15625         * tests/test-regex-quote.c: New file.
15626
15627         New module 'regex-quote'.
15628         * lib/regex-quote.h: New file.
15629         * lib/regex-quote.c: New file.
15630         * modules/regex-quote: New file.
15631         Suggested by Reuben Thomas <rrt@sc3d.org>.
15632
15633 2010-09-24  Bruno Haible  <bruno@clisp.org>
15634
15635         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
15636         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
15637
15638 2010-09-23  Bruno Haible  <bruno@clisp.org>
15639
15640         setenv: Relax license.
15641         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
15642         Blake.
15643         Requested by Eric Blake.
15644
15645 2010-09-22  Bruno Haible  <bruno@clisp.org>
15646
15647         termios: Relax license.
15648         * modules/termios (License): Change to LGPLv2+.
15649         Requested by Eric Blake.
15650
15651 2010-09-22  Bruno Haible  <bruno@clisp.org>
15652
15653         threadlib: Allow the package to change the default to 'no'.
15654         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
15655         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
15656         Reported by Paul Eggert.
15657
15658 2010-09-22  Pádraig Brady  <P@draigbrady.com>
15659             Bruno Haible  <bruno@clisp.org>
15660
15661         Fix endless loop in mbmemcasecoll.
15662         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
15663         byte.
15664         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
15665
15666 2010-09-22  Bruno Haible  <bruno@clisp.org>
15667
15668         Tests for module 'memcoll'.
15669         * modules/memcoll-tests: New file.
15670         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
15671
15672         memcoll, xmemcoll: Clarify size vs. length.
15673         * modules/memcoll.c (memcoll0): Clarify specification.
15674         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
15675         passed to collate_error.
15676
15677 2010-09-22  Bruno Haible  <bruno@clisp.org>
15678
15679         Tests for module 'memcasecmp'.
15680         * modules/memcasecmp-tests: New file.
15681         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
15682
15683 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
15684
15685         * lib/pthread.in.h: Add split double-inclusion guard, and include
15686         system <pthread.h> if there is one.  Use @@-style as in other
15687         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
15688         pthread.h doesn't.
15689         (pthread_mutexattr_destroy, pthread_mutexattr_init):
15690         (pthread_mutexattr_settype, pthread_mutex_trylock):
15691         New static inline functions, if there's no system <pthread.h>.
15692         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
15693         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
15694         Approximate with mutexes if the system lacks spinlocks, as in
15695         MacOS.
15696         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
15697         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
15698         @@-style.  Check for spinlocks separately.
15699         (gl_PTHREAD_DEFAULTS): New macro.
15700         * modules/pthread: Redo to use a more typical style for in.h files.
15701
15702 2010-09-21  Eric Blake  <eblake@redhat.com>
15703
15704         net_if: enhance tests
15705         * tests/test-net_if.c (main): Move signature checks earlier.
15706         Print failures to stderr.
15707         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
15708         Document the bug that we do not yet fix.
15709
15710 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
15711
15712         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
15713         about gnulib, not GSS.
15714
15715 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
15716
15717         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
15718         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
15719         for Emacs.
15720         * build-aux/pmccabe2html: Make Makefile.am example code more
15721         cut-and-paste friendly.
15722
15723 2010-09-21  Simon Josefsson  <simon@josefsson.org>
15724
15725         * tests/test-net_if.c: New file.
15726         * modules/net_if-tests: New file.
15727
15728 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
15729
15730         pthread: add pthread_spin_destroy
15731         * lib/pthread.in.h (pthread_spin_destroy): New function.
15732
15733 2010-09-19  Bruno Haible  <bruno@clisp.org>
15734
15735         gnulib-tool: Fix --help output.
15736         * gnulib-tool (func_usage): Fix help message.
15737         Reported by Reuben Thomas <rrt@sc3d.org>.
15738
15739 2010-09-18  Jim Meyering  <meyering@redhat.com>
15740
15741         maint.mk: avoid unexpanded \n in two diagnostics
15742         * top/maint.mk (sc_prohibit_always_true_header_tests):
15743         Don't use a literal \n in a halt=... assignment.  It would not be
15744         expanded, and the two \n bytes would appear in the diagnostic output
15745         rather than the desired newline.  Use halt=$$(printf ... instead.
15746         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
15747
15748 2010-09-18  Bruno Haible  <bruno@clisp.org>
15749
15750         netinet_in: Doc tweak.
15751         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
15752         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
15753
15754 2010-09-18  Jim Meyering  <meyering@redhat.com>
15755
15756         init.sh: correct an outdated comment
15757         * tests/init.sh (create_exe_shims_):  s/function/alias/
15758
15759         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
15760         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
15761         a file named "*.exe" is removed between the glob expansion and the
15762         processing of that oddly named file.
15763
15764 2010-09-17  Eric Blake  <eblake@redhat.com>
15765
15766         mirbsd: add some more support
15767         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
15768         in BSD family.
15769         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
15770         devices as OpenBSD.
15771         * m4/host-os.m4 (mirbsd): Add MirBSD.
15772
15773         tests: fix unportable assumption on sys/wait.h
15774         * tests/test-sys_wait.c (main): Relax test.
15775         * tests/test-stdlib.c (main): Likewise.
15776
15777         init.sh: accomodate directory with no .exes
15778         * tests/init.sh: Accomodate directory containing only scripts.
15779
15780         tests: avoid compiler warning
15781         * tests/test-stdlib.c (main): Use the variable.
15782
15783         fdutimens, fdutimensat: update signature, again
15784         * lib/utimens.h (gl_futimens): Delete, and move signature...
15785         (fdutimens): ...here.
15786         (fdutimensat): Rearrange signature.
15787         (lutimensat): Rename variable for clarity.
15788         * lib/fdutimensat.c (fdutimensat): Update signature.
15789         * lib/utimens.c (fdutimens): Likewise.
15790         (gl_futimens): Delete.
15791         (utimens, lutimens): Update callers.
15792         * lib/futimens.c (futimens): Likewise.
15793         * tests/test-fdutimensat.c: Likewise.
15794         * tests/test-utimens.c: Likewise.
15795         * tests/test-futimens.h: Update comment.
15796         * NEWS: Mention this.
15797         Suggested by Paul Eggert.
15798
15799 2010-09-17  Bruno Haible  <bruno@clisp.org>
15800
15801         Take over the maintenance of some older macros from Autoconf.
15802         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
15803         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
15804         GNU Autoconf.
15805         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
15806         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
15807
15808 2010-09-17  Eric Blake  <eblake@redhat.com>
15809
15810         fdutimensat: drop atflag validation
15811         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
15812         with valid fd, to close a race scenario where futimens is
15813         unsupported and FILE was replaced by a symlink.
15814         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
15815         accordingly.
15816         Suggested by Paul Eggert.
15817
15818 2010-09-16  Bruno Haible  <bruno@clisp.org>
15819
15820         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
15821         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
15822
15823 2010-09-16  Bruno Haible  <bruno@clisp.org>
15824
15825         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
15826         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
15827         login_tty exists.
15828         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
15829
15830 2010-09-16  Bruno Haible  <bruno@clisp.org>
15831
15832         login_tty: Make the replacement code work on BSD systems.
15833         * lib/login_tty.c: Include <sys/ioctl.h>.
15834         (login_tty): Use ioctl TIOCSCTTY when available.
15835         * modules/login_tty (Depends-on): Add sys_ioctl.
15836         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
15837
15838 2010-09-16  Bruno Haible  <bruno@clisp.org>
15839
15840         login_tty: Stricter unit test.
15841         * modules/login_tty-tests (Depends-on): Add tcgetsid.
15842         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
15843         and tcgetsid() after login_tty.
15844         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
15845
15846 2010-09-16  Bruno Haible  <bruno@clisp.org>
15847
15848         New module 'tcgetsid'.
15849         * lib/tcgetsid.c: New file.
15850         * m4/tcgetsid.m4: New file.
15851         * modules/tcgetsid: New file.
15852         * modules/termios (Depends-on): Add c++defs, warn-on-use.
15853         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
15854         GNULIB_TCGETSID, HAVE_TCGETSID.
15855         * lib/termios.in.h: Include <sys/types.h>.
15856         (tcgetsid): New declaration.
15857         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
15858         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
15859         * doc/posix-functions/tcgetsid.texi: Mention the new module.
15860         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
15861
15862 2010-09-16  Bruno Haible  <bruno@clisp.org>
15863
15864         Tests for module 'termios'.
15865         * modules/termios-c++-tests: New file.
15866         * modules/termios-tests: New file.
15867         * tests/test-termios-c++.cc: New file.
15868         * tests/test-termios.c: New file.
15869
15870         New module 'termios'.
15871         * modules/termios: New file.
15872         * lib/termios.in.h: New file.
15873         * m4/termios_h.m4: New file.
15874         * doc/posix-headers/termios.texi: Mention the new module.
15875
15876 2010-09-16  Eric Blake  <eblake@redhat.com>
15877
15878         fdutimensat: add an atflag parameter
15879         * lib/fdutimensat.c (fdutimensat): Add new parameter.
15880         * lib/utimens.h (fdutimensat): Update prototype.
15881         * tests/test-fdutimensat.c: Adjust test to match.
15882         * NEWS: Document the change.
15883         Suggested by Paul Eggert.
15884
15885 2010-09-16  Bruno Haible  <bruno@clisp.org>
15886
15887         Fix typos in comments.
15888         * lib/striconveh.h: Fix typo in comment.
15889         * lib/login_tty.c (login_tty): Likewise.
15890
15891 2010-09-15  Bruno Haible  <bruno@clisp.org>
15892
15893         stdlib: clarify MirBSD WEXITSTATUS bug
15894         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
15895         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
15896
15897 2010-09-15  Eric Blake  <eblake@redhat.com>
15898
15899         stdlib: work around MirBSD WEXITSTATUS bug
15900         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
15901         * modules/stdlib (Depends-on): Add sys_wait.
15902         * tests/test-sys_wait.c (main): Enhance test.
15903         * tests/test-stdlib.c (main): Likewise.
15904         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
15905
15906         docs: mention MacOS issue with WEXITSTATUS(constant)
15907         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
15908         issue.
15909         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
15910
15911         strnlen: add tests
15912         * modules/strnlen-tests: New file.
15913         * tests/test-strnlen.c: Likewise.
15914
15915 2010-09-14  Bruno Haible  <bruno@clisp.org>
15916
15917         unistr/base: Avoid link errors when module 'libunistring' is also used.
15918         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
15919         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
15920         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
15921         Declare also when HAVE_LIBUNISTRING is set.
15922         Reported by Pádraig Brady <P@draigbrady.com>.
15923
15924 2010-09-14  Eric Blake  <eblake@redhat.com>
15925
15926         test-rawmemchr: make more robust
15927         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
15928         (Depends-on, configure.ac): Add needed prerequisites to use it.
15929         * modules/memchr-tests (Files, Depends-on, configure.ac):
15930         Likewise, to avoid implicit reliance on memchr module prereqs.
15931         * tests/test-memchr.c (main): Ensure proper masking.
15932         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
15933         reads.
15934
15935         memchr: detect glibc Alpha bug
15936         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
15937         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
15938         Alpha.
15939         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
15940         * tests/test-memchr.c (main): Enhance test.
15941         Reported by Nelson H. F. Beebe.
15942
15943 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
15944
15945         fts, getcwd, glob: audit for dirfd returning -1
15946         * lib/fts.c (opendir): Remove #define; no longer used.
15947         (opendirat): New arg PDIR_FD.  All callers changed.
15948         (fts_build, _opendir2): Use new opendirat to avoid the need for
15949         dirfd, or for checking whether dirfd returns a negative value.
15950         Don't use opendir; always use openat followed by fdopendir.
15951         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
15952         it.
15953         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
15954         returns -1 here.
15955         * modules/fts (Depends-on): Remove dirfd.
15956         * modules/getcwd (Depends-on): Likewise.
15957
15958 2010-09-13  Eric Blake  <eblake@redhat.com>
15959
15960         float: fix broken MirBSD header
15961         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
15962         * doc/posix-headers/float.texi (float.h): Document it.
15963
15964 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
15965
15966         fts: use O_NOFOLLOW to avoid race condition when opening a directory
15967         * lib/fts.c (opendirat): New arg extra_flags.
15968         (__opendir2): Use it to avoid following symlinks when opening
15969         a directory, if symlinks are not supposed to be followed.  See
15970         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
15971
15972         fdopendir: preserve argument fd before returning
15973         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
15974         (fdopendir_with_dup, fd_clone_opendir): New static functions.
15975         (fdopendir): Use them, arranging for FD to be open to the same
15976         directory that it was when it started.  (It might be temporarily
15977         closed while fdopendir is running, so this not thread- or
15978         signal-safe.)  Be careful to do the right thing even when file
15979         descriptors are scarce and dup fails with errno == EMFILE.  See
15980         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
15981
15982 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
15983
15984         regex: Pass the system regex if its only problem is 32-bit regoff_t.
15985         * NEWS: Document change.
15986         * m4/regex.m4: Disable test for regoff_t size.
15987
15988 2010-09-13  Jim Meyering  <meyering@redhat.com>
15989
15990         fts: don't operate on an invalid file descriptor after failed dup
15991         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
15992         negative file descriptor.
15993
15994 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
15995
15996         savedir: add streamsavedir, deprecate fdsavedir
15997         * NEWS: Mention deprecation of fdsavedir.
15998         * lib/savedir.c (streamsavedir): New extern function, whose name
15999         ends in "savedir" to be consistent with the others.  This differs
16000         from savedirstream in that it doesn't close its argument.  The
16001         next version of GNU tar will use this instead of fdsavedir, to
16002         avoid some race conditions and conserve file descriptors.
16003         (savedirstream): Reimplement as a wrapper around streamsavedir.
16004         (fdsavedir): Add a comment deprecating this function.  As far as
16005         I know, only GNU tar used it, and GNU tar doesn't need it any more.
16006         * lib/savedir.h (streamsavedir): New decl.
16007         (fdsavedir): Add a comment deprecating this.
16008
16009 2010-09-10  Bruno Haible  <bruno@clisp.org>
16010
16011         langinfo: Fix last commit.
16012         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
16013         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
16014         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16015
16016 2010-09-10  Bruno Haible  <bruno@clisp.org>
16017
16018         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
16019         * lib/progreloc.c (O_EXEC): Define fallback.
16020
16021 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
16022
16023         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
16024         * NEWS: Document recent changes to fcntl-h.
16025         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
16026         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
16027         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
16028         Similarly for O_SEARCH; this last was already true, but not documented.
16029         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
16030         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
16031         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
16032         Likewise.
16033         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
16034         is zero, not whether it is defined.
16035         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
16036         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
16037         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
16038
16039 2010-09-10  Bruno Haible  <bruno@clisp.org>
16040
16041         langinfo, nl_langinfo: Fix for IRIX 5.3.
16042         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
16043         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
16044         HAVE_LANGINFO_YESEXPR.
16045         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
16046         HAVE_LANGINFO_YESEXPR.
16047         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
16048         HAVE_LANGINFO_T_FMT_AMPM is 0.
16049         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
16050         HAVE_LANGINFO_YESEXPR is 0.
16051         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
16052         NOEXPR.
16053         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
16054         * doc/posix-functions/nl_langinfo.texi: Likewise.
16055         Reported by Eric Blake.
16056
16057 2010-09-10  Bruno Haible  <bruno@clisp.org>
16058
16059         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
16060         * doc/glibc-functions/login_tty.texi: Mention the include file problem
16061         on FreeBSD 8.0 and OpenBSD 4.6.
16062         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
16063         * m4/pty_h.m4 (gl_PTY_H): Likewise.
16064         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
16065         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
16066         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
16067         ac_includes_default.
16068         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
16069
16070 2010-09-09  Eric Blake  <eblake@redhat.com>
16071
16072         strsignal: work around NetBSD bug
16073         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
16074         * lib/string.in.h (includes): Likewise.
16075         * doc/posix-functions/strsignal.texi (strsignal): Document the
16076         bug.
16077         Reported by Nelson H. F. Beebe.
16078
16079         gnulib-tool: work with NetBSD /bin/sh
16080         * gnulib-tool (func_cache_var, func_cache_lookup_module)
16081         (func_get_description, func_get_comment, func_get_status)
16082         (func_get_notice, func_get_applicability, func_get_filelist)
16083         (func_get_dependencies, func_get_autoconf_early_snippet)
16084         (func_get_autoconf_snippet, func_get_automake_snippet)
16085         (func_get_include_directive, func_get_link_directive)
16086         (func_get_license, func_get_maintainer, func_import): Avoid
16087         shell syntax errors from parsing syntax extensions.
16088
16089 2010-09-09  Bruno Haible  <bruno@clisp.org>
16090
16091         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
16092         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
16093         a reliable way to determine whether the 'alias' command works.
16094
16095 2010-09-08  Jim Meyering  <meyering@redhat.com>
16096
16097         init.sh: penalize a set-x-impaired shell; don't disqualify it
16098         * tests/init.sh: Too many shells corrupt application stderr when
16099         you set -x, so we can't afford to disqualify them, since at least
16100         on Irix-6.5, that would disqualify all bourne shells.
16101         Instead, use a two-pass approach.
16102         On the first pass, try to find a shell that meets the stricter
16103         condition that set -x does not corrupt stderr.
16104         If no shell meets the stricter condition, retest each candidate
16105         shell, but without that extra condition.  Finally, when
16106         VERBOSE=yes is requested and set -x might cause trouble, simply
16107         issue a warning and refrain from enabling debug output.
16108
16109 2010-09-08  Eric Blake  <eblake@redhat.com>
16110
16111         unsetenv: fix OpenBSD bug
16112         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
16113         * doc/posix-functions/unsetenv.texi (unsetenv): Update
16114         documentation.
16115         Reported by Jim Meyering.
16116
16117         strtod: work around IRIX 6.5 bug
16118         * lib/strtod.c (strtod): Reparse number on shorter string if
16119         exponent parse was invalid.
16120         * tests/test-strtod.c (main): Add check for "0x1p 2".
16121         Reported by Tom G. Christensen.
16122
16123         getopt: optimize previous patch
16124         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
16125         empty variable.  Speed up awk script.
16126         Reported by Paolo Bonzini.
16127
16128 2010-09-08  Jim Meyering  <meyering@redhat.com>
16129
16130         test.sh: disqualify shells for which set -x corrupts stderr
16131         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
16132         and OpenBSD 4.7.  They make it so with "set -x", environment settings
16133         appear in stderr output.  For example, this command:
16134             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
16135         prints "P=1" on those two systems:
16136
16137 2010-09-08  Bruno Haible  <bruno@clisp.org>
16138
16139         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
16140         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
16141         commands, because some shells ignore redirections when there is an
16142         error in the command lookup.
16143         Reported by Eric Blake.
16144
16145 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
16146
16147         * lib/regex.h: Fix a mention of `regex_compile' (should be
16148         `re_compile_pattern').
16149         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
16150         (re_set_registers): Correct name of parameter in comment.
16151
16152         * doc/regex.texi: Add documentation for missing syntax flags.
16153         Remove commented-out documentation of defunct syntax option
16154         RE_NO_EMPTY_ALTS.
16155         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
16156         Add documentation of re_set_registers.
16157         Document trick to re-use a pattern buffer by setting fastmap manually.
16158         Update documentation of struct re_pattern_buffer per public members.
16159         Uncomment documentation of equivalence class operators and
16160         collating symbol operators, since they are now implemented,
16161         Explain leftmost-longest matching in relation to alternatives.
16162         Tidy documentation of substring matching.
16163         Remove POSIX documentation, which is done better in
16164         glibc, and refer the reader there. Keep BSD API documentation, as
16165         that is not readily available elsewhere.
16166
16167 2010-09-07  Eric Blake  <eblake@redhat.com>
16168
16169         getopt: handle POSIXLY_CORRECT set but not exported
16170         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
16171         export state of POSIXLY_CORRECT, due to bash set -o posix.
16172         Reported by Dustin J. Mitchell.
16173
16174 2010-09-05  Bruno Haible  <bruno@clisp.org>
16175
16176         gnulib-tool: Highlight the changed options.
16177         * gnulib-tool (func_usage): Display the --import, --add-import,
16178         --remove-import explanations in bold font.
16179
16180 2010-09-06  Karl Berry  <karl@gnu.org>
16181
16182         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
16183
16184 2010-09-05  Bruno Haible  <bruno@clisp.org>
16185
16186         uniwidth/width: Update comment.
16187         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
16188         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
16189
16190 2010-09-05  Bruno Haible  <bruno@clisp.org>
16191
16192         isinf, isnan: Relax license.
16193         * modules/isinf (License): Change from GPL to LGPL, with consent from
16194         Ben Pfaff.
16195         * modules/isnan (License): Likewise.
16196         Requested by Ludovic Courtès.
16197
16198 2010-09-04  Bruno Haible  <bruno@clisp.org>
16199
16200         gnulib-tool: Help migration from --import to --add-import or --update.
16201         * gnulib-tool: Emit a verbose error message when --import is used
16202         without any module name.
16203
16204 2010-09-04  Bruno Haible  <bruno@clisp.org>
16205
16206         Update doc about gnulib-tool.
16207         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
16208         'gnulib-tool --update' in more detail.
16209         Reported by Eric Blake.
16210
16211 2010-09-04  Bruno Haible  <bruno@clisp.org>
16212
16213         gnulib-tool: Change --import. New options --add/remove-import.
16214         * gnulib-tool: New options --add-import, --remove-import.
16215         (func_usage): Document them.
16216         (have_associative): Define always.
16217         (func_import): In import mode, don't merge the specified settings with
16218         the cached settings. Implement remove-import mode.
16219         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
16220         Explain when to use them versus --import.
16221         (Simple update): Use --add-import instead of --import.
16222         * NEWS: Mention the change.
16223
16224 2010-09-04  Bruno Haible  <bruno@clisp.org>
16225
16226         * doc/gnulib-tool.texi (Initial import): Update paragraph about
16227         separate gnulib.mk.
16228
16229 2010-09-04  Bruno Haible  <bruno@clisp.org>
16230
16231         gnulib-tool: Don't talk about CVS any more.
16232         * gnulib-tool (func_usage, func_import): Write "version control"
16233         instead of CVS.
16234
16235 2010-09-04  Jim Meyering  <meyering@redhat.com>
16236
16237         maint.mk: avoid obscure sc_copyright_check failure in coreutils
16238         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
16239         false positives (whose names may be ill-chosen) when searching
16240         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
16241         would cause a false-positive.
16242
16243         avoid coreutils "make distcheck" failure
16244         Coreutils tests with an absolute build directory name that contains
16245         a space.  Not quoting this directory name caused a failure.
16246         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
16247         * tests/test-vc-list-files-cvs.sh: Likewise.
16248
16249 2010-09-04  Bruno Haible  <bruno@clisp.org>
16250
16251         gnulib-tool: Avoid error when run in a package without Makefile.am.
16252         * gnulib-tool: When collecting the m4dirs in a package that does not
16253         have a Makefile.am, eliminate those directories that contain no
16254         gnulib-cache.m4. Fix expression that counts these directories.
16255
16256 2010-09-04  Bruno Haible  <bruno@clisp.org>
16257
16258         update-copyright test: Improve output when perl is missing or too old.
16259         * tests/test-update-copyright.sh: Move test of Perl version down after
16260         the test whether Perl exists. Provide an explanation relating Perl's
16261         error message to Automake's SKIP: message.
16262
16263 2010-09-04  Bruno Haible  <bruno@clisp.org>
16264
16265         Don't augment PATH in TESTS_ENVIRONMENT.
16266         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
16267         set abs_aux_dir instead of augmenting PATH.
16268         * modules/vc-list-files-tests (Makefile.am): Likewise.
16269         * tests/test-update-copyright.sh: Augment PATH here.
16270         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
16271         path_prepend_.
16272         * tests/test-vc-list-files-git.sh: Likewise.
16273
16274 2010-09-04  Jim Meyering  <meyering@redhat.com>
16275
16276         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
16277         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
16278
16279 2010-09-04  Bruno Haible  <bruno@clisp.org>
16280
16281         strdup: Fix compilation error in C++ mode.
16282         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
16283         the macro.
16284
16285 2010-09-04  Bruno Haible  <bruno@clisp.org>
16286
16287         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
16288         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
16289         macro into a function.
16290         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
16291
16292 2010-09-04  Bruno Haible  <bruno@clisp.org>
16293
16294         Set PATH_SEPARATOR the same way autoconf does.
16295         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
16296         the value of PATH_SEPARATOR the same way autoconf-generated configure
16297         scripts do.
16298         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
16299         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
16300
16301 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
16302
16303         Set PATH_SEPARATOR the same way autoconf does.
16304         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
16305         the same way autoconf-generated configure scripts do.
16306         * posix-modules: Likewise.
16307
16308 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
16309
16310         hash: fix safe_hasher const typo
16311         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
16312         const; otherwise, there is a type error later.
16313
16314 2010-09-02  Jim Meyering  <meyering@redhat.com>
16315
16316         test-update-copyright.sh: require perl 5.8.0
16317         * tests/test-update-copyright.sh: Require 5.8.0,
16318         which Tom G. Christensen has confirmed is adequate,
16319         while 5.6.1 is not.
16320
16321 2010-09-02  Eric Blake  <eblake@redhat.com>
16322
16323         tests: init.sh improvements for re-exec'ing with zsh
16324         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
16325         -vx through shell re-exec.
16326         Reported by Tom G. Christensen.
16327
16328         wctype: fix typo in previous commit
16329         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
16330         Reported by Ludovic Courtès.
16331
16332 2010-09-02  Jim Meyering  <meyering@redhat.com>
16333
16334         test-update-copyright.sh: skip test if Perl is too old
16335         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
16336         Reported by Tom G. Christensen.
16337
16338 2010-09-02  Bruno Haible  <bruno@clisp.org>
16339
16340         wctype: Avoid compilation error on IRIX 6.5.30.
16341         * lib/wctype.in.h (iswblank): Declare with a replacement if
16342         REPLACE_ISWBLANK is set.
16343         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
16344         declared. Set REPLACE_ISWBLANK.
16345         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
16346         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
16347         * doc/posix-headers/wctype.texi: Likewise.
16348         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16349
16350 2010-09-01  Bruno Haible  <bruno@clisp.org>
16351
16352         New module 'socketlib'.
16353         * modules/socketlib: New file.
16354         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
16355         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
16356         * modules/sockets (Depends-on): Add socketlib.
16357         Suggested by Sam Steingold <sds@gnu.org>.
16358
16359 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
16360
16361         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
16362
16363         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
16364         when one needs search access to a directory but not read access.
16365         On systems where it is available, it works in some cases where
16366         O_RDONLY does not, namely on directories that are searchable but
16367         not readable, and which need only to be searchable.  If O_SEARCH
16368         is not available, fall back to the traditional method of using
16369         O_RDONLY.
16370
16371         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
16372         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
16373         when opening a directory that needs only to be searchable.
16374         * lib/chdir-safer.c (chdir_no_follow): Likewise.
16375         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
16376         * lib/openat-proc.c (openat_proc_name): Likewise.
16377         * lib/openat.c (openat_needs_fchdir): Likewise.
16378         * lib/save-cwd.c (save_cwd): Likewise.
16379         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
16380
16381 2010-08-28  Bruno Haible  <bruno@clisp.org>
16382
16383         New module 'host-cpu-c-abi'.
16384         * modules/host-cpu-c-abi: New file.
16385         * m4/host-cpu-c-abi.m4: New file, based on part of
16386         clisp/src/m4/general.m4.
16387         Requested by Sam Steingold <sds@gnu.org>.
16388
16389 2010-08-31  Eric Blake  <eblake@redhat.com>
16390         and Jim Meyering  <meyering@redhat.com>
16391
16392         hash: factor, and guard against misbehaving hasher function
16393         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
16394         of table->hasher's return value.  Also protect against a hash value
16395         so large that adding it to table->bucket results in a NULL pointer.
16396         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
16397         Use it in place of open-coded check-and-abort.
16398
16399 2010-08-30  Bruno Haible  <bruno@clisp.org>
16400
16401         hash: silence spurious clang warning
16402         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
16403         Reported by Eric Blake.
16404
16405 2010-08-30  Eric Blake  <eblake@redhat.com>
16406
16407         strstr, memmem, strcasestr: avoid leaked shell message
16408         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
16409         FreeBSD.
16410         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
16411         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
16412
16413         tests: silence clang warning
16414         * tests/test-malloca.c (do_allocation): Avoid dead store.
16415
16416 2010-08-29  Bruno Haible  <bruno@clisp.org>
16417
16418         gettext: Fix recent mistake.
16419         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
16420
16421 2010-08-29  Bruno Haible  <bruno@clisp.org>
16422
16423         selinux-h: Offer a --without-selinux option.
16424         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
16425         --without-selinux was specified, skip all tests and define
16426         HAVE_SELINUX_SELINUX_H to 0.
16427         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
16428         set LIB_SELINUX to empty.
16429         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
16430         gl_LIBSELINUX. If --without-selinux was specified, replace
16431         selinux/context.h.
16432         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
16433
16434 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16435             Bruno Haible  <bruno@clisp.org>
16436
16437         Make the module 'realloc-gnu' work again on AIX and OSF/1.
16438         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
16439         of HAVE_REALLOC.
16440         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
16441         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
16442         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
16443         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
16444
16445 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16446             Bruno Haible  <bruno@clisp.org>
16447
16448         Make the module 'calloc-gnu' work again on AIX and OSF/1.
16449         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
16450         HAVE_CALLOC.
16451         * lib/xmalloc.c: Update accordingly.
16452         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
16453         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
16454         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
16455
16456 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16457             Bruno Haible  <bruno@clisp.org>
16458
16459         Make the module 'malloc-gnu' work again on AIX and OSF/1.
16460         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
16461         HAVE_MALLOC.
16462         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
16463         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
16464         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
16465
16466 2010-08-29  Bruno Haible  <bruno@clisp.org>
16467
16468         Update modules list.
16469         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
16470         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
16471         (String handling <string.h>): Add astrxfrm.
16472         (File system functions): Add readlinkat.
16473
16474 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16475
16476         Tests for module 'realloc-gnu'.
16477         * modules/realloc-gnu-tests: New file.
16478         * tests/test-realloc-gnu.c: New file.
16479
16480         Tests for module 'calloc-gnu'.
16481         * modules/calloc-gnu-tests: New file.
16482         * tests/test-calloc-gnu.c: New file.
16483
16484         Tests for module 'malloc-gnu'.
16485         * modules/malloc-gnu-tests: New file.
16486         * tests/test-malloc-gnu.c: New file.
16487
16488 2010-08-28  Bruno Haible  <bruno@clisp.org>
16489
16490         Rename module 'realloc' -> 'realloc-gnu'.
16491         * modules/realloc-gnu: New file, copied from modules/realloc.
16492         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
16493         obsolete.
16494         * modules/mgetgroups (Depends-on): Update.
16495         * doc/posix-functions/realloc.texi: Update.
16496         * NEWS: Mention the change.
16497
16498         Rename module 'calloc' -> 'calloc-gnu'.
16499         * modules/calloc-gnu: New file, copied from modules/calloc.
16500         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
16501         obsolete.
16502         * doc/posix-functions/calloc.texi: Update.
16503         * NEWS: Mention the change.
16504
16505         Rename module 'malloc' -> 'malloc-gnu'.
16506         * modules/malloc-gnu: New file, copied from modules/malloc.
16507         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
16508         obsolete.
16509         * modules/argp (Depends-on): Update.
16510         * modules/regex (Depends-on): Update.
16511         * doc/posix-functions/malloc.texi: Update.
16512         * NEWS: Mention the change.
16513
16514 2010-08-28  Eric Blake  <eblake@redhat.com>
16515
16516         pread, pwrite: add missing dependency
16517         * modules/pread (Depends-on): Add extensions.
16518         * modules/pwrite (Depends-on): Likewise.
16519
16520 2010-08-28  Bruno Haible  <bruno@clisp.org>
16521
16522         unistr/u*-strchr: Fix tests dependencies.
16523         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
16524         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
16525         Reported by Ian Beckwith <ianb@erislabs.net>.
16526
16527 2010-08-28  Bruno Haible  <bruno@clisp.org>
16528
16529         read-file: Don't occupy too much unused memory.
16530         * lib/read-file.c (fread_file): Shrink the buffer at the end.
16531
16532 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
16533             Eric Blake  <eblake@redhat.com>
16534             Bruno Haible  <bruno@clisp.org>
16535
16536         read-file: Avoid memory reallocations with regular files.
16537         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
16538         (fread_file): With regular files, use the remaining length as the
16539         initial buffer size.  Check against overflow.
16540         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
16541         sys_stat.
16542
16543 2010-08-28  Bruno Haible  <bruno@clisp.org>
16544
16545         ftello: Relax license.
16546         * modules/ftello (License): Relax to LGPLv2+.
16547         Reported by Eric Blake.
16548
16549 2010-08-28  Bruno Haible  <bruno@clisp.org>
16550
16551         Avoid relocwrapper link errors due to gnulib replacement functions.
16552         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
16553         function.
16554         Reported by Ben Pfaff <blp@cs.stanford.edu>.
16555
16556 2010-08-28  Bruno Haible  <bruno@clisp.org>
16557
16558         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
16559         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
16560         defined.
16561         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
16562         Suggested by Eric Blake.
16563
16564 2010-08-28  Bruno Haible  <bruno@clisp.org>
16565
16566         sys_socket, netdb: Ensure socklen_t gets defined.
16567         * modules/sys_socket (Depends-on): Add socklen.
16568         * modules/netdb (Depends-on): Likewise.
16569         * modules/getaddrinfo (Depends-on): Remove socklen.
16570         * modules/getsockopt (Depends-on): Likewise.
16571         * modules/setsockopt (Depends-on): Likewise.
16572         * tests/test-sys_socket.c: Check that socklen_t is defined.
16573         * tests/test-netdb.c: Likewise.
16574         * m4/socklen.m4: Update comments.
16575         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
16576
16577 2010-08-27  Eric Blake  <eblake@redhat.com>
16578
16579         login_tty: add missing dependency
16580         * modules/login_tty (Depends-on): Add pty.
16581
16582 2010-08-26  Eric Blake  <eblake@redhat.com>
16583
16584         lib-symbol-versions: fix m4 quoting
16585         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
16586         format for AC_LINK_IFELSE.
16587
16588         glob: fix compile test
16589         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
16590
16591         btowc: fix missing file
16592         * modules/btowc (Files): Also ship locale-fr.m4.
16593
16594         lseek: fix link test
16595         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
16596         AC_LINK_IFELSE.
16597
16598         include_next: silence autoconf 2.68 warning
16599         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
16600         AC_COMPILE_IFELSE as special.
16601         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
16602         autoconf < 2.68.
16603
16604         acl: fix compilation test
16605         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
16606         AC_COMPILE_IFELSE.
16607
16608 2010-08-26  Bruno Haible  <bruno@clisp.org>
16609
16610         Modernize AC_TRY_RUN invocations.
16611         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
16612         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
16613         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
16614         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
16615         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
16616         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
16617         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
16618         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
16619         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
16620         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
16621         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
16622         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
16623         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
16624         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
16625         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
16626         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
16627         gl_MBRLEN_NUL_RETVAL): Likewise.
16628         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
16629         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
16630         Likewise.
16631         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
16632         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
16633         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
16634         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
16635         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
16636         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
16637         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
16638         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
16639         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
16640         Likewise.
16641         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
16642         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
16643         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
16644         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
16645         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
16646         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
16647         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
16648         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
16649         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
16650         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
16651
16652 2010-08-26  Bruno Haible  <bruno@clisp.org>
16653
16654         Modernize AC_TRY_LINK invocations.
16655         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
16656         AC_TRY_LINK.
16657         * m4/argp.m4 (gl_ARGP): Likewise.
16658         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
16659         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
16660         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
16661         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
16662         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
16663         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
16664         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
16665         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
16666         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
16667         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
16668         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
16669         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
16670         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
16671         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
16672         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
16673         * m4/hostent.m4 (gl_HOSTENT): Likewise.
16674         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
16675         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
16676         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
16677         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
16678         Likewise.
16679         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
16680         Likewise.
16681         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
16682         Likewise.
16683         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
16684         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
16685         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
16686         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
16687         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
16688         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
16689         * m4/servent.m4 (gl_SERVENT): Likewise.
16690         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
16691         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
16692         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
16693         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
16694         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
16695         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
16696         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
16697         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
16698         * modules/tsearch-tests (configure.ac): Likewise.
16699
16700 2010-08-26  Bruno Haible  <bruno@clisp.org>
16701
16702         Modernize AC_TRY_COMPILE invocations.
16703         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
16704         AC_TRY_COMPILE.
16705         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
16706         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
16707         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
16708         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
16709         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
16710         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
16711         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
16712         * m4/lock.m4 (gl_LOCK): Likewise.
16713         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
16714         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
16715         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
16716         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
16717         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
16718         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
16719         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
16720         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
16721         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
16722         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
16723         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
16724         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
16725         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
16726         extraneous semicolon.
16727
16728 2010-08-26  Jim Meyering  <meyering@redhat.com>
16729
16730         stat-time: relax license LGPL
16731         * modules/stat-time (License): Change from GPL to LGPL,
16732         with consent from all contributors, for use in libguile.
16733         Requested by Ludovic Courtès.
16734
16735 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
16736
16737         poll: return immediately on POLLHUP.
16738         * lib/poll.c (poll): Always set timeout before wait_timeout is
16739         computed.
16740
16741 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16742
16743         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
16744         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
16745         rmdir ("dir/.//"), unlinkat.
16746
16747 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
16748
16749         stdbool: avoid spurious failure with modern xlc
16750         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
16751
16752 2010-08-24  Bruno Haible  <bruno@clisp.org>
16753
16754         getloadavg: simplify code
16755         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
16756         gl_have_func. Update comments.
16757
16758 2010-08-24  Eric Blake  <eblake@redhat.com>
16759
16760         getloadavg: don't define SVR4 on cygwin
16761         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
16762         only define SVR4 when -lkvm is required.
16763         Reported by Yaakov Selkowitz.
16764
16765 2010-08-24  Bruno Haible  <bruno@clisp.org>
16766
16767         priv-set: fix comment
16768         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
16769
16770 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
16771
16772         priv-set: fix comments
16773         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
16774         to match code, as suggested by David Bartley in:
16775         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
16776
16777 2010-08-23  Eric Blake  <eblake@redhat.com>
16778
16779         stdbool: avoid rejecting clang
16780         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
16781         * tests/test-stdbool.c: Enable more tests if using the system
16782         <stdbool.h> instead of the gnulib replacement.
16783         (main): Move xlc bug test to a runtime test for all compilers.
16784         Reported by Anders Kaseorg.
16785
16786         argz: fix shell quoting issue
16787         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
16788         Reported by Charles Wilson.
16789
16790 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
16791             Erik Faye-Lund <kusmabite@gmail.com>
16792
16793         poll, select: handle ERROR_BROKEN_PIPE.
16794         * lib/poll.c (win32_compute_revents): Return POLLHUP when
16795         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
16796         * lib/select.c (win32_compute_revents): Do not mark a pipe
16797         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
16798
16799 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
16800
16801         fts: allow compilation with C++
16802         * lib/fts_.h: Specify extern "C" linkage with C++.
16803
16804 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16805
16806         Fix gnulib-tool sed script de-commentation for AIX sed.
16807         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
16808         sed.
16809
16810 2010-08-17  Eric Blake  <eblake@redhat.com>
16811
16812         test-stddef: test for (some) offsetof bugs
16813         * tests/test-stddef.c: Enhance test to ensure correct type of
16814         offsetof.
16815         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
16816         that we are not fixing at this time.
16817
16818 2010-08-15  Bruno Haible  <bruno@clisp.org>
16819
16820         stpncpy: Allow stpncpy to be defined as a macro.
16821         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
16822         if it's already correctly declared.
16823         * lib/string.in.h (stpncpy): Undefine before redefining.
16824         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
16825
16826 2010-08-14  Bruno Haible  <bruno@clisp.org>
16827
16828         Rename module 'memxfrm' to 'amemxfrm'.
16829         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
16830         (amemxfrm): Renamed from memxfrm.
16831         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
16832         (amemxfrm): Renamed from memxfrm.
16833         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
16834         * NEWS: Mention the change.
16835         * MODULES.html.sh (String handling <string.h>): Update.
16836         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
16837         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
16838         * lib/unicase/u16-casexfrm.c: Likewise.
16839         * lib/unicase/u32-casexfrm.c: Likewise.
16840         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
16841         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
16842         * lib/uninorm/u16-normxfrm.c: Likewise.
16843         * lib/uninorm/u32-normxfrm.c: Likewise.
16844         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
16845         memxfrm.
16846         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
16847         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
16848         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
16849         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
16850         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
16851         Suggested by Paul Eggert.
16852
16853 2010-08-14  Bruno Haible  <bruno@clisp.org>
16854
16855         Tests for module 'astrxfrm'.
16856         * modules/astrxfrm-tests: New file.
16857         * tests/test-astrxfrm.c: New file.
16858
16859         New module 'astrxfrm'.
16860         * lib/astrxfrm.h: New file.
16861         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
16862         * modules/astrxfrm: New file.
16863
16864 2010-08-14  Reuben Thomas <rrt@sc3d.org>
16865
16866         regex: Tweak doc.
16867         * doc/regex.texi (Overview): Don't mention regex.c.
16868         (GNU Regular Expression Compiling): Likewise.
16869         (Match-end-of-line Operator): Mention 'not_eol'.
16870
16871 2010-08-14  Brian Gough  <bjg@gnu.org>
16872             Bruno Haible  <bruno@clisp.org>
16873
16874         git-merge-changelog: add doc relating to use with bzr and hg.
16875         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
16876
16877 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
16878
16879         pthread: fix pthread.h creation for srcdir != builddir
16880         * modules/pthread (Makefile.am): Fix the rule to work also in a
16881         non-srcdir build.
16882
16883 2010-08-13  Karl Berry  <karl@gnu.org>
16884
16885         * doc/regex.texi (Predefined Syntaxes): @smallexample.
16886         * doc/posix-*/*: force line break before @url of POSIX
16887         specifications.
16888         Suggested by Werner Lemberg.
16889
16890 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
16891
16892         strtod: fix const diagnostic
16893         * lib/strtod.c (strtod): Don't assign const char * to char *,
16894         as this elicits a warning from GCC when warnings are enabled.
16895
16896 2010-08-10  Pádraig Brady <P@draigbrady.com>
16897         and Eric Blake  <eblake@redhat.com>
16898
16899         copy-acl: ignore ENOTSUP on HP-UX
16900         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
16901         so that it is available for HP-UX.
16902         * lib/copy-acl.c (qcopy_acl): Use it.
16903         Reported by Patrick M. Callahan.
16904
16905 2010-08-10  Eric Blake  <eblake@redhat.com>
16906
16907         open, chown: relax license
16908         * modules/open (License): Change to LGPLv2+, with consent by all
16909         authors, for use in augeas.
16910         * modules/chown (License): Likewise.
16911         * modules/lchown (Likewise): Likewise.
16912         Requested by Adam Stokes.
16913
16914 2010-08-09  Karl Berry  <karl@gnu.org>
16915
16916         * build-aux/ar-lib: new file, import from Automake.
16917         * config/srclist.txt: autocheck for updates.
16918
16919 2010-08-09  Eric Blake  <eblake@redhat.com>
16920
16921         readlinkat: adjust client modules
16922         * modules/areadlinkat (Depends-on): Use readlinkat, not
16923         symlinkat.
16924         * modules/areadlinkat-with-size (Depends-on): Likewise.
16925
16926         mknod: be more vocal about danger of running tests as root
16927         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
16928         root, since that is just asking for problems.
16929         Suggested by Bruno Haible, based on a report by Rainer Tammer.
16930
16931         readlinkat: split into its own module
16932         * modules/symlinkat: Split readlinkat...
16933         * modules/readlinkat: ...into separate module.
16934         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
16935         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
16936         * lib/symlinkat.c (readlinkat): Move...
16937         * lib/readlinkat.c: ...into new file.
16938         * modules/symlinkat-tests: Split readlinkat test...
16939         * modules/readlinkat-tests: ...into separate module.
16940         * tests/test-symlinkat.c: Split...
16941         * tests/test-readlinkat.c: ...into new file.
16942         * NEWS: Document the split.
16943         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
16944         * lib/unistd.in.h (readlinkat): Likewise.
16945         Suggested by Bruno Haible.
16946
16947 2010-08-08  Bruno Haible  <bruno@clisp.org>
16948
16949         memxfrm: Speed up.
16950         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
16951         that usually only one call to strxfrm is necessary for each string
16952         part.
16953         Reported by Paul Eggert <eggert@cs.ucla.edu>.
16954
16955 2010-08-07  Karl Berry  <karl@gnu.org>
16956
16957         * doc/posix-headers/limits.texi,
16958         * doc/posix-functions/malloc.texi,
16959         * doc/posix-functions/strsignal.texi: missing @item.
16960         * doc/ld-version-script.texi: spurious leading i.
16961         * doc/regex.texi (Interval Operators): no commas inside @var.
16962
16963 2010-08-01  Bruno Haible  <bruno@clisp.org>
16964
16965         Integrate the regex documentation.
16966         * doc/gnulib.texi: Define 'cn' index.
16967         (Regular expressions): New a chapter that includes regex.texi and
16968         regexprops-generic.texi.
16969         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
16970         syntax.
16971
16972         Whitespace cleanup.
16973         * doc/regex.texi: Remove trailing spaces.
16974
16975         Add regex documentation.
16976         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
16977         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
16978         Written by Kathy A. Hargreaves and Karl Berry.
16979
16980 2010-08-01  Bruno Haible  <bruno@clisp.org>
16981
16982         link: Update documentation.
16983         * doc/posix-functions/link.texi: Update regarding Solaris.
16984
16985 2010-07-31  Bruno Haible  <bruno@clisp.org>
16986
16987         Update modules list.
16988         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
16989         (String handling <string.h>): Add memcmp2, memxfrm.
16990         (Container data structures): Add xlist, xsublist, xoset.
16991         (Core language properties): Add alignof, unused-parameter.
16992         (Process control, Numeric conversion functions <stdlib.h>): Renamed
16993         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
16994         (Unibyte characters <ctype.h>): New section.
16995         (String handling <string.h>): New section.
16996         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
16997         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
16998         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
16999         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
17000         tan, tanh, tanl, y0, y1, yn.
17001         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
17002         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
17003         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
17004         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
17005         unlockpt, vdprintf, vdprintf-posix.
17006         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
17007         (File system functions): Add concat-filename, sys_file, sys_ioctl,
17008         xconcat-filename.
17009         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
17010         getdtablesize, pipe2, pipe2-safer.
17011         (Security): New section.
17012         (Networking functions): Add accept4.
17013         (Signal handling): Add sigpipe.
17014         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
17015         mbmemcasecoll.
17016         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
17017         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
17018         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
17019         pipe-filter-ii.
17020         (Misc): Add argp-version-etc, login_tty, parse-duration.
17021
17022 2010-07-31  Bruno Haible  <bruno@clisp.org>
17023
17024         Improve doc in MODULES.html.
17025         * modules/linkat (Description): Add the word "function".
17026         * modules/mkfifo (Description): Likewise.
17027         * modules/mknod (Description): Likewise.
17028         * modules/remove (Description): Likewise.
17029         * modules/renameat (Description): Likewise.
17030         * modules/stat (Description): Likewise.
17031         * modules/symlink (Description): Likewise.
17032         * modules/unlink (Description): Likewise.
17033
17034 2010-07-31  Bruno Haible  <bruno@clisp.org>
17035
17036         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
17037         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
17038         option --enable/disable-c++ instead of --enable/disable-cxx.
17039         * NEWS: Mention the change.
17040
17041 2010-07-31  Bruno Haible  <bruno@clisp.org>
17042
17043         readlink, areadlink: Relax test a bit.
17044         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
17045         alternative to ENOTDIR.
17046         * tests/test-areadlink.h (test_areadlink): Likewise.
17047         Reported by Rainer Tammer.
17048
17049 2010-07-31  Bruno Haible  <bruno@clisp.org>
17050
17051         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
17052         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
17053         character, perform the search using U_STRCHR.
17054         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
17055         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
17056         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
17057         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
17058         Suggested by Paolo Bonzini.
17059
17060 2010-07-31  Bruno Haible  <bruno@clisp.org>
17061
17062         unistr/u*-strstr: Fix dependencies.
17063         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
17064         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
17065         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
17066
17067 2010-07-31  Bruno Haible  <bruno@clisp.org>
17068
17069         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
17070         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
17071         the beginning of the loop.
17072         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
17073         cases in 'switch' statement.
17074
17075         unistr/u8-strchr: Fix several bugs.
17076         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
17077         the string. When not found, return NULL, not a pointer near the end.
17078
17079         More tests for unistr/u8-strchr.
17080         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
17081         that the function does not read past the first occurrence of the byte
17082         being searched.
17083         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
17084         * tests/unistr/test-u16-strchr.c (main): New function.
17085         * tests/unistr/test-u32-strchr.c (main): New function.
17086
17087 2010-07-31  Bruno Haible  <bruno@clisp.org>
17088
17089         posix-modules: Ignore backup files of documentation files.
17090         * posix-modules: grep only through files named *.texi.
17091
17092 2010-07-31  Bruno Haible  <bruno@clisp.org>
17093
17094         symlinkat: Fix documentation.
17095         * doc/posix-functions/readlinkat.texi: Fix module name.
17096
17097 2010-07-31  Bruno Haible  <bruno@clisp.org>
17098
17099         fchownat: Replace also when chown has the trailing slash bug.
17100         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
17101         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
17102         introduced on 2010-04-10.
17103         Reported by Rainer Tammer.
17104
17105 2010-07-31  Bruno Haible  <bruno@clisp.org>
17106
17107         linkat: Work around AIX 7.1 bug.
17108         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
17109         whether linkat handles trailing slash correctly. If not, replace linkat
17110         and define LINKAT_TRAILING_SLASH_BUG.
17111         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
17112         check whether (fd1,file1) points to a directory if file1 or file2 ends
17113         in a slash. Code taken from lib/link.c.
17114         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
17115         Reported by Rainer Tammer.
17116
17117 2010-07-31  Bruno Haible  <bruno@clisp.org>
17118
17119         Correctly determine whether pow is available in libc on AIX 7 with xlc.
17120         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
17121         This disables an xlc optimization that was causing wrong test results.
17122         Reported by Rainer Tammer.
17123
17124 2010-07-31  Bruno Haible  <bruno@clisp.org>
17125
17126         iconv: Work around AIX 6.1..7.1 bug.
17127         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
17128         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
17129         cross-compiling, guess no on all versions of AIX.
17130         Reported by Rainer Tammer.
17131
17132 2010-07-31  Bruno Haible  <bruno@clisp.org>
17133
17134         readlink: Relax test a bit.
17135         * tests/test-readlink.h (test_readlink): Allow different errno value
17136         when readlink is called with a file name that ends in / and refers to
17137         a file.
17138         Suggested by Eric Blake.
17139         Reported by Rainer Tammer.
17140
17141 2010-07-31  Bruno Haible  <bruno@clisp.org>
17142
17143         copysign: Does not require -lm on glibc systems.
17144         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
17145         gl_COMMON_DOUBLE_MATHFUNC.
17146         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
17147
17148 2010-07-31  Bruno Haible  <bruno@clisp.org>
17149
17150         duplocale: Work around AIX 7.1 bug.
17151         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
17152         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
17153         * lib/duplocale.c (rpl_duplocale): Update comment.
17154         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
17155         Reported by Rainer Tammer.
17156
17157 2010-07-30  Bruno Haible  <bruno@clisp.org>
17158
17159         dirfd: Avoid link error on AIX 7.1.
17160         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
17161         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
17162         exist, set REPLACE_DIRFD.
17163         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
17164         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
17165         * doc/posix-functions/dirfd.texi: Update.
17166         Reported by Rainer Tammer.
17167
17168 2010-07-30  Eric Blake  <eblake@redhat.com>
17169
17170         strtod: next round of AIX fixes
17171         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
17172         exponent.
17173         * tests/test-strtod.c (main): Enhance tests.
17174         * doc/posix-functions/strtod.texi (strtod): Document next bug.
17175         Reported by Rainer Tammer.
17176
17177         futimens: fix configure check
17178         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
17179         Reported by Bruno Haible.
17180
17181 2010-07-30  Bruno Haible  <bruno@clisp.org>
17182
17183         getline: Update regarding AIX.
17184         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
17185         Reported by Rainer Tammer.
17186
17187 2010-07-30  Bruno Haible  <bruno@clisp.org>
17188
17189         wcwidth: Drop replacement on AIX 7.
17190         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
17191         AIX 7.
17192         Reported by Rainer Tammer.
17193
17194 2010-07-30  Bruno Haible  <bruno@clisp.org>
17195
17196         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
17197         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
17198         a 'char *'.
17199         Reported by Rainer Tammer.
17200
17201 2010-07-30  Bruno Haible  <bruno@clisp.org>
17202
17203         unlink: Update regarding AIX.
17204         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
17205         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
17206         Reported by Rainer Tammer.
17207
17208 2010-07-30  Bruno Haible  <bruno@clisp.org>
17209
17210         symlink: Update regarding AIX.
17211         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
17212         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
17213         Reported by Rainer Tammer.
17214
17215 2010-07-30  Bruno Haible  <bruno@clisp.org>
17216
17217         strndup: Update regarding AIX.
17218         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
17219         AIX 7.
17220         Reported by Rainer Tammer.
17221
17222 2010-07-30  Bruno Haible  <bruno@clisp.org>
17223
17224         stat: Update regarding AIX.
17225         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
17226         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
17227         Reported by Rainer Tammer.
17228
17229 2010-07-30  Bruno Haible  <bruno@clisp.org>
17230
17231         truncl: Fix autoconf test.
17232         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
17233         whether truncl works.
17234         Reported by Rainer Tammer.
17235
17236 2010-07-30  Bruno Haible  <bruno@clisp.org>
17237
17238         round: Update regarding AIX.
17239         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
17240         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
17241         Reported by Rainer Tammer.
17242
17243 2010-07-30  Bruno Haible  <bruno@clisp.org>
17244
17245         rename: Update regarding AIX.
17246         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
17247         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
17248         Reported by Rainer Tammer.
17249
17250 2010-07-30  Bruno Haible  <bruno@clisp.org>
17251
17252         printf.m4: Update regarding AIX.
17253         * m4/printf.m4: Update comments regarding AIX.
17254         Reported by Rainer Tammer.
17255
17256 2010-07-30  Bruno Haible  <bruno@clisp.org>
17257
17258         iconv: Update regarding AIX.
17259         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
17260         AIX 7.
17261         Reported by Rainer Tammer.
17262
17263 2010-07-30  Bruno Haible  <bruno@clisp.org>
17264
17265         getopt: Update regarding AIX.
17266         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
17267         no on AIX.
17268         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
17269         Reported by Rainer Tammer.
17270
17271 2010-07-30  Bruno Haible  <bruno@clisp.org>
17272
17273         ldexpl; Update regarding AIX.
17274         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
17275         on AIX 7.
17276         Reported by Rainer Tammer.
17277
17278 2010-07-30  Bruno Haible  <bruno@clisp.org>
17279
17280         frexpl: Update regarding AIX.
17281         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
17282         on AIX 7.
17283         Reported by Rainer Tammer.
17284
17285 2010-07-30  Bruno Haible  <bruno@clisp.org>
17286
17287         open, fopen: Update regarding AIX.
17288         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
17289         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
17290         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
17291         * doc/posix-functions/fopen.texi: Likewise.
17292         Reported by Rainer Tammer.
17293
17294 2010-07-30  Bruno Haible  <bruno@clisp.org>
17295
17296         chown: Update doc regarding AIX.
17297         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
17298         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
17299         Reported by Rainer Tammer.
17300
17301 2010-07-30  Eric Blake  <eblake@redhat.com>
17302
17303         strtod: fix bug in replacement function on AIX
17304         * lib/strtod.c (strtod): Special case broken "0x" parse in
17305         underlying strtod.
17306         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
17307         * doc/posix-functions/strtod.texi (strtod): Likewise.
17308         Reported by Rainer Tammer.
17309
17310 2010-07-30  Bruno Haible  <bruno@clisp.org>
17311
17312         mbrlen: Fix cross-compilation guess for AIX.
17313         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
17314         guess. Leftover from 2008-12-22.
17315
17316 2010-07-30  Bruno Haible  <bruno@clisp.org>
17317
17318         mbrtowc: Fix cross-compilation guess for AIX.
17319         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
17320         guess. Leftover from 2008-12-21.
17321
17322 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
17323
17324         init.sh: work around trap limitation of some shells
17325         * tests/init.sh (setup_): Move exit trap outside of shell function.
17326
17327 2010-07-29  Eric Blake  <eblake@redhat.com>
17328
17329         strtod: aid debugging
17330         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
17331         understanding why strtod is rejected.
17332
17333 2010-07-28  Bruno Haible  <bruno@clisp.org>
17334
17335         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
17336         * lib/unistr/u8-chr.c: Include <string.h>.
17337         * tests/unistr/test-u8-chr.c: Likewise.
17338         * tests/unistr/test-u16-chr.c: Likewise.
17339         * tests/unistr/test-u32-chr.c: Likewise.
17340         * tests/unistr/test-u8-strchr.c: Likewise.
17341         * tests/unistr/test-u16-strchr.c: Likewise.
17342         * tests/unistr/test-u32-strchr.c: Likewise.
17343         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
17344         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
17345         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
17346         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
17347
17348 2010-07-28  Bruno Haible  <bruno@clisp.org>
17349
17350         Use spaces for indentation, not tabs.
17351         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
17352
17353 2010-07-27  Bruno Haible  <bruno@clisp.org>
17354
17355         mbspcasecmp: Fix function specification.
17356         * lib/string.in.h (mbspcasecmp): Fix specification comment.
17357         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
17358         Reported by Eric Blake <eblake@redhat.com>.
17359
17360 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
17361
17362         timespec: use cast and not conditional, as truncation isn't possible
17363         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
17364         instead of a conditional.  Comment about the situation in more detail.
17365         This undoes most of the 2009-10-29 patch.
17366
17367 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
17368
17369         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
17370         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
17371         * lib/unistr/u8-strchr.c: Likewise.
17372         * modules/unistr/u8-chr: Depend on memchr.
17373
17374         unistr/u*-strchr: add tests
17375         * modules/unistr/u8-strchr-tests: New file.
17376         * modules/unistr/u16-strchr-tests: New file.
17377         * modules/unistr/u32-strchr-tests: New file.
17378         * tests/unistr/test-strchr.h: New file.
17379         * tests/unistr/test-u8-strchr.c: New file.
17380         * tests/unistr/test-u16-strchr.c: New file.
17381         * tests/unistr/test-u32-strchr.c: New file.
17382
17383         unistr/u*-chr: test multibyte sequences more
17384         * tests/unistr/test-chr.h: Do complete testing of the characters in the
17385         test vector.
17386         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
17387         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
17388         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
17389
17390         unistr/u*-chr: test multibyte sequences
17391         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
17392
17393         unistr/u*-chr: prepare for multibyte tests
17394         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
17395         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
17396         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
17397         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
17398         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
17399         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
17400
17401 2010-07-18  Bruno Haible  <bruno@clisp.org>
17402
17403         unistr/u8-strchr: Optimize non-ASCII argument case.
17404         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
17405         because the first byte often matches anyway.
17406         Reported by Pádraig Brady <P@draigbrady.com>.
17407
17408 2010-07-15  Karl Berry  <karl@gnu.org>
17409
17410         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
17411
17412 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
17413
17414         getcwd: on Solaris, work better if ancestors are inaccessible
17415         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
17416         buffer and size, try again with a large buffer.  This works better
17417         on Solaris, since its getcwd succeeds even if the path to the root
17418         is inaccessible, and this is helpful in common cases such as .zfs
17419         hidden directories.  Problem reported by J Chapman Flack in
17420         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
17421         Use system getcwd if it's declared, not merely if it's partly
17422         working; use the partly-working test only to avoid needless effort
17423         if the system getcwd fails.
17424         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
17425         comment that was already obsolete and is now even more obsolete.
17426         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
17427         now might call strdup.
17428
17429 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
17430
17431         pthread: Add enough so that coreutils/src/sort.c compiles.
17432         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
17433         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
17434         gnulib. Include <sched.h> and <time.h>, as per POSIX.
17435         Include <sys/types.h>, in case it defines pthread_t.
17436         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
17437         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
17438         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
17439         (pthread_rwlockattr_t, pthread_spinlock_t):
17440         New typedefs, if HAVE_PTHREAD_T is not defined.
17441         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
17442         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
17443         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
17444         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
17445         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
17446         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
17447         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
17448         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
17449         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
17450         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
17451         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
17452         New macros.
17453         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
17454         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
17455         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
17456         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
17457         (pthread_spin_unlock): New dummy functions.
17458         (pthread_create): Return EAGAIN; don't set errno.
17459         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
17460         require AC_C_INLINE.
17461         * modules/pthread (Depends-on): Add sched, time.
17462         (pthread.h): Use AM_V_GEN.
17463
17464 2010-07-13  Bruno Haible  <bruno@clisp.org>
17465
17466         striconveh: Don't malloc memory if the result buffer is sufficient.
17467         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
17468         buffer if its size is sufficient.
17469         Reported by Ludovic Courtès <ludo@gnu.org>.
17470
17471 2010-07-13  Bruno Haible  <bruno@clisp.org>
17472
17473         strtod: Add safety check.
17474         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
17475
17476 2010-07-12  Bruno Haible  <bruno@clisp.org>
17477
17478         Unify tests that set gl_cv_func_ldexpl_no_libm.
17479         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
17480         gl_FUNC_LDEXPL.
17481         (gl_FUNC_LDEXPL): Invoke it.
17482         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
17483
17484 2010-07-12  Bruno Haible  <bruno@clisp.org>
17485
17486         Unify tests that set gl_cv_func_ldexp_no_libm.
17487         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
17488         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
17489         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
17490         (configure.ac): Simply invoke gl_FUNC_LDEXP.
17491         * modules/strtod (Files): Add m4/ldexp.m4.
17492
17493 2010-07-12  Bruno Haible  <bruno@clisp.org>
17494
17495         Unify tests that set gl_cv_func_frexpl_no_libm.
17496         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
17497         gl_FUNC_FREXPL_NO_LIBM.
17498         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
17499         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
17500
17501 2010-07-12  Bruno Haible  <bruno@clisp.org>
17502
17503         Unify tests that set gl_cv_func_frexp_no_libm.
17504         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
17505         gl_FUNC_FREXP_NO_LIBM.
17506         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
17507         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
17508
17509 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
17510
17511         memcoll: clarify sizes versus lengths, document better, and tweak perf
17512         * lib/memcoll.c (strcoll_loop, memcoll0):
17513         Improve quality of descriptive comments.  Name variables
17514         consistently as to whether they are lengths (which do not include
17515         terminating null) versus sizes (which do).
17516         * lib/xmemcoll.c (xmemcoll0): Likewise.
17517         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
17518         returned when s1size == 0; this is easier to compile and saves
17519         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
17520
17521 2010-07-12  Bruno Haible  <bruno@clisp.org>
17522
17523         Tests for module '_Exit'.
17524         * modules/_Exit-tests: New file.
17525         * tests/test-_Exit.sh: New file.
17526         * tests/test-_Exit.c: New file.
17527
17528         New module '_Exit'.
17529         * lib/stdlib.in.h (__attribute__): New macro.
17530         (_Exit): New declaration.
17531         * lib/_Exit.c: New file.
17532         * m4/_Exit.m4: New file.
17533         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
17534         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
17535         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
17536         * modules/_Exit: New file.
17537         * tests/test-stdlib-c++.cc (_Exit): Check signature.
17538         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
17539
17540 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
17541
17542         strtod: make it more-accurate typically, and don't require libm
17543         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
17544         Include limits.h.  Don't include string.h.
17545         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
17546         (locale_isspace): New function, so that no casts are needed to
17547         check whether *s is a space.
17548         (ldexp): Provide an unused dummy if not available.
17549         (scale_radix_exp, parse_number, underlying_strtod): New functions.
17550         (strtod): Use them.  This implementation prefers to use the
17551         underlying strtod if available, falling back on our own code
17552         only to fix known bugs.  This is more likely to produce an
17553         accurate result.  Also, it avoids the use of libm functions.
17554         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
17555         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
17556         was absent, but it caused a test failure with coreutils.
17557         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
17558         with libm.
17559         * modules/strtod (Makefile.am, Link): libm is no longer needed.
17560         * modules/strtod-tests (Makefile.am): Likewise.
17561
17562 2010-07-11  Pádraig Brady  <P@draigBrady.com>
17563             Bruno Haible  <bruno@clisp.org>
17564
17565         unistr/u8-strchr: Optimize ASCII argument case.
17566         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
17567
17568 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
17569
17570         (x)memcoll: minor tweaks
17571         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
17572         is after the type that it qualifies.
17573         (memcoll0): Likewise.
17574         * lib/memcoll.h (memcoll0): Likewise.
17575         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
17576         * lib/xmemcoll.h (xmemcoll0): Likewise.
17577         * lib/memcoll.c (memcoll0): Correct the comment.  This function
17578         differs from memcoll in that the NUL byte is part of the argument.
17579         Omit the abort-checks, as performance is a real issue here.  Plus,
17580         the checks were wrong anyway (an off-by-one error).  Omit local
17581         variable 'diff', as it's a bit clearer that way.
17582         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
17583         no longer needed.
17584
17585 2010-07-08  Chen Guo <chenguo4@yahoo.com>
17586
17587         (x)memcoll: speedup when input is known to be NUL delimited
17588         * lib/memcoll.c: Include stdlib.
17589         (memcoll0): New function.
17590         (strcoll_loop): New function, refactored for use in both memcoll
17591         and memcoll0.
17592         * lib/memcoll.h (memcoll0): Add prototype.
17593         * lib/xmemcoll.c (xmemcoll0): New function.
17594         (collate_error): New function, refactored for use in both xmemcoll
17595         and xmemcoll0.
17596         * lib/xmemcoll.h (xmemcoll0): Add prototype.
17597         * m4/memcoll.m4: add inline invocation.
17598
17599 2010-07-06  Pádraig Brady  <P@draigBrady.com>
17600
17601         * build-aux/bootstrap: Remove any local translations
17602         from the translation project synchronization directory,
17603         so that local only translations are not distributed.
17604
17605 2010-07-04  Bruno Haible  <bruno@clisp.org>
17606
17607         fsusage: Clarify which code applies to which platforms.
17608         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
17609         platform.
17610         * lib/fsusage.c (get_fs_usage): Likewise.
17611
17612 2010-07-04  Bruno Haible  <bruno@clisp.org>
17613
17614         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
17615         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
17616         Reported by Martin Lambers <marlam@marlam.de>.
17617
17618 2010-07-04  Jim Meyering  <meyering@redhat.com>
17619
17620         hash: once again explicitly disallow insertion of NULL
17621         * lib/hash.c (hash_insert0): Reinstate just-removed test:
17622         inserting a NULL pointer cannot work with these functions.
17623         Add a comment with details.
17624         This reverts part of the 2010-07-01 commit, 5bef1a35
17625         "hash: extend module to deal with non-pointer keys".
17626
17627 2010-07-01  Bruno Haible  <bruno@clisp.org>
17628
17629         stdbool: Update doc.
17630         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
17631         Info from Christian Weisgerber <naddy@mips.inka.de>.
17632
17633 2010-07-01  Jim Meyering  <meyering@redhat.com>
17634
17635         hash: extend module to deal with non-pointer keys
17636         * lib/hash.c (hash_insert0): New interface, much like hash_insert
17637         but that allows insertion of non-pointer entries.
17638         Do not disallow an ENTRY value of NULL.
17639         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
17640         * lib/hash.h (hash_insert0): Declare.
17641
17642 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
17643
17644         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
17645         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
17646         not present (i.e. with autoconf 2.59 and when using gettextize, not
17647         gnulib), require AC_GNU_SOURCE instead.
17648
17649 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
17650
17651         idpriv-drop: Fix tests.
17652         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
17653         not to the test-idpriv-droptemp program.
17654
17655 2010-06-29  Bruno Haible  <bruno@clisp.org>
17656
17657         string: Fix syntax error with g++ 2.96.
17658         * lib/string.in.h (__pure__): Remove definition.
17659         (_GL_ATTRIBUTE_PURE): New macro.
17660         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
17661         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
17662         Reported by Christian Weisgerber <naddy@mips.inka.de>.
17663
17664 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
17665
17666         unitypes: Fix bug introduced on 2010-05-18.
17667         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
17668
17669 2010-06-22  Eric Blake  <eblake@redhat.com>
17670
17671         memmem: slight optimization
17672         * lib/str-two-way.h (critical_factorization): Update comments.
17673         Reduce work during factorization phase.
17674         Reported by Carlos Bueno <carlos@bueno.org>.
17675
17676 2010-06-21  Bruno Haible  <bruno@clisp.org>
17677
17678         Fix HAVE_CALLOC_POSIX misnomer.
17679         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
17680         !HAVE_CALLOC_POSIX.
17681         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
17682         HAVE_CALLOC_POSIX.
17683         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
17684         instead of HAVE_CALLOC_POSIX.
17685         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
17686         HAVE_CALLOC_POSIX.
17687
17688         Use modern idiom for calloc() replacement.
17689         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
17690         AC_FUNC_CALLOC.
17691         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
17692         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
17693         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
17694         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
17695         (gl_REPLACE_CALLOC): New macro.
17696
17697 2010-06-21  Bruno Haible  <bruno@clisp.org>
17698
17699         Fix HAVE_REALLOC_POSIX misnomer.
17700         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
17701         !HAVE_REALLOC_POSIX.
17702         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
17703         HAVE_REALLOC_POSIX.
17704         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
17705         instead of HAVE_REALLOC_POSIX.
17706         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
17707         HAVE_REALLOC_POSIX.
17708
17709         Use modern idiom for realloc() replacement.
17710         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
17711         AC_FUNC_REALLOC.
17712         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
17713         Autoconf's AC_FUNC_REALLOC.
17714         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
17715         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
17716         (gl_REPLACE_REALLOC): New macro.
17717         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
17718
17719 2010-06-21  Bruno Haible  <bruno@clisp.org>
17720
17721         Fix HAVE_MALLOC_POSIX misnomer.
17722         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
17723         !HAVE_MALLOC_POSIX.
17724         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
17725         HAVE_MALLOC_POSIX.
17726         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
17727         instead of HAVE_MALLOC_POSIX.
17728         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
17729         HAVE_MALLOC_POSIX.
17730
17731         Use modern idiom for malloc() replacement.
17732         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
17733         AC_FUNC_MALLOC.
17734         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
17735         Autoconf's AC_FUNC_MALLOC.
17736         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
17737         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
17738         (gl_REPLACE_MALLOC): New macro.
17739         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
17740
17741 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
17742
17743         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
17744         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
17745         This macro takes 3 arguments, not 4.
17746
17747 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
17748
17749         ipv6: fix detection under mingw
17750         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
17751         in6_addr.
17752
17753 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
17754
17755         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
17756         that strtod() works when cross-compiling to a glibc version known
17757         to work.
17758
17759 2010-06-15  Bruno Haible  <bruno@clisp.org>
17760
17761         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
17762
17763 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
17764
17765         select: Correct timeout.
17766         * lib/select.c (rpl_select): Compute wait_timeout correctly.
17767
17768 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
17769
17770         git-version-gen: init shell var to avoid env var influence
17771         * build-aux/git-version-gen (v): Init shell var to empty.
17772
17773 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
17774
17775         priv-set: Don't assume that priv.h exists merely because getppriv does.
17776         See Jan Andersen's bug report about AIX 5L in
17777         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
17778         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
17779         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
17780         * lib/priv-set.h: Likewise.
17781         * tests/test-priv-set.c: Likewise.
17782
17783 2010-06-13  Bruno Haible  <bruno@clisp.org>
17784
17785         relocatable: Make it easier to test whether to install wrappers.
17786         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
17787         RELOCATABLE_VIA_WRAPPER.
17788
17789 2010-06-13  Bruno Haible  <bruno@clisp.org>
17790
17791         gnulib-tool: Display specified modules and dependencies differently.
17792         * gnulib-tool (func_show_module_list): New function.
17793         (func_import, func_create_testdir): Invoke it.
17794         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
17795
17796 2010-06-13  Bruno Haible  <bruno@clisp.org>
17797
17798         gnulib-tool: Align code of func_import and func_create_testdir.
17799         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
17800         specified_modules.
17801
17802 2010-06-12  Jim Meyering  <meyering@redhat.com>
17803
17804         test-inttostr: avoid spurious failure on Solaris 9
17805         * tests/test-inttostr.c (main): Skip the test when snprintf fails
17806         to accept "%ju".  Reported by Bruno Haible.
17807
17808 2010-06-11  Jim Meyering  <meyering@redhat.com>
17809
17810         test-sys_socket: mark variables as used more readably
17811         * tests/test-sys_socket.c (main): Mark otherwise unused variables
17812         as "used" explicitly via (void) statement casts.  This is more
17813         readable than using them in an artificial return expression.
17814         Suggestion from Bruno Haible.
17815
17816 2010-06-11  Bruno Haible  <bruno@clisp.org>
17817
17818         Avoid some more warnings from "gcc -Wwrite-strings".
17819         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
17820         to 'const char *'.
17821         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
17822         * tests/test-c-strcasestr.c (main): Likewise.
17823         * tests/test-mbscasestr1.c (main): Likewise.
17824         * tests/test-mbscasestr2.c (main): Likewise.
17825         * tests/test-memmem.c (main): Likewise.
17826         * tests/test-strstr.c (main): Likewise.
17827         * tests/test-strcasestr.c (main): Likewise.
17828
17829 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17830
17831         init.sh: change framework_failure_ to fail with status 99, not 1
17832         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
17833         automake's parallel-tests rule that this is an unexpected failure,
17834         even if the test is listed in XFAIL_TESTS.
17835
17836 2010-06-11  Jim Meyering  <meyering@redhat.com>
17837
17838         test-inttostr: avoid warnings about 4-6KB literal strings
17839         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
17840         Include "macros.h", for its definition of ASSERT.
17841         (CK): s/assert/ASSERT/
17842         * modules/inttostr-tests (Files): Add macros.h.
17843
17844         init.sh: don't use $ME_ or skip_ before they are defined
17845         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
17846         their first uses.  Also hoist their companions: warn_, fail_,
17847         framework_failure_, $stderr_fileno.  Prompted by a patch from
17848         Stefano Lattarini.
17849
17850         test-sys_socket: avoid set-but-not-used warnings from gcc
17851         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
17852         avoid warning about set-but-not-used variables.
17853
17854         test-xvasprintf: avoid 'const' discard warnings
17855         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
17856         "const" when assigning from literal strings.
17857         (test_xasprintf): Add "void" in function argument list to placate
17858         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
17859
17860         tests: avoid compilation warnings in argmatch and exclude tests...
17861         in packages that define ARGMATCH_DIE_DECL, like coreutils.
17862         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
17863         Since it always exits, declare with the "noreturn" attribute.
17864         * tests/test-argmatch.c: Likewise.
17865
17866         tests: avoid 'const' discard warnings in mbsstr tests
17867         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
17868         * tests/test-mbsstr2.c (main): Likewise.
17869
17870         test-verify: avoid warning from gcc's -Wmissing-declarations
17871         * tests/test-verify.c (function): Declare to be static.
17872
17873         test-inttostr.c: include <string.h> for use of strcmp
17874         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
17875
17876         test-linkat: avoid failed assertion on "other" architectures
17877         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
17878         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
17879         sparc: https://bugs.launchpad.net/bugs/591968
17880
17881 2010-06-11  Jim Meyering  <meyering@redhat.com>
17882
17883         printf.m4: avoid autoconf's "Expanded Before Required" warning
17884         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
17885         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
17886         autoconf warning.
17887
17888 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
17889
17890         Replacement header templates are now named with ".in", not "_".
17891         * doc/gnulib-intro.texi: Correct.
17892
17893 2010-06-10  Jim Meyering  <meyering@redhat.com>
17894
17895         inttostr-tests: depend on snprintf, not snprintf-posix
17896         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
17897         snprintf-posix, to avoid this aclocal failure:
17898           missing file gnulib-tests/vasnprintf.c
17899           configure.ac:45: error: expected source file, required through \
17900           AC_LIBSOURCES, not found
17901
17902 2010-06-10  Jim Meyering  <meyering@redhat.com>
17903
17904         inttostr: add a new function, inttostr, and tests
17905         The namesake function was not available.  The existence of the
17906         template file, inttostr.c makes its addition nontrivial.
17907         * lib/anytostr.c: Rename from inttostr.c.
17908         (anytostr): Rename from inttostr.
17909         * lib/inttostr.c: New file.
17910         * modules/inttostr (Files): Add anytostr.c.
17911         (Makefile.am): Set lib_SOURCES instead of ...
17912         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
17913         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
17914         * lib/offtostr.c: Likewise.
17915         * lib/uinttostr.c: Likewise.
17916         * lib/umaxtostr.c: Likewise.
17917         * modules/inttostr-tests: New file.
17918         * tests/test-inttostr.c: New file.  Test these functions.
17919
17920 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
17921             Bruno Haible  <bruno@clisp.org>
17922
17923         Add "Extending Gnulib" chapter to manual.
17924         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
17925         chapter.
17926         (Extending Gnulib): New chapter.
17927         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
17928         chapter.
17929
17930 2010-06-09  Bruno Haible  <bruno@clisp.org>
17931
17932         Avoid relocwrapper link errors due to gnulib replacement functions.
17933         * lib/areadlink.c: Use the system's malloc, realloc functions.
17934         (areadlink): Set errno to ENOMEM explicitly.
17935         * modules/areadlink (Depends-on): Remove malloc-posix.
17936         Reported by Ben Pfaff <blp@cs.stanford.edu>.
17937
17938 2010-06-09  Bruno Haible  <bruno@clisp.org>
17939
17940         Avoid relocwrapper link errors due to gnulib replacement functions.
17941         * lib/canonicalize-lgpl.c: Use the system's malloc function.
17942         * lib/malloca.c: Likewise.
17943         * lib/relocatable.c: Likewise.
17944         * lib/progreloc.c: Use the system's malloc, sprintf functions.
17945         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
17946         * lib/setenv.c: Use the system's malloc, realloc functions.
17947         * lib/strerror.c: Use the system's sprintf function.
17948         Reported by Ben Pfaff <blp@cs.stanford.edu>.
17949
17950 2010-06-04  Bruno Haible  <bruno@clisp.org>
17951
17952         Prefer documented low-level autoconf macro names.
17953         * m4/lib-link.m4: Use m4_translit instead of translit.
17954         * m4/environ.m4: Likewise.
17955         * m4/mathfunc.m4: Likewise.
17956         * m4/onceonly.m4: Likewise.
17957         * m4/stdint.m4: Likewise.
17958         Suggested by Eric Blake.
17959
17960 2010-06-04  Martin Lambers  <marlam@marlam.de>
17961             Bruno Haible  <bruno@clisp.org>
17962
17963         havelib: Allow library names with '+' characters.
17964         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
17965         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
17966
17967 2010-06-09  Bruno Haible  <bruno@clisp.org>
17968
17969         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
17970         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
17971         realloc failed.
17972
17973 2010-06-08  Peter Simons  <simons@cryp.to>
17974
17975         maint.mk: make the news-check rule more configurable
17976         * top/maint.mk (news-check-lines-spec): New variable.
17977         (news-check): Use "sed -n 1,10p" in place of "head".
17978
17979 2010-06-07  Jim Meyering  <meyering@redhat.com>
17980
17981         do-release-commit-and-tag: fix typo in --help
17982         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
17983
17984         regex: avoid new dead-code warning with gcc-4.6.0
17985         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
17986         if-block containing a while-loop.  It's been unused for at least
17987         5 years.
17988
17989 2010-06-05  Bruno Haible  <bruno@clisp.org>
17990
17991         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
17992         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
17993
17994 2010-06-04  Bruno Haible  <bruno@clisp.org>
17995
17996         Update to GNU gettext 0.18.1.
17997         * modules/gettext (configure.ac): Require gettext infrastructure from
17998         version 0.18.1.
17999
18000 2010-06-03  Bruno Haible  <bruno@clisp.org>
18001
18002         Don't use AC_LIBOBJ with file names in subdirectories.
18003         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
18004         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
18005         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
18006         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
18007         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
18008         gl_LIBUNISTRING_LIBSOURCE.
18009         (Makefile.am): Augment lib_SOURCES here, conditionally.
18010         * NEWS: Drop requirement for Automake option 'subdir-objects'.
18011
18012 2010-06-03  Bruno Haible  <bruno@clisp.org>
18013
18014         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
18015         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
18016         expansion does not end with a newline.
18017         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
18018         unnecessary newline.
18019
18020 2010-06-03  Bruno Haible  <bruno@clisp.org>
18021
18022         Reduce dependencies.
18023         * tests/test-quotearg.h: New file, extracted from
18024         tests/test-quotearg.c.
18025         * tests/test-quotearg-simple.c: New file, extracted from
18026         tests/test-quotearg.c.
18027         * tests/test-quotearg.c: Don't include <ctype.h>.
18028         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
18029         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
18030         use_quote_double_quotes, use_quotearg_colon): Moved to
18031         tests/test-quotearg.h.
18032         (results_g, flag_results, custom_quotes, custom_results): Moved
18033         to tests/test-quotearg-simple.c.
18034         (main): Moved the part that does not depend on gettext to
18035         tests/test-quotearg-simple.c. Return 77 if the test cannot be
18036         performed.
18037         * modules/quotearg-simple: New file.
18038         * modules/quotearg-simple-tests: New file.
18039         * modules/quotearg (Depends-on): Add quotearg-simple.
18040         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
18041         (Files): Add tests/test-quotearg.h.
18042         Reported by Paolo Bonzini.
18043
18044 2010-06-03  Bruno Haible  <bruno@clisp.org>
18045
18046         Reduce dependencies.
18047         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
18048
18049 2010-06-03  Bruno Haible  <bruno@clisp.org>
18050
18051         time: Undefine more broken macros.
18052         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
18053         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
18054         Reported by Eric Blake.
18055
18056 2010-06-03  Bruno Haible  <bruno@clisp.org>
18057
18058         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
18059         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
18060         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
18061         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
18062         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
18063         Reported by Ludovic Courtès <ludo@gnu.org>.
18064
18065 2010-06-02  Eric Blake  <eblake@redhat.com>
18066
18067         time: work with mingw + pthreads-win32 library
18068         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
18069         if timespec is defined only in pthread.h.
18070         * modules/time (Makefile.am): Substitute it.
18071         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
18072         <pthread.h>, when needed.
18073         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
18074         from the library.
18075
18076 2010-05-31  Bruno Haible  <bruno@clisp.org>
18077
18078         Avoid expanding two macros in the wrong order.
18079         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
18080         gl_LIBUNISTRING if it is defined.
18081         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
18082         autoconf >= 2.64.
18083         Reported by Ludovic Courtès <ludo@gnu.org>.
18084
18085 2010-05-27  Jim Meyering  <meyering@redhat.com>
18086
18087         maint.mk: also prohibit "#undef" of always-defined symbols
18088         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
18089         Allow more than one space before the symbol name.
18090         (sc_prohibit_always-defined_macros): Use grep's -E, now that
18091         the regexp uses alternation.
18092
18093 2010-05-26  Eric Blake  <eblake@redhat.com>
18094
18095         maint.mk: avoid echo -e
18096         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
18097         Convert all uses of echo -* to printf.
18098         Reported by Matthias Bolte.
18099
18100 2010-05-25  Bruno Haible  <bruno@clisp.org>
18101
18102         Update to GNU gettext 0.18, part 2.
18103         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
18104         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
18105
18106 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18107
18108         Add missing include in test-pwrite.c.
18109         * tests/test-pwrite.c: Include string.h, for strcmp.
18110
18111 2010-05-24  Bruno Haible  <bruno@clisp.org>
18112
18113         * NEWS: Mention requirement for Automake option 'subdir-objects'.
18114
18115 2010-05-24  Bruno Haible  <bruno@clisp.org>
18116
18117         Don't use conversion with transliteration in u{8,16,32}_strcoll.
18118         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
18119         iconveh_error argument.
18120         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
18121         U_STRCONV_TO_LOCALE.
18122         * lib/unistr/u16-strcoll.c: Likewise.
18123         * lib/unistr/u32-strcoll.c: Likewise.
18124         * modules/unistr/u8-strcoll (Depends-on): Add
18125         uniconv/u8-strconv-to-enc, localcharset. Remove
18126         uniconv/u8-strconv-to-locale.
18127         (configure.ac): Bump version number.
18128         * modules/unistr/u16-strcoll (Depends-on): Add
18129         uniconv/u16-strconv-to-enc, localcharset. Remove
18130         uniconv/u16-strconv-to-locale.
18131         (configure.ac): Bump version number.
18132         * modules/unistr/u32-strcoll (Depends-on): Add
18133         uniconv/u32-strconv-to-enc, localcharset. Remove
18134         uniconv/u32-strconv-to-locale.
18135         (configure.ac): Bump version number.
18136
18137 2010-05-24  Bruno Haible  <bruno@clisp.org>
18138
18139         Avoid a test failure on NetBSD 5.0.
18140         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
18141         an iconv() bug.
18142
18143 2010-05-24  Bruno Haible  <bruno@clisp.org>
18144
18145         Adjust #include directive style.
18146         * modules/regex (Includes): Recommend to write <regex.h>.
18147
18148 2010-05-24  Bruno Haible  <bruno@clisp.org>
18149
18150         regex: Don't require alloca.
18151         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
18152         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
18153         only inside if (0).
18154
18155 2010-05-23  Jim Meyering  <meyering@redhat.com>
18156
18157         test-renameat.c: include <sys/stat.h>
18158         * tests/test-renameat.c: Include <sys/stat.h>; required for
18159         definition of S_IS* macros.
18160
18161 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
18162
18163         Update maintainer documentation for 'relocatable-prog' module.
18164         * doc/relocatable-maint.texi: Update.
18165         Comments by Bruno Haible.
18166
18167 2010-05-23  Bruno Haible  <bruno@clisp.org>
18168
18169         git-merge-changelog: Enable --split-merged-entry by default.
18170         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
18171         (usage): Don't mention this option any more.
18172         Reported by Ralf Wildenhues.
18173
18174 2010-05-23  Jim Meyering  <meyering@redhat.com>
18175
18176         test-pwrite: do not leave behind a test file named "out"
18177         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
18178         The trivial-looking use of init.sh is really necessary.
18179         It ensures that the temporary file, "out", is created in
18180         a temporary directory, and removed upon termination.
18181         * tests/test-pwrite.sh: Re-add file.
18182         * modules/pwrite-tests: Reference it.
18183
18184 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18185
18186         Fix output redirection buglet in init.sh.
18187         * tests/init.sh: Fix redirection of stderr.
18188
18189 2010-05-20  Simon Josefsson  <simon@josefsson.org>
18190
18191         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
18192
18193 2010-05-17  Simon Josefsson  <simon@josefsson.org>
18194
18195         * modules/valgrind-tests: New file.
18196         * m4/valgrind-tests.m4: New file.
18197         * doc/valgrind-tests.texi: New file.
18198         * doc/gnulib.texi (Running self-tests under valgrind): New
18199         section.
18200
18201 2010-05-19  Bruno Haible  <bruno@clisp.org>
18202
18203         Clean up dead code in recent commit.
18204         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
18205         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
18206         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
18207         Suggested by Paolo Bonzini.
18208
18209 2010-05-19  Bruno Haible  <bruno@clisp.org>
18210
18211         Avoid valgrind error reports from libunistring.
18212         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
18213         * modules/libunistring (Files): Add it.
18214         * modules/libunistring-optional (Files): Likewise.
18215
18216 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
18217             Bruno Haible  <bruno@clisp.org>
18218
18219         New module 'libunistring-optional'.
18220         * modules/libunistring-optional: New file.
18221         * m4/libunistring-base.m4: New file.
18222         * m4/libunistring-optional.m4: New file.
18223         * lib/unicase.in.h: Renamed from lib/unicase.h.
18224         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
18225         * lib/unictype.in.h: Renamed from lib/unictype.h.
18226         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
18227         * lib/uniname.in.h: Renamed from lib/uniname.h.
18228         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
18229         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
18230         * lib/unistr.in.h: Renamed from lib/unistr.h.
18231         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
18232         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
18233         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
18234         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
18235         gl_LIBUNISTRING. If the library was found, determine the installed
18236         version and set LIBUNISTRING_VERSION.
18237         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
18238         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
18239         handle a configuration option --with-included-libunistring.
18240         * modules/libunistring (Files): Add m4/absolute-header.m4.
18241         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
18242         Add m4/libunistring-base.m4.
18243         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18244         (Makefile.am): Build unicase.h from unicase.in.h.
18245         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
18246         Add m4/libunistring-base.m4.
18247         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18248         (Makefile.am): Build uniconv.h from uniconv.in.h.
18249         * modules/unictype/base (Files): Use unictype.in.h instead of
18250         unictype.h. Add m4/libunistring-base.m4.
18251         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18252         (Makefile.am): Build unictype.h from unictype.in.h.
18253         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
18254         Add m4/libunistring-base.m4.
18255         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18256         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
18257         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
18258         Add m4/libunistring-base.m4.
18259         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18260         (Makefile.am): Build uniname.h from uniname.in.h.
18261         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
18262         Add m4/libunistring-base.m4.
18263         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18264         (Makefile.am): Build uninorm.h from uninorm.in.h.
18265         * modules/unistdio/base (Files): Use unistdio.in.h instead of
18266         unistdio.h. Add m4/libunistring-base.m4.
18267         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18268         (Makefile.am): Build unistdio.h from unistdio.in.h.
18269         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
18270         Add m4/libunistring-base.m4.
18271         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18272         (Makefile.am): Build unistr.h from unistr.in.h.
18273         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
18274         Add m4/libunistring-base.m4.
18275         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18276         (Makefile.am): Build unitypes.h from unitypes.in.h.
18277         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
18278         Add m4/libunistring-base.m4.
18279         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18280         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
18281         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
18282         uniwidth.h. Add m4/libunistring-base.m4.
18283         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18284         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
18285         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
18286         instead of augmenting lib_SOURCES.
18287         * modules/unicase/empty-suffix-context: Likewise.
18288         * modules/unicase/locale-language: Likewise.
18289         * modules/unicase/tolower: Likewise.
18290         * modules/unicase/totitle: Likewise.
18291         * modules/unicase/toupper: Likewise.
18292         * modules/unicase/u8-casecmp: Likewise.
18293         * modules/unicase/u8-casecoll: Likewise.
18294         * modules/unicase/u8-casefold: Likewise.
18295         * modules/unicase/u8-casexfrm: Likewise.
18296         * modules/unicase/u8-ct-casefold: Likewise.
18297         * modules/unicase/u8-ct-tolower: Likewise.
18298         * modules/unicase/u8-ct-totitle: Likewise.
18299         * modules/unicase/u8-ct-toupper: Likewise.
18300         * modules/unicase/u8-is-cased: Likewise.
18301         * modules/unicase/u8-is-casefolded: Likewise.
18302         * modules/unicase/u8-is-lowercase: Likewise.
18303         * modules/unicase/u8-is-titlecase: Likewise.
18304         * modules/unicase/u8-is-uppercase: Likewise.
18305         * modules/unicase/u8-prefix-context: Likewise.
18306         * modules/unicase/u8-suffix-context: Likewise.
18307         * modules/unicase/u8-tolower: Likewise.
18308         * modules/unicase/u8-totitle: Likewise.
18309         * modules/unicase/u8-toupper: Likewise.
18310         * modules/unicase/u16-casecmp: Likewise.
18311         * modules/unicase/u16-casecoll: Likewise.
18312         * modules/unicase/u16-casefold: Likewise.
18313         * modules/unicase/u16-casexfrm: Likewise.
18314         * modules/unicase/u16-ct-casefold: Likewise.
18315         * modules/unicase/u16-ct-tolower: Likewise.
18316         * modules/unicase/u16-ct-totitle: Likewise.
18317         * modules/unicase/u16-ct-toupper: Likewise.
18318         * modules/unicase/u16-is-cased: Likewise.
18319         * modules/unicase/u16-is-casefolded: Likewise.
18320         * modules/unicase/u16-is-lowercase: Likewise.
18321         * modules/unicase/u16-is-titlecase: Likewise.
18322         * modules/unicase/u16-is-uppercase: Likewise.
18323         * modules/unicase/u16-prefix-context: Likewise.
18324         * modules/unicase/u16-suffix-context: Likewise.
18325         * modules/unicase/u16-tolower: Likewise.
18326         * modules/unicase/u16-totitle: Likewise.
18327         * modules/unicase/u16-toupper: Likewise.
18328         * modules/unicase/u32-casecmp: Likewise.
18329         * modules/unicase/u32-casecoll: Likewise.
18330         * modules/unicase/u32-casefold: Likewise.
18331         * modules/unicase/u32-casexfrm: Likewise.
18332         * modules/unicase/u32-ct-casefold: Likewise.
18333         * modules/unicase/u32-ct-tolower: Likewise.
18334         * modules/unicase/u32-ct-totitle: Likewise.
18335         * modules/unicase/u32-ct-toupper: Likewise.
18336         * modules/unicase/u32-is-cased: Likewise.
18337         * modules/unicase/u32-is-casefolded: Likewise.
18338         * modules/unicase/u32-is-lowercase: Likewise.
18339         * modules/unicase/u32-is-titlecase: Likewise.
18340         * modules/unicase/u32-is-uppercase: Likewise.
18341         * modules/unicase/u32-prefix-context: Likewise.
18342         * modules/unicase/u32-suffix-context: Likewise.
18343         * modules/unicase/u32-tolower: Likewise.
18344         * modules/unicase/u32-totitle: Likewise.
18345         * modules/unicase/u32-toupper: Likewise.
18346         * modules/unicase/ulc-casecmp: Likewise.
18347         * modules/unicase/ulc-casecoll: Likewise.
18348         * modules/unicase/ulc-casexfrm: Likewise.
18349         * modules/uniconv/u8-conv-from-enc: Likewise.
18350         * modules/uniconv/u8-conv-to-enc: Likewise.
18351         * modules/uniconv/u8-strconv-from-enc: Likewise.
18352         * modules/uniconv/u8-strconv-from-locale: Likewise.
18353         * modules/uniconv/u8-strconv-to-enc: Likewise.
18354         * modules/uniconv/u8-strconv-to-locale: Likewise.
18355         * modules/uniconv/u16-conv-from-enc: Likewise.
18356         * modules/uniconv/u16-conv-to-enc: Likewise.
18357         * modules/uniconv/u16-strconv-from-enc: Likewise.
18358         * modules/uniconv/u16-strconv-from-locale: Likewise.
18359         * modules/uniconv/u16-strconv-to-enc: Likewise.
18360         * modules/uniconv/u16-strconv-to-locale: Likewise.
18361         * modules/uniconv/u32-conv-from-enc: Likewise.
18362         * modules/uniconv/u32-conv-to-enc: Likewise.
18363         * modules/uniconv/u32-strconv-from-enc: Likewise.
18364         * modules/uniconv/u32-strconv-from-locale: Likewise.
18365         * modules/uniconv/u32-strconv-to-enc: Likewise.
18366         * modules/uniconv/u32-strconv-to-locale: Likewise.
18367         * modules/unictype/bidicategory-byname: Likewise.
18368         * modules/unictype/bidicategory-name: Likewise.
18369         * modules/unictype/bidicategory-of: Likewise.
18370         * modules/unictype/bidicategory-test: Likewise.
18371         * modules/unictype/block-list: Likewise.
18372         * modules/unictype/block-test: Likewise.
18373         * modules/unictype/category-C: Likewise.
18374         * modules/unictype/category-Cc: Likewise.
18375         * modules/unictype/category-Cf: Likewise.
18376         * modules/unictype/category-Cn: Likewise.
18377         * modules/unictype/category-Co: Likewise.
18378         * modules/unictype/category-Cs: Likewise.
18379         * modules/unictype/category-L: Likewise.
18380         * modules/unictype/category-Ll: Likewise.
18381         * modules/unictype/category-Lm: Likewise.
18382         * modules/unictype/category-Lo: Likewise.
18383         * modules/unictype/category-Lt: Likewise.
18384         * modules/unictype/category-Lu: Likewise.
18385         * modules/unictype/category-M: Likewise.
18386         * modules/unictype/category-Mc: Likewise.
18387         * modules/unictype/category-Me: Likewise.
18388         * modules/unictype/category-Mn: Likewise.
18389         * modules/unictype/category-N: Likewise.
18390         * modules/unictype/category-Nd: Likewise.
18391         * modules/unictype/category-Nl: Likewise.
18392         * modules/unictype/category-No: Likewise.
18393         * modules/unictype/category-P: Likewise.
18394         * modules/unictype/category-Pc: Likewise.
18395         * modules/unictype/category-Pd: Likewise.
18396         * modules/unictype/category-Pe: Likewise.
18397         * modules/unictype/category-Pf: Likewise.
18398         * modules/unictype/category-Pi: Likewise.
18399         * modules/unictype/category-Po: Likewise.
18400         * modules/unictype/category-Ps: Likewise.
18401         * modules/unictype/category-S: Likewise.
18402         * modules/unictype/category-Sc: Likewise.
18403         * modules/unictype/category-Sk: Likewise.
18404         * modules/unictype/category-Sm: Likewise.
18405         * modules/unictype/category-So: Likewise.
18406         * modules/unictype/category-Z: Likewise.
18407         * modules/unictype/category-Zl: Likewise.
18408         * modules/unictype/category-Zp: Likewise.
18409         * modules/unictype/category-Zs: Likewise.
18410         * modules/unictype/category-and: Likewise.
18411         * modules/unictype/category-and-not: Likewise.
18412         * modules/unictype/category-byname: Likewise.
18413         * modules/unictype/category-name: Likewise.
18414         * modules/unictype/category-none: Likewise.
18415         * modules/unictype/category-of: Likewise.
18416         * modules/unictype/category-or: Likewise.
18417         * modules/unictype/category-test: Likewise.
18418         * modules/unictype/combining-class: Likewise.
18419         * modules/unictype/ctype-alnum: Likewise.
18420         * modules/unictype/ctype-alpha: Likewise.
18421         * modules/unictype/ctype-blank: Likewise.
18422         * modules/unictype/ctype-cntrl: Likewise.
18423         * modules/unictype/ctype-digit: Likewise.
18424         * modules/unictype/ctype-graph: Likewise.
18425         * modules/unictype/ctype-lower: Likewise.
18426         * modules/unictype/ctype-print: Likewise.
18427         * modules/unictype/ctype-punct: Likewise.
18428         * modules/unictype/ctype-space: Likewise.
18429         * modules/unictype/ctype-upper: Likewise.
18430         * modules/unictype/ctype-xdigit: Likewise.
18431         * modules/unictype/decimal-digit: Likewise.
18432         * modules/unictype/digit: Likewise.
18433         * modules/unictype/mirror: Likewise.
18434         * modules/unictype/numeric: Likewise.
18435         * modules/unictype/property-alphabetic: Likewise.
18436         * modules/unictype/property-ascii-hex-digit: Likewise.
18437         * modules/unictype/property-bidi-arabic-digit: Likewise.
18438         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
18439         * modules/unictype/property-bidi-block-separator: Likewise.
18440         * modules/unictype/property-bidi-boundary-neutral: Likewise.
18441         * modules/unictype/property-bidi-common-separator: Likewise.
18442         * modules/unictype/property-bidi-control: Likewise.
18443         * modules/unictype/property-bidi-embedding-or-override: Likewise.
18444         * modules/unictype/property-bidi-eur-num-separator: Likewise.
18445         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
18446         * modules/unictype/property-bidi-european-digit: Likewise.
18447         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
18448         * modules/unictype/property-bidi-left-to-right: Likewise.
18449         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
18450         * modules/unictype/property-bidi-other-neutral: Likewise.
18451         * modules/unictype/property-bidi-pdf: Likewise.
18452         * modules/unictype/property-bidi-segment-separator: Likewise.
18453         * modules/unictype/property-bidi-whitespace: Likewise.
18454         * modules/unictype/property-byname: Likewise.
18455         * modules/unictype/property-combining: Likewise.
18456         * modules/unictype/property-composite: Likewise.
18457         * modules/unictype/property-currency-symbol: Likewise.
18458         * modules/unictype/property-dash: Likewise.
18459         * modules/unictype/property-decimal-digit: Likewise.
18460         * modules/unictype/property-default-ignorable-code-point: Likewise.
18461         * modules/unictype/property-deprecated: Likewise.
18462         * modules/unictype/property-diacritic: Likewise.
18463         * modules/unictype/property-extender: Likewise.
18464         * modules/unictype/property-format-control: Likewise.
18465         * modules/unictype/property-grapheme-base: Likewise.
18466         * modules/unictype/property-grapheme-extend: Likewise.
18467         * modules/unictype/property-grapheme-link: Likewise.
18468         * modules/unictype/property-hex-digit: Likewise.
18469         * modules/unictype/property-hyphen: Likewise.
18470         * modules/unictype/property-id-continue: Likewise.
18471         * modules/unictype/property-id-start: Likewise.
18472         * modules/unictype/property-ideographic: Likewise.
18473         * modules/unictype/property-ids-binary-operator: Likewise.
18474         * modules/unictype/property-ids-trinary-operator: Likewise.
18475         * modules/unictype/property-ignorable-control: Likewise.
18476         * modules/unictype/property-iso-control: Likewise.
18477         * modules/unictype/property-join-control: Likewise.
18478         * modules/unictype/property-left-of-pair: Likewise.
18479         * modules/unictype/property-line-separator: Likewise.
18480         * modules/unictype/property-logical-order-exception: Likewise.
18481         * modules/unictype/property-lowercase: Likewise.
18482         * modules/unictype/property-math: Likewise.
18483         * modules/unictype/property-non-break: Likewise.
18484         * modules/unictype/property-not-a-character: Likewise.
18485         * modules/unictype/property-numeric: Likewise.
18486         * modules/unictype/property-other-alphabetic: Likewise.
18487         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
18488         * modules/unictype/property-other-grapheme-extend: Likewise.
18489         * modules/unictype/property-other-id-continue: Likewise.
18490         * modules/unictype/property-other-id-start: Likewise.
18491         * modules/unictype/property-other-lowercase: Likewise.
18492         * modules/unictype/property-other-math: Likewise.
18493         * modules/unictype/property-other-uppercase: Likewise.
18494         * modules/unictype/property-paired-punctuation: Likewise.
18495         * modules/unictype/property-paragraph-separator: Likewise.
18496         * modules/unictype/property-pattern-syntax: Likewise.
18497         * modules/unictype/property-pattern-white-space: Likewise.
18498         * modules/unictype/property-private-use: Likewise.
18499         * modules/unictype/property-punctuation: Likewise.
18500         * modules/unictype/property-quotation-mark: Likewise.
18501         * modules/unictype/property-radical: Likewise.
18502         * modules/unictype/property-sentence-terminal: Likewise.
18503         * modules/unictype/property-soft-dotted: Likewise.
18504         * modules/unictype/property-space: Likewise.
18505         * modules/unictype/property-terminal-punctuation: Likewise.
18506         * modules/unictype/property-test: Likewise.
18507         * modules/unictype/property-titlecase: Likewise.
18508         * modules/unictype/property-unassigned-code-value: Likewise.
18509         * modules/unictype/property-unified-ideograph: Likewise.
18510         * modules/unictype/property-uppercase: Likewise.
18511         * modules/unictype/property-variation-selector: Likewise.
18512         * modules/unictype/property-white-space: Likewise.
18513         * modules/unictype/property-xid-continue: Likewise.
18514         * modules/unictype/property-xid-start: Likewise.
18515         * modules/unictype/property-zero-width: Likewise.
18516         * modules/unictype/scripts: Likewise.
18517         * modules/unictype/syntax-c-ident: Likewise.
18518         * modules/unictype/syntax-c-whitespace: Likewise.
18519         * modules/unictype/syntax-java-ident: Likewise.
18520         * modules/unictype/syntax-java-whitespace: Likewise.
18521         * modules/unilbrk/u8-possible-linebreaks: Likewise.
18522         * modules/unilbrk/u8-width-linebreaks: Likewise.
18523         * modules/unilbrk/u16-possible-linebreaks: Likewise.
18524         * modules/unilbrk/u16-width-linebreaks: Likewise.
18525         * modules/unilbrk/u32-possible-linebreaks: Likewise.
18526         * modules/unilbrk/u32-width-linebreaks: Likewise.
18527         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
18528         * modules/unilbrk/ulc-width-linebreaks: Likewise.
18529         * modules/uniname/uniname: Likewise.
18530         * modules/uninorm/canonical-decomposition: Likewise.
18531         * modules/uninorm/composition: Likewise.
18532         * modules/uninorm/decomposing-form: Likewise.
18533         * modules/uninorm/decomposition: Likewise.
18534         * modules/uninorm/filter: Likewise.
18535         * modules/uninorm/nfc: Likewise.
18536         * modules/uninorm/nfd: Likewise.
18537         * modules/uninorm/nfkc: Likewise.
18538         * modules/uninorm/nfkd: Likewise.
18539         * modules/uninorm/u8-normalize: Likewise.
18540         * modules/uninorm/u8-normcmp: Likewise.
18541         * modules/uninorm/u8-normcoll: Likewise.
18542         * modules/uninorm/u8-normxfrm: Likewise.
18543         * modules/uninorm/u16-normalize: Likewise.
18544         * modules/uninorm/u16-normcmp: Likewise.
18545         * modules/uninorm/u16-normcoll: Likewise.
18546         * modules/uninorm/u16-normxfrm: Likewise.
18547         * modules/uninorm/u32-normalize: Likewise.
18548         * modules/uninorm/u32-normcmp: Likewise.
18549         * modules/uninorm/u32-normcoll: Likewise.
18550         * modules/uninorm/u32-normxfrm: Likewise.
18551         * modules/unistdio/u8-asnprintf: Likewise.
18552         * modules/unistdio/u8-asprintf: Likewise.
18553         * modules/unistdio/u8-snprintf: Likewise.
18554         * modules/unistdio/u8-sprintf: Likewise.
18555         * modules/unistdio/u8-u8-asnprintf: Likewise.
18556         * modules/unistdio/u8-u8-asprintf: Likewise.
18557         * modules/unistdio/u8-u8-snprintf: Likewise.
18558         * modules/unistdio/u8-u8-sprintf: Likewise.
18559         * modules/unistdio/u8-u8-vasnprintf: Likewise.
18560         * modules/unistdio/u8-u8-vasprintf: Likewise.
18561         * modules/unistdio/u8-u8-vsnprintf: Likewise.
18562         * modules/unistdio/u8-u8-vsprintf: Likewise.
18563         * modules/unistdio/u8-vasnprintf: Likewise.
18564         * modules/unistdio/u8-vasprintf: Likewise.
18565         * modules/unistdio/u8-vsnprintf: Likewise.
18566         * modules/unistdio/u8-vsprintf: Likewise.
18567         * modules/unistdio/u16-asnprintf: Likewise.
18568         * modules/unistdio/u16-asprintf: Likewise.
18569         * modules/unistdio/u16-snprintf: Likewise.
18570         * modules/unistdio/u16-sprintf: Likewise.
18571         * modules/unistdio/u16-u16-asnprintf: Likewise.
18572         * modules/unistdio/u16-u16-asprintf: Likewise.
18573         * modules/unistdio/u16-u16-snprintf: Likewise.
18574         * modules/unistdio/u16-u16-sprintf: Likewise.
18575         * modules/unistdio/u16-u16-vasnprintf: Likewise.
18576         * modules/unistdio/u16-u16-vasprintf: Likewise.
18577         * modules/unistdio/u16-u16-vsnprintf: Likewise.
18578         * modules/unistdio/u16-u16-vsprintf: Likewise.
18579         * modules/unistdio/u16-vasnprintf: Likewise.
18580         * modules/unistdio/u16-vasprintf: Likewise.
18581         * modules/unistdio/u16-vsnprintf: Likewise.
18582         * modules/unistdio/u16-vsprintf: Likewise.
18583         * modules/unistdio/u32-asnprintf: Likewise.
18584         * modules/unistdio/u32-asprintf: Likewise.
18585         * modules/unistdio/u32-snprintf: Likewise.
18586         * modules/unistdio/u32-sprintf: Likewise.
18587         * modules/unistdio/u32-u32-asnprintf: Likewise.
18588         * modules/unistdio/u32-u32-asprintf: Likewise.
18589         * modules/unistdio/u32-u32-snprintf: Likewise.
18590         * modules/unistdio/u32-u32-sprintf: Likewise.
18591         * modules/unistdio/u32-u32-vasnprintf: Likewise.
18592         * modules/unistdio/u32-u32-vasprintf: Likewise.
18593         * modules/unistdio/u32-u32-vsnprintf: Likewise.
18594         * modules/unistdio/u32-u32-vsprintf: Likewise.
18595         * modules/unistdio/u32-vasnprintf: Likewise.
18596         * modules/unistdio/u32-vasprintf: Likewise.
18597         * modules/unistdio/u32-vsnprintf: Likewise.
18598         * modules/unistdio/u32-vsprintf: Likewise.
18599         * modules/unistdio/ulc-asnprintf: Likewise.
18600         * modules/unistdio/ulc-asprintf: Likewise.
18601         * modules/unistdio/ulc-fprintf: Likewise.
18602         * modules/unistdio/ulc-snprintf: Likewise.
18603         * modules/unistdio/ulc-sprintf: Likewise.
18604         * modules/unistdio/ulc-vasnprintf: Likewise.
18605         * modules/unistdio/ulc-vasprintf: Likewise.
18606         * modules/unistdio/ulc-vfprintf: Likewise.
18607         * modules/unistdio/ulc-vsnprintf: Likewise.
18608         * modules/unistdio/ulc-vsprintf: Likewise.
18609         * modules/unistr/u8-check: Likewise.
18610         * modules/unistr/u8-chr: Likewise.
18611         * modules/unistr/u8-cmp: Likewise.
18612         * modules/unistr/u8-cmp2: Likewise.
18613         * modules/unistr/u8-cpy: Likewise.
18614         * modules/unistr/u8-cpy-alloc: Likewise.
18615         * modules/unistr/u8-endswith: Likewise.
18616         * modules/unistr/u8-mblen: Likewise.
18617         * modules/unistr/u8-mbsnlen: Likewise.
18618         * modules/unistr/u8-mbtouc: Likewise.
18619         * modules/unistr/u8-mbtouc-unsafe: Likewise.
18620         * modules/unistr/u8-mbtoucr: Likewise.
18621         * modules/unistr/u8-move: Likewise.
18622         * modules/unistr/u8-next: Likewise.
18623         * modules/unistr/u8-prev: Likewise.
18624         * modules/unistr/u8-set: Likewise.
18625         * modules/unistr/u8-startswith: Likewise.
18626         * modules/unistr/u8-stpcpy: Likewise.
18627         * modules/unistr/u8-stpncpy: Likewise.
18628         * modules/unistr/u8-strcat: Likewise.
18629         * modules/unistr/u8-strchr: Likewise.
18630         * modules/unistr/u8-strcmp: Likewise.
18631         * modules/unistr/u8-strcoll: Likewise.
18632         * modules/unistr/u8-strcpy: Likewise.
18633         * modules/unistr/u8-strcspn: Likewise.
18634         * modules/unistr/u8-strdup: Likewise.
18635         * modules/unistr/u8-strlen: Likewise.
18636         * modules/unistr/u8-strmblen: Likewise.
18637         * modules/unistr/u8-strmbtouc: Likewise.
18638         * modules/unistr/u8-strncat: Likewise.
18639         * modules/unistr/u8-strncmp: Likewise.
18640         * modules/unistr/u8-strncpy: Likewise.
18641         * modules/unistr/u8-strnlen: Likewise.
18642         * modules/unistr/u8-strpbrk: Likewise.
18643         * modules/unistr/u8-strrchr: Likewise.
18644         * modules/unistr/u8-strspn: Likewise.
18645         * modules/unistr/u8-strstr: Likewise.
18646         * modules/unistr/u8-strtok: Likewise.
18647         * modules/unistr/u8-to-u16: Likewise.
18648         * modules/unistr/u8-to-u32: Likewise.
18649         * modules/unistr/u8-uctomb: Likewise.
18650         * modules/unistr/u16-check: Likewise.
18651         * modules/unistr/u16-chr: Likewise.
18652         * modules/unistr/u16-cmp: Likewise.
18653         * modules/unistr/u16-cmp2: Likewise.
18654         * modules/unistr/u16-cpy: Likewise.
18655         * modules/unistr/u16-cpy-alloc: Likewise.
18656         * modules/unistr/u16-endswith: Likewise.
18657         * modules/unistr/u16-mblen: Likewise.
18658         * modules/unistr/u16-mbsnlen: Likewise.
18659         * modules/unistr/u16-mbtouc: Likewise.
18660         * modules/unistr/u16-mbtouc-unsafe: Likewise.
18661         * modules/unistr/u16-mbtoucr: Likewise.
18662         * modules/unistr/u16-move: Likewise.
18663         * modules/unistr/u16-next: Likewise.
18664         * modules/unistr/u16-prev: Likewise.
18665         * modules/unistr/u16-set: Likewise.
18666         * modules/unistr/u16-startswith: Likewise.
18667         * modules/unistr/u16-stpcpy: Likewise.
18668         * modules/unistr/u16-stpncpy: Likewise.
18669         * modules/unistr/u16-strcat: Likewise.
18670         * modules/unistr/u16-strchr: Likewise.
18671         * modules/unistr/u16-strcmp: Likewise.
18672         * modules/unistr/u16-strcoll: Likewise.
18673         * modules/unistr/u16-strcpy: Likewise.
18674         * modules/unistr/u16-strcspn: Likewise.
18675         * modules/unistr/u16-strdup: Likewise.
18676         * modules/unistr/u16-strlen: Likewise.
18677         * modules/unistr/u16-strmblen: Likewise.
18678         * modules/unistr/u16-strmbtouc: Likewise.
18679         * modules/unistr/u16-strncat: Likewise.
18680         * modules/unistr/u16-strncmp: Likewise.
18681         * modules/unistr/u16-strncpy: Likewise.
18682         * modules/unistr/u16-strnlen: Likewise.
18683         * modules/unistr/u16-strpbrk: Likewise.
18684         * modules/unistr/u16-strrchr: Likewise.
18685         * modules/unistr/u16-strspn: Likewise.
18686         * modules/unistr/u16-strstr: Likewise.
18687         * modules/unistr/u16-strtok: Likewise.
18688         * modules/unistr/u16-to-u32: Likewise.
18689         * modules/unistr/u16-to-u8: Likewise.
18690         * modules/unistr/u16-uctomb: Likewise.
18691         * modules/unistr/u32-check: Likewise.
18692         * modules/unistr/u32-chr: Likewise.
18693         * modules/unistr/u32-cmp: Likewise.
18694         * modules/unistr/u32-cmp2: Likewise.
18695         * modules/unistr/u32-cpy: Likewise.
18696         * modules/unistr/u32-cpy-alloc: Likewise.
18697         * modules/unistr/u32-endswith: Likewise.
18698         * modules/unistr/u32-mblen: Likewise.
18699         * modules/unistr/u32-mbsnlen: Likewise.
18700         * modules/unistr/u32-mbtouc: Likewise.
18701         * modules/unistr/u32-mbtouc-unsafe: Likewise.
18702         * modules/unistr/u32-mbtoucr: Likewise.
18703         * modules/unistr/u32-move: Likewise.
18704         * modules/unistr/u32-next: Likewise.
18705         * modules/unistr/u32-prev: Likewise.
18706         * modules/unistr/u32-set: Likewise.
18707         * modules/unistr/u32-startswith: Likewise.
18708         * modules/unistr/u32-stpcpy: Likewise.
18709         * modules/unistr/u32-stpncpy: Likewise.
18710         * modules/unistr/u32-strcat: Likewise.
18711         * modules/unistr/u32-strchr: Likewise.
18712         * modules/unistr/u32-strcmp: Likewise.
18713         * modules/unistr/u32-strcoll: Likewise.
18714         * modules/unistr/u32-strcpy: Likewise.
18715         * modules/unistr/u32-strcspn: Likewise.
18716         * modules/unistr/u32-strdup: Likewise.
18717         * modules/unistr/u32-strlen: Likewise.
18718         * modules/unistr/u32-strmblen: Likewise.
18719         * modules/unistr/u32-strmbtouc: Likewise.
18720         * modules/unistr/u32-strncat: Likewise.
18721         * modules/unistr/u32-strncmp: Likewise.
18722         * modules/unistr/u32-strncpy: Likewise.
18723         * modules/unistr/u32-strnlen: Likewise.
18724         * modules/unistr/u32-strpbrk: Likewise.
18725         * modules/unistr/u32-strrchr: Likewise.
18726         * modules/unistr/u32-strspn: Likewise.
18727         * modules/unistr/u32-strstr: Likewise.
18728         * modules/unistr/u32-strtok: Likewise.
18729         * modules/unistr/u32-to-u16: Likewise.
18730         * modules/unistr/u32-to-u8: Likewise.
18731         * modules/unistr/u32-uctomb: Likewise.
18732         * modules/uniwbrk/u8-wordbreaks: Likewise.
18733         * modules/uniwbrk/u16-wordbreaks: Likewise.
18734         * modules/uniwbrk/u32-wordbreaks: Likewise.
18735         * modules/uniwbrk/ulc-wordbreaks: Likewise.
18736         * modules/uniwbrk/wordbreak-property: Likewise.
18737         * modules/uniwidth/u8-strwidth: Likewise.
18738         * modules/uniwidth/u8-width: Likewise.
18739         * modules/uniwidth/u16-strwidth: Likewise.
18740         * modules/uniwidth/u16-width: Likewise.
18741         * modules/uniwidth/u32-strwidth: Likewise.
18742         * modules/uniwidth/u32-width: Likewise.
18743         * modules/uniwidth/width: Likewise.
18744         * modules/unicase/cased-tests (Makefile.am): Link all test programs
18745         with $(LIBUNISTRING).
18746         * modules/unicase/ignorable-tests: Likewise.
18747         * modules/unicase/locale-language-tests: Likewise.
18748         * modules/unicase/tolower-tests: Likewise.
18749         * modules/unicase/totitle-tests: Likewise.
18750         * modules/unicase/toupper-tests: Likewise.
18751         * modules/unicase/u8-casecmp-tests: Likewise.
18752         * modules/unicase/u8-casecoll-tests: Likewise.
18753         * modules/unicase/u8-casefold-tests: Likewise.
18754         * modules/unicase/u8-is-cased-tests: Likewise.
18755         * modules/unicase/u8-is-casefolded-tests: Likewise.
18756         * modules/unicase/u8-is-lowercase-tests: Likewise.
18757         * modules/unicase/u8-is-titlecase-tests: Likewise.
18758         * modules/unicase/u8-is-uppercase-tests: Likewise.
18759         * modules/unicase/u8-tolower-tests: Likewise.
18760         * modules/unicase/u8-totitle-tests: Likewise.
18761         * modules/unicase/u8-toupper-tests: Likewise.
18762         * modules/unicase/u16-casecmp-tests: Likewise.
18763         * modules/unicase/u16-casecoll-tests: Likewise.
18764         * modules/unicase/u16-casefold-tests: Likewise.
18765         * modules/unicase/u16-is-cased-tests: Likewise.
18766         * modules/unicase/u16-is-casefolded-tests: Likewise.
18767         * modules/unicase/u16-is-lowercase-tests: Likewise.
18768         * modules/unicase/u16-is-titlecase-tests: Likewise.
18769         * modules/unicase/u16-is-uppercase-tests: Likewise.
18770         * modules/unicase/u16-tolower-tests: Likewise.
18771         * modules/unicase/u16-totitle-tests: Likewise.
18772         * modules/unicase/u16-toupper-tests: Likewise.
18773         * modules/unicase/u32-casecmp-tests: Likewise.
18774         * modules/unicase/u32-casecoll-tests: Likewise.
18775         * modules/unicase/u32-casefold-tests: Likewise.
18776         * modules/unicase/u32-is-cased-tests: Likewise.
18777         * modules/unicase/u32-is-casefolded-tests: Likewise.
18778         * modules/unicase/u32-is-lowercase-tests: Likewise.
18779         * modules/unicase/u32-is-titlecase-tests: Likewise.
18780         * modules/unicase/u32-is-uppercase-tests: Likewise.
18781         * modules/unicase/u32-tolower-tests: Likewise.
18782         * modules/unicase/u32-totitle-tests: Likewise.
18783         * modules/unicase/u32-toupper-tests: Likewise.
18784         * modules/unicase/ulc-casecmp-tests: Likewise.
18785         * modules/unicase/ulc-casecoll-tests: Likewise.
18786         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
18787         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
18788         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
18789         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
18790         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
18791         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
18792         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
18793         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
18794         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
18795         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
18796         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
18797         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
18798         * modules/unictype/bidicategory-byname-tests: Likewise.
18799         * modules/unictype/bidicategory-name-tests: Likewise.
18800         * modules/unictype/bidicategory-of-tests: Likewise.
18801         * modules/unictype/bidicategory-test-tests: Likewise.
18802         * modules/unictype/block-list-tests: Likewise.
18803         * modules/unictype/block-of-tests: Likewise.
18804         * modules/unictype/block-test-tests: Likewise.
18805         * modules/unictype/category-C-tests: Likewise.
18806         * modules/unictype/category-Cc-tests: Likewise.
18807         * modules/unictype/category-Cf-tests: Likewise.
18808         * modules/unictype/category-Cn-tests: Likewise.
18809         * modules/unictype/category-Co-tests: Likewise.
18810         * modules/unictype/category-Cs-tests: Likewise.
18811         * modules/unictype/category-L-tests: Likewise.
18812         * modules/unictype/category-Ll-tests: Likewise.
18813         * modules/unictype/category-Lm-tests: Likewise.
18814         * modules/unictype/category-Lo-tests: Likewise.
18815         * modules/unictype/category-Lt-tests: Likewise.
18816         * modules/unictype/category-Lu-tests: Likewise.
18817         * modules/unictype/category-M-tests: Likewise.
18818         * modules/unictype/category-Mc-tests: Likewise.
18819         * modules/unictype/category-Me-tests: Likewise.
18820         * modules/unictype/category-Mn-tests: Likewise.
18821         * modules/unictype/category-N-tests: Likewise.
18822         * modules/unictype/category-Nd-tests: Likewise.
18823         * modules/unictype/category-Nl-tests: Likewise.
18824         * modules/unictype/category-No-tests: Likewise.
18825         * modules/unictype/category-P-tests: Likewise.
18826         * modules/unictype/category-Pc-tests: Likewise.
18827         * modules/unictype/category-Pd-tests: Likewise.
18828         * modules/unictype/category-Pe-tests: Likewise.
18829         * modules/unictype/category-Pf-tests: Likewise.
18830         * modules/unictype/category-Pi-tests: Likewise.
18831         * modules/unictype/category-Po-tests: Likewise.
18832         * modules/unictype/category-Ps-tests: Likewise.
18833         * modules/unictype/category-S-tests: Likewise.
18834         * modules/unictype/category-Sc-tests: Likewise.
18835         * modules/unictype/category-Sk-tests: Likewise.
18836         * modules/unictype/category-Sm-tests: Likewise.
18837         * modules/unictype/category-So-tests: Likewise.
18838         * modules/unictype/category-Z-tests: Likewise.
18839         * modules/unictype/category-Zl-tests: Likewise.
18840         * modules/unictype/category-Zp-tests: Likewise.
18841         * modules/unictype/category-Zs-tests: Likewise.
18842         * modules/unictype/category-and-not-tests: Likewise.
18843         * modules/unictype/category-and-tests: Likewise.
18844         * modules/unictype/category-byname-tests: Likewise.
18845         * modules/unictype/category-name-tests: Likewise.
18846         * modules/unictype/category-none-tests: Likewise.
18847         * modules/unictype/category-of-tests: Likewise.
18848         * modules/unictype/category-or-tests: Likewise.
18849         * modules/unictype/category-test-withtable-tests: Likewise.
18850         * modules/unictype/combining-class-tests: Likewise.
18851         * modules/unictype/ctype-alnum-tests: Likewise.
18852         * modules/unictype/ctype-alpha-tests: Likewise.
18853         * modules/unictype/ctype-blank-tests: Likewise.
18854         * modules/unictype/ctype-cntrl-tests: Likewise.
18855         * modules/unictype/ctype-digit-tests: Likewise.
18856         * modules/unictype/ctype-graph-tests: Likewise.
18857         * modules/unictype/ctype-lower-tests: Likewise.
18858         * modules/unictype/ctype-print-tests: Likewise.
18859         * modules/unictype/ctype-punct-tests: Likewise.
18860         * modules/unictype/ctype-space-tests: Likewise.
18861         * modules/unictype/ctype-upper-tests: Likewise.
18862         * modules/unictype/ctype-xdigit-tests: Likewise.
18863         * modules/unictype/decimal-digit-tests: Likewise.
18864         * modules/unictype/digit-tests: Likewise.
18865         * modules/unictype/mirror-tests: Likewise.
18866         * modules/unictype/numeric-tests: Likewise.
18867         * modules/unictype/property-alphabetic-tests: Likewise.
18868         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
18869         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
18870         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
18871         * modules/unictype/property-bidi-block-separator-tests: Likewise.
18872         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
18873         * modules/unictype/property-bidi-common-separator-tests: Likewise.
18874         * modules/unictype/property-bidi-control-tests: Likewise.
18875         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
18876         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
18877         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
18878         * modules/unictype/property-bidi-european-digit-tests: Likewise.
18879         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
18880         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
18881         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
18882         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
18883         * modules/unictype/property-bidi-pdf-tests: Likewise.
18884         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
18885         * modules/unictype/property-bidi-whitespace-tests: Likewise.
18886         * modules/unictype/property-byname-tests: Likewise.
18887         * modules/unictype/property-combining-tests: Likewise.
18888         * modules/unictype/property-composite-tests: Likewise.
18889         * modules/unictype/property-currency-symbol-tests: Likewise.
18890         * modules/unictype/property-dash-tests: Likewise.
18891         * modules/unictype/property-decimal-digit-tests: Likewise.
18892         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
18893         * modules/unictype/property-deprecated-tests: Likewise.
18894         * modules/unictype/property-diacritic-tests: Likewise.
18895         * modules/unictype/property-extender-tests: Likewise.
18896         * modules/unictype/property-format-control-tests: Likewise.
18897         * modules/unictype/property-grapheme-base-tests: Likewise.
18898         * modules/unictype/property-grapheme-extend-tests: Likewise.
18899         * modules/unictype/property-grapheme-link-tests: Likewise.
18900         * modules/unictype/property-hex-digit-tests: Likewise.
18901         * modules/unictype/property-hyphen-tests: Likewise.
18902         * modules/unictype/property-id-continue-tests: Likewise.
18903         * modules/unictype/property-id-start-tests: Likewise.
18904         * modules/unictype/property-ideographic-tests: Likewise.
18905         * modules/unictype/property-ids-binary-operator-tests: Likewise.
18906         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
18907         * modules/unictype/property-ignorable-control-tests: Likewise.
18908         * modules/unictype/property-iso-control-tests: Likewise.
18909         * modules/unictype/property-join-control-tests: Likewise.
18910         * modules/unictype/property-left-of-pair-tests: Likewise.
18911         * modules/unictype/property-line-separator-tests: Likewise.
18912         * modules/unictype/property-logical-order-exception-tests: Likewise.
18913         * modules/unictype/property-lowercase-tests: Likewise.
18914         * modules/unictype/property-math-tests: Likewise.
18915         * modules/unictype/property-non-break-tests: Likewise.
18916         * modules/unictype/property-not-a-character-tests: Likewise.
18917         * modules/unictype/property-numeric-tests: Likewise.
18918         * modules/unictype/property-other-alphabetic-tests: Likewise.
18919         * modules/unictype/property-other-default-ignorable-code-point-tests:
18920         Likewise.
18921         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
18922         * modules/unictype/property-other-id-continue-tests: Likewise.
18923         * modules/unictype/property-other-id-start-tests: Likewise.
18924         * modules/unictype/property-other-lowercase-tests: Likewise.
18925         * modules/unictype/property-other-math-tests: Likewise.
18926         * modules/unictype/property-other-uppercase-tests: Likewise.
18927         * modules/unictype/property-paired-punctuation-tests: Likewise.
18928         * modules/unictype/property-paragraph-separator-tests: Likewise.
18929         * modules/unictype/property-pattern-syntax-tests: Likewise.
18930         * modules/unictype/property-pattern-white-space-tests: Likewise.
18931         * modules/unictype/property-private-use-tests: Likewise.
18932         * modules/unictype/property-punctuation-tests: Likewise.
18933         * modules/unictype/property-quotation-mark-tests: Likewise.
18934         * modules/unictype/property-radical-tests: Likewise.
18935         * modules/unictype/property-sentence-terminal-tests: Likewise.
18936         * modules/unictype/property-soft-dotted-tests: Likewise.
18937         * modules/unictype/property-space-tests: Likewise.
18938         * modules/unictype/property-terminal-punctuation-tests: Likewise.
18939         * modules/unictype/property-test-tests: Likewise.
18940         * modules/unictype/property-titlecase-tests: Likewise.
18941         * modules/unictype/property-unassigned-code-value-tests: Likewise.
18942         * modules/unictype/property-unified-ideograph-tests: Likewise.
18943         * modules/unictype/property-uppercase-tests: Likewise.
18944         * modules/unictype/property-variation-selector-tests: Likewise.
18945         * modules/unictype/property-white-space-tests: Likewise.
18946         * modules/unictype/property-xid-continue-tests: Likewise.
18947         * modules/unictype/property-xid-start-tests: Likewise.
18948         * modules/unictype/property-zero-width-tests: Likewise.
18949         * modules/unictype/scripts-tests: Likewise.
18950         * modules/unictype/syntax-c-ident-tests: Likewise.
18951         * modules/unictype/syntax-c-whitespace-tests: Likewise.
18952         * modules/unictype/syntax-java-ident-tests: Likewise.
18953         * modules/unictype/syntax-java-whitespace-tests: Likewise.
18954         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
18955         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
18956         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
18957         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
18958         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
18959         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
18960         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
18961         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
18962         * modules/uniname/uniname-tests: Likewise.
18963         * modules/uninorm/canonical-decomposition-tests: Likewise.
18964         * modules/uninorm/compat-decomposition-tests: Likewise.
18965         * modules/uninorm/composition-tests: Likewise.
18966         * modules/uninorm/decomposing-form-tests: Likewise.
18967         * modules/uninorm/decomposition-tests: Likewise.
18968         * modules/uninorm/filter-tests: Likewise.
18969         * modules/uninorm/nfc-tests: Likewise.
18970         * modules/uninorm/nfd-tests: Likewise.
18971         * modules/uninorm/nfkc-tests: Likewise.
18972         * modules/uninorm/nfkd-tests: Likewise.
18973         * modules/uninorm/u8-normcmp-tests: Likewise.
18974         * modules/uninorm/u8-normcoll-tests: Likewise.
18975         * modules/uninorm/u16-normcmp-tests: Likewise.
18976         * modules/uninorm/u16-normcoll-tests: Likewise.
18977         * modules/uninorm/u32-normcmp-tests: Likewise.
18978         * modules/uninorm/u32-normcoll-tests: Likewise.
18979         * modules/unistdio/u8-asnprintf-tests: Likewise.
18980         * modules/unistdio/u8-vasnprintf-tests: Likewise.
18981         * modules/unistdio/u8-vasprintf-tests: Likewise.
18982         * modules/unistdio/u8-vsnprintf-tests: Likewise.
18983         * modules/unistdio/u8-vsprintf-tests: Likewise.
18984         * modules/unistdio/u16-asnprintf-tests: Likewise.
18985         * modules/unistdio/u16-vasnprintf-tests: Likewise.
18986         * modules/unistdio/u16-vasprintf-tests: Likewise.
18987         * modules/unistdio/u16-vsnprintf-tests: Likewise.
18988         * modules/unistdio/u16-vsprintf-tests: Likewise.
18989         * modules/unistdio/u32-asnprintf-tests: Likewise.
18990         * modules/unistdio/u32-vasnprintf-tests: Likewise.
18991         * modules/unistdio/u32-vasprintf-tests: Likewise.
18992         * modules/unistdio/u32-vsnprintf-tests: Likewise.
18993         * modules/unistdio/u32-vsprintf-tests: Likewise.
18994         * modules/unistdio/ulc-asnprintf-tests: Likewise.
18995         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
18996         * modules/unistdio/ulc-vasprintf-tests: Likewise.
18997         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
18998         * modules/unistdio/ulc-vsprintf-tests: Likewise.
18999         * modules/unistr/u8-check-tests: Likewise.
19000         * modules/unistr/u8-chr-tests: Likewise.
19001         * modules/unistr/u8-cmp-tests: Likewise.
19002         * modules/unistr/u8-cmp2-tests: Likewise.
19003         * modules/unistr/u8-cpy-alloc-tests: Likewise.
19004         * modules/unistr/u8-cpy-tests: Likewise.
19005         * modules/unistr/u8-mblen-tests: Likewise.
19006         * modules/unistr/u8-mbsnlen-tests: Likewise.
19007         * modules/unistr/u8-mbtouc-tests: Likewise.
19008         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
19009         * modules/unistr/u8-mbtoucr-tests: Likewise.
19010         * modules/unistr/u8-move-tests: Likewise.
19011         * modules/unistr/u8-next-tests: Likewise.
19012         * modules/unistr/u8-prev-tests: Likewise.
19013         * modules/unistr/u8-set-tests: Likewise.
19014         * modules/unistr/u8-stpcpy-tests: Likewise.
19015         * modules/unistr/u8-stpncpy-tests: Likewise.
19016         * modules/unistr/u8-strcat-tests: Likewise.
19017         * modules/unistr/u8-strcmp-tests: Likewise.
19018         * modules/unistr/u8-strcoll-tests: Likewise.
19019         * modules/unistr/u8-strcpy-tests: Likewise.
19020         * modules/unistr/u8-strdup-tests: Likewise.
19021         * modules/unistr/u8-strlen-tests: Likewise.
19022         * modules/unistr/u8-strmblen-tests: Likewise.
19023         * modules/unistr/u8-strmbtouc-tests: Likewise.
19024         * modules/unistr/u8-strncat-tests: Likewise.
19025         * modules/unistr/u8-strncmp-tests: Likewise.
19026         * modules/unistr/u8-strncpy-tests: Likewise.
19027         * modules/unistr/u8-strnlen-tests: Likewise.
19028         * modules/unistr/u8-to-u16-tests: Likewise.
19029         * modules/unistr/u8-to-u32-tests: Likewise.
19030         * modules/unistr/u8-uctomb-tests: Likewise.
19031         * modules/unistr/u16-check-tests: Likewise.
19032         * modules/unistr/u16-chr-tests: Likewise.
19033         * modules/unistr/u16-cmp-tests: Likewise.
19034         * modules/unistr/u16-cmp2-tests: Likewise.
19035         * modules/unistr/u16-cpy-alloc-tests: Likewise.
19036         * modules/unistr/u16-cpy-tests: Likewise.
19037         * modules/unistr/u16-mblen-tests: Likewise.
19038         * modules/unistr/u16-mbsnlen-tests: Likewise.
19039         * modules/unistr/u16-mbtouc-tests: Likewise.
19040         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
19041         * modules/unistr/u16-mbtoucr-tests: Likewise.
19042         * modules/unistr/u16-move-tests: Likewise.
19043         * modules/unistr/u16-next-tests: Likewise.
19044         * modules/unistr/u16-prev-tests: Likewise.
19045         * modules/unistr/u16-set-tests: Likewise.
19046         * modules/unistr/u16-stpcpy-tests: Likewise.
19047         * modules/unistr/u16-stpncpy-tests: Likewise.
19048         * modules/unistr/u16-strcat-tests: Likewise.
19049         * modules/unistr/u16-strcmp-tests: Likewise.
19050         * modules/unistr/u16-strcoll-tests: Likewise.
19051         * modules/unistr/u16-strcpy-tests: Likewise.
19052         * modules/unistr/u16-strdup-tests: Likewise.
19053         * modules/unistr/u16-strlen-tests: Likewise.
19054         * modules/unistr/u16-strmblen-tests: Likewise.
19055         * modules/unistr/u16-strmbtouc-tests: Likewise.
19056         * modules/unistr/u16-strncat-tests: Likewise.
19057         * modules/unistr/u16-strncmp-tests: Likewise.
19058         * modules/unistr/u16-strncpy-tests: Likewise.
19059         * modules/unistr/u16-strnlen-tests: Likewise.
19060         * modules/unistr/u16-to-u32-tests: Likewise.
19061         * modules/unistr/u16-to-u8-tests: Likewise.
19062         * modules/unistr/u16-uctomb-tests: Likewise.
19063         * modules/unistr/u32-check-tests: Likewise.
19064         * modules/unistr/u32-chr-tests: Likewise.
19065         * modules/unistr/u32-cmp-tests: Likewise.
19066         * modules/unistr/u32-cmp2-tests: Likewise.
19067         * modules/unistr/u32-cpy-alloc-tests: Likewise.
19068         * modules/unistr/u32-cpy-tests: Likewise.
19069         * modules/unistr/u32-mblen-tests: Likewise.
19070         * modules/unistr/u32-mbsnlen-tests: Likewise.
19071         * modules/unistr/u32-mbtouc-tests: Likewise.
19072         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
19073         * modules/unistr/u32-mbtoucr-tests: Likewise.
19074         * modules/unistr/u32-move-tests: Likewise.
19075         * modules/unistr/u32-next-tests: Likewise.
19076         * modules/unistr/u32-prev-tests: Likewise.
19077         * modules/unistr/u32-set-tests: Likewise.
19078         * modules/unistr/u32-stpcpy-tests: Likewise.
19079         * modules/unistr/u32-stpncpy-tests: Likewise.
19080         * modules/unistr/u32-strcat-tests: Likewise.
19081         * modules/unistr/u32-strcmp-tests: Likewise.
19082         * modules/unistr/u32-strcoll-tests: Likewise.
19083         * modules/unistr/u32-strcpy-tests: Likewise.
19084         * modules/unistr/u32-strdup-tests: Likewise.
19085         * modules/unistr/u32-strlen-tests: Likewise.
19086         * modules/unistr/u32-strmblen-tests: Likewise.
19087         * modules/unistr/u32-strmbtouc-tests: Likewise.
19088         * modules/unistr/u32-strncat-tests: Likewise.
19089         * modules/unistr/u32-strncmp-tests: Likewise.
19090         * modules/unistr/u32-strncpy-tests: Likewise.
19091         * modules/unistr/u32-strnlen-tests: Likewise.
19092         * modules/unistr/u32-to-u16-tests: Likewise.
19093         * modules/unistr/u32-to-u8-tests: Likewise.
19094         * modules/unistr/u32-uctomb-tests: Likewise.
19095         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
19096         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
19097         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
19098         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
19099         * modules/uniwidth/u8-strwidth-tests: Likewise.
19100         * modules/uniwidth/u8-width-tests: Likewise.
19101         * modules/uniwidth/u16-strwidth-tests: Likewise.
19102         * modules/uniwidth/u16-width-tests: Likewise.
19103         * modules/uniwidth/u32-strwidth-tests: Likewise.
19104         * modules/uniwidth/u32-width-tests: Likewise.
19105         * modules/uniwidth/width-tests: Likewise.
19106
19107 2010-05-18  Richard Jones  <rjones@redhat.com>
19108
19109         doc: users.txt: list hivex
19110         * users.txt: Add hivex.
19111
19112 2010-05-18  Richard Jones  <rjones@redhat.com>
19113
19114         doc: users.txt: list febootstrap
19115         * users.txt: Add febootstrap.
19116
19117 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
19118
19119         bootstrap: fix an error when gnulib is not used as a git submodule
19120         * build-aux/bootstrap (gnulib_path): If its length is zero then
19121         assign "gnulib" to it.
19122         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
19123
19124 2010-05-16  Bruno Haible  <bruno@clisp.org>
19125
19126         Avoid autoconf warnings about AM_ICONV.
19127         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
19128         2.64.
19129
19130 2010-05-16  Bruno Haible  <bruno@clisp.org>
19131
19132         absolute-header: Make the macro usable in more situations.
19133         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
19134         from gl_ABSOLUTE_HEADER.
19135         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
19136
19137 2010-05-16  James Youngman  <jay@gnu.org>
19138
19139         doc: update users.txt
19140         * users.txt: Add CSSC.
19141
19142 2010-05-16  Jim Meyering  <meyering@redhat.com>
19143
19144         init.sh: fix an error in the previous change; add more comments
19145         * tests/init.sh: Compare exit code in loop against 9, not 2.
19146         Patch by Bruno Haible.
19147         Make the two tests more similar by adding an empty "then" clause.
19148         Add comments.
19149
19150         init.sh: avoid unnecessary shell re-exec
19151         * tests/init.sh: Improve the re-exec-required check to first test the
19152         current shell.  If it passes the test, do not search for a shell that
19153         does pass, and do not re-exec.  This test is particularly contorted to
19154         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
19155         of $(...) evokes a syntax error and causes immediate shell exit with
19156         status 2.  Bruno Haible reported that the re-exec made it impossible
19157         to single-step through any init.sh-using script.
19158
19159 2010-05-16  Bruno Haible  <bruno@clisp.org>
19160
19161         Fix collision between gnulib's and libintl's printf replacements.
19162         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
19163         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
19164         (printf): When using GNU C, map the __printf__ function to rpl_printf
19165         via __asm__. When not using GNU C, define rpl_printf instead of
19166         __printf__.
19167         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
19168         commit.
19169         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
19170         commit.
19171         * m4/asm-underscore.m4: New file.
19172         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
19173         * modules/stdio (Files): Add m4/asm-underscore.m4.
19174         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
19175         Reported by Ben Pfaff.
19176
19177 2010-05-16  Bruno Haible  <bruno@clisp.org>
19178
19179         verify: Avoid skipping the test on openSUSE 11.0.
19180         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
19181
19182 2010-05-13  Bruno Haible  <bruno@clisp.org>
19183
19184         Avoid useless warnings from G++.
19185         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
19186         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
19187         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
19188
19189 2010-05-11  Jim Meyering  <meyering@redhat.com>
19190
19191         maint.mk: tweak preceding change
19192         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
19193         regexps tighter by anchoring at EOL, and make the new group "shy"
19194         for slightly decreased overhead.
19195
19196 2010-05-11  Eric Blake  <eblake@redhat.com>
19197
19198         maint.mk: gnulib doesn't guarantee NSIG
19199         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
19200
19201 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
19202
19203         test-pwrite.c: Remove unused variable declaration.
19204         * tests/test-pwrite.c (main): Remove read_buf declaration.
19205
19206         Remove useless test-pwrite.sh file.
19207         * tests/test-pwrite.sh: Delete file.
19208         * modules/pwrite-tests: Remove references.
19209         Reported by Bruno Haible.
19210
19211 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
19212
19213         init.sh: fix a typo
19214         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
19215
19216 2010-05-10  Jim Meyering  <meyering@redhat.com>
19217
19218         maint.mk: avoid using a temporary file in the always-defined-macros check
19219         * top/maint.mk (.re-defmac): Remove rule.
19220         (gl_trap_): Remove definition.
19221         (sc_prohibit_always-defined_macros): Rewrite not to create and
19222         depend on a temporary file.  Instead, depend on GNU grep's ability
19223         to read a list of regular expressions from stdin when given "-f -".
19224
19225 2010-05-09  Bruno Haible  <bruno@clisp.org>
19226
19227         Update to GNU gettext 0.18, part 1.
19228         * m4/gettext.m4: Update to GNU gettext 0.18.
19229         * m4/intl.m4: Likewise.
19230         * m4/po.m4: Likewise.
19231         * modules/gettext (Files): Add m4/fcntl-o.m4.
19232         (configure.ac): Require gettext infrastructure from version 0.18.
19233
19234 2010-05-09  Jim Meyering  <meyering@redhat.com>
19235
19236         init.sh: enable MALLOC_PERTURB_
19237         * tests/init.sh: Enable glibc's malloc-perturbing option.
19238
19239         maint.mk: improve sc_cross_check_PATH_usage_in_tests
19240         With my recent change in init.sh from the two-line form:
19241             -#   : ${srcdir=.}
19242             -#   . "$srcdir/init.sh"; path_prepend_ .
19243             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
19244         I noticed that using the one-line form would cause this test
19245         to fail with a false-positive, or to stop working altogether,
19246         depending on whether help-version changed or all the tests did.
19247         * top/maint.mk (_hv_regex): Remove this definition.
19248         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
19249         (_hv_regex_strong): Use a stronger regex to check for conformance.
19250         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
19251         Give a separate diagnostic for lack of conforming use.
19252
19253         maint.mk: prohibit definition of symbols defined by gnulib
19254         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
19255         definition of symbols defined by gnulib.
19256
19257 2010-05-09  Bruno Haible  <bruno@clisp.org>
19258
19259         acl: Avoid test failure on Cygwin-hosted mingw.
19260         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
19261
19262 2010-05-09  Bruno Haible  <bruno@clisp.org>
19263
19264         error: Use system's fcntl function.
19265         * lib/error.c (fcntl): Undefine.
19266
19267 2010-05-09  Jim Meyering  <meyering@redhat.com>
19268
19269         verify: adjust formatting to be more consistent
19270         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
19271         argument-list '('s, and after one comma.
19272
19273 2010-05-09  Bruno Haible  <bruno@clisp.org>
19274
19275         error: More reliable output on mingw.
19276         * lib/error.c: Include <windows.h>.
19277         (is_open): New function.
19278         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
19279         defined.
19280
19281 2010-05-09  Bruno Haible  <bruno@clisp.org>
19282
19283         vasnprintf: Fix syntax errors in libintl build on mingw.
19284         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
19285         pad_ourselves and prec_ourselves after use.
19286
19287 2010-05-08  Bruno Haible  <bruno@clisp.org>
19288
19289         * lib/config.charset: Update comments for Cygwin 1.7.
19290         * lib/localcharset.c: Likewise.
19291
19292 2010-05-07  Jim Meyering  <meyering@redhat.com>
19293
19294         init.sh: improve comments
19295         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
19296         . "${srcdir=.}/init.sh"; path_prepend_ .
19297         Add a note about path_prepend_ and the alternative of using
19298         TESTS_ENVIRONMENT.
19299
19300 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
19301
19302         exclude: Unescape hashed patterns in wildcard mode.
19303         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
19304         to the hash list.
19305         * tests/test-exclude8.sh: New test case.
19306         * modules/exclude-tests: Add new test.
19307
19308 2010-05-05  Eric Blake  <eblake@redhat.com>
19309
19310         verify: automate tests
19311         * modules/verify-tests: New module.
19312         * tests/test-verify.sh: New file.
19313         * tests/test-verify.c: Guard each negative test with a unique id.
19314         Also avoid warning about unused left hand of comma expressions.
19315
19316 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
19317
19318         Further improvements to verify.h, suggested by Eric Blake.
19319         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
19320         the GL_* versions, to avoid collision with OpenGL.
19321         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
19322         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
19323         than testing merely whether it's defined.
19324
19325         Modify verify.h to pacify gcc -Wredundant_decls.
19326         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
19327         These use the prefix "GL_" since they're likely to be useful elsewhere.
19328         We may need to break them out into a different .h file.
19329         (__COUNTER__): Define to 0 if the compiler doesn't support it.
19330         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
19331         of verify_function__.
19332
19333 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
19334
19335         Tests for module pwrite.
19336         * modules/pwrite-tests: New file.
19337         * tests/test-pwrite.sh: New file.
19338         * tests/test-pwrite.c: New file.
19339
19340         New module pwrite.
19341         * lib/unistd.in.h (pwrite): New declaration.
19342         * lib/pwrite.c: New file, from glibc with modifications.
19343         * m4/pwrite.m4: New file.
19344         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
19345         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
19346         REPLACE_PWRITE.
19347         * modules/pwrite: New file.
19348         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
19349         REPLACE_PWRITE.
19350         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
19351         * doc/posix-functions/pwrite.texi: Mention the new module.
19352
19353 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
19354
19355         pread: Update documentation.
19356         * doc/posix-functions/pread.texi: Mention the 'pread' module.
19357
19358 2010-05-04  Eric Blake  <eblake@redhat.com>
19359
19360         docs: update cygwin progress
19361         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
19362         this bug.
19363         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
19364         Added in cygwin 1.7.2.
19365         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
19366         Likewise.
19367         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
19368         Likewise.
19369         * doc/glibc-functions/dup3.texi (dup3): Likewise.
19370         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
19371         * doc/glibc-functions/accept4.texi (accept4): Likewise.
19372         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
19373         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
19374         Mention nproc module.
19375         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
19376         bug in cygwin 1.7.5 addition.
19377         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
19378         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
19379         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
19380         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
19381         1.7.5.
19382         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
19383         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
19384         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
19385         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
19386         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
19387         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
19388         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
19389         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
19390         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
19391         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
19392         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
19393         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
19394         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
19395         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
19396         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
19397         Likewise.
19398         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
19399         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
19400         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
19401         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
19402         Likewise.
19403         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
19404         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
19405         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
19406         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
19407         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
19408         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
19409         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
19410         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
19411         Likewise.
19412         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
19413         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
19414         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
19415         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
19416         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
19417         Likewise.
19418         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
19419         Likewise.
19420         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
19421         Likewise.
19422         * doc/glibc-functions/xdrrec_endofrecord.texi
19423         (xdrrec_endofrecord): Likewise.
19424         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
19425         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
19426         Likewise.
19427         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
19428         Likewise.
19429
19430 2010-05-04  Jim Meyering  <meyering@redhat.com>
19431
19432         gendocs.sh: make its "-s FILE" option more useful
19433         * build-aux/gendocs.sh: When honoring the -s FILE option, update
19434         $PACKAGE to reflect the probably-different basename of "FILE".
19435
19436 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
19437
19438         bootstrap: don't ignore download_po_files failure
19439         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
19440         failure.
19441
19442 2010-05-03  Jim Meyering  <meyering@redhat.com>
19443
19444         maint.mk: allow to pass options to gendocs.sh
19445         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
19446         (gendocs_options_): New overridable variable.
19447
19448         gnu-web-doc-update: don't ignore configure or build failure
19449         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
19450
19451         announce-gen: backslash-escape '@'s in --help output
19452         * build-aux/announce-gen: Fix syntax errors.
19453
19454         maint.mk, announce-gen: allow project-specific announcement mail headers
19455         * top/maint.mk (translation_project_): Define default.
19456         (announcement_Cc_, announcement_mail_headers_): Likewise.
19457         (announcement): Invoke announce-gen with new --mail-headers option.
19458         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
19459
19460         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
19461         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
19462         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
19463         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
19464         line in the "err2" output file when running "make check" in verbose
19465         mode (i.e., with set -x enabled).
19466
19467 2010-05-03  Bruno Haible  <bruno@clisp.org>
19468
19469         wctob: Fix for weird platforms.
19470         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
19471         argument value.
19472
19473 2010-05-03  Jim Meyering  <meyering@redhat.com>
19474
19475         maint.mk: prohibit unwarranted use of <strings.h>
19476         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
19477         strings.h in a file that does not also use strcasecmp, strncasecmp,
19478         ffs or ffsll.
19479
19480         maint.mk: remove obsolete comments
19481         * top/maint.mk: Remove stale, commented-out rules.
19482
19483 2010-05-02  Bruno Haible  <bruno@clisp.org>
19484
19485         wcwidth: Declare also when it's aliased.
19486         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
19487         macro.
19488
19489 2010-05-02  Bruno Haible  <bruno@clisp.org>
19490
19491         Fix regression from 2010-04-25.
19492         * gnulib-tool (func_modules_transitive_closure): Check the status of
19493         all modules, not only of the tests that are of the form foo-tests where
19494         foo is a module.
19495
19496 2010-05-02  Bruno Haible  <bruno@clisp.org>
19497
19498         wctob: Work around nasty Cygwin 1.7.2 bug.
19499         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
19500         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
19501
19502 2010-05-01  Bruno Haible  <bruno@clisp.org>
19503
19504         fpurge: Sharper test.
19505         * tests/test-fpurge.c (main): Add one more ftell check.
19506         * modules/fpurge-tests (Depends-on): Add ftell.
19507         Suggested by Eric Blake.
19508
19509 2010-05-01  Bruno Haible  <bruno@clisp.org>
19510
19511         ftello: Another test.
19512         * tests/test-ftello3.c: New file.
19513         * modules/ftello-tests (Files): Add it.
19514         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
19515         MOSTLYCLEANFILES.
19516
19517         ftell: Another test.
19518         * tests/test-ftell3.c: New file.
19519         * modules/ftell-tests (Files): Add it.
19520         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
19521         MOSTLYCLEANFILES.
19522
19523 2010-05-01  Bruno Haible  <bruno@clisp.org>
19524
19525         ftell, ftello: Work around Solaris bug.
19526         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
19527         * lib/ftello.c: Include stdio-impl.h.
19528         (ftello): On Solaris, when _IOWRT is set, compute the result without
19529         looking at _IOREAD.
19530         * modules/ftello (Files): Add lib/stdio-impl.h.
19531         * doc/posix-functions/ftell.texi: Mention Solaris bug.
19532         * doc/posix-functions/ftello.texi: Likewise.
19533         Reported by Eric Blake.
19534
19535 2010-05-01  Bruno Haible  <bruno@clisp.org>
19536
19537         freading: Adapt to special meaning of _IOREAD flag on Solaris.
19538         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
19539         the _IOWRT flag is also set.
19540
19541 2010-05-01  Bruno Haible  <bruno@clisp.org>
19542
19543         Fix doc about a HP-UX stdio bug.
19544         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
19545         * doc/posix-functions/ftello.texi: Likewise.
19546
19547 2010-05-01  Bruno Haible  <bruno@clisp.org>
19548
19549         lseek test: Fix failure on Solaris.
19550         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
19551         output.
19552
19553 2010-04-30  Jim Meyering  <meyering@redhat.com>
19554
19555         bootstrap: don't ignore failure to generate po*/Makevars
19556         * build-aux/bootstrap (with_gettext): Don't ignore failure
19557         to create po/Makevars or runtime-po/Makevars.
19558
19559 2010-04-29  Eric Blake  <eblake@redhat.com>
19560
19561         headers: relax license to LGPLv2+
19562         * modules/fcntl-h (License): Relax license.
19563         * modules/getopt-posix (License): Likewise.
19564         * modules/locale (License): Likewise.
19565         * modules/math (License): Likewise.
19566         * modules/pty (License): Likewise.
19567         * modules/sched (License): Likewise.
19568         * modules/search (License): Likewise.
19569         * modules/spawn (License): Likewise.
19570         * modules/stdarg (License): Likewise.
19571         * modules/sysexits (License): Likewise.
19572
19573 2010-04-29  Jim Meyering  <meyering@redhat.com>
19574
19575         inttypes: relax license to LGPLv2+
19576         * modules/inttypes (License): Relax license.
19577
19578 2010-04-29  Simon Josefsson  <simon@josefsson.org>
19579
19580         * top/maint.mk (indent): Run twice to produce idempotent results.
19581
19582 2010-04-28  Bruno Haible  <bruno@clisp.org>
19583
19584         getdate: Generate getdate.c in the source directory.
19585         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
19586         MOSTLYCLEANFILES.
19587         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
19588
19589 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
19590
19591         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
19592         is not declared as a const *; avoid warnings in that case.
19593
19594 2010-04-28  Eric Blake  <eblake@redhat.com>
19595
19596         canonicalize-lgpl: avoid compiler warning
19597         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
19598         declaration' / 'extraneous semicolon' warning with some compilers.
19599         Reported by Andreas Gruenbacher.
19600
19601 2010-04-28  Jim Meyering  <meyering@redhat.com>
19602
19603         init.sh: ensure a more reliable exit status when exiting via trap
19604         * tests/init.sh (setup_): Don't rely on $? in signal handler.
19605         Inspired by patches from Dmitry V. Levin.
19606         Also trap on signal 3 (SIGQUIT).
19607
19608 2010-04-27  Bruno Haible  <bruno@clisp.org>
19609
19610         Update doc about utimes().
19611         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
19612         'utimens' module.
19613         Reported by Andreas Gruenbacher <agruen@suse.de>.
19614
19615 2010-04-27  Eric Blake  <eblake@redhat.com>
19616
19617         full-read, full-write: relax license
19618         * modules/full-read (License): Drop to LGPLv2+.
19619         * modules/full-write (License): Likewise.
19620         * modules/safe-read (License): Likewise.
19621         * modules/safe-write (License): Likewise.
19622
19623         pthread: mention library for linking
19624         * modules/pthread (Link): Mention $(LIB_PTHREAD).
19625
19626 2010-04-27  Jim Meyering  <meyering@redhat.com>
19627
19628         maint.mk: fix a bug introduced in last change
19629         * top/maint.mk (gl_assured_headers_): Now that all names are on
19630         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
19631         is not anchored to end of word, it should be adequate.
19632
19633         maint.mk: avoid side-effect in latest syntax-check
19634         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
19635         to run commands via $(shell...), and hence to incur cost only when
19636         the new rule is actually run.
19637
19638         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
19639         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
19640         and use that to create a regexp used to detect all #if HAVE_..._H uses.
19641         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
19642         (gl_assured_headers_, az_, AZ_): Define.
19643         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
19644
19645 2010-04-26  Jim Meyering  <jim@meyering.net>
19646             Bruno Haible  <bruno@clisp.org>
19647
19648         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
19649         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
19650         Prompted by an exchange with Gilles Espinasse.
19651
19652 2010-04-26  Jim Meyering  <meyering@redhat.com>
19653
19654         git-version-gen: aesthetic tweak
19655         * build-aux/git-version-gen: Use "$nl" rather than a literal,
19656         so that the command remains on a single line.
19657
19658 2010-04-26  Eric Blake  <eblake@redhat.com>
19659
19660         git-version-gen: allow use on EBCDIC hosts
19661         * build-aux/git-version-gen (dirty): Use literal rather than tying
19662         ourselves to ascii.
19663         Reported by Steve Goetze.
19664
19665 2010-04-25  Bruno Haible  <bruno@clisp.org>
19666
19667         netdb: Add support for GNULIB_POSIXCHECK.
19668         * lib/netdb.in.h: Include warn-on-use.h.
19669         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
19670         functions are used when GNULIB_POSIXCHECK is defined and the
19671         getaddrinfo module is not in use.
19672         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
19673         freeaddrinfo, gai_strerror, getnameinfo are declared.
19674         * modules/netdb (Depends-on): Add warn-on-use.
19675         (Makefile.am): Include warn-on-use.h in netdb.h.
19676
19677 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
19678
19679         build: avoid "make check" failure without .git/ directory
19680         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
19681         there is no .git/ directory.
19682
19683 2010-04-25  Bruno Haible  <bruno@clisp.org>
19684
19685         ptsname: Fix misuse of ttyname_r.
19686         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
19687         of errno.
19688
19689 2010-04-25  Bruno Haible  <bruno@clisp.org>
19690
19691         ttyname_r: Make it work on Solaris 10.
19692         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
19693         if the system function has the POSIX declaration. Test whether the
19694         function fails if the buffer is less than 128 bytes large.
19695         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
19696         system's ttyname_r function. Provide a reasonably large buffer.
19697         * modules/ttyname_r (Depends-on): Add extensions.
19698         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
19699
19700 2010-04-25  Bruno Haible  <bruno@clisp.org>
19701
19702         Use the 'extensions' module for some more functions on Solaris.
19703         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
19704         module.
19705         * doc/posix-functions/ctime_r.texi: Likewise.
19706         * doc/posix-functions/getgrgid_r.texi: Likewise.
19707         * doc/posix-functions/getgrnam_r.texi: Likewise.
19708         * doc/posix-functions/getpwnam_r.texi: Likewise.
19709         * doc/posix-functions/getpwuid_r.texi: Likewise.
19710         * doc/posix-functions/readdir_r.texi: Likewise.
19711         * doc/posix-functions/sigwait.texi: Likewise.
19712         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
19713         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
19714
19715 2010-04-25  Bruno Haible  <bruno@clisp.org>
19716
19717         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
19718         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
19719         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
19720         * lib/ttyname_r.c: Include <limits.h>.
19721         (ttyname_r): Define using the system's ttyname_r function, if it exists
19722         and not on Solaris.
19723         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
19724         set.
19725         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
19726         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
19727         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
19728         Reported by Simon Josefsson.
19729
19730 2010-04-25  Bruno Haible  <bruno@clisp.org>
19731
19732         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
19733         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
19734         * doc/posix-functions/ctime_r.texi: Likewise.
19735         * doc/posix-functions/getgrgid_r.texi: Likewise.
19736         * doc/posix-functions/getgrnam_r.texi: Likewise.
19737         * doc/posix-functions/getlogin_r.texi: Likewise.
19738         * doc/posix-functions/getpwnam_r.texi: Likewise.
19739         * doc/posix-functions/getpwuid_r.texi: Likewise.
19740         * doc/posix-functions/readdir_r.texi: Likewise.
19741         * doc/posix-functions/sigwait.texi: Likewise.
19742         * doc/posix-functions/ttyname_r.texi: Likewise.
19743         Reported by Simon Josefsson.
19744
19745 2010-04-25  Bruno Haible  <bruno@clisp.org>
19746
19747         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
19748         * gnulib-tool (func_usage): Document that --with-*-tests options apply
19749         also to --create-testdir.
19750         (func_acceptable): Don't consider the status of *-tests modules here.
19751         (func_modules_transitive_closure): Consider it here, before including a
19752         test module.
19753         (func_import, func_create_testdir): Set inc_all_direct_tests,
19754         inc_all_indirect_tests.
19755         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
19756         --create-testdir and --create-megatestdir.
19757
19758 2010-04-25  Bruno Haible  <bruno@clisp.org>
19759
19760         gnulib-tool: Add --without-*-tests options.
19761         * gnulib-tool (func_usage): Document the --without-*-tests options.
19762         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
19763         excl_unportable_tests): New variables.
19764         Fail if they are specified with --import or --update.
19765         (func_acceptable): Respect the excl_*_tests variables.
19766         (func_import): Set the excl_*_tests variables to empty.
19767
19768 2010-04-25  Simon Josefsson  <simon@josefsson.org>
19769             Bruno Haible  <bruno@clisp.org>
19770
19771         Work around a MacOS X 10.4 bug with openpty.
19772         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
19773         * tests/test-openpty.c (main): Close the master side explicitly.
19774
19775 2010-04-25  Bruno Haible  <bruno@clisp.org>
19776
19777         strnlen: Fix a C++ test error on MacOS X and Solaris.
19778         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
19779         the function is not declared.
19780         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
19781         Simon Josefsson.
19782
19783 2010-04-24  Bruno Haible  <bruno@clisp.org>
19784
19785         Avoid a gcc warning.
19786         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
19787         of correct type for %08lx directive.
19788         Reported by Eric Blake.
19789
19790 2010-04-24  Bruno Haible  <bruno@clisp.org>
19791
19792         vasnprintf: Correct errno value in case of out-of-memory.
19793         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
19794         or sprintf. Use the errno value from SNPRINTF or sprintf.
19795         Reported by Ian Beckwith <ianb@erislabs.net>.
19796
19797 2010-04-24  Bruno Haible  <bruno@clisp.org>
19798
19799         ansi-c++-opt: Find correct compiler when cross-compiling.
19800         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
19801         AC_CHECK_PROGS.
19802         Reported by Simon Josefsson.
19803
19804 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
19805
19806         vc-list-files: Add support for subversion
19807         * build-aux/vc-list-files: Use "svn list" to generate the list of
19808         files controlled by subversion.
19809
19810 2010-04-23  Jim Meyering  <meyering@redhat.com>
19811
19812         vc-list-files tests: convert to use init.sh
19813         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
19814         path_prepend_.
19815         Use Exit, not exit.
19816         Use skip_ rather than open coding it.
19817         Remove trap set-up and compare definitions.
19818         * tests/test-vc-list-files-git.sh: Likewise.
19819         * modules/vc-list-files-tests (Files): Add tests/init.sh.
19820
19821 2010-04-22  Simon Josefsson  <simon@josefsson.org>
19822
19823         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
19824         backup files.
19825
19826 2010-04-21  Simon Josefsson  <simon@josefsson.org>
19827
19828         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
19829
19830 2010-04-20  Eric Blake  <eblake@redhat.com>
19831
19832         tests: be robust to ignored SIGPIPE
19833         * tests/test-select-in.sh: Consume all output.
19834         * tests/test-lseek.sh: Check correct exit status, while avoiding
19835         EPIPE.
19836
19837 2010-04-20  Simon Josefsson  <simon@josefsson.org>
19838             Bruno Haible  <bruno@clisp.org>
19839
19840         visibility: Don't use -fvisibility if it leads to a warning.
19841         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
19842         yes, don't pretend that visibility works if it leads to a warning.
19843         Reported by Mike Gran <spk121@yahoo.com>.
19844
19845 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
19846
19847         * build-aux/bootstrap: Use "git -h" for testing for supported options
19848         instead of "git --help".  The short-form option only shows a summary,
19849         and doesn't layout the full man page.  Grep for the full option name
19850         in the summary, too.
19851
19852 2010-04-19  Bruno Haible  <bruno@clisp.org>
19853
19854         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
19855         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
19856         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
19857         mention of RELOCATABLE_STRIP.
19858         Reported by Sylvain Beucler <beuc@beuc.net>.
19859
19860 2010-04-19  Bruno Haible  <bruno@clisp.org>
19861
19862         * lib/diffseq.h: Fix typo in comment.
19863         Reported by Eric Blake.
19864
19865 2010-04-19  Bruno Haible  <bruno@clisp.org>
19866
19867         ioctl: Move autoconf macro to a .m4 file.
19868         * m4/ioctl.m4: New file, extracted from modules/ioctl.
19869         * modules/ioctl (Files): Add it.
19870         (configure.ac): Simply invoke gl_FUNC_IOCTL.
19871         Reported by Ian Beckwith <ianb@erislabs.net>.
19872
19873 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
19874             Bruno Haible  <bruno@clisp.org>
19875
19876         diffseq: Accommodate use-case with abstract arrays.
19877         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
19878         is not defined.
19879         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
19880         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
19881
19882 2010-04-18  Bruno Haible  <bruno@clisp.org>
19883
19884         * doc/posix-headers/stdbool.texi: More precise wording.
19885
19886 2010-04-17  Jim Meyering  <meyering@redhat.com>
19887
19888         maint.mk: use gnu-style indentation in an embedded perl script
19889         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
19890         Rename variable: s/two/last_two_bytes/
19891
19892 2010-04-16  Eric Blake  <eblake@redhat.com>
19893
19894         test-stdbool: skip test that fails with Solaris CC
19895         * tests/test-stdbool.c (f): Skip test that causes compilation
19896         error under buggy C++ compiler.
19897         * lib/stdbool.in.h: Document the limitation.
19898         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
19899
19900         setenv: allow compilation with C++
19901         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
19902         register keyword.
19903
19904         stdint: allow test to pass with C++
19905         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
19906
19907         getopt: allow compilation with C++
19908         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
19909         struct.
19910         * lib/getopt.c (_getopt_internal_r): Use correct type.
19911         Reported by Dagobert Michelson, via Joel E. Denny.
19912
19913 2010-04-16  Bruno Haible  <bruno@clisp.org>
19914
19915         Override netdb.h always.
19916         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
19917         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
19918         Reported by Ludovic Courtès <ludo@gnu.org>.
19919
19920 2010-04-15  Bruno Haible  <bruno@clisp.org>
19921
19922         openpty: Fix mistake from 2010-03-21.
19923         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
19924         Reported by Simon Josefsson.
19925
19926 2010-04-15  Eric Blake  <eblake@redhat.com>
19927
19928         test-forkpty: fix expected signature
19929         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
19930         Reported by Simon Josefsson.
19931
19932 2010-04-15  Jim Meyering  <meyering@redhat.com>
19933
19934         maint.mk: texinfo_suffix_re_: correct the default regexp
19935         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
19936
19937         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
19938         make it configurable via texinfo_suffix_re_.
19939
19940 2010-04-14  Eric Blake  <eblake@redhat.com>
19941
19942         strtok_r: relax license to LGPLv2+
19943         * modules/strtok_r (License): Relax license.
19944         Reported by Matthias Bolte.
19945
19946 2010-04-14  Simon Josefsson  <simon@josefsson.org>
19947
19948         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
19949         version 1.4.4 by default instead of requiring the libgcrypt
19950         version used during build.  This makes it possible to use the
19951         application with older but still binary compatible libgcrypt
19952         versions.
19953
19954 2010-04-13  Eric Blake  <eblake@redhat.com>
19955
19956         getopt-gnu: match recent glibc fixes and posix ruling
19957         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
19958         '+' handling, when requesting extensions.
19959         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
19960         'W;' handling.
19961         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
19962         * doc/posix-functions/getopt.texi (getopt): Document this.
19963         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
19964         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
19965         Likewise.
19966
19967         getopt: merge bug fixes from glibc
19968         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
19969         diagnostics.  Honor '+:' correctly.  Reject ';'.
19970
19971         getopt-posix: detect MacOS bug
19972         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
19973         optind when missing a required argument.
19974         * doc/posix-functions/getopt.texi (getopt): Document the bug.
19975         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
19976         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
19977         Likewise.
19978
19979         getopt-posix: avoid spurious failure on Solaris
19980         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
19981         an indicator that setting optind=1 is sufficient for reset.
19982
19983         getopt-posix: avoid spurious failure on FreeBSD
19984         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
19985         in POSIX mode, since the m4 test uses it.
19986
19987         gnulib-tool: silence warning on BSD sh
19988         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
19989
19990 2010-04-13  Jim Meyering  <meyering@redhat.com>
19991
19992         doc: users.txt: GNU patch now uses gnulib
19993         * users.txt: Add patch.
19994
19995 2010-04-12  Jim Meyering  <meyering@redhat.com>
19996
19997         maint.mk: generate more concise timing data for syntax-check rules
19998         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
19999         " done" from each line that reports a syntax-check test duration.
20000
20001 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
20002
20003         git-version-gen: use "git update-index..." rather than "git status"
20004         * build-aux/git-version-gen: Use git update-index --refresh, not
20005         "git status".  With some versions of git, "git status" would fail
20006         to update the index and result in an unwarranted "-dirty" suffix.
20007
20008 2010-04-11  Jim Meyering  <meyering@redhat.com>
20009
20010         openat: correct formatting (no semantic change)
20011         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
20012         Suggested by Bruno Haible.
20013
20014 2010-04-11  Bruno Haible  <bruno@clisp.org>
20015
20016         Stricter declaration checking in testdirs.
20017         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
20018         If for_tests is true, augment AM_CPPFLAGS to define
20019         GNULIB_STRICT_CHECKING.
20020         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
20021         GNULIB_STRICT_CHECKING is defined, verify that the function is
20022         declared.
20023
20024 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
20025             Bruno Haible  <bruno@clisp.org>
20026
20027         libunistring: Improve configure output.
20028         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
20029         Don't say "consider installing GNU libunistring" when checking again
20030         with libiconv.
20031
20032 2010-04-11  Bruno Haible  <bruno@clisp.org>
20033
20034         libunistring: Correct value of $LTLIBUNISTRING.
20035         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
20036         correct the value of $LTLIBUNISTRING.
20037
20038 2010-04-11  Bruno Haible  <bruno@clisp.org>
20039
20040         havelib: Add static libraries to LIBS in the right order.
20041         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
20042         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
20043
20044 2010-04-11  Bruno Haible  <bruno@clisp.org>
20045
20046         libunistring: Detect libunistring also when it depends on libiconv.
20047         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
20048         the second AC_LIB_HAVE_LINKFLAGS invocation.
20049
20050 2010-04-11  James Youngman  <jay@gnu.org>
20051
20052         close-stream: declare local scalars to be "const"
20053         * lib/close-stream.c (close_stream): Make boolean variables const
20054         to document the fact that we set but do not change them.
20055
20056 2010-04-11  Bruno Haible  <bruno@clisp.org>
20057
20058         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
20059
20060 2010-04-11  Jim Meyering  <meyering@redhat.com>
20061
20062         maint.mk: don't include dist-check.mk
20063         * top/maint.mk: Remove bogus include directive.
20064
20065         maint.mk: improve empty-line-at-EOF check
20066         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
20067         solution, rather than tail+Perl-based one.  The latter would read
20068         a few kilobytes from the end of each file, and did not handle empty
20069         files properly.
20070
20071         maint.mk: print the elapsed time for each syntax-check rule
20072         * top/maint.mk (sc_m_rules_): Save start time in a file.
20073         (sc_z_rules_): New rules: remove temp file and print elapsed time.
20074         (local-check): Interpose the .z rules
20075
20076 2010-04-11  Jim Meyering  <meyering@redhat.com>
20077
20078         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
20079         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
20080         empty file with one that ends in an empty line.
20081
20082 2010-04-10  Bruno Haible  <bruno@clisp.org>
20083
20084         mkdir: Make it work on mingw64.
20085         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
20086         * lib/mkdir.c: Update comment.
20087         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
20088
20089 2010-04-10  Bruno Haible  <bruno@clisp.org>
20090
20091         Don't override improved macro from newer autoconf.
20092         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
20093         autoconf >= 2.62.
20094         Reported by Joel E. Denny <jdenny@clemson.edu>.
20095
20096 2010-04-10  Jim Meyering  <meyering@redhat.com>
20097
20098         maint.mk: new syntax-check rule: prohibit empty lines at end of file
20099         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
20100
20101         maint.mk: correct a diagnostic
20102         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
20103         in diagnostic; now use $prohibit.
20104
20105 2010-04-10  Bruno Haible  <address@hidden>
20106
20107         fchownat: Fix a C++ test error on Solaris 8.
20108         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
20109         the function does not exist.
20110
20111 2010-04-10  Bruno Haible  <bruno@clisp.org>
20112
20113         vasnprintf: Add more tests.
20114         * tests/test-vasnprintf-posix.c: Include <errno.h>.
20115         (test_function): Test converting an invalid wide string.
20116
20117         vasnprintf: Correct handling of unconvertible wide string arguments.
20118         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
20119         VASNPRINTF.
20120         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
20121         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
20122         smaller than the expected maximum need for the directive. Set errno to
20123         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
20124         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
20125         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
20126         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
20127         * modules/vasnprintf (Files): Add m4/printf.m4.
20128         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
20129
20130 2010-04-10  Bruno Haible  <bruno@clisp.org>
20131
20132         vasnprintf: Fix crash in %ls directive.
20133         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
20134         string is passed as argument to %ls, with no precision and no width.
20135         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
20136
20137 2010-04-10  Bruno Haible  <bruno@clisp.org>
20138
20139         vasnprintf: Fix multiple test failures on mingw.
20140         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
20141         _snprintf, or snwprintf, not _snwprintf.
20142
20143 2010-04-10  Bruno Haible  <bruno@clisp.org>
20144
20145         write: Fix a C++ test error on mingw.
20146         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
20147
20148 2010-04-10  Bruno Haible  <bruno@clisp.org>
20149
20150         vasnprintf test: Reduce code duplication.
20151         * tests/test-vasnprintf.c (test_function): New function, extracted from
20152         test_vasnprintf.
20153         (test_vasnprintf, test_asnprintf): Invoke it.
20154
20155 2010-04-10  Bruno Haible  <bruno@clisp.org>
20156
20157         strnlen: Fix warning in C++ mode on MacOS X.
20158         * lib/string.in.h (strnlen): Use the modern idiom.
20159         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
20160         defining strnlen as a macro already in <config.h>.
20161         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
20162         REPLACE_STRNLEN.
20163         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
20164         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
20165
20166 2010-04-08  James Youngman  <jay@gnu.org>
20167
20168         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
20169         the example.
20170
20171 2010-04-09  Jim Meyering  <meyering@redhat.com>
20172
20173         maint.mk: print better diagnostic when there is no $(_hv_file)
20174         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
20175         announce that when $(_hv_file) (aka help-version) does not exist.
20176
20177         init.sh: run tr in the "C" locale to avoid multibyte interpretation
20178         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
20179         not try to interpret its random input bytes.  Jarno Rajahalme reported
20180         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
20181         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
20182         (mktempd_): Likewise, just in case.
20183
20184         ftruncate: add two years to projected module removal date: 2012
20185         * m4/ftruncate.m4: Adjust comments.
20186
20187         ftruncate: mark module as obsolete; even MinGW provides it, now
20188         * modules/ftruncate (Status): Obsolete.
20189         (Notice): Say that.
20190         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
20191         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
20192
20193 2010-04-08  Bruno Haible  <bruno@clisp.org>
20194
20195         Fix side effects from tests-related modules.
20196         * modules/dprintf-posix (Comment): New section.
20197         * modules/fprintf-posix (Comment): Likewise.
20198         * modules/obstack-printf-posix (Comment): Likewise.
20199         * modules/printf-posix (Comment): Likewise.
20200         * modules/snprintf-posix (Comment): Likewise.
20201         * modules/sprintf-posix (Comment): Likewise.
20202         * modules/vasnprintf-posix (Comment): Likewise.
20203         * modules/vasprintf-posix (Comment): Likewise.
20204         * modules/vdprintf-posix (Comment): Likewise.
20205         * modules/vfprintf-posix (Comment): Likewise.
20206         * modules/vprintf-posix (Comment): Likewise.
20207         * modules/vsnprintf-posix (Comment): Likewise.
20208         * modules/vsprintf-posix (Comment): Likewise.
20209         * modules/xprintf-posix (Comment): Likewise.
20210         * modules/xvasprintf-posix (Comment): Likewise.
20211         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
20212         * modules/floorf-tests (Depends-on): Likewise.
20213         * modules/round-tests (Depends-on): Likewise.
20214         * modules/roundf-tests (Depends-on): Likewise.
20215         * modules/trunc-tests (Depends-on): Likewise.
20216         * modules/truncf-tests (Depends-on): Likewise.
20217         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
20218         'fprintf-posix' module is not present.
20219         * tests/test-floorf2.c (check): Likewise.
20220         * tests/test-trunc2.c (check): Likewise.
20221         * tests/test-truncf2.c (check): Likewise.
20222         * tests/test-round2.c (equal): Likewise.
20223         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
20224
20225 2010-04-07  Karl Berry  <karl@gnu.org>
20226
20227         * config/srclist.txt,
20228         * config/srclistvars.sh,
20229         * config/srclist-update: doc fixes.
20230
20231 2010-04-07  Jim Meyering  <meyering@redhat.com>
20232
20233         maint.mk: add a PATH crosschecking syntax-check rule
20234         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
20235         Useful if you use a test like the one in help-version (coreutils,
20236         diffutils, grep, gzip) that ensures $(VERSION) matches what is
20237         printed by prog --version.
20238
20239 2010-04-06  Bruno Haible  <bruno@clisp.org>
20240
20241         Fix link error on mingw.
20242         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
20243         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
20244
20245 2010-04-06  Bruno Haible  <bruno@clisp.org>
20246
20247         Assume rmdir exists.
20248         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
20249
20250 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
20251
20252         doc: update users.txt
20253         * users.txt: Add gcal.
20254
20255 2010-04-06  Jim Meyering  <meyering@redhat.com>
20256
20257         init.sh: simply unset TMPDIR rather than risking env -i
20258         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
20259         although it probably works fine on all Unix-based systems, some
20260         systems (Cygwin?) cannot tolerate a totally cleared environment.
20261         Suggestion from Eric Blake.
20262
20263 2010-04-06  Jim Meyering  <meyering@redhat.com>
20264
20265         init.sh: portability fix: use env's POSIX-specified -i option not -u
20266         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
20267         than unportable env -u.  Solaris 5.11's env lacks support for -u.
20268
20269 2010-04-05  Bruno Haible  <bruno@clisp.org>
20270
20271         btowc: Work around Cygwin 1.7.2 bug.
20272         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
20273         does not map NUL to 0.
20274         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
20275
20276 2010-04-05  Bruno Haible  <bruno@clisp.org>
20277
20278         Make the multithread modules work on Cygwin 1.7.2.
20279         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
20280         imported symbols can be declared weak, so that it returns "no" on
20281         Cygwin 1.7.2.
20282
20283 2010-04-05  Bruno Haible  <bruno@clisp.org>
20284
20285         Use the module 'strncat'.
20286         * modules/unistr/u8-strncat (Depends-on): Add strncat.
20287
20288         Tests for module 'strncat'.
20289         * modules/strncat-tests: New file.
20290         * tests/test-strncat.c: New file.
20291
20292         New module 'strncat'.
20293         * lib/string.in.h (strncat): New declaration.
20294         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
20295         * m4/strncat.m4: New file, based on m4/memchr.m4.
20296         * modules/strncat: New file.
20297         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
20298         is declared.
20299         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
20300         REPLACE_STRNCAT.
20301         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
20302         REPLACE_STRNCAT.
20303         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
20304         module.
20305         * tests/test-string-c++.cc: Check signature of strncat.
20306
20307 2010-04-05  Jim Meyering  <meyering@redhat.com>
20308
20309         xstrtoumax-tests: convert to use init.sh
20310         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
20311         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
20312         Use Exit, not exit.
20313         Remove uses of $EXEEXT and "./" to run a program in the current dir.
20314
20315         xstrtoimax-tests: convert to use init.sh
20316         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
20317         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
20318         Use Exit, not exit.
20319         Remove uses of $EXEEXT and "./" to run a program in the current dir.
20320
20321 2010-04-05  Bruno Haible  <bruno@clisp.org>
20322
20323         sys_socket: Avoid #define replacements in C++ mode.
20324         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
20325         warning to the function if possible, rather than #defining the symbol
20326         to a dysfunctional alias.
20327
20328 2010-04-05  Bruno Haible  <bruno@clisp.org>
20329
20330         fseeko: Fix C++ test error on mingw.
20331         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
20332         gl_FUNC_FSEEKO.
20333         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
20334         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
20335         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
20336         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
20337
20338 2010-04-05  Bruno Haible  <bruno@clisp.org>
20339
20340         duplocale: Improve test output.
20341         * tests/test-duplocale.c (main): Print reason for skipped test.
20342
20343 2010-04-05  Bruno Haible  <bruno@clisp.org>
20344
20345         Assume rmdir exists.
20346         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
20347         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
20348
20349 2010-04-05  Bruno Haible  <bruno@clisp.org>
20350
20351         Fix link error on Solaris 8 with cc.
20352         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
20353
20354 2010-04-05  Bruno Haible  <bruno@clisp.org>
20355
20356         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
20357         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
20358
20359 2010-04-05  Bruno Haible  <bruno@clisp.org>
20360
20361         vasprintf: Update documentation.
20362         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
20363
20364 2010-04-05  Bruno Haible  <bruno@clisp.org>
20365
20366         ptsname: Improve test.
20367         * tests/test-ptsname.c (main): Also try the various master names of BSD
20368         systems.
20369
20370 2010-04-05  Bruno Haible  <bruno@clisp.org>
20371
20372         memchr: Avoid a possible C++ test error.
20373         * lib/string.in.h (memchr): Provide declaration if function is missing.
20374         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
20375         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
20376         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
20377         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
20378
20379 2010-04-05  Bruno Haible  <bruno@clisp.org>
20380
20381         strtok_r: Improve idiom.
20382         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
20383         AC_LIBOBJ is used.
20384
20385 2010-04-05  Bruno Haible  <bruno@clisp.org>
20386
20387         strdup: Improve idiom.
20388         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
20389         AC_LIBOBJ is used.
20390         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
20391         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
20392         when AC_LIBOBJ is used.
20393
20394 2010-04-05  Bruno Haible  <bruno@clisp.org>
20395
20396         mbsinit, mbrtowc, wcrtomb: Improve idioms.
20397         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
20398         don't set REPLACE_MBSINIT to 1.
20399         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
20400         don't set REPLACE_MBRTOWC to 1.
20401         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
20402         exist, don't set REPLACE_MBSRTOWCS to 1.
20403         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
20404         exist, don't set REPLACE_MBSNRTOWCS to 1.
20405         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
20406         don't set REPLACE_WCRTOMB to 1.
20407         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
20408         exist, don't set REPLACE_WCSRTOMBS to 1.
20409         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
20410         exist, don't set REPLACE_WCSNRTOMBS to 1.
20411
20412 2010-04-05  Bruno Haible  <bruno@clisp.org>
20413
20414         ldexpl: Improve idiom.
20415         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
20416         make sure to set HAVE_DECL_LDEXPL to 0.
20417
20418 2010-04-05  Jim Meyering  <meyering@redhat.com>
20419
20420         xstrtol-tests: convert to use init.sh
20421         * modules/xstrtol-tests (Files): Add tests/init.sh.
20422         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
20423         Use Exit, not exit.
20424         Remove uses of $EXEEXT and "./" to run a program in the current dir.
20425
20426         atexit-tests: convert to use init.sh
20427         * modules/atexit-tests (Files): Add tests/init.sh.
20428         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
20429         Use Exit, not exit.
20430         Remove uses of $EXEEXT and "./" to run a program in the current dir.
20431
20432         init.sh: fix typo
20433         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
20434
20435         init.sh: make it easier for a test script to write to the tty, ...
20436         when using automake's parallel-tests mode.
20437         * tests/init.sh (stderr_fileno_): Define overridable variable.
20438         (warn_): New function, to use it.
20439         (fail_, skip_, framework_failure_): Use warn_.
20440
20441 2010-04-04  Bruno Haible  <bruno@clisp.org>
20442
20443         btowc: Avoid warning.
20444         * lib/btowc.c: Include <stdlib.h>.
20445         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
20446
20447 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
20448             Bruno Haible  <bruno@clisp.org>
20449
20450         wchar: Port to NetBSD 1.5.
20451         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
20452         * lib/wctype.in.h (WEOF): Likewise.
20453
20454 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
20455             Bruno Haible  <bruno@clisp.org>
20456
20457         Port extended stdio to NetBSD 1.5.
20458         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
20459         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
20460         older.
20461
20462 2010-04-04  Bruno Haible  <bruno@clisp.org>
20463
20464         string: Remove unused substitution.
20465         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
20466         HAVE_DECL_STRERROR.
20467         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
20468
20469 2010-04-04  Bruno Haible  <bruno@clisp.org>
20470
20471         strtod: Avoid a possible C++ test error.
20472         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
20473         set REPLACE_STRTOD.
20474
20475 2010-04-04  Bruno Haible  <bruno@clisp.org>
20476
20477         strerror: Update documentation.
20478         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
20479
20480 2010-04-04  Bruno Haible  <bruno@clisp.org>
20481
20482         stdio: Fix some C++ test errors on Solaris 8 with GCC.
20483         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
20484         _GL_CXXALIAS_SYS_CAST.
20485
20486 2010-04-04  Bruno Haible  <bruno@clisp.org>
20487
20488         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
20489         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
20490         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
20491         REPLACE_FREXPL to 1.
20492         * doc/posix-functions/frexpl.texi: Update documentation.
20493
20494 2010-04-04  Bruno Haible  <bruno@clisp.org>
20495
20496         math: Fix some C++ test errors on Solaris 8 and Cygwin.
20497         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
20498
20499 2010-04-04  Bruno Haible  <bruno@clisp.org>
20500
20501         Implement nanosleep for native Windows.
20502         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
20503
20504 2010-04-04  Bruno Haible  <bruno@clisp.org>
20505
20506         math: Fix some C++ test errors on Solaris 8.
20507         * lib/math.in.h (truncf, trunc): Use simpler idiom.
20508
20509 2010-04-04  Bruno Haible  <bruno@clisp.org>
20510
20511         math: Fix some C++ test errors on Cygwin.
20512         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
20513         truncl): Provide declaration if the system does not have it.
20514         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
20515         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
20516         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
20517         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
20518         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
20519         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
20520         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
20521         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
20522         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
20523         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
20524         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
20525         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
20526         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
20527         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
20528         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
20529         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
20530         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
20531         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
20532         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
20533         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
20534         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
20535         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
20536
20537 2010-04-04  Bruno Haible  <bruno@clisp.org>
20538
20539         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
20540         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
20541         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
20542         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
20543         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
20544         * m4/isinf.m4 (gl_ISINF): Likewise.
20545         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
20546
20547 2010-04-04  Bruno Haible  <bruno@clisp.org>
20548
20549         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
20550         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
20551
20552 2010-04-04  Bruno Haible  <bruno@clisp.org>
20553
20554         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
20555         * modules/tmpfile (configure.ac): Update.
20556
20557         tmpfile: Fix C++ test error on mingw.
20558         * lib/stdio.in.h (tmpfile): New declaration.
20559         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
20560         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
20561         * modules/tmpfile (Depends-on): Add stdio.
20562         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
20563         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
20564         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
20565         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
20566         REPLACE_TMPFILE.
20567         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
20568
20569 2010-04-04  Bruno Haible  <bruno@clisp.org>
20570
20571         ioctl: Fix C++ test error on mingw.
20572         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
20573         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
20574         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
20575
20576 2010-04-03  Bruno Haible  <bruno@clisp.org>
20577
20578         wcwidth: Fix C++ test error on mingw.
20579         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
20580         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
20581         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
20582
20583 2010-04-03  Bruno Haible  <bruno@clisp.org>
20584
20585         nanosleep: Fix C++ test error on mingw.
20586         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
20587         * lib/time.in.h (nanosleep): Use modern idiom.
20588         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
20589         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
20590         REPLACE_NANOSLEEP to 1.
20591         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
20592         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
20593
20594 2010-04-03  Bruno Haible  <bruno@clisp.org>
20595
20596         strptime: Fix C++ test error on mingw.
20597         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
20598         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
20599         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
20600         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
20601         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
20602         not REPLACE_STRPTIME.
20603         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
20604         REPLACE_STRPTIME.
20605
20606 2010-04-03  Bruno Haible  <bruno@clisp.org>
20607
20608         timegm: Fix C++ test error on mingw.
20609         * lib/time.in.h (timegm): Use modern idiom.
20610         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
20611         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
20612         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
20613         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
20614
20615 2010-04-03  Bruno Haible  <bruno@clisp.org>
20616
20617         timegm: Assume declaration if function exists.
20618         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
20619         if it exists. Don't clobber ac_cv_func_timegm.
20620
20621 2010-04-03  Bruno Haible  <bruno@clisp.org>
20622
20623         time_r: Fix C++ test error on mingw.
20624         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
20625         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
20626         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
20627         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
20628         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
20629
20630 2010-04-03  Bruno Haible  <bruno@clisp.org>
20631
20632         time_r: Minor updates.
20633         * modules/time_r (Description): Mention the provided functions.
20634         * lib/time_r.c: Don't include <string.h>.
20635         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
20636         * doc/posix-functions/localtime_r.texi: Likewise.
20637
20638 2010-04-03  Bruno Haible  <bruno@clisp.org>
20639
20640         time: Fix regression introduced on 2010-03-08.
20641         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
20642         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
20643
20644 2010-04-03  Jim Meyering  <meyering@redhat.com>
20645
20646         maint.mk: don't silently disable project-specific syntax-check rules
20647         * top/maint.mk (_prohibit_regexp): Define, to help people realize
20648         that they need to convert their project-specific syntax-check rules
20649         to use the new _sc_search_regexp.
20650
20651 2010-04-03  Bruno Haible  <bruno@clisp.org>
20652
20653         fchdir: Fix regression introduced on 2010-03-08.
20654         * lib/unistd.in.h (fchdir): Fix declaration.
20655         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
20656         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
20657         REPLACE_FCHDIR.
20658         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
20659         REPLACE_FCHDIR.
20660
20661 2010-04-03  Bruno Haible  <bruno@clisp.org>
20662
20663         getpagesize: Fix C++ test error on mingw.
20664         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
20665         system does not declare the function.
20666         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
20667         declared.
20668         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
20669         HAVE_DECL_GETPAGESIZE.
20670         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
20671
20672 2010-04-03  Bruno Haible  <bruno@clisp.org>
20673
20674         stdio: Make C++ tests work on mingw.
20675         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
20676         does not declare the function.
20677
20678 2010-04-03  Bruno Haible  <bruno@clisp.org>
20679
20680         ftello: Fix C++ test error on mingw.
20681         * lib/stdio.in.h (ftello): Use modern idiom.
20682         * lib/ftello.c (ftello): Renamed from rpl_ftello.
20683         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
20684         is missing and that it needs to be replaced.
20685         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
20686         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
20687         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
20688
20689 2010-04-03  Bruno Haible  <bruno@clisp.org>
20690
20691         fseeko: Fix C++ test error on mingw.
20692         * lib/stdio.in.h (fseeko): Use modern idiom.
20693         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
20694         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
20695         is missing and that it needs to be replaced.
20696         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
20697         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
20698         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
20699
20700 2010-04-03  Bruno Haible  <bruno@clisp.org>
20701
20702         mkstemp: Fix C++ test error on mingw.
20703         * lib/stdlib.in.h (mkstemp): Use modern idiom.
20704         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
20705         function is missing and that it needs to be replaced.
20706         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
20707         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
20708
20709 2010-04-03  Bruno Haible  <bruno@clisp.org>
20710
20711         stpncpy: Fix C++ test error on mingw.
20712         * lib/string.in.h (stpncpy): Use modern idiom.
20713         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
20714         function is missing and that it needs to be replaced.
20715         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
20716         REPLACE_STPNCPY.
20717         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
20718
20719 2010-04-03  Bruno Haible  <bruno@clisp.org>
20720
20721         sys_stat: Fix C++ test error on mingw.
20722         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
20723         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
20724
20725 2010-04-03  Bruno Haible  <bruno@clisp.org>
20726
20727         pty: Update doc.
20728         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
20729
20730 2010-04-03  Bruno Haible  <bruno@clisp.org>
20731
20732         unistd: Fix C++ test error on mingw.
20733         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
20734
20735 2010-04-03  Bruno Haible  <bruno@clisp.org>
20736
20737         Update doc regarding mingw.
20738         * doc/glibc-functions/openpty.texi: Update regarding mingw.
20739         * doc/glibc-functions/login_tty.texi: Likewise.
20740         * doc/glibc-functions/forkpty.texi: Likewise.
20741
20742 2010-04-03  Bruno Haible  <bruno@clisp.org>
20743
20744         stdlib: Avoid compilation failure of c-strtold on mingw.
20745         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
20746
20747 2010-04-03  Bruno Haible  <bruno@clisp.org>
20748
20749         locale: Make C++ tests work on Cygwin and mingw.
20750         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
20751         cannot provide the function.
20752         Reported by Simon Josefsson.
20753
20754 2010-04-03  Bruno Haible  <bruno@clisp.org>
20755
20756         localename: Port to MacOS X 10.6.
20757         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
20758         memory layout of the locales in MacOS X 10.6 as well.
20759         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
20760
20761 2010-04-02  Bruno Haible  <bruno@clisp.org>
20762
20763         gnulib-tool: Ensure that long-running tests are executed last.
20764         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
20765         running tests after the one for the other tests.
20766
20767 2010-04-02  Bruno Haible  <bruno@clisp.org>
20768
20769         gnulib-tool: Ensure the tests in the main directory are executed first.
20770         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
20771         start with the current directory.
20772
20773 2010-04-02  Bruno Haible  <bruno@clisp.org>
20774
20775         Tests for module 'havelib', moved here from GNU gettext.
20776         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
20777         modifications.
20778         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
20779         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
20780         with modifications.
20781         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
20782         modifications.
20783         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
20784         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
20785         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
20786         with modifications.
20787         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
20788         with modifications.
20789         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
20790         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
20791         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
20792         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
20793         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
20794         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
20795         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
20796         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
20797         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
20798         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
20799         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
20800         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
20801         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
20802         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
20803         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
20804         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
20805         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
20806         with modifications.
20807         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
20808         with modifications.
20809         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
20810         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
20811         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
20812         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
20813         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
20814         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
20815         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
20816         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
20817         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
20818         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
20819         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
20820         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
20821         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
20822         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
20823         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
20824         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
20825         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
20826         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
20827         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
20828         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
20829         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
20830         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
20831         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
20832         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
20833         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
20834         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
20835         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
20836         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
20837         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
20838         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
20839         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
20840         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
20841         * tests/havelib/rpathx/rpathx.c: New file, from
20842         gettext/autoconf-lib-link.
20843         * tests/havelib/rpathx/Makefile.am: New file, from
20844         gettext/autoconf-lib-link.
20845         * tests/havelib/rpathx/configure.ac: New file, from
20846         gettext/autoconf-lib-link with modifications.
20847         * tests/havelib/rpathy/rpathy.c: New file, from
20848         gettext/autoconf-lib-link.
20849         * tests/havelib/rpathy/Makefile.am: New file, from
20850         gettext/autoconf-lib-link.
20851         * tests/havelib/rpathy/configure.ac: New file, from
20852         gettext/autoconf-lib-link with modifications.
20853         * tests/havelib/rpathz/rpathz.c: New file, from
20854         gettext/autoconf-lib-link.
20855         * tests/havelib/rpathz/Makefile.am: New file, from
20856         gettext/autoconf-lib-link.
20857         * tests/havelib/rpathz/configure.ac: New file, from
20858         gettext/autoconf-lib-link with modifications.
20859         * tests/havelib/rpathlx/usex.c: New file, from
20860         gettext/autoconf-lib-link.
20861         * tests/havelib/rpathlx/Makefile.am: New file, from
20862         gettext/autoconf-lib-link.
20863         * tests/havelib/rpathlx/configure.ac: New file, from
20864         gettext/autoconf-lib-link with modifications.
20865         * tests/havelib/rpathly/usey.c: New file, from
20866         gettext/autoconf-lib-link.
20867         * tests/havelib/rpathly/Makefile.am: New file, from
20868         gettext/autoconf-lib-link.
20869         * tests/havelib/rpathly/configure.ac: New file, from
20870         gettext/autoconf-lib-link with modifications.
20871         * tests/havelib/rpathlz/usez.c: New file, from
20872         gettext/autoconf-lib-link.
20873         * tests/havelib/rpathlz/Makefile.am: New file, from
20874         gettext/autoconf-lib-link.
20875         * tests/havelib/rpathlz/configure.ac: New file, from
20876         gettext/autoconf-lib-link with modifications.
20877         * tests/havelib/rpathlyx/usey.c: New file, from
20878         gettext/autoconf-lib-link.
20879         * tests/havelib/rpathlyx/Makefile.am: New file, from
20880         gettext/autoconf-lib-link.
20881         * tests/havelib/rpathlyx/configure.ac: New file, from
20882         gettext/autoconf-lib-link with modifications.
20883         * tests/havelib/rpathlzyx/usez.c: New file, from
20884         gettext/autoconf-lib-link.
20885         * tests/havelib/rpathlzyx/Makefile.am: New file, from
20886         gettext/autoconf-lib-link.
20887         * tests/havelib/rpathlzyx/configure.ac: New file, from
20888         gettext/autoconf-lib-link with modifications.
20889         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
20890         with modifications.
20891
20892 2010-04-02  Bruno Haible  <bruno@clisp.org>
20893
20894         gnulib-tool: Create distributed built sources also for the tests.
20895         * gnulib-tool (func_create_testdir): Also generate distributed built
20896         sources in the tests directory.
20897
20898 2010-04-02  Bruno Haible  <bruno@clisp.org>
20899
20900         gnulib-tool: Obey user's environment variables.
20901         * gnulib-tool (func_create_testdir): When creating built sources,
20902         respect the environment variables for autoconf, automake, etc. given by
20903         the user.
20904
20905 2010-04-02  Bruno Haible  <bruno@clisp.org>
20906
20907         gnulib-tool: Provide the value of --m4-base to modules.
20908         * gnulib-tool (func_import, func_create_testdir): Emit a definition
20909         of gl_m4_base.
20910
20911 2010-04-02  Eric Blake  <eblake@redhat.com>
20912
20913         maint.mk: fix some fallout
20914         * NEWS: Document the incompatible change, and its effect on cfg.mk.
20915         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
20916
20917 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
20918
20919         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
20920         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
20921         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
20922         (sc_cast_of_x_alloc_return_value): Likewise.
20923         (sc_cast_of_alloca_return_value): Likewise.
20924         (sc_space_tab): Likewise.
20925         (sc_prohibit_atoi_atof): Likewise.
20926         (sc_prohibit_magic_number_exit): Likewise.
20927         (sc_error_exit_success): Likewise.
20928         (sc_file_system): Likewise.
20929         (sc_prohibit_have_config_h): Likewise.
20930         (sc_require_config_h): Likewise.
20931         (sc_prohibit_HAVE_MBRTOWC): Likewise.
20932         (sc_obsolete_symbols): Likewise.
20933         (sc_changelog): Likewise.
20934         (sc_program_name): Likewise.
20935         (sc_the_the): Likewise.
20936         (sc_trailing_blank): Likewise.
20937         (sc_two_space_separator_in_usage): Likewise.
20938         (sc_useless_cpp_parens): Likewise.
20939         (sc_GPL_version): Likewise.
20940         (sc_GFDL_version): Likewise.
20941         (sc_texinfo_acronym): Likewise.
20942         (sc_prohibit_cvs_keyword): Likewise.
20943         (sc_prohibit_stat_st_blocks): Likewise.
20944         (sc_prohibit_S_IS_definition): Likewise.
20945         (sc_redundant_const): Likewise.
20946         (sc_makefile_TAB_only_indentation): Likewise.
20947         (sc_m4_quote_check): Likewise.
20948         (sc_makefile_path_separator_check): Likewise.
20949         (sc_copyright_check): Likewise.
20950         (sc_Wundef_boolean): Likewise.
20951         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
20952
20953         maint.mk: match 0 or more whitespace-before-function-call '('
20954         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
20955         that have zero or two-and-more spaces between the function name
20956         and the open parenthesis.
20957         (sc_error_message_warn_fatal): Likewise.
20958         (sc_error_message_uppercase): Likewise.
20959         (sc_error_message_period): Likewise.
20960
20961 2010-03-31  Eric Blake  <eblake@redhat.com>
20962
20963         maint.mk: check for [ as well as test
20964         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
20965         Based on a libvirt report by Matthias Bolte.
20966
20967         gnumakefile: don't squelch _version output
20968         * top/GNUmakefile (_version): Create one-shot dependency rather
20969         than using $(shell) when version must be regenerated.
20970         (_autoreconf): Run verbosely, by default.
20971
20972         sys_time: avoid compiler warnings
20973         * lib/sys_time.in.h (includes): Ensure gcc pragma is
20974         unconditional, fixing regression from 2010-03-29.
20975         Reported by Simon Josefsson.
20976
20977 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
20978
20979         maint.mk: s/_header_without_use/_sc_header_without_use/
20980         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
20981         (sc_prohibit_assert_without_use): Use the new name.
20982         (sc_prohibit_close_stream_without_use): Likewise.
20983         (sc_prohibit_getopt_without_use): Likewise.
20984         (sc_prohibit_quotearg_without_use): Likewise.
20985         (sc_prohibit_quote_without_use): Likewise.
20986         (sc_prohibit_long_options_without_use): Likewise.
20987         (sc_prohibit_inttostr_without_use): Likewise.
20988         (sc_prohibit_ignore_value_without_use): Likewise.
20989         (sc_prohibit_error_without_use): Likewise.
20990         (sc_prohibit_xalloc_without_use): Likewise.
20991         (sc_prohibit_hash_without_use): Likewise.
20992         (sc_prohibit_hash_pjw_without_use): Likewise.
20993         (sc_prohibit_safe_read_without_use): Likewise.
20994         (sc_prohibit_argmatch_without_use): Likewise.
20995         (sc_prohibit_canonicalize_without_use): Likewise.
20996         (sc_prohibit_root_dev_ino_without_use): Likewise.
20997         (sc_prohibit_openat_without_use): Likewise.
20998         (sc_prohibit_c_ctype_without_use): Likewise.
20999         (sc_prohibit_signal_without_use): Likewise.
21000         (sc_prohibit_intprops_without_use): Likewise.
21001
21002 2010-03-30  Eric Blake  <eblake@redhat.com>
21003
21004         maint: improve module indicators
21005         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
21006         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
21007         columns, and avoid extra macro expansion.
21008
21009         fdopendir: work around FreeBSD bug
21010         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
21011         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
21012         * modules/dirent (Makefile.am): Substitute it.
21013         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
21014         declaration.
21015         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
21016         fix.
21017         Reported by Christian Weisgerber <naddy@mips.inka.de>.
21018
21019 2010-03-29  Bruno Haible  <bruno@clisp.org>
21020
21021         Emit #pragma system_header after the inclusion guard, not before.
21022         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
21023         guard that spans the entire file, not before. This enables an
21024         optimization in GCC's preprocessor.
21025         * lib/ctype.in.h: Likewise.
21026         * lib/dirent.in.h: Likewise.
21027         * lib/errno.in.h: Likewise.
21028         * lib/float.in.h: Likewise.
21029         * lib/getopt.in.h: Likewise.
21030         * lib/iconv.in.h: Likewise.
21031         * lib/langinfo.in.h: Likewise.
21032         * lib/locale.in.h: Likewise.
21033         * lib/math.in.h: Likewise.
21034         * lib/netdb.in.h: Likewise.
21035         * lib/netinet_in.in.h: Likewise.
21036         * lib/pty.in.h: Likewise.
21037         * lib/sched.in.h: Likewise.
21038         * lib/se-selinux.in.h: Likewise.
21039         * lib/search.in.h: Likewise.
21040         * lib/spawn.in.h: Likewise.
21041         * lib/stdarg.in.h: Likewise.
21042         * lib/stdint.in.h: Likewise.
21043         * lib/string.in.h: Likewise.
21044         * lib/strings.in.h: Likewise.
21045         * lib/sys_file.in.h: Likewise.
21046         * lib/sys_ioctl.in.h: Likewise.
21047         * lib/sys_time.in.h: Likewise.
21048         * lib/sys_times.in.h: Likewise.
21049         * lib/sys_utsname.in.h: Likewise.
21050         * lib/sys_wait.in.h: Likewise.
21051         * lib/sysexits.in.h: Likewise.
21052         * lib/wctype.in.h: Likewise.
21053
21054 2010-03-28  James Youngman  <jay@gnu.org>
21055
21056         save-cwd: don't leak a file descriptor when the caller execs.
21057         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
21058         saved file descriptor.
21059         * modules/save-cwd (Depends-on): Depend on cloexec.
21060
21061 2010-03-29  Bruno Haible  <bruno@clisp.org>
21062
21063         Remove vestiges of fts-lgpl module.
21064         * lib/fts_.h: Assume GNULIB_FTS is 1.
21065         * lib/fts.c: Likewise.
21066         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
21067
21068 2010-03-28  Bruno Haible  <bruno@clisp.org>
21069
21070         Fix definition of tests witness macro.
21071         * gnulib-tool (func_import): Fix definition of witness macro.
21072
21073 2010-03-28  Bruno Haible  <bruno@clisp.org>
21074
21075         Fix ioctl's protoype on glibc systems.
21076         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
21077         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
21078         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
21079         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
21080         signature. If not, arrange to replace the ioctl function.
21081         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
21082         REPLACE_IOCTL.
21083         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
21084         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
21085         Reported by Ludovic Courtès <ludo@gnu.org>.
21086
21087 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
21088
21089         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
21090         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
21091         made it so grep -r --include=GLOB* ... did not work.
21092
21093 2010-03-26  Jim Meyering  <meyering@redhat.com>
21094             Eric Blake  <eblake@redhat.com>
21095
21096         maint.mk: prohibit use of test's -o and -a operators
21097         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
21098
21099 2010-03-28  Bruno Haible  <bruno@clisp.org>
21100
21101         Remove unused GNULIB_XYZ macro definitions.
21102         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
21103         invocation.
21104
21105 2010-03-28  Bruno Haible  <bruno@clisp.org>
21106
21107         Mark privileged tests modules.
21108         * modules/idpriv-drop-tests (Status): New section.
21109         * modules/idpriv-droptemp-tests (Status): New section.
21110
21111 2010-03-28  Bruno Haible  <bruno@clisp.org>
21112
21113         Split C++ tests into separate tests modules.
21114         * modules/dirent-c++-tests: New file, extracted from
21115         modules/dirent-tests.
21116         * modules/dirent-tests: Depend on it.
21117         * modules/fcntl-h-c++-tests: New file, extracted from
21118         modules/fcntl-h-tests.
21119         * modules/fcntl-h-tests: Depend on it.
21120         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
21121         * modules/glob-tests: Depend on it.
21122         * modules/iconv-h-c++-tests: New file, extracted from
21123         modules/iconv-h-tests.
21124         * modules/iconv-h-tests: Depend on it.
21125         * modules/langinfo-c++-tests: New file, extracted from
21126         modules/langinfo-tests.
21127         * modules/langinfo-tests: Depend on it.
21128         * modules/locale-c++-tests: New file, extracted from
21129         modules/locale-tests.
21130         * modules/locale-tests: Depend on it.
21131         * modules/math-c++-tests: New file, extracted from modules/math-tests.
21132         * modules/math-tests: Depend on it.
21133         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
21134         * modules/pty-tests: Depend on it.
21135         * modules/search-c++-tests: New file, extracted from
21136         modules/search-tests.
21137         * modules/search-tests: Depend on it.
21138         * modules/signal-c++-tests: New file, extracted from
21139         modules/signal-tests.
21140         * modules/signal-tests: Depend on it.
21141         * modules/spawn-c++-tests: New file, extracted from
21142         modules/spawn-tests.
21143         * modules/spawn-tests: Depend on it.
21144         * modules/stdio-c++-tests: New file, extracted from
21145         modules/stdio-tests.
21146         * modules/stdio-tests: Depend on it.
21147         * modules/stdlib-c++-tests: New file, extracted from
21148         modules/stdlib-tests.
21149         * modules/stdlib-tests: Depend on it.
21150         * modules/string-c++-tests: New file, extracted from
21151         modules/string-tests.
21152         * modules/string-tests: Depend on it.
21153         * modules/sys_ioctl-c++-tests: New file, extracted from
21154         modules/sys_ioctl-tests.
21155         * modules/sys_ioctl-tests: Depend on it.
21156         * modules/sys_select-c++-tests: New file, extracted from
21157         modules/sys_select-tests.
21158         * modules/sys_select-tests: Depend on it.
21159         * modules/sys_socket-c++-tests: New file, extracted from
21160         modules/sys_socket-tests.
21161         * modules/sys_socket-tests: Depend on it.
21162         * modules/sys_stat-c++-tests: New file, extracted from
21163         modules/sys_stat-tests.
21164         * modules/sys_stat-tests: Depend on it.
21165         * modules/sys_time-c++-tests: New file, extracted from
21166         modules/sys_time-tests.
21167         * modules/sys_time-tests: Depend on it.
21168         * modules/time-c++-tests: New file, extracted from modules/time-tests.
21169         * modules/time-tests: Depend on it.
21170         * modules/unistd-c++-tests: New file, extracted from
21171         modules/unistd-tests.
21172         * modules/unistd-tests: Depend on it.
21173         * modules/wchar-c++-tests: New file, extracted from
21174         modules/wchar-tests.
21175         * modules/wchar-tests: Depend on it.
21176         * modules/wctype-c++-tests: New file, extracted from
21177         modules/wctype-tests.
21178         * modules/wctype-tests: Depend on it.
21179         Reported by Simon Josefsson.
21180
21181 2010-03-28  Bruno Haible  <bruno@clisp.org>
21182
21183         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
21184         * gnulib-tool (func_exists_module): New function, extracted from
21185         func_verify_module.
21186         (func_verify_module): Use it.
21187         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
21188         'foo' only if 'foo' exists.
21189         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
21190         module.
21191
21192 2010-03-28  Bruno Haible  <bruno@clisp.org>
21193
21194         gnulib-tool: Add support for special categories of tests.
21195         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
21196         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
21197         (func_usage): Document them.
21198         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
21199         inc_unportable_tests, inc_all_tests): New variables.
21200         (func_acceptable): Consider these variables.
21201         (func_modules_transitive_closure): Make it work when the 'Status' field
21202         consists of multiple words.
21203         (func_import): Store and restore the values of inc_cxx_tests,
21204         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
21205         inc_all_tests in gnulib-comp.m4.
21206         (func_create_testdir): Set inc_all_tests to true.
21207         * doc/gnulib.texi (Extra tests modules): New section.
21208         Suggested by Jim Meyering.
21209
21210 2010-03-28  Bruno Haible  <bruno@clisp.org>
21211
21212         ansi-c++-opt: Allow turning off the C++ build by default.
21213         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
21214         gl_CXX_CHOICE_DEFAULT_NO is defined.
21215         Requested by Eric Blake.
21216
21217 2010-03-28  Bruno Haible  <bruno@clisp.org>
21218
21219         unistd: Avoid #define replacements in C++ mode.
21220         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
21221         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
21222         setsockopt, shutdown, select): In C++, attach a warning to the function
21223         if possible, rather than #defining the symbol to a dysfunctional alias.
21224         Reported by John W. Eaton <jwe@gnu.org>.
21225
21226 2010-03-28  Bruno Haible  <bruno@clisp.org>
21227
21228         Fix link errors on mingw.
21229         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
21230         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
21231         $(LIBSOCKET).
21232         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
21233         $(LIBSOCKET).
21234
21235 2010-03-28  Bruno Haible  <bruno@clisp.org>
21236             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21237
21238         lib-ignore: Determine different options for different compilers.
21239         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
21240         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
21241         Add comments.
21242         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
21243         * NEWS: Mention the change.
21244
21245 2010-03-27  Bruno Haible  <bruno@clisp.org>
21246
21247         Remove unused GNULIB_XYZ macro definitions.
21248         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
21249         * modules/fseek (configure.ac): Likewise.
21250         * modules/ioctl (configure.ac): Likewise.
21251         * modules/open (configure.ac): Likewise.
21252         * modules/stdlib-safer (configure.ac): Likewise.
21253
21254 2010-03-27  Bruno Haible  <bruno@clisp.org>
21255
21256         Add a remark about certain modules.
21257         * modules/malloc (Comment): New section.
21258         * modules/realloc (Comment): Likewise.
21259         * modules/sigpipe (Comment): Likewise.
21260
21261 2010-03-27  Bruno Haible  <bruno@clisp.org>
21262
21263         Resolve conflict between the two kinds of module indicators.
21264         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
21265         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
21266         * modules/canonicalize (configure.ac): Invoke
21267         gl_MODULE_INDICATOR_FOR_TESTS.
21268         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
21269         GNULIB_XYZ.
21270         * tests/test-dirent-c++.cc: Likewise.
21271         * tests/test-dirent-safer.c: Likewise.
21272         * tests/test-dup2.c: Likewise.
21273         * tests/test-fchdir.c: Likewise.
21274         * tests/test-fcntl-h-c++.cc: Likewise.
21275         * tests/test-getopt.c: Likewise.
21276         * tests/test-getopt.h: Likewise.
21277         * tests/test-langinfo-c++.cc: Likewise.
21278         * tests/test-locale-c++.cc: Likewise.
21279         * tests/test-math-c++.cc: Likewise.
21280         * tests/test-pty-c++.cc: Likewise.
21281         * tests/test-search-c++.cc: Likewise.
21282         * tests/test-signal-c++.cc: Likewise.
21283         * tests/test-spawn-c++.cc: Likewise.
21284         * tests/test-stdio-c++.cc: Likewise.
21285         * tests/test-stdlib-c++.cc: Likewise.
21286         * tests/test-string-c++.cc: Likewise.
21287         * tests/test-sys_ioctl-c++.cc: Likewise.
21288         * tests/test-sys_select-c++.cc: Likewise.
21289         * tests/test-sys_socket-c++.cc: Likewise.
21290         * tests/test-sys_stat-c++.cc: Likewise.
21291         * tests/test-sys_time-c++.cc: Likewise.
21292         * tests/test-time-c++.cc: Likewise.
21293         * tests/test-unistd-c++.cc: Likewise.
21294         * tests/test-wchar-c++.cc: Likewise.
21295         * tests/uninorm/test-u8-nfc.c: Likewise.
21296         * tests/uninorm/test-u8-nfd.c: Likewise.
21297         * tests/uninorm/test-u8-nfkc.c: Likewise.
21298         * tests/uninorm/test-u8-nfkd.c: Likewise.
21299         * tests/uninorm/test-u16-nfc.c: Likewise.
21300         * tests/uninorm/test-u16-nfd.c: Likewise.
21301         * tests/uninorm/test-u16-nfkc.c: Likewise.
21302         * tests/uninorm/test-u16-nfkd.c: Likewise.
21303         * tests/uninorm/test-u32-nfc.c: Likewise.
21304         * tests/uninorm/test-u32-nfc-big.c: Likewise.
21305         * tests/uninorm/test-u32-nfd.c: Likewise.
21306         * tests/uninorm/test-u32-nfd-big.c: Likewise.
21307         * tests/uninorm/test-u32-nfkc.c: Likewise.
21308         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
21309         * tests/uninorm/test-u32-nfkd.c: Likewise.
21310         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
21311         * tests/uninorm/test-u32-normalize-big.c: Likewise.
21312
21313 2010-03-27  Bruno Haible  <bruno@clisp.org>
21314
21315         Distinguish two kinds of module indicators.
21316         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
21317         gl_MODULE_INDICATOR.
21318         (gl_MODULE_INDICATOR): New macro.
21319         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
21320         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
21321         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
21322         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
21323         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
21324         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
21325         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
21326         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
21327         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
21328         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
21329         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
21330         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
21331         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
21332         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
21333         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
21334         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
21335         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
21336         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
21337         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
21338         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
21339         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
21340         * modules/cloexec (configure.ac): Likewise.
21341         * modules/getopt-gnu (configure.ac): Likewise.
21342         * modules/uninorm/u8-normalize (configure.ac): Likewise.
21343         * modules/uninorm/u16-normalize (configure.ac): Likewise.
21344         * modules/uninorm/u32-normalize (configure.ac): Likewise.
21345         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
21346
21347 2010-03-27  Bruno Haible  <bruno@clisp.org>
21348
21349         New module description field 'Comment'.
21350         * gnulib-tool: New option --extract-comment.
21351         (func_usage): Document it.
21352         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
21353         (func_get_comment): New function.
21354         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
21355
21356 2010-03-27  Bruno Haible  <bruno@clisp.org>
21357
21358         Addendum to 2010-02-07 commit.
21359         * gnulib-tool (func_usage): Document --extract-applicability option.
21360
21361 2010-03-27  Bruno Haible  <bruno@clisp.org>
21362
21363         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
21364         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
21365         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
21366         rather than link errors.
21367
21368 2010-03-27  Bruno Haible  <bruno@clisp.org>
21369
21370         Avoid side effects from tests-related modules on the compilation of lib.
21371         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
21372         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
21373         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
21374         parameter. Emit into AM_CPPFLAGS a definition of the designated C
21375         macro.
21376         (func_import): Define a witness macro. Assign it a value that depends
21377         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
21378         tests-related modules.
21379         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
21380         Reported by Jim Meyering.
21381
21382 2010-03-27  Bruno Haible  <bruno@clisp.org>
21383
21384         Factorize common .m4 code.
21385         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
21386         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
21387         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
21388         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
21389         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
21390         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
21391         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
21392         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
21393         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
21394         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
21395         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
21396         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
21397         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
21398         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
21399         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
21400         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
21401         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
21402         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
21403         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
21404         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
21405         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
21406         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
21407         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
21408         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
21409         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
21410         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
21411         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
21412         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
21413         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
21414         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
21415         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
21416         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
21417
21418 2010-03-27  Bruno Haible  <bruno@clisp.org>
21419
21420         Fix a compilation error on Cygwin with g++ >= 4.3.
21421         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
21422         if it is undefined or if we alias it to chmod.
21423         (lstat): Don't warn about the use of this function if it is undefined
21424         or if we alias it to stat.
21425         Reported by Simon Josefsson.
21426
21427 2010-03-27  Bruno Haible  <bruno@clisp.org>
21428
21429         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
21430         * modules/getlogin (configure.ac): Update.
21431
21432         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
21433         * modules/getlogin_r (configure.ac): Update.
21434
21435         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
21436         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
21437         * modules/inet_ntop (configure.ac): Update.
21438
21439         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
21440         * modules/inet_pton (configure.ac): Update.
21441
21442         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
21443         * modules/mbslen (configure.ac): Update.
21444
21445         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
21446         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
21447         * modules/forkpty (configure.ac): Update.
21448         * modules/openpty (configure.ac): Update.
21449
21450 2010-03-26  Simon Josefsson  <simon@josefsson.org>
21451
21452         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
21453         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
21454
21455 2010-03-25  Eric Blake  <eblake@redhat.com>
21456
21457         maint: use pragma consistently across replacement headers
21458         * lib/ctype.in.h (system_header): Hoist for consistent placement.
21459         * lib/dirent.in.h (system_header): Likewise.
21460         * lib/errno.in.h (system_header): Likewise.
21461         * lib/float.in.h (system_header): Likewise.
21462         * lib/getopt.in.h (system_header): Likewise.
21463         * lib/iconv.in.h (system_header): Likewise.
21464         * lib/inttypes.in.h (system_header): Likewise.
21465         * lib/langinfo.in.h (system_header): Likewise.
21466         * lib/locale.in.h (system_header): Likewise.
21467         * lib/math.in.h (system_header): Likewise.
21468         * lib/netdb.in.h (system_header): Likewise.
21469         * lib/netinet_in.in.h (system_header): Likewise.
21470         * lib/pty.in.h (system_header): Likewise.
21471         * lib/sched.in.h (system_header): Likewise.
21472         * lib/se-selinux.in.h (system_header): Likewise.
21473         * lib/search.in.h (system_header): Likewise.
21474         * lib/spawn.in.h (system_header): Likewise.
21475         * lib/stdarg.in.h (system_header): Likewise.
21476         * lib/stdint.in.h (system_header): Likewise.
21477         * lib/string.in.h (system_header): Likewise.
21478         * lib/strings.in.h (system_header): Likewise.
21479         * lib/sys_file.in.h (system_header): Likewise.
21480         * lib/sys_ioctl.in.h (system_header): Likewise.
21481         * lib/sys_socket.in.h (system_header): Likewise.
21482         * lib/sys_times.in.h (system_header): Likewise.
21483         * lib/sys_utsname.in.h (system_header): Likewise.
21484         * lib/sys_wait.in.h (system_header): Likewise.
21485         * lib/sysexits.in.h (system_header): Likewise.
21486         * lib/unistd.in.h (system_header): Likewise.
21487         * lib/wctype.in.h (system_header): Likewise.
21488
21489         arpa/inet: fix mingw compilation warning
21490         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
21491         Reported by Matthew Bolte.
21492
21493 2010-03-25  Bruno Haible  <bruno@clisp.org>
21494
21495         Avoid collision between gnulib wrapper and libintl wrapper.
21496         * lib/printf.c (printf): Don't define if a printf wrapper is already
21497         defined in intl/printf.c.
21498         Reported by Michel Boaventura <michel@michelboaventura.com>.
21499
21500 2010-03-25  Bruno Haible  <bruno@clisp.org>
21501
21502         Use ANSI C.
21503         * lib/readutmp.h (getutent): Provide ANSI C prototype.
21504
21505 2010-03-25  Bruno Haible  <bruno@clisp.org>
21506
21507         Minor formatting changes.
21508         * lib/acosl.c: Insert space before function argument list.
21509         * lib/argz.c: Likewise.
21510         * lib/asinl.c: Likewise.
21511         * lib/expl.c: Likewise.
21512         * lib/gen-uni-tables.c: Likewise.
21513         * lib/gettext.h: Likewise.
21514         * lib/glthread/lock.h: Likewise.
21515         * lib/tanl.c: Likewise.
21516         * lib/uniname/uniname.c: Likewise.
21517         * tests/test-idpriv-drop.c: Likewise.
21518         * tests/test-idpriv-droptemp.c: Likewise.
21519         * tests/test-lock.c: Likewise.
21520         * tests/test-tls.c: Likewise.
21521         * lib/argp-help.c: Insert space before function-like macro argument
21522         list.
21523         * lib/memcmp.c: Likewise.
21524         * tests/test-base64.c: Likewise.
21525         * lib/localename.c: Insert space before sizeof's argument list.
21526         * lib/safe-alloc.h: Likewise.
21527         * lib/file-set.h: Insert space before macro argument list.
21528         * tests/test-argp.c: Likewise.
21529         * lib/argp-namefrob.h: Insert space before function parameter list.
21530         * lib/getaddrinfo.c: Likewise.
21531         * lib/netdb.in.h: Likewise.
21532         * lib/parse-duration.h: Likewise.
21533         * lib/parse-duration.c: Likewise.
21534         * lib/poll.c: Likewise.
21535         * lib/select.c: Likewise.
21536         * lib/trim.h: Likewise.
21537         * tests/test-usleep.c: Likewise.
21538         * lib/ldexpl.c: Insert space before function parameter list and before
21539         function argument list.
21540         * lib/logl.c: Likewise.
21541         * lib/sqrtl.c: Likewise.
21542         * lib/trim.c: Likewise.
21543         * lib/cosl.c: Use GNU style indentation. Insert space before function
21544         argument list.
21545         * lib/sinl.c: Likewise.
21546         * lib/tsearch.c: Insert space after 'for'.
21547         Reported by Jim Meyering.
21548
21549 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
21550
21551         * maint.mk (sc_Wundef_boolean): Check for the presence of the
21552         config header before grepping, as it's not present before
21553         autoreconf/configure are run.  Reported by Simon Josefsson.
21554
21555 2010-03-23  Bruno Haible  <bruno@clisp.org>
21556
21557         pt_chown: Make it work with automake < 1.11.
21558         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
21559         Reported by Simon Josefsson.
21560
21561 2010-03-23  Bruno Haible  <bruno@clisp.org>
21562
21563         pt_chown: Don't depend on GPLed modules.
21564         * lib/pt_chown.c: Don't include idpriv.h.
21565         (main): Don't drop privileges.
21566         * modules/pt_chown (Depends-on): Remove idpriv-drop.
21567         Reported by Simon Josefsson.
21568
21569 2010-03-24  Simon Josefsson  <simon@josefsson.org>
21570
21571         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
21572         suggestions from karl@freefriends.org (Karl Berry).
21573
21574 2010-03-22  Eric Blake  <eblake@redhat.com>
21575
21576         gethostname: further tweaks
21577         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
21578         are overriding gethostname.
21579         Suggested by Bruno Haible.
21580
21581 2010-03-21  Bruno Haible  <bruno@clisp.org>
21582
21583         Fix comments.
21584         * lib/forkpty.c (rpl_forkpty): Fix comment.
21585         * lib/openpty.c (rpl_openpty): Likewise.
21586         Reported by Eric Blake.
21587
21588 2010-03-22  Eric Blake  <eblake@redhat.com>
21589
21590         gethostname: fix build on mingw
21591         * lib/unistd.in.h (includes): Work around fact that mingw
21592         <winsock2.h> re-includes <unistd.h>, by avoiding any
21593         redeclarations if we are being included by <winsock2.h>.
21594         Reported by Matthias Bolte.
21595
21596 2010-03-21  Bruno Haible  <bruno@clisp.org>
21597
21598         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
21599         * lib/forkpty.c (forkpty): New replacement function, from glibc with
21600         modifications.
21601         * lib/pty.in.h (forkpty): Update declaration. Add comments.
21602         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
21603         provide the replacement.
21604         * modules/forkpty (Depends-on): Add openpty, login_tty.
21605         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
21606         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
21607         * doc/glibc-functions/forkpty.texi: More supported platforms.
21608         * config/srclist.txt: Add forkpty.c (commented).
21609
21610 2010-03-21  Bruno Haible  <bruno@clisp.org>
21611
21612         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
21613         (Makefile.am): Verify that PTY_LIB is defined.
21614
21615         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
21616
21617 2010-03-21  Bruno Haible  <bruno@clisp.org>
21618
21619         Tests for module 'login_tty'.
21620         * modules/login_tty-tests: New file.
21621         * tests/test-login_tty.c: New file.
21622
21623         New module 'login_tty'.
21624         * lib/login_tty.c: New file.
21625         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
21626         * modules/login_tty: New file.
21627         * doc/glibc-functions/login_tty.texi: Mention the new module.
21628
21629 2010-03-21  Bruno Haible  <bruno@clisp.org>
21630
21631         login_tty: Documentation.
21632         * doc/glibc-functions/login_tty.texi: New file.
21633         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
21634
21635 2010-03-21  Bruno Haible  <bruno@clisp.org>
21636
21637         pty: Consistent macro naming.
21638         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
21639         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
21640         * modules/pty (configure.ac): Update.
21641
21642 2010-03-21  Bruno Haible  <bruno@clisp.org>
21643
21644         Tests for openpty: Make stricter.
21645         * tests/test-openpty.c (main): Add test of canonical processing and
21646         erase.
21647         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
21648
21649         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
21650         * lib/openpty.c (openpty): New replacement function.
21651         * lib/pty.in.h: Include <termios.h>.
21652         (openpty): Update declaration. Add comments.
21653         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
21654         is not declared, arrange to provide the replacement. Check for _getpty
21655         and posix_openpt.
21656         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
21657         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
21658         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
21659         * modules/pty-tests (test_pty_c___LDADD): New variable.
21660         * doc/glibc-functions/openpty.texi: More supported platforms.
21661
21662 2010-03-21  Bruno Haible  <bruno@clisp.org>
21663
21664         setenv: Tweaks.
21665         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
21666         the test program.
21667         * doc/posix-functions/setenv.texi: Update platforms list.
21668
21669 2010-03-21  Bruno Haible  <bruno@clisp.org>
21670
21671         New module 'unlockpt'.
21672         * lib/unlockpt.c: New file, from glibc with modifications.
21673         * m4/unlockpt.m4: New file.
21674         * modules/unlockpt: New file.
21675         * lib/stdlib.in.h (unlockpt): New declaration.
21676         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
21677         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
21678         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
21679         HAVE_UNLOCKPT.
21680         * doc/posix-functions/unlockpt.texi: Mention the new module.
21681         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
21682         * config/srclist.txt: Add unlockpt.c (commented).
21683
21684 2010-03-21  Jim Meyering  <meyering@redhat.com>
21685
21686         maint.mk: prohibit inclusion of "intprops.h" without use
21687         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
21688
21689 2010-03-21  Bruno Haible  <bruno@clisp.org>
21690
21691         New module 'grantpt'.
21692         * lib/grantpt.c: New file, from glibc with modifications.
21693         * m4/grantpt.m4: New file.
21694         * modules/grantpt: New file.
21695         * lib/stdlib.in.h (grantpt): New declaration.
21696         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
21697         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
21698         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
21699         HAVE_GRANTPT.
21700         * doc/posix-functions/grantpt.texi: Mention the new module.
21701         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
21702         * config/srclist.txt: Add grantpt.c (commented).
21703
21704 2010-03-21  Bruno Haible  <bruno@clisp.org>
21705
21706         New module 'pt_chown'.
21707         * lib/pt_chown.c: New file, from glibc with modifications.
21708         * lib/pty-private.h: New file, from glibc with modifications.
21709         * modules/pt_chown: New file.
21710         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
21711
21712 2010-03-21  Bruno Haible  <bruno@clisp.org>
21713
21714         Tests for module 'ptsname'.
21715         * modules/ptsname-tests: New file.
21716         * tests/test-ptsname.c: New file.
21717
21718         New module 'ptsname'.
21719         * lib/ptsname.c: New file, from glibc with modifications.
21720         * m4/ptsname.m4: New file.
21721         * modules/ptsname: New file.
21722         * lib/stdlib.in.h (ptsname): New declaration.
21723         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
21724         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
21725         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
21726         HAVE_PTSNAME.
21727         * doc/posix-functions/ptsname.texi: Mention the new module.
21728         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
21729         * config/srclist.txt: Add ptsname.c (commented).
21730
21731 2010-03-21  Bruno Haible  <bruno@clisp.org>
21732
21733         Tests for module 'ttyname_r'.
21734         * modules/ttyname_r-tests: New file.
21735         * tests/test-ttyname_r.c: New file.
21736
21737         New module 'ttyname_r'.
21738         * lib/ttyname_r.c: New file.
21739         * m4/ttyname_r.m4: New file.
21740         * modules/ttyname_r: New file.
21741         * lib/unistd.in.h (ttyname_r): New declaration.
21742         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
21743         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
21744         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
21745         HAVE_TTYNAME_R.
21746         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
21747         * doc/posix-functions/ttyname_r.texi: Mention the new module.
21748
21749 2010-03-20  Bruno Haible  <bruno@clisp.org>
21750
21751         signal: Undefine macro definitions in C++ mode.
21752         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
21753         sigfillset): Undefine macro definitions from the system header in C++
21754         mode.
21755         Reported by John W. Eaton <jwe@gnu.org>.
21756
21757 2010-03-20  Bruno Haible  <bruno@clisp.org>
21758
21759         Ensure no #include statements inside extern "C" { ... }.
21760         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
21761         contain #include statements.
21762         * lib/time.in.h: Likewise.
21763
21764 2010-03-20  Bruno Haible  <bruno@clisp.org>
21765
21766         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
21767         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
21768         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
21769         Reported by John W. Eaton <jwe@gnu.org>.
21770
21771 2010-03-20  Bruno Haible  <bruno@clisp.org>
21772
21773         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
21774         Reported by Jim Meyering.
21775
21776 2010-03-20  Bruno Haible  <bruno@clisp.org>
21777
21778         pipe: Set errno upon failure.
21779         * lib/pipe.h: Specify that when -1 is returned, errno is set.
21780         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
21781         errno value in error message.
21782
21783 2010-03-20  Bruno Haible  <bruno@clisp.org>
21784             Jim Meyering  <meyering@redhat.com>
21785
21786         lchown: Avoid "unused variable" warning.
21787         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
21788
21789 2010-03-20  Bruno Haible  <bruno@clisp.org>
21790
21791         Work around unlink() bug on MacOS X 10.5.6.
21792         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
21793         attempting to unlink a parent directory.
21794         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
21795         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
21796         activate for the replacement function.
21797         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
21798
21799 2010-03-20  Bruno Haible  <bruno@clisp.org>
21800
21801         Fix link errors on Solaris 8.
21802         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
21803         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
21804
21805 2010-03-19  Jim Meyering  <meyering@redhat.com>
21806
21807         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
21808         The _LIBC implementation of build_range_exp correctly honors the
21809         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
21810         However, the non-_LIBC implementation would ignore that syntax-bit
21811         flag and return REG_ERANGE unconditionally.
21812         This change makes it honor that flag.
21813         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
21814         Make two pointer parameters "const".
21815         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
21816         (parse_bracket_exp): Update caller.
21817
21818         regex.m4: correct the reversed range endpoint ([b-a]) test
21819         * m4/regex.m4: When requiring that [b-a] evoke failure,
21820         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
21821         test pass once again for x86-based systems.
21822
21823 2010-03-19  Bruno Haible  <bruno@clisp.org>
21824
21825         scandir: Fix link error on Solaris 8.
21826         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
21827         macros.
21828
21829 2010-03-19  Bruno Haible  <bruno@clisp.org>
21830
21831         getusershell: Fix documentation.
21832         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
21833         module.
21834         * doc/glibc-functions/setusershell.texi: Likewise.
21835
21836         getusershell: Provide declaration, missing on Solaris 9.
21837         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
21838         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
21839         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
21840         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
21841         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
21842         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
21843         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
21844         HAVE_GETUSERSHELL.
21845         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
21846
21847 2010-03-19  Bruno Haible  <bruno@clisp.org>
21848
21849         wctype: Provide iswblank function.
21850         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
21851         exists and is fine.
21852         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
21853         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
21854         * tests/test-wctype.c (main): Re-enable the iswblank tests.
21855         * doc/posix-functions/iswblank.texi: Update.
21856
21857 2010-03-19  Bruno Haible  <bruno@clisp.org>
21858
21859         Tests of module 'pty' in C++ mode.
21860         * modules/pty-tests: New file.
21861         * tests/test-pty-c++.cc: New file.
21862         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
21863
21864 2010-03-19  Eric Blake  <eblake@redhat.com>
21865
21866         logb: fix documentation
21867         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
21868         1.5 declaration bug.
21869
21870         forkpty, openpty: prefer glibc's const-safe prototype
21871         * lib/forkpty.c (rpl_forkpty): New file.
21872         * lib/openpty.c (rpl_openpty): Likewise.
21873         * modules/forkpty (Files): Distribute it.
21874         * modules/openpty (Files): Likewise.
21875         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
21876         check...
21877         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
21878         replacement for for non-const BSD signature.
21879         * modules/pty (Makefile.am): Substitute witnesses.
21880         * lib/pty.in.h (forkpty, openpty): Declare replacements.
21881         * tests/test-forkpty.c: Update signature check.
21882         * tests/test-openpty.c: Likewise.
21883         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
21884         * doc/glibc-functions/openpty.texi (openpty): Likewise.
21885
21886         forkpty, openpty: split functions into new modules
21887         * modules/pty (Makefile.am): Substitute new witnesses.
21888         (Libraries): Move library detection...
21889         * modules/forkpty: ...into new module.
21890         * modules/openpty: Another new module.
21891         * modules/pty-tests: Rename and split...
21892         * modules/forkpty-tests: ...to this...
21893         * modules/openpty-tests: ...and this.
21894         * tests/test-pty.c: Rename and split...
21895         * tests/test-forkpty.c: ...to this...
21896         * tests/test-openpty.c: ...and this.
21897         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
21898         (gl_PTY): Split library searching...
21899         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
21900         (gl_FORKPTY, gl_OPENPTY): New macros.
21901         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
21902         * NEWS: Mention the split.
21903         * MODULES.html.sh (Misc): Document the modules.
21904         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
21905         * doc/glibc-functions/openpty.texi (openpty): Likewise.
21906
21907         pty: improve replacement header
21908         * lib/pty.in.h: New file.
21909         * modules/pty (Files): Ship it.
21910         (Makefile.am): Always build replacement.
21911         * m4/pty.m4: Rename...
21912         * m4/pty_h.m4: ...to this.
21913         (gl_PTY): Modernize setting of witness macros; update check of
21914         forkpty to take proper advantage of cache.
21915         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
21916
21917         getopt: avoid compiler warning
21918         * lib/getopt.c (attribute_hidden): Remove unused macro.
21919
21920 2010-03-18  Bruno Haible  <bruno@clisp.org>
21921
21922         Fix link errors on Solaris 8.
21923         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
21924         * modules/search-tests (test_search_c___LDADD): Likewise.
21925         * modules/signal-tests (test_signal_c___LDADD): Likewise.
21926         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
21927         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
21928         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
21929         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
21930         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
21931         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
21932
21933 2010-03-18  Bruno Haible  <bruno@clisp.org>
21934
21935         Fix bug introduced on 2010-03-14.
21936         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
21937         (gl_SPAWN_H): Require it.
21938         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
21939         Reported by Simon Josefsson.
21940
21941 2010-03-18  Bruno Haible  <bruno@clisp.org>
21942
21943         Fix typo introduced on 2009-12-31.
21944         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
21945         posix_spawn_file_actions_adddup2.
21946
21947 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
21948         and Eric Blake  <eblake@redhat.com>
21949
21950         test-vc-list-files-git: make more robust
21951         * tests/test-vc-list-files-git.sh: Unset problematic environment
21952         variables.  Chain commands together.
21953
21954 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
21955
21956         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
21957         `AC_CHECK_DECL' invocation.
21958
21959 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
21960
21961         * lib/inttostr.c (inttostr): Make sure the invocation of verify
21962         appears before executable statements. Suggested by Petr Sumbera
21963         <Petr.Sumbera@Sun.COM>.
21964
21965 2010-03-14  Bruno Haible  <bruno@clisp.org>
21966
21967         * tests/test-flock.c (test_exclusive): Comment out a test that causes
21968         portability problems. Instead use a simpler test.
21969         (main): Check that invalid arguments are rejected only on Linux.
21970
21971 2010-03-14  Bruno Haible  <bruno@clisp.org>
21972
21973         Fix bug introduced on 2009-12-31.
21974         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
21975         gl_PREREQ_SYS_H_WINSOCK2 always.
21976         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
21977         SYS_SOCKET_H variable.
21978         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
21979         Update comments.
21980         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
21981         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
21982         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
21983         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
21984         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
21985
21986 2010-03-14  Bruno Haible  <bruno@clisp.org>
21987
21988         Fix values returned by sinl, cosl.
21989         * lib/trigl.h: Add specification comments.
21990         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
21991         that combines the values from the precomputed table with the values of
21992         the Chebyshev polynomials.
21993
21994 2010-03-14  Bruno Haible  <bruno@clisp.org>
21995
21996         Fix compilation error when modules 'posix_spawn[p]' are not used.
21997         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
21998         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
21999
22000 2010-03-14  Bruno Haible  <bruno@clisp.org>
22001
22002         Fix compilation error on mingw when module 'time_r' is not used.
22003         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
22004         is 1.
22005         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
22006         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
22007         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
22008         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
22009
22010 2010-03-14  Bruno Haible  <bruno@clisp.org>
22011
22012         Fix compilation error with Sun C.
22013         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
22014         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
22015         instead of GCC specific ULONG_LONG_MAX.
22016         * lib/xstrtoll.c: Likewise.
22017         * lib/xstrtoull.c: Likewise.
22018
22019 2010-03-13  Bruno Haible  <bruno@clisp.org>
22020
22021         Allow the user to disable C++ code and tests.
22022         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
22023         (gl_PROG_ANSI_CXX): Require it.
22024
22025 2010-03-13  Bruno Haible  <bruno@clisp.org>
22026
22027         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
22028         cases.
22029
22030 2010-03-13  Bruno Haible  <bruno@clisp.org>
22031
22032         Test that gnulib does not break the standard C++ headers.
22033         * tests/test-locale-c++2.cc: New file.
22034         * modules/locale-tests (Files): Add it.
22035         (Makefile.am): Compile it for test-locale-c++.
22036         * tests/test-math-c++2.cc: New file.
22037         * modules/math-tests (Files): Add it.
22038         (Makefile.am): Compile it for test-math-c++.
22039         * tests/test-signal-c++2.cc: New file.
22040         * modules/signal-tests (Files): Add it.
22041         (Makefile.am): Compile it for test-signal-c++.
22042         * tests/test-stdio-c++2.cc: New file.
22043         * modules/stdio-tests (Files): Add it.
22044         (Makefile.am): Compile it for test-stdio-c++.
22045         * tests/test-stdlib-c++2.cc: New file.
22046         * modules/stdlib-tests (Files): Add it.
22047         (Makefile.am): Compile it for test-stdlib-c++.
22048         * tests/test-string-c++2.cc: New file.
22049         * modules/string-tests (Files): Add it.
22050         (Makefile.am): Compile it for test-string-c++.
22051         * tests/test-time-c++2.cc: New file.
22052         * modules/time-tests (Files): Add it.
22053         (Makefile.am): Compile it for test-time-c++.
22054         Reported by John W. Eaton <jwe@gnu.org>.
22055
22056 2010-03-13  Bruno Haible  <bruno@clisp.org>
22057
22058         * gnulib-tool (func_usage): Clarify which options are available for
22059         --create-testdir and --create-megatestdir.
22060
22061 2010-03-13  Bruno Haible  <bruno@clisp.org>
22062
22063         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
22064         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
22065         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
22066         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
22067         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
22068         when appropriate.
22069         Reported by Jim Meyering.
22070
22071 2010-03-12  Simon Josefsson  <simon@josefsson.org>
22072
22073         * gnulib-tool (func_import): Explain origin of code.
22074
22075 2010-03-12  Bruno Haible  <bruno@clisp.org>
22076
22077         Fix problem with automake's definition of CXXLINK.
22078         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
22079         Reported by Simon Josefsson and Ludovic Courtès.
22080
22081 2010-03-12  Bruno Haible  <bruno@clisp.org>
22082
22083         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
22084         stable releases.
22085
22086 2010-03-11  Bruno Haible  <bruno@clisp.org>
22087
22088         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
22089         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
22090         whether the system provides one variant or multiple variants of the
22091         function.
22092         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
22093         C++ compilers.
22094         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
22095         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
22096         Reported by Jim Meyering.
22097
22098 2010-03-09  Simon Josefsson  <simon@josefsson.org>
22099
22100         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
22101
22102 2010-03-08  Bruno Haible  <bruno@clisp.org>
22103
22104         gnulib-tool: Add support for --libtool in --create-testdir.
22105         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
22106         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
22107
22108 2010-03-08  Eric Blake  <eblake@redhat.com>
22109
22110         gnulib-tool.texi: mention possibility of git submodule
22111         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
22112         submodules.
22113         * doc/.gitignore: Ignore another generated file.
22114
22115 2010-03-08  Karl Berry  <karl@gnu.org>
22116
22117         * doc/gnulib-tool.texi (VCS Issues): Mention third option
22118         of committing gnulib files while skipping others.
22119
22120 2010-03-07  Bruno Haible  <bruno@clisp.org>
22121
22122         Tests of module 'wctype' in C++ mode.
22123         * tests/test-wctype-c++.cc: New file.
22124         * modules/wctype-tests (Files): Add it and tests/signature.h.
22125         (Depends-on): Add ansi-c++-opt.
22126         (Makefile.am): Arrange to compile and run test-wctype-c++.
22127
22128         Tests of module 'wchar' in C++ mode.
22129         * tests/test-wchar-c++.cc: New file.
22130         * modules/wchar-tests (Files): Add it and tests/signature.h.
22131         (Depends-on): Add ansi-c++-opt.
22132         (Makefile.am): Arrange to compile and run test-wchar-c++.
22133         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
22134         gl_MODULE_INDICATOR.
22135
22136         Tests of module 'unistd' in C++ mode.
22137         * tests/test-unistd-c++.cc: New file.
22138         * modules/unistd-tests (Files): Add it and tests/signature.h.
22139         (Depends-on): Add ansi-c++-opt.
22140         (Makefile.am): Arrange to compile and run test-unistd-c++.
22141         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
22142         gl_MODULE_INDICATOR.
22143
22144         Tests of module 'time' in C++ mode.
22145         * tests/test-time-c++.cc: New file.
22146         * modules/time-tests (Files): Add it and tests/signature.h.
22147         (Depends-on): Add ansi-c++-opt.
22148         (Makefile.am): Arrange to compile and run test-time-c++.
22149         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
22150
22151         Tests of module 'sys_time' in C++ mode.
22152         * tests/test-sys_time-c++.cc: New file.
22153         * modules/sys_time-tests (Files): Add it and tests/signature.h.
22154         (Depends-on): Add ansi-c++-opt.
22155         (Makefile.am): Arrange to compile and run test-sys_time-c++.
22156         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
22157         gl_MODULE_INDICATOR.
22158
22159         Tests of module 'sys_stat' in C++ mode.
22160         * tests/test-sys_stat-c++.cc: New file.
22161         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
22162         (Depends-on): Add ansi-c++-opt.
22163         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
22164         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
22165         gl_MODULE_INDICATOR.
22166
22167         Tests of module 'sys_socket' in C++ mode.
22168         * tests/test-sys_socket-c++.cc: New file.
22169         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
22170         (Depends-on): Add ansi-c++-opt.
22171         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
22172         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
22173         gl_MODULE_INDICATOR.
22174
22175         Tests of module 'sys_select' in C++ mode.
22176         * tests/test-sys_select-c++.cc: New file.
22177         * modules/sys_select-tests (Files): Add it and tests/signature.h.
22178         (Depends-on): Add ansi-c++-opt.
22179         (Makefile.am): Arrange to compile and run test-sys_select-c++.
22180         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
22181         gl_MODULE_INDICATOR.
22182
22183         Tests of module 'sys_ioctl' in C++ mode.
22184         * tests/test-sys_ioctl-c++.cc: New file.
22185         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
22186         (Depends-on): Add ansi-c++-opt.
22187         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
22188         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
22189         gl_MODULE_INDICATOR.
22190
22191         Tests of module 'string' in C++ mode.
22192         * tests/test-string-c++.cc: New file.
22193         * modules/string-tests (Files): Add it and tests/signature.h.
22194         (Depends-on): Add ansi-c++-opt.
22195         (Makefile.am): Arrange to compile and run test-string-c++.
22196         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
22197         gl_MODULE_INDICATOR.
22198
22199         Tests of module 'stdlib' in C++ mode.
22200         * tests/test-stdlib-c++.cc: New file.
22201         * modules/stdlib-tests (Files): Add it and tests/signature.h.
22202         (Depends-on): Add ansi-c++-opt.
22203         (Makefile.am): Arrange to compile and run test-stdlib-c++.
22204         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
22205         gl_MODULE_INDICATOR.
22206
22207         Tests of module 'stdio' in C++ mode.
22208         * tests/test-stdio-c++.cc: New file.
22209         * modules/stdio-tests (Files): Add it and tests/signature.h.
22210         (Depends-on): Add ansi-c++-opt.
22211         (Makefile.am): Arrange to compile and run test-stdio-c++.
22212         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
22213         gl_MODULE_INDICATOR.
22214
22215         Tests of module 'spawn' in C++ mode.
22216         * tests/test-spawn-c++.cc: New file.
22217         * modules/spawn-tests (Files): Add it and tests/signature.h.
22218         (Depends-on): Add ansi-c++-opt.
22219         (Makefile.am): Arrange to compile and run test-spawn-c++.
22220         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
22221         gl_MODULE_INDICATOR.
22222
22223         Tests of module 'signal' in C++ mode.
22224         * tests/test-signal-c++.cc: New file.
22225         * modules/signal-tests (Files): Add it and tests/signature.h.
22226         (Depends-on): Add ansi-c++-opt.
22227         (Makefile.am): Arrange to compile and run test-signal-c++.
22228         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
22229         gl_MODULE_INDICATOR.
22230
22231         Tests of module 'search' in C++ mode.
22232         * tests/test-search-c++.cc: New file.
22233         * modules/search-tests (Files): Add it and tests/signature.h.
22234         (Depends-on): Add ansi-c++-opt.
22235         (Makefile.am): Arrange to compile and run test-search-c++.
22236         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
22237         gl_MODULE_INDICATOR.
22238
22239         Tests of module 'math' in C++ mode.
22240         * tests/test-math-c++.cc: New file.
22241         * modules/math-tests (Files): Add it and tests/signature.h.
22242         (Depends-on): Add ansi-c++-opt.
22243         (Makefile.am): Arrange to compile and run test-math-c++.
22244         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
22245
22246         Tests of module 'locale' in C++ mode.
22247         * tests/test-locale-c++.cc: New file.
22248         * modules/locale-tests (Files): Add it and tests/signature.h.
22249         (Depends-on): Add ansi-c++-opt.
22250         (Makefile.am): Arrange to compile and run test-locale-c++.
22251         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
22252         gl_MODULE_INDICATOR.
22253
22254         Tests of module 'langinfo' in C++ mode.
22255         * tests/test-langinfo-c++.cc: New file.
22256         * modules/langinfo-tests (Files): Add it and tests/signature.h.
22257         (Depends-on): Add ansi-c++-opt.
22258         (Makefile.am): Arrange to compile and run test-langinfo-c++.
22259         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
22260         gl_MODULE_INDICATOR.
22261
22262         Tests of module 'iconv-h' in C++ mode.
22263         * tests/test-iconv-h-c++.cc: New file.
22264         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
22265         (Depends-on): Add ansi-c++-opt.
22266         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
22267
22268         Tests of module 'glob' in C++ mode.
22269         * tests/test-glob-c++.cc: New file.
22270         * modules/glob-tests (Files): Add it.
22271         (Depends-on): Add ansi-c++-opt.
22272         (Makefile.am): Arrange to compile and run test-glob-c++.
22273
22274         Tests of module 'fcntl-h' in C++ mode.
22275         * tests/test-fcntl-h-c++.cc: New file.
22276         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
22277         (Depends-on): Add ansi-c++-opt.
22278         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
22279         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
22280         gl_MODULE_INDICATOR.
22281
22282         Tests of module 'dirent' in C++ mode.
22283         * tests/test-dirent-c++.cc: New file.
22284         * modules/dirent-tests (Files): Add it and tests/signature.h.
22285         (Depends-on): Add ansi-c++-opt.
22286         (Makefile.am): Arrange to compile and run test-dirent-c++.
22287         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
22288         gl_MODULE_INDICATOR.
22289
22290         New module 'ansi-c++-opt'.
22291         * modules/ansi-c++-opt: New file.
22292         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
22293
22294         Document C++ namespace mode.
22295         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
22296
22297         wctype: Avoid #define replacements in C++ mode.
22298         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
22299         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
22300         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
22301         In C++, define a namespaced alias symbol.
22302         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
22303         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
22304         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
22305         rule.
22306
22307         wchar: Avoid #define replacements in C++ mode.
22308         * lib/wchar.in.h: Include c++defs.h.
22309         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
22310         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
22311         symbol.
22312         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
22313         * modules/wchar (Depends-on): Add c++defs.
22314         (Makefile.am): Update wchar.h rule.
22315
22316         unistd: Avoid #define replacements in C++ mode.
22317         * lib/unistd.in.h: Include c++defs.h.
22318         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
22319         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
22320         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
22321         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
22322         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
22323         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
22324         symbol.
22325         (environ): Update.
22326         * modules/unistd (Depends-on): Add c++defs.
22327         (Makefile.am): Update unistd.h rule.
22328
22329         time: Avoid #define replacements in C++ mode.
22330         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
22331         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
22332         define a namespaced alias symbol.
22333         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
22334         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
22335         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
22336         * modules/time (Depends-on): Add c++defs, warn-on-use.
22337         (Makefile.am): Update time.h rule.
22338         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
22339         * modules/nanosleep (configure.ac): Likewise.
22340         * modules/strptime (configure.ac): Likewise.
22341         * modules/timegm (configure.ac): Likewise.
22342
22343         sys_time: Avoid #define replacements in C++ mode.
22344         * lib/sys_time.in.h: Include c++defs.h.
22345         (gettimeofday): In C++, define a namespaced alias symbol.
22346         * modules/sys_time (Depends-on): Add c++defs.
22347         (Makefile.am): Update sys/time.h rule.
22348
22349         sys_stat: Avoid #define replacements in C++ mode.
22350         * lib/sys_stat.in.h: Include c++defs.h.
22351         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
22352         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
22353         namespaced alias symbol.
22354         In C++, define a namespaced alias symbol.
22355         * modules/sys_stat (Depends-on): Add c++defs.
22356         (Makefile.am): Update sys/stat.h rule.
22357
22358         sys_socket: Avoid #define replacements in C++ mode.
22359         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
22360         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
22361         definitions also when the system has a <sys/socket.h>.
22362         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
22363         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
22364         In C++, define a namespaced alias symbol.
22365         * modules/sys_socket (Depends-on): Add c++defs.
22366         (Makefile.am): Update sys/socket.h rule.
22367
22368         sys_select: Avoid #define replacements in C++ mode.
22369         * lib/sys_select.in.h: Include c++defs.h. Enable the function
22370         definitions also when the system has a <sys/select.h>.
22371         (select): In C++, define a namespaced alias symbol.
22372         * modules/sys_select (Depends-on): Add c++defs.
22373         (Makefile.am): Update sys/select.h rule.
22374
22375         sys_ioctl: Avoid #define replacements in C++ mode.
22376         * lib/sys_ioctl.in.h: Include c++defs.h.
22377         (ioctl): In C++, define a namespaced alias symbol.
22378         * modules/sys_ioctl (Depends-on): Add c++defs.
22379         (Makefile.am): Update sys/ioctl.h rule.
22380
22381         string: Avoid #define replacements in C++ mode.
22382         * lib/string.in.h: Include c++defs.h.
22383         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
22384         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
22385         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
22386         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
22387         strsignal, strverscmp): In C++, define a namespaced alias symbol.
22388         * modules/string (Depends-on): Add c++defs.
22389         (Makefile.am): Update string.h rule.
22390
22391         stdlib: Avoid #define replacements in C++ mode.
22392         * lib/stdlib.in.h: Include c++defs.h.
22393         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
22394         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
22395         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
22396         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
22397         symbol.
22398         * modules/stdlib (Depends-on): Add c++defs.
22399         (Makefile.am): Update stdlib.h rule.
22400
22401         stdio: Avoid #define replacements in C++ mode.
22402         * lib/stdio.in.h: Include c++defs.h.
22403         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
22404         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
22405         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
22406         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
22407         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
22408         namespaced alias symbol.
22409         * modules/stdio (Depends-on): Add c++defs.
22410         (Makefile.am): Update stdio.h rule.
22411
22412         spawn: Avoid #define replacements in C++ mode.
22413         * lib/spawn.in.h: Include c++defs.h.
22414         (posix_spawn, posix_spawnp, posix_spawnattr_init,
22415         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
22416         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
22417         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
22418         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
22419         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
22420         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
22421         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
22422         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
22423         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
22424         In C++, define a namespaced alias symbol.
22425         * modules/spawn (Depends-on): Add c++defs.
22426         (Makefile.am): Update spawn.h rule.
22427
22428         signal: Avoid #define replacements in C++ mode.
22429         * lib/signal.in.h: Include c++defs.h.
22430         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
22431         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
22432         namespaced alias symbol.
22433         * modules/signal (Depends-on): Add c++defs.
22434         (Makefile.am): Update signal.h rule.
22435
22436         search: Avoid #define replacements in C++ mode.
22437         * lib/search.in.h: Include c++defs.h.
22438         (_gl_search_compar_fn, _gl_search_action_fn): New types.
22439         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
22440         symbol.
22441         * modules/search (Depends-on): Add c++defs.
22442         (Makefile.am): Update search.h rule.
22443
22444         math: Avoid #define replacements in C++ mode.
22445         * lib/math.in.h: Include c++defs.h.
22446         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
22447         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
22448         trunc, truncl): In C++, define a namespaced alias symbol.
22449         * modules/math (Depends-on): Add c++defs.
22450         (Makefile.am): Update math.h rule.
22451
22452         locale: Avoid #define replacements in C++ mode.
22453         * lib/locale.in.h: Include c++defs.h.
22454         (duplocale): In C++, define a namespaced alias symbol.
22455         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
22456         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
22457         * modules/locale (Depends-on): Add c++defs.
22458         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
22459
22460         langinfo: Avoid #define replacements in C++ mode.
22461         * lib/langinfo.in.h: Include c++defs.h.
22462         (nl_langinfo): In C++, define a namespaced alias symbol.
22463         * modules/langinfo (Depends-on): Add c++defs.
22464         (Makefile.am): Update langinfo.h rule.
22465
22466         iconv-h: Avoid #define replacements in C++ mode.
22467         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
22468         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
22469         symbol.
22470         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
22471         whenever iconv is present.
22472         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
22473         (Makefile.am): Update iconv.h rule.
22474
22475         glob: Avoid #define replacements in C++ mode.
22476         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
22477         (_gl_glob_errfunc_fn): New type.
22478         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
22479         symbol.
22480         * modules/glob (Depends-on): Add c++defs, warn-on-use.
22481         (Makefile.am): Update glob.h rule.
22482
22483         fcntl-h: Avoid #define replacements in C++ mode.
22484         * lib/fcntl.in.h: Include c++defs.h.
22485         (fcntl, open, openat): In C++, define a namespaced alias symbol.
22486         * modules/fcntl-h (Depends-on): Add c++defs.
22487         (Makefile.am): Update fcntl.h rule.
22488
22489         dirent: Avoid #define replacements in C++ mode.
22490         * lib/dirent.in.h: Include c++defs.h.
22491         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
22492         namespaced alias symbol.
22493         (dirfd): Update declaration.
22494         * modules/dirent (Depends-on): Add c++defs.
22495         (Makefile.am): Update dirent.h rule.
22496
22497         ctype: Make it usable in C++ code.
22498         * lib/ctype.in.h: Include c++defs.h.
22499         (isblank): Declare as extern "C".
22500         * modules/ctype (Depends-on): Add c++defs.
22501         (Makefile.am): Update ctype.h rule.
22502
22503         New module 'c++defs'.
22504         * modules/c++defs: New file.
22505         * build-aux/c++defs.h: New file.
22506         Reported by John W. Eaton <jwe@gnu.org>.
22507
22508 2010-03-07  Bruno Haible  <bruno@clisp.org>
22509
22510         logb: Provide missing declaration for Cygwin.
22511         * lib/math.in.h (logb): New declaration.
22512         * m4/logb.m4: New file.
22513         * modules/logb (Files): Add m4/logb.m4.
22514         (Depends-on): Add math.
22515         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
22516         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
22517         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
22518         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
22519         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
22520
22521 2010-03-07  Bruno Haible  <bruno@clisp.org>
22522
22523         Fix test-cond link error.
22524         * tests/test-cond.c: Include <stdio.h>.
22525
22526 2010-03-07  Bruno Haible  <bruno@clisp.org>
22527
22528         Fix test-dirent-safer link error.
22529         * modules/dirent-safer-tests (Makefile.am): Define
22530         test_dirent_safer_LDADD.
22531
22532 2010-03-07  Bruno Haible  <bruno@clisp.org>
22533
22534         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
22535         among default module list.
22536
22537 2010-03-07  Bruno Haible  <bruno@clisp.org>
22538
22539         Fix link error on platforms with GNU libiconv.
22540         * modules/unistr/u8-strcoll-tests (Makefile): Define
22541         test_u8_strcoll_LDADD.
22542         * modules/unistr/u16-strcoll-tests (Makefile): Define
22543         test_u16_strcoll_LDADD.
22544         * modules/unistr/u32-strcoll-tests (Makefile): Define
22545         test_u32_strcoll_LDADD.
22546
22547 2010-03-07  Bruno Haible  <bruno@clisp.org>
22548
22549         Use POSIX declarations for socket functions.
22550         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
22551         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
22552         rpl_sendto): Change declaration to match POSIX.
22553         * lib/connect.c (rpl_connect): Likewise.
22554         * lib/accept.c (rpl_accept): Likewise.
22555         * lib/bind.c (rpl_bind): Likewise.
22556         * lib/getpeername.c (rpl_getpeername): Likewise.
22557         * lib/getsockname.c (rpl_getsockname): Likewise.
22558         * lib/recv.c (rpl_recv): Likewise.
22559         * lib/send.c (rpl_send): Likewise.
22560         * lib/recvfrom.c (rpl_recvfrom): Likewise.
22561         * lib/sendto.c (rpl_sendto): Likewise.
22562
22563 2010-03-06  Bruno Haible  <bruno@clisp.org>
22564
22565         Clarify access, euidaccess, faccessat.
22566         * doc/posix-functions/faccessat.texi: Mention security problem under
22567         "Other problems", not "Portability problems".
22568         * doc/posix-functions/access.texi: Likewise. Mention a related security
22569         problem.
22570         * doc/glibc-functions/euidaccess.texi: Mention security problems.
22571         * lib/euidaccess.c: Add comments about platforms.
22572         * lib/unistd.in.h (access, euidaccess): Add warnings.
22573
22574 2010-03-07  Bruno Haible  <bruno@clisp.org>
22575
22576         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
22577         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
22578         (POSIX_SPAWN_SETSCHEDULER): Likewise.
22579         (POSIX_SPAWN_USEVFORK): Define in a way that works when
22580         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
22581         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
22582         declare when POSIX_SPAWN_SETSCHEDULER is zero.
22583         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
22584         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
22585         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
22586         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
22587         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
22588         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
22589         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
22590         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
22591         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
22592         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
22593         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
22594         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
22595         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
22596         Likewise.
22597         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
22598         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
22599         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
22600         Likewise.
22601         * tests/test-spawn.c (main): Make it work when
22602         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
22603
22604 2010-03-07  Bruno Haible  <bruno@clisp.org>
22605
22606         Fix incorrect Makefile.am generation in German locale.
22607         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
22608         Execute sed command with character range in C locale.
22609
22610 2010-03-06  Bruno Haible  <bruno@clisp.org>
22611
22612         Tests for module 'iconv-h'.
22613         * modules/iconv-h-tests: New file.
22614         * tests/test-iconv-h.c: New file.
22615
22616         New module 'iconv-h'.
22617         * modules/iconv-h: New file.
22618         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
22619         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
22620         (configure.ac): Remove gl_ICONV_H.
22621         (Makefile.am): Remove rule for iconv.h.
22622
22623 2010-03-06  Bruno Haible  <bruno@clisp.org>
22624
22625         More consistent naming of *.m4 files.
22626         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
22627         * modules/wctype (Files): Update.
22628
22629         More consistent naming of *.m4 files.
22630         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
22631         * modules/wchar (Files): Update.
22632
22633 2010-03-06  Jim Meyering  <meyering@redhat.com>
22634
22635         euidaccess: relax license to LGPLv2+
22636         * modules/euidaccess (License): Relax to LGPLv2+.
22637
22638 2010-03-06  Bruno Haible  <bruno@clisp.org>
22639
22640         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
22641         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
22642         (Makefile.am): Augment lib_SOURCES instead.
22643
22644 2010-03-04  Jim Meyering  <meyering@redhat.com>
22645
22646         utime: remove obsolete module
22647         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
22648         unnecessary for years, and has been marked as obsolete for 10 months.
22649         * modules/utime: Remove file.
22650         * lib/utime.c: Remove file.
22651         * m4/utime.m4: Remove file.
22652         * m4/utimes-null.m4: Remove file.
22653         * doc/posix-functions/utime.texi (utime): Remove reference to
22654         the module.  Move the sole "fixed by gnulib" item into the
22655         "problems not fixed by Gnulib" list.
22656         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
22657
22658 2010-03-05  Simon Josefsson  <simon@josefsson.org>
22659
22660         * modules/exit (License): Relax license to LGPLv2+.
22661         (Status): Mark as obsolete.
22662         * NEWS: Mention deprecated 'exit' module.
22663         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
22664         of now obsolete 'exit'.
22665
22666 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22667
22668         fts-lgpl: remove unused module
22669         * modules/fts-lgpl: Remove.
22670         * MODULES.html.sh (func_all_modules): Adjust.
22671         * check-module (find_included_lib_files): Adjust.
22672         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
22673
22674 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
22675
22676         copy-acl: enhance Solaris ACL error handling
22677         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
22678         * lib/set-mode-acl.c (qset_acl): Likewise.
22679
22680 2010-03-02  Bruno Haible  <bruno@clisp.org>
22681
22682         spawn: Don't override the system defined values on FreeBSD 8.
22683         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
22684         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
22685         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
22686         if HAVE_POSIX_SPAWN is 1.
22687         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
22688
22689 2010-03-01  Bruno Haible  <bruno@clisp.org>
22690
22691         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
22692         regarding Automake.
22693
22694 2010-02-25  Bruno Haible  <bruno@clisp.org>
22695
22696         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
22697         * gnulib-tool: Define 'echo' as a function only before the ksh alias
22698         setting, not afterwards.
22699         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
22700
22701 2010-02-24  Eric Blake  <eblake@redhat.com>
22702
22703         bootstrap, git-version-gen: use timestamp
22704         * build-aux/git-version-gen (scriptversion): Force UTC.
22705         * build-aux/bootstrap (scriptversion): New variable.
22706
22707         bootstrap: allow older git
22708         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
22709         older than 1.6.4.  Requested by the libvirt project.
22710
22711 2010-02-23  Eric Blake  <eblake@redhat.com>
22712
22713         warn-on-use: work with old autoconf
22714         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
22715         AS_VAR semantics of autoconf 2.60.
22716         Reported by Bruno Haible.
22717
22718         bootstrap: improve some comments
22719         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
22720         clarification comments.
22721
22722         gettimeofday: provide correct function
22723         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
22724         when replacement is declared, otherwise provide gettimeofday.
22725         Reported by Michael Goffioul.
22726
22727 2010-02-23  Jim Meyering  <meyering@redhat.com>
22728
22729         lib-ignore: relax license to "unlimited", not LGPLv2+
22730         * modules/lib-ignore (License): Relax to "unlimited".
22731
22732 2010-02-23  Jim Meyering  <meyering@redhat.com>
22733
22734         lib-ignore: relax license to LGPLv2+
22735         * modules/lib-ignore (License): Relax to LGPLv2+.
22736
22737 2010-02-22  Eric Blake  <eblake@redhat.com>
22738
22739         lseek: avoid bash 3.2 broken pipe bug
22740         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
22741         warning from bash 3.2.
22742         Reported by Ben Pfaff, with analysis from Bruno Haible.
22743
22744         bootstrap: support non-FSF copyright holder
22745         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
22746         bootstrap.conf override of COPYRIGHT_HOLDER.
22747         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
22748
22749         bootstrap: interoperate with gettext 0.14.1
22750         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
22751
22752         bootstrap: allow for alternate submodule location
22753         * build-aux/bootstrap (gnulib_path): New variable; use instead of
22754         hardcoding submodule location.
22755         (gnulib_mk): Allow direct use of Makefile.am.
22756
22757         bootstrap: use GNULIB_SRCDIR to reduce disk usage
22758         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
22759         rather than reconfiguring where the submodule points.
22760
22761         gettimeofday: restore support for platforms that lack function
22762         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
22763         replacement if function is missing.
22764         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
22765         * modules/sys_time (Makefile.am): Substitute it.
22766         * lib/sys_time.in.h (gettimeofday): Check it.
22767         Reported by Michael Goffioul.
22768
22769 2010-02-21  Bruno Haible  <bruno@clisp.org>
22770
22771         * lib/stdio.in.h (obstack_printf): Fix typo.
22772
22773 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
22774
22775         vc-list-files: use bzr ls's -R option
22776         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
22777         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
22778
22779 2010-02-21  Jim Meyering  <meyering@redhat.com>
22780
22781         init.sh: fix EXEEXT shims to work also for names like test-prog
22782         * tests/init.sh: Re-exec a better shell, when needed.
22783         If the current shell lacks support for posix $(...), an init.sh-using
22784         test will now try to find a shell that supports that.  If EXEEXT is
22785         nonempty, we also require support for hyphen-in-alias-name and shell
22786         substitutions like ${var#glob}.  Failure to find such a shell results
22787         in a skipped test.
22788
22789 2010-02-21  Bruno Haible  <bruno@clisp.org>
22790
22791         Really work around around "broken pipe" error message from bash 3.2.
22792         * gnulib-tool (func_reset_sigpipe): Remove function.
22793         (echo): In bash 3.2, define to a function that uses printf.
22794         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
22795
22796 2010-02-20  Bruno Haible  <bruno@clisp.org>
22797
22798         Restore support for automake 1.9.6 with autoconf 2.61.
22799         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
22800         Reported by James Youngman <jay@gnu.org>.
22801
22802 2010-02-20  Bruno Haible  <bruno@clisp.org>
22803
22804         Improve *printf warning condition.
22805         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
22806         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
22807         and the function is overridden due to SIGPIPE emulation.
22808
22809 2010-02-20  Bruno Haible  <bruno@clisp.org>
22810
22811         * lib/stdio.in.h: Tweak comments.
22812
22813 2010-02-19  Bruno Haible  <bruno@clisp.org>
22814
22815         Make it easier to find modules. New gnulib-tool option '--find'.
22816         * gnulib-tool: New option --find.
22817         (func_usage): Document it.
22818         (func_sanitize_modulelist): New function, extracted from
22819         func_all_modules.
22820         (func_all_modules): Invoke it.
22821         * doc/gnulib-tool.texi (Which modules?): New node.
22822
22823 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
22824
22825         * lib/sys_select.in.h: Provide select replacement even if
22826         sys/select.h exists on a system, for Interix.
22827
22828 2010-02-18  Jim Meyering  <meyering@redhat.com>
22829
22830         init.sh: don't use $(...) just yet
22831         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
22832         to accommodate e.g., Solaris' /bin/sh.
22833
22834 2010-02-17  Bruno Haible  <bruno@clisp.org>
22835
22836         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
22837         Reported by Ludovic Courtès <ludo@gnu.org>.
22838
22839 2010-02-16  Simon Josefsson  <simon@josefsson.org>
22840
22841         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
22842         linking with -lintl.
22843
22844 2010-02-17  Simon Josefsson  <simon@josefsson.org>
22845
22846         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
22847         if not provided by the system's netdb.h.  Reported by
22848         ludo@gnu.org (Ludovic Courtès).
22849
22850 2010-02-15  Jim Meyering  <meyering@redhat.com>
22851
22852         init.sh: improve portability and efficiency
22853         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
22854         "dummy" in a for loop.
22855         Use '!', not '^' to select the complement of a character set used
22856         in a "case" statement.
22857         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
22858         Suggestions from Eric Blake.
22859
22860         init.sh: automatically accommodate programs with the .exe suffix
22861         Automatically arrange for an invocation of "prog" to execute the
22862         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
22863         may use the simpler "prog", yet still work when built on a system
22864         that requires specifying the added suffix.
22865         Do this by constructing a function named "prog" that invokes
22866         "prog.exe" for each .exe file in selected directories.
22867         * tests/init.sh (find_exe_basenames_): New function.
22868         (create_exe_shim_functions_): New function.
22869         (path_prepend_): Use it.
22870
22871         maint.mk: mark syntax-check sc_*.m rules as .PHONY
22872         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
22873         "make -t syntax-check" doesn't create a ton of sc_*.m files.
22874
22875 2010-02-14  Jim Meyering  <meyering@redhat.com>
22876
22877         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
22878         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
22879         (sc_prohibit_hash_pjw_without_use): New rule.
22880
22881         maint.mk: allow the default upload destination dir to be overridden
22882         * top/maint.mk (upload_dest_dir_): Define with a default that
22883         preserves the status quo.
22884         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
22885         Reported by Peter Simons.
22886
22887         maint.mk: prohibit inclusion of "hash.h" without_use
22888         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
22889
22890 2010-02-10  Jim Meyering  <meyering@redhat.com>
22891
22892         maint.mk: prohibit inclusion of "ignore-value.h" without_use
22893         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
22894
22895 2010-02-09  Eric Blake  <ebb9@byu.net>
22896         and Bruno Haible  <bruno@clisp.org>
22897
22898         obstack-printf-posix: ensure declaration
22899         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
22900         extracted from gl_FUNC_OBSTACK_PRINTF.
22901         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
22902         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
22903         Likewise.
22904         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
22905         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
22906         0.
22907
22908 2010-02-08  Bruno Haible  <bruno@clisp.org>
22909
22910         gnulib-tool: Fix typo in 2010-02-07 commit.
22911         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
22912         Reported by Eric Blake.
22913
22914 2010-02-07  Bruno Haible  <bruno@clisp.org>
22915
22916         gnulib-tool: Fix up caching patches.
22917         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
22918         option --no-cache. Use associative arrays when supported by the shell.
22919         (sed_comments): New variable.
22920         (modcache): Renamed from do_cache.
22921         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
22922         abbreviate unnecessarily.
22923         (have_associative): New variable.
22924         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
22925         way also for ksh and zsh.
22926         (func_init_sed_convert_to_cache_statements): New function, extracted
22927         from func_cache_lookup_module. Add support for associative arrays.
22928         Don't set the c_MODULE_cached variable here. Ignore all lines before
22929         the first field header. Remove only the final newline, not all trailing
22930         newlines. Support empty fields correctly. Limit the use of 'eval' to
22931         assignments.
22932         (func_get_description, func_get_status, func_get_notice,
22933         func_get_applicability, func_get_filelist, func_get_dependencies,
22934         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
22935         func_get_automake_snippet, func_get_include_directive,
22936         func_get_link_directive, func_get_license, func_get_maintainer):
22937         Update documentation. List the unoptimized code first. Add support for
22938         associative arrays. Limit the use of 'eval' to assignments.
22939         (func_get_applicability): Undo stylistic pessimisations.
22940         (func_get_automake_snippet, func_get_include_directive): Reduce code
22941         duplication.
22942         (func_modules_transitive_closure, func_modules_add_dummy,
22943         func_modules_notice, func_modules_to_filelist, func_add_file,
22944         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
22945         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
22946         func_create_testdir, func_create_megatestdir): Update documentation.
22947
22948 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22949
22950         * gnulib-tool (func_cache_lookup_module): Store the module name
22951         belonging to the cache variable; error out if two different
22952         module names map to the same cache variable name.
22953
22954 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22955
22956         gnulib-tool: Make caching optional.
22957         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
22958         Update matching short versions of --no-changelog.
22959         (func_usage): Update.
22960         (sed_extract_cache_prog): Renamed from ...
22961         (sed_extract_prog): ... this; revert to old extraction script.
22962         (func_get_description, func_get_status)
22963         (func_get_notice, func_get_applicability, func_get_filelist)
22964         (func_get_dependencies, func_get_autoconf_early_snippet)
22965         (func_get_autoconf_snippet, func_get_automake_snippet)
22966         (func_get_include_directive, func_get_link_directive)
22967         (func_get_license, func_get_maintainer): If $do_cache is false,
22968         use old, non-caching extraction scripts.
22969         Suggestion by Bruno Haible.
22970
22971 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22972
22973         gnulib-tool: cache module metainformation.
22974         * gnulib-tool (sed_extract_prog): Match newline before each
22975         header, and rewrite header to a shell variable suffix.
22976         (func_cache_var, func_cache_lookup_module): New functions,
22977         to turn a module name into a cache variable prefix, and to
22978         look up and cache module metainformation.
22979         (func_get_description, func_get_status)
22980         (func_get_notice, func_get_applicability, func_get_filelist)
22981         (func_get_dependencies, func_get_autoconf_early_snippet)
22982         (func_get_autoconf_snippet, func_get_automake_snippet)
22983         (func_get_include_directive, func_get_link_directive)
22984         (func_get_license, func_get_maintainer): Use
22985         func_cache_lookup_module.
22986
22987 2010-02-07  Bruno Haible  <bruno@clisp.org>
22988
22989         fnctl: Fix missing dependency.
22990         * modules/fcntl (Depends-on): Add getdtablesize.
22991         Reported by John W. Eaton <jwe@gnu.org>.
22992
22993 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
22994
22995         Argp: fix recognition of short alias options.
22996
22997         * lib/argp-parse.c (convert_options): Fix improper use of
22998         `|' between character values.
22999         * tests/test-argp.c (group1_option): New alias option
23000         --read (-r).
23001         (group1_parser): Special handling for 'r'.
23002         (test15): New test case.
23003         (test_fun): Add test15.
23004         * tests/test-argp-2.sh: Update expected --help and --usage
23005         outputs.
23006
23007 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
23008
23009         * tests/test-argp.c: Fix indentation.
23010
23011 2010-02-04  Eric Blake  <ebb9@byu.net>
23012
23013         gettimeofday: expose type of second argument
23014         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
23015         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
23016         * tests/test-gettimeofday.c: Use it to silence warning.
23017         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
23018         the issue.
23019
23020 2010-02-03  Jim Meyering  <meyering@redhat.com>
23021
23022         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
23023         * lib/regcomp.c (TYPE_SIGNED): Define.
23024         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
23025
23026         regcomp.c: avoid a new -Wshadow warning
23027         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
23028
23029 2010-02-01  Jim Meyering  <meyering@redhat.com>
23030
23031         removing useless parentheses in cpp #define directives
23032         For motivation, see commit c0221df4, "define STREQ(a,b)
23033         consistently, removing useless parentheses"
23034         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
23035         * lib/mountlist.c (MNT_IGNORE): Likewise.
23036         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
23037
23038 2010-02-01  Eric Blake  <ebb9@byu.net>
23039
23040         sys_time: use link-warning
23041         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
23042         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
23043         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
23044         * modules/sys_time (Depends-on): Add warn-on-use.
23045         (Makefile.am): Always build replacement.
23046         (configure.ac): Update substitutions.
23047         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
23048         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
23049         bother with SYS_TIME_H.
23050         * modules/gettimeofday (configure.ac): Declare indicator.
23051         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
23052         in use.
23053
23054         closein-tests: silence compiler warning
23055         * tests/test-closein.c (main): Ignore fread result.
23056         * modules/closein-tests (Depends-on): Add ignore-value.
23057
23058         tests: silence warning about system return
23059         * tests/test-areadlink-with-size.c (main): Ignore system result.
23060         * tests/test-areadlink.c (main): Likewise.
23061         * tests/test-areadlinkat-with-size.c (main): Likewise.
23062         * tests/test-areadlinkat.c (main): Likewise.
23063         * tests/test-canonicalize-lgpl.c (main): Likewise.
23064         * tests/test-canonicalize.c (main): Likewise.
23065         * tests/test-chown.c (main): Likewise.
23066         * tests/test-fchownat.c (main): Likewise.
23067         * tests/test-fdutimensat.c (main): Likewise.
23068         * tests/test-fstatat.c (main): Likewise.
23069         * tests/test-futimens.c (main): Likewise.
23070         * tests/test-lchown.c (main): Likewise.
23071         * tests/test-link.c (main): Likewise.
23072         * tests/test-linkat.c (main): Likewise.
23073         * tests/test-lstat.c (main): Likewise.
23074         * tests/test-mkdir.c (main): Likewise.
23075         * tests/test-mkdirat.c (main): Likewise.
23076         * tests/test-mkfifo.c (main): Likewise.
23077         * tests/test-mkfifoat.c (main): Likewise.
23078         * tests/test-mknod.c (main): Likewise.
23079         * tests/test-readlink.c (main): Likewise.
23080         * tests/test-remove.c (main): Likewise.
23081         * tests/test-rename.c (main): Likewise.
23082         * tests/test-renameat.c (main): Likewise.
23083         * tests/test-rmdir.c (main): Likewise.
23084         * tests/test-symlink.c (main): Likewise.
23085         * tests/test-symlinkat.c (main): Likewise.
23086         * tests/test-unlink.c (main): Likewise.
23087         * tests/test-unlinkat.c (main): Likewise.
23088         * tests/test-utimens.c (main): Likewise.
23089         * tests/test-utimensat.c (main): Likewise.
23090         * modules/areadlink-tests (Depends-on): Add ignore-value.
23091         * modules/areadlink-with-size-tests (Depends-on): Likewise.
23092         * modules/areadlinkat-tests (Depends-on): Likewise.
23093         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
23094         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
23095         * modules/canonicalize-tests (Depends-on): Likewise.
23096         * modules/chown-tests (Depends-on): Likewise.
23097         * modules/fdutimensat-tests (Depends-on): Likewise.
23098         * modules/futimens-tests (Depends-on): Likewise.
23099         * modules/lchown-tests (Depends-on): Likewise.
23100         * modules/link-tests (Depends-on): Likewise.
23101         * modules/linkat-tests (Depends-on): Likewise.
23102         * modules/lstat-tests (Depends-on): Likewise.
23103         * modules/mkdir-tests (Depends-on): Likewise.
23104         * modules/mkfifo-tests (Depends-on): Likewise.
23105         * modules/mkfifoat-tests (Depends-on): Likewise.
23106         * modules/mknod-tests (Depends-on): Likewise.
23107         * modules/openat-tests (Depends-on): Likewise.
23108         * modules/readlink-tests (Depends-on): Likewise.
23109         * modules/remove-tests (Depends-on): Likewise.
23110         * modules/rename-tests (Depends-on): Likewise.
23111         * modules/renameat-tests (Depends-on): Likewise.
23112         * modules/rmdir-tests (Depends-on): Likewise.
23113         * modules/symlink-tests (Depends-on): Likewise.
23114         * modules/symlinkat-tests (Depends-on): Likewise.
23115         * modules/unlink-tests (Depends-on): Likewise.
23116         * modules/utimens-tests (Depends-on): Likewise.
23117         * modules/utimensat-tests (Depends-on): Likewise.
23118
23119 2010-01-31  Bruno Haible  <bruno@clisp.org>
23120
23121         Perform the same test for many <math.h> functions.
23122         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
23123         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
23124         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
23125         of gl_MATHFUNC.
23126         * modules/acos (configure.ac): Likewise.
23127         * modules/asin (configure.ac): Likewise.
23128         * modules/atan (configure.ac): Likewise.
23129         * modules/atan2 (configure.ac): Likewise.
23130         * modules/cbrt (configure.ac): Likewise.
23131         * modules/copysign (configure.ac): Likewise.
23132         * modules/cos (configure.ac): Likewise.
23133         * modules/cosh (configure.ac): Likewise.
23134         * modules/erf (configure.ac): Likewise.
23135         * modules/erfc (configure.ac): Likewise.
23136         * modules/exp (configure.ac): Likewise.
23137         * modules/fmod (configure.ac): Likewise.
23138         * modules/hypot (configure.ac): Likewise.
23139         * modules/j0 (configure.ac): Likewise.
23140         * modules/j1 (configure.ac): Likewise.
23141         * modules/jn (configure.ac): Likewise.
23142         * modules/lgamma (configure.ac): Likewise.
23143         * modules/log (configure.ac): Likewise.
23144         * modules/log10 (configure.ac): Likewise.
23145         * modules/log1p (configure.ac): Likewise.
23146         * modules/pow (configure.ac): Likewise.
23147         * modules/remainder (configure.ac): Likewise.
23148         * modules/sin (configure.ac): Likewise.
23149         * modules/sinh (configure.ac): Likewise.
23150         * modules/tan (configure.ac): Likewise.
23151         * modules/tanh (configure.ac): Likewise.
23152         * modules/y0 (configure.ac): Likewise.
23153         * modules/y1 (configure.ac): Likewise.
23154         * modules/yn (configure.ac): Likewise.
23155         Suggested by Paolo Bonzini.
23156
23157 2010-01-31  Bruno Haible  <bruno@clisp.org>
23158
23159         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
23160
23161 2010-01-31  Bruno Haible  <bruno@clisp.org>
23162
23163         Work around getdelim() bug on FreeBSD 8.0.
23164         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
23165         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
23166         not work.
23167         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
23168         is 1.
23169         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
23170         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
23171         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
23172         a non-zero size.
23173         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
23174
23175 2010-01-31  Bruno Haible  <bruno@clisp.org>
23176
23177         Work around getline() bug on FreeBSD 8.0.
23178         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
23179         and a non-zero size.
23180         * tests/test-getline.c (main): Likewise.
23181         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
23182         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
23183
23184 2010-01-28  Eric Blake  <ebb9@byu.net>
23185
23186         regex: fix build failure
23187         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
23188         platforms.
23189
23190 2010-01-28  Jim Meyering  <meyering@redhat.com>
23191
23192         regex: do not ignore memory allocation failure
23193         * lib/regex_internal.c (create_cd_newstate): Detect
23194         re_node_set_init_copy failure.   Extracted from glibc commit
23195         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
23196
23197         regex: sync more white-space changes from libc
23198         * lib/regex_internal.c: White-space only changes.
23199         * lib/regexec.c: Likewise.
23200
23201         regex: add many uses of __attribute_warn_unused_result__
23202         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
23203         * lib/regexec.c: Likewise.
23204         Extracted from a messy glibc commit.
23205
23206         regcomp.c: spelling and merge-artifact from glibc
23207         * lib/regcomp.c: Merge remainder of glibc's
23208         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
23209
23210         regcomp.c: sync white-space changes from glibc
23211         * lib/regcomp.c: Merge to accommodate white space
23212         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
23213
23214         regcomp.c: do not ignore internal return values
23215         * lib/regcomp.c: Do not ignore internal return values.
23216         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
23217         but without its white-space changes and spelling fixes.
23218
23219         regex_internal.h: define __attribute_warn_unused_result__
23220         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
23221
23222         maint: add a syntax-check rule to check for vulnerable Makefile.in
23223         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
23224
23225 2010-01-27  Jim Meyering  <meyering@redhat.com>
23226
23227         ncftpput-ftp: clean up spaces
23228         * build-aux/ncftpput-ftp: Make Copyright line consistent.
23229         Remove trailing blanks.
23230
23231 2010-01-27  Simon Josefsson  <simon@josefsson.org>
23232
23233         * build-aux/git-version-gen: Fix copyright statement.
23234         * build-aux/gnupload: Likewise.
23235         * tests/test-arcfour.c: Likewise.
23236         * tests/test-arctwo.c: Likewise.
23237         * tests/test-count-one-bits.c: Likewise.
23238         * tests/test-crc.c: Likewise.
23239         * tests/test-des.c: Likewise.
23240         * tests/test-gc-arcfour.c: Likewise.
23241         * tests/test-gc-arctwo.c: Likewise.
23242         * tests/test-gc-des.c: Likewise.
23243         * tests/test-gc-hmac-md5.c: Likewise.
23244         * tests/test-gc-hmac-sha1.c: Likewise.
23245         * tests/test-gc-md2.c: Likewise.
23246         * tests/test-gc-md4.c: Likewise.
23247         * tests/test-gc-md5.c: Likewise.
23248         * tests/test-gc-pbkdf2-sha1.c: Likewise.
23249         * tests/test-gc-rijndael.c: Likewise.
23250         * tests/test-gc-sha1.c: Likewise.
23251         * tests/test-gc.c: Likewise.
23252         * tests/test-gethostname.c: Likewise.
23253         * tests/test-gettimeofday.c: Likewise.
23254         * tests/test-hash.c: Likewise.
23255         * tests/test-hmac-md5.c: Likewise.
23256         * tests/test-hmac-sha1.c: Likewise.
23257         * tests/test-md2.c: Likewise.
23258         * tests/test-md4.c: Likewise.
23259         * tests/test-md5.c: Likewise.
23260         * tests/test-memchr.c: Likewise.
23261         * tests/test-memchr2.c: Likewise.
23262         * tests/test-memcmp.c: Likewise.
23263         * tests/test-memmem.c: Likewise.
23264         * tests/test-memrchr.c: Likewise.
23265         * tests/test-rawmemchr.c: Likewise.
23266         * tests/test-read-file.c: Likewise.
23267         * tests/test-rijndael.c: Likewise.
23268         * tests/test-sockets.c: Likewise.
23269         * tests/test-strchrnul.c: Likewise.
23270         * tests/test-strstr.c: Likewise.
23271         * tests/test-strtod.c: Likewise.
23272         * build-aux/ncftpput-ftp: Likewise.
23273
23274 2010-01-26  Eric Blake  <ebb9@byu.net>
23275
23276         ignore-value: update recommended header name
23277         * modules/ignore-value (Include): Only use <> for headers that
23278         exist in glibc.
23279
23280 2010-01-26  Jim Meyering  <meyering@redhat.com>
23281
23282         test-userspec.c: avoid compiler warnings
23283         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
23284         and "initialization discards qualifiers..." warnings.
23285         Put the first "uid" in its own scope, and make char* members "const".
23286
23287 2010-01-25  Bruno Haible  <bruno@clisp.org>
23288
23289         gnulib-tool: Make warning diagnostics consistent.
23290         * gnulib-tool (func_warning): New function.
23291         Use it everywhere where gnulib-tool produces output to stderr and it is
23292         not a fatal error.
23293
23294 2010-01-25  Bruno Haible  <bruno@clisp.org>
23295
23296         Fix test dependencies.
23297         * modules/xstrtol-tests (Depends-on): Add inttypes.
23298         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
23299
23300 2010-01-25 Pádraig Brady <P@draigBrady.com>
23301
23302         syntax-check: detect incorrect boolean macro values in config.h
23303         * modules/maintainer-makefile (configure.ac): Parameterize the location
23304         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
23305         The logic is from Eric Blake and the location indicated by Jim Meyering.
23306         Note the more natural CONFIG_HEADER name is prohibited by automake
23307         for backwards compatibility reasons.
23308         * top/maint.mk (sc_Wundef_boolean): New rule.
23309
23310 2010-01-25  Jim Meyering  <meyering@redhat.com>
23311
23312         bootstrap: detect MacOS 10.6's shasum, too
23313         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
23314         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
23315
23316 2010-01-23  Jim Meyering  <meyering@redhat.com>
23317
23318         xstrtoll: new module
23319         * modules/xstrtoll: New file.
23320         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
23321         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
23322         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
23323         ./configure fails if you use this module and lack "long long".
23324         * modules/xstrtoll-tests: New module.
23325         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
23326         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
23327         new init.sh-based test framework.
23328
23329 2010-01-24  Bruno Haible  <bruno@clisp.org>
23330
23331         Tests for module 'yn'.
23332         * modules/yn-tests: New file.
23333         * tests/test-yn.c: New file.
23334
23335         Tests for module 'y1'.
23336         * modules/y1-tests: New file.
23337         * tests/test-y1.c: New file.
23338
23339         Tests for module 'y0'.
23340         * modules/y0-tests: New file.
23341         * tests/test-y0.c: New file.
23342
23343         Tests for module 'tanh'.
23344         * modules/tanh-tests: New file.
23345         * tests/test-tanh.c: New file.
23346
23347         Tests for module 'tan'.
23348         * modules/tan-tests: New file.
23349         * tests/test-tan.c: New file.
23350
23351         Tests for module 'sqrt'.
23352         * modules/sqrt-tests: New file.
23353         * tests/test-sqrt.c: New file.
23354
23355         Tests for module 'sinh'.
23356         * modules/sinh-tests: New file.
23357         * tests/test-sinh.c: New file.
23358
23359         Tests for module 'sin'.
23360         * modules/sin-tests: New file.
23361         * tests/test-sin.c: New file.
23362
23363         Tests for module 'rint'.
23364         * modules/rint-tests: New file.
23365         * tests/test-rint.c: New file.
23366
23367         Tests for module 'remainder'.
23368         * modules/remainder-tests: New file.
23369         * tests/test-remainder.c: New file.
23370
23371         Tests for module 'pow'.
23372         * modules/pow-tests: New file.
23373         * tests/test-pow.c: New file.
23374
23375         Tests for module 'nextafter'.
23376         * modules/nextafter-tests: New file.
23377         * tests/test-nextafter.c: New file.
23378
23379         Tests for module 'modf'.
23380         * modules/modf-tests: New file.
23381         * tests/test-modf.c: New file.
23382
23383         Tests for module 'logb'.
23384         * modules/logb-tests: New file.
23385         * tests/test-logb.c: New file.
23386
23387         Tests for module 'log1p'.
23388         * modules/log1p-tests: New file.
23389         * tests/test-log1p.c: New file.
23390
23391         Tests for module 'log10'.
23392         * modules/log10-tests: New file.
23393         * tests/test-log10.c: New file.
23394
23395         Tests for module 'log'.
23396         * modules/log-tests: New file.
23397         * tests/test-log.c: New file.
23398
23399         Tests for module 'lgamma'.
23400         * modules/lgamma-tests: New file.
23401         * tests/test-lgamma.c: New file.
23402
23403         Tests for module 'ldexp'.
23404         * modules/ldexp-tests: New file.
23405         * tests/test-ldexp.c: New file.
23406
23407         Tests for module 'jn'.
23408         * modules/jn-tests: New file.
23409         * tests/test-jn.c: New file.
23410
23411         Tests for module 'j1'.
23412         * modules/j1-tests: New file.
23413         * tests/test-j1.c: New file.
23414
23415         Tests for module 'j0'.
23416         * modules/j0-tests: New file.
23417         * tests/test-j0.c: New file.
23418
23419         Tests for module 'hypot'.
23420         * modules/hypot-tests: New file.
23421         * tests/test-hypot.c: New file.
23422
23423         Tests for module 'fmod'.
23424         * modules/fmod-tests: New file.
23425         * tests/test-fmod.c: New file.
23426
23427         Tests for module 'fabs'.
23428         * modules/fabs-tests: New file.
23429         * tests/test-fabs.c: New file.
23430
23431         Tests for module 'exp'.
23432         * modules/exp-tests: New file.
23433         * tests/test-exp.c: New file.
23434
23435         Tests for module 'erfc'.
23436         * modules/erfc-tests: New file.
23437         * tests/test-erfc.c: New file.
23438
23439         Tests for module 'erf'.
23440         * modules/erf-tests: New file.
23441         * tests/test-erf.c: New file.
23442
23443         Tests for module 'cosh'.
23444         * modules/cosh-tests: New file.
23445         * tests/test-cosh.c: New file.
23446
23447         Tests for module 'cos'.
23448         * modules/cos-tests: New file.
23449         * tests/test-cos.c: New file.
23450
23451         Tests for module 'copysign'.
23452         * modules/copysign-tests: New file.
23453         * tests/test-copysign.c: New file.
23454
23455         Tests for module 'cbrt'.
23456         * modules/cbrt-tests: New file.
23457         * tests/test-cbrt.c: New file.
23458
23459         Tests for module 'atan2'.
23460         * modules/atan2-tests: New file.
23461         * tests/test-atan2.c: New file.
23462
23463         Tests for module 'atan'.
23464         * modules/atan-tests: New file.
23465         * tests/test-atan.c: New file.
23466
23467         Tests for module 'asin'.
23468         * modules/asin-tests: New file.
23469         * tests/test-asin.c: New file.
23470
23471         Tests for module 'acos'.
23472         * modules/acos-tests: New file.
23473         * tests/test-acos.c: New file.
23474
23475 2010-01-24  Bruno Haible  <bruno@clisp.org>
23476
23477         Fix tests for common <math.h> functions.
23478         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
23479         code snippet that references the function pointer, rather than merely
23480         calling the function. Substitute the FUNC_LIBM variable.
23481         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
23482         * modules/acos (configure.ac): Likewise.
23483         * modules/asin (configure.ac): Likewise.
23484         * modules/atan (configure.ac): Likewise.
23485         * modules/atan2 (configure.ac): Likewise.
23486         * modules/cbrt (configure.ac): Likewise.
23487         * modules/copysign (configure.ac): Likewise.
23488         * modules/cos (configure.ac): Likewise.
23489         * modules/cosh (configure.ac): Likewise.
23490         * modules/erf (configure.ac): Likewise.
23491         * modules/erfc (configure.ac): Likewise.
23492         * modules/exp (configure.ac): Likewise.
23493         * modules/fabs (configure.ac): Likewise.
23494         * modules/fmod (configure.ac): Likewise.
23495         * modules/hypot (configure.ac): Likewise.
23496         * modules/j0 (configure.ac): Likewise.
23497         * modules/j1 (configure.ac): Likewise.
23498         * modules/jn (configure.ac): Likewise.
23499         * modules/ldexp (configure.ac): Likewise.
23500         * modules/lgamma (configure.ac): Likewise.
23501         * modules/log (configure.ac): Likewise.
23502         * modules/log10 (configure.ac): Likewise.
23503         * modules/log1p (configure.ac): Likewise.
23504         * modules/logb (configure.ac): Likewise.
23505         * modules/modf (configure.ac): Likewise.
23506         * modules/nextafter (configure.ac): Likewise.
23507         * modules/pow (configure.ac): Likewise.
23508         * modules/remainder (configure.ac): Likewise.
23509         * modules/rint (configure.ac): Likewise.
23510         * modules/sin (configure.ac): Likewise.
23511         * modules/sinh (configure.ac): Likewise.
23512         * modules/tan (configure.ac): Likewise.
23513         * modules/tanh (configure.ac): Likewise.
23514         * modules/y0 (configure.ac): Likewise.
23515         * modules/y1 (configure.ac): Likewise.
23516         * modules/yn (configure.ac): Likewise.
23517
23518 2010-01-24  Bruno Haible  <bruno@clisp.org>
23519
23520         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
23521         * tests/test-acosl.c (x): New variable.
23522         (main): Store argument in x and fetch it from x.
23523         * tests/test-asinl.c (x): New variable.
23524         (main): Store argument in x and fetch it from x.
23525         * tests/test-atanl.c (x): New variable.
23526         (main): Store argument in x and fetch it from x.
23527         * tests/test-cosl.c (x): New variable.
23528         (main): Store argument in x and fetch it from x.
23529         * tests/test-expl.c (x): New variable.
23530         (main): Store argument in x and fetch it from x.
23531         * tests/test-logl.c (x): New variable.
23532         (main): Store argument in x and fetch it from x.
23533         * tests/test-sinl.c (x): New variable.
23534         (main): Store argument in x and fetch it from x.
23535         * tests/test-sqrtl.c (x): New variable.
23536         (main): Store argument in x and fetch it from x.
23537         * tests/test-tanl.c (x): New variable.
23538         (main): Store argument in x and fetch it from x.
23539
23540 2010-01-24  Bruno Haible  <bruno@clisp.org>
23541
23542         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
23543         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
23544         assignments to the initial TESTS_ENVIRONMENT.
23545         * doc/gnulib.texi (Unit test modules): Document it.
23546         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
23547         TESTS_ENVIRONMENT.
23548         * modules/btowc-tests (Makefile.am): Likewise.
23549         * modules/c-stack-tests (Makefile.am): Likewise.
23550         * modules/c-strcase-tests (Makefile.am): Likewise.
23551         * modules/copy-file-tests (Makefile.am): Likewise.
23552         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
23553         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
23554         * modules/mbrtowc-tests (Makefile.am): Likewise.
23555         * modules/mbscasecmp-tests (Makefile.am): Likewise.
23556         * modules/mbscasestr-tests (Makefile.am): Likewise.
23557         * modules/mbschr-tests (Makefile.am): Likewise.
23558         * modules/mbscspn-tests (Makefile.am): Likewise.
23559         * modules/mbsinit-tests (Makefile.am): Likewise.
23560         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
23561         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
23562         * modules/mbspbrk-tests (Makefile.am): Likewise.
23563         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
23564         * modules/mbsrchr-tests (Makefile.am): Likewise.
23565         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
23566         * modules/mbsspn-tests (Makefile.am): Likewise.
23567         * modules/mbsstr-tests (Makefile.am): Likewise.
23568         * modules/nl_langinfo-tests (Makefile.am): Likewise.
23569         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
23570         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
23571         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
23572         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
23573         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
23574         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
23575         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
23576         * modules/wcrtomb-tests (Makefile.am): Likewise.
23577         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
23578         * modules/wcsrtombs-tests (Makefile.am): Likewise.
23579         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
23580         assignments from TESTS_ENVIRONMENT.
23581         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
23582         augmentation.
23583         * modules/argp-version-etc-tests (Makefile.am): Likewise.
23584         * modules/atexit-tests (Makefile.am): Likewise.
23585         * modules/binary-io-tests (Makefile.am): Likewise.
23586         * modules/closein-tests (Makefile.am): Likewise.
23587         * modules/dprintf-posix-tests (Makefile.am): Likewise.
23588         * modules/exclude-tests (Makefile.am): Likewise.
23589         * modules/fflush-tests (Makefile.am): Likewise.
23590         * modules/fpending-tests (Makefile.am): Likewise.
23591         * modules/fprintf-posix-tests (Makefile.am): Likewise.
23592         * modules/freadahead-tests (Makefile.am): Likewise.
23593         * modules/freadptr-tests (Makefile.am): Likewise.
23594         * modules/freadseek-tests (Makefile.am): Likewise.
23595         * modules/fseek-tests (Makefile.am): Likewise.
23596         * modules/fseeko-tests (Makefile.am): Likewise.
23597         * modules/ftell-tests (Makefile.am): Likewise.
23598         * modules/ftello-tests (Makefile.am): Likewise.
23599         * modules/idpriv-drop-tests (Makefile.am): Likewise.
23600         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
23601         * modules/lseek-tests (Makefile.am): Likewise.
23602         * modules/parse-duration-tests (Makefile.am): Likewise.
23603         * modules/perror-tests (Makefile.am): Likewise.
23604         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
23605         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
23606         * modules/pipe-tests (Makefile.am): Likewise.
23607         * modules/pread-tests (Makefile.am): Likewise.
23608         * modules/printf-posix-tests (Makefile.am): Likewise.
23609         * modules/select-tests (Makefile.am): Likewise.
23610         * modules/sigpipe-tests (Makefile.am): Likewise.
23611         * modules/tsearch-tests (Makefile.am): Likewise.
23612         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
23613         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
23614         * modules/uniname/uniname-tests (Makefile.am): Likewise.
23615         * modules/uniwidth/width-tests (Makefile.am): Likewise.
23616         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
23617         * modules/version-etc-tests (Makefile.am): Likewise.
23618         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
23619         * modules/vprintf-posix-tests (Makefile.am): Likewise.
23620         * modules/xalloc-die-tests (Makefile.am): Likewise.
23621         * modules/xprintf-posix-tests (Makefile.am): Likewise.
23622         * modules/xstrtoimax-tests (Makefile.am): Likewise.
23623         * modules/xstrtol-tests (Makefile.am): Likewise.
23624         * modules/xstrtoumax-tests (Makefile.am): Likewise.
23625         * modules/yesno-tests (Makefile.am): Likewise.
23626         Suggested by Jim Meyering.
23627
23628 2010-01-24  Bruno Haible  <bruno@clisp.org>
23629
23630         More documentation.
23631         * doc/gnulib.texi (Writing modules): New chapter.
23632         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
23633         the new chapter.
23634
23635 2010-01-24  Jim Meyering  <meyering@redhat.com>
23636
23637         maint.mk: do not prepend "./" after filtering
23638         * top/maint.mk (_prepend_srcdir_prefix): New variable
23639         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
23640         "./" when $(srcdir) is ".".
23641
23642         define STREQ(a,b) consistently, removing useless parentheses
23643         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
23644         since the only risk is that "a" or "b" contains an unparenthesized
23645         comma, but if either did that, STREQ would have 3 or more arguments.
23646         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
23647         * lib/fts.c (STREQ): Remove unnecessary parentheses.
23648         * lib/hash-triple.c (STREQ): Likewise.
23649         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
23650         * lib/getugroups.c (STREQ): Likewise.
23651
23652 2010-01-23  Jim Meyering  <meyering@redhat.com>
23653
23654         maint.mk: fix syntax-check in a non-srcdir build directory
23655         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
23656         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
23657
23658 2010-01-22  Jim Meyering  <meyering@redhat.com>
23659
23660         userspec: add unit tests
23661         * tests/test-userspec.c: New file.
23662         * modules/userspec-tests: Likewise.
23663
23664 2010-01-21  Jim Meyering  <meyering@redhat.com>
23665
23666         maint.mk: handle source file names containing "." robustly
23667         * top/maint.mk (_dot_escaped_srcdir): Define.
23668         (VC_LIST): Use it in LHS of sed substitution.
23669
23670 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
23671
23672         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
23673         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
23674         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
23675         from a non-srcdir build.
23676
23677 2010-01-20  Eric Blake  <ebb9@byu.net>
23678
23679         warn-on-use: use instead of link-warning
23680         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
23681         * modules/unistd (Depends-on, Makefile.am): Likewise.
23682         * modules/arpa_inet (Depends-on): Replace link-warning with
23683         warn-on-use.
23684         (Makefile.am): Update rules accordingly.
23685         * modules/ctype (Depends-on, Makefile.am): Likewise.
23686         * modules/dirent (Depends-on, Makefile.am): Likewise.
23687         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
23688         * modules/inttypes (Depends-on, Makefile.am): Likewise.
23689         * modules/langinfo (Depends-on, Makefile.am): Likewise.
23690         * modules/locale (Depends-on, Makefile.am): Likewise.
23691         * modules/math (Depends-on, Makefile.am): Likewise.
23692         * modules/search (Depends-on, Makefile.am): Likewise.
23693         * modules/signal (Depends-on, Makefile.am): Likewise.
23694         * modules/spawn (Depends-on, Makefile.am): Likewise.
23695         * modules/stdlib (Depends-on, Makefile.am): Likewise.
23696         * modules/string (Depends-on, Makefile.am): Likewise.
23697         * modules/strings (Depends-on, Makefile.am): Likewise.
23698         * modules/sys_file (Depends-on, Makefile.am): Likewise.
23699         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
23700         * modules/sys_select (Depends-on, Makefile.am): Likewise.
23701         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
23702         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
23703         * modules/sys_times (Depends-on, Makefile.am): Likewise.
23704         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
23705         * modules/wchar (Depends-on, Makefile.am): Likewise.
23706         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
23707         should be poisoned.
23708         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
23709         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
23710         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
23711         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
23712         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
23713         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
23714         * m4/math_h.m4 (gl_MATH_H): Likewise.
23715         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
23716         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
23717         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
23718         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
23719         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
23720         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
23721         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
23722         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
23723         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
23724         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
23725         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
23726         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
23727         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
23728         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
23729         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
23730         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
23731         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
23732         GL_LINK_WARNING.
23733         * lib/ctype.in.h: Likewise.
23734         * lib/dirent.in.h: Likewise.
23735         * lib/fcntl.in.h: Likewise.
23736         * lib/inttypes.in.h: Likewise.
23737         * lib/langinfo.in.h: Likewise.
23738         * lib/locale.in.h: Likewise.
23739         * lib/math.in.h: Likewise.
23740         * lib/search.in.h: Likewise.
23741         * lib/signal.in.h: Likewise.
23742         * lib/spawn.in.h: Likewise.
23743         * lib/stdio.in.h: Likewise.
23744         * lib/stdlib.in.h: Likewise.
23745         * lib/string.in.h: Likewise.
23746         * lib/strings.in.h: Likewise.
23747         * lib/sys_file.in.h: Likewise.
23748         * lib/sys_ioctl.in.h: Likewise.
23749         * lib/sys_select.in.h: Likewise.
23750         * lib/sys_socket.in.h: Likewise.
23751         * lib/sys_stat.in.h: Likewise.
23752         * lib/sys_times.in.h: Likewise.
23753         * lib/sys_utsname.in.h: Likewise.
23754         * lib/unistd.in.h: Likewise.
23755         * lib/wchar.in.h: Likewise.
23756
23757 2010-01-20  Bruno Haible  <bruno@clisp.org>
23758
23759         Avoid duplicate -lm.
23760         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
23761         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
23762         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
23763         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
23764         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
23765         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
23766         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
23767         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
23768         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
23769         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
23770         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
23771         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
23772         Reported by Paolo Bonzini.
23773
23774 2010-01-19  Bruno Haible  <bruno@clisp.org>
23775
23776         langinfo, nl_langinfo: Relicense under LGPLv2+.
23777         * modules/langinfo (License): Change to LGPLv2+.
23778         * modules/nl_langinfo (License): Likewise.
23779         Patch by David Lutterkort <lutter@redhat.com>.
23780
23781 2010-01-19  Bruno Haible  <bruno@clisp.org>
23782
23783         Avoid compilation error with cc on OSF/1 5.1.
23784         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
23785         statement, not before.
23786         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
23787
23788 2010-01-18  Bruno Haible  <bruno@clisp.org>
23789
23790         Avoid a link error due to the __printf__ symbol.
23791         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
23792         and 2.6.x.
23793         (__format__, __printf__): Remove definitions.
23794         * lib/argp-fmtstream.h: Likewise.
23795         * lib/argp.h: Likewise.
23796         * lib/error.h: Likewise.
23797         * lib/vasnprintf.h: Likewise.
23798         * lib/xprintf.h: Likewise.
23799         * lib/xvasprintf.h: Likewise.
23800         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
23801
23802 2010-01-18  Bruno Haible  <bruno@clisp.org>
23803
23804         Tests for module 'tanl'.
23805         * modules/tanl-tests: New file.
23806         * tests/test-tanl.c: New file.
23807
23808         Tests for module 'sqrtl'.
23809         * modules/sqrtl-tests: New file.
23810         * tests/test-sqrtl.c: New file.
23811
23812         Tests for module 'sinl'.
23813         * modules/sinl-tests: New file.
23814         * tests/test-sinl.c: New file.
23815
23816         Tests for module 'logl'.
23817         * modules/logl-tests: New file.
23818         * tests/test-logl.c: New file.
23819
23820         Tests for module 'expl'.
23821         * modules/expl-tests: New file.
23822         * tests/test-expl.c: New file.
23823
23824         Tests for module 'cosl'.
23825         * modules/cosl-tests: New file.
23826         * tests/test-cosl.c: New file.
23827
23828         Tests for module 'atanl'.
23829         * modules/atanl-tests: New file.
23830         * tests/test-atanl.c: New file.
23831
23832         Tests for module 'asinl'.
23833         * modules/asinl-tests: New file.
23834         * tests/test-asinl.c: New file.
23835
23836         Tests for module 'acosl'.
23837         * modules/acosl-tests: New file.
23838         * tests/test-acosl.c: New file.
23839
23840         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
23841         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
23842         tanl): Use the standard gnulib idiom.
23843         * lib/cosl.c: Don't include trigl.c and sincosl.c.
23844         * lib/sinl.c: Likewise.
23845         * lib/tanl.c: Don't include trigl.c.
23846         (kernel_tanl): Make static.
23847         * lib/sincosl.c: Include trigl.h first.
23848         * lib/trigl.c: Likewise.
23849         * m4/acosl.m4: New file.
23850         * m4/asinl.m4: New file.
23851         * m4/atanl.m4: New file.
23852         * m4/cosl.m4: New file.
23853         * m4/expl.m4: New file.
23854         * m4/logl.m4: New file.
23855         * m4/sinl.m4: New file.
23856         * m4/sqrtl.m4: New file.
23857         * m4/tanl.m4: New file.
23858         * m4/mathl.m4: Remove file.
23859         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
23860         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
23861         Don't initialize GNULIB_MATHL.
23862         * modules/acosl: New file.
23863         * modules/asinl: New file.
23864         * modules/atanl: New file.
23865         * modules/cosl: New file.
23866         * modules/expl: New file.
23867         * modules/logl: New file.
23868         * modules/sinl: New file.
23869         * modules/sqrtl: New file.
23870         * modules/tanl: New file.
23871         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
23872         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
23873         substitute GNULIB_MATHL.
23874         * modules/mathl: Rewritten.
23875         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
23876         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
23877         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
23878         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
23879         * doc/posix-functions/expl.texi: Mention the 'expl' module.
23880         * doc/posix-functions/logl.texi: Mention the 'logl' module.
23881         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
23882         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
23883         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
23884
23885 2010-01-18  Bruno Haible  <bruno@clisp.org>
23886
23887         sqrt: Make gl_FUNC_SQRT requirable.
23888         * m4/sqrt.m4: New file.
23889         * modules/sqrt (Files): Add it.
23890         (configure.ac): Invoke gl_FUNC_SQRT.
23891
23892 2010-01-18  Bruno Haible  <bruno@clisp.org>
23893
23894         New modules for common <math.h> functions.
23895         * m4/mathfunc.m4: New file.
23896         * modules/acos: New file.
23897         * modules/asin: New file.
23898         * modules/atan: New file.
23899         * modules/atan2: New file.
23900         * modules/cbrt: New file.
23901         * modules/copysign: New file.
23902         * modules/cos: New file.
23903         * modules/cosh: New file.
23904         * modules/erf: New file.
23905         * modules/erfc: New file.
23906         * modules/exp: New file.
23907         * modules/fabs: New file.
23908         * modules/fmod: New file.
23909         * modules/hypot: New file.
23910         * modules/j0: New file.
23911         * modules/j1: New file.
23912         * modules/jn: New file.
23913         * modules/ldexp: New file.
23914         * modules/lgamma: New file.
23915         * modules/log: New file.
23916         * modules/log10: New file.
23917         * modules/log1p: New file.
23918         * modules/logb: New file.
23919         * modules/modf: New file.
23920         * modules/nextafter: New file.
23921         * modules/pow: New file.
23922         * modules/remainder: New file.
23923         * modules/rint: New file.
23924         * modules/sin: New file.
23925         * modules/sinh: New file.
23926         * modules/sqrt: New file.
23927         * modules/tan: New file.
23928         * modules/tanh: New file.
23929         * modules/y0: New file.
23930         * modules/y1: New file.
23931         * modules/yn: New file.
23932         * doc/posix-functions/acos.texi: Mention the 'acos' module.
23933         * doc/posix-functions/asin.texi: Mention the 'asin' module.
23934         * doc/posix-functions/atan.texi: Mention the 'atan' module.
23935         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
23936         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
23937         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
23938         * doc/posix-functions/cos.texi: Mention the 'cos' module.
23939         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
23940         * doc/posix-functions/erf.texi: Mention the 'erf' module.
23941         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
23942         * doc/posix-functions/exp.texi: Mention the 'exp' module.
23943         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
23944         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
23945         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
23946         * doc/posix-functions/j0.texi: Mention the 'j0' module.
23947         * doc/posix-functions/j1.texi: Mention the 'j1' module.
23948         * doc/posix-functions/jn.texi: Mention the 'jn' module.
23949         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
23950         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
23951         * doc/posix-functions/log.texi: Mention the 'log' module.
23952         * doc/posix-functions/log10.texi: Mention the 'log10' module.
23953         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
23954         * doc/posix-functions/logb.texi: Mention the 'logb' module.
23955         * doc/posix-functions/modf.texi: Mention the 'modf' module.
23956         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
23957         * doc/posix-functions/pow.texi: Mention the 'pow' module.
23958         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
23959         * doc/posix-functions/rint.texi: Mention the 'rint' module.
23960         * doc/posix-functions/sin.texi: Mention the 'sin' module.
23961         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
23962         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
23963         * doc/posix-functions/tan.texi: Mention the 'tan' module.
23964         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
23965         * doc/posix-functions/y0.texi: Mention the 'y0' module.
23966         * doc/posix-functions/y1.texi: Mention the 'y1' module.
23967         * doc/posix-functions/yn.texi: Mention the 'yn' module.
23968
23969 2010-01-18  Jim Meyering  <meyering@redhat.com>
23970
23971         ignore-value: relax license to LGPLv2+
23972         * modules/ignore-value (License): Relax to LGPLv2+.
23973
23974         getdate: don't leak when TZ contains two or more '"'s
23975         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
23976         double quote in TZ after the first one.
23977
23978         readtokens: do not leak internal token_lengths buffer
23979         * lib/readtokens.c (readtokens): Free the local, lengths,
23980         when the supplied "token_lengths" parameter is NULL.
23981
23982 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23983
23984         Fix a couple of missing LIBTHREAD link failures on AIX.
23985         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
23986         $(LIBTHREAD).
23987         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
23988
23989         Link test-poll against INET_PTON_LIB.
23990         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
23991         for inet_pton on Solaris 10.
23992
23993 2010-01-17  Bruno Haible  <bruno@clisp.org>
23994
23995         unistdio/*-sprintf: Fix typo in module description.
23996         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
23997         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
23998         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
23999         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
24000         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
24001         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
24002         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
24003         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24004
24005 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24006
24007         gnulib-tool: fix filelist for AIX, HP-UX ksh.
24008         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
24009         variables in shell case patterns, for AIX and HP-UX ksh.
24010
24011         Split large sed scripts, for HP-UX sed.
24012         * modules/stdio: Split sed scripts around 50 sed commands,
24013         to avoid HP-UX limit of 99 commands, in the near future.
24014         * modules/string: Likewise.
24015         * modules/unistd: Likewise.
24016
24017         gnulib-tool: avoid writing in the current directory.
24018         * gnulib-tool (func_emit_lib_Makefile_am)
24019         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
24020         not in the current directory, so concurrent gnulib-tool
24021         instances do not interfere.
24022
24023 2010-01-16  Jim Meyering  <meyering@redhat.com>
24024
24025         doc: update users.txt
24026         * users.txt: Add grep.
24027         (diffutils, gzip): Update URLs.
24028
24029 2010-01-12  Bruno Haible  <bruno@clisp.org>
24030
24031         posix_spawn: Avoid test failure on Cygwin.
24032         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
24033         characters.
24034         Reported by Simon Josefsson.
24035
24036 2010-01-12  Bruno Haible  <bruno@clisp.org>
24037
24038         * tests/test-cond.c (main): When skipping the test, show the reason.
24039
24040 2010-01-12  Simon Josefsson  <simon@josefsson.org>
24041
24042         * lib/striconv.c (str_cd_iconv): Avoid if before free.
24043
24044 2010-01-12  Simon Josefsson  <simon@josefsson.org>
24045
24046         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
24047         VC_LIST_ALWAYS_EXCLUDE_REGEX.
24048
24049 2010-01-12  Eric Blake  <ebb9@byu.net>
24050
24051         build: guarantee AS_VAR_IF
24052         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
24053         (gl_AS_VAR_IF): Move...
24054         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
24055         Reported by Simon Josefsson.
24056
24057 2010-01-12  Simon Josefsson  <simon@josefsson.org>
24058
24059         * lib/stdio.in.h: Fix typo.
24060
24061 2010-01-12  Simon Josefsson  <simon@josefsson.org>
24062
24063         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
24064         libgpg-error.
24065
24066 2010-01-12  Simon Josefsson  <simon@josefsson.org>
24067
24068         * tests/test-xalloc-die.sh: Use $EXEEXT.
24069
24070 2010-01-12  Simon Josefsson  <simon@josefsson.org>
24071             Bruno Haible  <bruno@clisp.org>
24072
24073         getlogin, getlogin_r: Avoid test failure.
24074         * tests/test-getlogin.c: Include <stdio.h>.
24075         (main): Skip the test when the function fails because stdin is not a
24076         tty.
24077         * tests/test-getlogin_r.c: Include <stdio.h>.
24078         (main): Skip the test when the function fails because stdin is not a
24079         tty.
24080
24081 2010-01-11  Eric Blake  <ebb9@byu.net>
24082
24083         tests: avoid more large file warnings
24084         * tests/test-fflush.c: Avoid warning about ftell use.
24085         * tests/test-fseek.c: Avoid warning about fseek use.
24086
24087 2010-01-10  Bruno Haible  <bruno@clisp.org>
24088
24089         nproc: Work better on Linux when /proc and /sys are not mounted.
24090         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
24091         as lower bound when, on glibc/Linux systems,
24092         sysconf (_SC_NPROCESSORS_CONF) returns 1.
24093         Suggested by Pádraig Brady <P@draigbrady.com>.
24094         Reported by Dmitry V. Levin <ldv@altlinux.org>.
24095
24096         nproc: Refactor.
24097         * lib/nproc.c (num_processors_via_affinity_mask): New function,
24098         extracted from num_processors.
24099         (num_processors): Call it.
24100
24101 2010-01-11  Jim Meyering  <meyering@redhat.com>
24102
24103         utimecmp: avoid new warning from upcoming gcc-4.5.0
24104         * lib/utimecmp.c (BILLION): Define using #define rather than an
24105         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
24106
24107 2010-01-11  Eric Blake  <ebb9@byu.net>
24108
24109         math: add portability warnings for classification macros
24110         * modules/math (Depends-on): Add warn-on-use.
24111         (Makefile.am): Provide new substitutions.
24112         * m4/math_h.m4 (gl_MATH_H): Require inline.
24113         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
24114         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
24115         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
24116         implement warnings.
24117
24118         unistd: warn on use of environ without module
24119         * modules/unistd (Depends-on): Add warn-on-use.
24120         (Makefile.am): Provide new substitutions.
24121         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
24122         * lib/unistd.in.h (environ): Wrap with a warning helper function.
24123
24124         stdio: warn on suspicious uses
24125         * modules/stdio (Depends-on): Add warn-on-use.
24126         (Makefile.am): Provide new substitutions.
24127         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
24128         fseeko.
24129         * lib/stdio.in.h (gets): Always warn on use.
24130         (fseek, ftell): Adjust when warnings are issued, and honor
24131         _GL_NO_LARGE_FILES as a way to silence the warning.
24132         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
24133         any warning about large file offsets.
24134         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
24135         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
24136         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
24137         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
24138         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
24139         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
24140         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
24141         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
24142
24143         warn-on-use: new module
24144         * modules/warn-on-use: New file.
24145         * build-aux/warn-on-use.h: Likewise.
24146         * m4/warn-on-use.m4: Likewise.
24147         * MODULES.html.sh (Support for building): Mention it.
24148
24149 2010-01-10  Bruno Haible  <bruno@clisp.org>
24150
24151         Tests for module 'unistr/u32-strdup'.
24152         * modules/unistr/u32-strdup-tests: New file.
24153         * tests/unistr/test-u32-strdup.c: New file.
24154
24155         Tests for module 'unistr/u16-strdup'.
24156         * modules/unistr/u16-strdup-tests: New file.
24157         * tests/unistr/test-u16-strdup.c: New file.
24158
24159         Tests for module 'unistr/u8-strdup'.
24160         * modules/unistr/u8-strdup-tests: New file.
24161         * tests/unistr/test-u8-strdup.c: New file.
24162         * tests/unistr/test-strdup.h: New file.
24163
24164         Tests for module 'unistr/u32-strncmp'.
24165         * modules/unistr/u32-strncmp-tests: New file.
24166         * tests/unistr/test-u32-strncmp.c: New file.
24167
24168         Tests for module 'unistr/u16-strncmp'.
24169         * modules/unistr/u16-strncmp-tests: New file.
24170         * tests/unistr/test-u16-strncmp.c: New file.
24171
24172         Tests for module 'unistr/u8-strncmp'.
24173         * modules/unistr/u8-strncmp-tests: New file.
24174         * tests/unistr/test-u8-strncmp.c: New file.
24175         * tests/unistr/test-strncmp.h: New file.
24176
24177         Tests for module 'unistr/u32-strcoll'.
24178         * modules/unistr/u32-strcoll-tests: New file.
24179         * tests/unistr/test-u32-strcoll.c: New file.
24180
24181         Tests for module 'unistr/u16-strcoll'.
24182         * modules/unistr/u16-strcoll-tests: New file.
24183         * tests/unistr/test-u16-strcoll.c: New file.
24184
24185         Tests for module 'unistr/u8-strcoll'.
24186         * modules/unistr/u8-strcoll-tests: New file.
24187         * tests/unistr/test-u8-strcoll.c: New file.
24188
24189         Tests for module 'unistr/u32-strcmp'.
24190         * modules/unistr/u32-strcmp-tests: New file.
24191         * tests/unistr/test-u32-strcmp.c: New file.
24192         * tests/unistr/test-u32-strcmp.h: New file.
24193
24194         Tests for module 'unistr/u16-strcmp'.
24195         * modules/unistr/u16-strcmp-tests: New file.
24196         * tests/unistr/test-u16-strcmp.c: New file.
24197         * tests/unistr/test-u16-strcmp.h: New file.
24198
24199         Tests for module 'unistr/u8-strcmp'.
24200         * modules/unistr/u8-strcmp-tests: New file.
24201         * tests/unistr/test-u8-strcmp.c: New file.
24202         * tests/unistr/test-u8-strcmp.h: New file.
24203         * tests/unistr/test-strcmp.h: New file.
24204
24205         Tests for module 'unistr/u32-strncat'.
24206         * modules/unistr/u32-strncat-tests: New file.
24207         * tests/unistr/test-u32-strncat.c: New file.
24208
24209         Tests for module 'unistr/u16-strncat'.
24210         * modules/unistr/u16-strncat-tests: New file.
24211         * tests/unistr/test-u16-strncat.c: New file.
24212
24213         Tests for module 'unistr/u8-strncat'.
24214         * modules/unistr/u8-strncat-tests: New file.
24215         * tests/unistr/test-u8-strncat.c: New file.
24216         * tests/unistr/test-strncat.h: New file.
24217
24218         Tests for module 'unistr/u32-strcat'.
24219         * modules/unistr/u32-strcat-tests: New file.
24220         * tests/unistr/test-u32-strcat.c: New file.
24221
24222         Tests for module 'unistr/u16-strcat'.
24223         * modules/unistr/u16-strcat-tests: New file.
24224         * tests/unistr/test-u16-strcat.c: New file.
24225
24226         Tests for module 'unistr/u8-strcat'.
24227         * modules/unistr/u8-strcat-tests: New file.
24228         * tests/unistr/test-u8-strcat.c: New file.
24229         * tests/unistr/test-strcat.h: New file.
24230
24231         Tests for module 'unistr/u32-stpncpy'.
24232         * modules/unistr/u32-stpncpy-tests: New file.
24233         * tests/unistr/test-u32-stpncpy.c: New file.
24234
24235         Tests for module 'unistr/u16-stpncpy'.
24236         * modules/unistr/u16-stpncpy-tests: New file.
24237         * tests/unistr/test-u16-stpncpy.c: New file.
24238
24239         Tests for module 'unistr/u8-stpncpy'.
24240         * modules/unistr/u8-stpncpy-tests: New file.
24241         * tests/unistr/test-u8-stpncpy.c: New file.
24242         * tests/unistr/test-stpncpy.h: New file.
24243
24244         Tests for module 'unistr/u32-strncpy'.
24245         * modules/unistr/u32-strncpy-tests: New file.
24246         * tests/unistr/test-u32-strncpy.c: New file.
24247
24248         Tests for module 'unistr/u16-strncpy'.
24249         * modules/unistr/u16-strncpy-tests: New file.
24250         * tests/unistr/test-u16-strncpy.c: New file.
24251
24252         Tests for module 'unistr/u8-strncpy'.
24253         * modules/unistr/u8-strncpy-tests: New file.
24254         * tests/unistr/test-u8-strncpy.c: New file.
24255         * tests/unistr/test-strncpy.h: New file.
24256
24257         Tests for module 'unistr/u32-stpcpy'.
24258         * modules/unistr/u32-stpcpy-tests: New file.
24259         * tests/unistr/test-u32-stpcpy.c: New file.
24260
24261         Tests for module 'unistr/u16-stpcpy'.
24262         * modules/unistr/u16-stpcpy-tests: New file.
24263         * tests/unistr/test-u16-stpcpy.c: New file.
24264
24265         Tests for module 'unistr/u8-stpcpy'.
24266         * modules/unistr/u8-stpcpy-tests: New file.
24267         * tests/unistr/test-u8-stpcpy.c: New file.
24268         * tests/unistr/test-stpcpy.h: New file.
24269
24270         Tests for module 'unistr/u32-strcpy'.
24271         * modules/unistr/u32-strcpy-tests: New file.
24272         * tests/unistr/test-u32-strcpy.c: New file.
24273
24274         Tests for module 'unistr/u16-strcpy'.
24275         * modules/unistr/u16-strcpy-tests: New file.
24276         * tests/unistr/test-u16-strcpy.c: New file.
24277
24278         Tests for module 'unistr/u8-strcpy'.
24279         * modules/unistr/u8-strcpy-tests: New file.
24280         * tests/unistr/test-u8-strcpy.c: New file.
24281         * tests/unistr/test-strcpy.h: New file.
24282
24283         Tests for module 'unistr/u32-strnlen'.
24284         * modules/unistr/u32-strnlen-tests: New file.
24285         * tests/unistr/test-u32-strnlen.c: New file.
24286
24287         Tests for module 'unistr/u16-strnlen'.
24288         * modules/unistr/u16-strnlen-tests: New file.
24289         * tests/unistr/test-u16-strnlen.c: New file.
24290
24291         Tests for module 'unistr/u8-strnlen'.
24292         * modules/unistr/u8-strnlen-tests: New file.
24293         * tests/unistr/test-u8-strnlen.c: New file.
24294         * tests/unistr/test-strnlen.h: New file.
24295
24296         Tests for module 'unistr/u32-strlen'.
24297         * modules/unistr/u32-strlen-tests: New file.
24298         * tests/unistr/test-u32-strlen.c: New file.
24299
24300         Tests for module 'unistr/u16-strlen'.
24301         * modules/unistr/u16-strlen-tests: New file.
24302         * tests/unistr/test-u16-strlen.c: New file.
24303
24304         Tests for module 'unistr/u8-strlen'.
24305         * modules/unistr/u8-strlen-tests: New file.
24306         * tests/unistr/test-u8-strlen.c: New file.
24307
24308         Tests for module 'unistr/u32-prev'.
24309         * modules/unistr/u32-prev-tests: New file.
24310         * tests/unistr/test-u32-prev.c: New file.
24311
24312         Tests for module 'unistr/u16-prev'.
24313         * modules/unistr/u16-prev-tests: New file.
24314         * tests/unistr/test-u16-prev.c: New file.
24315
24316         Tests for module 'unistr/u8-prev'.
24317         * modules/unistr/u8-prev-tests: New file.
24318         * tests/unistr/test-u8-prev.c: New file.
24319
24320         Tests for module 'unistr/u32-next'.
24321         * modules/unistr/u32-next-tests: New file.
24322         * tests/unistr/test-u32-next.c: New file.
24323
24324         Tests for module 'unistr/u16-next'.
24325         * modules/unistr/u16-next-tests: New file.
24326         * tests/unistr/test-u16-next.c: New file.
24327
24328         Tests for module 'unistr/u8-next'.
24329         * modules/unistr/u8-next-tests: New file.
24330         * tests/unistr/test-u8-next.c: New file.
24331
24332         Tests for module 'unistr/u32-strmbtouc'.
24333         * modules/unistr/u32-strmbtouc-tests: New file.
24334         * tests/unistr/test-u32-strmbtouc.c: New file.
24335
24336         Tests for module 'unistr/u16-strmbtouc'.
24337         * modules/unistr/u16-strmbtouc-tests: New file.
24338         * tests/unistr/test-u16-strmbtouc.c: New file.
24339
24340         Tests for module 'unistr/u8-strmbtouc'.
24341         * modules/unistr/u8-strmbtouc-tests: New file.
24342         * tests/unistr/test-u8-strmbtouc.c: New file.
24343
24344         Tests for module 'unistr/u32-strmblen'.
24345         * modules/unistr/u32-strmblen-tests: New file.
24346         * tests/unistr/test-u32-strmblen.c: New file.
24347
24348         Tests for module 'unistr/u16-strmblen'.
24349         * modules/unistr/u16-strmblen-tests: New file.
24350         * tests/unistr/test-u16-strmblen.c: New file.
24351
24352         Tests for module 'unistr/u8-strmblen'.
24353         * modules/unistr/u8-strmblen-tests: New file.
24354         * tests/unistr/test-u8-strmblen.c: New file.
24355
24356         Tests for module 'unistr/u32-cpy-alloc'.
24357         * modules/unistr/u32-cpy-alloc-tests: New file.
24358         * tests/unistr/test-u32-cpy-alloc.c: New file.
24359
24360         Tests for module 'unistr/u16-cpy-alloc'.
24361         * modules/unistr/u16-cpy-alloc-tests: New file.
24362         * tests/unistr/test-u16-cpy-alloc.c: New file.
24363
24364         Tests for module 'unistr/u8-cpy-alloc'.
24365         * modules/unistr/u8-cpy-alloc-tests: New file.
24366         * tests/unistr/test-u8-cpy-alloc.c: New file.
24367         * tests/unistr/test-cpy-alloc.h: New file.
24368
24369         Tests for module 'unistr/u32-mbsnlen'.
24370         * modules/unistr/u32-mbsnlen-tests: New file.
24371         * tests/unistr/test-u32-mbsnlen.c: New file.
24372
24373         Tests for module 'unistr/u16-mbsnlen'.
24374         * modules/unistr/u16-mbsnlen-tests: New file.
24375         * tests/unistr/test-u16-mbsnlen.c: New file.
24376
24377         Tests for module 'unistr/u8-mbsnlen'.
24378         * modules/unistr/u8-mbsnlen-tests: New file.
24379         * tests/unistr/test-u8-mbsnlen.c: New file.
24380
24381         Tests for module 'unistr/u32-chr'.
24382         * modules/unistr/u32-chr-tests: New file.
24383         * tests/unistr/test-u32-chr.c: New file.
24384
24385         Tests for module 'unistr/u16-chr'.
24386         * modules/unistr/u16-chr-tests: New file.
24387         * tests/unistr/test-u16-chr.c: New file.
24388
24389         Tests for module 'unistr/u8-chr'.
24390         * modules/unistr/u8-chr-tests: New file.
24391         * tests/unistr/test-u8-chr.c: New file.
24392         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
24393
24394         Tests for module 'unistr/u32-cmp2'.
24395         * modules/unistr/u32-cmp2-tests: New file.
24396         * tests/unistr/test-u32-cmp2.c: New file.
24397
24398         Tests for module 'unistr/u16-cmp2'.
24399         * modules/unistr/u16-cmp2-tests: New file.
24400         * tests/unistr/test-u16-cmp2.c: New file.
24401
24402         Tests for module 'unistr/u8-cmp2'.
24403         * modules/unistr/u8-cmp2-tests: New file.
24404         * tests/unistr/test-u8-cmp2.c: New file.
24405         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
24406
24407         Tests for module 'unistr/u32-cmp'.
24408         * modules/unistr/u32-cmp-tests: New file.
24409         * tests/unistr/test-u32-cmp.c: New file.
24410
24411         Tests for module 'unistr/u16-cmp'.
24412         * modules/unistr/u16-cmp-tests: New file.
24413         * tests/unistr/test-u16-cmp.c: New file.
24414
24415         Tests for module 'unistr/u8-cmp'.
24416         * modules/unistr/u8-cmp-tests: New file.
24417         * tests/unistr/test-u8-cmp.c: New file.
24418         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
24419
24420         Tests for module 'unistr/u32-set'.
24421         * modules/unistr/u32-set-tests: New file.
24422         * tests/unistr/test-u32-set.c: New file.
24423
24424         Tests for module 'unistr/u16-set'.
24425         * modules/unistr/u16-set-tests: New file.
24426         * tests/unistr/test-u16-set.c: New file.
24427
24428         Tests for module 'unistr/u8-set'.
24429         * modules/unistr/u8-set-tests: New file.
24430         * tests/unistr/test-u8-set.c: New file.
24431         * tests/unistr/test-set.h: New file.
24432
24433         Tests for module 'unistr/u32-move'.
24434         * modules/unistr/u32-move-tests: New file.
24435         * tests/unistr/test-u32-move.c: New file.
24436
24437         Tests for module 'unistr/u16-move'.
24438         * modules/unistr/u16-move-tests: New file.
24439         * tests/unistr/test-u16-move.c: New file.
24440
24441         Tests for module 'unistr/u8-move'.
24442         * modules/unistr/u8-move-tests: New file.
24443         * tests/unistr/test-u8-move.c: New file.
24444         * tests/unistr/test-move.h: New file.
24445
24446         Tests for module 'unistr/u32-cpy'.
24447         * modules/unistr/u32-cpy-tests: New file.
24448         * tests/unistr/test-u32-cpy.c: New file.
24449
24450         Tests for module 'unistr/u16-cpy'.
24451         * modules/unistr/u16-cpy-tests: New file.
24452         * tests/unistr/test-u16-cpy.c: New file.
24453
24454         Tests for module 'unistr/u8-cpy'.
24455         * modules/unistr/u8-cpy-tests: New file.
24456         * tests/unistr/test-u8-cpy.c: New file.
24457         * tests/unistr/test-cpy.h: New file.
24458
24459 2010-01-09  Bruno Haible  <bruno@clisp.org>
24460
24461         Tests for module 'unistr/u32-uctomb'.
24462         * modules/unistr/u32-uctomb-tests: New file.
24463         * tests/unistr/test-u32-uctomb.c: New file.
24464
24465         Tests for module 'unistr/u16-uctomb'.
24466         * modules/unistr/u16-uctomb-tests: New file.
24467         * tests/unistr/test-u16-uctomb.c: New file.
24468
24469         Tests for module 'unistr/u8-uctomb'.
24470         * modules/unistr/u8-uctomb-tests: New file.
24471         * tests/unistr/test-u8-uctomb.c: New file.
24472
24473         Tests for module 'unistr/u32-mbtoucr'.
24474         * modules/unistr/u32-mbtoucr-tests: New file.
24475         * tests/unistr/test-u32-mbtoucr.c: New file.
24476
24477         Tests for module 'unistr/u16-mbtoucr'.
24478         * modules/unistr/u16-mbtoucr-tests: New file.
24479         * tests/unistr/test-u16-mbtoucr.c: New file.
24480
24481         Tests for module 'unistr/u8-mbtoucr'.
24482         * modules/unistr/u8-mbtoucr-tests: New file.
24483         * tests/unistr/test-u8-mbtoucr.c: New file.
24484
24485         Tests for module 'unistr/u32-mbtouc'.
24486         * modules/unistr/u32-mbtouc-tests: New file.
24487         * tests/unistr/test-u32-mbtouc.c: New file.
24488
24489         Tests for module 'unistr/u16-mbtouc'.
24490         * modules/unistr/u16-mbtouc-tests: New file.
24491         * tests/unistr/test-u16-mbtouc.c: New file.
24492
24493         Tests for module 'unistr/u8-mbtouc'.
24494         * modules/unistr/u8-mbtouc-tests: New file.
24495         * tests/unistr/test-u8-mbtouc.c: New file.
24496
24497         Tests for module 'unistr/u32-mbtouc-unsafe'.
24498         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
24499         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
24500         * tests/unistr/test-u32-mbtouc.h: New file.
24501
24502         Tests for module 'unistr/u16-mbtouc-unsafe'.
24503         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
24504         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
24505         * tests/unistr/test-u16-mbtouc.h: New file.
24506
24507         Tests for module 'unistr/u8-mbtouc-unsafe'.
24508         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
24509         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
24510         * tests/unistr/test-u8-mbtouc.h: New file.
24511
24512         Tests for module 'unistr/u32-mblen'.
24513         * modules/unistr/u32-mblen-tests: New file.
24514         * tests/unistr/test-u32-mblen.c: New file.
24515
24516         Tests for module 'unistr/u16-mblen'.
24517         * modules/unistr/u16-mblen-tests: New file.
24518         * tests/unistr/test-u16-mblen.c: New file.
24519
24520         Tests for module 'unistr/u8-mblen'.
24521         * modules/unistr/u8-mblen-tests: New file.
24522         * tests/unistr/test-u8-mblen.c: New file.
24523
24524         Tests for module 'unistr/u32-to-u16'.
24525         * modules/unistr/u32-to-u16-tests: New file.
24526         * tests/unistr/test-u32-to-u16.c: New file.
24527
24528         Tests for module 'unistr/u32-to-u8'.
24529         * modules/unistr/u32-to-u8-tests: New file.
24530         * tests/unistr/test-u32-to-u8.c: New file.
24531
24532         Tests for module 'unistr/u16-to-u32'.
24533         * modules/unistr/u16-to-u32-tests: New file.
24534         * tests/unistr/test-u16-to-u32.c: New file.
24535
24536         Tests for module 'unistr/u16-to-u8'.
24537         * modules/unistr/u16-to-u8-tests: New file.
24538         * tests/unistr/test-u16-to-u8.c: New file.
24539
24540         Tests for module 'unistr/u8-to-u32'.
24541         * modules/unistr/u8-to-u32-tests: New file.
24542         * tests/unistr/test-u8-to-u32.c: New file.
24543
24544         Tests for module 'unistr/u8-to-u16'.
24545         * modules/unistr/u8-to-u16-tests: New file.
24546         * tests/unistr/test-u8-to-u16.c: New file.
24547
24548         Tests for module 'unistr/u32-check'.
24549         * modules/unistr/u32-check-tests: New file.
24550         * tests/unistr/test-u32-check.c: New file.
24551
24552         Tests for module 'unistr/u16-check'.
24553         * modules/unistr/u16-check-tests: New file.
24554         * tests/unistr/test-u16-check.c: New file.
24555
24556         Tests for module 'unistr/u8-check'.
24557         * modules/unistr/u8-check-tests: New file.
24558         * tests/unistr/test-u8-check.c: New file.
24559
24560         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
24561         (category_equals): New function.
24562         (main): Add more tests.
24563         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
24564
24565         * tests/unictype/test-bidi_byname.c (main): Add more tests.
24566
24567 2010-01-10  Bruno Haible  <bruno@clisp.org>
24568
24569         unistr/u*-strcoll: Try harder to distinguish different strings.
24570         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
24571         compare s1 and s2 to see if they are different.
24572
24573 2010-01-10  Bruno Haible  <bruno@clisp.org>
24574
24575         unistr/u*-stpncpy: Fix the return value.
24576         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
24577         description of the return value consistent with stpncpy in glibc.
24578         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
24579         written non-NUL unit.
24580
24581 2010-01-10  Bruno Haible  <bruno@clisp.org>
24582
24583         unistr/u*-next: Add missing dependencies.
24584         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
24585         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
24586         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
24587
24588 2010-01-10  Bruno Haible  <bruno@clisp.org>
24589
24590         unistr/u8-mbsnlen: Fix return value for incomplete character.
24591         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
24592         u8_mblen.
24593         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
24594         Remove unistr/u8-mblen.
24595         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
24596         u16_mblen.
24597         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
24598         Remove unistr/u16-mblen.
24599
24600 2010-01-10  Bruno Haible  <bruno@clisp.org>
24601
24602         wchar: Fix compilation error when <wchar.h> is used from coreutils.
24603         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
24604         Reported by Brian Gough <bjg@gnu.org> and
24605         Chris Clayton <chris2553@googlemail.com> via
24606         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
24607
24608 2010-01-09  Bruno Haible  <bruno@clisp.org>
24609
24610         unistr/u16-to-u32: Reject invalid input.
24611         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
24612         u16_mbtouc.
24613         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
24614         Remove unistr/u16-mbtouc.
24615
24616         unistr/u16-to-u8: Reject invalid input.
24617         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
24618         u16_mbtouc.
24619         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
24620         Remove unistr/u16-mbtouc.
24621
24622         unistr/u8-to-u32: Reject invalid input.
24623         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
24624         u8_mbtouc.
24625         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
24626         Remove unistr/u8-mbtouc.
24627
24628         unistr/u8-to-u16: Reject invalid input.
24629         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
24630         u8_mbtouc.
24631         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
24632         Remove unistr/u8-mbtouc.
24633
24634 2010-01-09  Bruno Haible  <bruno@clisp.org>
24635
24636         Tests for module 'getlogin'.
24637         * modules/getlogin-tests: New file.
24638         * tests/test-getlogin.c: New file.
24639
24640         New module 'getlogin'.
24641         * lib/unistd.in.h (getlogin): New declaration.
24642         * lib/getlogin.c: New file.
24643         * m4/getlogin.m4: New file.
24644         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
24645         HAVE_GETLOGIN.
24646         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
24647         HAVE_GETLOGIN.
24648         * modules/getlogin: New file.
24649         * doc/posix-functions/getlogin.texi: Mention the new module.
24650         Reported by John W. Eaton <jwe@gnu.org>.
24651
24652 2010-01-09  Bruno Haible  <bruno@clisp.org>
24653
24654         getlogin_r: Support for native Windows.
24655         * lib/getlogin_r.c: Include <windows.h>
24656         (getlogin_r): Implement for native Windows.
24657         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
24658         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
24659         via John W. Eaton <jwe@gnu.org>.
24660
24661 2010-01-09  Bruno Haible  <bruno@clisp.org>
24662
24663         getlogin_r: Small fixes.
24664         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
24665         succeeds.
24666         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
24667         before testing whether getlogin_r is declared. No need to set
24668         HAVE_DECL_GETLOGIN_R to 1.
24669         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
24670
24671 2010-01-09  Bruno Haible  <bruno@clisp.org>
24672
24673         * lib/unistd.in.h (getlogin_r): Add comment.
24674
24675 2010-01-09  Bruno Haible  <bruno@clisp.org>
24676
24677         Tests for module 'getlogin_r'.
24678         * modules/getlogin_r-tests: New file.
24679         * tests/test-getlogin_r.c: New file.
24680
24681 2010-01-09  Jim Meyering  <meyering@redhat.com>
24682
24683         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
24684         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
24685         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
24686
24687 2010-01-08  Simon Josefsson  <simon@josefsson.org>
24688
24689         * lib/dup2.c (rpl_dup2): Improve comment.
24690
24691 2010-01-08  Eric Blake  <ebb9@byu.net>
24692
24693         maint.mk: allow packages to add makefile @@ exceptions
24694         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
24695         (sc_makefile_check): Rename...
24696         (sc_makefile_at_at_check): ...to this, and use hook.
24697
24698         dup2: work around mingw bug
24699         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
24700         Reported by Simon Josefsson.
24701
24702 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
24703
24704         glob: Fix C++ compilation.
24705         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
24706         C++.
24707
24708 2010-01-07  Bruno Haible  <bruno@clisp.org>
24709
24710         Fix indentation of wctype.in.h, broken since 2007-01-06.
24711         * lib/wctype.in.h: Fix indentation of preprocessor directives.
24712
24713 2010-01-07  Bruno Haible  <bruno@clisp.org>
24714
24715         mbslen: Avoid collision with system function.
24716         * lib/string.in.h [MirBSD]: Include <wchar.h>.
24717         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
24718         * m4/mbslen.m4: New file.
24719         * modules/mbslen (Files): Add it.
24720         (configure.ac): Invoke gl_MBSLEN.
24721         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
24722         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
24723         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
24724         via Ian Beckwith <ianb@erislabs.net>.
24725
24726 2010-01-07  Bruno Haible  <bruno@clisp.org>
24727
24728         dirent: Document the last fix.
24729         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
24730
24731 2010-01-07  Bruno Haible  <bruno@clisp.org>
24732
24733         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
24734         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
24735         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
24736         va_list are defined.
24737         * doc/posix-headers/stdio.texi: Document the bug of missing types.
24738         Reported by Eric Blake.
24739
24740 2010-01-07  Bruno Haible  <bruno@clisp.org>
24741
24742         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
24743         * modules/xlist (Depends-on): Add 'list',
24744         * modules/xoset (Depends-on): Add 'oset'.
24745         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24746
24747 2010-01-07  Bruno Haible  <bruno@clisp.org>
24748
24749         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
24750         * doc/posix-functions/strncasecmp.texi: Likewise.
24751
24752 2010-01-07  Bruno Haible  <bruno@clisp.org>
24753
24754         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
24755
24756 2010-01-07  John W. Eaton  <jwe@octave.org>
24757
24758         wctype: allow C++ use
24759         * lib/wctype.in.h: Add extern "C" block for C++.
24760
24761 2010-01-06  Eric Blake  <ebb9@byu.net>
24762
24763         maint.mk: detect incorrect GFDL usage
24764         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
24765
24766 2010-01-06  Jim Meyering  <meyering@redhat.com>
24767         and Eric Blake  <ebb9@byu.net>
24768
24769         maint.mk: ignore multi-line copyright in NEWS
24770         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
24771
24772 2010-01-06  Eric Blake  <ebb9@byu.net>
24773
24774         select: add missing dependency
24775         * modules/select-tests (Depends-on): Move sockets dependency...
24776         * modules/select (Depends-on): ...here.
24777         Reported by Ian Beckwith.
24778
24779         doc: regenerate INSTALL
24780         * doc/INSTALL: Reflect recent autoconf update.
24781         * doc/INSTALL.ISO: Likewise.
24782         * doc/INSTALL.UTF-8: Likewise.
24783
24784         pread: fix compilation on glibc
24785         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
24786         Reported by Ralf Wildenhues.
24787
24788         dirent: fix test failure
24789         * lib/dirent.in.h (includes): Guarantee ino_t.
24790         Reported by Ralf Wildenhues.
24791
24792 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
24793
24794         linkat, renameat: avoid bad free
24795         * lib/at-func2.c (at_func2): Fix typo.
24796         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
24797
24798 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24799
24800         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
24801         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
24802         to avoid failure of symlink test later.
24803
24804 2010-01-06  Eric Blake  <ebb9@byu.net>
24805
24806         stdio, unistd: guarantee ssize_t
24807         * lib/unistd.in.h (includes): Ensure that types required by POSIX
24808         2008 are exposed when needed.
24809         * lib/stdio.in.h (includes): Likewise.
24810         Reported by Ralf Wildenhues.
24811
24812 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
24813
24814         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
24815         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
24816         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
24817
24818 2010-01-06  Jim Meyering  <meyering@redhat.com>
24819
24820         readtokens: this module *does* require xalloc.h
24821         It uses only functions that were omitted by the old syntax-check rule.
24822         * lib/readtokens.c: Include "xalloc.h" once again.
24823         * modules/readtokens (Depends-on): Add xalloc.
24824         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
24825
24826 2010-01-05  Eric Blake  <ebb9@byu.net>
24827
24828         maint: support 'make announcement' from a VPATH build
24829         * top/maint.mk (announcement): Look for correct NEWS file.
24830
24831 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
24832
24833         utimens (fdutimens): ignore a negative FD, per contract
24834         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
24835         when we have a valid file descriptor.  Otherwise, using a brand
24836         new glibc (with just-patched futimens that now fails with EBADF)
24837         would cause this function to fail with ENOSYS.
24838         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
24839         See also http://bugzilla.redhat.com/552320.
24840
24841 2010-01-05  Eric Blake  <ebb9@byu.net>
24842
24843         strcase: document what it provides
24844         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
24845         gnulib module.
24846         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
24847         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
24848
24849 2010-01-05  Jim Meyering  <meyering@redhat.com>
24850
24851         maint: remove useless inclusions of "xalloc.h"
24852         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
24853         * lib/readtokens.c: Likewise.
24854         * lib/same.c: Likewise.
24855         * modules/getloadavg (Depends-on): Remove xalloc.
24856         * modules/readtokens: Likewise.
24857         * modules/same: Likewise.
24858
24859         maint.mk: include 4 more function names in alloca.h-checking regexp
24860         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
24861         regexp.  Before, we would give a false-positive (saying alloca.h
24862         is included unnecessarily) when the only uses involved omitted symbols.
24863
24864         xalloc.h: use consistent formatting
24865         * lib/xalloc.h: Move declarations to start in the first column.
24866
24867 2010-01-05  Eric Blake  <ebb9@byu.net>
24868
24869         mkdir: avoid xalloc
24870         * lib/mkdir.c (includes): Drop unused header.
24871         Reported by John W. Eaton.
24872
24873 2010-01-04  Jim Meyering  <meyering@redhat.com>
24874
24875         nl_langinfo: avoid configure-time syntax error
24876         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
24877         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
24878         the empty string.  Don't let that provoke a shell syntax error.
24879
24880         regcomp, regexec, fnmatch: avoid array bounds read error
24881         * lib/regcomp.c (build_equiv_class): From glibc:
24882         Use only the low 24 bits of a findidx return value as an index
24883         into the weights array.  Patch by Ulrich Drepper:
24884         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
24885         * lib/regexec.c (check_node_accept_bytes): Likewise.
24886         * lib/fnmatch_loop.c (FCT): Likewise.
24887
24888         regcomp: skip collseq lookup when there are no rules
24889         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
24890         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
24891
24892         regcomp: recognize ill-formed { } expressions
24893         * lib/regcomp.c (parse_dup_op): From glibc:
24894         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
24895
24896         regcomp: fix typo in comment
24897         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
24898         s/satisfy/satisfies/.
24899
24900         regcomp: sync from glibc: remove dead store
24901         * lib/regcomp.c (duplicate_node_closure): Remove useless
24902         search_duplicated_node call and dead store.
24903
24904         regcomp: sync from glibc; always use nl_langinfo
24905         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
24906         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
24907         * modules/regex (Depends-on): Add nl_langinfo.
24908
24909 2010-01-04  Eric Blake  <ebb9@byu.net>
24910
24911         fdopendir: fix configure test
24912         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
24913
24914 2010-01-01  Bruno Haible  <bruno@clisp.org>
24915
24916         wchar: Remove unused configure check.
24917         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
24918
24919 2010-01-01  Eric Blake  <ebb9@byu.net>
24920
24921         headers: make check of system header explicit
24922         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
24923         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
24924         ourselves.
24925         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
24926         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
24927         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
24928         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
24929         internals.
24930         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
24931         missing.
24932         Suggested by Bruno Haible.
24933
24934 2010-01-01  Jim Meyering  <meyering@redhat.com>
24935
24936         ChangeLog: tweak to eliminate unnecessary copyright line
24937         * ChangeLog: Remove a copyright line that was mistakenly updated
24938         by today's update-copyright run.  Reported by Eric Blake.
24939
24940         test-update-copyright: don't let envvar setting cause test failure
24941         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
24942
24943 2010-01-01  Bruno Haible  <bruno@clisp.org>
24944
24945         localename: Avoid gcc warning.
24946         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
24947         function if it is not used.
24948
24949 2010-01-01  Jim Meyering  <meyering@redhat.com>
24950
24951         update nearly all FSF copyright year lists to include 2010
24952         Use the same procedure as for 2009, outlined in
24953         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
24954
24955         version-etc: set COPYRIGHT_YEAR to 2010
24956         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
24957
24958 2009-12-31  Eric Blake  <ebb9@byu.net>
24959
24960         doc: correct availability of cygwin 1.5.x getopt
24961         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
24962         variables.
24963         * doc/posix-functions/opterr.texi (opterr): Likewise.
24964         * doc/posix-functions/optind.texi (optind): Likewise.
24965         * doc/posix-functions/optopt.texi (optopt): Likewise.
24966         * doc/posix-functions/tzname.texi (tzname): Likewise.
24967
24968         openat: update maintainer
24969         * modules/openat (Maintainer): Add myself.
24970
24971         utimens: avoid shadowing warning
24972         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
24973         buffers into one, to avoid shadowing, as well as avoiding a
24974         redundant stat.
24975         Reported by Jim Meyering.
24976
24977         test-dup2: avoid compiler warning
24978         * tests/test-dup2.c (is_inheritable): Only define if used.
24979
24980 2010-01-01  Bruno Haible  <bruno@clisp.org>
24981
24982         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
24983         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
24984         defined, use wctomb instead of wcrtomb.
24985
24986 2010-01-01  Bruno Haible  <bruno@clisp.org>
24987
24988         iconv: Reject native Solaris iconv.
24989         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
24990         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
24991
24992 2009-12-31  Bruno Haible  <bruno@clisp.org>
24993
24994         * tests/test-signal.c (main): Remove test of 'SIG'.
24995
24996 2009-12-31  Bruno Haible  <bruno@clisp.org>
24997
24998         spawn: Fix incomplete fix.
24999         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
25000         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
25001         warnings for GNULIB_POSIXCHECK again.
25002         Reported by Eric Blake.
25003
25004 2009-12-31  Bruno Haible  <bruno@clisp.org>
25005
25006         Avoid namespace pollution on glibc systems.
25007         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
25008         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
25009         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
25010         glibc systems.
25011
25012 2009-12-31  Bruno Haible  <bruno@clisp.org>
25013
25014         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
25015         (gl_REPLACE_WCHAR_H): Turn into a no-op.
25016         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
25017         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
25018         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
25019         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
25020         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
25021
25022 2009-12-31  Bruno Haible  <bruno@clisp.org>
25023
25024         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
25025         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
25026         afterwards.
25027
25028 2009-12-31  Bruno Haible  <bruno@clisp.org>
25029
25030         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
25031         SYS_UTSNAME_H.
25032
25033 2009-12-31  Bruno Haible  <bruno@clisp.org>
25034
25035         spawn: Fix misapplied patch.
25036         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
25037         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
25038         warnings for GNULIB_POSIXCHECK.
25039
25040 2009-12-31  Bruno Haible  <bruno@clisp.org>
25041
25042         times: Update after sys_times changed.
25043         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
25044         * modules/times (Files): Add it.
25045         (configure.ac): Invoke gl_FUNC_TIMES.
25046
25047 2009-12-31  Bruno Haible  <bruno@clisp.org>
25048
25049         Use AC_C_INLINE where necessary.
25050         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
25051         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
25052         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
25053         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
25054         * m4/mbfile.m4 (gl_MBFILE): Likewise.
25055         * m4/mbiter.m4 (gl_MBITER): Likewise.
25056         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
25057         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
25058         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
25059         * modules/u64 (configure.ac): Likewise.
25060
25061 2009-12-31  Bruno Haible  <bruno@clisp.org>
25062
25063         Use AC_C_INLINE instead of module 'inline' where possible.
25064         * modules/inline (Description): Clarify purpose.
25065         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
25066         * modules/count-one-bits (Depends-on): Remove inline.
25067         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
25068         * modules/openat (Depends-on): Remove inline.
25069         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
25070         instead of depending on module 'inline'.
25071         * modules/filevercmp (Depends-on, configure.ac): Likewise.
25072         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
25073         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
25074         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
25075         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
25076         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
25077         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
25078         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
25079         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
25080         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
25081         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
25082         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
25083         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
25084         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
25085         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
25086         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
25087         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
25088         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
25089         Likewise.
25090         * modules/unictype/property-ascii-hex-digit (Depends-on,
25091         configure.ac): Likewise.
25092         * modules/unictype/property-bidi-arabic-digit (Depends-on,
25093         configure.ac): Likewise.
25094         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
25095         configure.ac): Likewise.
25096         * modules/unictype/property-bidi-block-separator (Depends-on,
25097         configure.ac): Likewise.
25098         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
25099         configure.ac): Likewise.
25100         * modules/unictype/property-bidi-common-separator (Depends-on,
25101         configure.ac): Likewise.
25102         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
25103         Likewise.
25104         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
25105         configure.ac): Likewise.
25106         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
25107         configure.ac): Likewise.
25108         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
25109         configure.ac): Likewise.
25110         * modules/unictype/property-bidi-european-digit (Depends-on,
25111         configure.ac): Likewise.
25112         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
25113         configure.ac): Likewise.
25114         * modules/unictype/property-bidi-left-to-right (Depends-on,
25115         configure.ac): Likewise.
25116         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
25117         configure.ac): Likewise.
25118         * modules/unictype/property-bidi-other-neutral (Depends-on,
25119         configure.ac): Likewise.
25120         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
25121         Likewise.
25122         * modules/unictype/property-bidi-segment-separator (Depends-on,
25123         configure.ac): Likewise.
25124         * modules/unictype/property-bidi-whitespace (Depends-on,
25125         configure.ac): Likewise.
25126         * modules/unictype/property-combining (Depends-on, configure.ac):
25127         Likewise.
25128         * modules/unictype/property-composite (Depends-on, configure.ac):
25129         Likewise.
25130         * modules/unictype/property-currency-symbol (Depends-on,
25131         configure.ac): Likewise.
25132         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
25133         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
25134         Likewise.
25135         * modules/unictype/property-default-ignorable-code-point (Depends-on,
25136         configure.ac): Likewise.
25137         * modules/unictype/property-deprecated (Depends-on, configure.ac):
25138         Likewise.
25139         * modules/unictype/property-diacritic (Depends-on, configure.ac):
25140         Likewise.
25141         * modules/unictype/property-extender (Depends-on, configure.ac):
25142         Likewise.
25143         * modules/unictype/property-format-control (Depends-on, configure.ac):
25144         Likewise.
25145         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
25146         Likewise.
25147         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
25148         Likewise.
25149         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
25150         Likewise.
25151         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
25152         Likewise.
25153         * modules/unictype/property-hyphen (Depends-on, configure.ac):
25154         Likewise.
25155         * modules/unictype/property-id-continue (Depends-on, configure.ac):
25156         Likewise.
25157         * modules/unictype/property-id-start (Depends-on, configure.ac):
25158         Likewise.
25159         * modules/unictype/property-ideographic (Depends-on, configure.ac):
25160         Likewise.
25161         * modules/unictype/property-ids-binary-operator (Depends-on,
25162         configure.ac): Likewise.
25163         * modules/unictype/property-ids-trinary-operator (Depends-on,
25164         configure.ac): Likewise.
25165         * modules/unictype/property-ignorable-control (Depends-on,
25166         configure.ac): Likewise.
25167         * modules/unictype/property-iso-control (Depends-on, configure.ac):
25168         Likewise.
25169         * modules/unictype/property-join-control (Depends-on, configure.ac):
25170         Likewise.
25171         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
25172         Likewise.
25173         * modules/unictype/property-line-separator (Depends-on, configure.ac):
25174         Likewise.
25175         * modules/unictype/property-logical-order-exception (Depends-on,
25176         configure.ac): Likewise.
25177         * modules/unictype/property-lowercase (Depends-on, configure.ac):
25178         Likewise.
25179         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
25180         * modules/unictype/property-non-break (Depends-on, configure.ac):
25181         Likewise.
25182         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
25183         Likewise.
25184         * modules/unictype/property-numeric (Depends-on, configure.ac):
25185         Likewise.
25186         * modules/unictype/property-other-alphabetic (Depends-on,
25187         configure.ac): Likewise.
25188         * modules/unictype/property-other-default-ignorable-code-point
25189         (Depends-on, configure.ac): Likewise.
25190         * modules/unictype/property-other-grapheme-extend (Depends-on,
25191         configure.ac): Likewise.
25192         * modules/unictype/property-other-id-continue (Depends-on,
25193         configure.ac): Likewise.
25194         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
25195         Likewise.
25196         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
25197         Likewise.
25198         * modules/unictype/property-other-math (Depends-on, configure.ac):
25199         Likewise.
25200         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
25201         Likewise.
25202         * modules/unictype/property-paired-punctuation (Depends-on,
25203         configure.ac): Likewise.
25204         * modules/unictype/property-paragraph-separator (Depends-on,
25205         configure.ac): Likewise.
25206         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
25207         Likewise.
25208         * modules/unictype/property-pattern-white-space (Depends-on,
25209         configure.ac): Likewise.
25210         * modules/unictype/property-private-use (Depends-on, configure.ac):
25211         Likewise.
25212         * modules/unictype/property-punctuation (Depends-on, configure.ac):
25213         Likewise.
25214         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
25215         Likewise.
25216         * modules/unictype/property-radical (Depends-on, configure.ac):
25217         Likewise.
25218         * modules/unictype/property-sentence-terminal (Depends-on,
25219         configure.ac): Likewise.
25220         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
25221         Likewise.
25222         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
25223         * modules/unictype/property-terminal-punctuation (Depends-on,
25224         configure.ac): Likewise.
25225         * modules/unictype/property-titlecase (Depends-on, configure.ac):
25226         Likewise.
25227         * modules/unictype/property-unassigned-code-value (Depends-on,
25228         configure.ac): Likewise.
25229         * modules/unictype/property-unified-ideograph (Depends-on,
25230         configure.ac): Likewise.
25231         * modules/unictype/property-uppercase (Depends-on, configure.ac):
25232         Likewise.
25233         * modules/unictype/property-variation-selector (Depends-on,
25234         configure.ac): Likewise.
25235         * modules/unictype/property-white-space (Depends-on, configure.ac):
25236         Likewise.
25237         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
25238         Likewise.
25239         * modules/unictype/property-xid-start (Depends-on, configure.ac):
25240         Likewise.
25241         * modules/unictype/property-zero-width (Depends-on, configure.ac):
25242         Likewise.
25243         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
25244         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
25245         Likewise.
25246
25247 2009-12-31  Bruno Haible  <bruno@clisp.org>
25248
25249         Remove unnecessary AC_C_INLINE invocation.
25250         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
25251         since 2009-08-21.
25252
25253 2009-12-31  Jim Meyering  <meyering@redhat.com>
25254
25255         maint.mk: don't require explicit gpg_key_ID in cfg.mk
25256         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
25257         With this change, we can all remove the gpg_key_ID = ... definition
25258         from our respective cfg.mk files.
25259
25260         maint.mk: create announcement template in ~/, not in /tmp
25261         * top/maint.mk (emit_upload_commands): Adjust.
25262         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
25263         Remove temporary file, .ci-msg.
25264
25265 2009-12-31  Eric Blake  <ebb9@byu.net>
25266
25267         link-warning: always build headers with link warnings
25268         * modules/arpa_inet (Makefile.am): Always build replacement
25269         header.
25270         * modules/ctype (Makefile.am): Likewise.
25271         * modules/dirent (Makefile.am): Likewise.
25272         * modules/inttypes (Makefile.am): Likewise.
25273         * modules/langinfo (Makefile.am): Likewise.
25274         * modules/locale (Makefile.am): Likewise.
25275         * modules/spawn (Makefile.am): Likewise.
25276         * modules/sys_file (Makefile.am): Likewise.
25277         * modules/sys_ioctl (Makefile.am): Likewise.
25278         * modules/sys_select (Makefile.am): Likewise.
25279         * modules/sys_socket (Makefile.am): Likewise.
25280         * modules/sys_times (Makefile.am): Likewise.
25281         * modules/sys_utsname (Makefile.am): Likewise.
25282         * modules/sys_wait (Makefile.am): Likewise.
25283         * modules/wchar (Makefile.am): Likewise.
25284         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
25285         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
25286         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
25287         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
25288         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
25289         Likewise.
25290         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
25291         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
25292         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
25293         Likewise.
25294         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
25295         Likewise.
25296         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
25297         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
25298         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
25299         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
25300         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
25301         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
25302         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
25303         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
25304         (gl_WCHAR_H_DEFAULTS): Likewise.
25305
25306 2009-12-31  Eric Blake  <ebb9@byu.net>
25307
25308         signal, spawn: use link warnings
25309         * lib/signal.in.h (sigset_t): Make unconditional.
25310         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
25311         (sigpending, sigprocmask, sigaction): Add link warnings.
25312         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
25313         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
25314         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
25315         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
25316         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
25317         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
25318         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
25319         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
25320         (posix_spawn_file_actions_destroy)
25321         (posix_spawn_file_actions_addopen)
25322         (posix_spawn_file_actions_addclose)
25323         (posix_spawn_file_actions_adddup2): Likewise.
25324         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
25325         * tests/test-signal.c (main): Enhance test.
25326
25327         spawn: improve wrapper support
25328         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
25329         (gl_SPAWN_H_DEFAULTS): New defaults.
25330         * modules/spawn (Makefile.am): Substitute them.
25331         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
25332         Only declare if missing or broken.
25333
25334         sys_times, sys_utsname: use include_next
25335         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
25336         header.
25337         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
25338         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
25339         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
25340         * modules/sys_times (Depends-on): Add include_next.
25341         (Makefile.am): Substitute additional values.
25342         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
25343         * lib/sys_times.in.h (includes): Include native header, if
25344         available.
25345         * lib/sys_utsname.in.h (includes): Likewise.
25346         * tests/test-sys_times.c (main): Enhance test.
25347
25348         fdutimensat: revert prior patch
25349         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
25350         utimens.h.
25351         Reported by Bruno Haible.
25352
25353 2009-12-30  Eric Blake  <ebb9@byu.net>
25354
25355         sys_wait: drop link-warning dependency
25356         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
25357         link-warning efforts.
25358         * lib/sys_wait.in.h: Likewise.
25359
25360         fdutimensat: remove bogus dependency
25361         * modules/fdutimensat (Depends-on): Drop inline.
25362
25363         unistd: fix typo
25364         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
25365
25366 2009-12-30  Bruno Haible  <bruno@clisp.org>
25367
25368         Fix compilation error with Solaris cc.
25369         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
25370         * lib/unicase/u16-is-invariant.c: Likewise.
25371         * lib/unicase/u32-is-invariant.c: Likewise.
25372         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
25373
25374 2009-12-30  Bruno Haible  <bruno@clisp.org>
25375
25376         Fix test crash.
25377         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
25378         locales.
25379         Reported by Simon Josefsson <simon@josefsson.org>.
25380
25381 2009-12-30  Bruno Haible  <bruno@clisp.org>
25382
25383         Fix compilation error on most platforms.
25384         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
25385         Reported by Simon Josefsson <simon@josefsson.org>
25386         and Nelson H. F. Beebe <beebe@math.utah.edu>.
25387
25388 2009-12-30  Eric Blake  <ebb9@byu.net>
25389
25390         futimens, utimensat: work around ntfs-3g bug
25391         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
25392         a ctime bug is present, and expand workaround to cover ntfs-3g.
25393         * lib/utimens.c (fdutimens, lutimens): Likewise.
25394         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
25395         (validate_timespec): Adjust return value.
25396         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
25397         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
25398         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
25399
25400 2009-12-29  Eric Blake  <ebb9@byu.net>
25401
25402         link-warning: make usage consistent
25403         * modules/ctype (Depends-on): Add link-warning.
25404         (Makefile.am): Update rules accordingly.
25405         * modules/langinfo (Depends-on, Makefile.am): Likewise.
25406         * modules/locale (Depends-on, Makefile.am): Likewise.
25407         * modules/sys_file (Makefile.am): Likewise.
25408         * modules/getopt-posix (Makefile.am): Delete unused link warning
25409         efforts.
25410         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
25411         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
25412         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
25413         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
25414
25415         stdio: remove unused variables
25416         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
25417         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
25418         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
25419
25420         tests: test more substitute headers
25421         * modules/ctype-tests: New file.
25422         * modules/dirent-tests: Likewise.
25423         * modules/spawn-tests: Likewise.
25424         * modules/sys_file-tests: Likewise.
25425         * modules/sys_ioctl-tests: Likewise.
25426         * modules/sys_wait-tests: Likewise.
25427         * tests/test-ctype.c: Likewise.
25428         * tests/test-dirent.c: Likewise.
25429         * tests/test-spawn.c: Likewise.
25430         * tests/test-sys_file.c: Likewise.
25431         * tests/test-sys_ioctl.c: Likewise.
25432         * tests/test-sys_wait.c: Likewise.
25433         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
25434         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
25435         whether or not flock is in use.
25436
25437         tests: remove License section from module
25438         * modules/arpa_inet-tests: Remove unneeded section.
25439         * modules/byteswap-tests: Likewise.
25440         * modules/ceilf-tests: Likewise.
25441         * modules/ceill-tests: Likewise.
25442         * modules/crypto/des-tests: Likewise.
25443         * modules/crypto/gc-arcfour-tests: Likewise.
25444         * modules/crypto/gc-arctwo-tests: Likewise.
25445         * modules/crypto/gc-des-tests: Likewise.
25446         * modules/crypto/gc-hmac-md5-tests: Likewise.
25447         * modules/crypto/gc-hmac-sha1-tests: Likewise.
25448         * modules/crypto/gc-md2-tests: Likewise.
25449         * modules/crypto/gc-md4-tests: Likewise.
25450         * modules/crypto/gc-md5-tests: Likewise.
25451         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
25452         * modules/crypto/gc-rijndael-tests: Likewise.
25453         * modules/crypto/gc-sha1-tests: Likewise.
25454         * modules/crypto/gc-tests: Likewise.
25455         * modules/crypto/md2-tests: Likewise.
25456         * modules/crypto/md4-tests: Likewise.
25457         * modules/fcntl-h-tests: Likewise.
25458         * modules/floorf-tests: Likewise.
25459         * modules/floorl-tests: Likewise.
25460         * modules/frexp-nolibm-tests: Likewise.
25461         * modules/frexp-tests: Likewise.
25462         * modules/frexpl-nolibm-tests: Likewise.
25463         * modules/frexpl-tests: Likewise.
25464         * modules/getaddrinfo-tests: Likewise.
25465         * modules/inttypes-tests: Likewise.
25466         * modules/isfinite-tests: Likewise.
25467         * modules/isinf-tests: Likewise.
25468         * modules/ldexpl-tests: Likewise.
25469         * modules/locale-tests: Likewise.
25470         * modules/math-tests: Likewise.
25471         * modules/netdb-tests: Likewise.
25472         * modules/netinet_in-tests: Likewise.
25473         * modules/printf-frexp-tests: Likewise.
25474         * modules/printf-frexpl-tests: Likewise.
25475         * modules/priv-set-tests: Likewise.
25476         * modules/random_r-tests: Likewise.
25477         * modules/round-tests: Likewise.
25478         * modules/roundf-tests: Likewise.
25479         * modules/roundl-tests: Likewise.
25480         * modules/search-tests: Likewise.
25481         * modules/select-tests: Likewise.
25482         * modules/signal-tests: Likewise.
25483         * modules/stdbool-tests: Likewise.
25484         * modules/stddef-tests: Likewise.
25485         * modules/stdint-tests: Likewise.
25486         * modules/stdio-tests: Likewise.
25487         * modules/stdlib-tests: Likewise.
25488         * modules/string-tests: Likewise.
25489         * modules/strings-tests: Likewise.
25490         * modules/sys_select-tests: Likewise.
25491         * modules/sys_socket-tests: Likewise.
25492         * modules/sys_stat-tests: Likewise.
25493         * modules/sys_time-tests: Likewise.
25494         * modules/sys_utsname-tests: Likewise.
25495         * modules/sysexits-tests: Likewise.
25496         * modules/time-tests: Likewise.
25497         * modules/trunc-tests: Likewise.
25498         * modules/truncf-tests: Likewise.
25499         * modules/truncl-tests: Likewise.
25500         * modules/tsearch-tests: Likewise.
25501         * modules/unistd-tests: Likewise.
25502         * modules/wchar-tests: Likewise.
25503         * modules/wctype-tests: Likewise.
25504
25505         tests: fix license on several tests
25506         * tests/test-des.c: Update to GPLv3+.
25507         * tests/test-flock.c: Likewise.
25508         * tests/test-fsync.c: Likewise.
25509         * tests/test-futimens.h: Likewise.
25510         * tests/test-gc-arcfour.c: Likewise.
25511         * tests/test-gc-arctwo.c: Likewise.
25512         * tests/test-gc-des.c: Likewise.
25513         * tests/test-gc-hmac-md5.c: Likewise.
25514         * tests/test-gc-hmac-sha1.c: Likewise.
25515         * tests/test-gc-md2.c: Likewise.
25516         * tests/test-gc-md4.c: Likewise.
25517         * tests/test-gc-md5.c: Likewise.
25518         * tests/test-gc-pbkdf2-sha1.c: Likewise.
25519         * tests/test-gc-rijndael.c: Likewise.
25520         * tests/test-gc-sha1.c: Likewise.
25521         * tests/test-gc.c: Likewise.
25522         * tests/test-getcwd.c: Likewise.
25523         * tests/test-link.c: Likewise.
25524         * tests/test-link.h: Likewise.
25525         * tests/test-lutimens.h: Likewise.
25526         * tests/test-md2.c: Likewise.
25527         * tests/test-md4.c: Likewise.
25528         * tests/test-mkdir.h: Likewise.
25529         * tests/test-rename.c: Likewise.
25530         * tests/test-rename.h: Likewise.
25531         * tests/test-safe-alloc.c: Likewise.
25532         * tests/test-utimens-common.h: Likewise.
25533         * tests/test-utimens.h: Likewise.
25534
25535         maint: sync license texts
25536         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
25537         * doc/gpl-3.0.texi: Revert copyright year update.
25538         * doc/lgpl-3.0.texi: Likewise.
25539
25540 2009-12-29  Jim Meyering  <meyering@redhat.com>
25541
25542         update nearly all FSF copyright year lists to include 2009
25543         The files named by the following are exempted:
25544             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
25545               test -f "$dst" && { echo "$dst"; continue; }
25546               test -d "$dst" || continue
25547               echo "$dst"/$(basename "$src")
25548             done > exempt
25549             git ls-files tests/unictype >> exempt
25550         In the remaining files, convert to all-interval notation if
25551         - there is already at least one year interval like 2000-2003
25552         - the file is maintained by me
25553         - the file is in lib/uni*/, where that style already prevails
25554         Otherwise, use update-copyright's default.
25555
25556 2009-12-29  Simon Josefsson  <simon@josefsson.org>
25557         and Eric Blake  <ebb9@byu.net>
25558
25559         tests: don't require debug system() to pass
25560         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
25561         * tests/test-rmdir.h (test_rmdir_func): Likewise.
25562         * tests/test-unlink.h (test_unlink_func): Likewise.
25563         * tests/test-fstatat.c (main): ...into callers.
25564         * tests/test-lstat.c (main): Likewise.
25565         * tests/test-rmdir.c (main): Likewise.
25566         * tests/test-unlink.c (main): Likewise.
25567         * tests/test-unlinkat.c (main): Likewise.
25568         * tests/test-areadlink-with-size.c (main): Don't require a
25569         debug-only system call to pass, aiding cross-testing to mingw.
25570         * tests/test-areadlink.c (main): Likewise.
25571         * tests/test-areadlinkat-with-size.c (main): Likewise.
25572         * tests/test-areadlinkat.c (main): Likewise.
25573         * tests/test-canonicalize-lgpl.c (main): Likewise.
25574         * tests/test-canonicalize.c (main): Likewise.
25575         * tests/test-chown.c (main): Likewise.
25576         * tests/test-fchownat.c (main): Likewise.
25577         * tests/test-lchown.c (main): Likewise.
25578         * tests/test-fdutimensat.c (main): Likewise.
25579         * tests/test-futimens.c (main): Likewise.
25580         * tests/test-link.c (main): Likewise.
25581         * tests/test-linkat.c (main): Likewise.
25582         * tests/test-mkdir.c (main): Likewise.
25583         * tests/test-mkdirat.c (main): Likewise.
25584         * tests/test-mkfifo.c (main): Likewise.
25585         * tests/test-mkfifoat.c (main): Likewise.
25586         * tests/test-mknod.c (main): Likewise.
25587         * tests/test-readlink.c (main): Likewise.
25588         * tests/test-remove.c (main): Likewise.
25589         * tests/test-rename.c (main): Likewise.
25590         * tests/test-renameat.c (main): Likewise.
25591         * tests/test-symlink.c (main): Likewise.
25592         * tests/test-symlinkat.c (main): Likewise.
25593         * tests/test-utimens.c (main): Likewise.
25594         * tests/test-utimensat.c (main): Likewise.
25595
25596 2009-12-29  Simon Josefsson  <simon@josefsson.org>
25597
25598         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
25599         on $(UNUSED_PARAMETER_H) to avoid build failure.
25600
25601 2009-12-28  Jim Meyering  <meyering@redhat.com>
25602
25603         update-copyright: you may specify a max. line length other than 72
25604         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
25605
25606         maint: use consistent FSF copyright line syntax
25607         * lib/posixtm.c: Add missing comma in FSF copyright line.
25608         * lib/posixtm.h: Likewise.
25609         * lib/getugroups.c: Add missing ", Inc.".
25610
25611         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
25612         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
25613         FSF copyright line.  Remove trailing blanks.
25614
25615 2009-12-28  Eric Blake  <ebb9@byu.net>
25616
25617         test-dup2: reduce dependencies
25618         * modules/cloexec (Configure.ac): Set witness.
25619         * modules/dup2-tests (Depends-on): Drop cloexec.
25620         * tests/test-dup2.c (main): Skip portion of test if cloexec module
25621         not present.
25622         Suggested by Bruno Haible.
25623
25624 2009-12-26  Bruno Haible  <bruno@clisp.org>
25625
25626         Remove an unneeded dependency.
25627         * modules/fseterr (Depends-on): Remove dup2.
25628
25629 2009-12-26  Eric Blake  <ebb9@byu.net>
25630
25631         tests: use macros.h in more places
25632         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
25633         (ASSERT_STREAM): Provide default of stderr.
25634         * tests/test-dirent-safer.c: Include macros.h, using alternate
25635         stream for assertions.
25636         * tests/test-dup-safer.c: Likewise.
25637         * tests/test-freopen-safer.c: Likewise.
25638         * tests/test-getopt.c: Likewise.
25639         * tests/test-openat-safer.c: Likewise.
25640         * tests/test-pipe.c: Likewise.
25641         * tests/test-popen-safer.c: Likewise.
25642         * modules/dirent-safer-tests (Files): Include macros.h.
25643         * modules/unistd-safer-tests (Files): Likewise.
25644         * modules/freopen-safer-tests (Files): Likewise.
25645         * modules/getopt-posix-tests (Files): Likewise.
25646         * modules/openat-safer-tests (Files): Likewise.
25647         * modules/pipe-tests (Files): Likewise.
25648
25649 2009-12-26  Bruno Haible  <bruno@clisp.org>
25650
25651         javacomp: Portability fix.
25652         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
25653         that it also works on Solaris.
25654
25655 2009-12-26  Bruno Haible  <bruno@clisp.org>
25656
25657         localename: Fix storage allocation of gl_locale_name_thread's result.
25658         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
25659         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
25660         all platforms that have 'uselocale'.
25661         (gl_locale_name_thread_unsafe): New function, extracted from
25662         gl_locale_name_thread.
25663         (gl_locale_name_thread): Call struniq on all platforms that have
25664         'uselocale'.
25665         * tests/test-localename.c (test_locale_name_thread): Check that the
25666         resulting strings are permanently allocated.
25667         * modules/localename-tests (Depends-on): Add strdup.
25668
25669 2009-12-26  Bruno Haible  <bruno@clisp.org>
25670
25671         * tests/test-localename.c (categories): Fill in the strings.
25672
25673 2009-12-26  Jim Meyering  <meyering@redhat.com>
25674
25675         isdir: complete the removal of m4/isdir.m4
25676         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
25677
25678         isdir: clean up, since at least grep still uses it
25679         * lib/isdir.c: Include "isdir.h".
25680         (S_ISDIR): Remove now-unneeded definition.
25681         * modules/isdir (Files): Add lib/isdir.h.
25682         * lib/isdir.h: New file, with declaration.
25683         * m4/isdir.m4: Remove file -- unneeded.
25684
25685 2009-12-25  Bruno Haible  <bruno@clisp.org>
25686
25687         selinux-h: Make generated .h files standalone.
25688         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
25689         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
25690         * lib/se-selinux.in.h: Likewise.
25691         * modules/selinux-h (Depends-on): Add unused-parameter.
25692         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
25693         selinux/selinux.h and selinux/context.h.
25694         Suggested by Eric Blake.
25695
25696 2009-12-25  Bruno Haible  <bruno@clisp.org>
25697
25698         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
25699         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
25700         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
25701         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
25702         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
25703
25704 2009-12-24  Bruno Haible  <bruno@clisp.org>
25705
25706         openat: Fix warning.
25707         * lib/openat-proc.c: Include <unistd.h>.
25708
25709 2009-12-24  Bruno Haible  <bruno@clisp.org>
25710
25711         New module 'unused-parameter'.
25712         * build-aux/unused-parameter.h: New file, extracted from earlier
25713         gnulib-common.m4.
25714         * modules/unused-parameter: New file.
25715         * lib/unistr.h: Include unused-parameter.h.
25716         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
25717         _GL_UNUSED.
25718         * modules/unistr/base (Depends-on): Add unused-parameter.
25719
25720 2009-12-24  Bruno Haible  <bruno@clisp.org>
25721
25722         Add missing dependencies to 'extensions' module.
25723         * m4/extensions.m4: Add comment.
25724         * modules/accept4 (Depends-on): Add extensions.
25725         * modules/dup3 (Depends-on): Likewise.
25726         * modules/fcntl (Depends-on): Likewise.
25727         * modules/futimens (Depends-on): Likewise.
25728         * modules/mknod (Depends-on): Likewise.
25729         * modules/pipe2 (Depends-on): Likewise.
25730         * modules/stat-time (Depends-on): Likewise.
25731         * modules/strcasestr-simple (Depends-on): Likewise.
25732         * modules/strsignal (Depends-on): Likewise.
25733         * modules/utimensat (Depends-on): Likewise.
25734         * modules/localcharset (Depends-on): Likewise. Needed because of
25735         gl_FCNTL_O_FLAGS.
25736         * modules/wcrtomb (Depends-on): Likewise. Needed because of
25737         AC_TYPE_MBSTATE_T.
25738         * modules/wcsnrtombs (Depends-on): Likewise.
25739         * modules/wcsrtombs (Depends-on): Likewise.
25740
25741 2009-12-24  Bruno Haible  <bruno@clisp.org>
25742
25743         binary-io: Avoid gcc warning due to SET_BINARY.
25744         * lib/binary-io.h (SET_BINARY): Cast the result to void.
25745         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
25746
25747 2009-12-24  Bruno Haible  <bruno@clisp.org>
25748
25749         Avoid future namespace pollution on glibc systems.
25750         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
25751         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
25752         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
25753         glibc systems.
25754
25755 2009-12-24  Bruno Haible  <bruno@clisp.org>
25756
25757         Refactor common macros used in tests.
25758         * tests/macros.h: New file.
25759         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
25760         and/or <stdlib.h>, if appropriate.
25761         (ASSERT, SIZEOF): Remove macros.
25762         * tests/test-areadlink-with-size.c: Likewise.
25763         * tests/test-areadlinkat.c: Likewise.
25764         * tests/test-areadlinkat-with-size.c: Likewise.
25765         * tests/test-argmatch.c: Likewise.
25766         * tests/test-argv-iter.c: Likewise.
25767         * tests/test-array-mergesort.c: Likewise.
25768         * tests/test-array_list.c: Likewise.
25769         * tests/test-array_oset.c: Likewise.
25770         * tests/test-avltree_list.c: Likewise.
25771         * tests/test-avltree_oset.c: Likewise.
25772         * tests/test-avltreehash_list.c: Likewise.
25773         * tests/test-base64.c: Likewise.
25774         * tests/test-binary-io.c: Likewise.
25775         * tests/test-bitrotate.c: Likewise.
25776         * tests/test-btowc.c: Likewise.
25777         * tests/test-byteswap.c: Likewise.
25778         * tests/test-c-ctype.c: Likewise.
25779         * tests/test-c-stack.c: Likewise.
25780         * tests/test-c-strcasecmp.c: Likewise.
25781         * tests/test-c-strcasestr.c: Likewise.
25782         * tests/test-c-strncasecmp.c: Likewise.
25783         * tests/test-c-strstr.c: Likewise.
25784         * tests/test-canonicalize-lgpl.c: Likewise.
25785         * tests/test-canonicalize.c: Likewise.
25786         * tests/test-carray_list.c: Likewise.
25787         * tests/test-ceilf1.c: Likewise.
25788         * tests/test-ceilf2.c: Likewise.
25789         * tests/test-ceill.c: Likewise.
25790         * tests/test-chown.c: Likewise.
25791         * tests/test-cloexec.c: Likewise.
25792         * tests/test-copy-acl.c: Likewise.
25793         * tests/test-copy-file.c: Likewise.
25794         * tests/test-count-one-bits.c: Likewise.
25795         * tests/test-dprintf-posix.c: Likewise.
25796         * tests/test-dup2.c: Likewise.
25797         * tests/test-dup3.c: Likewise.
25798         * tests/test-duplocale.c: Likewise.
25799         * tests/test-fbufmode.c: Likewise.
25800         * tests/test-fchdir.c: Likewise.
25801         * tests/test-fchownat.c: Likewise.
25802         * tests/test-fcntl-safer.c: Likewise.
25803         * tests/test-fcntl.c: Likewise.
25804         * tests/test-fdopendir.c: Likewise.
25805         * tests/test-fdutimensat.c: Likewise.
25806         * tests/test-fflush2.c: Likewise.
25807         * tests/test-file-has-acl.c: Likewise.
25808         * tests/test-filevercmp.c: Likewise.
25809         * tests/test-flock.c: Likewise.
25810         * tests/test-floorf1.c: Likewise.
25811         * tests/test-floorf2.c: Likewise.
25812         * tests/test-floorl.c: Likewise.
25813         * tests/test-fnmatch.c: Likewise.
25814         * tests/test-fopen.h: Likewise.
25815         * tests/test-fpending.c: Likewise.
25816         * tests/test-fprintf-posix.c: Likewise.
25817         * tests/test-fpurge.c: Likewise.
25818         * tests/test-freadable.c: Likewise.
25819         * tests/test-freadahead.c: Likewise.
25820         * tests/test-freading.c: Likewise.
25821         * tests/test-freadptr.c: Likewise.
25822         * tests/test-freadptr2.c: Likewise.
25823         * tests/test-freadseek.c: Likewise.
25824         * tests/test-freopen.c: Likewise.
25825         * tests/test-frexp.c: Likewise.
25826         * tests/test-frexpl.c: Likewise.
25827         * tests/test-fseek.c: Likewise.
25828         * tests/test-fseeko.c: Likewise.
25829         * tests/test-fstatat.c: Likewise.
25830         * tests/test-fstrcmp.c: Likewise.
25831         * tests/test-fsync.c: Likewise.
25832         * tests/test-ftell.c: Likewise.
25833         * tests/test-ftello.c: Likewise.
25834         * tests/test-func.c: Likewise.
25835         * tests/test-futimens.c: Likewise.
25836         * tests/test-fwritable.c: Likewise.
25837         * tests/test-fwriting.c: Likewise.
25838         * tests/test-getcwd.c: Likewise.
25839         * tests/test-getdate.c: Likewise.
25840         * tests/test-getdelim.c: Likewise.
25841         * tests/test-getdtablesize.c: Likewise.
25842         * tests/test-getgroups.c: Likewise.
25843         * tests/test-getline.c: Likewise.
25844         * tests/test-getndelim2.c: Likewise.
25845         * tests/test-glob.c: Likewise.
25846         * tests/test-hash.c: Likewise.
25847         * tests/test-i-ring.c: Likewise.
25848         * tests/test-iconv-utf.c: Likewise.
25849         * tests/test-iconv.c: Likewise.
25850         * tests/test-idpriv-drop.c: Likewise.
25851         * tests/test-idpriv-droptemp.c: Likewise.
25852         * tests/test-inet_ntop.c: Likewise.
25853         * tests/test-inet_pton.c: Likewise.
25854         * tests/test-isblank.c: Likewise.
25855         * tests/test-isfinite.c: Likewise.
25856         * tests/test-isinf.c: Likewise.
25857         * tests/test-isnan.c: Likewise.
25858         * tests/test-isnand.h: Likewise.
25859         * tests/test-isnanf.h: Likewise.
25860         * tests/test-isnanl.h: Likewise.
25861         * tests/test-lchown.c: Likewise.
25862         * tests/test-ldexpl.c: Likewise.
25863         * tests/test-link.c: Likewise.
25864         * tests/test-linkat.c: Likewise.
25865         * tests/test-linked_list.c: Likewise.
25866         * tests/test-linkedhash_list.c: Likewise.
25867         * tests/test-localename.c: Likewise.
25868         * tests/test-lseek.c: Likewise.
25869         * tests/test-lstat.c: Likewise.
25870         * tests/test-mbmemcasecmp.c: Likewise.
25871         * tests/test-mbmemcasecoll.c: Likewise.
25872         * tests/test-mbrtowc.c: Likewise.
25873         * tests/test-mbscasecmp.c: Likewise.
25874         * tests/test-mbscasestr1.c: Likewise.
25875         * tests/test-mbscasestr2.c: Likewise.
25876         * tests/test-mbscasestr3.c: Likewise.
25877         * tests/test-mbscasestr4.c: Likewise.
25878         * tests/test-mbschr.c: Likewise.
25879         * tests/test-mbscspn.c: Likewise.
25880         * tests/test-mbsinit.c: Likewise.
25881         * tests/test-mbsncasecmp.c: Likewise.
25882         * tests/test-mbsnrtowcs.c: Likewise.
25883         * tests/test-mbspbrk.c: Likewise.
25884         * tests/test-mbspcasecmp.c: Likewise.
25885         * tests/test-mbsrchr.c: Likewise.
25886         * tests/test-mbsrtowcs.c: Likewise.
25887         * tests/test-mbsspn.c: Likewise.
25888         * tests/test-mbsstr1.c: Likewise.
25889         * tests/test-mbsstr2.c: Likewise.
25890         * tests/test-mbsstr3.c: Likewise.
25891         * tests/test-memchr.c: Likewise.
25892         * tests/test-memchr2.c: Likewise.
25893         * tests/test-memcmp.c: Likewise.
25894         * tests/test-memmem.c: Likewise.
25895         * tests/test-memrchr.c: Likewise.
25896         * tests/test-mkdir.c: Likewise.
25897         * tests/test-mkdirat.c: Likewise.
25898         * tests/test-mkfifo.c: Likewise.
25899         * tests/test-mkfifoat.c: Likewise.
25900         * tests/test-mknod.c: Likewise.
25901         * tests/test-nanosleep.c: Likewise.
25902         * tests/test-nl_langinfo.c: Likewise.
25903         * tests/test-obstack-printf.c: Likewise.
25904         * tests/test-open.c: Likewise.
25905         * tests/test-openat.c: Likewise.
25906         * tests/test-pipe-filter-gi1.c: Likewise.
25907         * tests/test-pipe-filter-gi2-main.c: Likewise.
25908         * tests/test-pipe-filter-ii1.c: Likewise.
25909         * tests/test-pipe-filter-ii2-main.c: Likewise.
25910         * tests/test-pipe2.c: Likewise.
25911         * tests/test-popen.h: Likewise.
25912         * tests/test-posixtm.c: Likewise.
25913         * tests/test-pread.c: Likewise.
25914         * tests/test-printf-frexp.c: Likewise.
25915         * tests/test-printf-frexpl.c: Likewise.
25916         * tests/test-printf-posix.c: Likewise.
25917         * tests/test-priv-set.c: Likewise.
25918         * tests/test-quotearg.c: Likewise.
25919         * tests/test-random_r.c: Likewise.
25920         * tests/test-rawmemchr.c: Likewise.
25921         * tests/test-rbtree_list.c: Likewise.
25922         * tests/test-rbtree_oset.c: Likewise.
25923         * tests/test-rbtreehash_list.c: Likewise.
25924         * tests/test-readlink.c: Likewise.
25925         * tests/test-remove.c: Likewise.
25926         * tests/test-rename.c: Likewise.
25927         * tests/test-renameat.c: Likewise.
25928         * tests/test-rmdir.c: Likewise.
25929         * tests/test-round1.c: Likewise.
25930         * tests/test-roundf1.c: Likewise.
25931         * tests/test-roundl.c: Likewise.
25932         * tests/test-safe-alloc.c: Likewise.
25933         * tests/test-sameacls.c: Likewise.
25934         * tests/test-set-mode-acl.c: Likewise.
25935         * tests/test-setenv.c: Likewise.
25936         * tests/test-sigaction.c: Likewise.
25937         * tests/test-signbit.c: Likewise.
25938         * tests/test-sleep.c: Likewise.
25939         * tests/test-snprintf-posix.c: Likewise.
25940         * tests/test-snprintf.c: Likewise.
25941         * tests/test-sprintf-posix.c: Likewise.
25942         * tests/test-stat-time.c: Likewise.
25943         * tests/test-stat.c: Likewise.
25944         * tests/test-strcasestr.c: Likewise.
25945         * tests/test-strchrnul.c: Likewise.
25946         * tests/test-strerror.c: Likewise.
25947         * tests/test-striconv.c: Likewise.
25948         * tests/test-striconveh.c: Likewise.
25949         * tests/test-striconveha.c: Likewise.
25950         * tests/test-strsignal.c: Likewise.
25951         * tests/test-strstr.c: Likewise.
25952         * tests/test-strtod.c: Likewise.
25953         * tests/test-strverscmp.c: Likewise.
25954         * tests/test-symlink.c: Likewise.
25955         * tests/test-symlinkat.c: Likewise.
25956         * tests/test-trunc1.c: Likewise.
25957         * tests/test-trunc2.c: Likewise.
25958         * tests/test-truncf1.c: Likewise.
25959         * tests/test-truncf2.c: Likewise.
25960         * tests/test-truncl.c: Likewise.
25961         * tests/test-uname.c: Likewise.
25962         * tests/test-unlink.c: Likewise.
25963         * tests/test-unlinkat.c: Likewise.
25964         * tests/test-unsetenv.c: Likewise.
25965         * tests/test-usleep.c: Likewise.
25966         * tests/test-utimens.c: Likewise.
25967         * tests/test-utimensat.c: Likewise.
25968         * tests/test-vasnprintf-posix.c: Likewise.
25969         * tests/test-vasnprintf-posix2.c: Likewise.
25970         * tests/test-vasnprintf.c: Likewise.
25971         * tests/test-vasprintf-posix.c: Likewise.
25972         * tests/test-vasprintf.c: Likewise.
25973         * tests/test-vdprintf-posix.c: Likewise.
25974         * tests/test-vfprintf-posix.c: Likewise.
25975         * tests/test-vprintf-posix.c: Likewise.
25976         * tests/test-vsnprintf-posix.c: Likewise.
25977         * tests/test-vsnprintf.c: Likewise.
25978         * tests/test-vsprintf-posix.c: Likewise.
25979         * tests/test-wcrtomb.c: Likewise.
25980         * tests/test-wcsnrtombs.c: Likewise.
25981         * tests/test-wcsrtombs.c: Likewise.
25982         * tests/test-wctype.c: Likewise.
25983         * tests/test-wcwidth.c: Likewise.
25984         * tests/test-xfprintf-posix.c: Likewise.
25985         * tests/test-xmemdup0.c: Likewise.
25986         * tests/test-xprintf-posix.c: Likewise.
25987         * tests/test-xvasprintf.c: Likewise.
25988         * tests/unicase/test-locale-language.c: Likewise.
25989         * tests/unicase/test-mapping-part1.h: Likewise.
25990         * tests/unicase/test-predicate-part1.h: Likewise.
25991         * tests/unicase/test-u8-casecmp.c: Likewise.
25992         * tests/unicase/test-u8-casecoll.c: Likewise.
25993         * tests/unicase/test-u8-casefold.c: Likewise.
25994         * tests/unicase/test-u8-is-cased.c: Likewise.
25995         * tests/unicase/test-u8-is-casefolded.c: Likewise.
25996         * tests/unicase/test-u8-is-lowercase.c: Likewise.
25997         * tests/unicase/test-u8-is-titlecase.c: Likewise.
25998         * tests/unicase/test-u8-is-uppercase.c: Likewise.
25999         * tests/unicase/test-u8-tolower.c: Likewise.
26000         * tests/unicase/test-u8-totitle.c: Likewise.
26001         * tests/unicase/test-u8-toupper.c: Likewise.
26002         * tests/unicase/test-u16-casecmp.c: Likewise.
26003         * tests/unicase/test-u16-casecoll.c: Likewise.
26004         * tests/unicase/test-u16-casefold.c: Likewise.
26005         * tests/unicase/test-u16-is-cased.c: Likewise.
26006         * tests/unicase/test-u16-is-casefolded.c: Likewise.
26007         * tests/unicase/test-u16-is-lowercase.c: Likewise.
26008         * tests/unicase/test-u16-is-titlecase.c: Likewise.
26009         * tests/unicase/test-u16-is-uppercase.c: Likewise.
26010         * tests/unicase/test-u16-tolower.c: Likewise.
26011         * tests/unicase/test-u16-totitle.c: Likewise.
26012         * tests/unicase/test-u16-toupper.c: Likewise.
26013         * tests/unicase/test-u32-casecmp.c: Likewise.
26014         * tests/unicase/test-u32-casecoll.c: Likewise.
26015         * tests/unicase/test-u32-casefold.c: Likewise.
26016         * tests/unicase/test-u32-is-cased.c: Likewise.
26017         * tests/unicase/test-u32-is-casefolded.c: Likewise.
26018         * tests/unicase/test-u32-is-lowercase.c: Likewise.
26019         * tests/unicase/test-u32-is-titlecase.c: Likewise.
26020         * tests/unicase/test-u32-is-uppercase.c: Likewise.
26021         * tests/unicase/test-u32-tolower.c: Likewise.
26022         * tests/unicase/test-u32-totitle.c: Likewise.
26023         * tests/unicase/test-u32-toupper.c: Likewise.
26024         * tests/unicase/test-ulc-casecmp.c: Likewise.
26025         * tests/unicase/test-ulc-casecoll.c: Likewise.
26026         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
26027         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
26028         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
26029         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
26030         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
26031         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
26032         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
26033         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
26034         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
26035         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
26036         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
26037         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
26038         * tests/unictype/test-bidi_byname.c: Likewise.
26039         * tests/unictype/test-bidi_name.c: Likewise.
26040         * tests/unictype/test-bidi_of.c: Likewise.
26041         * tests/unictype/test-bidi_test.c: Likewise.
26042         * tests/unictype/test-block_list.c: Likewise.
26043         * tests/unictype/test-block_of.c: Likewise.
26044         * tests/unictype/test-block_test.c: Likewise.
26045         * tests/unictype/test-categ_and.c: Likewise.
26046         * tests/unictype/test-categ_and_not.c: Likewise.
26047         * tests/unictype/test-categ_byname.c: Likewise.
26048         * tests/unictype/test-categ_name.c: Likewise.
26049         * tests/unictype/test-categ_none.c: Likewise.
26050         * tests/unictype/test-categ_of.c: Likewise.
26051         * tests/unictype/test-categ_or.c: Likewise.
26052         * tests/unictype/test-categ_test_withtable.c: Likewise.
26053         * tests/unictype/test-combining.c: Likewise.
26054         * tests/unictype/test-decdigit.c: Likewise.
26055         * tests/unictype/test-digit.c: Likewise.
26056         * tests/unictype/test-mirror.c: Likewise.
26057         * tests/unictype/test-numeric.c: Likewise.
26058         * tests/unictype/test-pr_byname.c: Likewise.
26059         * tests/unictype/test-pr_test.c: Likewise.
26060         * tests/unictype/test-predicate-part1.h: Likewise.
26061         * tests/unictype/test-scripts.c: Likewise.
26062         * tests/unictype/test-sy_c_ident.c: Likewise.
26063         * tests/unictype/test-sy_java_ident.c: Likewise.
26064         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
26065         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
26066         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
26067         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
26068         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
26069         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
26070         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
26071         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
26072         * tests/uninorm/test-canonical-decomposition.c: Likewise.
26073         * tests/uninorm/test-compat-decomposition.c: Likewise.
26074         * tests/uninorm/test-composition.c: Likewise.
26075         * tests/uninorm/test-decomposing-form.c: Likewise.
26076         * tests/uninorm/test-decomposition.c: Likewise.
26077         * tests/uninorm/test-u8-nfc.c: Likewise.
26078         * tests/uninorm/test-u8-nfd.c: Likewise.
26079         * tests/uninorm/test-u8-nfkc.c: Likewise.
26080         * tests/uninorm/test-u8-nfkd.c: Likewise.
26081         * tests/uninorm/test-u8-normcmp.c: Likewise.
26082         * tests/uninorm/test-u8-normcoll.c: Likewise.
26083         * tests/uninorm/test-u16-nfc.c: Likewise.
26084         * tests/uninorm/test-u16-nfd.c: Likewise.
26085         * tests/uninorm/test-u16-nfkc.c: Likewise.
26086         * tests/uninorm/test-u16-nfkd.c: Likewise.
26087         * tests/uninorm/test-u16-normcmp.c: Likewise.
26088         * tests/uninorm/test-u16-normcoll.c: Likewise.
26089         * tests/uninorm/test-u32-nfc.c: Likewise.
26090         * tests/uninorm/test-u32-nfd.c: Likewise.
26091         * tests/uninorm/test-u32-nfkc.c: Likewise.
26092         * tests/uninorm/test-u32-nfkd.c: Likewise.
26093         * tests/uninorm/test-u32-normalize-big.c: Likewise.
26094         * tests/uninorm/test-u32-normcmp.c: Likewise.
26095         * tests/uninorm/test-u32-normcoll.c: Likewise.
26096         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
26097         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
26098         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
26099         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
26100         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
26101         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
26102         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
26103         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
26104         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
26105         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
26106         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
26107         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
26108         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
26109         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
26110         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
26111         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
26112         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
26113         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
26114         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
26115         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
26116         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
26117         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
26118         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
26119         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
26120         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
26121         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
26122         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
26123         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
26124         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
26125         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
26126         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
26127         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
26128         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
26129         * tests/uniwidth/test-u8-strwidth.c: Likewise.
26130         * tests/uniwidth/test-u8-width.c: Likewise.
26131         * tests/uniwidth/test-u16-strwidth.c: Likewise.
26132         * tests/uniwidth/test-u16-width.c: Likewise.
26133         * tests/uniwidth/test-u32-strwidth.c: Likewise.
26134         * tests/uniwidth/test-u32-width.c: Likewise.
26135         * tests/uniwidth/test-uc_width.c: Likewise.
26136         * tests/uniwidth/test-uc_width2.c: Likewise.
26137         * modules/acl-tests (Files): Add tests/macros.h.
26138         * modules/areadlink-tests (Files): Likewise.
26139         * modules/areadlink-with-size-tests (Files): Likewise.
26140         * modules/areadlinkat-tests (Files): Likewise.
26141         * modules/areadlinkat-with-size-tests (Files): Likewise.
26142         * modules/argmatch-tests (Files): Likewise.
26143         * modules/argv-iter-tests (Files): Likewise.
26144         * modules/array-list-tests (Files): Likewise.
26145         * modules/array-mergesort-tests (Files): Likewise.
26146         * modules/array-oset-tests (Files): Likewise.
26147         * modules/avltree-list-tests (Files): Likewise.
26148         * modules/avltree-oset-tests (Files): Likewise.
26149         * modules/avltreehash-list-tests (Files): Likewise.
26150         * modules/base64-tests (Files): Likewise.
26151         * modules/binary-io-tests (Files): Likewise.
26152         * modules/bitrotate-tests (Files): Likewise.
26153         * modules/btowc-tests (Files): Likewise.
26154         * modules/byteswap-tests (Files): Likewise.
26155         * modules/c-ctype-tests (Files): Likewise.
26156         * modules/c-stack-tests (Files): Likewise.
26157         * modules/c-strcase-tests (Files): Likewise.
26158         * modules/c-strcasestr-tests (Files): Likewise.
26159         * modules/c-strstr-tests (Files): Likewise.
26160         * modules/canonicalize-lgpl-tests (Files): Likewise.
26161         * modules/canonicalize-tests (Files): Likewise.
26162         * modules/carray-list-tests (Files): Likewise.
26163         * modules/ceilf-tests (Files): Likewise.
26164         * modules/ceill-tests (Files): Likewise.
26165         * modules/chown-tests (Files): Likewise.
26166         * modules/cloexec-tests (Files): Likewise.
26167         * modules/copy-file-tests (Files): Likewise.
26168         * modules/count-one-bits-tests (Files): Likewise.
26169         * modules/dprintf-posix-tests (Files): Likewise.
26170         * modules/dup2-tests (Files): Likewise.
26171         * modules/dup3-tests (Files): Likewise.
26172         * modules/duplocale-tests (Files): Likewise.
26173         * modules/fbufmode-tests (Files): Likewise.
26174         * modules/fchdir-tests (Files): Likewise.
26175         * modules/fcntl-safer-tests (Files): Likewise.
26176         * modules/fcntl-tests (Files): Likewise.
26177         * modules/fdopendir-tests (Files): Likewise.
26178         * modules/fdutimensat-tests (Files): Likewise.
26179         * modules/fflush-tests (Files): Likewise.
26180         * modules/filevercmp-tests (Files): Likewise.
26181         * modules/flock-tests (Files): Likewise.
26182         * modules/floorf-tests (Files): Likewise.
26183         * modules/floorl-tests (Files): Likewise.
26184         * modules/fnmatch-tests (Files): Likewise.
26185         * modules/fopen-safer-tests (Files): Likewise.
26186         * modules/fopen-tests (Files): Likewise.
26187         * modules/fpending-tests (Files): Likewise.
26188         * modules/fprintf-posix-tests (Files): Likewise.
26189         * modules/fpurge-tests (Files): Likewise.
26190         * modules/freadable-tests (Files): Likewise.
26191         * modules/freadahead-tests (Files): Likewise.
26192         * modules/freading-tests (Files): Likewise.
26193         * modules/freadptr-tests (Files): Likewise.
26194         * modules/freadseek-tests (Files): Likewise.
26195         * modules/freopen-tests (Files): Likewise.
26196         * modules/frexp-nolibm-tests (Files): Likewise.
26197         * modules/frexp-tests (Files): Likewise.
26198         * modules/frexpl-nolibm-tests (Files): Likewise.
26199         * modules/frexpl-tests (Files): Likewise.
26200         * modules/fseek-tests (Files): Likewise.
26201         * modules/fseeko-tests (Files): Likewise.
26202         * modules/fstrcmp-tests (Files): Likewise.
26203         * modules/fsync-tests (Files): Likewise.
26204         * modules/ftell-tests (Files): Likewise.
26205         * modules/ftello-tests (Files): Likewise.
26206         * modules/func-tests (Files): Likewise.
26207         * modules/futimens-tests (Files): Likewise.
26208         * modules/fwritable-tests (Files): Likewise.
26209         * modules/fwriting-tests (Files): Likewise.
26210         * modules/getcwd-tests (Files): Likewise.
26211         * modules/getdate-tests (Files): Likewise.
26212         * modules/getdelim-tests (Files): Likewise.
26213         * modules/getdtablesize-tests (Files): Likewise.
26214         * modules/getgroups-tests (Files): Likewise.
26215         * modules/getline-tests (Files): Likewise.
26216         * modules/getndelim2-tests (Files): Likewise.
26217         * modules/glob-tests (Files): Likewise.
26218         * modules/hash-tests (Files): Likewise.
26219         * modules/i-ring-tests (Files): Likewise.
26220         * modules/iconv-tests (Files): Likewise.
26221         * modules/iconv_open-utf-tests (Files): Likewise.
26222         * modules/idpriv-drop-tests (Files): Likewise.
26223         * modules/idpriv-droptemp-tests (Files): Likewise.
26224         * modules/inet_ntop-tests (Files): Likewise.
26225         * modules/inet_pton-tests (Files): Likewise.
26226         * modules/isblank-tests (Files): Likewise.
26227         * modules/isfinite-tests (Files): Likewise.
26228         * modules/isinf-tests (Files): Likewise.
26229         * modules/isnan-tests (Files): Likewise.
26230         * modules/isnand-nolibm-tests (Files): Likewise.
26231         * modules/isnand-tests (Files): Likewise.
26232         * modules/isnanf-nolibm-tests (Files): Likewise.
26233         * modules/isnanf-tests (Files): Likewise.
26234         * modules/isnanl-nolibm-tests (Files): Likewise.
26235         * modules/isnanl-tests (Files): Likewise.
26236         * modules/lchown-tests (Files): Likewise.
26237         * modules/ldexpl-tests (Files): Likewise.
26238         * modules/link-tests (Files): Likewise.
26239         * modules/linkat-tests (Files): Likewise.
26240         * modules/linked-list-tests (Files): Likewise.
26241         * modules/linkedhash-list-tests (Files): Likewise.
26242         * modules/localename-tests (Files): Likewise.
26243         * modules/lseek-tests (Files): Likewise.
26244         * modules/lstat-tests (Files): Likewise.
26245         * modules/mbmemcasecmp-tests (Files): Likewise.
26246         * modules/mbmemcasecoll-tests (Files): Likewise.
26247         * modules/mbrtowc-tests (Files): Likewise.
26248         * modules/mbscasecmp-tests (Files): Likewise.
26249         * modules/mbscasestr-tests (Files): Likewise.
26250         * modules/mbschr-tests (Files): Likewise.
26251         * modules/mbscspn-tests (Files): Likewise.
26252         * modules/mbsinit-tests (Files): Likewise.
26253         * modules/mbsncasecmp-tests (Files): Likewise.
26254         * modules/mbsnrtowcs-tests (Files): Likewise.
26255         * modules/mbspbrk-tests (Files): Likewise.
26256         * modules/mbspcasecmp-tests (Files): Likewise.
26257         * modules/mbsrchr-tests (Files): Likewise.
26258         * modules/mbsrtowcs-tests (Files): Likewise.
26259         * modules/mbsspn-tests (Files): Likewise.
26260         * modules/mbsstr-tests (Files): Likewise.
26261         * modules/memchr-tests (Files): Likewise.
26262         * modules/memchr2-tests (Files): Likewise.
26263         * modules/memcmp-tests (Files): Likewise.
26264         * modules/memmem-tests (Files): Likewise.
26265         * modules/memrchr-tests (Files): Likewise.
26266         * modules/mkdir-tests (Files): Likewise.
26267         * modules/mkfifo-tests (Files): Likewise.
26268         * modules/mkfifoat-tests (Files): Likewise.
26269         * modules/mknod-tests (Files): Likewise.
26270         * modules/nanosleep-tests (Files): Likewise.
26271         * modules/nl_langinfo-tests (Files): Likewise.
26272         * modules/obstack-printf-tests (Files): Likewise.
26273         * modules/open-tests (Files): Likewise.
26274         * modules/openat-tests (Files): Likewise.
26275         * modules/pipe-filter-gi-tests (Files): Likewise.
26276         * modules/pipe-filter-ii-tests (Files): Likewise.
26277         * modules/pipe2-tests (Files): Likewise.
26278         * modules/popen-safer-tests (Files): Likewise.
26279         * modules/popen-tests (Files): Likewise.
26280         * modules/posixtm-tests (Files): Likewise.
26281         * modules/pread-tests (Files): Likewise.
26282         * modules/printf-frexp-tests (Files): Likewise.
26283         * modules/printf-frexpl-tests (Files): Likewise.
26284         * modules/printf-posix-tests (Files): Likewise.
26285         * modules/priv-set-tests (Files): Likewise.
26286         * modules/quotearg-tests (Files): Likewise.
26287         * modules/random_r-tests (Files): Likewise.
26288         * modules/rawmemchr-tests (Files): Likewise.
26289         * modules/rbtree-list-tests (Files): Likewise.
26290         * modules/rbtree-oset-tests (Files): Likewise.
26291         * modules/rbtreehash-list-tests (Files): Likewise.
26292         * modules/readlink-tests (Files): Likewise.
26293         * modules/remove-tests (Files): Likewise.
26294         * modules/rename-tests (Files): Likewise.
26295         * modules/renameat-tests (Files): Likewise.
26296         * modules/rmdir-tests (Files): Likewise.
26297         * modules/round-tests (Files): Likewise.
26298         * modules/roundf-tests (Files): Likewise.
26299         * modules/roundl-tests (Files): Likewise.
26300         * modules/safe-alloc-tests (Files): Likewise.
26301         * modules/setenv-tests (Files): Likewise.
26302         * modules/sigaction-tests (Files): Likewise.
26303         * modules/signbit-tests (Files): Likewise.
26304         * modules/sleep-tests (Files): Likewise.
26305         * modules/snprintf-posix-tests (Files): Likewise.
26306         * modules/snprintf-tests (Files): Likewise.
26307         * modules/sprintf-posix-tests (Files): Likewise.
26308         * modules/stat-tests (Files): Likewise.
26309         * modules/stat-time-tests (Files): Likewise.
26310         * modules/strcasestr-tests (Files): Likewise.
26311         * modules/strchrnul-tests (Files): Likewise.
26312         * modules/strerror-tests (Files): Likewise.
26313         * modules/striconv-tests (Files): Likewise.
26314         * modules/striconveh-tests (Files): Likewise.
26315         * modules/striconveha-tests (Files): Likewise.
26316         * modules/strsignal-tests (Files): Likewise.
26317         * modules/strstr-tests (Files): Likewise.
26318         * modules/strtod-tests (Files): Likewise.
26319         * modules/strverscmp-tests (Files): Likewise.
26320         * modules/symlink-tests (Files): Likewise.
26321         * modules/symlinkat-tests (Files): Likewise.
26322         * modules/trunc-tests (Files): Likewise.
26323         * modules/truncf-tests (Files): Likewise.
26324         * modules/truncl-tests (Files): Likewise.
26325         * modules/uname-tests (Files): Likewise.
26326         * modules/unicase/cased-tests (Files): Likewise.
26327         * modules/unicase/ignorable-tests (Files): Likewise.
26328         * modules/unicase/locale-language-tests (Files): Likewise.
26329         * modules/unicase/tolower-tests (Files): Likewise.
26330         * modules/unicase/totitle-tests (Files): Likewise.
26331         * modules/unicase/toupper-tests (Files): Likewise.
26332         * modules/unicase/u8-casecmp-tests (Files): Likewise.
26333         * modules/unicase/u8-casecoll-tests (Files): Likewise.
26334         * modules/unicase/u8-casefold-tests (Files): Likewise.
26335         * modules/unicase/u8-is-cased-tests (Files): Likewise.
26336         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
26337         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
26338         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
26339         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
26340         * modules/unicase/u8-tolower-tests (Files): Likewise.
26341         * modules/unicase/u8-totitle-tests (Files): Likewise.
26342         * modules/unicase/u8-toupper-tests (Files): Likewise.
26343         * modules/unicase/u16-casecmp-tests (Files): Likewise.
26344         * modules/unicase/u16-casecoll-tests (Files): Likewise.
26345         * modules/unicase/u16-casefold-tests (Files): Likewise.
26346         * modules/unicase/u16-is-cased-tests (Files): Likewise.
26347         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
26348         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
26349         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
26350         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
26351         * modules/unicase/u16-tolower-tests (Files): Likewise.
26352         * modules/unicase/u16-totitle-tests (Files): Likewise.
26353         * modules/unicase/u16-toupper-tests (Files): Likewise.
26354         * modules/unicase/u32-casecmp-tests (Files): Likewise.
26355         * modules/unicase/u32-casecoll-tests (Files): Likewise.
26356         * modules/unicase/u32-casefold-tests (Files): Likewise.
26357         * modules/unicase/u32-is-cased-tests (Files): Likewise.
26358         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
26359         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
26360         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
26361         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
26362         * modules/unicase/u32-tolower-tests (Files): Likewise.
26363         * modules/unicase/u32-totitle-tests (Files): Likewise.
26364         * modules/unicase/u32-toupper-tests (Files): Likewise.
26365         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
26366         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
26367         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
26368         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
26369         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
26370         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
26371         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
26372         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
26373         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
26374         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
26375         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
26376         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
26377         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
26378         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
26379         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
26380         * modules/unictype/bidicategory-name-tests (Files): Likewise.
26381         * modules/unictype/bidicategory-of-tests (Files): Likewise.
26382         * modules/unictype/bidicategory-test-tests (Files): Likewise.
26383         * modules/unictype/block-list-tests (Files): Likewise.
26384         * modules/unictype/block-of-tests (Files): Likewise.
26385         * modules/unictype/block-test-tests (Files): Likewise.
26386         * modules/unictype/category-C-tests (Files): Likewise.
26387         * modules/unictype/category-Cc-tests (Files): Likewise.
26388         * modules/unictype/category-Cf-tests (Files): Likewise.
26389         * modules/unictype/category-Cn-tests (Files): Likewise.
26390         * modules/unictype/category-Co-tests (Files): Likewise.
26391         * modules/unictype/category-Cs-tests (Files): Likewise.
26392         * modules/unictype/category-L-tests (Files): Likewise.
26393         * modules/unictype/category-Ll-tests (Files): Likewise.
26394         * modules/unictype/category-Lm-tests (Files): Likewise.
26395         * modules/unictype/category-Lo-tests (Files): Likewise.
26396         * modules/unictype/category-Lt-tests (Files): Likewise.
26397         * modules/unictype/category-Lu-tests (Files): Likewise.
26398         * modules/unictype/category-M-tests (Files): Likewise.
26399         * modules/unictype/category-Mc-tests (Files): Likewise.
26400         * modules/unictype/category-Me-tests (Files): Likewise.
26401         * modules/unictype/category-Mn-tests (Files): Likewise.
26402         * modules/unictype/category-N-tests (Files): Likewise.
26403         * modules/unictype/category-Nd-tests (Files): Likewise.
26404         * modules/unictype/category-Nl-tests (Files): Likewise.
26405         * modules/unictype/category-No-tests (Files): Likewise.
26406         * modules/unictype/category-P-tests (Files): Likewise.
26407         * modules/unictype/category-Pc-tests (Files): Likewise.
26408         * modules/unictype/category-Pd-tests (Files): Likewise.
26409         * modules/unictype/category-Pe-tests (Files): Likewise.
26410         * modules/unictype/category-Pf-tests (Files): Likewise.
26411         * modules/unictype/category-Pi-tests (Files): Likewise.
26412         * modules/unictype/category-Po-tests (Files): Likewise.
26413         * modules/unictype/category-Ps-tests (Files): Likewise.
26414         * modules/unictype/category-S-tests (Files): Likewise.
26415         * modules/unictype/category-Sc-tests (Files): Likewise.
26416         * modules/unictype/category-Sk-tests (Files): Likewise.
26417         * modules/unictype/category-Sm-tests (Files): Likewise.
26418         * modules/unictype/category-So-tests (Files): Likewise.
26419         * modules/unictype/category-Z-tests (Files): Likewise.
26420         * modules/unictype/category-Zl-tests (Files): Likewise.
26421         * modules/unictype/category-Zp-tests (Files): Likewise.
26422         * modules/unictype/category-Zs-tests (Files): Likewise.
26423         * modules/unictype/category-and-not-tests (Files): Likewise.
26424         * modules/unictype/category-and-tests (Files): Likewise.
26425         * modules/unictype/category-byname-tests (Files): Likewise.
26426         * modules/unictype/category-name-tests (Files): Likewise.
26427         * modules/unictype/category-none-tests (Files): Likewise.
26428         * modules/unictype/category-of-tests (Files): Likewise.
26429         * modules/unictype/category-or-tests (Files): Likewise.
26430         * modules/unictype/category-test-withtable-tests (Files): Likewise.
26431         * modules/unictype/combining-class-tests (Files): Likewise.
26432         * modules/unictype/ctype-alnum-tests (Files): Likewise.
26433         * modules/unictype/ctype-alpha-tests (Files): Likewise.
26434         * modules/unictype/ctype-blank-tests (Files): Likewise.
26435         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
26436         * modules/unictype/ctype-digit-tests (Files): Likewise.
26437         * modules/unictype/ctype-graph-tests (Files): Likewise.
26438         * modules/unictype/ctype-lower-tests (Files): Likewise.
26439         * modules/unictype/ctype-print-tests (Files): Likewise.
26440         * modules/unictype/ctype-punct-tests (Files): Likewise.
26441         * modules/unictype/ctype-space-tests (Files): Likewise.
26442         * modules/unictype/ctype-upper-tests (Files): Likewise.
26443         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
26444         * modules/unictype/decimal-digit-tests (Files): Likewise.
26445         * modules/unictype/digit-tests (Files): Likewise.
26446         * modules/unictype/mirror-tests (Files): Likewise.
26447         * modules/unictype/numeric-tests (Files): Likewise.
26448         * modules/unictype/property-alphabetic-tests (Files): Likewise.
26449         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
26450         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
26451         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
26452         Likewise.
26453         * modules/unictype/property-bidi-block-separator-tests (Files):
26454         Likewise.
26455         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
26456         Likewise.
26457         * modules/unictype/property-bidi-common-separator-tests (Files):
26458         Likewise.
26459         * modules/unictype/property-bidi-control-tests (Files): Likewise.
26460         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
26461         Likewise.
26462         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
26463         Likewise.
26464         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
26465         Likewise.
26466         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
26467         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
26468         Likewise.
26469         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
26470         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
26471         Likewise.
26472         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
26473         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
26474         * modules/unictype/property-bidi-segment-separator-tests (Files):
26475         Likewise.
26476         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
26477         * modules/unictype/property-byname-tests (Files): Likewise.
26478         * modules/unictype/property-combining-tests (Files): Likewise.
26479         * modules/unictype/property-composite-tests (Files): Likewise.
26480         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
26481         * modules/unictype/property-dash-tests (Files): Likewise.
26482         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
26483         * modules/unictype/property-default-ignorable-code-point-tests (Files):
26484         Likewise.
26485         * modules/unictype/property-deprecated-tests (Files): Likewise.
26486         * modules/unictype/property-diacritic-tests (Files): Likewise.
26487         * modules/unictype/property-extender-tests (Files): Likewise.
26488         * modules/unictype/property-format-control-tests (Files): Likewise.
26489         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
26490         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
26491         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
26492         * modules/unictype/property-hex-digit-tests (Files): Likewise.
26493         * modules/unictype/property-hyphen-tests (Files): Likewise.
26494         * modules/unictype/property-id-continue-tests (Files): Likewise.
26495         * modules/unictype/property-id-start-tests (Files): Likewise.
26496         * modules/unictype/property-ideographic-tests (Files): Likewise.
26497         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
26498         * modules/unictype/property-ids-trinary-operator-tests (Files):
26499         Likewise.
26500         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
26501         * modules/unictype/property-iso-control-tests (Files): Likewise.
26502         * modules/unictype/property-join-control-tests (Files): Likewise.
26503         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
26504         * modules/unictype/property-line-separator-tests (Files): Likewise.
26505         * modules/unictype/property-logical-order-exception-tests (Files):
26506         Likewise.
26507         * modules/unictype/property-lowercase-tests (Files): Likewise.
26508         * modules/unictype/property-math-tests (Files): Likewise.
26509         * modules/unictype/property-non-break-tests (Files): Likewise.
26510         * modules/unictype/property-not-a-character-tests (Files): Likewise.
26511         * modules/unictype/property-numeric-tests (Files): Likewise.
26512         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
26513         * modules/unictype/property-other-default-ignorable-code-point-tests
26514         (Files): Likewise.
26515         * modules/unictype/property-other-grapheme-extend-tests (Files):
26516         Likewise.
26517         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
26518         * modules/unictype/property-other-id-start-tests (Files): Likewise.
26519         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
26520         * modules/unictype/property-other-math-tests (Files): Likewise.
26521         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
26522         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
26523         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
26524         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
26525         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
26526         * modules/unictype/property-private-use-tests (Files): Likewise.
26527         * modules/unictype/property-punctuation-tests (Files): Likewise.
26528         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
26529         * modules/unictype/property-radical-tests (Files): Likewise.
26530         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
26531         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
26532         * modules/unictype/property-space-tests (Files): Likewise.
26533         * modules/unictype/property-terminal-punctuation-tests (Files):
26534         Likewise.
26535         * modules/unictype/property-test-tests (Files): Likewise.
26536         * modules/unictype/property-titlecase-tests (Files): Likewise.
26537         * modules/unictype/property-unassigned-code-value-tests (Files):
26538         Likewise.
26539         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
26540         * modules/unictype/property-uppercase-tests (Files): Likewise.
26541         * modules/unictype/property-variation-selector-tests (Files): Likewise.
26542         * modules/unictype/property-white-space-tests (Files): Likewise.
26543         * modules/unictype/property-xid-continue-tests (Files): Likewise.
26544         * modules/unictype/property-xid-start-tests (Files): Likewise.
26545         * modules/unictype/property-zero-width-tests (Files): Likewise.
26546         * modules/unictype/scripts-tests (Files): Likewise.
26547         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
26548         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
26549         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
26550         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
26551         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
26552         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
26553         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
26554         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
26555         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
26556         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
26557         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
26558         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
26559         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
26560         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
26561         * modules/uninorm/composition-tests (Files): Likewise.
26562         * modules/uninorm/decomposing-form-tests (Files): Likewise.
26563         * modules/uninorm/decomposition-tests (Files): Likewise.
26564         * modules/uninorm/filter-tests (Files): Likewise.
26565         * modules/uninorm/nfc-tests (Files): Likewise.
26566         * modules/uninorm/nfd-tests (Files): Likewise.
26567         * modules/uninorm/nfkc-tests (Files): Likewise.
26568         * modules/uninorm/nfkd-tests (Files): Likewise.
26569         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
26570         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
26571         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
26572         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
26573         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
26574         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
26575         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
26576         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
26577         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
26578         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
26579         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
26580         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
26581         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
26582         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
26583         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
26584         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
26585         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
26586         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
26587         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
26588         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
26589         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
26590         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
26591         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
26592         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
26593         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
26594         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
26595         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
26596         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
26597         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
26598         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
26599         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
26600         * modules/uniwidth/u8-width-tests (Files): Likewise.
26601         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
26602         * modules/uniwidth/u16-width-tests (Files): Likewise.
26603         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
26604         * modules/uniwidth/u32-width-tests (Files): Likewise.
26605         * modules/uniwidth/width-tests (Files): Likewise.
26606         * modules/unlink-tests (Files): Likewise.
26607         * modules/unsetenv-tests (Files): Likewise.
26608         * modules/usleep-tests (Files): Likewise.
26609         * modules/utimens-tests (Files): Likewise.
26610         * modules/utimensat-tests (Files): Likewise.
26611         * modules/vasnprintf-posix-tests (Files): Likewise.
26612         * modules/vasnprintf-tests (Files): Likewise.
26613         * modules/vasprintf-posix-tests (Files): Likewise.
26614         * modules/vasprintf-tests (Files): Likewise.
26615         * modules/vdprintf-posix-tests (Files): Likewise.
26616         * modules/vfprintf-posix-tests (Files): Likewise.
26617         * modules/vprintf-posix-tests (Files): Likewise.
26618         * modules/vsnprintf-posix-tests (Files): Likewise.
26619         * modules/vsnprintf-tests (Files): Likewise.
26620         * modules/vsprintf-posix-tests (Files): Likewise.
26621         * modules/wcrtomb-tests (Files): Likewise.
26622         * modules/wcsnrtombs-tests (Files): Likewise.
26623         * modules/wcsrtombs-tests (Files): Likewise.
26624         * modules/wctype-tests (Files): Likewise.
26625         * modules/wcwidth-tests (Files): Likewise.
26626         * modules/xmemdup0-tests (Files): Likewise.
26627         * modules/xprintf-posix-tests (Files): Likewise.
26628         * modules/xvasprintf-tests (Files): Likewise.
26629
26630 2009-12-24  Eric Blake  <ebb9@byu.net>
26631
26632         test-nanosleep: fix typo
26633         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
26634         patch.
26635         Reported by Bruno Haible.
26636
26637 2009-12-24  Bruno Haible  <bruno@clisp.org>
26638
26639         Reduce namespace pollution on glibc systems.
26640         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
26641         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
26642         systems.
26643         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
26644         <getopt.h> on glibc systems.
26645         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
26646         systems.
26647         * lib/fcntl.c: Include <unistd.h> here instead.
26648
26649 2009-12-24  Bruno Haible  <bruno@clisp.org>
26650
26651         * lib/stdlib.in.h (includes): Fix typo in today's commit.
26652
26653 2009-12-24  Eric Blake  <ebb9@byu.net>
26654
26655         tests: add signature checks
26656         * tests/signature.h (SIGNATURE_CHECK): New file.
26657         * modules/atexit-tests (Files): Use it.
26658         * modules/btowc-tests (Files): Likewise.
26659         * modules/canonicalize-lgpl-tests (Files): Likewise.
26660         * modules/ceilf-tests (Files): Likewise.
26661         * modules/ceill-tests (Files): Likewise.
26662         * modules/chown-tests (Files): Likewise.
26663         * modules/dprintf-posix-tests (Files): Likewise.
26664         * modules/dup2-tests (Files): Likewise.
26665         * modules/dup3-tests (Files): Likewise.
26666         * modules/duplocale-tests (Files): Likewise.
26667         * modules/fchdir-tests (Files): Likewise.
26668         * modules/fcntl-tests (Files): Likewise.
26669         * modules/fdopendir-tests (Files): Likewise.
26670         * modules/fflush-tests (Files): Likewise.
26671         * modules/flock-tests (Files): Likewise.
26672         * modules/floorf-tests (Files): Likewise.
26673         * modules/floorl-tests (Files): Likewise.
26674         * modules/fnmatch-tests (Files): Likewise.
26675         * modules/fopen-tests (Files): Likewise.
26676         * modules/fprintf-posix-tests (Files): Likewise.
26677         * modules/freopen-tests (Files): Likewise.
26678         * modules/frexp-nolibm-tests (Files): Likewise.
26679         * modules/frexp-tests (Files): Likewise.
26680         * modules/frexpl-nolibm-tests (Files): Likewise.
26681         * modules/frexpl-tests (Files): Likewise.
26682         * modules/fseek-tests (Files): Likewise.
26683         * modules/fseeko-tests (Files): Likewise.
26684         * modules/fsync-tests (Files): Likewise.
26685         * modules/ftell-tests (Files): Likewise.
26686         * modules/ftello-tests (Files): Likewise.
26687         * modules/futimens-tests (Files): Likewise.
26688         * modules/getaddrinfo-tests (Files): Likewise.
26689         * modules/getcwd-tests (Files): Likewise.
26690         * modules/getdelim-tests (Files): Likewise.
26691         * modules/getdtablesize-tests (Files): Likewise.
26692         * modules/getgroups-tests (Files): Likewise.
26693         * modules/gethostname-tests (Files): Likewise.
26694         * modules/getline-tests (Files): Likewise.
26695         * modules/getopt-posix-tests (Files): Likewise.
26696         * modules/gettimeofday-tests (Files): Likewise.
26697         * modules/glob-tests (Files): Likewise.
26698         * modules/iconv-tests (Files): Likewise.
26699         * modules/inet_ntop-tests (Files): Likewise.
26700         * modules/inet_pton-tests (Files): Likewise.
26701         * modules/isblank-tests (Files): Likewise.
26702         * modules/lchown-tests (Files): Likewise.
26703         * modules/ldexpl-tests (Files): Likewise.
26704         * modules/link-tests (Files): Likewise.
26705         * modules/linkat-tests (Files): Likewise.
26706         * modules/lseek-tests (Files): Likewise.
26707         * modules/lstat-tests (Files): Likewise.
26708         * modules/mbrtowc-tests (Files): Likewise.
26709         * modules/mbsinit-tests (Files): Likewise.
26710         * modules/mbsnrtowcs-tests (Files): Likewise.
26711         * modules/mbsrtowcs-tests (Files): Likewise.
26712         * modules/memchr-tests (Files): Likewise.
26713         * modules/memcmp-tests (Files): Likewise.
26714         * modules/memmem-tests (Files): Likewise.
26715         * modules/memrchr-tests (Files): Likewise.
26716         * modules/mkdir-tests (Files): Likewise.
26717         * modules/mkfifo-tests (Files): Likewise.
26718         * modules/mkfifoat-tests (Files): Likewise.
26719         * modules/mknod-tests (Files): Likewise.
26720         * modules/nanosleep-tests (Files): Likewise.
26721         * modules/nl_langinfo-tests (Files): Likewise.
26722         * modules/obstack-printf-tests (Files): Likewise.
26723         * modules/open-tests (Files): Likewise.
26724         * modules/openat-tests (Files): Likewise.
26725         * modules/perror-tests (Files): Likewise.
26726         * modules/pipe2-tests (Files): Likewise.
26727         * modules/poll-tests (Files): Likewise.
26728         * modules/popen-tests (Files): Likewise.
26729         * modules/posix_spawn-tests (Files): Likewise.
26730         * modules/posix_spawnp-tests (Files): Likewise.
26731         * modules/pread-tests (Files): Likewise.
26732         * modules/printf-posix-tests (Files): Likewise.
26733         * modules/pty-tests (Files): Likewise.
26734         * modules/random_r-tests (Files): Likewise.
26735         * modules/rawmemchr-tests (Files): Likewise.
26736         * modules/readlink-tests (Files): Likewise.
26737         * modules/remove-tests (Files): Likewise.
26738         * modules/rename-tests (Files): Likewise.
26739         * modules/renameat-tests (Files): Likewise.
26740         * modules/rmdir-tests (Files): Likewise.
26741         * modules/round-tests (Files): Likewise.
26742         * modules/roundf-tests (Files): Likewise.
26743         * modules/roundl-tests (Files): Likewise.
26744         * modules/select-tests (Files): Likewise.
26745         * modules/setenv-tests (Files): Likewise.
26746         * modules/sigaction-tests (Files): Likewise.
26747         * modules/sleep-tests (Files): Likewise.
26748         * modules/snprintf-posix-tests (Files): Likewise.
26749         * modules/snprintf-tests (Files): Likewise.
26750         * modules/sprintf-posix-tests (Files): Likewise.
26751         * modules/stat-tests (Files): Likewise.
26752         * modules/strcasestr-tests (Files): Likewise.
26753         * modules/strchrnul-tests (Files): Likewise.
26754         * modules/strerror-tests (Files): Likewise.
26755         * modules/strsignal-tests (Files): Likewise.
26756         * modules/strstr-tests (Files): Likewise.
26757         * modules/strtod-tests (Files): Likewise.
26758         * modules/strverscmp-tests (Files): Likewise.
26759         * modules/symlink-tests (Files): Likewise.
26760         * modules/symlinkat-tests (Files): Likewise.
26761         * modules/times-tests (Files): Likewise.
26762         * modules/trunc-tests (Files): Likewise.
26763         * modules/truncf-tests (Files): Likewise.
26764         * modules/truncl-tests (Files): Likewise.
26765         * modules/tsearch-tests (Files): Likewise.
26766         * modules/uname-tests (Files): Likewise.
26767         * modules/unlink-tests (Files): Likewise.
26768         * modules/unsetenv-tests (Files): Likewise.
26769         * modules/usleep-tests (Files): Likewise.
26770         * modules/utimensat-tests (Files): Likewise.
26771         * modules/vasprintf-tests (Files): Likewise.
26772         * modules/vdprintf-posix-tests (Files): Likewise.
26773         * modules/vfprintf-posix-tests (Files): Likewise.
26774         * modules/vprintf-posix-tests (Files): Likewise.
26775         * modules/vsnprintf-posix-tests (Files): Likewise.
26776         * modules/vsnprintf-tests (Files): Likewise.
26777         * modules/vsprintf-posix-tests (Files): Likewise.
26778         * modules/wcrtomb-tests (Files): Likewise.
26779         * modules/wcsnrtombs-tests (Files): Likewise.
26780         * modules/wcsrtombs-tests (Files): Likewise.
26781         * modules/wcwidth-tests (Files): Likewise.
26782         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
26783         * tests/test-isinf.c (isinf): Likewise.
26784         * tests/test-isnan.c (isnan): Likewise.
26785         * tests/test-signbit.c (signbit): Likewise.
26786         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
26787         declaration, either as macro or with correct signature.
26788         (select): Ensure function under test is declared with correct
26789         signature in correct header.
26790         * tests/test-atexit.c (atexit): Likewise.
26791         * tests/test-btowc.c (btowc): Likewise.
26792         * tests/test-canonicalize-lgpl.c (realpath)
26793         (canonicalize_file_name): Likewise.
26794         * tests/test-ceilf1.c (ceilf): Likewise.
26795         * tests/test-ceill.c (ceill): Likewise.
26796         * tests/test-chown.c (chown): Likewise.
26797         * tests/test-dprintf-posix.c (dprintf): Likewise.
26798         * tests/test-dup2.c (dup2): Likewise.
26799         * tests/test-dup3.c (dup3): Likewise.
26800         * tests/test-duplocale.c (duplocale): Likewise.
26801         * tests/test-fchdir.c (fchdir): Likewise.
26802         * tests/test-fchownat.c (fchownat): Likewise.
26803         * tests/test-fcntl.c (fcntl): Likewise.
26804         * tests/test-fdopendir.c (fdopendir): Likewise.
26805         * tests/test-fflush.c (fflush): Likewise.
26806         * tests/test-flock.c (flock): Likewise.
26807         * tests/test-floorf1.c (floorf): Likewise.
26808         * tests/test-floorl.c (floorl): Likewise.
26809         * tests/test-fnmatch.c (fnmatch): Likewise.
26810         * tests/test-fopen.c (fopen): Likewise.
26811         * tests/test-fprintf-posix.c (fprintf): Likewise.
26812         * tests/test-freopen.c (freopen): Likewise.
26813         * tests/test-frexp.c (frexp): Likewise.
26814         * tests/test-frexpl.c (frexpl): Likewise.
26815         * tests/test-fseek.c (fseek): Likewise.
26816         * tests/test-fseeko.c (fseeko): Likewise.
26817         * tests/test-fstatat.c (fstatat): Likewise.
26818         * tests/test-fsync.c (fsync): Likewise.
26819         * tests/test-ftell.c (ftell): Likewise.
26820         * tests/test-ftello.c (ftello): Likewise.
26821         * tests/test-futimens.c (futimens): Likewise.
26822         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
26823         (gai_strerror): Likewise.
26824         * tests/test-getcwd.c (getcwd): Likewise.
26825         * tests/test-getdelim.c (getdelim): Likewise.
26826         * tests/test-getdtablesize.c (getdtablesize): Likewise.
26827         * tests/test-getgroups.c (getgroups): Likewise.
26828         * tests/test-gethostname.c (gethostname): Likewise.
26829         * tests/test-getline.c (getline): Likewise.
26830         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
26831         Likewise.
26832         * tests/test-gettimeofday.c (gettimeofday): Likewise.
26833         * tests/test-glob.c (glob, globfree): Likewise.
26834         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
26835         * tests/test-inet_ntop.c (inet_ntop): Likewise.
26836         * tests/test-inet_pton.c (inet_pton): Likewise.
26837         * tests/test-isblank.c (isblank): Likewise.
26838         * tests/test-lchown.c (lchown): Likewise.
26839         * tests/test-ldexpl.c (ldexpl): Likewise.
26840         * tests/test-link.c (link): Likewise.
26841         * tests/test-linkat.c (linkat): Likewise.
26842         * tests/test-lseek.c (lseek): Likewise.
26843         * tests/test-lstat.c (lstat): Likewise.
26844         * tests/test-mbrtowc.c (mbrtowc): Likewise.
26845         * tests/test-mbsinit.c (mbsinit): Likewise.
26846         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
26847         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
26848         * tests/test-memchr.c (memchr): Likewise.
26849         * tests/test-memcmp.c (memcmp): Likewise.
26850         * tests/test-memmem.c (memmem): Likewise.
26851         * tests/test-memrchr.c (memrchr): Likewise.
26852         * tests/test-mkdir.c (mkdir): Likewise.
26853         * tests/test-mkdirat.c (mkdirat): Likewise.
26854         * tests/test-mkfifo.c (mkfifo): Likewise.
26855         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
26856         * tests/test-mknod.c (mknod): Likewise.
26857         * tests/test-nanosleep.c (nanosleep): Likewise.
26858         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
26859         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
26860         Likewise.
26861         * tests/test-open.c (open): Likewise.
26862         * tests/test-openat.c (openat): Likewise.
26863         * tests/test-perror.c (perror): Likewise.
26864         * tests/test-pipe2.c (pipe2): Likewise.
26865         * tests/test-poll.c (poll): Likewise.
26866         * tests/test-popen.c (popen, pclose): Likewise.
26867         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
26868         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
26869         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
26870         (posix_spawn_file_actions_destroy)
26871         (posix_spawn_file_actions_addclose)
26872         (posix_spawn_file_actions_addopen)
26873         (posix_spawn_file_actions_adddup2): Likewise.
26874         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
26875         * tests/test-pread.c (pread): Likewise.
26876         * tests/test-printf-posix.c (printf): Likewise.
26877         * tests/test-pty.c (openpty, forkpty): Likewise.
26878         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
26879         (random_r): Likewise.
26880         * tests/test-rawmemchr.c (rawmemchr): Likewise.
26881         * tests/test-readlink.c (readlink): Likewise.
26882         * tests/test-remove.c (remove): Likewise.
26883         * tests/test-rename.c (rename): Likewise.
26884         * tests/test-renameat.c (renameat): Likewise.
26885         * tests/test-rmdir.c (rmdir): Likewise.
26886         * tests/test-round1.c (round): Likewise.
26887         * tests/test-roundf1.c (roundf): Likewise.
26888         * tests/test-roundl.c (roundl): Likewise.
26889         * tests/test-setenv.c (setenv): Likewise.
26890         * tests/test-sigaction.c (sigaction): Likewise.
26891         * tests/test-sleep.c (sleep): Likewise.
26892         * tests/test-snprintf.c (snprintf): Likewise.
26893         * tests/test-sprintf-posix.c (sprintf): Likewise.
26894         * tests/test-stat.c (stat): Likewise.
26895         * tests/test-stpncpy.c (stpncpy): Likewise.
26896         * tests/test-strcasestr.c (strcasestr): Likewise.
26897         * tests/test-strchrnul.c (strchrnul): Likewise.
26898         * tests/test-strerror.c (strerror): Likewise.
26899         * tests/test-strsignal.c (strsignal): Likewise.
26900         * tests/test-strstr.c (strstr): Likewise.
26901         * tests/test-strtod.c (strtod): Likewise.
26902         * tests/test-strverscmp.c (strverscmp): Likewise.
26903         * tests/test-symlink.c (symlink): Likewise.
26904         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
26905         * tests/test-times.c (times): Likewise.
26906         * tests/test-trunc1.c (trunc): Likewise.
26907         * tests/test-truncf1.c (truncf): Likewise.
26908         * tests/test-truncl.c (truncl): Likewise.
26909         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
26910         Likewise.
26911         * tests/test-uname.c (uname): Likewise.
26912         * tests/test-unlink.c (unlink): Likewise.
26913         * tests/test-unlinkat.c (unlinkat): Likewise.
26914         * tests/test-unsetenv.c (unsetenv): Likewise.
26915         * tests/test-usleep.c (usleep): Likewise.
26916         * tests/test-utimensat.c (utimensat): Likewise.
26917         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
26918         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
26919         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
26920         * tests/test-vprintf-posix.c (vprintf): Likewise.
26921         * tests/test-vsnprintf.c (vsnprintf): Likewise.
26922         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
26923         * tests/test-wcrtomb.c (wcrtomb): Likewise.
26924         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
26925         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
26926         * tests/test-wcwidth.c (wcwidth): Likewise.
26927
26928         build: pull in conditional headers during GNULIB_POSIXCHECK
26929         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
26930         definitions from any conditionally-included headers.
26931         * lib/stdlib.in.h (includes): Likewise.
26932         * lib/unistd.in.h (includes): Likewise.
26933
26934 2009-12-24  Bruno Haible  <bruno@clisp.org>
26935
26936         * tests/test-argv-iter.c: Include header file being tested immediately
26937         after config.h.
26938         * tests/test-base64.c: Likewise.
26939         * tests/test-flock.c: Likewise.
26940         * tests/test-fsync.c: Likewise.
26941         * tests/test-getdate.c: Likewise.
26942         * tests/test-getndelim2.c: Likewise.
26943         * tests/test-isfinite.c: Likewise.
26944         * tests/test-isinf.c: Likewise.
26945         * tests/test-strerror.c: Likewise.
26946         * tests/test-strsignal.c: Likewise.
26947
26948 2009-12-23  Eric Blake  <ebb9@byu.net>
26949
26950         unistd: work around cygwin bug
26951         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
26952         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
26953         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
26954
26955 2009-12-23  Bruno Haible  <bruno@clisp.org>
26956
26957         localename: More tests.
26958         * tests/test-localename.c (SIZEOF): New macro.
26959         (categories): New variable.
26960         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
26961         test_locale_name_default): Add test w.r.t. thread locale.
26962         (test_locale_name_thread): New function.
26963         (main): Invoke it.
26964
26965         localename: Make aware of thread locale.
26966         * lib/localename.h (gl_locale_name_thread): New declaration.
26967         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
26968         behaviour with respect to thread locale.
26969         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
26970         <langinfo.h>, glthread/lock.h.
26971         (SIZE_BITS): New macro.
26972         (string_hash): New function.
26973         (struct hash_node): New type.
26974         (HASH_TABLE_SIZE): New macro.
26975         (struniq_hash_table, struniq_lock): New variables.
26976         (struniq): New function.
26977         (gl_locale_name_thread): New function.
26978         (gl_locale_name): Invoke it.
26979         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
26980         * modules/localename (Depends-on): Add lock.
26981         Reported by Mike Gran <spk121@yahoo.com>.
26982
26983 2009-12-23  Eric Blake  <ebb9@byu.net>
26984
26985         va-args: new module
26986         * modules/va-args: New file.
26987         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
26988         * MODULES.html.sh (Core language properties): Mention it.
26989
26990         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
26991         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
26992         named alias for __attribute__((__unused__)).
26993         * lib/chown.c: Update client.
26994         * lib/fchmodat.c: Likewise.
26995         * lib/fts.c: Likewise.
26996         * lib/getdate.y: Likewise.
26997         * lib/getgroups.c: Likewise.
26998         * lib/getopt.c: Likewise.
26999         * lib/getugroups.c: Likewise.
27000         * lib/mkdir.c: Likewise.
27001         * lib/mkfifo.c: Likewise.
27002         * lib/mkfifoat.c: Likewise.
27003         * lib/mknod.c: Likewise.
27004         * lib/mknodat.c: Likewise.
27005         * lib/readlink.c: Likewise.
27006         * lib/se-context.in.h: Likewise.
27007         * lib/se-selinux.in.h: Likewise.
27008         * lib/sockets.c: Likewise.
27009         * lib/symlink.c: Likewise.
27010         * lib/symlinkat.c: Likewise.
27011         * lib/unicodeio.c: Likewise.
27012         * lib/unistr.h: Likewise.
27013         * tests/test-areadlink.c: Likewise.
27014         * tests/test-areadlinkat.c: Likewise.
27015         * tests/test-filenamecat.c: Likewise.
27016         * tests/test-fseeko.c: Likewise.
27017         * tests/test-ftello.c: Likewise.
27018         * tests/test-getdate.c: Likewise.
27019         * tests/test-getgroups.c: Likewise.
27020         * tests/test-gethostname.c: Likewise.
27021         * tests/test-quotearg.c: Likewise.
27022         * tests/test-version-etc.c: Likewise.
27023         * tests/test-xalloc-die.c: Likewise.
27024         * tests/test-xfprintf-posix.c: Likewise.
27025         * tests/test-xprintf-posix.c: Likewise.
27026         * tests/test-xvasprintf.c: Likewise.
27027
27028         tests: avoid compiler warnings
27029         * tests/test-fcntl.c (main): Delete unused parameters.
27030         * tests/test-freopen-safer.c (main): Likewise.
27031         * tests/test-xalloc-die.c (main): Mark unused parameters.
27032         * tests/test-fseeko.c (main): Likewise.
27033         * tests/test-ftello.c (main): Likewise.
27034         * tests/test-nanosleep.c (main): Avoid declaration warning.
27035         * tests/test-sleep.c (main): Likewise.
27036         * tests/test-unsetenv.c (main): Silence warning about string
27037         literal.
27038         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
27039
27040 2009-12-23  Bruno Haible  <bruno@clisp.org>
27041
27042         * tests/test-localename.c (test_locale_name): New function, extracted
27043         from main. Also test mixed situations.
27044         (test_locale_name_posix, test_locale_name_environ,
27045         test_locale_name_default): New functions.
27046         (main): Invoke them all.
27047         * modules/localename-tests (configure.ac): Test for newlocale.
27048
27049 2009-12-23  Bruno Haible  <bruno@clisp.org>
27050
27051         unistd: Ensure getcwd gets declared before being overridden.
27052         * lib/unistd.in.h: Conditionally include <io.h>.
27053
27054 2009-12-22  Bruno Haible  <bruno@clisp.org>
27055
27056         wchar: Diagnose broken combination of glibc and gcc versions and flags.
27057         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
27058         (gl_WCHAR_H): Invoke it.
27059         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
27060         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
27061         Reported by Karl Berry <karl@freefriends.org>.
27062
27063 2009-12-22  Eric Blake  <ebb9@byu.net>
27064
27065         math, unistd: avoid redundant includes
27066         * lib/math.in.h (isnan): No need to re-include <math.h>.
27067         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
27068
27069         getsubopt: work around cygwin bug
27070         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
27071         avoid conflicting with system getsubopt.
27072         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
27073         bug.
27074
27075         getopt: synchronize from glibc
27076         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
27077         parameter order.  Adjust all callers.
27078         (_getopt_internal_r, main): Adjust quoting in error messages.
27079         Drop considerations for outdated POSIX 1003.2 error message.
27080         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
27081         callers.
27082         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
27083
27084         test-getopt: test stderr behavior
27085         * modules/getopt-posix-tests (Depends-on): Add dup2.
27086         * tests/test-getopt.c (ASSERT): Avoid stderr.
27087         (main): Move stderr to a temporary file.
27088         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
27089         Instead, add parameter to inform caller if output occurred.
27090         (test_getopt): Adjust all existing tests to expect silence, and
27091         add new tests of leading ":".
27092         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
27093         glibc shortcomings with leading "-:" or "+:" in optstring.
27094         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
27095         Likewise.
27096         * doc/posix-functions/getopt.texi (getopt): Likewise.
27097
27098         test-getopt: enhance test
27099         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
27100         supports optind=0.
27101         * tests/test-getopt.c (OPTIND_MIN): Move...
27102         * tests/test-getopt.h (OPTIND_MIN): ...here.
27103         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
27104         Require that optind=0 works, since modern BSD supports it in
27105         addition to optreset, and since coreutils expects it.
27106         (test_getopt_long_only): New test.
27107         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
27108         glibc shortcomings with 'W;', and enforcement of optind=0.
27109         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
27110         Likewise.
27111
27112 2009-12-21  Bruno Haible  <bruno@clisp.org>
27113
27114         localename: Improvements for MacOS X and Cygwin.
27115         * lib/localename.h (gl_locale_name_environ): New declaration.
27116         * lib/localename.c (gl_locale_name_environ): New function, extracted from
27117         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
27118         (gl_locale_name_posix): Invoke it.
27119         (gl_locale_name_default): Add comments. Use Windows native API also on
27120         Cygwin.
27121
27122 2009-12-21  Bruno Haible  <bruno@clisp.org>
27123
27124         Update list of Win32 locale ids.
27125         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
27126         (LANG_SAMI): Renamed from LANG_SAAMI.
27127         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
27128         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
27129         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
27130         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
27131         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
27132         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
27133         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
27134         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
27135         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
27136         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
27137         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
27138         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
27139         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
27140         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
27141         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
27142         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
27143         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
27144         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
27145         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
27146         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
27147         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
27148         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
27149         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
27150         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
27151         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
27152         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
27153         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
27154         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
27155         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
27156         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
27157         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
27158         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
27159         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
27160         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
27161         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
27162         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
27163         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
27164         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
27165         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
27166         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
27167         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
27168         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
27169         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
27170         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
27171         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
27172         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
27173         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
27174         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
27175         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
27176         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
27177         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
27178         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
27179         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
27180         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
27181         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
27182         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
27183         Add more languages and countries for Sami, Sorbian. Add more countries
27184         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
27185         for Pashto. Change country for Syriac, Tswana.
27186
27187 2009-12-21  Eric Blake  <ebb9@byu.net>
27188
27189         test-utimens: avoid spurious failure
27190         * tests/test-chown.h (nap): Factor...
27191         * tests/nap.h: ...into new file.
27192         * tests/test-lchown.h (nap): Avoid duplication.
27193         * tests/test-utimens-common.h (nap): Use shared implementation,
27194         necessary on file systems with 1-second resolution.
27195         * modules/chown-tests (Files): Include new file.
27196         * modules/fdutimensat-tests (Files): Likewise.
27197         * modules/futimens-tests (Files): Likewise.
27198         * modules/lchown-tests (Files): Likewise.
27199         * modules/openat-tests (Files): Likewise.
27200         * modules/utimens-tests (Files): Likewise.
27201         * modules/utimensat-tests (Files): Likewise.
27202
27203 2009-12-19  Eric Blake  <ebb9@byu.net>
27204
27205         futimens, utimensat: work around Linux bug
27206         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
27207         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
27208         * lib/utimensat.c (rpl_utimensat): Work around it.
27209         * lib/futimens.c (rpl_futimens): Adjust comment.
27210
27211         utimens: work around Linux ctime bug
27212         * lib/utimens.c (detect_ctime_bug): New helper function.
27213         (update_timespec): Differentiate between workaround needed for
27214         this bug vs. what is needed for systems that lack utimensat.
27215         (fdutimens, lutimens): Work around bug.
27216
27217         utimens: check for ctime update
27218         * tests/test-utimens-common.h (check_ctime): Define.
27219         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
27220         * tests/test-futimens.h (test_futimens): Likewise.
27221         * tests/test-lutimens.h (test_lutimens): Likewise.
27222         * doc/posix-functions/futimens.texi (futimens): Document the bug.
27223         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
27224
27225 2009-12-19  Bruno Haible  <bruno@clisp.org>
27226
27227         dprintf-posix: Check against memory leak fixed on 2009-12-15.
27228         * tests/test-dprintf-posix2.sh: New file.
27229         * tests/test-dprintf-posix2.c: New file.
27230         * modules/dprintf-posix-tests (Files): Add them.
27231         (configure.ac): Check for getrlimit and setrlimit.
27232         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
27233
27234 2009-12-19  Bruno Haible  <bruno@clisp.org>
27235
27236         fprintf-posix: Check against memory leak fixed on 2009-12-15.
27237         * tests/test-fprintf-posix3.sh: New file.
27238         * tests/test-fprintf-posix3.c: New file.
27239         * modules/fprintf-posix-tests (Files): Add them.
27240         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
27241
27242 2009-12-19  Eric Blake  <ebb9@byu.net>
27243
27244         dirfd: fix prototype
27245         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
27246         * lib/dirfd.c (dirfd): Likewise.
27247
27248         canonicalize: reduce memory usage
27249         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
27250         allocation to size.
27251         Reported by Solar Designer <solar@openwall.com>.
27252
27253 2009-12-19  Bruno Haible  <bruno@clisp.org>
27254
27255         New module attribute 'Applicability'.
27256         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
27257         * gnulib-tool: New option --extract-applicability.
27258         (func_usage): Document it.
27259         (sed_extract_prog): Recognize it.
27260         (func_get_applicability): New function.
27261         (func_import): Generalize handling of 'link-warning' module.
27262         * modules/link-warning (Applicability): New section.
27263         * modules/arg-nonnull (Applicability): New section.
27264         Repoted by Simon Josefsson <simon@josefsson.org>.
27265
27266 2009-12-19  Bruno Haible  <bruno@clisp.org>
27267
27268         fflush: tweak
27269         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
27270         * lib/fseeko.c (rpl_fseeko): Likewise.
27271
27272 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
27273
27274         * lib/gl_list.h: Fix typo in comment.
27275
27276 2009-12-16  Eric Blake  <ebb9@byu.net>
27277
27278         fcntl: use to simplify other modules
27279         * modules/cloexec (Depends-on): Add fcntl.
27280         * modules/fchdir (Depends-on): Likewise.
27281         * modules/fd-safer-flag (Depends-on): Likewise.
27282         * modules/unistd-safer (Depends-on): Likewise.
27283         * modules/dup3 (configure.ac): Set module indicator.
27284         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
27285         missing.
27286         * lib/fchdir.c (_gl_register_dup): Fix comment.
27287         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
27288         * lib/dup-safer.c (dup_safer): Likewise.
27289         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
27290         * lib/dup3.c (dup3): Likewise.
27291         * tests/test-fchdir.c (main): Enhance test.
27292         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
27293
27294         fcntl: port portions of fcntl to mingw
27295         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
27296         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
27297         replacement for mingw.
27298         * modules/fcntl (Description): Update.
27299         (Depends-on): Add dup2.
27300         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
27301         * modules/fcntl-h (Makefile.am): Substitute it.
27302         * lib/fcntl.in.h (fcntl): Update declaration.
27303         (F_DUPFD, F_GETFD): New macros, when needed.
27304         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
27305         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
27306         * tests/test-fcntl.c (check_flags, main): Enhance test for items
27307         we now guarantee.
27308
27309         fcntl: work around cygwin bug in F_DUPFD
27310         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
27311         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
27312         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
27313         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
27314         * doc/posix-functions/fcntl.texi (fcntl): Document it.
27315
27316         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
27317         * modules/fcntl (Files): List new files.
27318         (configure.ac): Run a test.
27319         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
27320         * lib/fcntl.c (rpl_fcntl): Likewise.
27321         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
27322         (gl_FCNTL_H): Always replace fcntl.h.
27323         * modules/fcntl-h (Makefile.am): Substitute witnesses.
27324         * lib/fcntl.in.h (fcntl): Declare replacement.
27325         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
27326         needed, plus a witness.
27327         * doc/posix-functions/fcntl.texi (fcntl): Document this.
27328         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
27329         * tests/test-fcntl.c: New file.
27330         * modules/fcntl-tests: Likewise.
27331
27332         binary-io: avoid potential compilation warning
27333         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
27334         directives.
27335
27336         fflush: avoid compilation error on NetBSD
27337         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
27338         between off_t and fpos_t, since the latter is sometimes a struct.
27339         * lib/fseeko.c (rpl_fseeko): Likewise.
27340         Reported by Alexander Nasonov <alnsn@yandex.ru>.
27341
27342 2009-12-15  Eric Blake  <ebb9@byu.net>
27343
27344         fcntl-h, stdio, sys_ioctl: fix declarations
27345         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
27346         function must not take arguments.
27347         * lib/sys_ioctl.in.h (ioctl): Likewise.
27348         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
27349         (open): Add a link warning.
27350
27351 2009-12-15  Jim Meyering  <meyering@redhat.com>
27352
27353         areadlink, areadlink-with-size: relax license to LGPLv2+
27354         * modules/areadlink (License): Relax to LGPLv2+.
27355         * modules/areadlink-with-size (License): Likewise.
27356
27357 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
27358             Bruno Haible  <bruno@clisp.org>
27359
27360         *printf: Fix memory leak.
27361         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
27362         * lib/vfprintf.c (vfprintf): Likewise.
27363         * lib/dprintf.c (dprintf): Likewise.
27364         * lib/vdprintf.c (vdprintf): Likewise.
27365
27366 2009-12-14  Eric Blake  <ebb9@byu.net>
27367
27368         accept4: adjust module dependencies
27369         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
27370
27371         utimens: one more try at avoiding compiler warning
27372         * lib/utimens.c (lutimens): Lower scope of result.
27373
27374 2009-12-13  Bruno Haible  <bruno@clisp.org>
27375
27376         Move the malloc checking from module 'list' to new module 'xlist'.
27377         * modules/xlist: New file.
27378         * lib/gl_xlist.h: New file.
27379         * lib/gl_xlist.c: New file.
27380         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
27381         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
27382         gl_list_add_last, gl_list_add_before, gl_list_add_after,
27383         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
27384         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
27385         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
27386         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
27387         gl_sortedlist_nx_add): New declarations.
27388         (struct gl_list_implementation): Rename and change methods accordingly.
27389         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
27390         (gl_list_nx_create): Renamed from gl_list_create.
27391         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
27392         (gl_list_nx_set_at): Renamed from gl_list_set_at.
27393         (gl_list_nx_add_first): Renamed from gl_list_add_first.
27394         (gl_list_nx_add_last): Renamed from gl_list_add_last.
27395         (gl_list_nx_add_before): Renamed from gl_list_add_before.
27396         (gl_list_nx_add_after): Renamed from gl_list_add_after.
27397         (gl_list_nx_add_at): Renamed from gl_list_add_at.
27398         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
27399         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
27400         gl_list_create_empty.
27401         (gl_list_nx_create): Renamed from gl_list_create.
27402         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
27403         (gl_list_nx_set_at): Renamed from gl_list_set_at.
27404         (gl_list_nx_add_first): Renamed from gl_list_add_first.
27405         (gl_list_nx_add_last): Renamed from gl_list_add_last.
27406         (gl_list_nx_add_before): Renamed from gl_list_add_before.
27407         (gl_list_nx_add_after): Renamed from gl_list_add_after.
27408         (gl_list_nx_add_at): Renamed from gl_list_add_at.
27409         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
27410         * lib/gl_array_list.c: Don't include xalloc.h.
27411         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
27412         NULL upon out-of-memory.
27413         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
27414         out-of-memory.
27415         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
27416         Change return type to 'int'.
27417         (gl_array_nx_set_at): Renamed from gl_array_set_at.
27418         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
27419         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
27420         upon out-of-memory.
27421         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
27422         upon out-of-memory.
27423         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
27424         upon out-of-memory.
27425         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
27426         upon out-of-memory.
27427         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
27428         out-of-memory.
27429         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
27430         Update.
27431         (gl_array_list_implementation): Update.
27432         * lib/gl_carray_list.c: Don't include xalloc.h.
27433         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
27434         Return NULL upon out-of-memory.
27435         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
27436         out-of-memory.
27437         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
27438         Change return type to 'int'.
27439         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
27440         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
27441         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
27442         upon out-of-memory.
27443         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
27444         upon out-of-memory.
27445         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
27446         out-of-memory.
27447         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
27448         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
27449         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
27450         Update.
27451         (gl_carray_list_implementation): Update.
27452         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
27453         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
27454         gl_linked_create_empty. Return NULL upon out-of-memory.
27455         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
27456         out-of-memory.
27457         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
27458         Change return type to 'int'. Return -1 upon out-of-memory.
27459         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
27460         out-of-memory.
27461         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
27462         upon out-of-memory.
27463         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
27464         upon out-of-memory.
27465         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
27466         NULL upon out-of-memory.
27467         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
27468         upon out-of-memory.
27469         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
27470         out-of-memory.
27471         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
27472         Update.
27473         * lib/gl_linked_list.c: Don't include xalloc.h.
27474         (gl_linked_list_implementation): Update.
27475         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
27476         (add_to_bucket): Change return type to 'int'.
27477         (gl_linkedhash_list_implementation): Update.
27478         * lib/gl_anytree_list1.h (free_subtree): New function.
27479         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
27480         gl_tree_create_empty. Return NULL upon out-of-memory.
27481         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
27482         Change return type to 'int'. Return -1 upon out-of-memory.
27483         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
27484         out-of-memory.
27485         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
27486         (gl_tree_remove_node): New function, moved here from
27487         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
27488         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
27489         Update.
27490         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
27491         malloc, not xmalloc. Return NULL upon out-of-memory.
27492         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
27493         out-of-memory.
27494         (gl_tree_remove_node_from_tree): New function, extracted from
27495         gl_tree_remove_node.
27496         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
27497         upon out-of-memory.
27498         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
27499         out-of-memory.
27500         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
27501         upon out-of-memory.
27502         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
27503         upon out-of-memory.
27504         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
27505         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
27506         not xmalloc. Return NULL upon out-of-memory.
27507         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
27508         out-of-memory.
27509         (gl_tree_remove_node_from_tree): New function, extracted from
27510         gl_tree_remove_node.
27511         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
27512         upon out-of-memory.
27513         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
27514         out-of-memory.
27515         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
27516         upon out-of-memory.
27517         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
27518         upon out-of-memory.
27519         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
27520         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
27521         gl_anytree_list1.h before gl_anyavltree_list2.h.
27522         (gl_avltree_list_implementation): Update.
27523         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
27524         gl_anytree_list1.h before gl_anyavltree_list2.h.
27525         (gl_rbtree_list_implementation): Update.
27526         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
27527         Change return type to 'int'. Return -1 upon out-of-memory. Use
27528         __builtin_expect.
27529         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
27530         (gl_avltreehash_list_implementation): Update.
27531         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
27532         (gl_rbtreehash_list_implementation): Update.
27533         * modules/array-list (Depends-on): Remove xalloc.
27534         * modules/carray-list (Depends-on): Likewise.
27535         * modules/linked-list (Depends-on): Likewise.
27536         * modules/linkedhash-list (Depends-on): Likewise.
27537         * modules/avltree-list (Depends-on): Likewise.
27538         * modules/rbtree-list (Depends-on): Likewise.
27539         * modules/avltreehash-list (Depends-on): Likewise.
27540         * modules/rbtreehash-list (Depends-on): Likewise.
27541
27542         * modules/xsublist: New file.
27543         * lib/gl_xsublist.h: New file.
27544         * lib/gl_xsublist.c: New file.
27545         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
27546         (gl_sublist_nx_create): New declaration.
27547         * lib/gl_sublist.c: Don't include xalloc.h.
27548         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
27549         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
27550         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
27551         Change return type to 'int'. Return -1 upon out-of-memory.
27552         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
27553         upon out-of-memory.
27554         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
27555         NULL upon out-of-memory.
27556         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
27557         upon out-of-memory.
27558         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
27559         NULL upon out-of-memory.
27560         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
27561         NULL upon out-of-memory.
27562         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
27563         upon out-of-memory.
27564         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
27565         (gl_sublist_list_implementation): Update.
27566         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
27567         upon out-of-memory.
27568         * modules/sublist (Depends-on): Remove xalloc.
27569
27570         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
27571         * tests/test-carray_list.c: Likewise.
27572         * tests/test-linked_list.c: Likewise.
27573         * tests/test-linkedhash_list.c: Likewise.
27574         * tests/test-avltree_list.c: Likewise.
27575         * tests/test-rbtree_list.c: Likewise.
27576         * tests/test-avltreehash_list.c: Likewise.
27577         * tests/test-rbtreehash_list.c: Likewise.
27578         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
27579         * modules/carray-list-tests (Makefile.am): Likewise.
27580         * modules/linked-list-tests (Makefile.am): Likewise.
27581         * modules/linkedhash-list-tests (Makefile.am): Likewise.
27582         * modules/avltree-list-tests (Makefile.am): Likewise.
27583         * modules/rbtree-list-tests (Makefile.am): Likewise.
27584         * modules/avltreehash-list-tests (Makefile.am): Likewise.
27585         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
27586
27587         * NEWS: Mention the changes.
27588
27589         * lib/clean-temp.c: Include gl_xlist.h.
27590         * modules/clean-temp (Depends-on): Add xlist.
27591
27592         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
27593         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
27594
27595         * tests/test-array_oset.c: Include gl_xlist.h.
27596         * modules/array-oset-tests (Depends-on): Add xlist.
27597
27598         Reported by José E. Marchesi <jemarch@gnu.org>.
27599
27600 2009-12-13  Bruno Haible  <bruno@clisp.org>
27601
27602         Move the malloc checking from module 'oset' to new module 'xoset'.
27603         * modules/xoset: New file.
27604         * lib/gl_xoset.h: New file.
27605         * lib/gl_xoset.c: New file.
27606         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
27607         declarations.
27608         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
27609         (struct gl_oset_implementation): Rename and change methods accordingly.
27610         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
27611         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
27612         'int'. Mark as __warn_unused_result__.
27613         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
27614         gl_oset_create_empty.
27615         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
27616         'int'.
27617         * lib/gl_array_oset.c: Don't include xalloc.h.
27618         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
27619         malloc, not xmalloc.
27620         (grow): Change return type to 'int'. Don't call xalloc_die.
27621         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
27622         to 'int'.
27623         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
27624         'int'.
27625         (gl_array_oset_implementation): Update.
27626         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
27627         gl_tree_create_empty.
27628         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
27629         'int'.
27630         * lib/gl_avltree_oset.c: Don't include xalloc.h.
27631         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
27632         xmalloc.
27633         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
27634         not xmalloc.
27635         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
27636         xmalloc.
27637         (gl_avltree_oset_implementation): Update.
27638         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
27639         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
27640         xmalloc.
27641         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
27642         not xmalloc.
27643         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
27644         xmalloc.
27645         (gl_rbtree_oset_implementation): Update.
27646         * modules/array-oset (Depends-on): Remove xalloc.
27647         * modules/avltree-oset (Depends-on): Likewise.
27648         * modules/rbtree-oset (Depends-on): Likewise.
27649         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
27650         * tests/test-avltree_oset.c: Likewise.
27651         * tests/test-rbtree_oset.c: Likewise.
27652         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
27653         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
27654         * modules/rbtree-oset-tests (Makefile.am): Likewise.
27655         * NEWS: Mention the change.
27656
27657 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
27658
27659         maint.mk: allow a project to override release-prep commands
27660         * top/maint.mk (alpha, beta, stable): Move release-preparatory
27661         commands into a new rule.
27662         (release-prep): New rule.
27663         (release-prep-hook): New overridable variable.
27664
27665 2009-12-13  Bruno Haible  <bruno@clisp.org>
27666
27667         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
27668
27669 2009-12-13  Jim Meyering  <meyering@redhat.com>
27670
27671         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
27672         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
27673
27674 2009-12-12  Bruno Haible  <bruno@clisp.org>
27675
27676         duplocale: Tweak.
27677         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
27678
27679 2009-12-12  Karl Berry  <karl@gnu.org>
27680
27681         * config/srclist.txt (strtoll.c): tab changes, no more sync.
27682
27683 2009-12-12  Bruno Haible  <bruno@clisp.org>
27684
27685         * m4/po.m4: Undo incorrect untabification.
27686
27687 2009-12-12  Bruno Haible  <bruno@clisp.org>
27688
27689         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
27690         * modules/c-strtod (Depends-on): Add locale.
27691         * modules/c-strtold (Depends-on): Likewise.
27692
27693 2009-12-12  Bruno Haible  <bruno@clisp.org>
27694
27695         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
27696
27697 2009-12-11  Eric Blake  <ebb9@byu.net>
27698
27699         setenv: relax requirement in light of POSIX ruling
27700         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
27701         not NULL.
27702         * tests/test-setenv.c (main): Relax test.
27703         * tests/test-unsetenv.c (main): Likewise.
27704         * doc/posix-functions/setenv.texi (setenv): Document this.
27705         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
27706
27707 2009-12-11  Bruno Haible  <bruno@clisp.org>
27708
27709         New module 'fd-safer-flag'.
27710         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
27711         * lib/dup-safer.c (dup_safer_flag): Remove function.
27712         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
27713         * lib/fd-safer.c (fd_safer_flag): Remove function.
27714         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
27715         * modules/cloexec (configure.ac): Drop indicator macro.
27716         * modules/fd-safer-flag: New file.
27717         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
27718         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
27719         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
27720
27721 2009-12-11  Bruno Haible  <bruno@clisp.org>
27722
27723         Tests for module 'nl_langinfo'.
27724         * modules/nl_langinfo-tests: New file.
27725         * tests/test-nl_langinfo.sh: New file.
27726         * tests/test-nl_langinfo.c: New file.
27727
27728         New module 'nl_langinfo'.
27729         * lib/nl_langinfo.c: New file.
27730         * m4/nl_langinfo.m4: New file.
27731         * modules/nl_langinfo: New file.
27732         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
27733
27734 2009-12-11  Bruno Haible  <bruno@clisp.org>
27735
27736         Tests for module 'langinfo'.
27737         * modules/langinfo-tests: New file.
27738         * tests/test-langinfo.c: New file.
27739
27740         New module 'langinfo'.
27741         * lib/langinfo.in.h: New file.
27742         * m4/langinfo_h.m4: New file.
27743         * modules/langinfo: New file.
27744         * doc/posix-headers/langinfo.texi: Mention the new module.
27745
27746 2009-12-11  Bruno Haible  <bruno@clisp.org>
27747
27748         * lib/config.charset: Untabify.
27749
27750 2009-12-11  Bruno Haible  <bruno@clisp.org>
27751
27752         * modules/unistd-safer (configure.ac): Drop indicator macro.
27753
27754 2009-12-11  Bruno Haible  <bruno@clisp.org>
27755
27756         Move pipe2-safer code to its own file.
27757         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
27758         * lib/pipe-safer.c (pipe2_safer): Remove function.
27759         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
27760         (Makefile.am): Add it to lib_SOURCES.
27761
27762 2009-12-10  Bruno Haible  <bruno@clisp.org>
27763
27764         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
27765
27766 2009-12-10  Bruno Haible  <bruno@clisp.org>
27767
27768         Declare which arguments expect non-NULL values, for GCC and clang.
27769         * build-aux/arg-nonnull.h: New file.
27770         * modules/arg-nonnull: New file.
27771         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
27772         (inet_ntop, inet_pton): Use it.
27773         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
27774         (closedir, dirfd, opendir, scandir, alphasort): Use it.
27775         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
27776         (open, openat): Use it.
27777         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
27778         (fnmatch): Use it.
27779         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
27780         (getopt, getopt_long, getopt_long_only): Use it.
27781         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
27782         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
27783         Use it.
27784         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
27785         (iconv_open): Use it.
27786         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
27787         (strtoimax, strtoumax): Use it.
27788         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
27789         (duplocale): Use it.
27790         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
27791         (frexp, frexpl): Use it.
27792         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
27793         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
27794         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
27795         (tsearch, tfind, tdelete, twalk): Use it.
27796         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
27797         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
27798         sigpending): Use it.
27799         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
27800         (posix_spawn, posix_spawnp, posix_spawnattr_init,
27801         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
27802         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
27803         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
27804         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
27805         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
27806         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
27807         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
27808         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
27809         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
27810         Use it.
27811         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
27812         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
27813         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
27814         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
27815         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
27816         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
27817         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
27818         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
27819         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
27820         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
27821         strtoull, unsetenv): Use it.
27822         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
27823         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
27824         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
27825         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
27826         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
27827         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
27828         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
27829         (strcasecmp, strncasecmp): Use it.
27830         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
27831         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
27832         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
27833         rpl_setsockopt): Use it.
27834         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
27835         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
27836         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
27837         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
27838         (gettimeofday): Use it.
27839         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
27840         (times): Use it.
27841         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
27842         (uname): Use it.
27843         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
27844         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
27845         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
27846         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
27847         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
27848         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
27849         unlinkat, write): Use it.
27850         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
27851         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
27852         * lib/argv-iter.h: Include arg-nonnull.h.
27853         (_ATTRIBUTE_NONNULL_): Remove macro.
27854         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
27855         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
27856         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
27857         optimization.
27858         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
27859         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
27860         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
27861         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
27862         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
27863         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
27864         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
27865         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
27866         * modules/arpa_inet (Depends-on): Add arg-nonnull.
27867         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
27868         * modules/dirent (Depends-on): Add arg-nonnull.
27869         (Makefile.am): Insert arg-nonnull.h into dirent.h.
27870         * modules/fcntl-h (Depends-on): Add arg-nonnull.
27871         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
27872         * modules/fnmatch (Depends-on): Add arg-nonnull.
27873         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
27874         * modules/getopt-posix (Depends-on): Add arg-nonnull.
27875         (Makefile.am): Insert arg-nonnull.h into getopt.h.
27876         * modules/glob (Depends-on): Add arg-nonnull.
27877         (Makefile.am): Insert arg-nonnull.h into glob.h.
27878         * modules/iconv_open (Depends-on): Add arg-nonnull.
27879         (Makefile.am): Insert arg-nonnull.h into iconv.h.
27880         * modules/inttypes (Depends-on): Add arg-nonnull.
27881         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
27882         * modules/locale (Depends-on): Add arg-nonnull.
27883         (Makefile.am): Insert arg-nonnull.h into locale.h.
27884         * modules/math (Depends-on): Add arg-nonnull.
27885         (Makefile.am): Insert arg-nonnull.h into math.h.
27886         * modules/netdb (Depends-on): Add arg-nonnull.
27887         (Makefile.am): Insert arg-nonnull.h into netdb.h.
27888         * modules/search (Depends-on): Add arg-nonnull.
27889         (Makefile.am): Insert arg-nonnull.h into search.h.
27890         * modules/signal (Depends-on): Add arg-nonnull.
27891         (Makefile.am): Insert arg-nonnull.h into signal.h.
27892         * modules/spawn (Depends-on): Add arg-nonnull.
27893         (Makefile.am): Insert arg-nonnull.h into spawn.h.
27894         * modules/stdio (Depends-on): Add arg-nonnull.
27895         (Makefile.am): Insert arg-nonnull.h into stdio.h.
27896         * modules/stdlib (Depends-on): Add arg-nonnull.
27897         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
27898         * modules/string (Depends-on): Add arg-nonnull.
27899         (Makefile.am): Insert arg-nonnull.h into string.h.
27900         * modules/strings (Depends-on): Add arg-nonnull.
27901         (Makefile.am): Insert arg-nonnull.h into strings.h.
27902         * modules/sys_socket (Depends-on): Add arg-nonnull.
27903         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
27904         * modules/sys_stat (Depends-on): Add arg-nonnull.
27905         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
27906         * modules/sys_time (Depends-on): Add arg-nonnull.
27907         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
27908         * modules/sys_times (Depends-on): Add arg-nonnull.
27909         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
27910         * modules/sys_utsname (Depends-on): Add arg-nonnull.
27911         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
27912         * modules/time (Depends-on): Add arg-nonnull.
27913         (Makefile.am): Insert arg-nonnull.h into time.h.
27914         * modules/unistd (Depends-on): Add arg-nonnull.
27915         (Makefile.am): Insert arg-nonnull.h into unistd.h.
27916         * modules/wchar (Depends-on): Add arg-nonnull.
27917         (Makefile.am): Insert arg-nonnull.h into wchar.h.
27918         * modules/argv-iter (Depends-on): Add arg-nonnull.
27919         * tests/test-canonicalize.c (null_ptr): New function.
27920         (main): Use it.
27921         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
27922         (main): Use it.
27923         * tests/test-memmem.c (null_ptr): New function.
27924         (main): Use it.
27925         Reported by Jim Meyering.
27926
27927 2009-12-10  Bruno Haible  <bruno@clisp.org>
27928
27929         Use spaces for indentation, not tabs.
27930         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
27931         * m4/*.m4: Untabify.
27932         * build-aux/*.h: Untabify.
27933         * tests/**/*.[hc]: Untabify.
27934         * README: New section "Indent with spaces, not TABs", based on
27935         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
27936         * NEWS: Mention the change.
27937
27938 2009-12-10  Bruno Haible  <bruno@clisp.org>
27939
27940         pty test: Fix link error.
27941         * modules/pty-tests (Makefile.am): Add the default LDADD value to
27942         test_pty_LDADD.
27943
27944 2009-12-07  Simon Josefsson  <simon@josefsson.org>
27945
27946         * modules/pty: New file.
27947         * modules/pty-tests: New file.
27948         * m4/pty.m4: New file.
27949         * tests/test-pty.c: New file.
27950         * doc/glibc-headers/pty.texi: Modified.
27951         * doc/glibc-functions/forkpty.texi: Modified.
27952         * doc/glibc-functions/openpty.texi: Modified.
27953
27954 2009-12-10  Bruno Haible  <bruno@clisp.org>
27955
27956         Avoid syntax error in C++ mode.
27957         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
27958
27959 2009-12-10  Bruno Haible  <bruno@clisp.org>
27960
27961         Use sed with option -e.
27962         * gnulib-tool (func_version, func_emit_copyright_notice,
27963         func_emit_initmacro_end, func_import, func_create_testdir): Pass
27964         option -e to sed.
27965         * modules/link-warning (Makefile.am): Likewise.
27966
27967 2009-12-10  Jim Meyering  <meyering@redhat.com>
27968
27969         mgetgroups: do not write bytes beyond end of malloc'd buffer
27970         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
27971         username, we call getgroups with a one-element-shorter buffer,
27972         but still told it the length was original, max_n_groups.
27973
27974 2009-12-09  Eric Blake  <ebb9@byu.net>
27975
27976         cloexec: relax license
27977         * modules/cloexec (Maintainer): Add myself.
27978         (License): Use LGPL, not GPL.
27979
27980         link-warning: optimize generation
27981         * modules/link-warning (Makefile.am): Reduce process usage.
27982
27983 2009-12-09  Bruno Haible  <bruno@clisp.org>
27984
27985         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
27986         workaround was added on 2009-11-17.
27987
27988 2009-12-09  Jim Meyering  <meyering@redhat.com>
27989             Bruno Haible  <bruno@clisp.org>
27990
27991         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
27992         * modules/link-warning (Makefile.am): Make the comment-removing sed
27993         command more robust in the face of bootstrap-prepended comment lines.
27994
27995 2009-12-09  Bruno Haible  <bruno@clisp.org>
27996
27997         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
27998         most one group.
27999
28000 2009-12-09  Simon Josefsson <simon@josefsson.org>
28001             Bruno Haible  <bruno@clisp.org>
28002
28003         * build-aux/link-warning.h: Add copyright notice.
28004         * modules/link-warning (Makefile.am): Generate link-warning.h from
28005         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
28006         * NEWS: Mention change in link-warning module.
28007         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
28008         * modules/dirent (Makefile.am): Add dependency to dirent.h.
28009         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
28010         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
28011         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
28012         * modules/math (Makefile.am): Add dependency to math.h.
28013         * modules/search (Makefile.am): Add dependency to search.h.
28014         * modules/signal (Makefile.am): Add dependency to signal.h.
28015         * modules/spawn (Makefile.am): Add dependency to spawn.h.
28016         * modules/stdio (Makefile.am): Add dependency to stdio.h.
28017         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
28018         * modules/string (Makefile.am): Add dependency to string.h.
28019         * modules/strings (Makefile.am): Add dependency to strings.h.
28020         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
28021         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
28022         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
28023         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
28024         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
28025         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
28026         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
28027         * modules/unistd (Makefile.am): Add dependency to unistd.h.
28028         * modules/wchar (Makefile.am): Add dependency to wchar.h.
28029
28030 2009-12-09  Bruno Haible  <bruno@clisp.org>
28031
28032         fchdir: Optimize away rpl_fstat when possible.
28033         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
28034         REPLACE_OPEN_DIRECTORY.
28035         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
28036
28037 2009-12-09  Bruno Haible  <bruno@clisp.org>
28038
28039         * lib/fchdir.c: Update comment.
28040
28041 2009-12-09  Bruno Haible  <bruno@clisp.org>
28042
28043         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
28044
28045 2009-12-08  Eric Blake  <ebb9@byu.net>
28046
28047         fchdir: avoid memory leak on re-registration.
28048         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
28049
28050 2009-12-08  Jim Meyering  <meyering@redhat.com>
28051
28052         init.sh: avoid Solaris 10 /bin/sh portability problem
28053         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
28054         sourced script:
28055           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
28056           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
28057           bar
28058         tests/init.sh relied on that, accepting a --set-path=DIR argument,
28059         and two tests used that idiom.
28060         * tests/init.sh: Update suggested usage comments.
28061         (path_prepend_): New function, to be used in place
28062         of the --src-path=DIR option.
28063         (setup_): Move PATH-prepending code into path_prepend_.
28064         * tests/test-pread.sh: Adapt to new usage.
28065         * tests/test-xalloc-die.sh: Likewise.
28066
28067 2009-12-08  Simon Josefsson  <simon@josefsson.org>
28068
28069         * doc/gnulib.texi (Glibc pty.h): Add.
28070         * doc/glibc-functions/forkpty.texi: Add.
28071         * doc/glibc-functions/openpty.texi: Add.
28072         Suggested by Bruno Haible.
28073
28074 2009-12-08  Eric Blake  <ebb9@byu.net>
28075
28076         fchdir: fix logic bugs
28077         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
28078         * tests/test-fchdir.c (main): Enhance test.
28079         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
28080         is in use.
28081
28082         dup2: fix logic bugs
28083         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
28084         REPLACE_DUP2 to decide when rpl_dup2 is needed.
28085         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
28086         exists.
28087         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
28088
28089 2009-12-07  Eric Blake  <ebb9@byu.net>
28090
28091         unlink: fix m4 detection
28092         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
28093
28094         unistd-safer: add unit test
28095         * modules/unistd-safer-tests: New file.
28096         * tests/test-dup-safer.c: Likewise.
28097         * tests/test-cloexec.c (setmode): Avoid compiler warning.
28098         * tests/test-dup2.c (setmode): Likewise.
28099         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
28100
28101         cloexec: preserve text vs. binary across dup_cloexec
28102         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
28103         mode.
28104         * modules/dup2-tests (Depends-on): Add binary-io.
28105         * modules/cloexec-tests (Depends-on): Likewise.
28106         * tests/test-dup2.c (setmode, is_mode): New helpers.
28107         (main): Add tests that translation mode is preserved.
28108         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
28109         Reported by Bruno Haible.
28110
28111         mgetgroups: reduce duplicate listings
28112         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
28113         resulting array.
28114         * tests/test-chown.h (test_chown): Simplify client.
28115         * tests/test-lchown.h (test_lchown): Likewise.
28116
28117 2009-12-06  Bruno Haible  <bruno@clisp.org>
28118
28119         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
28120         value.
28121
28122 2009-12-06  Bruno Haible  <bruno@clisp.org>
28123
28124         * lib/progname.c: Include stdio.h, stdlib.h.
28125         (set_program_name): Reject a NULL argument.
28126
28127 2009-12-05  Eric Blake  <ebb9@byu.net>
28128
28129         pipe2-safer: new module
28130         * modules/pipe2-safer: New file.
28131         * lib/unistd-safer.h (pipe2_safer): New prototype.
28132         * lib/unistd--.h (pipe2): New wrapper.
28133         * lib/pipe-safer.c (pipe2_safer): New function.
28134         * modules/pipe (Depends-on): Add pipe2-safer.
28135         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
28136
28137         stdlib-safer: preserve cloexec flag for mkostemp[s]
28138         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
28139         fd_safer_flag.
28140
28141         unistd-safer: allow preservation of cloexec status via flag
28142         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
28143         prototypes.
28144         * lib/dup-safer.c (dup_safer_flag): New function.
28145         * lib/fd-safer.c (fd_safer_flag): Likewise.
28146         * modules/cloexec (configure.ac): Set witness.
28147
28148         test-dup2: enhance test
28149         * modules/dup2-tests (Depends-on): Add cloexec.
28150         * tests/test-dup2.c (main): Enhance test.
28151
28152         cloexec: add dup_cloexec
28153         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
28154         header and comments.
28155         * lib/cloexec.c (set_cloexec_flag): Add comments.
28156         (dup_cloexec): New function, with mingw implementation borrowed
28157         from...
28158         * lib/w32spawn.h (dup_noinherit): ...here.
28159         * modules/execute (Depends-on): Add cloexec.
28160         * modules/pipe (Depends-on): Likewise.
28161         * modules/cloexec (Depends-on): Add dup2.
28162         * modules/cloexec-tests (Files): New file.
28163         * tests/test-cloexec.c: Likewise.
28164
28165         test-xalloc-die: fix test for mingw
28166         * modules/xalloc-die-tests (Files): Add tests/init.sh.
28167         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
28168         directory and .exe suffix off argv[0] output.
28169
28170         test-fseeko: fix test for mingw
28171         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
28172         than undefining fseek, so test will pass on mingw.
28173
28174 2009-12-05  Bruno Haible  <bruno@clisp.org>
28175
28176         * lib/progname.h (set_program_name): Clarify specification.
28177         * lib/progname.c (set_program_name): Likewise.
28178         Reported by Jim Meyering.
28179
28180 2009-12-05  Jim Meyering  <meyering@redhat.com>
28181
28182         maint.mk: backslash-escape parens in default regexp
28183         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
28184         backslash-escape the literal parentheses.
28185
28186         maint.mk: news-date-check: use grep -E
28187         * top/maint.mk (today): Define a Make variable, not a...
28188         (news-date-check): ...shell variable.
28189         (news-date-regexp): Use the Make variable.
28190         Use grep's -E option.  Change the failing diagnostic to mention
28191         the variable, $(news-date-regexp).
28192
28193 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
28194
28195         maintainer-makefile: allow customization of NEWS entry format
28196         * top/maint.mk (news-date-regexp): New overridable variable.
28197         (news-date-check): Use it.
28198
28199 2009-12-04  Eric Blake  <ebb9@byu.net>
28200
28201         mgetgroups: add xgetgroups, and avoid ENOSYS failures
28202         * lib/mgetgroups.h (xgetgroups): New prototype.
28203         * lib/mgetgroups.c (xgetgroups): New wrapper.
28204         (mgetgroups): Handle ENOSYS.
28205         * modules/mgetgroups (Depends-on): Add realloc.
28206         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
28207
28208         mgetgroups: avoid argument promotion issues with -1
28209         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
28210         for invalid gid_t.
28211         * tests/test-chown.h (getegid, test_chown): Likewise.
28212         * tests/test-lchown.h (getegid, test_lchown): Likewise.
28213
28214 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
28215
28216         exclude: Fix header file problems.
28217         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
28218
28219 2009-12-01  Jim Meyering  <meyering@redhat.com>
28220
28221         fts: fts_open: do not let an empty string cause immediate failure
28222         This is required in support of GNU rm, for which the command
28223         "rm A '' B" must process and remove both A and B, in spite of
28224         the empty string argument.
28225         * lib/fts.c (fts_open): Do not let the presence of an empty string
28226         cause fts_open to fail immediately.  Most fts-using tools must be
28227         able to process all arguments, in order, and can be expected to
28228         diagnose such arguments themselves.
28229
28230 2009-11-30  Eric Blake  <ebb9@byu.net>
28231
28232         utimens: fix compilation error
28233         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
28234         Declare variable at right scope.
28235
28236 2009-11-29  Jim Meyering  <meyering@redhat.com>
28237
28238         bootstrap: handle perl-5.11's changed --version output
28239         * build-aux/bootstrap (get_version): Handle perl separately,
28240         since perl-5.11's --version output is different.
28241
28242 2009-11-28  Jim Meyering  <meyering@redhat.com>
28243
28244         userspec: depend on the inttostr module, too
28245         * modules/userspec (Depends-on): Add inttostr.
28246
28247         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
28248         * lib/userspec.c (parse_with_separator): Do not accept a user ID
28249         number of MAXUID when it evaluates to (uid_t) -1.
28250         Likewise for group ID.  Reported by Matt McCutchen in
28251         <http://savannah.gnu.org/bugs/?28113>
28252
28253         userspec: reformat to use spaces, not TABs
28254         * lib/userspec.c: Expand TABs to spaces.
28255         Add Emacs' "indent-tabs-mode: nil" hint.
28256
28257 2009-11-27  Eric Blake  <ebb9@byu.net>
28258
28259         getopt-gnu: flush out another BSD bug
28260         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
28261         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
28262         flush out BSD bug.
28263         * tests/test-getopt.h (test_getopt): End lists with NULL.
28264         * tests/test-getopt_long.h (test_getopt_long): Likewise.
28265         (test_getopt_long_posix): Enhance test.
28266         * modules/getopt-posix-tests (Depends-on): Add stdbool.
28267         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
28268         getopt-gnu.
28269         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
28270         Likewise.
28271
28272 2009-11-27  Simon Josefsson  <simon@josefsson.org>
28273
28274         * modules/idpriv-droptemp-tests (Notice): Fix text.
28275
28276 2009-11-27  Jim Meyering  <meyering@redhat.com>
28277
28278         test-xalloc-die: avoid spurious failure due to libtool argv difference
28279         In a libtool-enabled project, this test would fail due to a difference
28280         in the emitted program name, e.g.,
28281         -test-xalloc-die: memory exhausted
28282         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
28283         Use program to avoid that.
28284         * modules/xalloc-die-tests (Depends-on): Add progname.
28285         * tests/test-xalloc-die.c: Include progname.h".
28286         (program_name): Remove decl.
28287         (main): Call set_program_name.
28288         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
28289
28290 2009-11-26  Richard Jones  <rjones@redhat.com>
28291
28292         w32sock: leave win32 error in place.
28293         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
28294
28295 2009-11-26  Eric Blake  <ebb9@byu.net>
28296
28297         init.sh: suggest to use skip_ and fail_ functions in comments
28298         * tests/init.sh: Add a sentence.
28299
28300 2009-11-25  Bruno Haible  <bruno@clisp.org>
28301
28302         init.sh: add documentation in comments
28303         * tests/init.sh: Add some developer and user documentation.
28304
28305 2009-11-26  Jim Meyering  <meyering@redhat.com>
28306
28307         init.sh: accommodate even those who specify bogus srcdir manually
28308         * tests/init.sh: Normally, srcdir is guaranteed by automake and
28309         configure-time tests to be sanitized, so that there is no need to
28310         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
28311         (with no double quotes) suffices.  However, since tests may be
28312         invoked manually, and since you may explicitly set srcdir to the
28313         name of a directory containing spaces, do quote its uses here.
28314         * tests/test-pread.sh: Likewise.
28315         Suggested by Bruno Haible.
28316
28317         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
28318         * tests/test-pread.sh: Write no data into the pipe, because
28319         test-pread actually reads none.  This avoids a diagnostic,
28320         "bash: echo: write error: Broken pipe", that arises in the unusual
28321         event something is ignoring SIGPIPE, and might be interpreted
28322         as some sort of failure.  Reported by Bruno Haible.
28323
28324 2009-11-25  Jim Meyering  <meyering@redhat.com>
28325
28326         test-pread: cover failure with ESPIPE and EINVAL
28327         * tests/test-pread.c (main): Test for failure, too.
28328         * tests/test-pread.sh: Invoke with stdin on a pipe.
28329         Suggested by Eric Blake.
28330
28331         pread: improvement and fix
28332         * modules/pread (Depends-on): Depend on lseek, for portability to
28333         e.g., mingw.  Suggested by Eric Blake.
28334         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
28335
28336         unistd.in.h: correct declaration of pread
28337         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
28338         Reported by Richard W.M. Jones.
28339
28340         test-pread.sh: distribute the test script
28341         * modules/pread-tests (Files): Include test-pread.sh.
28342
28343         test-pread.sh: clean up
28344         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
28345         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
28346         That is unnecessary, since it's always ".".
28347         Suggestion from Eric Blake.
28348
28349         test-pread.sh: make executable
28350         * tests/test-pread.sh: Set executable bit.
28351         Reported by Eric Blake.
28352
28353         correct typo in test-pread.sh
28354         * tests/test-pread.sh: Add #! line.
28355
28356         test pread
28357         * tests/test-pread.c: New file.
28358         * tests/test-pread.sh: Likewise.
28359         * modules/pread-tests: Likewise.
28360
28361         pread: new module
28362         * modules/pread: New file.
28363         * lib/unistd.in.h (pread): Define/declare.
28364         * lib/pread.c (pread): New file.
28365         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
28366         * modules/unistd (Makefile.am): Substitute witnesses.
28367         * doc/posix-functions/pread.texi (pread): Update.
28368         * MODULES.html.sh: Add pread.
28369
28370 2009-11-25  Jim Meyering  <meyering@redhat.com>
28371
28372         tests/init.sh: new file to be used via most *.sh tests
28373         * tests/init.sh: New file.
28374
28375 2009-11-25  Eric Blake  <ebb9@byu.net>
28376
28377         utimens: work around older Linux failure with symlinks
28378         * lib/utimens.c (lutimensat_works_really): New variable.
28379         (fdutimens, lutimens): Use it to manage kernels that support
28380         nanosecond times on files, but not on symlinks.
28381         Reported by OndÅ™ej Vašík.
28382
28383         utimes: fix configure grammar
28384         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
28385
28386 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
28387
28388         regex: Fix fastmap for multibyte character ranges.
28389         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
28390         characters when a multibyte character range is included.
28391
28392 2009-11-22  Andy Wingo  <wingo@pobox.com>
28393
28394         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
28395         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
28396
28397 2009-11-24  Bruno Haible  <bruno@clisp.org>
28398
28399         doc: Most *_l functions exist in MacOS X 10.5.
28400         * doc/posix-functions/duplocale.texi: Update platforms list.
28401         * doc/posix-functions/freelocale.texi: Likewise.
28402         * doc/posix-functions/newlocale.texi: Likewise.
28403         * doc/posix-functions/uselocale.texi: Likewise.
28404         * doc/posix-functions/isalnum_l.texi: Likewise.
28405         * doc/posix-functions/isalpha_l.texi: Likewise.
28406         * doc/posix-functions/isblank_l.texi: Likewise.
28407         * doc/posix-functions/iscntrl_l.texi: Likewise.
28408         * doc/posix-functions/isdigit_l.texi: Likewise.
28409         * doc/posix-functions/isgraph_l.texi: Likewise.
28410         * doc/posix-functions/islower_l.texi: Likewise.
28411         * doc/posix-functions/isprint_l.texi: Likewise.
28412         * doc/posix-functions/ispunct_l.texi: Likewise.
28413         * doc/posix-functions/isspace_l.texi: Likewise.
28414         * doc/posix-functions/isupper_l.texi: Likewise.
28415         * doc/posix-functions/iswalnum_l.texi: Likewise.
28416         * doc/posix-functions/iswalpha_l.texi: Likewise.
28417         * doc/posix-functions/iswblank_l.texi: Likewise.
28418         * doc/posix-functions/iswcntrl_l.texi: Likewise.
28419         * doc/posix-functions/iswctype_l.texi: Likewise.
28420         * doc/posix-functions/iswdigit_l.texi: Likewise.
28421         * doc/posix-functions/iswgraph_l.texi: Likewise.
28422         * doc/posix-functions/iswlower_l.texi: Likewise.
28423         * doc/posix-functions/iswprint_l.texi: Likewise.
28424         * doc/posix-functions/iswpunct_l.texi: Likewise.
28425         * doc/posix-functions/iswspace_l.texi: Likewise.
28426         * doc/posix-functions/iswupper_l.texi: Likewise.
28427         * doc/posix-functions/iswxdigit_l.texi: Likewise.
28428         * doc/posix-functions/isxdigit_l.texi: Likewise.
28429         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
28430         * doc/posix-functions/strcasecmp_l.texi: Likewise.
28431         * doc/posix-functions/strcoll_l.texi: Likewise.
28432         * doc/posix-functions/strfmon_l.texi: Likewise.
28433         * doc/posix-functions/strftime_l.texi: Likewise.
28434         * doc/posix-functions/strncasecmp_l.texi: Likewise.
28435         * doc/posix-functions/strxfrm_l.texi: Likewise.
28436         * doc/posix-functions/tolower_l.texi: Likewise.
28437         * doc/posix-functions/toupper_l.texi: Likewise.
28438         * doc/posix-functions/towctrans_l.texi: Likewise.
28439         * doc/posix-functions/towlower_l.texi: Likewise.
28440         * doc/posix-functions/towupper_l.texi: Likewise.
28441         * doc/posix-functions/wcscoll_l.texi: Likewise.
28442         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
28443         * doc/posix-functions/wctrans_l.texi: Likewise.
28444         * doc/posix-functions/wctype_l.texi: Likewise.
28445         * doc/glibc-functions/strptime_l.texi: Likewise.
28446         * doc/glibc-functions/strtod_l.texi: Likewise.
28447         * doc/glibc-functions/strtof_l.texi: Likewise.
28448         * doc/glibc-functions/strtol_l.texi: Likewise.
28449         * doc/glibc-functions/strtold_l.texi: Likewise.
28450         * doc/glibc-functions/strtoll_l.texi: Likewise.
28451         * doc/glibc-functions/strtoul_l.texi: Likewise.
28452         * doc/glibc-functions/strtoull_l.texi: Likewise.
28453         * doc/glibc-functions/wcsftime_l.texi: Likewise.
28454         * doc/glibc-functions/wcstod_l.texi: Likewise.
28455         * doc/glibc-functions/wcstof_l.texi: Likewise.
28456         * doc/glibc-functions/wcstol_l.texi: Likewise.
28457         * doc/glibc-functions/wcstold_l.texi: Likewise.
28458         * doc/glibc-functions/wcstoll_l.texi: Likewise.
28459         * doc/glibc-functions/wcstoul_l.texi: Likewise.
28460         * doc/glibc-functions/wcstoull_l.texi: Likewise.
28461
28462 2009-11-24  Bruno Haible  <bruno@clisp.org>
28463
28464         duplocale: Fix logic bug.
28465         * lib/duplocale.c: Don't include <langinfo.h>.
28466         (_NL_LOCALE_NAME): Remove macro.
28467         (rpl_duplocale): Use setlocale instead of nl_langinfo.
28468         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
28469
28470 2009-11-23  Jim Meyering  <meyering@redhat.com>
28471
28472         test-update-copyright: don't hard-code /usr/bin/perl
28473         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
28474         perl to print the current year.  Gilles Espinasse reported that
28475         the replaced use of perl was hard-coded as /usr/bin/perl.
28476
28477 2009-11-23  Bruno Haible  <bruno@clisp.org>
28478
28479         duplocale: Add support for glibc 2.3.x.
28480         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
28481
28482 2009-11-22  Bruno Haible  <bruno@clisp.org>
28483
28484         vasnprintf: Tiny optimization.
28485         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
28486         MacOS X.
28487
28488 2009-11-22  Bruno Haible  <bruno@clisp.org>
28489
28490         Tests for module 'duplocale'.
28491         * modules/duplocale-tests: New file.
28492         * tests/test-duplocale.c: New file.
28493
28494         New module 'duplocale'.
28495         * m4/duplocale.m4: New file.
28496         * lib/locale.in.h (duplocale): New declaration.
28497         * lib/duplocale.c: New file.
28498         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
28499         gl_LOCALE_H_DEFAULTS): New macros.
28500         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
28501         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
28502         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
28503         REPLACE_DUPLOCALE.
28504         * modules/duplocale: New file.
28505         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
28506
28507 2009-11-22  Bruno Haible  <bruno@clisp.org>
28508
28509         * modules/locale-tests (configure.ac): Test for newlocale function.
28510         * tests/test-locale.c: When the system has extended locale functions,
28511         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
28512
28513         locale: Make locale_t available when possible.
28514         * lib/locale.in.h: Include <xlocale.h> when it exists.
28515         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
28516         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
28517         * modules/locale (Depends-on): Add extensions.
28518         (Makefile.am): Also substitute HAVE_XLOCALE_H.
28519         * doc/posix-headers/locale.texi: Document the problem with locale_t.
28520
28521 2009-11-22  Bruno Haible  <bruno@clisp.org>
28522
28523         Add comments.
28524         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
28525         invocation.
28526         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
28527         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
28528         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
28529
28530 2009-11-22  Bruno Haible  <bruno@clisp.org>
28531
28532         error: account for the possibility of freopen (stdout).
28533         * lib/error.c: Include <unistd.h>.
28534         (flush_stdout): New function, extracted from error and error_at_line.
28535         Determine stdout's fd dynamically.
28536         (error, error_at_line): Invoke flush_stdout.
28537         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
28538         * modules/error (Depends-on): Add unistd.
28539
28540 2009-11-22  Bruno Haible  <bruno@clisp.org>
28541
28542         diffseq: Add comment.
28543         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
28544
28545 2009-11-22  Jim Meyering  <meyering@redhat.com>
28546
28547         c-stack: avoid defining an unused static function
28548         * lib/c-stack.c (find_stack_direction): Do not define this function
28549         when it will not be used.
28550
28551         diffseq: avoid spurious gcc warnings
28552         * lib/diffseq.h (IF_LINT2): Define.
28553         (compareseq): Use it to initialize two members of "part".
28554         This avoids two used-uninitialized warnings.
28555
28556 2009-11-21  Jim Meyering  <meyering@redhat.com>
28557
28558         c-stack: avoid "ignoring return value of `write'" warning
28559         * lib/c-stack.c: Include "ignore-value.h".
28560         (die): Explicitly ignore each write return value.
28561         * modules/c-stack (Depends-on): Add ignore-value.
28562
28563 2009-11-21  Bruno Haible  <bruno@clisp.org>
28564
28565         diffseq: reduce scope of variable 'best'.
28566         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
28567         variable, earlier used for two different purposes.
28568
28569 2009-11-21  Jim Meyering  <meyering@redhat.com>
28570
28571         diffseq: remove useless assignment to "best"
28572         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
28573         assignment.  At that point "best" is already guaranteed to be zero.
28574
28575 2009-11-20  Eric Blake  <ebb9@byu.net>
28576
28577         build: mention ftp redirector in release announcements
28578         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
28579         values that used to come from cfg.mk; mention FTP redirect URL.
28580         * build-aux/announce-gen: Mention the mirror list.
28581         Suggested by Karl Berry.
28582
28583         nanosleep: improve port to mingw
28584         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
28585         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
28586         LIB_NANOSLEEP, but only when needed.
28587         * modules/select (Link): Document LIBSOCKET.
28588         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
28589         enough.
28590
28591         nanosleep: work around cygwin bug
28592         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
28593         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
28594         bug.
28595         (getnow): Delete, not needed.
28596         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
28597         LIB_CLOCK_GETTIME.
28598         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
28599         clock-time, gettime.
28600         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
28601         bug.
28602         * modules/nanosleep-tests: New test.
28603         * tests/test-nanosleep.c: New file.
28604
28605         sleep: work around cygwin bug
28606         * lib/sleep.c (rpl_sleep): Work around the bug.
28607         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
28608         (gl_PREREQ_SLEEP): Delete unused macro.
28609         * modules/sleep (Depends-on): Add verify.
28610         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
28611         * modules/unistd (Makefile.am): Substitute witness.
28612         * lib/unistd.in.h (sleep): Update prototype.
28613         * doc/posix-functions/sleep.texi (sleep): Document the bug.
28614         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
28615         * modules/sleep-tests (Depends-on): Check for alarm.
28616
28617 2009-11-20  Jim Meyering  <meyering@redhat.com>
28618
28619         maint.mk: improve sc_prohibit_magic_number_exit
28620         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
28621         so it does not match uses like System.exit(1).
28622         Add comments showing how to correct all offenders.
28623
28624 2009-11-19  Eric Blake  <ebb9@byu.net>
28625
28626         xalloc-die-tests: add missing library
28627         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
28628
28629         test-xvasprintf: silence compiler warnings
28630         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
28631         empty string from gcc.
28632
28633 2009-11-19  Jim Meyering  <meyering@redhat.com>
28634
28635         xfreopen: new module, from coreutils
28636         * modules/xfreopen: New module.
28637         * lib/xfreopen.c: New file.
28638         * lib/xfreopen.h: New file.
28639         * MODULES.html.sh (File stream based Input/Output"): Add it.
28640
28641 2009-11-19  Eric Blake  <ebb9@byu.net>
28642
28643         manywarnings: depend on warnings
28644         * modules/manywarnings (Depends-on): Add warnings.
28645
28646         build: avoid compiler warnings
28647         * lib/select.c (rpl_select): Delete unused variable.
28648         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
28649
28650 2009-11-18  Eric Blake  <ebb9@byu.net>
28651
28652         tests: avoid false negative with --with-packager
28653         * tests/test-version-etc.sh: Discard packager information.
28654         * tests/test-argp-version-etc-1.sh: Likewise.
28655         Reported by Mike Frysinger.
28656
28657         utimens: fix regression on Solaris
28658         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
28659         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
28660         can only change fd timestamps via futimesat.  Instead, use an
28661         additional witness macro to avoid BSD bug.
28662         Reported by Jim Meyering.
28663
28664 2009-11-17  Eric Blake  <ebb9@byu.net>
28665
28666         usleep: use it to simplify tests
28667         * modules/stat-time-tests (Depends-on): Add usleep.
28668         (configure.ac): Drop usleep check.
28669         * modules/chown-tests (Depends-on, configure.ac): Likewise.
28670         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
28671         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
28672         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
28673         * modules/openat-tests (Depends-on, configure.ac): Likewise.
28674         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
28675         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
28676         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
28677         Likewise.
28678         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
28679         * tests/test-lchown.h (nap): Likewise.
28680         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
28681         * tests/test-stat-time.c (nap): Likewise.
28682         * tests/test-utimens-common.h (nap): Update comments.
28683
28684         usleep: new module
28685         * modules/usleep: New file.
28686         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
28687         * lib/usleep.c (usleep): Likewise.
28688         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
28689         * modules/unistd (Makefile.am): Substitute witnesses.
28690         * lib/unistd.in.h (usleep): Add declaration.
28691         * doc/pastposix-functions/usleep.texi (usleep): Document this.
28692         * MODULES.html.sh (Date and time): Likewise.
28693         * modules/usleep-tests (Depends-on): New test.
28694         * tests/test-usleep.c: New file.
28695
28696         chown: work around OpenBSD bug
28697         * lib/chown.c (rpl_chown): Work around the bug.
28698         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
28699         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
28700         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
28701         * modules/chown (Depends-on): Add stdbool.
28702         * modules/lchown (Depends-on): Likewise.
28703         * doc/posix-functions/chown.texi (chown): Document the bug.
28704         * doc/posix-functions/lchown.texi (lchown): Likewise.
28705         * tests/test-lchown.h (test_chown): Relax test.
28706
28707         mkstemp: avoid conflict with C++ keyword template
28708         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
28709         * lib/mkostemp.c (mkostemp): Likewise.
28710         * lib/mkostemps.c (mkostemps): Likewise.
28711         * lib/mkstemp.c (mkstemp): Likewise.
28712         * lib/mkstemps.c (mkstemps): Likewise.
28713
28714         xalloc-die-tests: optimize
28715         * tests/test-xalloc-die.sh: Reduce number of processes.
28716
28717 2009-11-17  Simon Josefsson  <simon@josefsson.org>
28718
28719         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
28720         patch from ludo@gnu.org (Ludovic Courtès).
28721
28722 2009-11-17  Jim Meyering  <meyering@redhat.com>
28723
28724         version-etc: use proper license string
28725         * modules/version-etc (License): Use LGPL, not LGPLv3+.
28726         * modules/version-etc-fsf: Likewise.
28727
28728 2009-11-17  Simon Josefsson  <simon@josefsson.org>
28729
28730         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
28731         printed to stdout.  Deal with EOL differences.
28732
28733 2009-11-17  Eric Blake  <ebb9@byu.net>
28734
28735         unsetenv: work around Solaris bug
28736         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
28737         * lib/unsetenv.c (rpl_unsetenv): Work around it.
28738         Reported by Jim Meyering.
28739
28740         vasnprintf: avoid compiler warnings
28741         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
28742         variables.
28743         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
28744
28745 2009-11-17  Simon Josefsson  <simon@josefsson.org>
28746
28747         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
28748         settings since xalloc-die is no longer the self test,
28749         xalloc-die.sh is.
28750
28751 2009-11-17  Jim Meyering  <meyering@redhat.com>
28752
28753         test-xalloc-die.sh: make the code agree with the commit log
28754         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
28755         at the end, just in case you happen to have a test-xalloc-die
28756         program in some other PATH directory.
28757
28758         test-xalloc-die.sh: fix a portability bug
28759         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
28760         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
28761         Otherwise, argv[0] (as often seen in diagnostics) would be too
28762         system-dependent, sometimes with, and sometimes without the leading "./".
28763
28764         version-etc-fsf: relax license to LGPLv3+
28765         * modules/version-etc-fsf (License): Relax license.
28766
28767 2009-11-16  Eric Blake  <ebb9@byu.net>
28768
28769         xalloc-die-tests: avoid printing null pointer
28770         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
28771         shell script.
28772         * tests/test-xalloc-die.c (program_name): Declare.
28773         * tests/test-xalloc-die.sh (tmpfiles): New file.
28774
28775         setenv, unsetenv: work around various bugs
28776         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
28777         (setenv) [HAVE_SETENV]: Work around bugs.
28778         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
28779         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
28780         for bugs.
28781         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
28782         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
28783         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
28784         * modules/stdlib (Makefile.am): Update substitutions.
28785         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
28786         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
28787         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
28788         * modules/setenv-tests: New test.
28789         * modules/unsetenv-tests: Likewise.
28790         * tests/test-setenv.c: New file.
28791         * tests/test-unsetenv.c: Likewise.
28792
28793 2009-11-16  Jim Meyering  <meyering@redhat.com>
28794
28795         version-etc: relax license to LGPLv3+
28796         * modules/version-etc (License): Relax license.
28797
28798         better AC_REQUIRE expanded-before-required-warning avoidance
28799         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
28800         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
28801         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
28802         which is no longer needed.
28803
28804 2009-11-16  Eric Blake  <ebb9@byu.net>
28805
28806         test-freading: clean up temporary file
28807         * tests/test-freading.c (main): Remove file on success, and use
28808         ASSERT more liberally.
28809         Reported by Jim Meyering.
28810
28811 2009-11-16  Jim Meyering  <meyering@redhat.com>
28812
28813         avoid new AC_REQUIRE expanded-before-required warnings
28814         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
28815         merely using it.
28816         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
28817         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
28818
28819 2009-11-15  Simon Josefsson  <simon@josefsson.org>
28820
28821         * tests/test-xalloc-die.c: New file.
28822         * modules/xalloc-die-tests: New file.
28823         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
28824         XFAIL_TESTS so it can be appended by modules.
28825
28826 2009-11-15  Simon Josefsson  <simon@josefsson.org>
28827
28828         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
28829         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
28830
28831 2009-11-14  Eric Blake  <ebb9@byu.net>
28832
28833         fnmatch: avoid compiler warning
28834         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
28835         to silence compiler warning about mismatch signedness in ?:.
28836         Reported by Robert Millan.
28837
28838         intprops: add double-inclusion guard
28839         * lib/intprops.h: Allow idempotent includes.
28840         Suggested by Bruce Korb.
28841
28842         openat: detect Solaris fchownat bug
28843         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
28844         penalizing glibc chownat when only lchownat is broken.
28845         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
28846         trailing slash bugs.
28847         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
28848         * modules/openat-tests (Files): Include more files.
28849         (Depends-on): Add mgetgroups, sleep, stat-time.
28850         (configure.ac): Add additional checks.
28851         (Makefile.am): Build new test.
28852         * tests/test-fchownat.c: New file.
28853
28854         lchown: detect Solaris and FreeBSD bug
28855         * lib/lchown.c (rpl_lchown): Work around bug.
28856         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
28857         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
28858         * modules/unistd (Makefile.am): Populate it.
28859         * lib/unistd.in.h (lchown): Update declaration.
28860         * doc/posix-functions/lchown.texi (lchown): Document the bug.
28861         * modules/lchown-tests: New file.
28862         * tests/test-lchown.h (test_lchown): Likewise.
28863         * tests/test-lchown.c (main): Likewise.
28864
28865         chown: detect Solaris and FreeBSD bug
28866         * lib/chown.c (rpl_chown): Work around bug.
28867         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
28868         (gl_PREREQ_CHOWN): Delete.
28869         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
28870         * modules/unistd (Makefile.am): Populate it.
28871         * lib/unistd.in.h (chown): Update declaration.
28872         * lib/lchown.c (chown): Update client.
28873         * modules/lchown (Depends-on): Add lstat.
28874         * doc/posix-functions/chown.texi (chown): Document the bug.
28875         * doc/posix-functions/getgroups.texi (getgroups): Document
28876         getgroups pitfall.
28877         * modules/chown-tests: New file.
28878         * tests/test-chown.h (test_chown): Likewise.
28879         * tests/test-chown.c (main): Likewise.
28880
28881 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
28882
28883         gnulib-tool: correctly detect absence of m4 directories
28884         * gnulib-tool: Avoid extra newline on data passed to wc -l.
28885
28886 2009-11-14  Jim Meyering  <meyering@redhat.com>
28887
28888         maint.mk: Prohibit inclusion of "xalloc.h" without use.
28889         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
28890
28891 2009-11-14  John W. Eaton  <jwe@gnu.org>
28892
28893         strftime.h: wrap funtion declaration in extern "C" block
28894         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
28895
28896 2009-11-13  Eric Blake  <ebb9@byu.net>
28897
28898         getgroups: avoid compiler warning
28899         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
28900
28901         getgroups: work around FreeBSD bug
28902         * lib/getgroups.c (rpl_getgroups): Work around the bug.
28903         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
28904         * doc/posix-functions/getgroups.texi (getgroups): Document it.
28905         * tests/test-getgroups.c (main): Fix buffer overrun.
28906
28907         getgroups: avoid compilation failure
28908         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
28909         * modules/getgroups (Depends-on): Add stdint.
28910
28911 2009-11-13  Jim Meyering  <meyering@redhat.com>
28912
28913         test-getgroups: avoid compilation failure
28914         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
28915
28916 2009-11-13  Eric Blake  <ebb9@byu.net>
28917
28918         mgetgroups: new module, taken from coreutils
28919         * modules/mgetgroups: New file.
28920         * lib/mgetgroups.h: Likewise.
28921         * lib/mgetgroups.c (mgetgroups): Likewise.
28922         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
28923         * MODULES.html.sh (Users and groups): Mention it.
28924
28925         getgroups: don't expose GETGROUPS_T to user
28926         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
28927         an element at a time if GETGROUPS_T is wrong size.
28928         * lib/getugroups.h (getugroups): Change signature.
28929         * lib/unistd.in.h (getgroups): Likewise.
28930         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
28931         signature needs fixing.
28932         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
28933         AC_TYPE_GETGROUPS.
28934         * modules/group-member (Depends-on): Add getgroups.
28935         * lib/group-member.c (group_info, get_group_info): Use gid_t.
28936         (group_member): Rely on getgroups replacement.
28937         * lib/getugroups.c (getugroups): Use gid_t.
28938         * tests/test-getgroups.c (main): Likewise.
28939         * NEWS: Mention the signature change.
28940         * doc/posix-functions/getgroups.texi (getgroups): Mention the
28941         problem with signature.
28942         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
28943         GETGROUPS_T is still useful for setgroups.
28944
28945         getgroups, getugroups: provide stubs for mingw
28946         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
28947         * lib/getugroups.c (getugroups): Likewise.
28948         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
28949         function.  Modernize replacement scheme.
28950         (gl_PREREQ_GETGROUPS): Delete.
28951         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
28952         * modules/getgroups (configure.ac): Declare witness.
28953         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
28954         * modules/unistd (Depends-on): Substitute witness.
28955         * lib/unistd.in.h (getgroups): Declare replacement.
28956
28957         getgroups: avoid calling exit
28958         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
28959         drop xalloc.
28960         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
28961         dependencies.
28962         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
28963         exiting, in the rare case of malloc failure.
28964
28965         getgroups: fix logic error
28966         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
28967         has more than 20 groups.
28968         * modules/getgroups-tests: New test.
28969         * tests/test-getgroups.c: New file.
28970
28971 2009-11-13  Simon Josefsson  <simon@josefsson.org>
28972
28973         * tests/test-base64.c: Improve.
28974
28975 2009-11-13  Simon Josefsson  <simon@josefsson.org>
28976
28977         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
28978         Blake <ebb9@byu.net>.
28979
28980 2009-11-13  Simon Josefsson  <simon@josefsson.org>
28981
28982         * tests/test-xvasprintf.c: Add %s%s related checks.
28983
28984 2009-11-12  Eric Blake  <ebb9@byu.net>
28985
28986         version-etc: match standards.texi style
28987         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
28988         and use <> only for URLs.
28989
28990 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
28991
28992         fts: do not fail on a submount during traversal
28993         * lib/fts.c (fts_build): Read the stat info again after opening
28994         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
28995         Original report at http://bugzilla.redhat.com/501848.
28996
28997 2009-11-12  Jim Meyering  <meyering@redhat.com>
28998
28999         bootstrap: sync from coreutils
29000         * build-aux/bootstrap (bootstrap_epilogue): New function.
29001         Use git_modules_config in one more place.  This make bootstrap's
29002         --gnulib-srcdir option more useful for testing.
29003
29004         bootstrap: generalize autoheader check
29005         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
29006         AC_CONFIG_HEADERS.
29007
29008 2009-11-11  Eric Blake  <ebb9@byu.net>
29009
29010         mkfifoat: use new modules for Solaris and BSD bugs
29011         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
29012         * lib/mkfifoat.c (mknodat): Split...
29013         * lib/mknodat.c (mknodat): ...into new file.
29014         * modules/mkfifoat (Files): Ship new file.
29015         (Depends-on): Add mkfifo, mknod.
29016         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
29017         (Depends-on): Add symlink.
29018         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
29019         redundant with test_mkfifo.h.
29020         (do_mkfifoat, do_mknodat): New helpers.
29021
29022         mknod: new module
29023         * modules/mknod: New file.
29024         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
29025         * lib/mknod.c (mknod): Likewise.
29026         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
29027         defaults.
29028         * modules/sys_stat (Makefile.am): Substitute them.
29029         * lib/sys_stat.in.h (mknod): Declare replacement.
29030         * MODULES.html.sh (Support for systems lacking POSIX:2008):
29031         Document it.
29032         * doc/posix-functions/mknod.texi (mknod): Likewise.
29033         * modules/mknod-tests: New test.
29034         * tests/test-mknod.c: Likewise.
29035
29036         mkfifo: new module
29037         * modules/mkfifo: New file.
29038         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
29039         * lib/mkfifo.c (mkfifo): Likewise.
29040         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
29041         defaults.
29042         * modules/sys_stat (Makefile.am): Substitute them.
29043         * lib/sys_stat.in.h (mkfifo): Declare replacement.
29044         * MODULES.html.sh (Support for systems lacking POSIX:2008):
29045         Document it.
29046         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
29047         * modules/mkfifo-tests: New test.
29048         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
29049         from test-mkfifoat.c.
29050         * tests/test-mkfifo.c: New file.
29051
29052         readlink: detect FreeBSD bug
29053         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
29054         slash on symlink.
29055         * doc/posix-functions/readlink.texi (readlink): Document the bug.
29056         * tests/test-readlink.h (test_readlink): Enhance test.
29057
29058         symlink: detect FreeBSD bug
29059         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
29060         slash on symlink.
29061         * doc/posix-functions/symlink.texi (symlink): Document the bug.
29062         * tests/test-symlink.h (test_symlink): Enhance test.
29063
29064 2009-11-10  Eric Blake  <ebb9@byu.net>
29065
29066         link: detect FreeBSD bug
29067         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
29068         symlink.
29069         * doc/posix-functions/link.texi (link): Document the bug.
29070         * tests/test-link.h (test_link): Enhance test.
29071         * tests/test-linkat.c (main): Update caller.
29072
29073         unlink, remove: detect FreeBSD bug
29074         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
29075         slash on symlink.
29076         * doc/posix-functions/unlink.texi (unlink): Document the bug.
29077         * doc/posix-functions/remove.texi (remove): Likewise.
29078         * tests/test-unlink.h (test_unlink): Enhance test.
29079         * tests/test-remove.c (main): Likewise.
29080
29081 2009-11-09  Eric Blake  <ebb9@byu.net>
29082
29083         rename: detect FreeBSD bug
29084         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
29085         slash on symlink.
29086         * modules/renameat-tests (Depends-on): Add filenamecat.
29087         * tests/test-rename.h (test_rename): Allow one more errno.
29088         * tests/test-renameat.c (main): Likewise.
29089         * doc/posix-functions/rename.texi (rename): Document the bug.
29090
29091         open: detect FreeBSD bug
29092         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
29093         symlink.
29094         * doc/posix-functions/open.texi (open): Document the bug.
29095         * doc/posix-functions/utimes.texi (utimes): Likewise.
29096         * tests/test-open.h (test_open): Add parameters, and test symlink
29097         handling.
29098         * tests/test-open.c (main): Adjust caller.
29099         * tests/test-fcntl-safer.c (main): Likewise.
29100         * modules/open-tests (Depends-on): Add stdbool, symlink.
29101         * modules/fcntl-safer-tests (Depends-on): Likewise.
29102         * tests/test-openat.c (main): Add test-open tests.
29103
29104         stat: detect FreeBSD bug
29105         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
29106         symlink.
29107         * doc/posix-functions/stat.texi (stat): Document the bug.
29108         * tests/test-stat.h (test_stat_func): Add argument.
29109         * tests/test-stat.c (main): Adjust caller.
29110         * tests/test-fstatat.c (main): Likewise.
29111         * modules/stat-tests (Depends-on): Add stdbool, symlink.
29112         Reported by Jim Meyering.
29113
29114 2009-11-09  James Youngman  <jay@gnu.org>
29115
29116         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
29117         * lib/strftime.c: Correct placement of #include "ignore-value.h".
29118
29119 2009-11-08  Jim Meyering  <meyering@redhat.com>
29120
29121         utimens: remove invalid futimesat call
29122         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
29123         It used the file descriptor of the target file as the DIR_FD
29124         parameter and NULL as the file name.  That caused failure with
29125         errno == EFAULT on FreeBSD-8.0-rc2
29126
29127 2009-11-07  Eric Blake  <ebb9@byu.net>
29128
29129         fflush, freadseek: use fseeko, not fseek
29130         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
29131         (clear_ungetc_buffer): Avoid potential problems on large files.
29132         * lib/freadseek.c (freadseek): Likewise.
29133         * modules/freadseek (Depends-on): Add fseeko.
29134         * modules/fseek (configure.ac): Set a witness.
29135         * tests/test-fflush.c (main): Use fseeko.
29136         * tests/test-fpurge.c (fseek): Disable link warning.
29137         * tests/test-freadable.c (fseek): Likewise.
29138         * tests/test-freading.c (fseek): Likewise.
29139         * tests/test-fseeko.c (fseek): Likewise.
29140         * tests/test-ftell.c (fseek): Likewise.
29141         * tests/test-ftello.c (fseek): Likewise.
29142         * tests/test-fwritable.c (fseek): Likewise.
29143         * tests/test-fwriting.c (fseek): Likewise.
29144
29145 2009-11-06  Simon Josefsson  <simon@josefsson.org>
29146
29147         * modules/memchr (Depends-on): Drop getpagesize dependency.
29148
29149 2009-11-06  Simon Josefsson  <simon@josefsson.org>
29150
29151         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
29152         Reported by Ludovic Courtès.
29153         * build-aux/pmccabe2html: Improve example usage.
29154         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
29155
29156 2009-11-06  Jim Meyering  <meyering@redhat.com>
29157
29158         do-release-commit-and-tag: New module.
29159         Automate the release-commit and tag process.
29160         * build-aux/do-release-commit-and-tag: New script, from coreutils.
29161         * modules/do-release-commit-and-tag: New file.
29162         * MODULES.html.sh (Support for maintaining and releasing): Add it.
29163
29164 2009-11-06  Simon Josefsson  <simon@josefsson.org>
29165
29166         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
29167         because test-select.c uses inet_pton.
29168
29169 2009-11-06  Simon Josefsson  <simon@josefsson.org>
29170
29171         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
29172         GETADDRINFO_LIB.  Bump serial number.
29173         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
29174         Suggested by Eric Blake <ebb9@byu.net>.
29175
29176 2009-11-05  Eric Blake  <ebb9@byu.net>
29177
29178         strtod: detect darwin bug
29179         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
29180         Reported by Leo Davis.
29181
29182         freopen-safer: new module
29183         * modules/freopen-safer: New module.
29184         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
29185         * lib/freopen-safer.c (freopen_safer): New file.
29186         * lib/stdio-safer.h (freopen_safer): New declaration.
29187         * lib/stdio--.h (freopen): New override.
29188         * MODULES.html.sh (File stream based Input/Output): Mention it.
29189         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
29190         freopen-safer module.
29191         * doc/posix-functions/stderr.texi (stderr): Likewise.
29192         * doc/posix-functions/stdin.texi (stdin): Likewise.
29193         * doc/posix-functions/stdout.texi (stdout): Likewise.
29194         * modules/freopen-safer-tests: New test.
29195         * tests/test-reopen-safer.c: New file.
29196
29197 2009-11-05  Jim Meyering  <meyering@redhat.com>
29198
29199         maint.mk: Prohibit inclusion of "close-stream.h" without use.
29200         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
29201
29202 2009-11-05  Simon Josefsson  <simon@josefsson.org>
29203
29204         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
29205
29206 2009-11-05  Simon Josefsson  <simon@josefsson.org>
29207
29208         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
29209
29210 2009-11-05  Simon Josefsson  <simon@josefsson.org>
29211
29212         Fix link error.
29213         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
29214         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
29215
29216 2009-11-05  Simon Josefsson  <simon@josefsson.org>
29217
29218         * tests/test-func.c: Also test value of __func__.
29219
29220 2009-11-05  Simon Josefsson  <simon@josefsson.org>
29221
29222         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
29223         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
29224
29225 2009-11-05  Bruno Haible  <bruno@clisp.org>
29226
29227         Fix link error.
29228         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
29229         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
29230         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
29231
29232 2009-11-05  Bruno Haible  <bruno@clisp.org>
29233
29234         Tests for module 'inet_pton'.
29235         * modules/inet_pton-tests: New file.
29236         * tests/test-inet_pton.c: New file.
29237
29238 2009-11-05  Bruno Haible  <bruno@clisp.org>
29239
29240         Tests for module 'inet_ntop'.
29241         * modules/inet_ntop-tests: New file.
29242         * tests/test-inet_ntop.c: New file.
29243
29244 2009-11-04  Eric Blake  <ebb9@byu.net>
29245
29246         stdlib-safer: wrap all mkstemp variants
29247         * modules/mkostemp (configure.ac): Set witness.
29248         * modules/mkostemps (configure.ac): Likewise.
29249         * modules/mkstemps (configure.ac): Likewise.
29250         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
29251         (mkstemps_safer): Wrap more functions.
29252         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
29253         wrapping.
29254         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
29255         (mkstemps_safer): Implement the wrappers.
29256
29257         mkstemps, mkostemps: new modules
29258         * modules/mkostemps: New module.
29259         * modules/mkstemps: Likewise.
29260         * lib/mkostemps.c (mkostemps): New file.
29261         * lib/mkstemps.c (mkstemps): Likewise.
29262         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
29263         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
29264         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
29265         * modules/stdlib (Makefile.am): Substitute them.
29266         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
29267         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
29268         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
29269         * doc/gnulib.texi (Glibc stdlib.h): Include them.
29270         * MODULES.html.sh (File system functions): Mention them.
29271
29272         tempname: resync from glibc
29273         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
29274         same values for __GT_FILE as glibc.  Abort even when assertions
29275         are disabled.
29276         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
29277         match its value otherwise.  Allow idempotent inclusion.
29278         * lib/mkdtemp.c (mkdtemp): Adjust caller.
29279         * lib/mkostemp.c (mkostemp): Likewise.
29280         * lib/mkstemp.c (mkstemp): Likewise.
29281         * lib/tmpfile.c (tmpfile): Likewise.
29282         * NEWS: Document this.
29283
29284         utimens: fix use of futimens on older Linux
29285         * lib/utimens.c (fdutimens): Use updated, rather than original,
29286         timespec to avoid bug in older Linux kernel.
29287         Reported by Simon Josefsson.
29288
29289 2009-11-04  Bruno Haible  <bruno@clisp.org>
29290
29291         Make num_processors more flexible and consistent.
29292         * lib/nproc.h (enum nproc_query): New type.
29293         (num_processors): Add a 'query' argument.
29294         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
29295         (num_processors): Add a 'query' argument. Test the value of the
29296         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
29297         mingw, count the number of CPUs available for the current process.
29298         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
29299         Check for sched_getaffinity and sched_getaffinity_np.
29300         * modules/nproc (Depends-on): Add c-ctype, extensions.
29301         * NEWS: Mention the change.
29302
29303 2009-11-03  Bruno Haible  <bruno@clisp.org>
29304
29305         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
29306
29307 2009-11-03  Jim Meyering  <meyering@redhat.com>
29308
29309         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
29310         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
29311         if it is defined.
29312
29313 2009-11-02  Eric Blake  <ebb9@byu.net>
29314
29315         mktime, timegm: share common declaration
29316         * lib/mktime-internal.h: New file.
29317         * lib/mktime.c: Use it rather than open-coding a declaration.
29318         * lib/timegm.c: Likewise.
29319         * modules/mktime (Files): Ship it.
29320         * modules/timegm (Files): Likewise.
29321         Suggested by Bruno Haible.
29322
29323         test-update-copyright: update test to match script changes
29324         * tests/test-update-copyright.sh: Avoid hard-coding perl
29325         location.  Don't update *.bak created by earlier runs.
29326
29327 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
29328             Simon Josefsson  <simon@josefsson.org>
29329             Bruno Haible  <bruno@clisp.org>
29330
29331         Fix link error on Solaris 8.
29332         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
29333         also in libnsl. Define also INET_PTON_LIB.
29334         * modules/inet_pton (Link): New section.
29335
29336 2009-11-02  Simon Josefsson  <simon@josefsson.org>
29337             Bruno Haible  <bruno@clisp.org>
29338
29339         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
29340         * modules/inet_ntop (Link): New section.
29341         Reported by Boyan Kasarov <bkasarov@gmail.com>.
29342
29343 2009-11-02  Eric Blake  <ebb9@byu.net>
29344
29345         maint: avoid compiler warnings in m4 macros
29346         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
29347         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
29348
29349 2009-11-02  Simon Josefsson  <simon@josefsson.org>
29350
29351         * m4/pmccabe2html.m4: Remove file.
29352         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
29353         function.  Change maintainer.
29354         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
29355         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
29356         Courtès).
29357
29358 2009-10-31  Eric Blake  <ebb9@byu.net>
29359
29360         fseeko: fix m4 regression
29361         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
29362         regression from 2009-10-27.
29363         Reported by Ralf Wildenhues.
29364
29365 2009-10-31  Jim Meyering  <meyering@redhat.com>
29366
29367         inttostr: aesthetics and improved (compile-time) safety
29368         Define inttype_is_signed rather than inttype_is_unsigned,
29369         since the sole use is via "#if inttype_is_signed".
29370         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
29371         inttype_is_unsigned.
29372         * lib/offtostr.c (inttype_is_signed): Likewise.
29373         * lib/uinttostr.c (inttype_is_signed): Likewise.
29374         * lib/umaxtostr.c (inttype_is_signed): Likewise.
29375         * lib/inttostr.c (inttostr): Use verify to cross-check the
29376         inttype_is_signed value and the signedness of the actual type.
29377         * modules/inttostr (Depends-on): Add verify.
29378
29379 2009-10-30  Eric Blake  <ebb9@byu.net>
29380
29381         build: avoid compiler warnings
29382         * lib/fchmodat.c (lchmod): Mark unused variables.
29383         * lib/getopt.c (_getopt_initialize): Likewise.
29384         * lib/mktime.c (__mktime_internal): Provide prototype.
29385         * lib/inttostr.c (inttostr): Avoid compiler warning even with
29386         older gcc that do not understand #pragma GCC diagnostic.
29387         * lib/uinttostr.c (inttype_is_unsigned): Define.
29388         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
29389
29390 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
29391
29392         stat: fix compilation on AIX
29393         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
29394         only see struct stat64.
29395
29396 2009-10-30  Eric Blake  <ebb9@byu.net>
29397
29398         exclude: make more robust
29399         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
29400         rather than masking a coding bug.
29401         Suggested by Bruno Haible.
29402
29403 2009-10-30  Jim Meyering  <meyering@redhat.com>
29404
29405         perl scripts: remove #!/usr/bin/perl in favor of more portable...
29406         Rather than putting #!/usr/bin/perl on the first line,
29407         start with a variant of what's recommended by "man perlrun" that
29408         invokes the first "perl" program from your shell's search path.
29409         * build-aux/gitlog-to-changelog: Replace #!... as above.
29410         Add a "Local Variables" perl mode setting.
29411         Prompted by a patch from Ludovic Courtès.
29412         Improved by Eric Blake.
29413         * build-aux/useless-if-before-free: Likewise.
29414         * build-aux/announce-gen: Likewise.
29415         * build-aux/update-copyright: Likewise.
29416
29417 2009-10-29  Eric Blake  <ebb9@byu.net>
29418
29419         filenamecat-lgpl: adjust clients
29420         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
29421         filenamecat.
29422         * modules/renameat (Depends-on): Likewise.
29423
29424         filenamecat: split into filenamecat-lgpl
29425         * modules/filenamecat-lgpl: New module.
29426         * modules/filenamecat (Files): Move library-safe files into
29427         filenamecat-lgpl.
29428         (Depends-on): Add filenamecat-lgpl.
29429         (configure.ac): Declare witness.
29430         * lib/filenamecat.h (file_name_concat): Only declare when using
29431         GPL module.
29432         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
29433         Move...
29434         * lib/filenamecat-lgpl.c: ...into new file.
29435         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
29436         (gl_FILE_NAME_CONCAT): Use it.
29437         * MODULES.html.sh (File system functions): Mention new module.
29438
29439         argp: avoid memory leak
29440         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
29441         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
29442         base_name, since the latter malloc()s and can call exit().
29443         Leak introduced 2006-07-03.
29444
29445         dirname-lgpl: adjust clients that don't need full dirname
29446         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
29447         * modules/filenamecat (Depends-on): Likewise.
29448         * modules/linkat (Depends-on): Likewise.
29449         * modules/mkancesdirs (Depends-on): Likewise.
29450         * modules/mkdir (Depends-on): Likewise.
29451         * modules/openat (Depends-on): Likewise.
29452         * modules/savewd (Depends-on): Likewise.
29453         * modules/rename (Depends-on): Likewise.
29454         (License): Relax license.
29455         * modules/mkdir-tests (Depends-on): Drop progname.
29456         (Makefile.am): Delete unneeded LDADD.
29457         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
29458
29459         dirname: split into dirname-lgpl
29460         * modules/dirname-lgpl: New module.
29461         * modules/dirname (Files): Move library-safe files into
29462         dirname-lgpl.
29463         (Depends-on): Add dirname-lgpl.
29464         (configure.ac): Declare witness.
29465         * modules/double-slash-root (License): Relax license.
29466         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
29467         module.
29468         * lib/dirname.c (dir_len, mdir_name): Move...
29469         * lib/dirname-lgpl.c: ...into new file.
29470         * lib/basename.c (last_component, base_len): Move...
29471         * lib/basename-lgpl.c: ...into new file.
29472         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
29473         (gl_DIRNAME): Use it.
29474         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
29475         Mention new module.
29476         * modules/dirname-tests (Depends-on): Add progname.
29477         * tests/test-dirname.c (program_name): Delete.
29478
29479         mkdir: make safe for libraries
29480         * modules/mkdir (Depends-on): Drop xalloc.
29481         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
29482         exit.
29483
29484         tests: avoid some compiler warnings
29485         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
29486         literals.
29487         * tests/test-memchr.c (main): Avoid type mismatch.
29488         * tests/test-arpa_inet.c (main): Avoid unused parameters.
29489         * tests/test-base64.c (main): Likewise.
29490         * tests/test-getdelim.c (main): Likewise.
29491         * tests/test-gethostname.c (main): Likewise.
29492         * tests/test-getline.c (main): Likewise.
29493         * tests/test-netinet_in.c (main): Likewise.
29494         * tests/test-select.c (open_server_socket, main): Likewise.
29495         * tests/test-select-stdin.c (main): Likewise.
29496         * tests/test-sockets.c (main): Likewise.
29497         * tests/test-strsignal.c (main): Likewise.
29498         * tests/test-sys_select.c (main): Likewise.
29499         * tests/test-sys_socket.c (main): Likewise.
29500         * tests/test-u64.c (main): Likewise.
29501         * tests/test-xfprintf-posix.c (main): Likewise.
29502         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
29503
29504         sockets: avoid compiler warning
29505         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
29506
29507         maint: detect usage(1) and other suspicious exits
29508         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
29509
29510 2009-10-29  Jim Meyering  <meyering@redhat.com>
29511
29512         timespec: long-to-int truncation could make timespec_cmp malfunction
29513         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
29514         a multiple of 2^32 nanoseconds as no difference.
29515
29516 2009-10-28  Jim Meyering  <meyering@redhat.com>
29517
29518         fprintftime: wrap macro code argument in "do {...} while(0)"
29519         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
29520         cpy macro must be a statement that can be followed by a semicolon.
29521         Now that the else clause contains a comment and is hence longer
29522         than one line, I require curly braces.  That in turn requires
29523         that we wrap this code block in the standard do...while(0).
29524
29525         fprintftime: remove stray semicolon from previous change
29526         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
29527
29528         fprintftime: avoid a warning about ignored fwrite return value
29529         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
29530         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
29531         that is unsafe.
29532         * modules/fprintftime (Depends-on): Add ignore-value.
29533
29534         exclude: avoid an unwarranted warning
29535         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
29536
29537 2009-10-27  Eric Blake  <ebb9@byu.net>
29538
29539         fseek: avoid compilation failure when fflush is replaced
29540         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
29541         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
29542         module is in use.
29543         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
29544         module is not in use; since REPLACE_FSEEK worked otherwise.
29545         (GNULIB_FTELLO): Likewise for ftell.
29546         Reported by Ian Beckwith and others.
29547
29548 2009-10-27  Bruno Haible  <bruno@clisp.org>
29549
29550         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
29551         Reported by Jim Meyering.
29552
29553 2009-10-27  Jim Meyering  <jim@meyering.net>
29554             Bruno Haible  <bruno@clisp.org>
29555
29556         Avoid warning despite dropping the return value of fwrite.
29557         * lib/unicodeio.c: Include ignore-value.h.
29558         (fwrite_success_callback): Explicitly ignore fwrite's return value.
29559         * modules/unicodeio (Depends-on): Add ignore-value.
29560
29561 2009-10-26  Eric Blake  <ebb9@byu.net>
29562
29563         areadlinkat: fix fallback path
29564         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
29565         pointer and zero.
29566
29567 2009-10-22  Pádraig Brady  <P@draigBrady.com>
29568
29569         Use a better IO block size for modern systems
29570         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
29571         * lib/md2.c: Likewise.
29572         * lib/md4.c: Likewise.
29573         * lib/md5.c: Likewise.
29574         * lib/sha1.c: Likewise.
29575         * lib/sha256.c: Likewise.
29576         * lib/sha512.c: Likewise.
29577
29578 2009-10-22  Eric Blake  <ebb9@byu.net>
29579
29580         tests: avoid several compiler warnings
29581         * tests/test-getcwd.c (main): Avoid buffer underflow.
29582         * tests/test-getdate.c (main): String literals are not safe with
29583         putenv, so use setenv.  Declare unused argument.
29584         * modules/getdate-tests (Depends-on): Add setenv.
29585         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
29586         problems with string literals in char *.
29587         * tests/test-hash.c (main): Avoid shadowing declaration.
29588         (insert_new): Treat string literals as char const *.
29589         * tests/test-getopt.h (test_getopt): Likewise.
29590         (getopt_loop): Alter types to minimize casting elsewhere.
29591         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
29592         (test_getopt_long_posix): Likewise.
29593         (do_getopt_long): Add wrapper to minimize casting.
29594         * tests/test-atexit.c (clear_temp_file): Use void.
29595         * tests/test-areadlink-with-size.c (main): Declare unused
29596         arguments.
29597         * tests/test-areadlink.c (main): Likewise.
29598         * tests/test-areadlinkat-with-size.c (main): Likewise.
29599         * tests/test-areadlinkat.c (main): Likewise.
29600         * tests/test-canonicalize-lgpl.c (main): Likewise.
29601         * tests/test-canonicalize.c (main): Likewise.
29602         * tests/test-dirent-safer.c (main): Likewise.
29603         * tests/test-dirname.c (main): Likewise.
29604         * tests/test-dup2.c (main): Likewise.
29605         * tests/test-fchdir.c (main): Likewise.
29606         * tests/test-fcntl-h.c (main): Likewise.
29607         * tests/test-fcntl-safer.c (main): Likewise.
29608         * tests/test-fdopendir.c (main): Likewise.
29609         * tests/test-fdutimensat.c (main): Likewise.
29610         * tests/test-fflush.c (main): Likewise.
29611         * tests/test-filenamecat.c (main): Likewise.
29612         * tests/test-filevercmp.c (main): Likewise.
29613         * tests/test-fopen-safer.c (main): Likewise.
29614         * tests/test-fopen.c (main): Likewise.
29615         * tests/test-fpending.c (main): Likewise.
29616         * tests/test-fpurge.c (main): Likewise.
29617         * tests/test-freading.c (main): Likewise.
29618         * tests/test-fstatat.c (main): Likewise.
29619         * tests/test-fsync.c (main): Likewise.
29620         * tests/test-futimens.c (main): Likewise.
29621         * tests/test-getndelim2.c (main): Likewise.
29622         * tests/test-gettimeofday.c (main): Likewise.
29623         * tests/test-getopt.c (main): Likewise.
29624         * tests/test-i-ring.c (main): Likewise.
29625         * tests/test-inttypes.c (main): Likewise.
29626         * tests/test-link.c (main): Likewise.
29627         * tests/test-lstat.c (main): Likewise.
29628         * tests/test-math.c (main): Likewise.
29629         * tests/test-md5.c (main): Likewise.
29630         * tests/test-memchr2.c (main): Likewise.
29631         * tests/test-memrchr.c (main): Likewise.
29632         * tests/test-mkdir.c (main): Likewise.
29633         * tests/test-mkdirat.c (main): Likewise.
29634         * tests/test-mkfifoat.c (main): Likewise.
29635         * tests/test-open.c (main): Likewise.
29636         * tests/test-openat-safer.c (main): Likewise.
29637         * tests/test-openat.c (main): Likewise.
29638         * tests/test-quotearg.c (main): Likewise.
29639         * tests/test-rawmemchr.c (main): Likewise.
29640         * tests/test-readlink.c (main): Likewise.
29641         * tests/test-remove.c (main): Likewise.
29642         * tests/test-rename.c (main): Likewise.
29643         * tests/test-renameat.c (main): Likewise.
29644         * tests/test-rmdir.c (main): Likewise.
29645         * tests/test-sha1.c (main): Likewise.
29646         * tests/test-signal.c (main): Likewise.
29647         * tests/test-sigaction.c (main): Likewise.
29648         * tests/test-stat.c (main): Likewise.
29649         * tests/test-stat-time.c (main): Likewise.
29650         * tests/test-stddef.c (main): Likewise.
29651         * tests/test-stdint.c (main): Likewise.
29652         * tests/test-stdio.c (main): Likewise.
29653         * tests/test-stdlib.c (main): Likewise.
29654         * tests/test-strchrnul.c (main): Likewise.
29655         * tests/test-strerror.c (main): Likewise.
29656         * tests/test-string.c (main): Likewise.
29657         * tests/test-strtod.c (main): Likewise.
29658         * tests/test-strverscmp.c (main): Likewise.
29659         * tests/test-symlink.c (main): Likewise.
29660         * tests/test-symlinkat.c (main): Likewise.
29661         * tests/test-sys_stat.c (main): Likewise.
29662         * tests/test-sys_time.c (main): Likewise.
29663         * tests/test-time.c (main): Likewise.
29664         * tests/test-unistd.c (main): Likewise.
29665         * tests/test-unlink.c (main): Likewise.
29666         * tests/test-unlinkat.c (main): Likewise.
29667         * tests/test-utimens.c (main): Likewise.
29668         * tests/test-utimensat.c (main): Likewise.
29669         * tests/test-version-etc.c (main): Likewise.
29670         * tests/test-wchar.c (main): Likewise.
29671         * tests/test-wctype.c (main): Likewise.
29672         * tests/test-xprintf-posix.c (main): Likewise.
29673         * tests/test-posixtm.c (main): Likewise.
29674         (STREQ): Delete unused macro.
29675         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
29676         shadowed variables.
29677         * tests/test-memchr.c (main): Likewise.
29678
29679 2009-10-21  Eric Blake  <ebb9@byu.net>
29680
29681         areadlinkat: avoid failure on older glibc
29682         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
29683         rather than mis-comparing 0 against FUNC_RESULT of char*.
29684
29685 2009-10-21  Bruno Haible  <bruno@clisp.org>
29686
29687         * modules/stpncpy (License): Relicense under LGPLv2+.
29688         Reported by David Lutterkort <lutter@redhat.com>.
29689
29690 2009-10-20  Eric Blake  <ebb9@byu.net>
29691
29692         utimensat: work around Solaris 9 bug
29693         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
29694         has trailing slash bugs.
29695         * tests/test-lutimens.h (test_lutimens): Enhance test.
29696         * tests/test-utimens.h (test_utimens): Likewise.
29697         * doc/posix-functions/utime.texi (utime): Enhance documentation.
29698         * doc/posix-functions/utimes.texi (utimes): Likewise.
29699         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
29700         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
29701         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
29702         * doc/posix-functions/futimens.texi (futimens): Likewise.
29703
29704         fdutimensat: new module
29705         * modules/fdutimensat: New file.
29706         * lib/fdutimensat.c (fdutimensat): Likewise.
29707         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
29708         * MODULES.html.sh (File system functions): Mention module.
29709         * modules/fdutimensat-tests: New test.
29710         * tests/test-fdutimensat.c: Likewise.
29711
29712         doc: regenerate INSTALL
29713         * doc/INSTALL: Reflect recent autoconf update.
29714         * doc/INSTALL.ISO: Likewise.
29715         * doc/INSTALL.UTF-8: Likewise.
29716
29717 2009-10-20  Pádraig Brady  <P@draigBrady.com>
29718
29719         acl: warn if ACL support is not detected
29720         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
29721
29722 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
29723
29724         * lib/nproc.h: Add extern "C" block for C++.
29725
29726 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
29727             Bruno Haible  <bruno@clisp.org>
29728
29729         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
29730         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
29731         * doc/posix-functions/isalpha.texi: Likewise.
29732         * doc/posix-functions/isblank.texi: Likewise.
29733         * doc/posix-functions/iscntrl.texi: Likewise.
29734         * doc/posix-functions/isdigit.texi: Likewise.
29735         * doc/posix-functions/isgraph.texi: Likewise.
29736         * doc/posix-functions/islower.texi: Likewise.
29737         * doc/posix-functions/isprint.texi: Likewise.
29738         * doc/posix-functions/ispunct.texi: Likewise.
29739         * doc/posix-functions/isspace.texi: Likewise.
29740         * doc/posix-functions/isupper.texi: Likewise.
29741         * doc/posix-functions/isxdigit.texi: Likewise.
29742
29743 2009-10-18  Bruno Haible  <bruno@clisp.org>
29744
29745         Tests for module 'isblank'.
29746         * modules/isblank-tests: New file.
29747         * tests/test-isblank.c: New file.
29748
29749         New module 'isblank'.
29750         * lib/isblank.c: New file.
29751         * m4/isblank.m4: New file.
29752         * modules/isblank: New file.
29753         * doc/posix-functions/isblank.texi: Mention the new module.
29754
29755 2009-10-18  Bruno Haible  <bruno@clisp.org>
29756
29757         New module 'ctype'.
29758         * lib/ctype.in.h: New file.
29759         * m4/ctype.m4: New file.
29760         * modules/ctype: New file.
29761         * doc/posix-headers/ctype.texi: Mention the new module.
29762
29763 2009-10-18  Jim Meyering  <meyering@redhat.com>
29764
29765         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
29766         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
29767         right after its initialization, rather than farther down.
29768         Keeping these in close proximity makes it easier to ensure
29769         that each such variable is initialized.  E.g.,
29770
29771             LIB_CLOCK_GETTIME=
29772             AC_SUBST([LIB_CLOCK_GETTIME])
29773
29774         This change also increments these serial numbers.
29775         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
29776         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
29777         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
29778
29779 2009-10-18  Bruno Haible  <bruno@clisp.org>
29780
29781         Don't let environment variables perturb build.
29782         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
29783         (gl_PREREQ_GETHRXTIME): ... not here.
29784
29785 2009-10-18  Bruno Haible  <bruno@clisp.org>
29786
29787         Avoid symlink attack in localcharset module.
29788         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
29789         (O_NOFOLLOW): Define fallback.
29790         (get_charset_aliases): Don't open the file if it is a symbolic link.
29791         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
29792         gl_FCNTL_H.
29793         (gl_FCNTL_H): Require it.
29794         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
29795         * modules/localcharset (Files): Add m4/fcntl_h.m4.
29796         Reported by Fergal Glynn <fglynn@veracode.com>.
29797
29798 2009-10-18  Bruno Haible  <bruno@clisp.org>
29799
29800         Implement nproc for mingw.
29801         * lib/nproc.c: Include <windows.h>
29802         (num_processors): On native Windows platforms, try GetSystemInfo.
29803
29804 2009-10-18  Bruno Haible  <bruno@clisp.org>
29805
29806         Implement nproc for IRIX.
29807         * lib/nproc.c: Include <sys/sysmp.h>.
29808         (num_processors): On IRIX systems, try sysmp.
29809         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
29810
29811 2009-10-18  Bruno Haible  <bruno@clisp.org>
29812
29813         Implement nproc for HP-UX.
29814         * lib/nproc.c: Include <sys/pstat.h>
29815         (num_processors): On HP-UX systems, try pstat_getdynamic.
29816         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
29817         pstat_getdynamic.
29818
29819 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
29820             Bruno Haible  <bruno@clisp.org>
29821
29822         Implement nproc for NetBSD, OpenBSD.
29823         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
29824         (ARRAY_SIZE): New macro.
29825         (num_processors): On BSD systems, try sysctl of HW_NCPU.
29826         * m4/nproc.m4: New file.
29827         * modules/nproc (Files): Add m4/nproc.m4.
29828         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
29829         (Makefile.am): Instead, augment lib_SOURCES.
29830
29831 2009-10-18  Bruno Haible  <bruno@clisp.org>
29832
29833         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
29834         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
29835         sys/param.h.
29836
29837 2009-10-16  Eric Blake  <ebb9@byu.net>
29838
29839         utimensat: new module
29840         * modules/utimensat: New file.
29841         * lib/utimensat.c (utimensat): Likewise.
29842         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
29843         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
29844         so we can work around Linux bugs.
29845         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
29846         * modules/sys_stat (Makefile.am): Substitute them.
29847         * lib/sys_stat.in.h (utimensat): Declare it.
29848         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
29849         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
29850         * modules/utimensat-tests: New test.
29851         * tests/test-utimensat.c: Likewise.
29852
29853         utimens: let lutimens work on non-symlinks
29854         * lib/utimens.c (lutimens): Fall back to utimens rather than
29855         failing with ENOSYS, when file is not a symlink.
29856         (utimens): Reduce redirection.
29857         * tests/test-lutimens.h (test_lutimens): Update test to cover
29858         non-symlinks.
29859         * tests/test-utimens.h (test_utimens): Update test to cover
29860         symlinks.
29861         * tests/test-utimens.c (main): Update caller.
29862
29863         utimens: cache whether utimensat syscall works
29864         * lib/utimens.c (utimensat_works_really): New cache variable.
29865         (fdutimens, lutimens): Use it to avoid failing syscall.
29866
29867         test-stat-time, test-utimens: improve portability
29868         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
29869         ext4 on alpha, and for cygwin.
29870         * tests/test-utimens-common.h: New file.
29871         (nap): Factor delays into single function.
29872         * tests/test-lutimens.h (test_lutimens): Use new header.
29873         * tests/test-futimens.h (test_futimens): Likewise.
29874         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
29875         timestamps to occur from same machine, as was done previously for
29876         test_utimens.
29877         * modules/utimens-tests (Files): Ship new file.
29878         * modules/futimens-tests (Files): Likewise.
29879         Reported in part by Jim Meyering.
29880
29881         sys_stat: sort replacement declarations
29882         * lib/sys_stat.in.h: Sort declarations.
29883         * lib/futimens.c (futimens): Fix typo.
29884
29885 2009-10-15  Jim Meyering  <meyering@redhat.com>
29886
29887         don't let environment settings perturb build
29888         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
29889         could cause a configure-time and/or build-time malfunction.
29890         Typically, a configure-time function-in-library test is performed
29891         via code like this:
29892
29893           LIB_VAR=
29894           AC_SUBST([LIB_VAR])
29895           prefix_saved_LIBS=$LIBS
29896             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
29897                        [test "$ac_cv_search_FUNC" = "none required" ||
29898                         LIB_VAR=$ac_cv_search_FUNC])
29899           LIBS=$prefix_saved_LIBS
29900
29901         However, in each of the files affected by this change, the LIB_VAR=
29902         initialization was omitted.  Thus, when set in the environment, its
29903         value would propagate into generated Makefiles when FUNC is not found
29904         in LIB_NAME.
29905         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
29906         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
29907         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
29908
29909 2009-10-14  Eric Blake  <ebb9@byu.net>
29910
29911         fchdir: avoid infinite recursion in mingw
29912         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
29913         recursing.
29914
29915         test-stat-time: port to mingw
29916         * tests/test-stat-time.c (force_unlink): Return a value.
29917         (test_ctime) [W32]: Fix compilation error.
29918         (nap): Don't call usleep with too large an argument.  Use
29919         force_unlink.
29920         * doc/pastposix-functions/usleep.texi (usleep): Document the
29921         portability issue.
29922
29923 2009-10-13  Jim Meyering  <meyering@redhat.com>
29924
29925         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
29926         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
29927         * modules/pipe-filter-ii: Likewise.
29928         * modules/sys_socket-tests: Likewise.
29929         * modules/tsearch-tests: Likewise.
29930         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
29931         (check): Depend on it.
29932
29933 2009-10-12  Eric Blake  <ebb9@byu.net>
29934
29935         utimens-tests: port to NFS file systems
29936         * tests/test-utimens.h (test_utimens): Refactor utimecmp
29937         comparisons to avoid spurious failures from timestamp drift
29938         between NFS machines.
29939
29940 2009-10-12  Eric Blake  <ebb9@byu.net>
29941
29942         stat-time-tests: minor cleanups
29943         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
29944         * tests/test-stat-time.c (nap): Separate assignment from call.
29945         Suggested by Paolo Bonzini and Bruno Haible.
29946
29947         sys_stat: guarantee struct timespec
29948         * lib/sys_stat.in.h (includes): Always include <time.h>
29949         * modules/sys_stat (Depends-on): Add time.
29950         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
29951         mode_t permission values.
29952         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
29953         get at subsecond timestamps.
29954
29955 2009-10-10  Eric Blake  <ebb9@byu.net>
29956
29957         futimens: new module
29958         * modules/futimens: New file.
29959         * lib/futimens.c (futimens): Likewise.
29960         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
29961         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
29962         we can work around Linux bugs.
29963         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
29964         * modules/sys_stat (Makefile.am): Substitute them.
29965         * lib/sys_stat.in.h (futimens): Declare it.
29966         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
29967         * doc/posix-functions/futimens.texi (futimens): Likewise.
29968         * modules/futimens-tests: New test.
29969         * tests/test-futimens.c: Likewise.
29970
29971         utimens: introduce fdutimens
29972         * lib/utimens.h (fdutimens): New prototype.
29973         * lib/utimens.c (gl_futimens): Move guts...
29974         (fdutimens): ...to new interface.
29975         * tests/test-utimens.c (do_fdutimens): Use it.
29976
29977         utimens: add UTIME_NOW and UTIME_OMIT support
29978         * lib/utimens.c (validate_timespec, update_timespec): New helper
29979         functions.
29980         (gl_futimens, lutimens): Use them.
29981         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
29982         stdbool, sys_stat.
29983         (Link): Mention resulting library dependency.
29984         * modules/utimecmp (Link): Likewise.
29985         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
29986         (Makefile.am): Pick up library dependency.
29987         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
29988         definition.
29989         * tests/test-sys_stat.c: Test the definitions.
29990         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
29991         * NEWS: Document library dependency.
29992
29993         utimecmp: support symlink timestamps
29994         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
29995         hashing when possible.  Use pathconf when available.
29996         (SYSCALL_RESOLUTION): Recognize tighter resolution.
29997         * modules/utimecmp (Depends-on): Add lstat.
29998
29999         utimens: add lutimens interface
30000         * lib/utimens.c (lutimens): New function.
30001         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
30002         * lib/utimens.h (lutimens): Declare new interface.
30003         * tests/test-utimens.c (main): Enhance test.
30004         * tests/test-lutimens.h (test_lutimens): New file.
30005         * modules/utimens-tests (Files): Distribute it.
30006         (Depends-on): Add symlink.
30007         (configure.ac): Check for usleep.
30008
30009         utimens: validate futimens usage
30010         * lib/utimens.c (gl_futimens): Require valid fd up front, using
30011         fewer syscalls on failure later on.  Avoid compiler warning on
30012         mingw.
30013         * modules/utimens (Depends-on): Add dup2.
30014
30015         utimens: add test
30016         * modules/utimens-tests: New test.
30017         * tests/test-utimens.h: New file.
30018         * tests/test-futimens.h: Likewise.
30019         * tests/test-utimens.c: Likewise.
30020
30021         doc: mention timestamp portability issues
30022         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
30023         instead.
30024         * doc/posix-functions/utime.texi (utime): Likewise.
30025         * doc/posix-functions/utimes.texi (utimes): Likewise.
30026         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
30027         instead.
30028         * doc/posix-functions/futimens.texi (futimens): Mention utimens
30029         module.
30030         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
30031         Mention weakness with symlink timestamps.
30032         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
30033         to utimensat/futimens instead.
30034         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
30035
30036         test-dup2: enhance test
30037         * tests/test-dup2.c (main): Also check AT_FDCWD.
30038
30039         test-stat-time: avoid more spurious failures
30040         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
30041         xfs; and avoid race if the two timestamps cross quantization edge.
30042
30043         relocatable: prefer 'file system' over 'filesystem'
30044         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
30045         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
30046         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
30047         * doc/relocatable.texi (Enabling Relocatability): Likewise.
30048         * lib/relocatable.c (compute_curr_prefix): Likewise.
30049
30050 2009-10-10  Jim Meyering  <meyering@redhat.com>
30051
30052         stat-time-tests: check for the usleep function
30053         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
30054
30055 2009-10-10  Bruno Haible  <bruno@clisp.org>
30056
30057         * modules/xnanosleep: Put the Link section after the Include section.
30058
30059 2009-10-09  Eric Blake  <ebb9@byu.net>
30060
30061         dup2: work around FreeBSD 6.1 bug
30062         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
30063         * doc/posix-functions/dup2.texi (dup2): Document it.
30064         Reported by Nelson H. F. Beebe and Jim Meyering.
30065
30066         test-stat-time: port to buggy NFS clients
30067         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
30068         (test_ctime): Also skip test if mtime and ctime are skewed.
30069
30070         maint: prefer 'file system' over 'filesystem'
30071         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
30072         * doc/posix-functions/lstat.texi (lstat): Likewise.
30073         * lib/file-has-acl.c (file_has_acl): Likewise.
30074         * lib/fwriteerror.c [TEST]: Likewise.
30075         * tests/test-areadlink.h (test_areadlink): Likewise.
30076         * tests/test-areadlinkat-with-size.c (main): Likewise.
30077         * tests/test-areadlinkat.c (main): Likewise.
30078         * tests/test-canonicalize-lgpl.c (main): Likewise.
30079         * tests/test-canonicalize.c (main): Likewise.
30080         * tests/test-fstatat.c (main): Likewise.
30081         * tests/test-linkat.c (main): Likewise.
30082         * tests/test-lstat.h (test_lstat_func): Likewise.
30083         * tests/test-mkdir.h (test_mkdir): Likewise.
30084         * tests/test-readlink.h (test_readlink): Likewise.
30085         * tests/test-remove.c (main): Likewise.
30086         * tests/test-rename.h (test_rename): Likewise.
30087         * tests/test-renameat.c (main): Likewise.
30088         * tests/test-rmdir.h (test_rmdir_func): Likewise.
30089         * tests/test-symlink.h (test_symlink): Likewise.
30090         * tests/test-symlinkat.c (main): Likewise.
30091         * tests/test-unlink.h (test_unlink_func): Likewise.
30092         * tests/test-unlinkat.c (main): Likewise.
30093
30094         maint: make realtime library usage explicit
30095         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
30096         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
30097         * modules/settime (Link): Likewise.
30098         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
30099
30100         test-stat-time: speed up execution
30101         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
30102         warning on mingw.
30103         (nap): New helper function.
30104         (prepare_test): Use it to reduce sleep time.
30105         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
30106         execution.
30107         * modules/stat-time-tests (configure.ac): Check for usleep.
30108
30109 2009-10-09  Jim Meyering  <meyering@redhat.com>
30110
30111         selinux-h: always use getfilecon wrappers
30112         * lib/getfilecon.c: New file.
30113         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
30114         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
30115         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
30116         (fgetfilecon): Provide a stub.
30117         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
30118         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
30119         file unconditionally.
30120         When <selinux/selinux.h> is found, arrange to use wrappers.
30121         * modules/selinux-h (Files): Add getfilecon.c.
30122         (Makefile.am): Substitute include-next-related bits
30123         into the now-always-generated selinux/selinux.h file.
30124         * doc/glibc-functions/lgetfilecon.texi: New file.
30125         * doc/glibc-functions/fgetfilecon.texi: New file.
30126         * doc/glibc-functions/getfilecon.texi: New file.
30127         * doc/glibc-functions/getfilecon-desc.texi: New file.
30128         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
30129         which to pull in the new files.
30130         * MODULES.html.sh (Misc): Add selinux-h.
30131
30132 2009-10-08  Jim Meyering  <meyering@redhat.com>
30133
30134         unistd: fix comment typo
30135         * lib/unistd.in.h (euidaccess): Fix a comment typo.
30136
30137 2009-10-08  Eric Blake  <ebb9@byu.net>
30138
30139         areadlink: use SIZE_MAX consistently
30140         * modules/areadlink (Depends-on): Add stdint.
30141         * modules/areadlink-with-size (Depends-on): Likewise.
30142         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
30143         gives NULL; drop sys/types, since unistd gives size_t; and add
30144         stdint for SIZE_MAX.
30145         (SIZE_MAX): Rely on headers.
30146         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
30147         and add stdint.
30148         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
30149         (SIZE_MAX): Likewise.
30150         (INITIAL_BUF_SIZE): Turn into enum.
30151         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
30152
30153 2009-10-08  Jim Meyering  <meyering@redhat.com>
30154
30155         areadlinkat: avoid compilation failure
30156         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
30157         Fix typo in comment.
30158
30159 2009-10-07  Eric Blake  <ebb9@byu.net>
30160
30161         areadlinkat-with-size: new module
30162         * modules/areadlinkat-with-size: New module.
30163         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
30164         * lib/areadlink.h (areadlinkat): Declare it.
30165         * MODULES.html.sh (File system functions): Mention it.
30166         * modules/areadlinkat-with-size-tests: New test.
30167         * tests/test-areadlinkat-with-size.c: New file.
30168
30169         xreadlinkat: new module
30170         * modules/xreadlinkat: New module.
30171         * lib/xreadlinkat.c (xreadlinkat): New file.
30172         * lib/xreadlink.h (xreadlinkat): Declare it.
30173         * MODULES.html.sh (File system functions): Mention it.
30174
30175         areadlinkat: new module
30176         * lib/at-func.c (FUNC_FAIL): New define.
30177         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
30178         * modules/areadlinkat: New module.
30179         * lib/linkat.c (areadlinkat): Move...
30180         * lib/areadlinkat.c (areadlinkat): ...to new file.
30181         * lib/areadlink.h (areadlinkat): Declare it.
30182         * modules/linkat (Depends-on): Add areadlinkat.
30183         * MODULES.html.sh (File system functions): Mention it.
30184         * modules/areadlinkat-tests: New test.
30185         * tests/test-areadlinkat.c: New file.
30186
30187         areadlink, areadlink-with-size: add tests
30188         * modules/areadlink-tests: New test.
30189         * modules/areadlink-with-size-tests: Likewise.
30190         * tests/test-areadlink.h: New file.
30191         * tests/test-areadlink.c: Likewise.
30192         * tests/test-areadlink-with-size.c: Likewise.
30193
30194         maint: minor cleanups
30195         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
30196         _UNUSED_PARAMETER_ instead.
30197         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
30198         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
30199         * modules/linkat-tests (Files): Distribute test-link.h.
30200
30201         openat, utimens: whitespace cleanup
30202         * lib/openat.c: Prefer space throughout, rather than mix of 8
30203         spaces vs. tabs.
30204         * lib/at-func.c: Likewise.
30205         * lib/utimens.c: Likewise.
30206
30207         openat: avoid using wrong fd
30208         * lib/openat.c (openat_permissive): Reject user's fd if saving the
30209         working directory chooses same fd.
30210         * lib/at-func.c (AT_FUNC_NAME): Likewise.
30211
30212         mkdir, mkdirat: fix cygwin 1.5.x bug
30213         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
30214         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
30215         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
30216         bug.
30217         (gl_PREREQ_MKDIR): Delete unused macro.
30218         * modules/mkdir (Files): Track file rename.
30219         (configure.ac): Update macro name.
30220         * modules/openat (Depends-on): Add mkdir.
30221         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
30222
30223         mkdir, mkdirat: add tests
30224         * modules/mkdir-tests: New test.
30225         * tests/test-mkdir.h: New file.
30226         * tests/test-mkdir.c: Likewise.
30227         * tests/test-mkdirat.c: Likewise.
30228         * modules/openat-tests (Files): Add new files.
30229         (Makefile.am): Run new test.
30230
30231 2009-10-06  Eric Blake  <ebb9@byu.net>
30232
30233         doc: tweak *at function documentation
30234         * doc/posix-functions/faccessat.texi (faccessat): Mention
30235         known issue with replacement.
30236         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
30237         * doc/posix-functions/linkat.texi (linkat): Likewise.
30238         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
30239         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
30240         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
30241         * doc/posix-functions/renameat.texi (renameat): Likewise.
30242         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
30243
30244         openat: fix GNU/Hurd bug in unlinkat
30245         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
30246         broken.
30247         * doc/posix-functions/unlink.texi (unlink): Document this.
30248         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
30249
30250         fdopendir: fix GNU/Hurd bug
30251         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
30252         allowing non-directory fds.
30253         * lib/fdopendir.c (rpl_fdopendir): Work around it.
30254         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
30255         * modules/dirent (Makefile.am): Substitute it.
30256         * lib/dirent.in.h (fdopendir): Declare replacement.
30257         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
30258         * tests/test-fdopendir.c (main): Test something other than
30259         /dev/null, since on Hurd that behaves like a directory.
30260
30261         test-symlink: port to GNU/Hurd
30262         * tests/test-symlink.h (test_symlink): Relax expected errno.
30263
30264         doc: tweak more cygwin information
30265         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
30266         now compatible with glibc.
30267         * doc/posix-functions/getopt.texi (getopt): Likewise.
30268
30269         getopt-gnu: add another test
30270         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
30271         guarantee behavior relied on by m4.
30272         * tests/test-getopt.c (main): Use it.
30273         * modules/getopt-posix-tests (Depends-on): Add setenv.
30274         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
30275
30276         getopt: fix compilation on darwin
30277         * lib/getopt.in.h (includes): Leave breadcrumbs during system
30278         include.
30279         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
30280         Reported by Ludovic Courtès.
30281
30282 2009-10-06  Bruno Haible  <bruno@clisp.org>
30283
30284         * modules/size_max (Description): Discourage its use.
30285         Reported by Simon Josefsson.
30286
30287 2009-10-06  Jim Meyering  <meyering@redhat.com>
30288
30289         linkat: avoid compilation failure
30290         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
30291
30292 2009-10-05  Eric Blake  <ebb9@byu.net>
30293
30294         linkat: support Linux 2.6.17
30295         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
30296         linkat on Linux, but allow cache variable override.
30297         * lib/linkat.c (rpl_linkat): Define override.
30298         * modules/linkat (Depends-on): Add symlinkat.
30299         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
30300         * modules/unistd (Makefile.am): Substitute it.
30301         * lib/unistd.in.h (linkat): Declare replacement.
30302         Reported by Pádraig Brady.
30303
30304         quotearg: port test to systems with C.UTF-8 locale
30305         * tests/test-quotearg.c (struct result_strings): Add another
30306         member, differentiating between C.ASCII and C.UTF-8 handling.
30307         (compare_strings): Add parameter.
30308         (main): Adjust all callers.
30309
30310         getopt: avoid clash with FreeBSD _getopt_internal
30311         * lib/getopt.in.h (_getopt_internal): Override the name.
30312         * lib/getopt_int.h (includes): Pick up any overrides.
30313         Reported by Reuben Thomas.
30314
30315         hash: allow C89 compilation
30316         * lib/hash.c (check_tuning): Move declaration before statement.
30317         Reported by Reuben Thomas.
30318
30319 2009-10-05  Karl Berry  <karl@gnu.org>
30320
30321         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
30322
30323 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
30324             Bruno Haible  <bruno@clisp.org>
30325
30326         * lib/uname.c (uname): Use a table-driven algorithm to compute
30327         Windows NT versions.
30328
30329 2009-10-04  Bruno Haible  <bruno@clisp.org>
30330
30331         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
30332         program_invocation_short_name.
30333         * modules/progname (configure.ac): Test for presence of
30334         program_invocation_short_name.
30335         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
30336
30337 2009-10-04  Bruno Haible  <bruno@clisp.org>
30338
30339         * lib/progname.c (set_program_name): Fix comment.
30340         Reported by Jim Meyering.
30341
30342 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
30343             Bruno Haible  <bruno@clisp.org>
30344
30345         * lib/uname.c: Include <string.h>.
30346         (uname): Do only one call to GetVersionEx in the common case.
30347
30348 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
30349             Bruno Haible  <bruno@clisp.org>
30350
30351         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
30352         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
30353         (uname): Add support for Windows CE and various non-x86 CPU types.
30354
30355 2009-10-03  Bruno Haible  <bruno@clisp.org>
30356
30357         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
30358         invocation to tests/configure.ac.
30359         Reported by Ian Beckwith <ianb@erislabs.net>.
30360
30361 2009-10-02  Eric Blake  <ebb9@byu.net>
30362
30363         fchdir: avoid compiler warning
30364         * lib/fchdir.c (canonicalize_file_name)
30365         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
30366
30367         test-open: support mingw errno values
30368         * tests/test-open.h (test_open): Relax test.
30369         * tests/test-fopen.h (test_fopen): Likewise.
30370         * tests/test-openat-safer.c (main): Likewise.
30371
30372         open: fix opening directory on mingw
30373         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
30374
30375         test-open: on GNU/Hurd, /dev/null is a directory
30376         * tests/test-fopen.h (main): Rename...
30377         (test_fopen): ...to this.  Use a guaranteed non-directory when
30378         confirming open behavior on trailing slash.
30379         * tests/test-openat-safer.c (main): Likewise.
30380         * tests/test-open.h (main): Likewise....
30381         (test_open): ...to this.
30382         * tests/test-fopen.c (main): Adjust caller.
30383         * tests/test-fopen-safer.c (main): Likewise.
30384         * tests/test-open.c (main): Likewise.
30385         * tests/test-fcntl-safer.c (main): Likewise.
30386         Reported by Samuel Thibault.
30387
30388         rename, fchdir: don't ignore chdir failure
30389         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
30390         * lib/rename.c (rpl_rename) [W32]: Likewise.
30391         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
30392         an empty destination directory if source cannot be renamed,
30393         although there is still possibility for failure.
30394         * doc/posix-functions/rename.texi (rename): Document the race.
30395         Reported by Jim Meyering.
30396
30397         maint: cleanup whitespace in recent commits
30398         * lib/rename.c (rpl_rename): Remove tabs.
30399         * tests/test-link.h (test_link): Likewise.
30400         * lib/fchdir.c (get_name): Likewise.
30401         Reported by Jim Meyering.
30402
30403 2009-10-02  Ben Pfaff  <blp@gnu.org>
30404
30405         relocatable-prog-wrapper: Add missing dependency on
30406         double-slash-root.
30407         * modules/relocatable-prog-wrapper: Add dependency.
30408         Reported by Ian Beckwith <ianb@erislabs.net>.
30409
30410 2009-10-02  Eric Blake  <ebb9@byu.net>
30411
30412         renameat: fix Solaris bugs
30413         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
30414         needed fixing.
30415         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
30416         * modules/stdio (Makefile.am): Substitute it.
30417         * lib/stdio.in.h (renameat): Declare replacement.
30418         * lib/renameat.c (rpl_renameat): Implement fix.
30419
30420         renameat: new module
30421         * modules/renameat: New file.
30422         * lib/renameat.c (renameat): Likewise.
30423         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
30424         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
30425         * modules/stdio (Makefile.am): Substitute them.
30426         * lib/stdio.in.h (renameat): Declare it.
30427         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
30428         * doc/posix-functions/renameat.texi (renameat): Likewise.
30429         * modules/renameat-tests: New test.
30430         * tests/test-renameat.c: Likewise.
30431
30432         rename: fix mingw bugs
30433         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
30434         directory overwrite bugs.
30435
30436         rename: fix another cygwin 1.5 bug
30437         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
30438         checks.
30439         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
30440         unnecessary cygwin workarounds.  Also work around bug with moving
30441         full directory onto an empty one.
30442         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
30443
30444         rename-dest-slash: merge into rename module
30445         * modules/rename-dest-slash (Status): Mark obsolete.
30446         (Depends-on): Add rename.
30447         (Files): Let rename do it all.
30448         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
30449         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
30450         * m4/rename-dest-slash.m4: ...so this file can be deleted.
30451         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
30452         * lib/rename.c (rpl_rename): Update comments.
30453
30454         rename: fix cygwin 1.5.x bugs
30455         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
30456         * lib/rename.c (rpl_rename): Work around them.
30457         * modules/rename (Depends-on): Add same-inode.
30458
30459         rename: fix Solaris 10 bug
30460         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
30461         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
30462         was the only bug.
30463
30464         rename: fix Solaris 9 bug
30465         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
30466         on non-directory.  Avoid calling exit.
30467         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
30468         strdup.
30469         * modules/rename-tests (Depends-on): Drop lstat.
30470         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
30471         (gl_PREREQ_RENAME): Delete unused macro.
30472
30473         rename-dest-slash: fix NetBSD bug
30474         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
30475         links.
30476         * modules/rename-dest-slash (Depends-on): Add same-inode.
30477
30478         rename-tests: new test, exposes several platform bugs
30479         * modules/rename-tests: New file.
30480         * tests/test-rename.h: Likewise.
30481         * tests/test-rename.c: Likewise.
30482         * doc/posix-functions/rename.texi (rename): Improve documentation,
30483         including bugs that will eventually be fixed in gnulib.
30484
30485 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
30486
30487         * lib/uname.c: Include <stdlib.h>
30488         (uname): Assume version info is available.
30489
30490 2009-10-02  Jim Meyering  <meyering@redhat.com>
30491
30492         gnu-web-doc-update: correct --help output
30493         * build-aux/gnu-web-doc-update: Make --help output relevant.
30494
30495         gnu-web-doc-update: add standard options
30496         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
30497
30498         gnu-web-doc-update: New module.
30499         Use this script to automatically update the on-line web documentation
30500         for your GNU project at http://www.gnu.org/software/$pkg/manual/
30501         * modules/gnu-web-doc-update: New file, from coreutils.
30502         * build-aux/gnu-web-doc-update: New script.
30503
30504 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
30505
30506         link: LoadLibrary is not needed.
30507         * lib/link.c: Use GetModuleHandle.
30508
30509 2009-10-01  Eric Blake  <ebb9@byu.net>
30510
30511         getopt: bump serial number
30512         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
30513         change.
30514
30515         tests: tighten link, rmdir, and remove tests
30516         * tests/test-link.h (includes): No need to use <config.h> here.
30517         Clean up if directory hard link was created, otherwise test for
30518         trailing '.'.
30519         * tests/test-linkat.c (main): Simplify.
30520         * tests/test-remove.c (main): Enhance test for trailing '.'.
30521         * tests/test-rmdir.h (test_rmdir_func): Likewise.
30522
30523 2009-10-01  Jim Meyering  <meyering@redhat.com>
30524
30525         maint.mk: requiring "make major" was annoying, for a "minor" release.
30526         What is intended is "stable", to contrast with alpha and beta,
30527         so require "make stable", not "make major".
30528         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
30529         (get_tool_versions): Likewise.
30530         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
30531
30532 2009-09-30  Ben Pfaff  <blp@gnu.org>
30533
30534         Fix broken build of replacement for Windows tmpfile().
30535         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
30536         flags argument added along with the 'mkostemp' module.
30537
30538 2009-09-28  Bruno Haible  <bruno@clisp.org>
30539
30540         Avoid identifier clash with POSIX function 'remove' defined as a macro.
30541         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
30542         to 'remove_elt'.
30543         (gl_list_remove): Update.
30544         * lib/gl_list.c (gl_list_remove): Update.
30545         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
30546         to 'remove_elt'.
30547         (gl_oset_remove): Update.
30548         * lib/gl_list.c (gl_oset_remove): Update.
30549         Reported by Eric Blake.
30550
30551 2009-09-28  Eric Blake  <ebb9@byu.net>
30552
30553         doc: mention yet more cygwin 1.7 status
30554         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
30555         cygwin.
30556         * doc/glibc-functions/execvpe.texi (execvpe): New file.
30557         * doc/gnulib.texi (Glibc unistd.h): Mention it.
30558
30559         argp: fix test failure
30560         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
30561         that are not upper-case.  Pass correct range to tolower.
30562
30563 2009-09-27  Jim Meyering  <meyering@redhat.com>
30564
30565         test-yesno: work around sparc-dash here-document infelicity
30566         Without this change, the literal \177 byte in a here document
30567         would make dash 0.5.5.1-3 access uninitialized memory.
30568         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
30569         Instead, use a marker, "@", and filter through tr to create the desired
30570         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
30571
30572 2009-09-27  Bruno Haible  <bruno@clisp.org>
30573
30574         Disable untested support for new flavours of ACLs on AIX.
30575         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
30576         progress.
30577         * lib/set-mode-acl.c (qset_acl): Likewise.
30578
30579 2008-12-07  Bruno Haible  <bruno@clisp.org>
30580
30581         Add support for new flavours of ACLs on AIX. (Untested.)
30582         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
30583         (file_has_acl): Add support for newer AIX.
30584         * lib/set-mode-acl.c (qset_acl): Likewise.
30585         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
30586         Rainer Tammer <tammer@tammer.net>.
30587
30588 2009-09-26  Eric Blake  <ebb9@byu.net>
30589
30590         argp: fix compilation of getopt
30591         * lib/getopt.in.h (includes): Use different guard than glibc.
30592         Reported by Sergey Poznyakoff.
30593
30594         doc: mention more cygwin 1.7 status
30595         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
30596         bug.
30597         * doc/posix-functions/execl.texi (execl): Likewise.
30598         * doc/posix-functions/execle.texi (execle): Likewise.
30599         * doc/posix-functions/execlp.texi (execlp): Likewise.
30600         * doc/posix-functions/execv.texi (execv): Likewise.
30601         * doc/posix-functions/execve.texi (execve): Likewise.
30602         * doc/posix-functions/execvp.texi (execvp): Likewise.
30603         * doc/glibc-functions/canonicalize_file_name.texi
30604         (canonicalize_file_name): Cygwin 1.7 now provides this.
30605         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
30606         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
30607         on AT_SYMLINK_NOFOLLOW.
30608
30609 2009-09-24  Eric Blake  <ebb9@byu.net>
30610
30611         test-linkat: make test more robust
30612         * tests/test-linkat.c (main): Avoid collision with EEXIST.
30613
30614         getopt: fix inclusion guards for cygwin
30615         * modules/getopt-posix (Depends-on): Add include-next.
30616         (Makefile.am): Substitute more items in replacement header.
30617         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
30618         <getopt.h>.
30619         * lib/getopt.in.h (includes): Use split inclusion guard, and
30620         prefer <getopt.h> over include <unistd.h> when one is present.
30621         (option): Also override name of 'struct option'.
30622
30623         same-inode: revert prior change; it is not yet ready
30624         * NEWS: Undo mention of this change.
30625         * lib/same-inode.h (same-inode.h): Undo tri-state change.
30626         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
30627         * lib/cycle-check.c (cycle_check): Likewise.
30628         * lib/same.c (same_name): Likewise.
30629         * lib/at-func2.c (at_func2): Likewise.
30630
30631 2009-09-23  Eric Blake  <ebb9@byu.net>
30632
30633         linkat: new module
30634         * modules/linkat: New file.
30635         * lib/at-func2.c (at_func2): Likewise.
30636         * lib/linkat.c (linkat): Likewise.
30637         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
30638         * lib/openat-priv.h (at_func2): Add declaration.
30639         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
30640         * modules/unistd (Makefile.am): Substitute them.
30641         * lib/unistd.in.h (linkat): Declare it.
30642         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
30643         * doc/posix-functions/linkat.texi (linkat): Likewise.
30644         * doc/posix-functions/link.texi (link): Tweak wording.
30645         * tests/test-link.c (main): Move guts...
30646         * tests/test-link.h (test_link): ...into new file.
30647         * modules/linkat-tests: New test.
30648         * tests/test-linkat.c: Likewise.
30649         * modules/link-tests (Files): Ship new file.
30650         (Depends-on): Add stdbool.
30651
30652         dirname: add library-safe mdir_name
30653         * lib/dirname.h (mdir_name): New prototype.
30654         * lib/dirname.c (dir_name): Move guts...
30655         (mdir_name): ...to new function that avoids xalloc_die.
30656
30657         fchdir: another mingw fix
30658         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
30659         * lib/fchdir.c (get_name): New helper method; skips canonicalize
30660         on mingw (where it has not yet been ported), and make it optional
30661         elsewhere.
30662         (_gl_register_fd): Use it.
30663
30664         same-inode: make SAME_INODE tri-state, to port to mingw
30665         * NEWS: Mention this change.
30666         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
30667         st_ino always being 0.
30668         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
30669         * lib/cycle-check.c (cycle_check): Likewise.
30670         * lib/same.c (same_name): Likewise.
30671
30672         lstat: avoid mingw compilation error
30673         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
30674         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
30675         lstat ourselves.
30676         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
30677         was adequate.
30678         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
30679         the checks for lstat.
30680         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
30681
30682         link: fix test failure on Solaris 9
30683         * lib/link.c (rpl_link): Don't assume link will catch bogus
30684         trailing slash on source.
30685
30686         test-symlinkat: enhance test
30687         * tests/test-readlink.c (main): Move guts...
30688         * tests/test-readlink.h (test_readlink): ...into new file.
30689         * tests/test-symlink.c (main): Move guts...
30690         * tests/test-symlink.h (test_symlink): ...into new file.
30691         * tests/test-symlinkat.c (main): Use new files for further
30692         coverage.
30693         (do_symlink, do_readlink): New helper functions.
30694         * modules/symlink-tests (Files): Ship new file.
30695         (Depends-on): Add stdbool.
30696         * modules/readlink-tests (Files): Ship new file.
30697         (Depends-on): Add stdbool.
30698         * modules/symlinkat-tests (Files): Use new files.
30699
30700 2009-09-23  Eric Blake  <ebb9@byu.net>
30701
30702         readlink: document portability issue with symlink length
30703         * doc/posix-functions/lstat.texi (lstat): Mention that some file
30704         systems have bogus st_size on symlinks, and mention the
30705         areadlink-with-size module.
30706         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
30707         * doc/posix-functions/readlink.texi (readlink): Mention the
30708         areadlink module, and ERANGE failure.
30709         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
30710         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
30711
30712         readlink: fix Solaris 9 bug with trailing slash
30713         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
30714         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
30715         * doc/posix-functions/readlink.texi (readlink): Document this.
30716         * modules/readlink-tests: New test.
30717         * tests/test-readlink.c: Likewise.
30718
30719         readlink: fix cygwin 1.5.x bug with return type
30720         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
30721         * lib/unistd.in.h (readlink): Use ssize_t.
30722         * lib/readlink.c (readlink): Likewise.
30723         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
30724         * modules/unistd (Makefile.am): Substitute it.
30725         * lib/unistd.in.h (readlink): Declare replacement.
30726         * doc/posix-functions/readlink.texi (readlink): Document this.
30727
30728         symlink: use throughout gnulib
30729         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
30730         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
30731         symlink is not used.
30732         * modules/symlinkat (Depends-on): Add symlink.
30733         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
30734         * modules/canonicalize-tests (Depends-on): Likewise.
30735         * modules/lstat-tests (Depends-on): Likewise.
30736         * modules/openat-tests (Depends-on): Likewise.
30737         * modules/remove-tests (Depends-on): Likewise.
30738         * modules/rmdir-tests (Depends-on): Likewise.
30739         * modules/unlink-tests (Depends-on): Likewise.
30740         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
30741         * tests/test-canonicalize.c (symlink): Likewise.
30742         * tests/test-fstatat.c (symlink): Likewise.
30743         * tests/test-lstat.c (symlink): Likewise.
30744         * tests/test-remove.c (symlink): Likewise.
30745         * tests/test-rmdir.c (symlink): Likewise.
30746         * tests/test-unlink.c (symlink): Likewise.
30747         * tests/test-unlinkat.c (symlink): Likewise.
30748
30749         symlink: new module, for Solaris 9 bug
30750         * modules/symlink: New file.
30751         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
30752         * lib/symlink.c: Likewise.
30753         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
30754         * modules/unistd (Makefile.am): Substitute them.
30755         * lib/unistd.in.h (symlink): Declare replacement.
30756         * MODULES.html.sh (File system functions): Mention it.
30757         * doc/posix-functions/symlink.texi (symlink): Likewise.
30758         * modules/symlink-tests: New test.
30759         * tests/test-symlink.c: Likewise.
30760
30761 2009-09-23  Bruno Haible  <bruno@clisp.org>
30762
30763         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
30764         when needed.
30765         Test case: gnulib-tool --import --with-tests atexit inttypes.
30766         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
30767
30768 2009-09-23  Bruno Haible  <bruno@clisp.org>
30769
30770         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
30771         subcommand, not in a subshell.
30772
30773 2009-09-22  Eric Blake  <ebb9@byu.net>
30774
30775         unistd: sort replacement declarations
30776         * lib/unistd.in.h: Sort declarations.
30777
30778         open, openat: minor optimization
30779         * lib/open.c (open): If open succeeded, len is non-zero.
30780         * lib/openat.c (rpl_openat): Likewise.
30781
30782         link-follow: ensure correct result
30783         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
30784         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
30785         distinguish between possible failures.
30786
30787 2009-09-21  Eric Blake  <ebb9@byu.net>
30788
30789         fts: avoid compiler warning
30790         * lib/fts.c (dirent_inode_sort_may_be_useful)
30791         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
30792
30793 2009-09-19  Bruno Haible  <bruno@clisp.org>
30794
30795         * lib/progreloc.c (canonicalize_file_name): New declaration.
30796
30797 2009-09-19  Eric Blake  <ebb9@byu.net>
30798
30799         link: fix quoting
30800         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
30801
30802         openat: fix openat bugs on Solaris 9
30803         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
30804         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
30805         * modules/openat (Depends-on): Add open.
30806         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
30807         * modules/fcntl-h (Makefile.am): Substitute it.
30808         * lib/fcntl.in.h (openat): Declare replacement.
30809         * doc/posix-functions/openat.texi (openat): Document this.
30810
30811         openat: move fstatat and unlinkat into correct files
30812         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
30813         compiled.
30814         * lib/openat.c (fstatat, unlinkat): Move...
30815         * lib/fstatat.c (fstatat): ...into correct files.
30816         * lib/unlinkat.c (unlinkat): Likewise.
30817
30818         openat: fix unlinkat bugs on Solaris 9
30819         * lib/unlinkat.c (unlinkat): New file.
30820         * modules/openat (Depends-on): Add unlink.
30821         (Files): Distribute it.
30822         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
30823         trailing slash behavior is broken.
30824         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
30825         * modules/unistd (Makefile.am): Substitute it.
30826         * lib/unistd.in.h (unlinkat): Declare replacement.
30827         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
30828
30829         openat: fix fstatat bugs on Solaris 9
30830         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
30831         stat.
30832         * doc/posix-functions/fstatat.texi (fstatat): Document this.
30833
30834         test-unlinkat: enhance test, to expose Solaris 9 bug
30835         * tests/test-unlink.c (main): Factor guts...
30836         * tests/test-unlink.h (test_rmdir_func): ...into new file.
30837         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
30838         * tests/test-rmdir.c (main): Adjust caller.
30839         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
30840         (unlinker): New helper function.
30841         (rmdirat): Enhance check.
30842         * modules/rmdir-tests (Depends-on): Add stdbool.
30843         * modules/unlink-tests (Depends-on): Likewise.
30844         (Files): Add test-unlink.h.
30845         * modules/openat-tests (Files): Likewise.
30846         (Depends-on): Add unlinkdir.
30847
30848         test-fstatat: new test, to expose Solaris 9 bugs
30849         * tests/test-stat.c (main): Factor guts...
30850         * tests/test-stat.h (test_stat_func): ...into new file.
30851         * tests/test-lstat.c (main): Factor guts...
30852         * tests/test-lstat.h (test_lstat_func): ...into new file.
30853         * tests/test-fstatat.c: New file.
30854         * modules/stat-tests (Files): Add test-stat.h.
30855         * modules/lstat-tests (Files): Add test-lstat.h.
30856         (Depends-on): Add stdbool.
30857         * modules/openat-tests (Depends-on): Add pathmax.
30858         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
30859         (Makefile.am): Run new test.
30860
30861         remove: new module, for mingw and Solaris 9 bugs
30862         * modules/remove: New file.
30863         * lib/remove.c: Likewise.
30864         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
30865         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
30866         * modules/stdio (Makefile.am): Use them.
30867         * lib/stdio.in.h (remove): Declare replacement.
30868         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
30869         * doc/posix-functions/remove.texi (remove): Likewise.
30870         * modules/remove-tests: New test.
30871         * tests/test-remove.c: Likewise.
30872
30873         unlink: new module, for Solaris 9 bug
30874         * modules/unlink: New file.
30875         * lib/unlink.c: Likewise.
30876         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
30877         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
30878         * modules/unistd (Makefile.am): Use them.
30879         * lib/unistd.in.h (stat): Declare replacement.
30880         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
30881         * doc/posix-functions/unlink.texi (unlink): Likewise.
30882         * modules/unlink-tests: New test.
30883         * tests/test-unlink.c: Likewise.
30884
30885         lstat: fix Solaris 9 bug
30886         * lib/lstat.c (lstat): Also check for trailing slash on
30887         non-symlink, non-directories.  Use stat module to simplify logic.
30888         * doc/posix-functions/lstat.texi (lstat): Document it.
30889         * modules/lstat-tests (Depends-on): Add errno, same-inode.
30890         (configure.ac): Check for symlink.
30891         * tests/test-lstat.c (main): Add more tests.
30892
30893         stat: add as dependency to other modules
30894         * modules/chown (Depends-on): Add stat.
30895         * modules/euidaccess (Depends-on): Likewise.
30896         * modules/fchdir (Depends-on): Likewise.
30897         * modules/isdir (Depends-on): Likewise.
30898         * modules/link (Depends-on): Likewise.
30899         * modules/lstat (Depends-on): Likewise.
30900         * modules/mkdir-p (Depends-on): Likewise.
30901         * modules/modechange (Depends-on): Likewise.
30902         * modules/open (Depends-on): Likewise.
30903         * modules/readlink (Depends-on): Likewise.
30904         * modules/same (Depends-on): Likewise.
30905
30906         stat: fix Solaris 9 bug
30907         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
30908         slash.
30909         * lib/stat.c (rpl_stat): Work around it.
30910         * doc/posix-functions/stat.texi (stat): Update documentation.
30911
30912         stat: new module, for mingw bug
30913         * modules/stat: New file.
30914         * lib/stat.c: Likewise.
30915         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
30916         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
30917         * modules/sys_stat (Makefile.am): Use them.
30918         * lib/sys_stat.in.h (stat): Declare replacement.
30919         * lib/openat.c (fstatat): Deal with lstat and stat being function
30920         macros.
30921         * modules/openat (Depends-on): Add inline.
30922         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
30923         * doc/posix-functions/stat.texi (stat): Likewise.
30924         * modules/stat-tests: New test.
30925         * tests/test-stat.c: Likewise.
30926
30927 2009-09-19  Jim Meyering  <meyering@redhat.com>
30928
30929         syntax-check: detect unnecessary inclusion of canonicalize.h
30930         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
30931
30932 2009-09-19  Eric Blake  <ebb9@byu.net>
30933
30934         canonicalize-lgpl: adjust clients to use correct header
30935         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
30936         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
30937         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
30938         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
30939         * lib/progreloc.c (includes): Likewise.
30940
30941 2009-09-19  Jim Meyering  <meyering@redhat.com>
30942
30943         test-posixtm.c: correct a comment
30944         * tests/test-posixtm.c: Correct first-line comment.
30945         Spotted by Eric Blake.
30946
30947 2009-09-16  Jim Meyering  <meyering@redhat.com>
30948
30949         posixtm-tests: make T const-correct; add a test case
30950         * tests/test-posixtm.c (T): Declare const.
30951         Add a test for -(2^31+1).
30952         Remove useless can-succeed-only-in-2002 test.
30953
30954         posixtm-tests: adjust the sole failing test
30955         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
30956         expected output matches what mktime now produces.  Cross-checked via
30957         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
30958
30959         posixtm: move #ifdef'd tests into a new module
30960         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
30961         * tests/test-posixtm.c: ... this new file.
30962         * modules/posixtm-tests: New module.
30963
30964 2009-09-19  Eric Blake  <ebb9@byu.net>
30965
30966         openat: simplify use of at-func.c
30967         * lib/at-func.c (includes): Include prerequisites here, to
30968         simplify requirements on client files.
30969         * lib/openat-priv.h: Add double-inclusion guard.
30970         * lib/faccessat.c (includes): Simplify.
30971         * lib/fchmodat.c (includes): Likewise.
30972         * lib/fchownat.c (includes): Likewise.
30973         * lib/mkdirat.c (includes): Likewise.
30974         * lib/mkfifoat.c (includes): Likewise.
30975         * lib/symlinkat.c (includes): Likewise.
30976
30977         openat: allow return of fd 0
30978         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
30979         * modules/save-cwd (Depends-on): Replace fcntl-safer with
30980         unistd-safer.
30981         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
30982         <fcntl.h>; this module does not leak fds.
30983         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
30984         must be allowed to return 0, leaving openat_safer to add the
30985         safety.
30986         (openat_permissive): Avoid writing to just-opened fd 2 if
30987         restoring the current directory fails.
30988         * lib/openat-die.c (openat_restore_fail): Add comment.
30989         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
30990         (save_cwd): Guarantee safe fd, but without use of open_safer.
30991         * tests/test-openat.c: New test.
30992         * modules/openat-tests (Files, Makefile.am): Distribute and build
30993         new file.
30994
30995         relocatable-prog-wrapper: fix build
30996         * modules/relocatable-prog-wrapper (Files): Update name of
30997         canonicalize m4 file, broken on 2009-09-17.
30998         Reported by emad hajjar <aleppos@hotmail.com>.
30999
31000 2009-09-19  Bruno Haible  <bruno@clisp.org>
31001
31002         * lib/safe-alloc.h: Use the standard header with GPL copyright.
31003         * lib/safe-alloc.c: Likewise.
31004         Reported by Ian Beckwith <ianb@erislabs.net>.
31005
31006 2009-09-18  Bruno Haible  <bruno@clisp.org>
31007
31008         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
31009         Reported by <erobles@sensacd.com.mx>.
31010
31011 2009-09-17  Eric Blake  <ebb9@byu.net>
31012
31013         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
31014         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
31015         slashes when checking if last component is missing.
31016         * tests/test-canonicalize.c (main): Test this.
31017
31018         canonicalize, canonicalize-lgpl: honor // if distinct from /
31019         * modules/canonicalize (Files): Add double-slash-root.m4.
31020         * modules/canonicalize-lgpl (Files): Likewise.
31021         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
31022         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
31023         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
31024         fallback definition.
31025         (canonicalize_filename_mode): Use it to protect //.
31026         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
31027         (__realpath): Likewise.
31028         * tests/test-canonicalize.c (main): Test this.
31029         * tests/test-canonicalize-lgpl.c (main): Likewise.
31030         * modules/canonicalize-tests (Depends-on): Add same-inode.
31031         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
31032
31033         canonicalize-lgpl: fix glibc bug with trailing slash
31034         * m4/canonicalize-lgpl.m4: Move contents...
31035         * m4/canonicalize.m4: ...here.
31036         (gl_CANONICALIZE_LGPL): Factor realpath check...
31037         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
31038         glibc 2.3.5 bug, fixed 2005-04-27.
31039         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
31040         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
31041         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
31042         * modules/canonicalize-lgpl (Files): Manage file rename.
31043         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
31044         * modules/stdlib (Makefile.am): Substitute witness.
31045         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
31046         is needed.
31047         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
31048         replacement is required.
31049         * lib/canonicalize.c (canonicalize_file_name): Likewise.
31050         * doc/glibc-functions/canonicalize_file_name.texi
31051         (canonicalize_file_name): Document this.
31052         * doc/posix-functions/realpath.texi (realpath): Likewise.
31053
31054         canonicalize-lgpl: reject non-directory with trailing slash
31055         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
31056         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
31057         catches failures in glibc 2.3.5.
31058         * tests/test-canonicalize.c (main): Likewise.
31059
31060         canonicalize-lgpl: use native realpath if it works
31061         * lib/canonicalize-lgpl.c (realpath): Guard with
31062         FUNC_REALPATH_WORKS.
31063         * lib/stdlib.in.h (realpath): Make declaration optional based on
31064         HAVE_REALPATH.
31065         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
31066         native realpath works.
31067         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
31068         * modules/stdlib (Makefile.am): Substitute witness.
31069
31070         canonicalize, canonicalize-lgpl: use <stdlib.h>
31071         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
31072         (Include): Mention <stdlib.h>.
31073         (configure.ac): Mention functions we provide.
31074         * modules/canonicalize (configure.ac): Likewise.
31075         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
31076         realpath if canonicalize_file_name is missing.
31077         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
31078         * modules/stdlib (Makefile.am): Substitute witnesses.
31079         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
31080         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
31081         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
31082         * NEWS: Document this.
31083         * doc/glibc-functions/canonicalize_file_name.texi
31084         (canonicalize_file_name): Likewise.
31085         * doc/posix-functions/realpath.texi (realpath): Likewise.
31086         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
31087
31088         test-canonicalize: consolidate into single C program
31089         * tests/test-canonicalize.sh: Delete; move setup into...
31090         * tests/test-canonicalize.c (main): ...the program, making it
31091         easier to run in debugger.  Add some tests.
31092         * modules/canonicalize-tests (Files): Remove unused file.
31093         (Depends-on): Add progname.
31094         (configure.ac, Makefile.am): Simplify.
31095
31096         test-canonicalize-lgpl: consolidate into single C program
31097         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
31098         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
31099         easier to run in debugger.  Add some tests.
31100         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
31101         (configure.ac, Makefile.am): Simplify.
31102
31103         canonicalize: avoid resolvepath
31104         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
31105         unnecessary checks.
31106         * lib/canonicalize.c (includes): Simplify.
31107         (canonicalize_file_name): Drop resolvepath implementation.
31108         * modules/canonicalize (Depends-on): Drop filenamecat.
31109
31110         canonicalize: don't lose errno
31111         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
31112         over calls to free.
31113
31114         canonicalize: simplify errno handling
31115         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
31116         assignment.
31117
31118         canonicalize, canonicalize-lgpl: update module dependencies
31119         * modules/canonicalize (Depends-on): Add extensions, lstat,
31120         pathmax, stdlib.
31121         (Files): Drop pathmax.h.
31122         (configure.ac): Adjust macro name.
31123         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
31124         lstat, stdlib, sys_stat.
31125         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
31126         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
31127         extensions.
31128         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
31129         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
31130         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
31131         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
31132         declaration, if available.
31133         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
31134         we can rely on the readlink module.
31135         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
31136         (includes): Use <unistd.h> unconditionally.
31137
31138 2009-09-17  Eric Blake  <ebb9@byu.net>
31139
31140         maint: make Include sections of modules consistent
31141         * modules/alloca: Use only header name; no need to list #include.
31142         * modules/alloca-opt: Likewise.
31143         * modules/arpa_inet: Likewise.
31144         * modules/canon-host: Likewise.
31145         * modules/configmake: Likewise.
31146         * modules/dirent: Likewise.
31147         * modules/eealloc: Likewise.
31148         * modules/environ: Likewise.
31149         * modules/fchdir: Likewise.
31150         * modules/fcntl: Likewise.
31151         * modules/fcntl-h: Likewise.
31152         * modules/gethrxtime: Likewise.
31153         * modules/gettime: Likewise.
31154         * modules/ignore-value: Likewise.
31155         * modules/inet_ntop: Likewise.
31156         * modules/inet_pton: Likewise.
31157         * modules/inttypes: Likewise.
31158         * modules/isnand-nolibm: Likewise.
31159         * modules/isnanf-nolibm: Likewise.
31160         * modules/mbchar: Likewise.
31161         * modules/mbfile: Likewise.
31162         * modules/mbiter: Likewise.
31163         * modules/mbuiter: Likewise.
31164         * modules/netdb: Likewise.
31165         * modules/netinet_in: Likewise.
31166         * modules/nproc: Likewise.
31167         * modules/pagealign_alloc: Likewise.
31168         * modules/poll: Likewise.
31169         * modules/printf-frexp: Likewise.
31170         * modules/pthread: Likewise.
31171         * modules/putenv: Likewise.
31172         * modules/random_r: Likewise.
31173         * modules/relocatable-prog: Likewise.
31174         * modules/search: Likewise.
31175         * modules/select: Likewise.
31176         * modules/selinux-h: Likewise.
31177         * modules/settime: Likewise.
31178         * modules/signal: Likewise.
31179         * modules/size_max: Likewise.
31180         * modules/socklen: Likewise.
31181         * modules/ssize_t: Likewise.
31182         * modules/stdarg: Likewise.
31183         * modules/stdbool: Likewise.
31184         * modules/stddef: Likewise.
31185         * modules/stdint: Likewise.
31186         * modules/stdio: Likewise.
31187         * modules/stdlib: Likewise.
31188         * modules/string: Likewise.
31189         * modules/strings: Likewise.
31190         * modules/sys_file: Likewise.
31191         * modules/sys_ioctl: Likewise.
31192         * modules/sys_select: Likewise.
31193         * modules/sys_socket: Likewise.
31194         * modules/sys_stat: Likewise.
31195         * modules/sys_time: Likewise.
31196         * modules/sys_times: Likewise.
31197         * modules/sys_utsname: Likewise.
31198         * modules/sys_wait: Likewise.
31199         * modules/sysexits: Likewise.
31200         * modules/time: Likewise.
31201         * modules/times: Likewise.
31202         * modules/tmpfile: Likewise.
31203         * modules/trim: Likewise.
31204         * modules/unistd: Likewise.
31205         * modules/wchar: Likewise.
31206         * modules/wctype: Likewise.
31207
31208 2009-09-17  Bruno Haible  <bruno@clisp.org>
31209
31210         Make getdate.y compile on QNX and NetBSD 5 / i386.
31211         * m4/getdate.m4 (gl_GETDATE): Conditionally define
31212         TIME_T_FITS_IN_LONG_INT.
31213         * lib/getdate.y (long_time_t): New type.
31214         (relative_time): Change type of 'seconds' field to long_time_t.
31215         (get_date): Update types of local variables. Check against overflow
31216         during conversion from long_time_t to time_t.
31217         Reported by Matt Kraai <kraai@ftbfs.org>
31218         and Hasso Tepper <hasso@netbsd.org>.
31219
31220 2009-09-17  Bruno Haible  <bruno@clisp.org>
31221
31222         * modules/COPYING: Update copyright years.
31223         * modules/README: Likeiwse.
31224         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
31225         Reported by Ian Beckwith <ianb@erislabs.net>.
31226
31227 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
31228
31229         * users.txt: Update references for gnuit package.
31230
31231 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
31232
31233         * m4/getdelim.m4: Fix typo in copyright line.
31234
31235 2009-09-17  Bruno Haible  <bruno@clisp.org>
31236
31237         * lib/atoll.c: Use the standard header with GPL copyright.
31238         * lib/argz.in.h: Likewise.
31239         * lib/glob.c: Likewise.
31240         * lib/glob-libc.h: Likewise.
31241         * lib/random_r.c: Likewise.
31242         * lib/siglist.h: Likewise.
31243         * lib/strsignal.c: Likewise.
31244         Reported by Ian Beckwith <ianb@erislabs.net>.
31245
31246 2009-09-17  Eric Blake  <ebb9@byu.net>
31247
31248         rmdir: ensure correct dependency order
31249         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
31250
31251 2009-09-17  Bruno Haible  <bruno@clisp.org>
31252
31253         Disable assertion that fails on NetBSD 5 / i386.
31254         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
31255         Reported by Sam Steingold <sds@gnu.org>
31256         and Hasso Tepper <hasso@netbsd.org>.
31257
31258 2009-09-16  Eric Blake  <ebb9@byu.net>
31259
31260         unlinkdir: port to mingw
31261         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
31262         on which no one can unlink a directory.
31263
31264         stdlib: sort witness names
31265         * modules/stdlib (Makefile.am): Sort replacements.
31266         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
31267         * lib/stdlib.in.h: Likewise.
31268
31269         parse-duration-tests: avoid link failure
31270         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
31271         LIBINTL.
31272         Reported by Tom G. Christensen.
31273
31274         openat-tests: ensure unlinkat behaves like rmdir
31275         * tests/test-rmdir.c (main): Factor guts...
31276         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
31277         * modules/rmdir-tests (Files): Ship new file.
31278         * modules/openat-tests: New test.
31279         * tests/test-unlinkat.c: Likewise.
31280
31281         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
31282         * modules/rmdir-errno (Status, Notice): Now obsolete.
31283
31284         rmdir: work around cygwin 1.5.x and mingw bugs
31285         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
31286         * lib/rmdir.c (rmdir): Work around it.
31287         * modules/rmdir (Status, Notice): No longer obsolete.
31288         (Files): Add dos.m4.
31289         (Depends-on): Add unistd.
31290         (configure.ac): Set witnesses.
31291         (License): Relax to LGPLv2+.
31292         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
31293         * modules/unistd (Makefile.am): Substitute witnesses.
31294         * lib/unistd.in.h (rmdir): Declare replacement.
31295         * doc/posix-functions/rmdir.texi (rmdir): Document this.
31296         * modules/rmdir-tests: New tests.
31297         * tests/test-rmdir.c: Likewise.
31298
31299 2009-09-15  Eric Blake  <ebb9@byu.net>
31300
31301         fchdir: improve use of replacement functions
31302         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
31303         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
31304         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
31305         REPLACE_CLOSEDIR.
31306         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
31307         * modules/sys_stat (Makefile.am): Substitute correct witness.
31308         * modules/dirent (Makefile.am): Likewise.
31309         * modules/unistd (Makefile.am): Likewise.
31310         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
31311         * lib/unistd.in.h (dup): Likewise.
31312         * lib/sys_stat.in.h (fstat): Likewise.
31313
31314         maint: ignore gnulib-tool temp files
31315         * .gitignore: Ignore files created during gnulib-tool --test.
31316
31317 2009-09-13  Jim Meyering  <meyering@redhat.com>
31318
31319         posixtm: don't reject a time that specify "60" as the number of seconds
31320         * lib/posixtm.c (posixtime): The code to reject invalid dates
31321         would also reject a time specified with the .60 suffix.
31322         But POSIX allows that, in order to accommodate leap seconds.
31323         So don't reject it.
31324         (main): Adjust tests accordingly.
31325         * modules/posixtm (Depends-on): Add stpcpy.
31326
31327 2009-09-11  Jim Meyering  <meyering@redhat.com>
31328
31329         announce-gen: include [$release_type] in emitted Subject:
31330         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
31331         e.g., [stable] in the emitted Subject: line.
31332
31333 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31334
31335         Remove obsolete macros from several modules.
31336         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
31337         obsolete Autoconf macros with their modern counterparts.
31338         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
31339         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
31340         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
31341         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
31342         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
31343         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
31344         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
31345         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
31346         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
31347         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
31348         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
31349         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
31350         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
31351         * m4/sockets.m4 (gl_SOCKETS): Likewise.
31352         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
31353         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
31354         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
31355         * m4/time_r.m4 (gl_TIME_R): Likewise.
31356         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
31357         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
31358         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
31359
31360         Fix copyright header in build-aux scripts.
31361         * build-aux/git-version-gen: Fix copyright header to match GPLv3
31362         recommendation.
31363         * build-aux/ncftpput-ftp: Likewise.
31364         * build-aux/update-copyright: Likewise.
31365
31366 2009-09-09  Eric Blake  <ebb9@byu.net>
31367
31368         test-link: allow Linux choice of errno
31369         * tests/test-link.c (main): Relax test for alternate error.
31370
31371         strndup: fix improper m4 caching
31372         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
31373         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
31374         (gl_PREREQ_STRNDUP): Delete.
31375         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
31376         * modules/string (Makefile.am): Substitute it.
31377         * lib/string.in.h (strndup): Modernize prototype.
31378
31379         getcwd: port to mingw
31380         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
31381         different from the POSIX assumptions made throughout the getcwd
31382         module; fortunately, the mingw getcwd does not need replacement.
31383         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
31384         * modules/getcwd-tests: New test.
31385         * tests/test-getcwd.c: Likewise.
31386
31387         link: fix platform bugs
31388         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
31389         * lib/link.c (link): Work around them.  Fix related mingw bug.
31390         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
31391         * modules/unistd (Makefile.am): Substitute it.
31392         * lib/unistd.in.h (link): Declare replacement.
31393         * doc/posix-functions/link.texi (link): Document this.
31394         * modules/link (Depends-on): Add strdup-posix, sys_stat.
31395
31396         test-link: consolidate into single C program, test more cases
31397         * tests/test-link.sh: Delete.
31398         * tests/test-link.c: Test more error conditions.  Exposes bugs on
31399         at least Cygwin and Solaris.
31400         * modules/link-tests (Files): Remove unused file.
31401         (Depends-on): Add errno, sys_stat.
31402         (Makefile.am): Simplify.
31403
31404 2009-09-08  Bruno Haible  <bruno@clisp.org>
31405
31406         Work around towlower, towupper bug on mingw.
31407         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
31408         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
31409         * doc/posix-functions/towlower.texi: Mention the mingw bug.
31410         * doc/posix-functions/towupper.texi: Likewise.
31411         Reported by Eric Blake.
31412
31413 2009-09-08  Jim Meyering  <meyering@redhat.com>
31414
31415         build: don't try to run autoheader if we don't use it
31416         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
31417         is not used in configure.ac.
31418
31419 2009-09-08  Eric Blake  <ebb9@byu.net>
31420
31421         euidaccess: fix compilation error
31422         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
31423
31424         rawmemchr: relax license
31425         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
31426         okay.
31427         Reported by Jim Meyering.
31428
31429         mkfifoat: new module
31430         * modules/mkfifoat: New file.
31431         * lib/mkfifoat.c: Likewise.
31432         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
31433         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
31434         * modules/sys_stat (Makefile.am): Use them.
31435         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
31436         * MODULES.html.sh (File system functions): Mention module.
31437         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
31438         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
31439         * modules/mkfifoat-tests: New test.
31440         * tests/test-mkfifoat.c: Likewise.
31441
31442         strchrnul: relax license
31443         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
31444         okay.
31445         Reported by Jim Meyering.
31446
31447 2009-09-08  Eric Blake  <ebb9@byu.net>
31448
31449         fstatat: fix compilation on Solaris
31450         * lib/fstatat.c (includes): Add fcntl.h.
31451         Reported by Pádraig Brady.
31452
31453 2009-09-07  Eric Blake  <ebb9@byu.net>
31454
31455         rename: modernize replacement
31456         * modules/rename (Depends-on): Add stdio.
31457         (configure.ac): Declare witness.
31458         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
31459         stdio take care of replacement.
31460         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
31461         * modules/stdio (Makefile.am): Substitute them.
31462         * lib/stdio.in.h (rename): Declare replacement.
31463         * lib/rename.c (includes): Allow cross-compilation to non-windows
31464         machines.
31465         * doc/posix-functions/rename.texi (rename): Improve
31466         documentation.
31467
31468         stdio: sort witness names
31469         * modules/stdio (Makefile.am): Sort replacements.
31470         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
31471         * lib/stdio.in.h: Likewise.
31472
31473         getcwd: minor cleanups
31474         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
31475         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
31476
31477         openat: provide more convenience names
31478         * modules/faccessat (configure.ac): Add C witness.
31479         * lib/unistd.in.h (readlinkat): Fix typo.
31480         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
31481         convenience wrappers.
31482         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
31483         wrappers in syntax checks.
31484
31485 2009-09-06  Eric Blake  <ebb9@byu.net>
31486
31487         doc: fix comments in recent patches
31488         * lib/faccessat.c: Mention correct function.
31489         * lib/fchmodat.c: Likewise.
31490         * lib/fchownat.c: Likewise.
31491         * lib/symlinkat.c: Likewise.
31492         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
31493         constants.
31494
31495         faccessat, symlinkat: continue cleanup of previous patch
31496         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
31497         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
31498         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
31499         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
31500         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
31501         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
31502         set.
31503
31504 2009-09-06  Bruno Haible  <bruno@clisp.org>
31505
31506         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
31507         (fstatat): Declare if GNULIB_FSTATAT is set.
31508         (mkdirat): Declare if GNULIB_MKDIRAT is set.
31509         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
31510         (unlinkat): Declare if GNULIB_UNLINKAT is set.
31511         * modules/fcntl-h (Files): Remove m4/openat.m4.
31512         * modules/sys_stat (Files): Remove m4/openat.m4.
31513         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
31514         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
31515         * modules/unistd (Files): Remove m4/openat.m4.
31516         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
31517         GNULIB_OPENAT.
31518         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
31519         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
31520         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
31521         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
31522         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
31523         gl_OPENAT_DEFAULTS.
31524         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
31525         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
31526         Don't require gl_OPENAT_DEFAULTS.
31527         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
31528         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
31529         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
31530         (gl_OPENAT_DEFAULTS): Remove macro.
31531
31532 2009-09-06  Bruno Haible  <bruno@clisp.org>
31533
31534         * modules/openat (configure.ac): Remove unneeded witness.
31535
31536 2009-09-06  Bruno Haible  <bruno@clisp.org>
31537
31538         Set errno to ENOSYS when a function is entirely unsupported.
31539         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
31540         EOPNOTSUPP.
31541         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
31542         * modules/chown (Depends-on): Remove errno.
31543
31544 2009-09-06  Bruno Haible  <bruno@clisp.org>
31545
31546         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
31547
31548 2009-09-06  Bruno Haible  <bruno@clisp.org>
31549
31550         * lib/sys_stat.in.h: Fix preprocessor command indentation.
31551
31552 2009-09-06  Ben Pfaff  <blp@gnu.org>
31553             Bruno Haible  <bruno@clisp.org>
31554
31555         Work around a glibc bug in strtok_r.
31556         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
31557         Undefine if UNDEFINE_STRTOK_R is set.
31558         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
31559         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
31560         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
31561         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
31562         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
31563         UNDEFINE_STRTOK_R.
31564         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
31565
31566 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
31567
31568         exclude: minor fix
31569         * lib/exclude.c: Include wctype.h
31570
31571 2009-09-06  Akim Demaille  <demaille@gostai.com>
31572
31573         bootstrap: improve error message
31574         * build-aux/bootstrap (find_tool): Upon failure, report the list
31575         of candidates.
31576         Honor the initial value of the envvar.
31577
31578 2009-09-05  Eric Blake  <ebb9@byu.net>
31579
31580         symlinkat: new module
31581         * modules/symlinkat: New file.
31582         * lib/symlinkat.c: Likewise.
31583         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
31584         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
31585         * modules/unistd (Makefile.am): Use them.
31586         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
31587         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
31588         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
31589         * MODULES.html.sh (File system functions): Mention module.
31590         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
31591         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
31592         * modules/symlinkat-tests: New test.
31593         * tests/test-symlinkat.c: Likewise.
31594
31595         test-openat-safer: add more checks
31596         * tests/test-openat-safer.c (main): Check more code paths.
31597
31598 2009-09-05  Jim Meyering  <meyering@redhat.com>
31599
31600         syntax-check: detect unnecessary inclusion of openat.h
31601         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
31602
31603 2009-09-05  Bruno Haible  <bruno@clisp.org>
31604
31605         Support towlower, towupper.
31606         * doc/posix-functions/towlower.texi: Mention module wctype.
31607         * doc/posix-functions/towupper.texi: Likewise.
31608         * lib/wctype.in.h (towlower, towupper): New functions.
31609         * tests/test-wctype.c: Include stdio.h, stdlib.h.
31610         (ASSERT): New macro.
31611         (e): New variable.
31612         (main): Test also towlower, towupper. Test WEOF argument.
31613         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
31614
31615 2009-09-05  Bruno Haible  <bruno@clisp.org>
31616
31617         Fix conversion behaviour when the input is invalid.
31618         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
31619         mark occurring in first pass of indirect conversion.
31620         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
31621         input.
31622         Found by clang's static analyzer.
31623
31624 2009-09-05  Bruno Haible  <bruno@clisp.org>
31625
31626         * tests/test-striconveh.c (main): Test indirect conversion on platforms
31627         where direct conversion is possible.
31628
31629 2009-09-04  Eric Blake  <ebb9@byu.net>
31630
31631         openat: fail with ENOENT on empty name
31632         * lib/openat-proc.c (openat_proc_name): Special-case the empty
31633         buffer.
31634
31635         link-follow: fix logic bug in prior patch
31636         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
31637         reversed sense of yes and no in prior patch.  Avoid confusing
31638         compilation failure with desired semantics.
31639
31640         link-follow: accomodate mingw and cross-compilation
31641         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
31642         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
31643         cross-compilation results to -1, to make linkat easier to
31644         implement when cross-compiling.  Trivially support mingw.
31645         * modules/link-follow (configure.ac): Call new name.
31646         * NEWS: Mention this.
31647
31648 2009-09-03  Eric Blake  <ebb9@byu.net>
31649
31650         faccessat: compile replacement
31651         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
31652         needed.
31653
31654         fts: fix compilation error
31655         * lib/fts.c (includes): Re-add "openat.h", for
31656         openat_needs_fchdir.
31657
31658         faccessat: new module
31659         * modules/faccessat: New file.
31660         * lib/faccessat.c: Likewise.
31661         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
31662         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
31663         * modules/unistd (Makefile.am): Use it.
31664         * lib/unistd.in.h (faccessat): Declare it.
31665         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
31666         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
31667         * MODULES.html.sh (File system functions): Mention it.
31668         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
31669         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
31670
31671         euidaccess: prefer POSIX over non-standard implementation
31672         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
31673         * lib/euidaccess.c (euidaccess): Use it if available.
31674
31675         openat: make template easier to use
31676         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
31677         AT_FUNC_F2 to be undefined.
31678         (VALIDATE_FLAG): New macro; use it to reject bad flags.
31679         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
31680         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
31681         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
31682         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
31683         Likewise.
31684         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
31685         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
31686         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
31687         Likewise.
31688
31689         openat: declare in POSIX headers
31690         * NEWS: Mention this.
31691         * modules/openat (configure.ac): Declare witnesses.
31692         (Depends-on): Add fcntl-h, sys_stat, unistd.
31693         (Include): Mention correct headers.
31694         * modules/fcntl-h (Depends-on): Add link-warning.
31695         (Files): Add openat.m4.
31696         (Makefile.am): Substitute witnesses.
31697         * modules/sys_stat (Files, Makefile.am): Likewise.
31698         * modules/unistd (Files, Makefile.am): Likewise.
31699         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
31700         (gl_OPENAT_DEFAULTS): New macro.
31701         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
31702         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
31703         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
31704         (SYS_STAT_H): Remove unused variable.
31705         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
31706         * lib/fcntl--.h (includes): Remove unneeded header.
31707         * lib/openat-safer.c (includes): Likewise.
31708         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
31709         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
31710         appropriate headers.
31711         (__OPENAT_PREFIX): Delete.
31712         * lib/fcntl.in.h (openat): Provide declaration.
31713         (AT_FDCWD): Fix Solaris bug.
31714         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
31715         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
31716         * lib/fchmodat.c (includes):  Adjust to find declaration.
31717         * lib/fchownat.c (includes): Likewise.
31718         * lib/mkdirat.c (includes): Likewise.
31719         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
31720         still visible.
31721
31722 2009-09-02  Eric Blake  <ebb9@byu.net>
31723
31724         errno: use consistently
31725         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
31726         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
31727         * lib/canonicalize.c (ELOOP): Likewise.
31728         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
31729         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
31730         * lib/lchown.c (EOPNOTSUPP): Likewise.
31731         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
31732         * lib/savewd.c (ESTALE): Likewise.
31733         * lib/settime.c (ENOSYS): Likewise.
31734         * lib/utimens.c (ENOSYS): Likewise.
31735         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
31736         * lib/chdir-safer.c (ELOOP): Likewise.
31737         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
31738         * modules/c-stack (Depends-on): Add errno.
31739         * modules/canonicalize (Depends-on): Likewise.
31740         * modules/chdir-safer (Depends-on): Likewise.
31741         * modules/fdopendir (Depends-on): Likewise.
31742         * modules/inet_ntop (Depends-on): Likewise.
31743         * modules/inet_pton (Depends-on): Likewise.
31744         * modules/lchown (Depends-on): Likewise.
31745         * modules/openat (Depends-on): Likewise.
31746         * modules/savewd (Depends-on): Likewise.
31747         * modules/settime (Depends-on): Likewise.
31748         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
31749
31750         fts: avoid leaking fds
31751         * modules/fts (Depends-on): Add cloexec.
31752         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
31753         flag.
31754
31755         fts: make directory fds more robust
31756         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
31757         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
31758
31759         backupfile, chdir-long, fts, savedir: make safer
31760         * lib/backupfile.c (includes): Use "dirent--.h", since
31761         numbered_backup can write to stderr during readdir.
31762         * lib/savedir.c (includes): Likewise.
31763         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
31764         emulation can write to stderr on failure.
31765         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
31766         * lib/getcwd.c: Document why opendir_safer is unused.
31767         * lib/glob.c: Likewise.
31768         * lib/scandir.c: Likewise.
31769         * lib/openat-proc.c: Likewise, for open_safer.
31770         * modules/backupfile (Depends-on): Add dirent-safer.
31771         * modules/savedir (Depends-on): Likewise.
31772         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
31773         * modules/chdir-long (Depends-on): Add openat-safer.
31774
31775         openat-safer: new module
31776         * modules/openat-safer: New file.
31777         * lib/openat-safer.c: Likewise.
31778         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
31779         * lib/fcntl-safer.h (openat_safer): Declare.
31780         * lib/fcntl--.h (openat): Override.
31781         * MODULES.html.sh (File descriptor based I/O): Mention it.
31782         * lib/openat.h: Add double-inclusion guards.
31783         * lib/openat.c (includes): Only include "fcntl-safer.h", not
31784         "fcntl--.h", so we can implement openat.
31785         * modules/openat-safer-tests: New test.
31786         * tests/test-openat-safer.c: New file.
31787
31788         dirent-safer: new module
31789         * modules/dirent-safer: New file.
31790         * lib/dirent--.h: Likewise.
31791         * lib/dirent-safer.h: Likewise.
31792         * lib/opendir-safer.c: Likewise.
31793         * m4/dirent-safer.m4: Likewise.
31794         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
31795         * modules/dirent-safer-tests: New test.
31796         * tests/test-dirent-safer.c: New file.
31797         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
31798
31799         fdopendir: optimize on mingw
31800         * lib/unistd.in.h (_gl_directory_name): New prototype.
31801         * lib/fchdir.c (_gl_directory_name): Implement it.
31802         (fchdir): Use it to simplify implementation.
31803         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
31804         fchdir, when available, to avoid calling [f]chdir().
31805
31806         fdopendir: split into its own module
31807         * lib/openat.c (fdopendir): Move...
31808         * lib/fdopendir.c: ...into new file.
31809         * modules/fdopendir: New module.
31810         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
31811         * modules/openat (Depends-on): Add fdopendir.
31812         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
31813         fdopendir here.
31814         * modules/savedir (Depends-on): Only need fdopendir, not full
31815         openat.
31816         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
31817         * lib/openat.h (fdopendir): Drop prototype.
31818         * lib/dirent.in.h (fdopendir): Provide prototype.
31819         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
31820         * modules/dirent (Makefile.am): Substitute them.
31821         * MODULES.html.sh (File system functions): Mention it.
31822         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
31823         * modules/fdopendir-tests: New file.
31824         * tests/test-fdopendir.c: Likewise.
31825
31826         fchdir: use more consistent macro convention
31827         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
31828         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
31829         REPLACE_FCHDIR, rather than relying on config.h macros.
31830         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
31831         inside a single make-time REPLACE_FCHDIR block, rather than using
31832         the config.h FCHDIR_REPLACEMENT.
31833         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
31834         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
31835         Manage fstat replacement.
31836         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
31837         REPLACE_FCHDIR.
31838         * modules/sys_stat (Files): Add m4/unistd_h.m4.
31839         (Makefile.am): Substitute REPLACE_FCHDIR.
31840         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
31841         FCHDIR_REPLACEMENT.
31842         * lib/dup-safer.c (dup_safer): Likewise.
31843         * lib/dup2.c (rpl_dup2): Likewise.
31844         * lib/dup3.c (rpl_dup3): Likewise.
31845         * lib/open.c (rpl_open): Likewise.
31846
31847         fchdir: simplify error handling, and support dup3
31848         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
31849         stdbool, malloc-posix, realloc-posix.
31850         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
31851         (ensure_dirs_slot): Return false on allocation failure.
31852         (rpl_dup2): Delete.
31853         (_gl_register_dup): New function.
31854         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
31855         (_gl_register_fd): Close fd on allocation failure.
31856         * lib/fcntl.in.h (_gl_register_fd): Update signature.
31857         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
31858         prototype.
31859         (rpl_dup2_fchdir): Delete prototype.
31860         * lib/open.c (open): Update caller.
31861         * lib/dup2.c (dup2): Track fchdir metadata.
31862         * lib/dup3.c (dup3): Likewise.
31863         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
31864         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
31865
31866 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31867
31868         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
31869         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
31870         don't pass arguments to AC_OUTPUT.
31871
31872 2009-09-02  Bruno Haible  <bruno@clisp.org>
31873
31874         * modules/mkdtemp (License): Relicense under LGPLv2+.
31875         Reported by Paolo Bonzini.
31876
31877 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31878
31879         Replace uses of obsolete autoconf macros in Jim's modules.
31880         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
31881         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
31882         can evoke a warning from autoconf when run with -Wobsolete
31883         enabled.  They were declared obsolete for good reasons (see
31884         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
31885         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
31886         should not continue using the deprecated macros.
31887         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
31888         obsolete Autoconf macros with modern counterparts.
31889         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
31890         * m4/dos.m4 (gl_AC_DOS): Likewise.
31891         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
31892         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
31893         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
31894         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
31895         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
31896         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
31897         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
31898         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
31899         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
31900         Likewise.
31901         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
31902         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
31903         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
31904         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
31905         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
31906         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
31907
31908 2009-09-01  Eric Blake  <ebb9@byu.net>
31909
31910         fchdir: fix off-by-one bug in previous patch
31911         * lib/fchdir.c (rpl_fstat): Use correct bounds.
31912         (_gl_unregister_fd): Delete useless if.
31913
31914 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
31915
31916         maint.mk: sort the list of syntax-check rules
31917         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
31918         easier to get a sense of progress when the rules are run sequentially
31919         and take a long time.
31920
31921 2009-09-01  Simon Josefsson  <simon@josefsson.org>
31922
31923         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
31924         * modules/netinet_in: Likewise.
31925         * modules/sys_file: Likewise.
31926         * modules/sys_ioctl: Likewise.
31927         * modules/sys_select: Likewise.
31928         * modules/sys_socket: Likewise.
31929         * modules/sys_stat: Likewise.
31930         * modules/sys_time: Likewise.
31931         * modules/sys_times: Likewise.
31932         * modules/sys_utsname: Likewise.
31933         * modules/sys_wait: Likewise.
31934
31935 2009-09-01  Jim Meyering  <meyering@redhat.com>
31936
31937         fts: help ensure that return values are not ignored
31938         * lib/fts_.h (__GNUC_PREREQ): Define.
31939         (__attribute_warn_unused_result__): Define.
31940         (fts_children, fts_close, fts_open, fts_read): Declare with
31941         __attribute_warn_unused_result__.
31942
31943         fts: fts_close now fails also when closing a dir file descriptor fails
31944         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
31945         and propagate to caller, along with errno.
31946
31947         announce-gen: correct formatting in --help output
31948         * build-aux/announce-gen (usage): Move the one-line description in
31949         --help output "up", to where it belongs, just after Usage:.
31950
31951 2009-08-31  Eric Blake  <ebb9@byu.net>
31952
31953         fchdir: port to mingw
31954         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
31955         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
31956         opened, then use a substitute.
31957         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
31958         replacement.
31959         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
31960         (_gl_register_fd): No need to check stat if open already filters
31961         all directories.
31962         (fchdir): Fix error condition to match POSIX.
31963         * modules/fchdir (Depends-on): Add sys_stat.
31964         * doc/posix-functions/open.texi (open): Document the limitation.
31965         * modules/fchdir-tests: New file.
31966         * tests/test-fchdir.c: Likewise.
31967
31968         canonicalize: allow cross-testing from cygwin to mingw
31969         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
31970         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
31971         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
31972         Likewise.
31973         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
31974         target does not support symlinks.
31975         * tests/test-canonicalize-lgpl.sh: Likewise.
31976
31977         chown: avoid compilation warning on mingw
31978         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
31979         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
31980         mingw.
31981         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
31982         * modules/chown (Depends-on): Add errno.
31983
31984 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
31985
31986         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
31987         command.
31988
31989 2009-08-31  Jim Meyering  <meyering@redhat.com>
31990
31991         canonicalize: remove useless initialization
31992         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
31993         initialization of local, "end".
31994
31995 2009-08-30  Bruno Haible  <bruno@clisp.org>
31996
31997         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
31998         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
31999         ENOSYS.
32000
32001 2009-08-30  Bruno Haible  <bruno@clisp.org>
32002
32003         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
32004         /usr/xpg4/bin/tr when it exists.
32005         * tests/test-pipe-filter-gi1.sh: Likewise.
32006
32007 2009-08-30  Bruno Haible  <bruno@clisp.org>
32008
32009         Work around deficient /usr/bin/id program on Solaris.
32010         * tests/test-file-has-acl.sh (ID): New variable.
32011         * tests/test-set-mode-acl.sh (ID): Likewise.
32012         * tests/test-copy-acl.sh (ID): Likewise.
32013         * tests/test-copy-file.sh (ID): Likewise.
32014
32015 2009-08-30  Bruno Haible  <bruno@clisp.org>
32016
32017         New module 'xstriconveh'.
32018         * lib/xstriconveh.h: New file.
32019         * lib/xstriconveh.c: New file.
32020         * modules/xstriconveh: New file.
32021
32022 2009-08-30  Bruno Haible  <bruno@clisp.org>
32023
32024         Make it easier to use mem_cd_iconveh.
32025         * lib/striconveh.h (iconveh_t): New type.
32026         (iconveh_open, iconveh_close): New declarations.
32027         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
32028         with a single 'const iconveh_t *' argument.
32029         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
32030         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
32031         with a single 'const iconveh_t *' argument.
32032         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
32033         * tests/test-striconveh.c (main): Update.
32034         * NEWS: Mention the change.
32035
32036 2009-08-30  Bruno Haible  <bruno@clisp.org>
32037
32038         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
32039         problem.
32040
32041 2009-08-30  Bruno Haible  <bruno@clisp.org>
32042
32043         Work around iconv_open problem on Solaris.
32044         * lib/iconv_open-solaris.gperf: New file.
32045         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
32046         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
32047         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
32048         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
32049         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
32050         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
32051
32052 2009-08-29  Jim Meyering  <meyering@redhat.com>
32053
32054         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
32055         * top/maint.mk (cvs-check): Remove target; it was just an alias
32056         to the better-named vc-diff-check.
32057         (maintainer-distcheck): Remove rule.  It was used only from
32058         the (alpha/beta/major) target, and all of its commands but one
32059         were coreutils-specific.
32060         (vc-dist): Remove rule.
32061         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
32062         Run vc-diff-check, not vc-dist.
32063         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
32064
32065 2009-08-27  Bruno Haible  <bruno@clisp.org>
32066
32067         * tests/test-bitrotate.c (main): Remove test that uses a shift count
32068         of 0.
32069
32070 2009-08-27  Bruno Haible  <bruno@clisp.org>
32071
32072         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
32073         compilers.
32074         * doc/func.texi: Document the SunPRO C bug.
32075
32076 2009-08-27  Bruno Haible  <bruno@clisp.org>
32077
32078         Fix link error on Solaris.
32079         * tests/test-parse-duration.c (xstrdup): Remove function.
32080
32081 2009-08-26  Pádraig Brady  <P@draigbrady.com>
32082
32083         ignore-value: handle pointer types, too
32084         * lib/ignore-value.h (__attribute__): Remove definition.
32085         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
32086         of a more concise and more-often effective "(void) i" statement.
32087         (ignore_ptr): New function to suppress warnings from functions that
32088         return pointers, and to make it explicit that one function doesn't
32089         handle all cases.
32090
32091 2009-08-25  Bruno Haible  <bruno@clisp.org>
32092
32093         dup2: work around a Linux bug.
32094         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
32095         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
32096         * doc/posix-functions/dup2.texi: Mention the Linux bug.
32097         Reported by Simon Josefsson.
32098
32099 2009-08-25  Jim Meyering  <meyering@redhat.com>
32100
32101         libguestfs uses gnulib
32102         * users.txt: Add libguestfs.
32103
32104 2009-08-24  Eric Blake  <ebb9@byu.net>
32105
32106         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
32107         * lib/pipe2.c (includes): Add binary-io.h.
32108         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
32109
32110 2009-08-24  Bruno Haible  <bruno@clisp.org>
32111
32112         Tolerate declared but missing accept4 syscall.
32113         * lib/accept4.c (accept4): Invoke original accept4 function first, if
32114         available.
32115         * lib/sys_socket.in.h (accept4): If the function is already present,
32116         override it.
32117         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
32118         * modules/accept4 (Makefile.am): Compile accept4.c always.
32119         Reported by Paolo Bonzini and Eric Blake.
32120
32121 2009-08-23  Bruno Haible  <bruno@clisp.org>
32122
32123         New module 'accept4'.
32124         * lib/sys_socket.in.h (accept4): New declaration.
32125         * lib/accept4.c: New file.
32126         * m4/accept4.m4: New file.
32127         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
32128         GNULIB_ACCEPT4, HAVE_ACCEPT4.
32129         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
32130         HAVE_ACCEPT4.
32131         * modules/accept4: New file.
32132         * doc/glibc-functions/accept4.texi: Mention the new module.
32133
32134 2009-08-24  Jim Meyering  <meyering@redhat.com>
32135
32136         progname: also set global program_invocation_name, when possible
32137         Before this change, a libtool-enabled program that calls glibc's
32138         error function would report the program name as
32139         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
32140         * modules/progname (configure.ac): Check for a declaration of
32141         program_invocation_name.
32142         * lib/progname.c:  Include <errno.h>.
32143         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
32144         Set program_invocation_name.
32145
32146 2009-08-23  Bruno Haible  <bruno@clisp.org>
32147
32148         * lib/dup3.c: Include <string.h>.
32149
32150 2009-08-23  Bruno Haible  <bruno@clisp.org>
32151
32152         * lib/dup3.c (dup3): Test only once whether the system actually exists.
32153         * lib/pipe2.c (pipe2): Likewise.
32154         Suggested by Eric Blake.
32155
32156 2009-08-23  Bruno Haible  <bruno@clisp.org>
32157
32158         Tolerate declared but missing dup3 syscall.
32159         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
32160         * lib/unistd.in.h (dup3): If the function is already present,
32161         override it.
32162         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
32163         * modules/dup3 (Makefile.am): Compile dup3.c always.
32164         Reported by Paolo Bonzini.
32165
32166 2009-08-23  Bruno Haible  <bruno@clisp.org>
32167
32168         Tolerate declared but missing pipe2 syscall.
32169         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
32170         available.
32171         * lib/unistd.in.h (pipe2): If the function is already present,
32172         override it.
32173         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
32174         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
32175         Reported by Paolo Bonzini.
32176
32177 2009-08-23  Bruno Haible  <bruno@clisp.org>
32178
32179         * lib/pipe2.c (pipe2): Move #ifs inside function.
32180
32181 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
32182
32183         quotearg: document limitations of quote_these_too
32184         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
32185         those limitations are created.
32186         * lib/quotearg.h (set_char_quoting): Document that digits and
32187         letters that are special after backslash are not permitted.
32188         (quotearg_char): Cross-reference set_char_quoting documentation.
32189
32190 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
32191
32192         quotearg: implement custom_quoting_style
32193         * lib/quotearg.c: (struct quoting_options): Add left_quote and
32194         right_quote fields.
32195         (set_custom_quoting): New public function.
32196         (quotearg_buffer_restyled): Add left_quote and right_quote
32197         arguments, handle them very much like locale quoting, and update
32198         all uses.
32199         (quotearg_n_custom): New public function.
32200         (quotearg_n_custom_mem): New public function.
32201         (quotearg_custom): New public function.
32202         (quotearg_custom_mem): New public function.
32203         * lib/quotearg.h: Prototype and document new public functions.
32204         (enum quoting_style): For escape_quoting_style and
32205         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
32206         ignored even though they're otherwise like c_quoting_style.
32207         Add custom_quoting_style member and document with comparison to
32208         clocale_quoting_style.
32209         * tests/test-quotearg.c (custom_quotes): New array.
32210         (custom_results): New array.
32211         (main): Extend to test custom quoting.
32212
32213 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
32214
32215         quotearg: fix right quote escaping when it's in quote_these_too
32216         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
32217         quote, be sure to prepend only one backslash.
32218         * tests/test-quotearg.c (use_quote_double_quotes): New function.
32219         (main): Test it.
32220
32221 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
32222
32223         quotearg-tests: test escaping of embedded locale quotes
32224         * tests/test-quotearg.c (struct result_strings): Add member for
32225         new input.
32226         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
32227         (inputs): Add new input.
32228         (results_g): Add expected results.
32229         (flag_results): Likewise.
32230         (locale_results): Likewise.
32231         (compare_strings): Check those.
32232
32233 2009-08-23  Bruno Haible  <bruno@clisp.org>
32234
32235         Tests for module 'dup3'.
32236         * modules/dup3-tests: New file.
32237         * tests/test-dup3.c: New file.
32238
32239         New module 'dup3'.
32240         * lib/unistd.in.h (dup3): New declaration.
32241         * lib/dup3.c: New file.
32242         * m4/dup3.m4: New file.
32243         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
32244         HAVE_DUP3.
32245         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
32246         * modules/dup3: New file.
32247         * doc/glibc-functions/dup3.texi: Mention the new module.
32248
32249 2009-08-23  Bruno Haible  <bruno@clisp.org>
32250
32251         Tweak the dup2 test.
32252         * tests/test-dup2.c (main): Create the test file empty. Verify that an
32253         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
32254         the test file is still empty. Fix argument order of lseek.
32255
32256 2009-08-23  Bruno Haible  <bruno@clisp.org>
32257
32258         Avoid test link errors when the modules getopt-gnu, gettext are used.
32259         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
32260         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
32261
32262 2009-08-23  Bruno Haible  <bruno@clisp.org>
32263
32264         Fix getdtablesize() on mingw.
32265         * lib/getdtablesize.c (getdtablesize): Implement differently.
32266         * lib/unistd.in.h (getdtablesize): Improve comment.
32267
32268 2009-08-23  Bruno Haible  <bruno@clisp.org>
32269
32270         New module 'mkostemp'.
32271         Based on Ulrich Drepper's 2007-08-10 change in glibc.
32272         * lib/stdlib.in.h (mksotemp): New declaration.
32273         * lib/mkostemp.c: New file, from glibc with modifications.
32274         * lib/tempname.h (GT_FILE): Remove outdated comment.
32275         (gen_tempname): Add flags argument.
32276         * lib/tempname.c (__GT_BIGFILE): Remove macro.
32277         (__GT_FILE): Map to 1.
32278         (small_open, large_open): Remove macros.
32279         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
32280         * lib/mkstemp.c (mkstemp): Update.
32281         * lib/mkdtemp.c (mkdtemp): Likewise.
32282         * m4/mkostemp.m4: New file.
32283         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
32284         HAVE_MKOSTEMP.
32285         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
32286         HAVE_MKOSTEMP.
32287         * modules/mkostemp: New file, based on modules/mkstemp.
32288         * doc/glibc-functions/mkostemp.texi: Mention the new module.
32289         * NEWS: Mention the change.
32290
32291 2009-08-23  Bruno Haible  <bruno@clisp.org>
32292
32293         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
32294         Reported by Eric Blake.
32295
32296 2009-08-23  Bruno Haible  <bruno@clisp.org>
32297
32298         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
32299         Reported by Eric Blake.
32300
32301 2009-08-23  Bruno Haible  <bruno@clisp.org>
32302
32303         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
32304         * modules/pipe2 (Depends-on): Likewise.
32305
32306 2009-08-23  Eric Blake  <ebb9@byu.net>
32307
32308         fcntl-h: add O_TTY_INIT support
32309         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
32310         * tests/test-fcntl-h.c (o): Test it.
32311         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
32312
32313         fcntl-h: rename from fcntl, in preparation for fcntl(2)
32314         * modules/fcntl: Move <fcntl.h> header replacement...
32315         * modules/fcntl-h: ...to new name, so as not to collide with
32316         like-named function.
32317         * tests/test-fcntl.c: Rename...
32318         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
32319         * modules/fcntl-tests: Rename...
32320         * modules/fcntl-h-tests: ...to this.  Update test file name.
32321         * modules/chdir-long (Depends-on): Update clients.
32322         * modules/chdir-safer (Depends-on): Likewise.
32323         * modules/fcntl-safer (Depends-on): Likewise.
32324         * modules/fts (Depends-on): Likewise.
32325         * modules/mkancesdirs (Depends-on): Likewise.
32326         * modules/mkdir-p (Depends-on): Likewise.
32327         * modules/open (Depends-on): Likewise.
32328         * modules/savewd (Depends-on): Likewise.
32329         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
32330         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
32331
32332 2009-08-22  Bruno Haible  <bruno@clisp.org>
32333
32334         * modules/binary-io (License): Relicense under LGPL.
32335         * modules/pipe2 (License): Likewise.
32336
32337 2009-08-22  Bruno Haible  <bruno@clisp.org>
32338
32339         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
32340         return value.
32341         * lib/pipe-filter-gi.c (filter_init): Likewise.
32342         Reported by Eric Blake.
32343
32344 2009-08-22  Bruno Haible  <bruno@clisp.org>
32345
32346         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
32347         * modules/pipe (Depends-on): Add pipe2.
32348
32349 2009-08-22  Bruno Haible  <bruno@clisp.org>
32350
32351         Tests for module 'pipe2'.
32352         * modules/pipe2-tests: New file.
32353         * tests/test-pipe2.c: New file.
32354
32355         New module 'pipe2'.
32356         * lib/unistd.in.h (pipe2): New declaration.
32357         * lib/pipe2.c: New file.
32358         * m4/pipe2.m4: New file.
32359         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
32360         HAVE_PIPE2.
32361         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
32362         * modules/pipe2: New file.
32363         * doc/glibc-functions/pipe2.texi: Mention the new module.
32364
32365 2009-08-22  Bruno Haible  <bruno@clisp.org>
32366
32367         Reference some new glibc functions.
32368         * doc/glibc-functions/accept4.texi: New file.
32369         * doc/glibc-functions/dup3.texi: New file.
32370         * doc/glibc-functions/mkostemp.texi: New file.
32371         * doc/glibc-functions/pipe2.texi: New file.
32372         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
32373         (Glibc sys/socket.h): Refer to accept4.
32374         (Glibc unistd.h): Refer to dup3, pipe2.
32375         Reported by Eric Blake.
32376
32377 2009-08-22  Jim Meyering  <meyering@redhat.com>
32378             Bruno Haible  <bruno@clisp.org>
32379
32380         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
32381         This makes it so packages using automake-1.11's silent-rules option
32382         can print e.g., a single "GEN    configmake.h" line, rather than
32383         the 30+ statements that perform the job.  If you want to see the
32384         actual commands, you can still run "make V=1".
32385         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
32386         so that make output is abbreviated when those variables are defined
32387         appropriately.
32388         * modules/argz: Likewise.
32389         * modules/arpa_inet: Likewise.
32390         * modules/byteswap: Likewise.
32391         * modules/configmake: Likewise.
32392         * modules/dirent: Likewise.
32393         * modules/errno: Likewise.
32394         * modules/fcntl: Likewise.
32395         * modules/float: Likewise.
32396         * modules/fnmatch: Likewise.
32397         * modules/getopt-posix: Likewise.
32398         * modules/glob: Likewise.
32399         * modules/iconv_open: Likewise.
32400         * modules/inttypes: Likewise.
32401         * modules/localcharset: Likewise.
32402         * modules/locale: Likewise.
32403         * modules/math: Likewise.
32404         * modules/netdb: Likewise.
32405         * modules/netinet_in: Likewise.
32406         * modules/poll: Likewise.
32407         * modules/posix_spawnp-tests: Likewise.
32408         * modules/sched: Likewise.
32409         * modules/search: Likewise.
32410         * modules/selinux-h: Likewise.
32411         * modules/signal: Likewise.
32412         * modules/spawn: Likewise.
32413         * modules/stdarg: Likewise.
32414         * modules/stdbool: Likewise.
32415         * modules/stddef: Likewise.
32416         * modules/stdint: Likewise.
32417         * modules/stdio: Likewise.
32418         * modules/stdlib: Likewise.
32419         * modules/string: Likewise.
32420         * modules/strings: Likewise.
32421         * modules/sys_file: Likewise.
32422         * modules/sys_ioctl: Likewise.
32423         * modules/sys_select: Likewise.
32424         * modules/sys_socket: Likewise.
32425         * modules/sys_stat: Likewise.
32426         * modules/sys_time: Likewise.
32427         * modules/sys_times: Likewise.
32428         * modules/sys_utsname: Likewise.
32429         * modules/sys_wait: Likewise.
32430         * modules/sysexits: Likewise.
32431         * modules/time: Likewise.
32432         * modules/unistd: Likewise.
32433         * modules/wchar: Likewise.
32434         * modules/wctype: Likewise.
32435
32436 2009-08-22  Jim Meyering  <meyering@redhat.com>
32437
32438         announce-gen: detect write failure
32439         * build-aux/announce-gen: Add Coda at end.
32440         Remove equivalent-but-more-verbose block at top.
32441
32442 2009-08-19  Akim Demaille  <demaille@gostai.com>
32443
32444         bootstrap: --help to stdout.
32445         * bootstrap (usage): Don't send --help to stderr.
32446         Use a here doc instead of a long string.
32447
32448 2009-08-21  Eric Blake  <ebb9@byu.net>
32449
32450         test-popen-safer: split from test-popen
32451         * tests/test-popen.c (main): Move...
32452         * tests/test-popen.h: ...into new file.
32453         * tests/test-popen-safer2.c: New file.
32454         * modules/popen-tests (Files): Add test-popen.h.
32455         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
32456         Suggested by Bruno Haible.
32457
32458         test-fcntl-safer: split from test-open
32459         * tests/test-open.c (main): Move...
32460         * tests/test-open.h: ...into new file.
32461         * tests/test-fcntl-safer.c: New file.
32462         * modules/open-tests (Files): Add test-open.h.
32463         * modules/fcntl-safer-tests: New file.
32464         Suggested by Bruno Haible.
32465
32466         test-fopen-safer: split from test-fopen
32467         * tests/test-fopen.c (main): Move...
32468         * tests/test-fopen.h: ...into new file.
32469         * tests/test-fopen-safer.c: New file.
32470         * modules/fopen-tests (Files): Add test-fopen.h.
32471         * modules/fopen-safer-tests: New file.
32472         Suggested by Bruno Haible.
32473
32474 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
32475
32476         popen-safer: test O_CLOEXEC at run-time.
32477         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
32478
32479 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
32480
32481         fcntl: move more flags to the header
32482         * lib/cloexec.c: Do not define FD_CLOEXEC here.
32483         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
32484         * lib/fcntl.in.h: Do both things here.
32485
32486 2009-08-21  Jim Meyering  <meyering@redhat.com>
32487
32488         consistently remove $@-t before redirecting to it
32489         * modules/argz: Remove $@-t and $@ before redirecting to the former.
32490         * modules/alloca-opt: Likewise.
32491         * modules/byteswap: Likewise.
32492         * modules/fnmatch: Likewise.
32493         * modules/getopt-posix: Likewise.
32494         * modules/glob: Likewise.
32495         * modules/poll: Likewise.
32496         * modules/posix_spawnp-tests: Likewise.
32497         * modules/sys_socket: Likewise.
32498         * modules/sysexits: Likewise.
32499
32500 2009-08-21  Eric Blake  <ebb9@byu.net>
32501
32502         popen: simplify access to original popen
32503         * lib/popen.c (rpl_popen): No need to worry about popen being a
32504         macro.
32505         Reported by Bruno Haible.
32506
32507 2009-08-20  Eric Blake  <ebb9@byu.net>
32508
32509         build: avoid some compiler warnings
32510         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
32511         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
32512         type.
32513         (new_exclude_segment, excluded_file_pattern_p)
32514         (excluded_file_name_p): Reduce scope.
32515         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
32516         old-style declaration.
32517
32518 2009-08-20  Simon Josefsson  <simon@josefsson.org>
32519
32520         * tests/test-exclude1.sh: Handle Windows EOL.
32521         * tests/test-exclude2.sh: Likewise.
32522         * tests/test-exclude3.sh: Likewise.
32523         * tests/test-exclude4.sh: Likewise.
32524         * tests/test-exclude5.sh: Likewise.
32525         * tests/test-exclude6.sh: Likewise.
32526         * tests/test-exclude7.sh: Likewise.
32527
32528 2009-08-19  Akim Demaille  <demaille@gostai.com>
32529
32530         bootstrap: find sha1sum when named gsha1sum.
32531         * bootstrap (find_tool): New.
32532         ($SHA1SUM): New.
32533         Use it.
32534
32535 2009-08-20  Jim Meyering  <meyering@redhat.com>
32536
32537         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
32538         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
32539         expression that converts "." in a file name to "\." in the resulting
32540         regexp.  Start with a dummy statement, so that prior shell variable
32541         definitions are expanded portably.  Reported by Simon Josefsson.
32542
32543 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
32544
32545         Fix polling for writeability of a screen buffer.
32546         * lib/poll.c: Distinguish input and screen buffers for the
32547         Win32 implementation.
32548         * lib/select.c: Likewise.
32549
32550 2009-08-19  Eric Blake  <ebb9@byu.net>
32551
32552         popen-safer: prevent popen from clobbering std descriptors
32553         * modules/popen-safer: New file.
32554         * lib/popen-safer.c: Likewise.
32555         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
32556         * lib/stdio--.h (popen): Provide override.
32557         * lib/stdio-safer.h (popen_safer): Provide declaration.
32558         * tests/test-popen.c (includes): Partially test this.
32559         * modules/popen-safer-tests: New file, for more tests.
32560         * tests/test-popen-safer.c: Likewise.
32561         * MODULES.html.sh (file stream based Input/Output): Mention it.
32562
32563         tests: test some of the *-safer modules
32564         * modules/fopen-safer (Depends-on): Add fopen.
32565         * modules/fcntl-safer (Depends-on): Add fcntl.
32566         * modules/stdlib-safer (Depends-on): Add stdlib.
32567         (configure.ac): Set indicator.
32568         * modules/unistd-safer (configure.ac): Likewise.
32569         * modules/tmpfile-safer (configure.ac): Likewise.
32570         (Depends-on): Add tmpfile.
32571         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
32572         active.
32573         * tests/test-fopen.c (includes): Test safer versions when they are
32574         in use.
32575         * tests/test-open.c (includes): Likewise.
32576
32577         popen: fix cygwin 1.5 bug when stdin closed
32578         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
32579         * modules/popen: New file.
32580         * modules/popen-tests: Likewise.
32581         * tests/test-popen.c: Likewise.
32582         * m4/popen.m4: Likewise.
32583         * lib/popen.c: Likewise.
32584         * lib/stdio.in.h (popen): New declaration.
32585         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
32586         * modules/stdio (Makefile.am): Likewise.
32587         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
32588
32589 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
32590
32591         maint.mk: give full control over update-copyright exclusions
32592         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
32593         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
32594         (update-copyright): Don't force inclusion of top-level
32595         ChangeLog.  Don't force exclusion of all COPYING files, but make
32596         them the default exclusion instead.
32597
32598 2009-08-16  Bruno Haible  <bruno@clisp.org>
32599
32600         Fix test failures on Solaris 10.
32601         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
32602         tests when Solaris iconv() is used.
32603         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
32604         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
32605         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
32606         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
32607         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
32608
32609 2009-08-16  Bruno Haible  <bruno@clisp.org>
32610
32611         Fix test failures on Solaris 10.
32612         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
32613         'tr' program and pass it as first argument.
32614         * tests/test-pipe-filter-gi1.sh: Likewise.
32615         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
32616         program as first argument.
32617         * tests/test-pipe-filter-gi1.c (main): Likewise.
32618
32619 2009-08-16  Eric Blake  <ebb9@byu.net>
32620
32621         fpurge: fix previous commits
32622         * modules/fpurge (Makefile.am): Make replacement conditional,
32623         partially reverting 2007-04-29 change; missed in previous
32624         attempt.
32625         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
32626         is missing.
32627
32628 2009-08-16  Bruno Haible  <bruno@clisp.org>
32629
32630         Clarify fpurge's effect on the file position.
32631         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
32632         * tests/test-fpurge.c (main): Make a second pass for checking the file
32633         position.
32634
32635 2009-08-16  Bruno Haible  <bruno@clisp.org>
32636
32637         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
32638         declaration of fpurge is missing.
32639         * tests/test-fpurge.c (main): Check that the file has not more contents
32640         than expected. Close the file before removing it.
32641
32642 2009-08-15  Eric Blake  <ebb9@byu.net>
32643
32644         fpurge: don't wrap working cygwin implementation
32645         * lib/fpurge.c (fpurge): Fix comment typo.
32646         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
32647         1.7 to avoid replacement.
32648         * tests/test-fpurge.c (main): Enhance test.
32649
32650 2009-08-15  Eric Blake  <ebb9@byu.net>
32651         and Jim Meyering  <meyering@redhat.com>
32652
32653         test-update-copyright: skip if perl is insufficient
32654         * tests/test-update-copyright.sh: Failure to run maintainer tool
32655         should not cause testsuite failure on cygwin 1.5.
32656
32657 2009-08-14  Eric Blake  <ebb9@byu.net>
32658
32659         doc: mention more functions added in cygwin 1.7.0
32660         * doc/posix-headers/limits.texi (limits.h): Update for recent
32661         cygwin additions.
32662         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
32663         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
32664         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
32665         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
32666         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
32667
32668 2009-08-14  Eric Blake  <ebb9@byu.net>
32669
32670         maint.mk: simplify update-copyright rule
32671         * top/maint.mk (update-copyright-local): Delete, and document how
32672         to do it in cfg.mk instead.
32673         (update-copyright-exclude-regexp): Delete, and document how to do
32674         it in .x-update-copyright instead.
32675         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
32676         exclude ChangeLog.
32677
32678 2009-08-14  Bruno Haible  <bruno@clisp.org>
32679
32680         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
32681
32682 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
32683
32684         maint.mk: support update-copyright-env
32685         * top/maint.mk (update-copyright-env): Define place-holder.
32686         (update-copyright): Expand $(update-copyright-env) before
32687         invoking update-copyright.
32688
32689 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
32690
32691         update-copyright: implement forced reformatting
32692         * build-aux/update-copyright: Implement and document
32693         UPDATE_COPYRIGHT_FORCE.
32694         * tests/test-update-copyright.sh: Test it.
32695
32696 2009-08-14  Eric Blake  <ebb9@byu.net>
32697         and Bruno Haible  <bruno@clisp.org>
32698
32699         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
32700         * tests/test-locale.c: Revert previous patch related to NULL.
32701         * tests/test-stdio.c: Likewise.
32702         * tests/test-stdlib.c: Likewise.
32703         * tests/test-string.c: Likewise.
32704         * tests/test-unistd.c: Likewise.
32705         * modules/time-tests (Depends-on): Add verify.
32706         * modules/wchar-tests (Depends-on): Likewise.
32707         * tests/test-time.c: Test for NULL compliance.
32708         * tests/test-wchar.c: Likewise.
32709         * modules/locale (Depends-on): Add stddef.
32710         * modules/stdio (Depends-on): Likewise.
32711         * modules/stdlib (Depends-on): Likewise.
32712         * modules/string (Depends-on): Likewise.
32713         * modules/time (Depends-on): Likewise.
32714         * modules/unistd (Depends-on): Likewise.
32715         * modules/wchar (Depends-on): Likewise.
32716         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
32717         * lib/stdlib.in.h (includes): Likewise.
32718         * lib/string.in.h (includes): Likewise.
32719         * lib/time.in.h (includes): Likewise.
32720         * lib/unistd.in.h (includes): Likewise.
32721         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
32722         replaced.
32723         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
32724         * m4/stddef_h.m4: New file.
32725         * modules/stddef: Likewise.
32726         * lib/stddef.in.h: Likewise.
32727         * modules/stddef-tests: Likewise.
32728         * tests/test-stddef.c: Likewise.
32729         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
32730         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
32731         * doc/posix-headers/locale.texi (locale.h): Likewise.
32732         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
32733         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
32734         * doc/posix-headers/string.texi (string.h): Likewise.
32735         * doc/posix-headers/time.texi (time.h): Likewise.
32736         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
32737         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
32738
32739 2009-08-14  Eric Blake  <ebb9@byu.net>
32740
32741         doc: improve git diff of texinfo files
32742         * .gitattributes: Add rule for *.texi files, with hint on how to
32743         use it.
32744         Copied from m4, and based on a report by Bruno Haible.
32745
32746 2009-08-14  Bruno Haible  <bruno@clisp.org>
32747
32748         Disable multithread support by default on Cygwin 1.5.x for real.
32749         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
32750
32751 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
32752
32753         update-copyright: much ado about intervals
32754         * build-aux/update-copyright: Implement and document
32755         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
32756         of copyright year intervals.
32757         Also, document UPDATE_COPYRIGHT_YEAR.
32758         * tests/test-update-copyright.sh: Test it.
32759
32760         update-copyright: convert 2-digit to 4-digit years
32761         * build-aux/update-copyright: Implement and document.
32762         * tests/test-update-copyright.sh: Update.
32763
32764 2009-08-14  Jim Meyering  <meyering@redhat.com>
32765
32766         test-exclude: avoid coreutils "make check" failure
32767         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
32768         just as in test-argmatch.c.
32769
32770 2009-08-13  Eric Blake  <ebb9@byu.net>
32771
32772         test-dup2: fix bad assumption
32773         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
32774         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
32775
32776         test-version-etc: fix CRLF portability issue
32777         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
32778         recognize \r.
32779         * tests/test-argp-version-etc-1.sh: Likewise.
32780
32781         getopt: update client modules
32782         * modules/argp (Depends-on): Use getopt-gnu.
32783         * modules/git-merge-changelog (Depends-on): Likewise.
32784         * modules/long-options (Depends-on): Likewise.
32785         * modules/xstrtol (Depends-on): Likewise.
32786
32787 2009-08-13  Simon Josefsson  <simon@josefsson.org>
32788
32789         * tests/test-version-etc.sh: Don't fail on different
32790         project/version.  Don't fail on CRLF differences.  Rewrite to use
32791         multiple -e instead of multiple sed forks, suggested by Eric Blake
32792         <ebb9@byu.net>.
32793         * tests/test-argp-version-etc-1.sh: Likewise.
32794
32795 2009-08-13  Simon Josefsson  <simon@josefsson.org>
32796
32797         * tests/test-version-etc.sh: Don't fail on different
32798         project/version.
32799
32800 2009-08-12  Bruno Haible  <bruno@clisp.org>
32801
32802         Tests for modules 'getopt-posix', 'getopt-gnu'.
32803         * modules/getopt-posix-tests: New file.
32804         * tests/test-getopt.c: New file.
32805         * tests/test-getopt.h: New file.
32806         * tests/test-getopt_long.h: New file.
32807
32808         New modules 'getopt-posix', 'getopt-gnu'.
32809         * modules/getopt-gnu: New file, renamed from modules/getopt.
32810         * modules/getopt-posix: New file.
32811         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
32812         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
32813         (gl_GETOPT): Remove macro.
32814         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
32815         Disable the test against BSD systems that declare optreset. Test
32816         against mingw bug. Test against lack of support of optional arguments
32817         on many platforms.
32818         * doc/glibc-headers/getopt.texi: Update module name and list of
32819         relevant platforms.
32820         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
32821         'getopt-gnu' and more portability problems.
32822         * NEWS: Mention the changes.
32823
32824 2009-08-12  Bruno Haible  <bruno@clisp.org>
32825
32826         Ensure that optarg etc. get declared by <unistd.h>.
32827         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
32828         AC_USE_SYSTEM_EXTENSIONS.
32829         * modules/getopt (Depends-on): Add 'extensions'.
32830
32831 2009-08-12  Bruno Haible  <bruno@clisp.org>
32832
32833         Avoid test link errors.
32834         * modules/pipe-filter-ii-tests (Makefile.am): Define
32835         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
32836         * modules/pipe-filter-gi-tests (Makefile.am): Define
32837         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
32838         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
32839
32840 2009-08-12  Bruno Haible  <bruno@clisp.org>
32841
32842         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
32843         gl_GETOPT_SUBSTITUTE before.
32844         (gl_GETOPT): Use it.
32845         * m4/argp.m4 (gl_ARGP): Update.
32846         Reported by Sergey Poznyakoff.
32847
32848         * m4/getopt.m4: Reorder macros.
32849         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
32850         (gl_GETOPT_SUBSTITUTE): Remove macro.
32851
32852 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
32853
32854         Minor improvement in gitlog-to-changelog
32855
32856         * build-aux/gitlog-to-changelog: New option `--format' makes
32857         output format string configurable.
32858
32859 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
32860
32861         Optimize exclude: use hash tables for non-wildcard patterns.
32862
32863         * lib/exclude.c: Include hash.h and mbuiter.h
32864         (struct exclude_pattern, exclude_segment): New data types.
32865         (struct exclude): Rewrite.
32866         (fnmatch_pattern_has_wildcards): New function.
32867         (new_exclude_segment, free_exclude_segment): New functions.
32868         (excluded_file_pattern_p, excluded_file_name_p): New functions.
32869         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
32870         * lib/exclude.h (is_fnmatch_pattern): New prototype.
32871         * modules/exclude: Depend on hash and mbuiter.
32872
32873         * modules/exclude-tests: New file.
32874         * tests/test-exclude.c: New file.
32875         * tests/test-exclude1.sh: New file.
32876         * tests/test-exclude2.sh: New file.
32877         * tests/test-exclude3.sh: New file.
32878         * tests/test-exclude4.sh: New file.
32879         * tests/test-exclude5.sh: New file.
32880         * tests/test-exclude6.sh: New file.
32881         * tests/test-exclude7.sh: New file.
32882
32883 2009-08-12  Bruno Haible  <bruno@clisp.org>
32884
32885         Ensure that getopt() gets declared by <unistd.h>.
32886         * lib/unistd.in.h: Conditionally include getopt.h.
32887         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
32888         Set GNULIB_UNISTD_H_GETOPT.
32889         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
32890         GNULIB_UNISTD_H_GETOPT.
32891         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
32892
32893 2009-08-12  Bruno Haible  <bruno@clisp.org>
32894
32895         Clarify logic.
32896         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
32897         gl_replace_getopt instead of GETOPT_H.
32898
32899 2009-08-12  Bruno Haible  <bruno@clisp.org>
32900
32901         * m4/getopt.m4: Add comments.
32902
32903 2009-08-12  Bruno Haible  <bruno@clisp.org>
32904
32905         Disable multithread support by default on Cygwin 1.5.x.
32906         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
32907         set gl_use_threads=no if not specified otherwise.
32908
32909 2009-08-11  Bruno Haible  <bruno@clisp.org>
32910
32911         Avoid compilation error on NetBSD 5.0.
32912         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
32913         * tests/test-stdio.c: Likewise.
32914         * tests/test-stdlib.c: Likewise.
32915         * tests/test-string.c: Likewise.
32916         * tests/test-unistd.c: Likewise.
32917         Reported by Greg Troxel <gdt@ir.bbn.com>
32918         at <https://savannah.gnu.org/support/?106973>.
32919
32920 2009-08-11  Bruno Haible  <bruno@clisp.org>
32921
32922         * modules/dup2-tests (Depends-on): Remove close.
32923
32924         Undo 2009-07-19 commit.
32925         * modules/acl-tests (Depends-on): Remove close.
32926         * modules/binary-io-tests (Depends-on): Likewise.
32927         * modules/closein-tests (Depends-on): Likewise.
32928         * modules/flock-tests (Depends-on): Likewise.
32929         * modules/fsync-tests (Depends-on): Likewise.
32930         * modules/lseek-tests (Depends-on): Likewise.
32931         * modules/pipe-tests (Depends-on): Likewise.
32932         * modules/posix_spawn-tests (Depends-on): Likewise.
32933         * modules/posix_spawnp-tests (Depends-on): Likewise.
32934         * modules/stat-time-tests (Depends-on): Likewise.
32935         * modules/yesno-tests (Depends-on): Likewise.
32936
32937 2009-08-10  Bruno Haible  <bruno@clisp.org>
32938
32939         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
32940
32941 2009-08-10  Bruno Haible  <bruno@clisp.org>
32942
32943         Fix a gcc warning.
32944         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
32945
32946 2009-08-10  Bruno Haible  <bruno@clisp.org>
32947
32948         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
32949         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
32950         not only the first time.
32951         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
32952         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
32953         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
32954         is 1, not only the the first time.
32955
32956 2009-08-10  Bruno Haible  <bruno@clisp.org>
32957
32958         Make it possible to use module 'gethostname' without module 'close'.
32959         * lib/unistd.in.h (close): Evoke a link error only if
32960         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
32961         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
32962         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
32963         * modules/unistd (Makefile.am): Substitute
32964         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
32965         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
32966         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
32967         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
32968         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
32969         * modules/sys_ioctl (Makefile.am): Substitute
32970         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
32971         * modules/socket (configure.ac): On native Windows, set
32972         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
32973         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
32974         Reported by Sam Steingold <sds@gnu.org>.
32975
32976 2009-08-10  Bruno Haible  <bruno@clisp.org>
32977
32978         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
32979         * modules/ioctl (configure.ac): Likewise.
32980
32981 2009-08-10  Bruno Haible  <bruno@clisp.org>
32982
32983         Avoid collision between gnulib wrapper and libintl wrapper.
32984         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
32985         already defined in intl/printf.c.
32986         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
32987         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
32988
32989 2009-08-09  Bruno Haible  <bruno@clisp.org>
32990
32991         Make <sys/select.h> really self-contained, also on Solaris 10.
32992         * lib/sys_select.in.h: Include <string.h>.
32993         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
32994         Solaris 10 problem.
32995         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
32996         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
32997         Reported by Jim Meyering.
32998
32999 2009-08-09  Bruno Haible  <bruno@clisp.org>
33000
33001         Avoid warnings from 'aclocal' that are due to a use of macro name
33002         AM_XGETTEXT_OPTION that is not defined in automake.
33003         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
33004         automake.
33005         * modules/error (configure.ac): Likewise.
33006         * modules/propername (configure.ac): Likewise.
33007         * modules/vasprintf (configure.ac): Likewise.
33008         * modules/verror (configure.ac): Likewise.
33009         * modules/xprintf (configure.ac): Likewise.
33010         * modules/xvasprintf (configure.ac): Likewise.
33011
33012 2009-08-08  Bruno Haible  <bruno@clisp.org>
33013
33014         Avoid compilation error in C++ mode.
33015         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
33016         Reported by Sam Steingold <sds@gnu.org>.
33017
33018 2009-08-08  Bruno Haible  <bruno@clisp.org>
33019
33020         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
33021         for the various Unix platforms.
33022         * doc/posix-headers/limits.texi: Update platforms list regarding
33023         HOST_NAME_MAX.
33024         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
33025
33026 2009-08-07  Jim Meyering  <meyering@redhat.com>
33027
33028         selinux-at: fix typo in a comment
33029         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
33030         Spotted by Paolo Bonzini.
33031
33032         selinux-at: remove redundant m4 code, add documentation
33033         * modules/selinux-at (configure.ac): Remove redundant code.
33034         LIB_SELINUX is already set via the dependent module, selinux-h.
33035         (Include): Add quotes around selinux-at.h.
33036         * lib/selinux-at.h: Add documentation.
33037         Reported by Bruno Haible in
33038         http://marc.info/?l=gnulib-bug&m=124958988300749
33039
33040 2009-08-07  Bruno Haible  <bruno@clisp.org>
33041
33042         Avoid link error on MacOS X 10.3 and 10.4.
33043         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
33044         on non-ELF systems.
33045         * lib/argp-pv.c (argp_program_version): Likewise.
33046         Reported by Simon Josefsson.
33047
33048 2009-08-07  Simon Josefsson  <simon@josefsson.org>
33049
33050         * tests/test-version-etc.sh: Use $EXEEXT.
33051
33052 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
33053
33054         update-copyright: update documentation to point to maint.mk
33055         * build-aux/update-copyright: Here.
33056
33057 2009-08-06  Jim Meyering  <meyering@redhat.com>
33058
33059         maint.mk: support update-copyright-local
33060         * top/maint.mk (update-copyright-local): Define place-holder.
33061         (update-copyright): Depend on $(update-copyright-local).
33062
33063 2009-08-06  Jim Meyering  <meyering@redhat.com>
33064
33065         selinux-at: new module
33066         Initially written for coreutils, this module will soon be
33067         used by findutils, too.
33068         * MODULES.html.sh [Misc]: Add selinux-at.
33069         * lib/selinux-at.h: New file, from coreutils.
33070         * lib/selinux-at.c: Likewise.
33071         * modules/selinux-at: Likewise.
33072         (License): Change from LGPL to GPL, since it depends
33073         on the GPL'd openat module.
33074
33075         doc: update README
33076         * README: Remove references to cogito.
33077         Remove cvs-repo-updating instructions from 2007.
33078         Don't imply that CVS is better if you have limited disk space.
33079
33080 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
33081
33082         update-copyright: support C-style comments
33083         * build-aux/update-copyright: Implement and document.
33084         * tests/test-update-copyright.sh: Test.
33085
33086 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
33087
33088         update-copyright: support omitted "(C)"
33089         * build-aux/update-copyright: Implement and document.  Also,
33090         allow variable whitespace before "(C)".
33091         * tests/test-update-copyright.sh: Test.
33092
33093 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
33094
33095         update-copyright: don't trip on non-FSF copyright statements
33096         * build-aux/update-copyright: Fix so that the first correctly
33097         formatted FSF copyright statement is recognized no matter what
33098         appears before it.  Update documentation.
33099         * tests/test-update-copyright.sh: Test that.
33100
33101 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
33102
33103         update-copyright: clean up code a little
33104         * build-aux/update-copyright: Append "_re" to the name of any
33105         variable holding a regular expression.
33106         Replace "old" and "new" with "stmt" in variable names.
33107         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
33108         handled correctly.
33109         Format code more consistently.
33110
33111 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
33112
33113         update-copyright-tests: improve portability
33114         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
33115         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
33116
33117 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
33118
33119         update-copyright: support @copyright{} and &copy;
33120         * build-aux/update-copyright: Implement and document.
33121         * tests/test-update-copyright.sh: Test.
33122
33123 2009-08-04  Jim Meyering  <meyering@redhat.com>
33124
33125         update-copyright-tests: correctly test EOL=\r\n handling
33126         * tests/test-update-copyright.sh: Put \r at the end of some lines
33127         for the dos-eol tests.  Based on a patch by Joel E. Denny.
33128
33129         maint.mk: make update-copyright exclusion list more configurable
33130         * top/maint.mk (update-copyright): Default to excluding COPYING,
33131         but allow an override, in case someone does want to update that file.
33132
33133         maint.mk: don't update copyright date in COPYING
33134         * top/maint.mk (update-copyright): Exclude COPYING.
33135
33136         maint.mk: add a copyright-updating rule
33137         * top/maint.mk (update-copyright): New rule.
33138         Derived from coreutils/Makefile.am.
33139
33140         update-copyright: rename some variables
33141         * build-aux/update-copyright: Rename a few variables for clarity.
33142         Tweak syntax.  List Joel E. Denny as coauthor.
33143
33144 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
33145
33146         update-copyright: fix bug for 2-digit last year and add tests
33147         * build-aux/update-copyright: Fix bug.
33148         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
33149         specified.
33150         * modules/update-copyright-tests: New
33151         * tests/test-update-copyright.sh: New.
33152
33153 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
33154
33155         update-copyright: handle leading tabs in line prefix
33156         * build-aux/update-copyright: Count leading tabs as 8 spaces
33157         when computing margin.  This helps with the formatting of
33158         ChangeLogs, for example.
33159         Fix documentation a little.
33160
33161 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
33162
33163         update-copyright: support EOL=\r\n
33164         * build-aux/update-copyright: Implement that.
33165
33166 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
33167
33168         update-copyright: automatically format copyright statements
33169         * build-aux/update-copyright: Implement that.
33170         Also, be a little more predictable and safer by always failing
33171         when the full copyright format is not perfectly recognized as an
33172         unbroken whole.  Discussed at
33173         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
33174         Rewrite documentation.
33175
33176 2009-08-03  Bruno Haible  <bruno@clisp.org>
33177
33178         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
33179
33180 2009-08-02  Bruno Haible  <bruno@clisp.org>
33181
33182         Tests for module 'uname'.
33183         * modules/uname-tests: New file.
33184         * tests/test-uname.c: New file.
33185
33186         New module 'uname'.
33187         * lib/uname.c: New file.
33188         * m4/uname.m4: New file.
33189         * modules/uname: New file.
33190         * doc/posix-functions/uname.texi: Mention the new module.
33191
33192 2009-08-02  Bruno Haible  <bruno@clisp.org>
33193
33194         Tests for module 'sys_utsname'.
33195         * modules/sys_utsname-tests: New file.
33196         * tests/test-sys_utsname.c: New file.
33197
33198         New module 'sys_utsname'.
33199         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
33200         * m4/sys_utsname_h.m4: New file.
33201         * modules/sys_utsname: New file.
33202         * doc/posix-headers/sys_utsname.texi: Mention the new module.
33203
33204 2009-08-02  Bruno Haible  <bruno@clisp.org>
33205
33206         Implicitly initialize the sockets library.
33207         * lib/gethostname.c: Include sockets.h.
33208         (rpl_gethostname): Invoke gl_sockets_startup.
33209         * lib/socket.c: Include sockets.h.
33210         (rpl_socket): Invoke gl_sockets_startup.
33211         * modules/gethostname (Depends-on): Add sockets.
33212         * modules/socket (Depends-on): Likewise.
33213         * tests/test-poll.c: Don't include sockets.h.
33214         (main): Don't invoke gl_sockets_startup.
33215         * tests/test-select.c: Don't include sockets.h.
33216         (main): Don't invoke gl_sockets_startup.
33217
33218 2009-08-02  Bruno Haible  <bruno@clisp.org>
33219
33220         Allow multiple calls to gl_sockets_startup.
33221         * lib/sockets.c (initialized_sockets_version): New variable.
33222         (gl_sockets_startup): Do nothing if already called for this or a higher
33223         version.
33224         (gl_sockets_cleanup): Reset initialized_sockets_version.
33225
33226 2009-08-03  Simon Josefsson  <simon@josefsson.org>
33227
33228         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
33229         different project/version.
33230
33231 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
33232             Bruno Haible  <bruno@clisp.org>
33233
33234         Tests for module 'pipe-filter-gi'.
33235         * modules/pipe-filter-gi-tests: New file.
33236         * tests/test-pipe-filter-gi1.sh: New file.
33237         * tests/test-pipe-filter-gi1.c: New file.
33238         * tests/test-pipe-filter-gi2.sh: New file.
33239         * tests/test-pipe-filter-gi2-main.c: New file.
33240         * tests/test-pipe-filter-gi2-child.c: New file.
33241
33242         New module 'pipe-filter-gi'.
33243         * lib/pipe-filter-gi.c: New file.
33244         * modules/pipe-filter-gi: New file.
33245
33246 2009-08-02  Bruno Haible  <bruno@clisp.org>
33247             Paolo Bonzini  <bonzini@gnu.org>
33248
33249         Tests for module 'pipe-filter-ii'.
33250         * modules/pipe-filter-ii-tests: New file.
33251         * tests/test-pipe-filter-ii1.sh: New file.
33252         * tests/test-pipe-filter-ii1.c: New file.
33253         * tests/test-pipe-filter-ii2.sh: New file.
33254         * tests/test-pipe-filter-ii2-main.c: New file.
33255         * tests/test-pipe-filter-ii2-child.c: New file.
33256
33257         New module 'pipe-filter-ii'.
33258         * lib/pipe-filter.h: New file.
33259         * lib/pipe-filter-ii.c: New file.
33260         * lib/pipe-filter-aux.h: New file.
33261         * modules/pipe-filter-ii: New file.
33262
33263 2009-08-02  Simon Josefsson  <simon@josefsson.org>
33264
33265         * lib/gc-libgcrypt.c: Change copyright to FSF.
33266         * lib/gc-gnulib.c: Likewise.
33267
33268 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
33269
33270         * lib/gethostname.c: Include limits.h.
33271
33272 2009-08-02  Simon Josefsson  <simon@josefsson.org>
33273             Bruno Haible  <bruno@clisp.org>
33274
33275         Ensure HOST_NAME_MAX as part of the gethostname module.
33276         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
33277         define also HOST_NAME_MAX.
33278         * tests/test-gethostname.c: Include <limits.h>.
33279         (main): Check also HOST_NAME_MAX.
33280         * doc/posix-headers/limits.texi: Document the mingw problem.
33281
33282 2009-08-02  Bruno Haible  <bruno@clisp.org>
33283
33284         * lib/gethostname.c (gethostname): Fix handling of large len argument.
33285         Add comments.
33286
33287 2009-03-31  Simon Josefsson  <simon@josefsson.org>
33288
33289         * lib/gethostname.c: Add Windows wrapper.
33290         * m4/gethostname.m4: Look for gethostname in -lws2_32.
33291         * modules/gethostname: Depend on sys_socket & errno, for also
33292         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
33293         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
33294
33295 2009-07-31  Jim Meyering  <meyering@redhat.com>
33296
33297         getloadavg: fix symbol name in comment
33298         * lib/getloadavg.c: Correct a typo I introduced when adding
33299         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
33300         Matt Kraai spotted the problem.
33301
33302 2009-07-29  Matt Kraai  <mkraai@beckman.com>
33303
33304         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
33305         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
33306         code also if ! defined N_NAME_POINTER.
33307         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
33308         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
33309         but the n_name member is a 12-byte array.
33310
33311 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
33312
33313         update-copyright: generalize comment handling
33314         * build-aux/update-copyright: Handle copyright statements
33315         within more comment styles.
33316         Document usage.
33317         Report any file with an external copyright holder or parse failure.
33318
33319 2009-07-29  Jim Meyering  <meyering@redhat.com>
33320
33321         mktime: correct setting of REPLACE_MKTIME
33322         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
33323
33324         update-copyright: new module
33325         * modules/update-copyright: New file.
33326         * build-aux/update-copyright: New file.
33327         * MODULES.html.sh (maint+release support): Add update-copyright.
33328
33329 2009-07-27  Bruno Haible  <bruno@clisp.org>
33330
33331         Fix compilation error when <ctime> is used and mktime is replaced.
33332         * lib/time.in.h (mktime): New declaration.
33333         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
33334         REPLACE_MKTIME instead of defining mktime in config.h.
33335         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
33336         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
33337         Reported by Ross McFarland <rwmcfa1@neces.com>.
33338
33339 2009-07-27  Bruno Haible  <bruno@clisp.org>
33340
33341         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
33342         Reported by Matt Kraai <mkraai@beckman.com>.
33343
33344 2009-07-25  Jim Meyering  <meyering@redhat.com>
33345
33346         maint.mk: avoid warnings about missing files
33347         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
33348         diagnostic when .prev-version does not exist.
33349         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
33350         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
33351         nonexistent cfg.mk.
33352         Suggestions from Simon Josefsson.
33353
33354 2009-07-25  Bruno Haible  <bruno@clisp.org>
33355
33356         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
33357         defined as macros. Needed on QNX 6.4.1.
33358         Reported by Matt Kraai <mkraai@beckman.com>.
33359
33360 2009-07-23  Jim Meyering  <meyering@redhat.com>
33361
33362         maint.mk: invoke "make dist" with a working value of XZ_OPT
33363         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
33364
33365 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
33366
33367         Make fseeko.c compile on QNX.
33368         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
33369
33370 2009-07-22  Peter Simons  <simons@cryp.to>
33371
33372         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
33373         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
33374         * lib/md4.h: Likewise.
33375         * lib/md5.h: Likewise.
33376         * lib/sha1.h: Likewise.
33377         * lib/sha256.h: Likewise.
33378         * lib/sha512.h: Likewise.
33379
33380         tests-sha1: don't assign literal string to 'char *' variable
33381         * tests/test-sha1.c (main): Declare locals with "const" to match
33382         attributes of the right hand side.
33383
33384 2009-07-21  Eric Blake  <ebb9@byu.net>
33385
33386         dup2: fix more mingw problems
33387         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
33388         fd to itself.
33389         * doc/posix-functions/dup2.texi (dup2): Document the bug.
33390         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
33391         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
33392         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
33393         care of mingw bugs.
33394
33395 2009-07-21  Jim Meyering  <meyering@redhat.com>
33396
33397         vc-list-files: avoid failure when /bin/sh is dash
33398         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
33399         On some Debian based systems, /bin/sh is a symlink to dash, and running
33400         this command would omit the "/" following each 'tests' prefix:
33401           dash -x build-aux/vc-list-files -C . tests
33402         That is because bash and dash work differently:
33403           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
33404           bash ok
33405           dash odd
33406
33407 2009-07-21  Eric Blake  <ebb9@byu.net>
33408
33409         dup2-tests: test previous patch
33410         * modules/dup2-tests: New file.
33411         * tests/test-dup2.c: Likewise.
33412         * tests/test-open.c (main): Avoid unspecified behavior.
33413         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
33414         test.
33415
33416         dup2: work around mingw and cygwin 1.5 bug
33417         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
33418         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
33419         * modules/unistd (Makefile.am): Substitute it.
33420         * lib/unistd.in.h (dup2): Declare the replacement.
33421         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
33422         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
33423         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
33424         * modules/execute (Depends-on): Add dup2.
33425         * modules/fseterr (Depends-on): Likewise.
33426         * modules/pipe (Depends-on): Likewise.
33427         * modules/posix_spawn-internal (Depends-on): Likewise.
33428
33429 2009-07-21  Bruno Haible  <bruno@clisp.org>
33430
33431         * modules/.gitattributes: New file.
33432
33433 2009-07-20  Bruno Haible  <bruno@clisp.org>
33434
33435         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
33436         (main): Use it.
33437
33438 2009-07-20  Eric Blake  <ebb9@byu.net>
33439
33440         test-pipe: make a bit more robust.
33441         * tests/test-pipe.c (myerr): Allow error messages regardless of
33442         what we do to stderr.
33443         (test_pipe): Rearrange to avoid deadlock.
33444         (child_main): Try a larger read, to ensure we avoided deadlock.
33445         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
33446         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
33447         if misused.
33448
33449 2009-07-19  Jim Meyering  <meyering@redhat.com>
33450
33451         fts: avoid false-positive cycle-detection
33452         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
33453         for each new command line argument.
33454
33455 2009-07-19  Bruno Haible  <bruno@clisp.org>
33456
33457         Fix build error on mingw with the modules sys_select and unistd.
33458         * modules/acl-tests (Depends-on): Add close.
33459         * modules/binary-io-tests (Depends-on): Likewise.
33460         * modules/closein-tests (Depends-on): Likewise.
33461         * modules/flock-tests (Depends-on): Likewise.
33462         * modules/fsync-tests (Depends-on): Likewise.
33463         * modules/lseek-tests (Depends-on): Likewise.
33464         * modules/pipe-tests (Depends-on): Likewise.
33465         * modules/posix_spawn-tests (Depends-on): Likewise.
33466         * modules/posix_spawnp-tests (Depends-on): Likewise.
33467         * modules/stat-time-tests (Depends-on): Likewise.
33468         * modules/yesno-tests (Depends-on): Likewise.
33469
33470 2009-07-19  Bruno Haible  <bruno@clisp.org>
33471
33472         Unify conditionals.
33473         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
33474         macros, not at the compiler macros.
33475         * lib/pipe.c: Likewise.
33476         * lib/execute.c: Likewise.
33477         * lib/spawni.c: Likewise.
33478
33479 2009-07-19  Bruno Haible  <bruno@clisp.org>
33480
33481         Fix handling of closed stdin/stdout/stderr on mingw.
33482         * lib/w32spawn.h: Include unistd.h.
33483         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
33484         file descriptor with O_NOINHERIT flag.
33485         (fd_safer_noinherit): New function, based on fd-safer.c.
33486         (dup_safer_noinherit): New function, based on dup-safer.c.
33487         (undup_safer_noinherit): New function.
33488         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
33489         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
33490         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
33491         instead of fd_safer.
33492         * tests/test-pipe.c: Include <windows.h>.
33493         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
33494         result.
33495
33496         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
33497         from main.
33498         (test_pipe): Pass an extra argument for disambiguation.
33499         (main): Invoke parent_main or child_main.
33500
33501         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
33502         consistently.
33503
33504 2009-07-18  Eric Blake  <ebb9@byu.net>
33505
33506         test-pipe: fix mingw build
33507         * tests/test-pipe.c (main): Avoid fcntl on mingw.
33508
33509 2009-07-18  Bruno Haible  <bruno@clisp.org>
33510
33511         * modules/pipe-tests (Makefile.am): Fix typo.
33512
33513 2009-07-18  Eric Blake  <ebb9@byu.net>
33514
33515         error: fix mingw build
33516         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
33517         Reported by Bruno Haible.
33518
33519         error: avoid undefined use of stdout
33520         * lib/error.c (error, error_at_line): Check that fd 1 is open
33521         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
33522         is handling faults and the close_stdout module wants to report the
33523         detection of closed stdout as an error.
33524
33525 2009-07-17  Eric Blake  <ebb9@byu.net>
33526
33527         pipe: be robust in face of closed fds
33528         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
33529         should cause child to misbehave.
33530         * modules/pipe-tests: New module.
33531         * tests/test-pipe.c: New file.
33532         * tests/test-pipe.sh: New file.
33533         Reported by Akim Demaille.
33534
33535 2009-07-14  Bruno Haible  <bruno@clisp.org>
33536
33537         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
33538         Reported by anonymous kc.
33539
33540 2009-07-07  Jim Meyering  <meyering@redhat.com>
33541
33542         maint.mk: don't look for translatable strings in *.m4 or *.mk
33543         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
33544         when searching for translatable strings.
33545
33546 2009-07-05  Jim Meyering  <meyering@redhat.com>
33547
33548         remove superfluous parentheses in STREQ definition
33549         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
33550         * lib/getugroups.c (STREQ): Likewise.
33551         * lib/fnmatch.c (STREQ): Likewise.
33552         Spotted by Bruno Haible.
33553
33554 2009-07-04  Jim Meyering  <meyering@redhat.com>
33555
33556         argv-iter: new module
33557         * MODULES.html.sh: Add argv-iter.
33558         * lib/argv-iter.c, lib/argv-iter.h: New files.
33559         * modules/argv-iter: New file.
33560         * modules/argv-iter-tests: New file.
33561         * tests/test-argv-iter.c: Test it.
33562
33563 2009-07-04  Bruno Haible  <bruno@clisp.org>
33564
33565         Fix assertion.
33566         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
33567         contains more exact copies of a given entry than file2, leave the extra
33568         copies unpaired rather than aborting.
33569         Reported by Eric Blake.
33570
33571 2009-07-02  Bruno Haible  <bruno@clisp.org>
33572
33573         Speedup git-merge-changelog for git cherry-pick.
33574         * lib/git-merge-changelog.c (struct entries_mapping): New type.
33575         (entries_mapping_get): New function, extracted from compute_mapping.
33576         (entries_mapping_reverse_get): New function.
33577         (compute_mapping): Add a 'full' argument. Return the result in a
33578         'struct entries_mapping'.
33579         (main): Update. Access the mappings through entries_mapping_get.
33580         Reported by Eric Blake.
33581
33582 2009-07-02  Bruno Haible  <bruno@clisp.org>
33583
33584         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
33585         best_i.
33586
33587 2009-07-02  Bruno Haible  <bruno@clisp.org>
33588
33589         Speed up approximate search for matching ChangeLog entries.
33590         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
33591         argument. Call fstrcmp_bounded instead of fstrcmp.
33592         (compute_mapping, try_split_merged_entry, main): Update callers.
33593
33594 2009-07-02  Bruno Haible  <bruno@clisp.org>
33595
33596         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
33597
33598 2009-06-30  Bruno Haible  <bruno@clisp.org>
33599
33600         Reduce the number of uc_is_cased calls.
33601         * lib/unicase.h (casing_suffix_context_t): Add
33602         'first_char_except_ignorable' field.
33603         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
33604         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
33605         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
33606         Update initializer.
33607         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
33608         case-ignorable characters.
33609         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
33610         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
33611         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
33612         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
33613         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
33614
33615 2009-06-30  Bruno Haible  <bruno@clisp.org>
33616
33617         Tests for module 'unicase/ignorable'.
33618         * modules/unicase/ignorable-tests: New file.
33619         * tests/unicase/test-ignorable.c: New file, generated by
33620         gen-uni-tables.
33621
33622         Tests for module 'unicase/cased'.
33623         * modules/unicase/cased-tests: New file.
33624         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
33625         * tests/unicase/test-predicate-part1.h: New file, derived from
33626         tests/unictype/test-predicate-part1.h.
33627         * tests/unicase/test-predicate-part2.h: New file, same as
33628         tests/unictype/test-predicate-part2.h.
33629
33630         Fix evaluation of "Before C" condition of FINAL_SIGMA.
33631         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
33632         (output_casing_properties): New function.
33633         (main): Call it.
33634         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
33635         * lib/unicase/cased.c: Include unictype/bitmap.h.
33636         (uc_is_cased): Define through a bitmap lookup.
33637         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
33638         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
33639         (uc_is_case_ignorable): Define through a bitmap lookup.
33640         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
33641         lib/unictype/bitmap.h.
33642         (Depends-on): Add inline. Clean up.
33643         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
33644         lib/unictype/bitmap.h.
33645         (Depends-on): Add inline. Clean up.
33646         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
33647         recognition.
33648         * tests/unicase/test-u16-tolower.c (main): Likewise.
33649         * tests/unicase/test-u32-tolower.c (main): Likewise.
33650
33651 2009-06-30  Bruno Haible  <bruno@clisp.org>
33652
33653         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
33654         * lib/unicase/u16-casemap.c: Likewise.
33655         * lib/unicase/u32-casemap.c: Likewise.
33656
33657 2009-06-29  Bruno Haible  <bruno@clisp.org>
33658
33659         Define u32_casefold as a wrapper around u32_ct_casefold.
33660         * lib/unicase/u32-casefold.c: Update.
33661         * modules/unicase/u32-casefold (Depends-on): Add
33662         unicase/u32-ct-casefold, unicase/empty-prefix-context,
33663         unicase/empty-suffix-context. Clean up.
33664
33665         Define u16_casefold as a wrapper around u16_ct_casefold.
33666         * lib/unicase/u16-casefold.c: Update.
33667         * modules/unicase/u16-casefold (Depends-on): Add
33668         unicase/u16-ct-casefold, unicase/empty-prefix-context,
33669         unicase/empty-suffix-context. Clean up.
33670
33671         Define u8_casefold as a wrapper around u8_ct_casefold.
33672         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
33673         * lib/unicase/u8-casefold.c: Update.
33674         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
33675         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
33676
33677         Define u32_totitle as a wrapper around u32_ct_totitle.
33678         * lib/unicase/u32-totitle.c: Update.
33679         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
33680         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
33681
33682         Define u16_totitle as a wrapper around u16_ct_totitle.
33683         * lib/unicase/u16-totitle.c: Update.
33684         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
33685         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
33686
33687         Define u8_totitle as a wrapper around u8_ct_totitle.
33688         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
33689         functions.
33690         (FUNC): Delegate to U_CT_TOTITLE.
33691         * lib/unicase/u8-totitle.c: Update.
33692         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
33693         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
33694
33695         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
33696         invocation.
33697         * modules/unicase/u32-tolower (Depends-on): Add
33698         unicase/empty-prefix-context, unicase/empty-suffix-context.
33699
33700         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
33701         invocation.
33702         * modules/unicase/u16-tolower (Depends-on): Add
33703         unicase/empty-prefix-context, unicase/empty-suffix-context.
33704
33705         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
33706         * modules/unicase/u8-tolower (Depends-on): Add
33707         unicase/empty-prefix-context, unicase/empty-suffix-context.
33708
33709         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
33710         invocation.
33711         * modules/unicase/u32-toupper (Depends-on): Add
33712         unicase/empty-prefix-context, unicase/empty-suffix-context.
33713
33714         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
33715         invocation.
33716         * modules/unicase/u16-toupper (Depends-on): Add
33717         unicase/empty-prefix-context, unicase/empty-suffix-context.
33718
33719         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
33720         * modules/unicase/u8-toupper (Depends-on): Add
33721         unicase/empty-prefix-context, unicase/empty-suffix-context.
33722
33723         New module 'unicase/u32-ct-casefold'.
33724         * lib/unicase/u32-ct-casefold.c: New file.
33725         * modules/unicase/u32-ct-casefold: New file.
33726
33727         New module 'unicase/u16-ct-casefold'.
33728         * lib/unicase/u16-ct-casefold.c: New file.
33729         * modules/unicase/u16-ct-casefold: New file.
33730
33731         New module 'unicase/u8-ct-casefold'.
33732         * lib/unicase/u8-ct-casefold.c: New file.
33733         * lib/unicase/u-ct-casefold.h: New file, derived from
33734         lib/unicase/u-casefold.h.
33735         * modules/unicase/u8-ct-casefold: New file.
33736
33737         New module 'unicase/u32-ct-totitle'.
33738         * lib/unicase/u32-ct-totitle.c: New file.
33739         * modules/unicase/u32-ct-totitle: New file.
33740
33741         New module 'unicase/u16-ct-totitle'.
33742         * lib/unicase/u16-ct-totitle.c: New file.
33743         * modules/unicase/u16-ct-totitle: New file.
33744
33745         New module 'unicase/u8-ct-totitle'.
33746         * lib/unicase/u8-ct-totitle.c: New file.
33747         * lib/unicase/u-ct-totitle.h: New file, derived from
33748         lib/unicase/u-totitle.h.
33749         * modules/unicase/u8-ct-totitle: New file.
33750
33751         New module 'unicase/u32-ct-tolower'.
33752         * lib/unicase/u32-ct-tolower.c: New file.
33753         * modules/unicase/u32-ct-tolower: New file.
33754
33755         New module 'unicase/u16-ct-tolower'.
33756         * lib/unicase/u16-ct-tolower.c: New file.
33757         * modules/unicase/u16-ct-tolower: New file.
33758
33759         New module 'unicase/u8-ct-tolower'.
33760         * lib/unicase/u8-ct-tolower.c: New file.
33761         * modules/unicase/u8-ct-tolower: New file.
33762
33763         New module 'unicase/u32-ct-toupper'.
33764         * lib/unicase/u32-ct-toupper.c: New file.
33765         * modules/unicase/u32-ct-toupper: New file.
33766
33767         New module 'unicase/u16-ct-toupper'.
33768         * lib/unicase/u16-ct-toupper.c: New file.
33769         * modules/unicase/u16-ct-toupper: New file.
33770
33771         New module 'unicase/u8-ct-toupper'.
33772         * lib/unicase/u8-ct-toupper.c: New file.
33773         * modules/unicase/u8-ct-toupper: New file.
33774
33775         Add context arguments to u*_casemap functions.
33776         * lib/unicase/unicasemap.h: Include unicase.h.
33777         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
33778         suffix_context arguments.
33779         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
33780         functions.
33781         (FUNC): Add prefix_context and suffix_context arguments. Use
33782         uc_is_cased and uc_is_case_ignorable.
33783         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
33784         * lib/unicase/u16-casemap.c: Likewise.
33785         * lib/unicase/u32-casemap.c: Likewise.
33786         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
33787         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
33788         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
33789         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
33790         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
33791         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
33792
33793         New module 'unicase/u32-suffix-context'.
33794         * lib/unicase/u32-suffix-context.c: New file.
33795         * modules/unicase/u32-suffix-context: New file.
33796
33797         New module 'unicase/u16-suffix-context'.
33798         * lib/unicase/u16-suffix-context.c: New file.
33799         * modules/unicase/u16-suffix-context: New file.
33800
33801         New module 'unicase/u8-suffix-context'.
33802         * lib/unicase/u8-suffix-context.c: New file.
33803         * lib/unicase/u-suffix-context.h: New file.
33804         * modules/unicase/u8-suffix-context: New file.
33805
33806         New module 'unicase/empty-suffix-context'.
33807         * lib/unicase/empty-suffix-context.c: New file.
33808         * modules/unicase/empty-suffix-context: New file.
33809
33810         New module 'unicase/u32-prefix-context'.
33811         * lib/unicase/u32-prefix-context.c: New file.
33812         * modules/unicase/u32-prefix-context: New file.
33813
33814         New module 'unicase/u16-prefix-context'.
33815         * lib/unicase/u16-prefix-context.c: New file.
33816         * modules/unicase/u16-prefix-context: New file.
33817
33818         New module 'unicase/u8-prefix-context'.
33819         * lib/unicase/u8-prefix-context.c: New file.
33820         * lib/unicase/u-prefix-context.h: New file.
33821         * lib/unicase/context.h: New file.
33822         * modules/unicase/u8-prefix-context: New file.
33823
33824         New module 'unicase/empty-prefix-context'.
33825         * lib/unicase/empty-prefix-context.c: New file.
33826         * modules/unicase/empty-prefix-context: New file.
33827
33828         New module 'unicase/ignorable'.
33829         * lib/unicase/ignorable.c: New file.
33830         * modules/unicase/ignorable: New file.
33831
33832         New module 'unicase/cased'.
33833         * lib/unicase/caseprop.h: New file.
33834         * lib/unicase/cased.c: New file.
33835         * modules/unicase/cased: New file.
33836
33837         New functions for case mapping of substrings.
33838         * lib/unicase.h (casing_prefix_context_t): New type.
33839         (unicase_empty_prefix_context): New variable.
33840         (u8_casing_prefix_context, u16_casing_prefix_context,
33841         u32_casing_prefix_context, u8_casing_prefixes_context,
33842         u16_casing_prefixes_context, u32_casing_prefixes_context): New
33843         declarations.
33844         (casing_suffix_context_t): New type.
33845         (unicase_empty_suffix_context): New variable.
33846         (u8_casing_suffix_context, u16_casing_suffix_context,
33847         u32_casing_suffix_context, u8_casing_suffixes_context,
33848         u16_casing_suffixes_context, u32_casing_suffixes_context,
33849         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
33850         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
33851         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
33852         declarations.
33853
33854 2009-06-28  Jim Meyering  <meyering@redhat.com>
33855
33856         boostrap: indent only with spaces
33857         * build-aux/bootstrap: Indent only with spaces, never TABs.
33858
33859         bootstrap: split long lines
33860         * build-aux/bootstrap: Keep line length < 80.
33861
33862         bootstrap: sync from coreutils
33863         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
33864         just as autoreconf does.  Verify a list of prerequisite
33865         package-name,version-number pairs if defined in bootstrap.conf.
33866         Refer to README-prereq, if prerequisites are not satisfied.
33867
33868 2009-06-27  Eric Blake  <ebb9@byu.net>
33869
33870         tests: add test for bogus NULL definition
33871         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
33872         * tests/test-stdlib.c: Likewise.
33873         * tests/test-string.c: Likewise.
33874         * tests/test-locale.c: Likewise.
33875         * tests/test-unistd.c: Likewise.
33876         * modules/stdio-tests (Depends-on): Add verify.
33877         * modules/stdlib-tests (Depends-on): Likewise.
33878         * modules/string-tests (Depends-on): Likewise.
33879         * modules/locale-tests (Depends-on): Likewise.
33880         * modules/unistd-tests (Depends-on): Likewise.
33881
33882 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
33883
33884         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
33885         self-explaining comment.
33886         * m4/selinux-selinux-h: Update serial.
33887         (gl_LIBSELINUX): New macro, adding a warning for missing development
33888         packages to code extracted from...
33889         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
33890         Add warning for missing development packages here, too.
33891
33892 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
33893
33894         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
33895
33896 2009-06-25  Eric Blake  <ebb9@byu.net>
33897
33898         version-etc: fix regression
33899         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
33900         gcc.
33901         (version_etc): Use it, to catch bugs with trailing NULL.
33902         * lib/version-etc.c (version_etc_arn): Delete unused argument.
33903         (version_etc_va): Fix logic bug.
33904         * modules/version-etc-tests: Add test.
33905         * tests/test-version-etc.c: New file.
33906         * tests/test-version-etc.sh: Likewise.
33907
33908 2009-06-25  Sam Steingold  <sds@gnu.org>
33909
33910         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
33911         mbtowc declaration.
33912
33913 2009-06-25  Eric Blake  <ebb9@byu.net>
33914
33915         fpurge: migrate into <stdio.h>
33916         * lib/fpurge.h: Delete...
33917         * lib/stdio.in.h (fpurge): ...and declare here, instead.
33918         * lib/fpurge.c (fpurge): Change declaring header.
33919         * modules/fpurge (Files): Drop deleted file.
33920         (Depends-on): Add stdio.
33921         (configure.ac): Set witness.
33922         * modules/stdio (Makefile.am): Support fpurge macros.
33923         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
33924         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
33925         * lib/fflush.c: Update client.
33926         * tests/test-fpurge.c: Likewise.
33927         * NEWS: Mention the change.
33928
33929 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
33930
33931         * lib/argp-version-etc.c (program_authors): Add const
33932         qualifier.
33933         * lib/version-etc.c: Fix typos in the comments.
33934         * modules/argp-version-etc: Depends on version-etc.
33935
33936 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
33937
33938         argp-version-etc: new module.
33939
33940         * lib/argp-version-etc.c: New file.
33941         * lib/argp-version-etc.h: New file.
33942         * modules/argp-version-etc: New file.
33943         * modules/argp-version-etc-tests: New file.
33944         * tests/test-argp-version-etc.c: New test.
33945         * tests/test-argp-version-etc-1.sh: New test.
33946
33947 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
33948
33949         Provide additional interfaces and documentation for version-etc
33950         module.
33951
33952         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
33953         interfaces.
33954         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
33955         prototypes.
33956
33957 2009-06-24  Bruno Haible  <bruno@clisp.org>
33958
33959         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
33960         HAVE_LIB${NAME} macro.
33961         Reported by Sam Steingold <sds@gnu.org>.
33962
33963 2009-06-23  Simon Josefsson  <simon@josefsson.org>
33964
33965         * modules/hash-tests (test_hash_LDADD): Link to libintl when
33966         needed.
33967
33968 2009-06-21  Bruno Haible  <bruno@clisp.org>
33969
33970         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
33971         work.
33972         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
33973         together with LIB${NAME}, LTLIB${NAME}.
33974         Reported by Sam Steingold <sds@gnu.org>.
33975
33976 2009-06-20  Jim Meyering  <meyering@redhat.com>
33977
33978         tests: make sc_require_test_exit_idiom more generic
33979         * top/maint.mk (Exit_witness_file): New overridable variable.
33980         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
33981         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
33982
33983 2009-06-19  Jim Meyering  <meyering@redhat.com>
33984
33985         hash: reverse order of src/dst parameters in an internal interface
33986         * lib/hash.c (transfer_entries): Reverse order of parameters to
33987         put DST before SRC.  Adjust callers.
33988
33989         tests: test-hash: avoid wholesale duplication
33990         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
33991         Instead, use a loop and add a single conditional.
33992
33993         tests: test-hash: allow seed selection via a command line argument
33994         * tests/test-hash.c (get_seed): New function.
33995         (main): Use it.
33996
33997 2009-06-19  Eric Blake  <ebb9@byu.net>
33998
33999         hash: avoid memory leak on allocation failure
34000         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
34001         failure.  Factor repeated algorithm...
34002         (transfer_entries): ...into new helper routine.
34003         (hash_delete): React to hash_rehash return value.
34004
34005         hash: reduce memory pressure in hash_rehash no-op case
34006         * lib/hash.c (next_prime): Avoid overflow.
34007         (hash_initialize): Factor bucket size computation...
34008         (compute_bucket_size): ...into new helper function.
34009         (hash_rehash): Use new function and open coding to reduce memory
34010         pressure, and avoid a memory leak in USE_OBSTACK code.
34011         Reported by Jim Meyering.
34012
34013 2009-06-18  Eric Blake  <ebb9@byu.net>
34014
34015         hash: make rotation more obvious
34016         * modules/hash (Depends-on): Add bitrotate and stdint.
34017         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
34018         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
34019         (SIZE_MAX): Rely on headers for definition.
34020         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
34021         (raw_hasher): Use rotr_sz.
34022         Suggested by Jim Meyering.
34023
34024         hash: fix memory leak in last patch
34025         * lib/hash.c (hash_rehash): Avoid memory leak.
34026
34027         hash: avoid no-op rehashing
34028         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
34029
34030         hash: provide default callback functions
34031         * lib/hash.c (raw_hasher, raw_comparator): New functions.
34032         (hash_initialize): Use them as defaults.
34033         * tests/test-hash.c (main): Test this.
34034
34035         hash: minor optimization
34036         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
34037         when possible.
34038         (hash_initialize): Document this promise.
34039         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
34040         * tests/test-hash.c (hash_compare_strings): Test this.
34041
34042 2009-06-18  Bruno Haible  <bruno@clisp.org>
34043
34044         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
34045         going to be replaced anyway.
34046
34047 2009-06-18  Bruno Haible  <bruno@clisp.org>
34048
34049         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
34050         in one place.
34051         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
34052         be replaced anyway.
34053
34054 2009-06-18  Eric Blake  <ebb9@byu.net>
34055
34056         hash: check for resize before insertion
34057         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
34058         threshold before insertion, so that a pathological hash_rehash
34059         that fills every bucket can still trigger another rehash.
34060
34061 2009-06-18  Jim Meyering  <meyering@redhat.com>
34062
34063         hash-tests: add a loop around the small tests
34064         * tests/test-hash.c (main): Repeat small tests with selected
34065         small initial table sizes.
34066
34067 2009-06-17  Eric Blake  <ebb9@byu.net>
34068
34069         hash: minor cleanups
34070         * lib/hash.h (hash_entry): Make opaque, by moving...
34071         * lib/hash.c (hash_entry): ...here.
34072         (hash_insert): Clarify restrictions on what can be inserted.
34073         (hash_get_next): Clarify when it is safe to remove an element
34074         during traversal.
34075         (check_tuning): Skip verification when tuning is known safe.
34076         (hash_initialize): Clarify restrictions on tuning.
34077
34078 2009-06-17  Jim Meyering  <jim@meyering.net>
34079         and Eric Blake  <ebb9@byu.net>
34080
34081         hash-tests: new module
34082         * modules/hash-tests: New file.
34083         * tests/test-hash.c: New file.
34084
34085 2009-06-17  Eric Blake  <ebb9@byu.net>
34086
34087         strstr-simple: document new module
34088         * MODULES.html.sh: Document new module.
34089
34090         strstr, strcasestr: replace on platforms with broken memchr
34091         * modules/strstr: Split into...
34092         * modules/strstr-simple: ...new module that does not care about
34093         performance, but does care about glibc bug.
34094         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
34095         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
34096         if platform memchr is broken, per Debian bug 521737.
34097         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
34098         memchr.
34099         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
34100         * doc/posix-functions/strstr.texi (strstr): Document the fix.
34101         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
34102         * modules/mountlist (Depends-on): Add strstr-simple.
34103         * modules/gen-uni-tables (Depends-on): Likewise.
34104         * modules/argz (Depends-on): Add strstr.
34105
34106 2009-06-17  Bruno Haible  <bruno@clisp.org>
34107
34108         * modules/posix_spawn-internal (Depends-on): Add errno.
34109
34110 2009-06-17  Bruno Haible  <bruno@clisp.org>
34111
34112         Define missing ESTALE on Interix 3.5.
34113         * lib/errno.in.h (ESTALE): Assign a value if missing.
34114         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
34115         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
34116         missing.
34117         * doc/posix-headers/errno.texi: Mention the Interix bug.
34118         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
34119
34120 2009-06-15  Eric Blake  <ebb9@byu.net>
34121
34122         memchr, memchr2: add valgrind exception
34123         * lib/memchr.valgrind: New file.
34124         * lib/memchr2.valgrind: New file.
34125         * modules/memchr (Files): Distribute valgrind file.
34126         * modules/memchr2 (Files): Likewise.
34127
34128         docs: memchr is no longer obsolete
34129         * MODULES.html.sh: Move memchr from obsolete to string.h section.
34130         * lib/string.in.h (memchr): Simplify logic.
34131
34132 2009-06-14  Jim Meyering  <meyering@redhat.com>
34133
34134         link-follow: fix the "checking..." message to not mention trailing slash
34135         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
34136         never considered trailing slashes.
34137
34138 2009-06-14  Bruno Haible  <bruno@clisp.org>
34139
34140         * m4/memchr.m4: Mention also the bug on IA-64.
34141         * doc/posix-functions/memchr.texi: Likewise.
34142
34143 2009-06-12  Eric Blake  <ebb9@byu.net>
34144
34145         memchr: detect broken x86_64 and alpha implementations
34146         * modules/memchr-tests (Depends-on): Move mmap detection...
34147         * modules/memchr (Depends-on): ...here.
34148         (configure.ac): Set indicator.
34149         * lib/string.in.h (memchr): Declare replacement.
34150         * modules/string (Makefile.am): Trigger replacement.
34151         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
34152         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
34153         bugs.
34154         * doc/posix-functions/memchr.texi (memchr): Document the bug.
34155         * modules/getpagesize (License): Relax license.
34156
34157 2009-06-11  Bruno Haible  <bruno@clisp.org>
34158
34159         * lib/idpriv.h: Add more references.
34160
34161 2009-06-08  Bruno Haible  <bruno@clisp.org>
34162
34163         Tests for module 'idpriv-droptemp'.
34164         * modules/idpriv-droptemp-tests: New file.
34165         * tests/test-idpriv-droptemp.sh: New file.
34166         * tests/test-idpriv-droptemp.su.sh: New file.
34167         * tests/test-idpriv-droptemp.c: New file.
34168
34169         New module 'idpriv-droptemp'.
34170         * lib/idpriv-droptemp.c: New file.
34171         * modules/idpriv-droptemp: New file.
34172
34173 2009-06-08  Bruno Haible  <bruno@clisp.org>
34174
34175         Tests for module 'idpriv-drop'.
34176         * modules/idpriv-drop-tests: New file.
34177         * tests/test-idpriv-drop.sh: New file.
34178         * tests/test-idpriv-drop.su.sh: New file.
34179         * tests/test-idpriv-drop.c: New file.
34180
34181         New module 'idpriv-drop'.
34182         * lib/idpriv.h: New file.
34183         * lib-idpriv-drop.c: New file.
34184         * m4/idpriv.m4: New file.
34185         * modules/idpriv-drop: New file.
34186
34187 2009-06-08  Bruno Haible  <bruno@clisp.org>
34188
34189         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
34190         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
34191         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
34192         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
34193         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
34194         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
34195         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
34196
34197 2009-06-08  Eric Blake  <ebb9@byu.net>
34198
34199         test-strstr: use memory fence, when possible
34200         * tests/test-strstr.c (main): Use memory fence, in order to be
34201         more likely to trigger Debian bug 521737.
34202         * modules/strstr-tests (Files): Pull in additional files.
34203
34204         memchr: no longer obsolete, for wider field testing
34205         * modules/memchr (Status, Notice): Delete, this module is no
34206         longer obsolete.
34207         * modules/vasnprintf (Depends-on): Add memchr.
34208
34209 2009-06-07  Jim Meyering  <meyering@redhat.com>
34210
34211         hash: declare some functions with the warn_unused_result attribute
34212         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
34213
34214 2009-06-07  Bruno Haible  <bruno@clisp.org>
34215
34216         * tests/test-alignof.c: Don't test int64_t if it does not exist.
34217         Reported by Eric Blake.
34218
34219 2009-06-06  Eric Blake  <ebb9@byu.net>
34220
34221         test-alignof: fix typo with long double
34222         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
34223         compiler error.
34224
34225 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
34226
34227         Escape non-texinfo { and }s.
34228         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
34229         markup error.
34230
34231 2009-06-04  Jim Meyering  <meyering@redhat.com>
34232
34233         gitlog-to-changelog: don't infloop on an empty commit log
34234         * build-aux/gitlog-to-changelog: Warn about an empty log message.
34235         Reported by Boris Petersen <transacid@centerim.org>.
34236
34237 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
34238
34239         version-etc: extend for packagers
34240         Add three new configure options, intended for packagers:
34241           --with-packager="packager name"
34242           --with-packager-version="packager-specific version"
34243           --with-packager-bug-reports="packager bug reporting"
34244         An example with coreutils:
34245           $ ./configure \
34246             --with-packager=Gentoo \
34247             --with-packager-bug-report=http://bugs.gentoo.org/ \
34248             --with-packager-version="patchset 1.6"
34249           $ ./src/ls --version | head -n2
34250           ls (GNU coreutils) 7.1-dirty
34251           Packaged by Gentoo (patchset 1.6)
34252         Note that the bug reporting info via --help doesn't show up because
34253         coreutils uses its own custom emit_bug_reporting_address() implementation
34254         in src/system.h.  If it didn't, it'd look like:
34255           $ ./src/ls --help | tail -n4
34256           Report bugs to <bug-coreutils@gnu.org>.
34257           Report Gentoo bugs to <http://bugs.gentoo.org/>.
34258           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
34259           General help using GNU software: <http://www.gnu.org/gethelp/>.
34260         * lib/version-etc.c: Print new information, if provided.
34261         * m4/version-etc.m4: New file.
34262         * modules/version-etc (Files): Add m4/version-etc.m4.
34263         (configure.ac): Add gl_VERSION_ETC.
34264
34265 2009-05-31  Bruno Haible  <bruno@clisp.org>
34266
34267         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
34268         and 'int64_t'.
34269         * modules/alignof-tests (Dependencies): Add stdint.
34270         Reported by Eric Blake.
34271
34272 2009-05-31  Bruno Haible  <bruno@clisp.org>
34273
34274         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
34275         restriction due to compiler bugs.
34276         Reported by Eric Blake.
34277
34278 2009-05-31  Simon Josefsson  <simon@josefsson.org>
34279             Bruno Haible  <bruno@clisp.org>
34280
34281         Fix test-alignof failure.
34282         * lib/alignof.h (alignof_slot): New macro.
34283         (alignof_type): New macro, with the same semantics as the previous
34284         'alignof'.
34285         (alignof): Alias to alignof_slot.
34286         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
34287         check that the results are usable as constant expressions.
34288
34289 2009-05-31  Bruno Haible  <bruno@clisp.org>
34290
34291         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
34292         * tests/test-memchr.c (main): Check that memchr does not read past the
34293         first occurrence of the byte.
34294         * tests/test-strstr.c (main): Update comment.
34295         Suggested by Eric Blake.
34296
34297 2009-05-30  Bruno Haible  <bruno@clisp.org>
34298
34299         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
34300         detail how to use dumpbin.
34301         Reported by David Byron <dbyron@dbyron.com>.
34302
34303 2009-06-02  Simon Josefsson  <simon@josefsson.org>
34304
34305         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
34306
34307 2009-06-02  Simon Josefsson  <simon@josefsson.org>
34308
34309         * m4/manywarnings.m4: Add GCC 4.4 warnings.
34310
34311 2009-05-28  Bruno Haible  <bruno@clisp.org>
34312
34313         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
34314         build-aux/ files.
34315
34316 2009-05-28  Simon Josefsson  <simon@josefsson.org>
34317
34318         * gnulib-tool (func_import): Transform license on build-aux/ files too.
34319
34320 2009-05-27  Simon Josefsson  <simon@josefsson.org>
34321
34322         * gnulib-tool (sed_transform_main_lib_file)
34323         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
34324         regexps.
34325
34326 2009-05-26  Simon Josefsson  <simon@josefsson.org>
34327
34328         * tests/test-strstr.c: Add another self-test.
34329         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
34330         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
34331
34332 2009-05-23  Bruno Haible  <bruno@clisp.org>
34333
34334         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
34335         change.
34336
34337 2009-05-21  Bruno Haible  <bruno@clisp.org>
34338
34339         Simplify use of mode_t varargs.
34340         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
34341         uses 'mode_t' or 'int'.
34342         * lib/openat.c (openat): Likewise.
34343         * lib/open-safer.c (open_safer): Likewise.
34344         * m4/mode_t.m4: New file.
34345         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
34346         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
34347         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
34348         * modules/open (Files): Add m4/mode_t.m4.
34349         * modules/openat (Files): Likewise.
34350         * modules/fcntl-safer (Files): Likewise.
34351         Suggested by Eric Blake.
34352
34353 2009-05-21  Pádraig Brady  <P@draigbrady.com>
34354
34355         * doc/glibc-functions/fallocate.texi: New file.
34356         * doc/gnulib.texi: Include it.
34357
34358 2009-05-21  Eric Blake  <ebb9@byu.net>
34359             Bruno Haible  <bruno@clisp.org>
34360
34361         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
34362         invocations.
34363         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
34364
34365 2009-05-21  Eric Blake  <ebb9@byu.net>
34366             Bruno Haible  <bruno@clisp.org>
34367
34368         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
34369         include_next. Fix of 2008-11-20 commit.
34370         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
34371         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
34372         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
34373         NEXT_MATH_H.
34374         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
34375         instead of NEXT_MATH_H.
34376
34377 2009-05-21  Bruno Haible  <bruno@clisp.org>
34378
34379         Avoid redefinition warnings for SIZE_MAX.
34380         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
34381         Reported by Simon Josefsson.
34382
34383 2009-05-21  Bruno Haible  <bruno@clisp.org>
34384
34385         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
34386         AC_CACHE_VAL.
34387
34388 2009-05-20  Bruno Haible  <bruno@clisp.org>
34389
34390         Make zeroptr.h work on mingw.
34391         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
34392         mprotect.
34393         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
34394         * modules/memchr2-tests (configure.ac): Likewise.
34395         * modules/memcmp-tests (configure.ac): Likewise.
34396         * modules/memmem-tests (configure.ac): Likewise.
34397         * modules/memrchr-tests (configure.ac): Likewise.
34398         Reported by Simon Josefsson.
34399
34400 2009-05-20  Simon Josefsson  <simon@josefsson.org>
34401
34402         * tests/test-glob.c: Include string.h for strcmp prototype.
34403
34404 2009-05-20  Simon Josefsson  <simon@josefsson.org>
34405
34406         * modules/getdelim (Depends-on): Add explicit stdint, although it
34407         was implicitly already pulled in via realloc-posix.
34408         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
34409
34410 2009-05-20  Simon Josefsson  <simon@josefsson.org>
34411
34412         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
34413         G. Christensen" <tgc@jupiterrise.com>.
34414         * m4/sys_socket_h.m4: Check for sa_family_t.
34415         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
34416         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
34417         * tests/test-sys_socket.c: Check that sa_family_t works.
34418
34419 2009-05-18  Eric Blake  <ebb9@byu.net>
34420
34421         maint.mk: allow gnulib_dir in VPATH build
34422         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
34423
34424 2009-05-15  Jim Meyering  <meyering@redhat.com>
34425
34426         maint.mk: Give gnulib_dir a default definition.
34427         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
34428         Thus, most packages no longer need to specify this variable in cfg.mk
34429
34430 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
34431
34432         rename.m4: fix typos that would make non-mingw cross-configure fail
34433         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
34434
34435 2009-05-13  Eric Blake  <ebb9@byu.net>
34436
34437         mmap-anon: avoid out-of-order autoconf expansion
34438         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
34439         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
34440         * modules/memchr-tests (Depends-on): Add extensions.
34441         * modules/memchr2-tests (Depends-on): Add extensions.
34442         * modules/memcmp-tests (Depends-on): Add extensions.
34443         * modules/memmem-tests (Depends-on): Add extensions.
34444         * modules/memrchr-tests (Depends-on): Add extensions.
34445
34446 2009-05-13  Bruno Haible  <bruno@clisp.org>
34447
34448         Make some tests ISO C 99 compliant.
34449         * tests/zerosize-ptr.h: New file.
34450         * tests/test-memchr.c: Include zerosize-ptr.h.
34451         (main): Use a zero-size object pointer instead of NULL.
34452         * tests/test-memchr2.c: Include zerosize-ptr.h.
34453         (main): Use a zero-size object pointer instead of NULL.
34454         * tests/test-memcmp.c: Include zerosize-ptr.h.
34455         (main): Use a zero-size object pointer instead of NULL.
34456         * tests/test-memmem.c: Include zerosize-ptr.h.
34457         (main): Use a zero-size object pointer instead of NULL.
34458         * tests/test-memrchr.c: Include zerosize-ptr.h.
34459         (main): Use a zero-size object pointer instead of NULL.
34460         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
34461         m4/mmap-anon.m4.
34462         (Depends-on): Add getpagesize.
34463         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
34464         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
34465         m4/mmap-anon.m4.
34466         (Depends-on): Add getpagesize.
34467         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
34468         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
34469         m4/mmap-anon.m4.
34470         (Depends-on): Add getpagesize.
34471         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
34472         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
34473         m4/mmap-anon.m4.
34474         (Depends-on): Add getpagesize.
34475         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
34476         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
34477         m4/mmap-anon.m4.
34478         (Depends-on): Add getpagesize.
34479         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
34480
34481 2009-05-12  Bruno Haible  <bruno@clisp.org>
34482
34483         Tests for module 'alignof'.
34484         * modules/alignof-tests: New file.
34485         * tests/test-alignof.c: New file.
34486
34487 2009-05-12  Bruno Haible  <bruno@clisp.org>
34488
34489         Fix alignof macro.
34490         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
34491         vendor compilers that are always correct.
34492
34493 2009-05-12  Bruno Haible  <bruno@clisp.org>
34494
34495         Make the MAP_ANONYMOUS detection work on HP-UX 11.
34496         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
34497         not whether its fully works.
34498
34499 2009-05-12  Bruno Haible  <bruno@clisp.org>
34500
34501         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
34502
34503 2009-05-12  Jim Meyering  <meyering@redhat.com>
34504
34505         * top/maint.mk: Adjust backslash alignment.
34506
34507 2009-05-11  Simon Josefsson  <simon@josefsson.org>
34508
34509         * top/maint.mk: Make $(srcdir)/build-aux configurable.
34510
34511 2009-05-11  Eric Blake  <ebb9@byu.net>
34512
34513         argp: avoid undefined behavior
34514         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
34515         macros.
34516
34517 2009-05-08  Simon Josefsson  <simon@josefsson.org>
34518
34519         * tests/test-vc-list-files-git.sh: Do git config of user.email and
34520         user.name to prevent git commit from complaining.
34521
34522 2009-05-10  Bruno Haible  <bruno@clisp.org>
34523
34524         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
34525         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
34526         it rewrites every file name only once.
34527         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
34528
34529 2009-05-08  Bruno Haible  <bruno@clisp.org>
34530
34531         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
34532         instead of 'max'.
34533
34534 2009-05-08  Simon Josefsson  <simon@josefsson.org>
34535
34536         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
34537         sockaddr_storage test.
34538
34539 2009-05-07  Simon Josefsson  <simon@josefsson.org>
34540
34541         * modules/sys_socket (Makefile.am): Substitute
34542         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
34543         * m4/sys_socket_h.m4: Check for sockaddr_storage.
34544         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
34545         * tests/test-sys_socket.c: Check sockaddr_storage.
34546
34547 2009-05-08  Bruno Haible  <bruno@clisp.org>
34548
34549         New module 'alignof'.
34550         * lib/alignof.h: New file.
34551         * modules/alignof: New file.
34552
34553 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
34554             Bruno Haible  <bruno@clisp.org>
34555
34556         Fix test-file-has-acl on FreeBSD.
34557         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
34558         mask is implicitly added.
34559         * tests/test-file-has-acl.c: Include <signal.h>.
34560         (main): Terminate the test after 5 seconds.
34561         * modules/acl-tests (configure.ac): Check for alarm function.
34562
34563 2009-05-04  Bruno Haible  <bruno@clisp.org>
34564
34565         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
34566         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
34567         * modules/errno (configure.ac): Drop AC_REQUIRE.
34568         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
34569         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
34570
34571 2009-05-04  Simon Josefsson  <simon@josefsson.org>
34572
34573         * modules/glob-tests: New module.
34574         * tests/test-glob.c: Add.
34575
34576 2009-05-04  Simon Josefsson  <simon@josefsson.org>
34577
34578         * modules/fnmatch-tests: New module.
34579         * tests/test-fnmatch.c: Add.
34580
34581 2009-05-04  Eric Blake  <ebb9@byu.net>
34582
34583         maint: make the new no-submodule-changes rule VPATH-safe
34584         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
34585
34586 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
34587             Bruno Haible  <bruno@clisp.org>
34588
34589         acl: Fix infinite loop on FreeBSD.
34590         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
34591         of return value from acl_get_entry.
34592         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
34593         Likewise.
34594
34595 2009-05-03  Bruno Haible  <bruno@clisp.org>
34596
34597         * lib/acl-internal.h (acl_entries): Clarify return value.
34598         * lib/acl_entries.c (acl_entries): Likewise.
34599
34600 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
34601
34602         Bug fix in acl module.
34603         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
34604
34605 2009-05-03  Bruno Haible  <bruno@clisp.org>
34606
34607         Create gperf-generated file in the source dir, not in the build dir.
34608         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
34609         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
34610         * modules/unicase/locale-language (unicase/locale-languages.h):
34611         Likewise.
34612         * modules/unicase/special-casing (unicase/special-casing-table.h):
34613         Likewise.
34614         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
34615         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
34616         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
34617         Reported by Ralf Wildenhues.
34618
34619 2009-05-03  Bruno Haible  <bruno@clisp.org>
34620
34621         * modules/fnmatch (Description, configure.ac): Taken from
34622         fnmatch-posix.
34623         * modules/fnmatch-posix: Turn into a symbolic reference to the
34624         'fnmatch' module, and deprecate.
34625         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
34626
34627 2009-05-03  Bruno Haible  <bruno@clisp.org>
34628
34629         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
34630         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
34631         Reported by Ralf Wildenhues.
34632
34633 2009-05-04  Simon Josefsson  <simon@josefsson.org>
34634
34635         * m4/fnmatch.m4: Fix fnmatch re-define.
34636
34637 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
34638
34639         priv-set: new module and tests; adapt write-any-file
34640         * lib/priv-set.c: New file.
34641         * lib/priv-set.h: New file.
34642         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
34643         * lib/write-any-file.c: Simplify by using priv-set module.
34644         * m4/priv-set.m4: New file.
34645         * modules/priv-set: New file.
34646         * modules/unlinkdir: Add dependency on priv-set module.
34647         * modules/write-any-file: Likewise.
34648
34649         Tests for module 'priv-set'.
34650         * modules/priv-set-tests: New file.
34651         * tests/test-priv-set.c: New file.
34652
34653 2009-05-03  Jim Meyering  <meyering@redhat.com>
34654             Bruno Haible  <bruno@clisp.org>
34655
34656         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
34657         use the converted UTF-8 variant of the name instead.
34658
34659 2009-05-03  Jim Meyering  <meyering@redhat.com>
34660
34661         tests: tighten some getdate tests
34662         * tests/test-getdate.c (main): Tighten tests: require equality,
34663         not just greater than.  Set TZ envvar to UTC0.
34664
34665 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
34666
34667         getdate: correctly interpret "next monday" when run on a Monday
34668         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
34669         that e.g., "next tues" (when run on a tuesday) results in a date
34670         that is one week in the future, and not today's date.
34671         I.e., add a week when the wday is the same as the current one.
34672         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
34673         and earlier by Martin Bernreuther and Jan Minář.
34674         * tests/test-getdate.c (main): Check that "next DAY" is always in
34675         the future and that "last DAY" is always in the past.
34676
34677 2009-05-02  Jim Meyering  <meyering@redhat.com>
34678
34679         build: ensure that a release build fails when a submodule is unclean
34680         * top/maint.mk (no-submodule-changes): New rule.
34681         (alpha beta major): Depend on it.
34682
34683 2009-05-02  Bruno Haible  <bruno@clisp.org>
34684
34685         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
34686         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
34687         shell variable gl_fnmatch_required to detect which variant is
34688         requested.
34689         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
34690         gl_FUNC_FNMATCH_POSIX.
34691         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
34692         exclude fnmatch-posix.
34693
34694 2009-05-02  Bruno Haible  <bruno@clisp.org>
34695
34696         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
34697         * modules/mbsrtowcs (License): Change to LGPLv2+.
34698         * modules/strnlen1 (License): Likewise.
34699         Reported by Simon Josefsson.
34700
34701 2009-05-02  Bruno Haible  <bruno@clisp.org>
34702
34703         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
34704         "cross".
34705         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
34706         gnulib-tool was called with option --source-base=lib.
34707
34708 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34709
34710         Use automake *-local hooks without commands, for extensibility.
34711         * modules/localcharset (Makefile.am): Rename install-exec-local
34712         rule to install-exec-localcharset, and make it a prerequisite of
34713         install-exec-local.  Likewise, rename the uninstall-local rule to
34714         uninstall-localcharset, and make it a prerequisite of the former.
34715
34716 2009-05-01  Bruno Haible  <bruno@clisp.org>
34717
34718         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
34719         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
34720         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
34721         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
34722         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
34723         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
34724         m4/locale-zh.m4, m4/codeset.m4.
34725
34726         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
34727         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
34728         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
34729         m4/locale-zh.m4.
34730
34731         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
34732         REPLACE_WCRTOMB if mbstate_t must be replaced.
34733         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
34734         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
34735
34736 2009-05-01  Bruno Haible  <bruno@clisp.org>
34737
34738         Avoid compiler warnings when redefining macros defined by <libintl.h>.
34739         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
34740         dngettext, dcngettext, textdomain, bindtextdomain,
34741         bind_textdomain_codeset): Undefine before redefining.
34742
34743 2009-04-30  Bruno Haible  <bruno@clisp.org>
34744
34745         Fix bug introduced on 2009-04-25.
34746         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
34747         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
34748         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
34749         is defined.
34750         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
34751         is defined.
34752         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
34753         is defined.
34754         Reported by Elbert_Pol <elbert.pol@gmail.com>.
34755
34756 2009-04-28  Bruno Haible  <bruno@clisp.org>
34757
34758         Comment tweaks.
34759         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
34760         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
34761         * lib/unicase.h (u*_casexfrm): Likewise.
34762         Reported by Paolo Bonzini.
34763
34764 2009-04-28  Bruno Haible  <bruno@clisp.org>
34765
34766         Fix a compilation error.
34767         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
34768         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
34769         Reported by Jim Meyering.
34770
34771 2009-04-27  Bruno Haible  <bruno@clisp.org>
34772
34773         New module 'libunistring'.
34774         * modules/libunistring: New file.
34775         * m4/libunistring.m4: New file.
34776         * MODULES.html.sh (Unicode string functions): Add it.
34777
34778 2009-04-27  Eric Blake  <ebb9@byu.net>
34779
34780         maint.mk: allow package-specific header to provide <config.h>
34781         * top/maint.mk (sc_require_config_h): New variable.
34782         (sc_require_config_h, sc_require_config_h_first): Use it.
34783
34784 2009-04-27  Simon Josefsson  <simon@josefsson.org>
34785
34786         * top/maint.mk (sc_avoid_if_before_free): Except
34787         useless-if-before-free script.
34788
34789 2009-04-27  Eric Blake  <ebb9@byu.net>
34790
34791         maintainer-makefile: depend on all required helper scripts
34792         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
34793         useless-if-before-free.
34794         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
34795         version, rather than assuming gnulib checkout is available.
34796         Reported by Simen Josefsson.
34797
34798 2009-04-26  Bruno Haible  <bruno@clisp.org>
34799
34800         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
34801         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
34802         "../" or "..".
34803
34804 2009-04-26  Bruno Haible  <bruno@clisp.org>
34805
34806         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
34807         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
34808         AC_LIB_HAVE_LINKFLAGS.
34809
34810 2009-04-26  Bruno Haible  <bruno@clisp.org>
34811
34812         Simplify calling convention of u*_conv_from_encoding.
34813         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
34814         u32_conv_from_encoding): Expect a resultbuf argument and return the
34815         result directly as a pointer.
34816         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
34817         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
34818         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
34819         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
34820         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
34821         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
34822         Update.
34823         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
34824         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
34825         * lib/vasnprintf.c (VASNPRINTF): Update.
34826         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
34827         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
34828         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
34829         * NEWS: Mention the change.
34830
34831 2009-04-26  Bruno Haible  <bruno@clisp.org>
34832
34833         Simplify calling convention of u*_conv_to_encoding.
34834         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
34835         u32_conv_to_encoding): Expect a resultbuf argument and return the
34836         result directly as a pointer.
34837         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
34838         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
34839         freeing scaled_offsets if mem_iconveha failed.
34840         * lib/unicase/u-casexfrm.h (FUNC): Update.
34841         * lib/uninorm/u-normxfrm.h (FUNC): Update.
34842         * lib/vasnprintf.c (VASNPRINTF): Update.
34843         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
34844         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
34845         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
34846         * NEWS: Mention the change.
34847
34848 2009-04-26  Bruno Haible  <bruno@clisp.org>
34849
34850         Avoid test failures on AIX and OSF/1.
34851         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
34852         malloc(0).
34853         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
34854         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
34855         Likewise.
34856         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
34857         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
34858         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
34859         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
34860         * doc/posix-functions/malloc.texi: Document the portability problem
34861         related to malloc(0).
34862
34863 2009-04-26  Bruno Haible  <bruno@clisp.org>
34864
34865         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
34866         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
34867         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
34868
34869 2009-04-25  Bruno Haible  <bruno@clisp.org>
34870
34871         Avoid link error when creating a namespace clean library.
34872         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
34873         as macro with arguments if already defined as an alias.
34874         * lib/signbitf.c (gl_signbitf): Don't undefine.
34875         * lib/signbitd.c (gl_signbitd): Don't undefine.
34876         * lib/signbitl.c (gl_signbitl): Don't undefine.
34877
34878 2009-04-25  Jim Meyering  <meyering@redhat.com>
34879
34880         vc-list-files: fix another quoting bug
34881         * build-aux/vc-list-files: Avoid sed backslash expansion
34882         of pathological directory names.
34883
34884 2009-04-25  Eric Blake  <ebb9@byu.net>
34885
34886         vc-list-files: fix shell quoting error
34887         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
34888         timestamp.
34889
34890 2009-04-25  Jim Meyering  <meyering@redhat.com>
34891
34892         vc-list-files: restore lost functionality with subdir argument
34893         * build-aux/vc-list-files: When given a non-"." sub-directory
34894         argument, substitute the $dir/ prefix back onto each resulting name.
34895         Otherwise, coreutils' root_tests check would fail.
34896
34897 2009-04-24  Eric Blake  <ebb9@byu.net>
34898
34899         vc-list-files: ignore git symlinks
34900         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
34901         than ls-files, to ignore git symlinks.
34902
34903         maint.mk: import improvements from m4
34904         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
34905         (move_if_change): Delete unused macro.
34906         (news-date-check, vc-diff-check): Support VPATH builds.
34907         (announcement): Likewise.  Split --bootstrap-tools list...
34908         (boostrap-tools): ...into separate list, which can be overridden
34909         in cfg.mk.
34910         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
34911         requiring dependency on useless-if-before-free module.
34912         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
34913         Support VPATH builds.
34914
34915 2009-04-24  Jim Meyering  <meyering@redhat.com>
34916
34917         maint.mk: remove coreutils-specific rules and variables
34918         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
34919         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
34920         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
34921
34922         maint.mk: remove obsolete rule
34923         * top/maint.mk (rel-check): Remove rule.
34924         (WGET, WGETFLAGS): Remove now-unused variables.
34925
34926 2009-04-24  Simon Josefsson  <simon@josefsson.org>
34927
34928         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
34929         consistency.
34930
34931         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
34932         '$(PATH_SEPARATOR)' instead of ':'.
34933
34934 2009-04-24  Simon Josefsson  <simon@josefsson.org>
34935
34936         * lib/getopt1.c (main): Use 'const' for static array.
34937
34938 2009-04-24  Simon Josefsson  <simon@josefsson.org>
34939
34940         * top/maint.mk: Sync with coreutils.
34941         * NEWS: Explain incompatibilities.
34942
34943 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
34944             Bruno Haible  <bruno@clisp.org>
34945
34946         Fix cross-compilation results.
34947         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
34948         statement, as third argument of AC_TRY_RUN.
34949         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
34950         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
34951         Likewise.
34952         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
34953         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
34954         Likewise.
34955         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
34956         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
34957         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
34958
34959 2009-04-20  Bruno Haible  <bruno@clisp.org>
34960
34961         Avoid test failure on mingw.
34962         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
34963
34964 2009-04-20  Bruno Haible  <bruno@clisp.org>
34965
34966         Avoid compilation error on mingw.
34967         * modules/localename-tests (Depends-on): Add locale.
34968
34969 2009-04-19  Bruno Haible  <bruno@clisp.org>
34970
34971         Support for building a shared library on Windows platforms.
34972         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
34973         (main): Test the presence of UNINORM_NFC here.
34974         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
34975         (main): Test the presence of UNINORM_NFD here.
34976         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
34977         (main): Test the presence of UNINORM_NFKC here.
34978         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
34979         (main): Test the presence of UNINORM_NFKD here.
34980
34981 2009-04-19  Bruno Haible  <bruno@clisp.org>
34982
34983         Avoid a compiler warning.
34984         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
34985         Change type of variable 'sequence'.
34986
34987 2009-04-19  Bruno Haible  <bruno@clisp.org>
34988
34989         * modules/configmake (Makefile.am): When the contents of configmake.h
34990         does not change, arrange to preserve its modification time.
34991
34992 2009-04-17  Simon Josefsson  <simon@josefsson.org>
34993
34994         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
34995         gettext domain.
34996
34997 2009-04-16  Jim Meyering  <meyering@redhat.com>
34998
34999         useless-if-before-free: improve conversion code
35000         * build-aux/useless-if-before-free: Adjust code-in-comment to match
35001         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
35002
35003 2009-04-14  Bruno Haible  <bruno@clisp.org>
35004
35005         * modules/fcntl (Depends-on): Add extensions.
35006         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
35007
35008 2009-04-12  Ben Pfaff  <blp@gnu.org>
35009
35010         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
35011         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
35012
35013 2009-03-20  Ben Pfaff  <blp@gnu.org>
35014
35015         Make rename replace existing destinations on Windows.
35016         * m4/rename.m4: Add test for Mingw.
35017         * lib/rename.c: Add rename replacement that uses MoveFileEx with
35018         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
35019         * doc/posix-functions/rename.texi: Document.
35020
35021 2009-04-10  Bruno Haible  <bruno@clisp.org>
35022
35023         New include file "iconveh.h".
35024         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
35025         * lib/striconveh.h: Include it.
35026         (enum iconv_ilseq_handler): Remove definition.
35027         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
35028         striconveh.h.
35029         * lib/striconveha.c: Include striconveh.h.
35030         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
35031         * modules/striconveh (Files): Add lib/iconveh.h.
35032         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
35033         lib/striconveh.h.
35034
35035 2009-04-10  Bruno Haible  <bruno@clisp.org>
35036
35037         * lib/uniconv.h: Update comment.
35038
35039 2009-04-10  Bruno Haible  <bruno@clisp.org>
35040
35041         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
35042         always.
35043         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
35044         * lib/unistr/u16-mbtouc-aux.c: Likewise.
35045         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
35046         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
35047         "unistring-notinline.h", so that the function gets defined always.
35048         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
35049         * lib/unistr/u8-uctomb.c: Likewise.
35050         * lib/unistr/u16-mbtouc.c: Likewise.
35051         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
35052         * lib/unistr/u16-uctomb.c: Likewise.
35053         * lib/unistr/u32-mbtouc.c: Likewise.
35054         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
35055         * lib/unistr/u32-uctomb.c: Likewise.
35056
35057 2009-04-10  Bruno Haible  <bruno@clisp.org>
35058
35059         Mark 'utime' obsolete.
35060         * modules/utime (Status, Notice): New sections.
35061         Suggested by Jim Meyering.
35062
35063         Fix cross-compile guess for utime test.
35064         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
35065         autoconf.
35066         * doc/posix-functions/utime.texi: Give more precisions.
35067         Reported by Jan <ipif@ymail.com>.
35068
35069 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
35070
35071         filevercmp: correct today's change
35072         * lib/filevercmp.c: Also handle coreutils' test inputs.
35073         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
35074
35075         Fix regression in 'filevercmp' module. Thanks Sven Joachim
35076         for reporting it.
35077         * lib/filevercmp.c: Special handle for "", "." and "..".
35078         * tests/test-filevercmp.c: Enlarge the set suite.
35079
35080 2009-04-07  Jim Meyering  <meyering@redhat.com>
35081
35082         useless-if-before-free: show how to remove braced useless free, too
35083         * build-aux/useless-if-before-free: still only in a comment, though.
35084
35085 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
35086
35087         maint.mk: import changes to syntax-check macros from coreutils
35088         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
35089         Use them in the relevant macros.
35090
35091 2009-04-06  Bruno Haible  <bruno@clisp.org>
35092
35093         Fix unportable use of bit-fields.
35094         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
35095         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
35096         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
35097
35098 2009-04-06  Bruno Haible  <bruno@clisp.org>
35099
35100         Avoid test failures on AIX and OSF/1.
35101         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
35102         that malloc(0) = NULL.
35103         * tests/unicase/test-u8-tolower.c (check): Likewise.
35104         * tests/unicase/test-u8-totitle.c (check): Likewise.
35105         * tests/unicase/test-u8-toupper.c (check): Likewise.
35106         * tests/unicase/test-u16-casefold.c (check): Likewise.
35107         * tests/unicase/test-u16-tolower.c (check): Likewise.
35108         * tests/unicase/test-u16-totitle.c (check): Likewise.
35109         * tests/unicase/test-u16-toupper.c (check): Likewise.
35110         * tests/unicase/test-u32-casefold.c (check): Likewise.
35111         * tests/unicase/test-u32-tolower.c (check): Likewise.
35112         * tests/unicase/test-u32-totitle.c (check): Likewise.
35113         * tests/unicase/test-u32-toupper.c (check): Likewise.
35114         * tests/uninorm/test-u8-nfc.c (check): Likewise.
35115         * tests/uninorm/test-u8-nfd.c (check): Likewise.
35116         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
35117         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
35118         * tests/uninorm/test-u16-nfc.c (check): Likewise.
35119         * tests/uninorm/test-u16-nfd.c (check): Likewise.
35120         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
35121         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
35122         * tests/uninorm/test-u32-nfc.c (check): Likewise.
35123         * tests/uninorm/test-u32-nfd.c (check): Likewise.
35124         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
35125         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
35126
35127 2009-04-05  Bruno Haible  <bruno@clisp.org>
35128
35129         Work around an autoconf limitation.
35130         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
35131         comment line if it would be longer than 3 KB.
35132
35133 2009-04-05  Bruno Haible  <bruno@clisp.org>
35134
35135         Avoid test failure with libiconv-1.13.
35136         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
35137         of the expected test results.
35138
35139 2009-04-05  Bruno Haible  <bruno@clisp.org>
35140
35141         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
35142         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
35143         that it should be installed.
35144
35145 2009-04-05  Bruno Haible  <bruno@clisp.org>
35146
35147         * gnulib-tool: New option --copy-file.
35148         (func_usage): Document it.
35149         (func_dest_tmpfilename): Moved out of func_import.
35150         (func_add_file, func_update_file): New functions, extracted from
35151         func_import.
35152         (func_import): Update.
35153
35154 2009-04-05  Karl Berry  <karl@gnu.org>
35155
35156         * README: prominently mention gnulib-tool.
35157         Rearrange sections so getting the code is near the top.
35158
35159 2009-04-05  Bruno Haible  <bruno@clisp.org>
35160
35161         * lib/unicase.h: Mention u*_cmp2.
35162         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
35163         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
35164         * lib/unicase/ulc-casecmp.c: Likewise.
35165         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
35166         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
35167         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
35168         unistr/u8-cmp.
35169         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
35170         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
35171         unistr/u16-cmp.
35172         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
35173         unistr/u32-cmp.
35174
35175         * lib/uninorm.h: Mention u*_cmp2.
35176         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
35177         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
35178         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
35179         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
35180         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
35181         unistr/u8-cmp.
35182         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
35183         unistr/u16-cmp.
35184         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
35185         unistr/u32-cmp.
35186
35187         New module 'unistr/u32-cmp2'.
35188         * lib/unistr/u32-cmp2.c: New file.
35189         * modules/unistr/u32-cmp2: New file.
35190
35191         New module 'unistr/u16-cmp2'.
35192         * lib/unistr/u16-cmp2.c: New file.
35193         * modules/unistr/u16-cmp2: New file.
35194
35195         New module 'unistr/u8-cmp2'.
35196         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
35197         * lib/unistr/u8-cmp2.c: New file.
35198         * lib/unistr/u-cmp2.h: New file.
35199         * modules/unistr/u8-cmp2: New file.
35200
35201 2009-04-05  Bruno Haible  <bruno@clisp.org>
35202
35203         * lib/unictype.h (uc_property_is_valid): New macro.
35204         * tests/unictype/test-pr_byname.c (main): Use it.
35205
35206         * lib/unistr.h: Doc fixes.
35207         * lib/uniconv.h: Doc fixes.
35208         * lib/unictype.h: Doc fixes.
35209
35210 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
35211
35212         Port coreutils 7.2 to Solaris 8.
35213
35214         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
35215         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
35216         for Solaris 8.  This is a bit of a hack, as it means it's the
35217         caller's responsibility to add -lnsl if needed, but most likely it
35218         won't be needed since only getaddrinfo uses this and getaddrinfo
35219         isn't needed on Solaris 8.
35220
35221         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
35222         problem to Solaris 8 encountered with coreutils 7.2, which
35223         resulted in a message "fnmatch.c:292: warning: passing argument 4
35224         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
35225         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
35226
35227 2009-04-03  Simon Josefsson  <simon@josefsson.org>
35228
35229         * m4/ld-version-script.m4: Add FIXME comment.
35230
35231 2009-04-02  Simon Josefsson  <simon@josefsson.org>
35232
35233         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
35234         SOVERSION variable.
35235
35236 2009-04-02  Bruno Haible  <bruno@clisp.org>
35237
35238         * Makefile (info, html, dvi, pdf): Combine the rules.
35239         Suggested by Jim Meyering.
35240
35241 2009-04-01  Bruno Haible  <bruno@clisp.org>
35242
35243         * Makefile (info, html, dvi, pdf): New targets.
35244         Reported by Reuben Thomas <rrt@sc3d.org>.
35245
35246 2009-04-01  Bruno Haible  <bruno@clisp.org>
35247
35248         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
35249         can be put into PATH.
35250         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
35251
35252 2009-04-01  Bruno Haible  <bruno@clisp.org>
35253
35254         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
35255
35256 2009-04-01  Bruno Haible  <bruno@clisp.org>
35257
35258         Rename module 'visibility'.
35259         * modules/lib-symbol-visibility: Renamed from modules/visibility.
35260         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
35261         * doc/gnulib.texi: Update.
35262         * MODULES.html.sh (Misc): Update.
35263         * NEWS: Mention the change.
35264
35265 2009-04-01  Simon Josefsson  <simon@josefsson.org>
35266
35267         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
35268         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
35269         Eric Blake <ebb9@byu.net> for review.
35270         * MODULES.html.sh: Add lib-msvc-compat.
35271         * doc/gnulib.texi: Link to new section.
35272         * m4/ld-output-def.m4: New file.
35273         * doc/ld-output-def.texi: New file.
35274
35275 2009-04-01  Simon Josefsson  <simon@josefsson.org>
35276
35277         Rename ld-version-script to lib-symbol-versions.  Suggested by
35278         Bruno Haible <bruno@clisp.org>.
35279         * modules/ld-version-script: Renamed to lib-symbol-versions.
35280         * doc/ld-version-script.texi: Fix module name.
35281         * MODULES.html.sh: Add lib-symbol-versions.
35282
35283 2009-03-31  Simon Josefsson  <simon@josefsson.org>
35284
35285         * modules/u64-tests: New file.
35286         * tests/test-u64.c: New file.
35287
35288 2009-03-04  Simon Josefsson  <simon@josefsson.org>
35289
35290         * MODULES.html.sh: Mention u64.
35291         * modules/u64: New module.
35292         * modules/crypto/sha512: Depend on u64 module instead of providing
35293         u64.h.
35294
35295 2009-03-27  Eric Blake  <ebb9@byu.net>
35296
35297         test-strerror: make debugging EAI_SYSTEM easier
35298         * modules/getaddrinfo-tests (Depends-on): Add strerror.
35299         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
35300         failure was EAI_SYSTEM.
35301
35302 2009-03-25  Bruno Haible  <bruno@clisp.org>
35303
35304         Fix a problem with --enable-relocatable on Solaris 7.
35305         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
35306         since 2008-02-24.
35307
35308 2009-03-25  Eric Blake  <ebb9@byu.net>
35309
35310         test-sockets: avoid gcc warning
35311         * tests/test-sockets.c (main): Silence compiler warning.
35312
35313 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
35314
35315         New modules nproc, pthread, contributed by Glen Lenker.
35316
35317         * MODULES.html.sh: Add pthread, nproc.
35318         * lib/nproc.c: New file.
35319         * lib/nproc.h: New file.
35320         * lib/pthread.in.h: New file.
35321         * m4/pthread.m4: New file.
35322         * modules/nproc: New file.
35323         * modules/pthread: New file.
35324
35325 2009-03-24  Simon Josefsson  <simon@josefsson.org>
35326
35327         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
35328         New variable.
35329
35330 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
35331
35332         filevercmp: handle simple~ and numbered.~3~ backup suffixes
35333         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
35334         * tests/test-filevercmp.c: Add tests for backup suffixes.
35335
35336 2009-03-24  Simon Josefsson  <simon@josefsson.org>
35337
35338         * modules/stdlib (Depends-on): Add stdint, needed when defining
35339         struct random_data on, for example, HP-UX 10.20.  Reported by
35340         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
35341
35342 2009-03-24  Simon Josefsson  <simon@josefsson.org>
35343
35344         * lib/readline.c (readline): Call fflush on stdout after printing
35345         prompt.
35346
35347 2009-03-20  Bruno Haible  <bruno@clisp.org>
35348
35349         Remove dependency from 'close' module to -lws2_32 on native Windows.
35350         * lib/close-hook.h: New file.
35351         * lib/close-hook.c: New file.
35352         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
35353         w32sock.h.
35354         (_gl_close_fd_maybe_socket): Remove function.
35355         (rpl_close): Invoke execute_all_close_hooks instead of
35356         _gl_close_fd_maybe_socket.
35357         * lib/sockets.c: Include close-hook.h, w32sock.h.
35358         (close_fd_maybe_socket): New function, essentially from lib/close.c.
35359         (close_sockets_hook): New variable.
35360         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
35361         (gl_sockets_cleanup): Unregister it.
35362         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
35363         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
35364         * modules/close-hook: New file.
35365         * modules/close (Files): Remove lib/w32sock.h.
35366         (Depends-on): Add close-hook.
35367         (Link): Remove section.
35368         * modules/sockets (Files): Add lib/w32sock.h.
35369         (Depends-on): Add close-hook.
35370         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
35371         invocation.
35372         * NEWS: Mention that LIB_CLOSE is gone.
35373
35374 2009-03-23  Eric Blake  <ebb9@byu.net>
35375
35376         signal-tests: test previous patch
35377         * tests/test-signal.c: New file.
35378         * modules/signal-tests: Likewise.
35379
35380         signal.h: always support 'volatile sig_atomic_t'
35381         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
35382         (gl_SIGNAL_H_DEFAULTS): Add a default.
35383         * modules/signal (Makefile.am): Substitute if needed.
35384         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
35385         users can blindly add volatile.
35386         * doc/posix-headers/signal.texi (signal.h): Document it.
35387         Reported by Matthew Woehlke.
35388
35389 2009-03-23  Jim Meyering  <meyering@redhat.com>
35390
35391         pathmax: PATH_MAX: use pathconf only when available
35392         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
35393         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
35394         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
35395         This avoids a link failure in a PSP cross-compilation environment
35396         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
35397
35398         * lib/vasnprintf.c (divide): Fix typo in comment.
35399
35400 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35401
35402         * gnulib-tool (func_filter_filelist): Fix comment.
35403
35404 2009-03-20  Bruno Haible  <bruno@clisp.org>
35405
35406         Make sockets.h self-contained.
35407         * lib/sockets.c: Include sockets.h first.
35408         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
35409
35410 2009-03-19  Eric Blake  <ebb9@byu.net>
35411
35412         doc: mention more functions added in cygwin 1.7.0
35413         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
35414         addition.
35415         * doc/posix-functions/log2f.texi: Likewise.
35416
35417 2009-03-19  Jim Meyering  <meyering@redhat.com>
35418
35419         fsusage: avoid syntax error due to statement-before-declaration
35420         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
35421         after all declarations.  Reported by Matthew Woehlke in
35422         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
35423
35424 2009-03-18  Eric Blake  <ebb9@byu.net>
35425
35426         build-aux/compile: sync from automake
35427         * build-aux/compile: New file, from automake.
35428         * config/srclist.txt: Mention build-aux/compile.
35429
35430 2009-03-17  Bruno Haible  <bruno@clisp.org>
35431
35432         * lib/git-merge-changelog.c: Fix typo in comment.
35433         Reported by Reuben Thomas <rrt@sc3d.org>.
35434
35435 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
35436
35437         * m4/regex.m4: update and improve help for
35438         --without-included-regex.
35439
35440 2009-03-17  Simon Josefsson  <simon@josefsson.org>
35441
35442         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
35443         failure on missing include files.
35444
35445 2009-03-17  Eric Blake  <ebb9@byu.net>
35446
35447         doc: mention more functions added in cygwin 1.7.0
35448         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
35449         addition.
35450         * doc/posix-functions/fwscanf.texi: Likewise.
35451         * doc/posix-functions/swprintf.texi: Likewise.
35452         * doc/posix-functions/swscanf.texi: Likewise.
35453         * doc/posix-functions/vfwprintf.texi: Likewise.
35454         * doc/posix-functions/vfwscanf.texi: Likewise.
35455         * doc/posix-functions/vswprintf.texi: Likewise.
35456         * doc/posix-functions/vswscanf.texi: Likewise.
35457         * doc/posix-functions/vwprintf.texi: Likewise.
35458         * doc/posix-functions/vwscanf.texi: Likewise.
35459         * doc/posix-functions/wcscasecmp.texi: Likewise.
35460         * doc/posix-functions/wcsdup.texi: Likewise.
35461         * doc/posix-functions/wcsftime.texi: Likewise.
35462         * doc/posix-functions/wcsncasecmp.texi: Likewise.
35463         * doc/posix-functions/wprintf.texi: Likewise.
35464         * doc/posix-functions/wscanf.texi: Likewise.
35465         * doc/glibc-functions/gethostbyname2.texi: Likewise.
35466
35467 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35468
35469         maint.mk: really add $(AM_MAKEFLAGS)
35470         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
35471         was inadvertently omitted in the last commit.
35472         Spotted by Bruno Haible.
35473
35474         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
35475         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
35476         $(AM_MAKEFLAGS)' rather than plain `make'.
35477
35478         gnulib-tool: execute $MAKE not make
35479         * gnulib-tool: Default $MAKE to 'make'.
35480         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
35481         than make.  Initialize $MAKE in the do-autobuild script.
35482
35483         gnulib-tool: use $MAKE not make in generated files
35484         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
35485         make, in generated files.  Initialize $MAKE in the do-autobuild
35486         script.
35487
35488         * top/GNUmakefile (_have-git-version-gen): Fix typo.
35489
35490         GNUmakefile: disable parallelism only for multiple, recursive targets
35491         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
35492         additions in the Makefile.
35493         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
35494         by Automake.
35495         (.NOTPARALLEL): Only disable parallel builds if multiple targets
35496         are listed on the command line and at least one of them is
35497         listed in $(ALL_RECURSIVE_TARGETS).
35498
35499 2009-03-14  Bruno Haible  <bruno@clisp.org>
35500
35501         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
35502         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
35503         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
35504         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
35505         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
35506         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
35507         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
35508         unistr/u8-uctomb.
35509         * modules/unistr/u8-strchr (Depends-on): Likewise.
35510         * modules/unistr/u8-strrchr (Depends-on): Likewise.
35511         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
35512         unistr/u16-uctomb.
35513         * modules/unistr/u16-strchr (Depends-on): Likewise.
35514         * modules/unistr/u16-strrchr (Depends-on): Likewise.
35515
35516 2009-03-12  Bruno Haible  <bruno@clisp.org>
35517
35518         Work around select() bug on Interix 3.5.
35519         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
35520         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
35521         * m4/select.m4: New file.
35522         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
35523         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
35524         * modules/select (Files): Add m4/select.m4.
35525         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
35526         * modules/nanosleep (Depends-on): Add select.
35527         * modules/poll (Depends-on): Likewise.
35528         * doc/posix-functions/select.texi: Mention the Interix bug.
35529         Reported by Markus Duft <mduft@gentoo.org>.
35530
35531         * lib/select.c: Renamed from lib/winsock-select.c.
35532         * modules/select (Files): Add lib/select.c, remove
35533         lib/winsock-select.c.
35534         (configure.ac): Update.
35535
35536 2009-03-12  Jim Meyering  <meyering@redhat.com>
35537
35538         avoid gcc warnings about unused macro definitions
35539         * lib/readtokens.c (STREQ): Remove unused definition.
35540         * lib/xmalloc.c (SIZE_MAX): Likewise.
35541         * lib/openat-die.c (N_): Likewise.
35542         * lib/mountlist.c (SIZE_MAX): Remove definition.
35543         Instead, include <stdint.h>.
35544         * lib/readutmp.c: Likewise.
35545         * modules/readutmp (Depends-on): Add stdint.
35546         * modules/mountlist (Depends-on): Add stdint.
35547         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
35548
35549 2009-03-10  Bruno Haible  <bruno@clisp.org>
35550
35551         Tests for module 'mbmemcasecoll'.
35552         * modules/mbmemcasecoll-tests: New file.
35553         * tests/test-mbmemcasecoll1.sh: New file.
35554         * tests/test-mbmemcasecoll2.sh: New file.
35555         * tests/test-mbmemcasecoll3.sh: New file.
35556         * tests/test-mbmemcasecoll.c: New file.
35557
35558         New module 'mbmemcasecoll'.
35559         * lib/mbmemcasecoll.h: New file.
35560         * lib/mbmemcasecoll.c: New file.
35561         * modules/mbmemcasecoll: New file.
35562
35563         * tests/test-mbmemcasecmp.h: New file, extracted from
35564         tests/test-mbmemcasecmp.c.
35565         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
35566         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
35567         (main): Update.
35568         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
35569
35570 2009-03-09  Bruno Haible  <bruno@clisp.org>
35571
35572         Tests for module 'mbmemcasecmp'.
35573         * modules/mbmemcasecmp-tests: New file.
35574         * tests/test-mbmemcasecmp1.sh: New file.
35575         * tests/test-mbmemcasecmp2.sh: New file.
35576         * tests/test-mbmemcasecmp3.sh: New file.
35577         * tests/test-mbmemcasecmp.c: New file.
35578
35579         New module 'mbmemcasecmp'.
35580         * lib/mbmemcasecmp.h: New file.
35581         * lib/mbmemcasecmp.c: New file.
35582         * modules/mbmemcasecmp: New file.
35583
35584 2009-03-09  Bruno Haible  <bruno@clisp.org>
35585
35586         Tests for module 'unicase/ulc-casecoll'.
35587         * modules/unicase/ulc-casecoll-tests: New file.
35588         * tests/unicase/test-ulc-casecoll1.sh: New file.
35589         * tests/unicase/test-ulc-casecoll2.sh: New file.
35590         * tests/unicase/test-ulc-casecoll.c: New file.
35591
35592         New module 'unicase/ulc-casecoll'.
35593         * lib/unicase.h (ulc_casecoll): New declaration.
35594         * lib/unicase/ulc-casecoll.c: New file.
35595         * modules/unicase/ulc-casecoll: New file.
35596
35597         New module 'unicase/ulc-casexfrm'.
35598         * lib/unicase.h (ulc_casexfrm): New declaration.
35599         * lib/unicase/ulc-casexfrm.c: New file.
35600         * modules/unicase/ulc-casexfrm: New file.
35601
35602 2009-03-09  Bruno Haible  <bruno@clisp.org>
35603
35604         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
35605         invocations.
35606
35607         * m4/mbscasecmp.m4: Remove file.
35608         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
35609         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
35610
35611         * m4/mbscasestr.m4: Remove file.
35612         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
35613         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
35614
35615         * m4/mbschr.m4: Remove file.
35616         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
35617         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
35618
35619         * m4/mbscspn.m4: Remove file.
35620         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
35621         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
35622
35623         * m4/mbslen.m4: Remove file.
35624         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
35625         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
35626
35627         * m4/mbsncasecmp.m4: Remove file.
35628         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
35629         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
35630
35631         * m4/mbsnlen.m4: Remove file.
35632         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
35633         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
35634
35635         * m4/mbspbrk.m4: Remove file.
35636         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
35637         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
35638
35639         * m4/mbspcasecmp.m4: Remove file.
35640         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
35641         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
35642
35643         * m4/mbsrchr.m4: Remove file.
35644         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
35645         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
35646
35647         * m4/mbssep.m4: Remove file.
35648         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
35649         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
35650
35651         * m4/mbsspn.m4: Remove file.
35652         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
35653         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
35654
35655         * m4/mbsstr.m4: Remove file.
35656         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
35657         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
35658
35659         * m4/mbstok_r.m4: Remove file.
35660         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
35661         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
35662
35663         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
35664
35665         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
35666         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
35667
35668         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
35669
35670 2009-03-08  Bruno Haible  <bruno@clisp.org>
35671
35672         Tests for module 'unicase/ulc-casecmp'.
35673         * modules/unicase/ulc-casecmp-tests: New file.
35674         * tests/unicase/test-ulc-casecmp1.sh: New file.
35675         * tests/unicase/test-ulc-casecmp2.sh: New file.
35676         * tests/unicase/test-ulc-casecmp.c: New file.
35677
35678         New module 'unicase/ulc-casecmp'.
35679         * lib/unicase.h (ulc_casecmp): New declaration.
35680         * lib/unicase/ulc-casecmp.c: New file.
35681         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
35682         'const SRC_UNIT *'.
35683         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
35684         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
35685         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
35686         * modules/unicase/ulc-casecmp: New file.
35687
35688         Tests for module 'unicase/u32-is-cased'.
35689         * modules/unicase/u32-is-cased-tests: New file.
35690         * tests/unicase/test-u32-is-cased.c: New file.
35691
35692         Tests for module 'unicase/u16-is-cased'.
35693         * modules/unicase/u16-is-cased-tests: New file.
35694         * tests/unicase/test-u16-is-cased.c: New file.
35695
35696         Tests for module 'unicase/u8-is-cased'.
35697         * modules/unicase/u8-is-cased-tests: New file.
35698         * tests/unicase/test-u8-is-cased.c: New file.
35699         * tests/unicase/test-is-cased.h: New file.
35700
35701         New module 'unicase/u32-is-cased'.
35702         * lib/unicase/u32-is-cased.c: New file.
35703         * modules/unicase/u32-is-cased: New file.
35704
35705         New module 'unicase/u16-is-cased'.
35706         * lib/unicase/u16-is-cased.c: New file.
35707         * modules/unicase/u16-is-cased: New file.
35708
35709         New module 'unicase/u8-is-cased'.
35710         * lib/unicase/u8-is-cased.c: New file.
35711         * lib/unicase/u-is-cased.h: New file.
35712         * modules/unicase/u8-is-cased: New file.
35713
35714         Tests for module 'unicase/u32-is-casefolded'.
35715         * modules/unicase/u32-is-casefolded-tests: New file.
35716         * tests/unicase/test-u32-is-casefolded.c: New file.
35717
35718         Tests for module 'unicase/u16-is-casefolded'.
35719         * modules/unicase/u16-is-casefolded-tests: New file.
35720         * tests/unicase/test-u16-is-casefolded.c: New file.
35721
35722         Tests for module 'unicase/u8-is-casefolded'.
35723         * modules/unicase/u8-is-casefolded-tests: New file.
35724         * tests/unicase/test-u8-is-casefolded.c: New file.
35725         * tests/unicase/test-is-casefolded.h: New file.
35726
35727         New module 'unicase/u32-is-casefolded'.
35728         * lib/unicase/u32-is-casefolded.c: New file.
35729         * modules/unicase/u32-is-casefolded: New file.
35730
35731         New module 'unicase/u16-is-casefolded'.
35732         * lib/unicase/u16-is-casefolded.c: New file.
35733         * modules/unicase/u16-is-casefolded: New file.
35734
35735         New module 'unicase/u8-is-casefolded'.
35736         * lib/unicase/u8-is-casefolded.c: New file.
35737         * modules/unicase/u8-is-casefolded: New file.
35738
35739         Tests for module 'unicase/u32-is-titlecase'.
35740         * modules/unicase/u32-is-titlecase-tests: New file.
35741         * tests/unicase/test-u32-is-titlecase.c: New file.
35742
35743         Tests for module 'unicase/u16-is-titlecase'.
35744         * modules/unicase/u16-is-titlecase-tests: New file.
35745         * tests/unicase/test-u16-is-titlecase.c: New file.
35746
35747         Tests for module 'unicase/u8-is-titlecase'.
35748         * modules/unicase/u8-is-titlecase-tests: New file.
35749         * tests/unicase/test-u8-is-titlecase.c: New file.
35750         * tests/unicase/test-is-titlecase.h: New file.
35751
35752         New module 'unicase/u32-is-titlecase'.
35753         * lib/unicase/u32-is-titlecase.c: New file.
35754         * modules/unicase/u32-is-titlecase: New file.
35755
35756         New module 'unicase/u16-is-titlecase'.
35757         * lib/unicase/u16-is-titlecase.c: New file.
35758         * modules/unicase/u16-is-titlecase: New file.
35759
35760         New module 'unicase/u8-is-titlecase'.
35761         * lib/unicase/u8-is-titlecase.c: New file.
35762         * modules/unicase/u8-is-titlecase: New file.
35763
35764         Tests for module 'unicase/u32-is-lowercase'.
35765         * modules/unicase/u32-is-lowercase-tests: New file.
35766         * tests/unicase/test-u32-is-lowercase.c: New file.
35767
35768         Tests for module 'unicase/u16-is-lowercase'.
35769         * modules/unicase/u16-is-lowercase-tests: New file.
35770         * tests/unicase/test-u16-is-lowercase.c: New file.
35771
35772         Tests for module 'unicase/u8-is-lowercase'.
35773         * modules/unicase/u8-is-lowercase-tests: New file.
35774         * tests/unicase/test-u8-is-lowercase.c: New file.
35775         * tests/unicase/test-is-lowercase.h: New file.
35776
35777         New module 'unicase/u32-is-lowercase'.
35778         * lib/unicase/u32-is-lowercase.c: New file.
35779         * modules/unicase/u32-is-lowercase: New file.
35780
35781         New module 'unicase/u16-is-lowercase'.
35782         * lib/unicase/u16-is-lowercase.c: New file.
35783         * modules/unicase/u16-is-lowercase: New file.
35784
35785         New module 'unicase/u8-is-lowercase'.
35786         * lib/unicase/u8-is-lowercase.c: New file.
35787         * modules/unicase/u8-is-lowercase: New file.
35788
35789         Tests for module 'unicase/u32-is-uppercase'.
35790         * modules/unicase/u32-is-uppercase-tests: New file.
35791         * tests/unicase/test-u32-is-uppercase.c: New file.
35792
35793         Tests for module 'unicase/u16-is-uppercase'.
35794         * modules/unicase/u16-is-uppercase-tests: New file.
35795         * tests/unicase/test-u16-is-uppercase.c: New file.
35796
35797         Tests for module 'unicase/u8-is-uppercase'.
35798         * modules/unicase/u8-is-uppercase-tests: New file.
35799         * tests/unicase/test-u8-is-uppercase.c: New file.
35800         * tests/unicase/test-is-uppercase.h: New file.
35801
35802         New module 'unicase/u32-is-uppercase'.
35803         * lib/unicase/u32-is-uppercase.c: New file.
35804         * modules/unicase/u32-is-uppercase: New file.
35805
35806         New module 'unicase/u16-is-uppercase'.
35807         * lib/unicase/u16-is-uppercase.c: New file.
35808         * modules/unicase/u16-is-uppercase: New file.
35809
35810         New module 'unicase/u8-is-uppercase'.
35811         * lib/unicase/u8-is-uppercase.c: New file.
35812         * modules/unicase/u8-is-uppercase: New file.
35813
35814         New module 'unicase/u32-is-invariant'.
35815         * lib/unicase/u32-is-invariant.c: New file.
35816         * modules/unicase/u32-is-invariant: New file.
35817
35818         New module 'unicase/u16-is-invariant'.
35819         * lib/unicase/u16-is-invariant.c: New file.
35820         * modules/unicase/u16-is-invariant: New file.
35821
35822         New module 'unicase/u8-is-invariant'.
35823         * lib/unicase/u8-is-invariant.c: New file.
35824         * lib/unicase/invariant.h: New file.
35825         * lib/unicase/u-is-invariant.h: New file.
35826         * modules/unicase/u8-is-invariant: New file.
35827
35828         Tests for module 'unicase/u32-casecoll'.
35829         * modules/unicase/u32-casecoll-tests: New file.
35830         * tests/unicase/test-u32-casecoll.c: New file.
35831
35832         Tests for module 'unicase/u16-casecoll'.
35833         * modules/unicase/u16-casecoll-tests: New file.
35834         * tests/unicase/test-u16-casecoll.c: New file.
35835
35836         Tests for module 'unicase/u8-casecoll'.
35837         * modules/unicase/u8-casecoll-tests: New file.
35838         * tests/unicase/test-u8-casecoll.c: New file.
35839
35840         New module 'unicase/u32-casecoll'.
35841         * lib/unicase/u32-casecoll.c: New file.
35842         * modules/unicase/u32-casecoll: New file.
35843
35844         New module 'unicase/u16-casecoll'.
35845         * lib/unicase/u16-casecoll.c: New file.
35846         * modules/unicase/u16-casecoll: New file.
35847
35848         New module 'unicase/u8-casecoll'.
35849         * lib/unicase/u8-casecoll.c: New file.
35850         * lib/unicase/u-casecoll.h: New file.
35851         * modules/unicase/u8-casecoll: New file.
35852
35853         New module 'unicase/u32-casexfrm'.
35854         * lib/unicase/u32-casexfrm.c: New file.
35855         * modules/unicase/u32-casexfrm: New file.
35856
35857         New module 'unicase/u16-casexfrm'.
35858         * lib/unicase/u16-casexfrm.c: New file.
35859         * modules/unicase/u16-casexfrm: New file.
35860
35861         New module 'unicase/u8-casexfrm'.
35862         * lib/unicase/u8-casexfrm.c: New file.
35863         * lib/unicase/u-casexfrm.h: New file.
35864         * modules/unicase/u8-casexfrm: New file.
35865
35866         Tests for module 'unicase/u32-casecmp'.
35867         * modules/unicase/u32-casecmp-tests: New file.
35868         * tests/unicase/test-u32-casecmp.c: New file.
35869
35870         Tests for module 'unicase/u16-casecmp'.
35871         * modules/unicase/u16-casecmp-tests: New file.
35872         * tests/unicase/test-u16-casecmp.c: New file.
35873
35874         Tests for module 'unicase/u8-casecmp'.
35875         * modules/unicase/u8-casecmp-tests: New file.
35876         * tests/unicase/test-u8-casecmp.c: New file.
35877         * tests/unicase/test-casecmp.h: New file.
35878
35879         New module 'unicase/u32-casecmp'.
35880         * lib/unicase/u32-casecmp.c: New file.
35881         * modules/unicase/u32-casecmp: New file.
35882
35883         New module 'unicase/u16-casecmp'.
35884         * lib/unicase/u16-casecmp.c: New file.
35885         * modules/unicase/u16-casecmp: New file.
35886
35887         New module 'unicase/u8-casecmp'.
35888         * lib/unicase/u8-casecmp.c: New file.
35889         * lib/unicase/u-casecmp.h: New file.
35890         * modules/unicase/u8-casecmp: New file.
35891
35892         Tests for module 'unicase/u32-casefold'.
35893         * modules/unicase/u32-casefold-tests: New file.
35894         * tests/unicase/test-u32-casefold.c: New file.
35895
35896         Tests for module 'unicase/u16-casefold'.
35897         * modules/unicase/u16-casefold-tests: New file.
35898         * tests/unicase/test-u16-casefold.c: New file.
35899
35900         Tests for module 'unicase/u8-casefold'.
35901         * modules/unicase/u8-casefold-tests: New file.
35902         * tests/unicase/test-u8-casefold.c: New file.
35903
35904         New module 'unicase/u32-casefold'.
35905         * lib/unicase/u32-casefold.c: New file.
35906         * modules/unicase/u32-casefold: New file.
35907
35908         New module 'unicase/u16-casefold'.
35909         * lib/unicase/u16-casefold.c: New file.
35910         * modules/unicase/u16-casefold: New file.
35911
35912         New module 'unicase/u8-casefold'.
35913         * lib/unicase/u8-casefold.c: New file.
35914         * lib/unicase/u-casefold.h: New file.
35915         * modules/unicase/u8-casefold: New file.
35916
35917         New module 'unicase/tocasefold'.
35918         * lib/unicase/casefold.h: New file.
35919         * lib/unicase/tocasefold.c: New file.
35920         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
35921         * modules/unicase/tocasefold: New file.
35922
35923         Tests for module 'unicase/u32-totitle'.
35924         * modules/unicase/u32-totitle-tests: New file.
35925         * tests/unicase/test-u32-totitle.c: New file.
35926
35927         Tests for module 'unicase/u16-totitle'.
35928         * modules/unicase/u16-totitle-tests: New file.
35929         * tests/unicase/test-u16-totitle.c: New file.
35930
35931         Tests for module 'unicase/u8-totitle'.
35932         * modules/unicase/u8-totitle-tests: New file.
35933         * tests/unicase/test-u8-totitle.c: New file.
35934
35935         New module 'unicase/u32-totitle'.
35936         * lib/unicase/u32-totitle.c: New file.
35937         * modules/unicase/u32-totitle: New file.
35938
35939         New module 'unicase/u16-totitle'.
35940         * lib/unicase/u16-totitle.c: New file.
35941         * modules/unicase/u16-totitle: New file.
35942
35943         New module 'unicase/u8-totitle'.
35944         * lib/unicase/u8-totitle.c: New file.
35945         * lib/unicase/u-totitle.h: New file.
35946         * modules/unicase/u8-totitle: New file.
35947
35948         Tests for module 'unicase/u32-tolower'.
35949         * modules/unicase/u32-tolower-tests: New file.
35950         * tests/unicase/test-u32-tolower.c: New file.
35951
35952         Tests for module 'unicase/u16-tolower'.
35953         * modules/unicase/u16-tolower-tests: New file.
35954         * tests/unicase/test-u16-tolower.c: New file.
35955
35956         Tests for module 'unicase/u8-tolower'.
35957         * modules/unicase/u8-tolower-tests: New file.
35958         * tests/unicase/test-u8-tolower.c: New file.
35959
35960         New module 'unicase/u32-tolower'.
35961         * lib/unicase/u32-tolower.c: New file.
35962         * modules/unicase/u32-tolower: New file.
35963
35964         New module 'unicase/u16-tolower'.
35965         * lib/unicase/u16-tolower.c: New file.
35966         * modules/unicase/u16-tolower: New file.
35967
35968         New module 'unicase/u8-tolower'.
35969         * lib/unicase/u8-tolower.c: New file.
35970         * modules/unicase/u8-tolower: New file.
35971
35972         Tests for module 'unicase/u32-toupper'.
35973         * modules/unicase/u32-toupper-tests: New file.
35974         * tests/unicase/test-u32-toupper.c: New file.
35975
35976         Tests for module 'unicase/u16-toupper'.
35977         * modules/unicase/u16-toupper-tests: New file.
35978         * tests/unicase/test-u16-toupper.c: New file.
35979
35980         Tests for module 'unicase/u8-toupper'.
35981         * modules/unicase/u8-toupper-tests: New file.
35982         * tests/unicase/test-u8-toupper.c: New file.
35983
35984         New module 'unicase/u32-toupper'.
35985         * lib/unicase/u32-toupper.c: New file.
35986         * modules/unicase/u32-toupper: New file.
35987
35988         New module 'unicase/u16-toupper'.
35989         * lib/unicase/u16-toupper.c: New file.
35990         * modules/unicase/u16-toupper: New file.
35991
35992         New module 'unicase/u8-toupper'.
35993         * lib/unicase/u8-toupper.c: New file.
35994         * modules/unicase/u8-toupper: New file.
35995
35996         New module 'unicase/u32-casemap'.
35997         * lib/unicase/u32-casemap.c: New file.
35998         * modules/unicase/u32-casemap: New file.
35999
36000         New module 'unicase/u16-casemap'.
36001         * lib/unicase/u16-casemap.c: New file.
36002         * modules/unicase/u16-casemap: New file.
36003
36004         New module 'unicase/u8-casemap'.
36005         * lib/unicase/unicasemap.h: New file.
36006         * lib/unicase/u8-casemap.c: New file.
36007         * lib/unicase/u-casemap.h: New file.
36008         * modules/unicase/u8-casemap: New file.
36009
36010         New module 'unicase/special-casing'.
36011         * lib/unicase/special-casing.h: New file.
36012         * lib/unicase/special-casing.c: New file.
36013         * lib/unicase/special-casing-table.gperf: New file, generated by
36014         gen-uni-tables.c.
36015         * modules/unicase/special-casing: New file.
36016
36017         Tests for module 'unicase/locale-language'.
36018         * modules/unicase/locale-language-tests: New file.
36019         * tests/unicase/test-locale-language.sh: New file.
36020         * tests/unicase/test-locale-language.c: New file.
36021
36022         New module 'unicase/locale-language'.
36023         * lib/unicase/locale-language.c: New file.
36024         * lib/unicase/locale-languages.gperf: New file.
36025         * modules/unicase/locale-language: New file.
36026
36027         Generate more tables for case conversion and case folding.
36028         * lib/gen-uni-tables.c (SCC_*): New enum items.
36029         (struct special_casing_rule): New type.
36030         (casing_rules, num_casing_rules, allocated_casing_rules): New
36031         variables.
36032         (add_casing_rule, fill_casing_rules): New functions.
36033         (struct casefold_rule): New type.
36034         (casefolding_rules, num_casefolding_rules,
36035         allocated_casefolding_rules): New variables.
36036         (fill_casefolding_rules): New function.
36037         (unicode_casefold): New variable.
36038         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
36039         sort_casing_rules, output_casing_rules): New functions.
36040         (main): Accept to more arguments: SpecialCasing.txt and
36041         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
36042         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
36043         Output mapping for casefolding.
36044
36045         * lib/unicase.h: Include stdbool.h, uninorm.h.
36046         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
36047         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
36048         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
36049         arguments.
36050         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
36051         resultp arguments.
36052         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
36053         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
36054         resultp arguments.
36055         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
36056         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
36057         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
36058         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
36059         declarations.
36060         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
36061
36062 2009-03-08  Bruno Haible  <bruno@clisp.org>
36063
36064         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
36065         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
36066         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
36067         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
36068
36069 2009-03-07  Bruno Haible  <bruno@clisp.org>
36070
36071         Adjust u*_normcmp, u*_normcoll API.
36072         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
36073         u16_normcoll, u32_normcoll): Change failure conventions.
36074         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
36075         errno and return -1.
36076         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
36077
36078 2009-03-07  Bruno Haible  <bruno@clisp.org>
36079
36080         Tests for module 'uninorm/u32-normcoll'.
36081         * modules/uninorm/u32-normcoll-tests: New file.
36082         * tests/uninorm/test-u32-normcoll.c: New file.
36083
36084         Tests for module 'uninorm/u16-normcoll'.
36085         * modules/uninorm/u16-normcoll-tests: New file.
36086         * tests/uninorm/test-u16-normcoll.c: New file.
36087
36088         Tests for module 'uninorm/u8-normcoll'.
36089         * modules/uninorm/u8-normcoll-tests: New file.
36090         * tests/uninorm/test-u8-normcoll.c: New file.
36091
36092 2009-03-07  Bruno Haible  <bruno@clisp.org>
36093
36094         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
36095         tests/uninorm/test-u32-normcmp.c.
36096         * tests/uninorm/test-u32-normcmp.c: Include it.
36097         (test_nonascii): New function, extracted from main. Add some more
36098         tests.
36099         (main): Invoke test_ascii and test_nonascii.
36100         * modules/uninorm/u32-normcmp-tests (Files): Add
36101         tests/uninorm/test-u32-normcmp.h.
36102         (Depends-on): Remove uninorm/u32-normcmp.
36103
36104         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
36105         tests/uninorm/test-u16-normcmp.c.
36106         * tests/uninorm/test-u16-normcmp.c: Include it.
36107         (test_nonascii): New function, extracted from main. Add some more
36108         tests.
36109         (main): Invoke test_ascii and test_nonascii.
36110         * modules/uninorm/u16-normcmp-tests (Files): Add
36111         tests/uninorm/test-u16-normcmp.h.
36112         (Depends-on): Remove uninorm/u16-normcmp.
36113
36114         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
36115         tests/uninorm/test-u8-normcmp.c.
36116         * tests/uninorm/test-u8-normcmp.c: Include it.
36117         (test_nonascii): New function, extracted from main. Add some more
36118         tests.
36119         (main): Invoke test_ascii and test_nonascii.
36120         * modules/uninorm/u8-normcmp-tests (Files): Add
36121         tests/uninorm/test-u8-normcmp.h.
36122         (Depends-on): Remove uninorm/u8-normcmp.
36123
36124 2009-03-07  Bruno Haible  <bruno@clisp.org>
36125
36126         New module 'uninorm/u32-normcoll'.
36127         * lib/uninorm/u32-normcoll.c: New file.
36128         * modules/uninorm/u32-normcoll: New file.
36129
36130         New module 'uninorm/u16-normcoll'.
36131         * lib/uninorm/u16-normcoll.c: New file.
36132         * modules/uninorm/u16-normcoll: New file.
36133
36134         New module 'uninorm/u8-normcoll'.
36135         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
36136         declarations.
36137         * lib/uninorm/u8-normcoll.c: New file.
36138         * lib/uninorm/u-normcoll.h: New file.
36139         * modules/uninorm/u8-normcoll: New file.
36140
36141         New module 'uninorm/u32-normxfrm'.
36142         * lib/uninorm/u32-normxfrm.c: New file.
36143         * modules/uninorm/u32-normxfrm: New file.
36144
36145         New module 'uninorm/u16-normxfrm'.
36146         * lib/uninorm/u16-normxfrm.c: New file.
36147         * modules/uninorm/u16-normxfrm: New file.
36148
36149         New module 'uninorm/u8-normxfrm'.
36150         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
36151         declarations.
36152         * lib/uninorm/u8-normxfrm.c: New file.
36153         * lib/uninorm/u-normxfrm.h: New file.
36154         * modules/uninorm/u8-normxfrm: New file.
36155
36156 2009-03-07  Bruno Haible  <bruno@clisp.org>
36157
36158         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
36159         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
36160         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
36161
36162 2009-03-07  Bruno Haible  <bruno@clisp.org>
36163
36164         New module 'memxfrm'.
36165         * lib/memxfrm.h: New file.
36166         * lib/memxfrm.c: New file.
36167         * modules/memxfrm: New file.
36168
36169 2009-03-07  Bruno Haible  <bruno@clisp.org>
36170
36171         New module 'memcmp2'.
36172         * lib/memcmp2.h: New file.
36173         * lib/memcmp2.c: New file.
36174         * modules/memcmp2: New file.
36175
36176 2009-03-07  Bruno Haible  <bruno@clisp.org>
36177
36178         Tests for module 'uninorm/decomposing-form'.
36179         * modules/uninorm/decomposing-form-tests: New file.
36180         * tests/uninorm/test-decomposing-form.c: New file.
36181
36182         New module 'uninorm/decomposing-form'.
36183         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
36184         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
36185         Add 'decomposing_variant' field.
36186         * lib/uninorm/decomposing-form.c: New file.
36187         * lib/uninorm/nfc.c (uninorm_nfc): Update.
36188         * lib/uninorm/nfd.c (uninorm_nfd): Update.
36189         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
36190         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
36191         * modules/uninorm/decomposing-form: New file.
36192         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
36193         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
36194
36195 2009-03-07  Bruno Haible  <bruno@clisp.org>
36196
36197         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
36198         strings.
36199
36200 2009-03-06  Bruno Haible  <bruno@clisp.org>
36201
36202         Tests for module 'uninorm/u32-normcmp'.
36203         * tests/uninorm/test-u32-normcmp.c: New file.
36204         * modules/uninorm/u32-normcmp-tests: New file.
36205
36206         Tests for module 'uninorm/u16-normcmp'.
36207         * tests/uninorm/test-u16-normcmp.c: New file.
36208         * modules/uninorm/u16-normcmp-tests: New file.
36209
36210         Tests for module 'uninorm/u8-normcmp'.
36211         * tests/uninorm/test-u8-normcmp.c: New file.
36212         * modules/uninorm/u8-normcmp-tests: New file.
36213
36214         New module 'uninorm/u32-normcmp'.
36215         * lib/uninorm/u32-normcmp.c: New file.
36216         * modules/uninorm/u32-normcmp: New file.
36217
36218         New module 'uninorm/u16-normcmp'.
36219         * lib/uninorm/u16-normcmp.c: New file.
36220         * modules/uninorm/u16-normcmp: New file.
36221
36222         New module 'uninorm/u8-normcmp'.
36223         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
36224         declarations.
36225         * lib/uninorm/u8-normcmp.c: New file.
36226         * lib/uninorm/u-normcmp.h: New file.
36227         * modules/uninorm/u8-normcmp: New file.
36228
36229 2009-03-06  Bruno Haible  <bruno@clisp.org>
36230
36231         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
36232         Reported by Eric Blake.
36233
36234 2009-03-06  Eric Blake  <ebb9@byu.net>
36235             Bruno Haible  <bruno@clisp.org>
36236
36237         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
36238         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
36239         condition.
36240         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
36241         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
36242         condition.
36243         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
36244
36245 2009-03-06  Eric Blake  <ebb9@byu.net>
36246
36247         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
36248         to avoid compiler warnings.
36249         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
36250
36251 2009-03-05  Bruno Haible  <bruno@clisp.org>
36252
36253         * tests/test-ftell.c (main): Disable test beyond end of file on
36254         FreeMiNT.
36255         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
36256
36257 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
36258
36259         * lib/filevercmp.c: Move hidden files up in ordering.
36260         * tests/test-filevercmp.c: Add tests for hidden files.
36261
36262 2009-03-04  Bruno Haible  <bruno@clisp.org>
36263
36264         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
36265         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
36266         AM_CFLAGS.
36267         Reported by Simon Josefsson.
36268
36269 2009-03-03  Bruno Haible  <bruno@clisp.org>
36270
36271         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
36272         Reported by Simon Josefsson.
36273
36274         * doc/ld-version-script.texi: Update node reference.
36275
36276 2009-03-03  Bruno Haible  <bruno@clisp.org>
36277
36278         * modules/visibility (License): Change to 'unlimited'.
36279         Suggested by Simon Josefsson.
36280
36281 2009-03-03  Jim Meyering  <meyering@redhat.com>
36282
36283         unlinkdir: cannot_unlink_dir may modify process state
36284         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
36285         it's neither thread-safe nor appropriate for use in a library.
36286
36287 2009-03-03  Eric Blake  <ebb9@byu.net>
36288
36289         test-closein: silence test under Darwin
36290         * tests/test-closein.sh: Ignore stderr from cat, since we don't
36291         care if it dies from EPIPE or EBADF.
36292
36293 2009-03-03  Bruno Haible  <bruno@clisp.org>
36294
36295         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
36296         earlier.
36297         * doc/visibility.texi: Fix @node and @section.
36298
36299 2009-03-03  Simon Josefsson  <simon@josefsson.org>
36300
36301         * doc/gnulib.texi: Link to sections for ld version script and
36302         visibility.
36303         * doc/visibility.texi: Add @node and @section.
36304         * modules/ld-version-script: New module.
36305         * m4/ld-version-script.m4: New file.
36306         * doc/ld-version-script.texi: New file.
36307
36308 2009-03-02  David Lutterkort  <lutter@redhat.com>
36309
36310         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
36311         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36312
36313 2009-03-02  Bruno Haible  <bruno@clisp.org>
36314
36315         * doc/visibility.texi: Mention libtool's -export-symbols option.
36316
36317 2009-03-02  Jim Meyering  <meyering@redhat.com>
36318
36319         announce-gen: new option: --no-print-checksums
36320         * build-aux/announce-gen (usage): Describe it.
36321         (print_checksums): Print a newline here, not in the [*] footnote.
36322         (main): Honor it.
36323
36324 2009-03-01  Bruno Haible  <bruno@clisp.org>
36325
36326         Use socklen_t in the native Windows replacements prototypes.
36327         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
36328         instead of 'int'.
36329         * lib/getsockopt.c (rpl_getsockopt): Likewise.
36330         * lib/setsockopt.c (rpl_setsockopt): Likewise.
36331         * modules/getsockopt (Depends-on): Add socklen.
36332         * modules/setsockopt (Depends-on): Add socklen.
36333
36334 2009-03-01  Bruno Haible  <bruno@clisp.org>
36335
36336         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
36337         least 4.2.
36338
36339 2009-03-01  Eric Blake  <ebb9@byu.net>
36340             Bruno Haible  <bruno@clisp.org>
36341
36342         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
36343         error messages.
36344         * lib/wait-process.c (wait_subprocess): Omit error message about
36345         deadly signal sent to the child of termsigp != NULL.
36346
36347 2009-03-01  Eric Blake  <ebb9@byu.net>
36348
36349         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
36350
36351 2009-03-01  Bruno Haible  <bruno@clisp.org>
36352
36353         Avoid a gcc warning.
36354         * tests/test-sched.c (b): Make global.
36355         Reported by Eric Blake.
36356
36357 2009-01-19  Martin Lambers  <marlam@marlam.de>
36358
36359         Provide POSIX semantics for socket timeout options on W32.
36360         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
36361         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
36362         * modules/setsockopt: Depend on sys_time module for struct timeval.
36363         * modules/getsockopt: Depend on sys_time module for struct timeval.
36364
36365 2009-03-01  Simon Josefsson  <simon@josefsson.org>
36366
36367         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
36368         __USE_GNU, for consistency with netdb.in.h.
36369         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
36370
36371 2009-03-01  Bruno Haible  <bruno@clisp.org>
36372
36373         More support for FreeMiNT.
36374         * lib/fseeko.c (rpl_fseeko): Complete last commit.
36375         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
36376
36377 2009-03-01  Bruno Haible  <bruno@clisp.org>
36378
36379         More support for FreeMiNT.
36380         * lib/fpurge.c (fpurge): Correct last commit.
36381         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
36382
36383 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36384
36385         Fix unportable awk script in vc-list-files.
36386         * build-aux/vc-list-files: In the replacement awk script, use
36387         substr with a second argument of 1, not zero.
36388         Report by Simon Josefsson.
36389
36390 2009-02-28  Bruno Haible  <bruno@clisp.org>
36391
36392         More support for FreeMiNT.
36393         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
36394         to FreeMiNT today.
36395         * lib/fwriting.c (fwriting): Likewise.
36396         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
36397
36398 2009-02-28  Bruno Haible  <bruno@clisp.org>
36399
36400         * tests/test-freadseek.c (main): Disable test beyond end of file on
36401         FreeMiNT.
36402         * tests/test-ftello.c (main): Likewise.
36403         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
36404
36405 2009-02-28  Bruno Haible  <bruno@clisp.org>
36406
36407         Add tentative support for FreeMiNT.
36408         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
36409         * lib/fpurge.c (fpurge): Likewise.
36410         * lib/freadable.c (freadable): Likewise.
36411         * lib/freading.c (freading): Likewise.
36412         * lib/freadptr.c (freadptr): Likewise.
36413         * lib/freadseek.c (freadptrinc): Likewise.
36414         * lib/fseeko.c (rpl_fseeko): Likewise.
36415         * lib/fseterr.c (fseterr): Likewise.
36416         * lib/fwritable.c (fwritable): Likewise.
36417         * lib/fwriting.c (fwriting): Likewise.
36418         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
36419         Hourihane.
36420         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
36421
36422 2009-02-28  Bruno Haible  <bruno@clisp.org>
36423
36424         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
36425         SIGCHLD.
36426         Reported by Jim Meyering.
36427
36428 2009-02-28  Bruno Haible  <bruno@clisp.org>
36429
36430         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
36431         Mention the results of these tests on various platforms.
36432         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
36433         order.
36434         * doc/posix-functions/printf.texi: Likewise.
36435         * doc/posix-functions/snprintf.texi: Likewise.
36436         * doc/posix-functions/sprintf.texi: Likewise.
36437         * doc/posix-functions/vfprintf.texi: Likewise.
36438         * doc/posix-functions/vprintf.texi: Likewise.
36439         * doc/posix-functions/vsnprintf.texi: Likewise.
36440         * doc/posix-functions/vsprintf.texi: Likewise.
36441         * doc/glibc-functions/obstack_printf.texi: Likewise.
36442         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
36443
36444 2009-02-28  Bruno Haible  <bruno@clisp.org>
36445
36446         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
36447         Reported by Loïc Minier <lool@dooz.org>.
36448
36449 2009-02-27  Bruno Haible  <bruno@clisp.org>
36450
36451         * gnulib-tool (func_import): Make the sed expression used to create the
36452         sed script for updating the .gitignore file POSIX compliant.
36453         Reported by Eric Blake.
36454
36455 2009-02-27  Bruno Haible  <bruno@clisp.org>
36456
36457         * gnulib-tool (sed): Don't alias as "sed --posix".
36458         Reported by Eric Blake.
36459
36460 2009-02-27  Bruno Haible  <bruno@clisp.org>
36461
36462         Avoid test link errors.
36463         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
36464         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
36465         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
36466         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
36467         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36468
36469 2009-02-27  Bruno Haible  <bruno@clisp.org>
36470
36471         Avoid spurious "(cached)" in configure output.
36472         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
36473         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
36474         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
36475         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
36476         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
36477         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
36478         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
36479         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
36480         Reported by Eric Blake.
36481
36482 2009-02-27  Eric Blake  <ebb9@byu.net>
36483
36484         printf: fix regression in previous patch
36485         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
36486
36487 2009-02-27  Bruno Haible  <bruno@clisp.org>
36488
36489         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
36490         value.
36491         * lib/stdint.in.h: Likewise.
36492         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
36493
36494 2009-02-27  Eric Blake  <ebb9@byu.net>
36495
36496         doc: mention more functions added in cygwin 1.7.0
36497         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
36498         addition.
36499         * doc/posix-functions/open_wmemstream.texi: Likewise.
36500         * doc/posix-functions/wcsnlen.texi: Likewise.
36501         * doc/posix-functions/wcsnrtombs.texi: Likewise.
36502         * doc/posix-functions/wcstod.texi: Likewise.
36503         * doc/posix-functions/wcstof.texi: Likewise.
36504         * doc/posix-functions/wcstoimax.texi: Likewise.
36505         * doc/posix-functions/wcstok.texi: Likewise.
36506         * doc/posix-functions/wcstoumax.texi: Likewise.
36507
36508         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
36509         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
36510         * doc/posix-functions/fprintf.texi: Update.
36511         * doc/posix-functions/printf.texi: Update.
36512         * doc/posix-functions/snprintf.texi: Update.
36513         * doc/posix-functions/sprintf.texi: Update.
36514         * doc/posix-functions/vfprintf.texi: Update.
36515         * doc/posix-functions/vprintf.texi: Update.
36516         * doc/posix-functions/vsnprintf.texi: Update.
36517         * doc/posix-functions/vsprintf.texi: Update.
36518         * doc/glibc-functions/obstack_printf.texi: Update.
36519         * doc/glibc-functions/obstack_vprintf.texi: Update.
36520
36521 2009-02-26  Eric Blake  <ebb9@byu.net>
36522
36523         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
36524         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
36525         compilation bug by using runtime conversion.
36526         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
36527         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
36528         * modules/ceill-tests (Files): Use nan.h.
36529         * modules/floorl-tests (Files): Likewise.
36530         * modules/frexpl-tests (Files): Likewise.
36531         * modules/isnanl-tests (Files): Likewise.
36532         * modules/ldexpl-tests (Files): Likewise.
36533         * modules/roundl-tests (Files): Likewise.
36534         * modules/truncl-tests (Files): Likewise.
36535         * tests/test-ceill.c (main): Use a working NaN.
36536         * tests/test-floorl.c (main): Likewise.
36537         * tests/test-frexpl.c (main): Likewise.
36538         * tests/test-isnan.c (test_long_double): Likewise.
36539         * tests/test-isnanl.h (main): Likewise.
36540         * tests/test-ldexpl.h (main): Likewise.
36541         * tests/test-roundl.h (main): Likewise.
36542         * tests/test-truncl.h (main): Likewise.
36543         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
36544
36545 2009-02-26  Eric Blake  <ebb9@byu.net>
36546             Bruno Haible  <bruno@clisp.org>
36547
36548         Work around a *printf bug with %ls on Solaris.
36549         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
36550         precision is specified, sprintf stops converting the wide string
36551         argument when the number of bytes that have been produced by this
36552         conversion equals or exceeds the precision.
36553         * doc/posix-functions/fprintf.texi: Update.
36554         * doc/posix-functions/printf.texi: Update.
36555         * doc/posix-functions/snprintf.texi: Update.
36556         * doc/posix-functions/sprintf.texi: Update.
36557         * doc/posix-functions/vfprintf.texi: Update.
36558         * doc/posix-functions/vprintf.texi: Update.
36559         * doc/posix-functions/vsnprintf.texi: Update.
36560         * doc/posix-functions/vsprintf.texi: Update.
36561         * doc/glibc-functions/obstack_printf.texi: Update.
36562         * doc/glibc-functions/obstack_vprintf.texi: Update.
36563
36564 2009-02-26  Eric Blake  <ebb9@byu.net>
36565
36566         stdlib: favor compiler check of random.h
36567         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
36568         to avoid an ObjC random.h installed by Swarm.
36569
36570 2009-02-26  Bruno Haible  <bruno@clisp.org>
36571
36572         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
36573         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
36574         Reported by Gary V. Vaughan <gary@gnu.org>.
36575
36576 2009-02-26  Bruno Haible  <bruno@clisp.org>
36577
36578         Fix *printf behaviour regarding the %ls directive.
36579         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
36580         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
36581         NEED_PRINTF_DIRECTIVE_LS.
36582         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
36583         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
36584         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
36585         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
36586         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
36587         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
36588         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
36589         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
36590         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
36591         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
36592         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
36593         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
36594         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
36595         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
36596         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
36597         * doc/posix-functions/fprintf.texi: Update.
36598         * doc/posix-functions/printf.texi: Update.
36599         * doc/posix-functions/snprintf.texi: Update.
36600         * doc/posix-functions/sprintf.texi: Update.
36601         * doc/posix-functions/vfprintf.texi: Update.
36602         * doc/posix-functions/vprintf.texi: Update.
36603         * doc/posix-functions/vsnprintf.texi: Update.
36604         * doc/posix-functions/vsprintf.texi: Update.
36605         * doc/glibc-functions/obstack_printf.texi: Update.
36606         * doc/glibc-functions/obstack_vprintf.texi: Update.
36607         Reported by Eric Blake.
36608
36609 2009-02-25  Bruno Haible  <bruno@clisp.org>
36610
36611         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
36612         with known value.
36613         Reported by Gary V. Vaughan <gary@gnu.org>.
36614
36615 2009-02-25  Bruno Haible  <bruno@clisp.org>
36616
36617         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
36618         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
36619         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
36620         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
36621         Reported by Gary V. Vaughan <gary@gnu.org>.
36622
36623 2009-02-25  Bruno Haible  <bruno@clisp.org>
36624
36625         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
36626         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
36627         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
36628         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
36629         Reported by Gary V. Vaughan <gary@gnu.org>.
36630
36631 2009-02-25  Eric Blake  <ebb9@byu.net>
36632
36633         tests: skip fseek/ftell tests if ungetc is broken
36634         * m4/ungetc.m4: New file.
36635         * modules/fseek-tests: Split test, so ungetc dependency is
36636         separate from rest of test.
36637         * modules/fseeko-tests: Likewise.
36638         * modules/ftell-tests: Likewise.
36639         * modules/ftello-tests: Likewise.
36640         * tests/test-fseek.c (main): Isolate ungetc dependency.
36641         * tests/test-fseeko.c (main): Likewise.
36642         * tests/test-ftell.c (main): Likewise.
36643         * tests/test-ftello.c (main): Likewise.
36644         * tests/test-fseek2.sh: New file.
36645         * tests/test-fseeko2.sh: Likewise.
36646         * tests/test-ftell2.sh: Likewise.
36647         * tests/test-ftello2.sh: Likewise.
36648
36649 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
36650
36651         test-getaddrinfo: fix usage of skip return code 77
36652         * tests/test-gettaddrinfo.c: Return skip code 77 only
36653         for first occurance of skip (4x77 is not 77)
36654
36655 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
36656
36657         strtod: avoid C99 decl-after-statement
36658         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
36659
36660 2009-02-24  Eric Blake  <ebb9@byu.net>
36661
36662         strtod: detect HP-UX 11.31 bug
36663         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
36664         Reported by Gary V. Vaughan.
36665
36666 2009-02-23  Bruno Haible  <bruno@clisp.org>
36667
36668         Fix invalid read past end of memory block.
36669         * lib/vasnprintf.c (DCHAR_SET): Define.
36670         (local_wcslen): Define only when needed.
36671         (local_strnlen, local_wcsnlen): New functions.
36672         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
36673         directives that involve a conversion ourselves.
36674         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
36675         wcsnlen, mbrtowc, wcrtomb.
36676         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
36677         * tests/test-vasprintf-posix.c (test_function): Likewise.
36678         * tests/test-snprintf-posix.h (test_function): Likewise.
36679         * tests/test-sprintf-posix.h (test_function): Likewise.
36680         Reported by Ben Pfaff <blp@cs.stanford.edu>.
36681
36682 2009-02-22  Bruno Haible  <bruno@clisp.org>
36683
36684         Implement new clarified decomposition of Hangul syllables.
36685         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
36686         of type LTV, return only a pairwise decomposition.
36687         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
36688         Likewise.
36689         * tests/uninorm/test-decomposition.c (main): Updated expected result.
36690         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
36691         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
36692
36693 2009-02-22  Bruno Haible  <bruno@clisp.org>
36694
36695         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
36696         zero-length results and shrink excess allocated memory.
36697         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
36698         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
36699         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
36700         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
36701         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
36702         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
36703         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
36704         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
36705         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
36706         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
36707         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
36708         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
36709
36710 2009-02-21  Bruno Haible  <bruno@clisp.org>
36711
36712         * doc/gnulib.texi: Include safe-alloc.texi earlier.
36713         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
36714         spaces after a period. Put a space between a macro name and its
36715         argument list. Trivial rewordings.
36716         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
36717         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
36718         (main): Return 0 explicitly.
36719
36720 2009-02-21  Bruno Haible  <bruno@clisp.org>
36721
36722         Tests for module 'uninorm/filter'.
36723         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
36724         * modules/uninorm/filter-tests: New file.
36725
36726         New module 'uninorm/filter'.
36727         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
36728         uninorm_filter_flush, uninorm_filter_free): New declarations.
36729         * lib/uninorm/uninorm-filter.c: New file.
36730         * modules/uninorm/filter: New file.
36731
36732 2009-02-21  Bruno Haible  <bruno@clisp.org>
36733
36734         Tests for module 'uninorm/nfkc'.
36735         * tests/uninorm/test-nfkc.c: New file.
36736         * tests/uninorm/test-u8-nfkc.c: New file.
36737         * tests/uninorm/test-u16-nfkc.c: New file.
36738         * tests/uninorm/test-u32-nfkc.c: New file.
36739         * tests/uninorm/test-u32-nfkc-big.sh: New file.
36740         * tests/uninorm/test-u32-nfkc-big.c: New file.
36741         * modules/uninorm/nfkc-tests: New file.
36742
36743         New module 'uninorm/nfkc'.
36744         * lib/uninorm/nfkc.c: New file.
36745         * modules/uninorm/nfkc: New file.
36746
36747         Tests for module 'uninorm/nfkd'.
36748         * tests/uninorm/test-nfkd.c: New file.
36749         * tests/uninorm/test-u8-nfkd.c: New file.
36750         * tests/uninorm/test-u16-nfkd.c: New file.
36751         * tests/uninorm/test-u32-nfkd.c: New file.
36752         * tests/uninorm/test-u32-nfkd-big.sh: New file.
36753         * tests/uninorm/test-u32-nfkd-big.c: New file.
36754         * modules/uninorm/nfkd-tests: New file.
36755
36756         New module 'uninorm/nfkd'.
36757         * lib/uninorm/nfkd.c: New file.
36758         * modules/uninorm/nfkd: New file.
36759
36760         Tests for module 'uninorm/nfc'.
36761         * tests/uninorm/test-nfc.c: New file.
36762         * tests/uninorm/test-u8-nfc.c: New file.
36763         * tests/uninorm/test-u16-nfc.c: New file.
36764         * tests/uninorm/test-u32-nfc.c: New file.
36765         * tests/uninorm/test-u32-nfc-big.sh: New file.
36766         * tests/uninorm/test-u32-nfc-big.c: New file.
36767         * modules/uninorm/nfc-tests: New file.
36768
36769         New module 'uninorm/nfc'.
36770         * lib/uninorm/nfc.c: New file.
36771         * modules/uninorm/nfc: New file.
36772
36773         Tests for module 'uninorm/nfd'.
36774         * tests/uninorm/test-nfd.c: New file.
36775         * tests/uninorm/test-u8-nfd.c: New file.
36776         * tests/uninorm/test-u16-nfd.c: New file.
36777         * tests/uninorm/test-u32-nfd.c: New file.
36778         * tests/uninorm/test-u32-nfd-big.sh: New file.
36779         * tests/uninorm/test-u32-nfd-big.c: New file.
36780         * tests/uninorm/test-u32-normalize-big.h: New file.
36781         * tests/uninorm/test-u32-normalize-big.c: New file.
36782         * tests/uninorm/NormalizationTest.txt: New file, created from
36783         Unicode 5.1.0 NormalizationTest.txt.
36784         * modules/uninorm/nfd-tests: New file.
36785
36786         New module 'uninorm/nfd'.
36787         * lib/uninorm/nfd.c: New file.
36788         * modules/uninorm/nfd: New file.
36789
36790         New module 'uninorm/u32-normalize'.
36791         * lib/uninorm/u32-normalize.c: New file.
36792         * modules/uninorm/u32-normalize: New file.
36793
36794         New module 'uninorm/u16-normalize'.
36795         * lib/uninorm/u16-normalize.c: New file.
36796         * modules/uninorm/u16-normalize: New file.
36797
36798         New module 'uninorm/u8-normalize'.
36799         * lib/uninorm/u8-normalize.c: New file.
36800         * lib/uninorm/normalize-internal.h: New file.
36801         * lib/uninorm/u-normalize-internal.h: New file.
36802         * modules/uninorm/u8-normalize: New file.
36803
36804         New module 'uninorm/decompose-internal'.
36805         * lib/uninorm/decompose-internal.c: New file.
36806         * modules/uninorm/decompose-internal: New file.
36807
36808         Tests for module 'uninorm/composition'.
36809         * tests/uninorm/test-composition.c: New file.
36810         * modules/uninorm/composition-tests: New file.
36811
36812         New module 'uninorm/composition'.
36813         * lib/uninorm/composition.c: New file.
36814         * lib/uninorm/composition-table.gperf: New file, generated by
36815         gen-uni-tables.
36816         * modules/uninorm/composition: New file.
36817
36818         Tests for module 'uninorm/compat-decomposition'.
36819         * tests/uninorm/test-compat-decomposition.c: New file.
36820         * modules/uninorm/compat-decomposition-tests: New file.
36821
36822         New module 'uninorm/compat-decomposition'.
36823         * lib/uninorm/decompose-internal.h: New file.
36824         * lib/uninorm/compat-decomposition.c: New file.
36825         * modules/uninorm/compat-decomposition: New file.
36826
36827         Tests for module 'uninorm/canonical-decomposition'.
36828         * tests/uninorm/test-canonical-decomposition.c: New file.
36829         * modules/uninorm/canonical-decomposition-tests: New file.
36830
36831         New module 'uninorm/canonical-decomposition'.
36832         * lib/uninorm/canonical-decomposition.c: New file.
36833         * modules/uninorm/canonical-decomposition: New file.
36834
36835         Tests for module 'uninorm/decomposition'.
36836         * tests/uninorm/test-decomposition.c: New file.
36837         * modules/uninorm/decomposition-tests: New file.
36838
36839         New module 'uninorm/decomposition'.
36840         * lib/uninorm/decomposition.c: New file.
36841         * modules/uninorm/decomposition: New file.
36842
36843         New module 'uninorm/decomposition-table'.
36844         * lib/uninorm/decomposition-table.h: New file.
36845         * lib/uninorm/decomposition-table.c: New file.
36846         * lib/uninorm/decomposition-table1.h: New file, generated by
36847         gen-uni-tables.
36848         * lib/uninorm/decomposition-table2.h: New file, generated by
36849         gen-uni-tables.
36850         * modules/uninorm/decomposition-table: New file.
36851
36852         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
36853         (UC_DECOMP_*): New enumeration items.
36854         (get_decomposition): New function.
36855         (struct decomp_table): New type.
36856         (output_decomposition, output_decomposition_tables): New functions.
36857         (unicode_composition_exclusions): New variable.
36858         (fill_composition_exclusions, debug_output_composition_tables): New
36859         functions.
36860         (main): Accept one more argument. Invoke fill_composition_exclusions.
36861         Output decomposition and composition tables.
36862
36863         New module 'uninorm/base'.
36864         * lib/uninorm.h: New file.
36865         * lib/unictype.h: Update comment.
36866         * modules/uninorm/base: New file.
36867
36868 2009-02-21  David Lutterkort  <lutter@redhat.com>
36869
36870         Tests for module 'safe-alloc'.
36871         * tests/test-safe-alloc.c: New file.
36872         * modules/safe-alloc-tests: New file.
36873
36874         New module 'safe-alloc'.
36875         * lib/safe-alloc.h: New file.
36876         * lib/safe-alloc.c: New file.
36877         * m4/safe-alloc.m4: New file.
36878         * modules/safe-alloc: New file.
36879         * doc/safe-alloc.texi: New file.
36880         * doc/gnulib.texi: Include it.
36881         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
36882         safe-alloc.
36883
36884 2009-02-18  Bruno Haible  <bruno@clisp.org>
36885
36886         Fix link error on non-glibc systems.
36887         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
36888         variable.
36889         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36890
36891 2009-02-18  Jim Meyering  <meyering@redhat.com>
36892
36893         fts: avoid used-uninitialized error due to recent change
36894         * lib/fts.c (fts_read): Guard uses of the new member,
36895         parent->fts_n_dirs_remaining, since it's not relevant for
36896         the parent of a directory specified on the command-line.
36897
36898 2009-02-17  James Youngman  <jay@gnu.org>
36899             Bruno Haible  <bruno@clisp.org>
36900
36901         * m4/include_next.m4: Reformulate comment.
36902
36903 2009-02-16  Jim Meyering  <meyering@redhat.com>
36904
36905         fts: add #if guards so that the fts_lgpl module still builds
36906         * lib/fts.c: Guard just-added hash-table-using parts with
36907         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
36908         Reported by Simon Josefsson.
36909
36910 2009-02-15  Bruno Haible  <bruno@clisp.org>
36911
36912         * modules/array-mergesort-tests: New file.
36913         * tests/test-array-mergesort.c: New file.
36914
36915         New module 'array-mergesort'.
36916         * modules/array-mergesort: New file.
36917         * lib/array-mergesort.h: New file.
36918
36919 2009-02-15  Bruno Haible  <bruno@clisp.org>
36920
36921         Fix 2009-02-07 commit.
36922         * lib/gen-uni-tables.c (output_predicate, output_category,
36923         output_combclass, output_bidi_category, output_decimal_digit,
36924         output_digit, output_numeric, output_mirror, output_scripts,
36925         output_ident_category, output_simple_mapping): Fix format directives.
36926         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
36927
36928 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
36929
36930         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
36931         fixes are available from IBM.
36932
36933 2009-02-13  Jim Meyering  <meyering@redhat.com>
36934
36935         fts: arrange not to stat non-directories in more cases
36936         This makes GNU find (when it doesn't need to stat each file)
36937         *much* more efficient at traversing reiserfs file systems.
36938         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
36939         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
36940         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
36941         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
36942         (leaf_optimization_applies): New function.
36943         (LCO_hash, LCO_compare): New helper functions.
36944         (link_count_optimize_ok): New function.
36945         (fts_stat): Initialize new member (if dir).
36946         (fts_read): Decrement parent's fts_n_dirs_remaining count if
36947         we've just stat'ed a directory.  Skip the stat call when possible.
36948         ---
36949         Note this AFS-related exchange:
36950         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
36951         and note find's pioctl call in find/fstype.c.
36952         But that is necessary only if you want to enable the
36953         optimization for AFS, and for now, I don't.
36954
36955         fts: move a function definition "up" (no semantic change)
36956         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
36957         "up" to precede upcoming use of a related function.
36958
36959 2009-02-11  Jim Meyering  <meyering@redhat.com>
36960
36961         fts: correct internal computation of nlinks (optimization-related)
36962         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
36963         whether the current entry is a directory, so don't test it.
36964
36965 2009-02-10  Bruno Haible  <bruno@clisp.org>
36966
36967         Tests for module 'uniwbrk/ulc-wordbreaks'.
36968         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
36969         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
36970         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
36971
36972         Tests for module 'uniwbrk/u32-wordbreaks'.
36973         * modules/uniwbrk/u32-wordbreaks-tests: New file.
36974         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
36975
36976         Tests for module 'uniwbrk/u16-wordbreaks'.
36977         * modules/uniwbrk/u16-wordbreaks-tests: New file.
36978         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
36979
36980         Tests for module 'uniwbrk/u8-wordbreaks'.
36981         * modules/uniwbrk/u8-wordbreaks-tests: New file.
36982         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
36983
36984 2009-02-10  Bruno Haible  <bruno@clisp.org>
36985
36986         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
36987         property.
36988         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
36989         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
36990         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
36991
36992 2009-02-10  Simon Josefsson  <simon@josefsson.org>
36993
36994         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
36995         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
36996
36997 2009-02-10  Bruno Haible  <bruno@clisp.org>
36998
36999         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
37000         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
37001         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
37002         * lib/unilbrk/u8-possible-linebreaks.c: Update.
37003         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
37004         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
37005
37006 2009-02-09  Simon Josefsson  <simon@josefsson.org>
37007
37008         * lib/sockets.h (gl_fd_to_handle): New function.
37009
37010         * tests/test-sockets.c: Call gl_fd_to_handle.
37011
37012 2009-02-09  Bruno Haible  <bruno@clisp.org>
37013
37014         * doc/havelib.texi: Document the conventions on bi-arch systems.
37015
37016 2009-02-08  Bruno Haible  <bruno@clisp.org>
37017
37018         Document the AC_LIB_LINKFLAGS macro.
37019         * doc/havelib.texi: New file, mostly written on 2005-05-24.
37020         * doc/gnulib.texi: Include it.
37021
37022 2009-02-08  Bruno Haible  <bruno@clisp.org>
37023
37024         Fix wrong order of sections, compared to TOC.
37025         * doc/gnulib.texi: Include relocatable-maint.texi after the
37026         "Regular expressions" node, not before.
37027
37028 2009-02-08  Bruno Haible  <bruno@clisp.org>
37029
37030         Tests for module 'unicase/totitle'.
37031         * modules/unicase/totitle-tests: New file.
37032
37033         Tests for module 'unicase/tolower'.
37034         * modules/unicase/tolower-tests: New file.
37035
37036         Tests for module 'unicase/toupper'.
37037         * modules/unicase/toupper-tests: New file.
37038         * tests/unicase/test-mapping-part1.h: New file.
37039         * tests/unicase/test-mapping-part2.h: New file.
37040
37041         New module 'unicase/totitle'.
37042         * modules/unicase/totitle: New file.
37043         * lib/unicase/totitle.c: New file.
37044
37045         New module 'unicase/tolower'.
37046         * modules/unicase/tolower: New file.
37047         * lib/unicase/tolower.c: New file.
37048
37049         New module 'unicase/toupper'.
37050         * modules/unicase/toupper: New file.
37051         * lib/unicase/toupper.c: New file.
37052         * lib/unicase/simple-mapping.h: New file.
37053
37054         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
37055         (mapping_table): New structure.
37056         (output_simple_mapping): New function.
37057         (main): Invoke output_simple_mapping_test and output_simple_mapping.
37058         * modules/gen-uni-tables (Description): Update.
37059         * lib/unicase/toupper.h: New file, automatically generated by
37060         gen-uni-tables.
37061         * lib/unicase/tolower.h: New file, automatically generated by
37062         gen-uni-tables.
37063         * lib/unicase/totitle.h: New file, automatically generated by
37064         gen-uni-tables.
37065         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
37066         gen-uni-tables.
37067         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
37068         gen-uni-tables.
37069         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
37070         gen-uni-tables.
37071
37072         New module 'unicase/base'.
37073         * modules/unicase/base: New file.
37074         * lib/unicase.h: New file.
37075
37076 2009-02-08  Bruno Haible  <bruno@clisp.org>
37077
37078         New module 'uniwbrk/ulc-wordbreaks'.
37079         * modules/uniwbrk/ulc-wordbreaks: New file.
37080         * lib/uniwbrk/ulc-wordbreaks.c: New file.
37081
37082         New module 'uniwbrk/u32-wordbreaks'.
37083         * modules/uniwbrk/u32-wordbreaks: New file.
37084         * lib/uniwbrk/u32-wordbreaks.c: New file.
37085
37086         New module 'uniwbrk/u16-wordbreaks'.
37087         * modules/uniwbrk/u16-wordbreaks: New file.
37088         * lib/uniwbrk/u16-wordbreaks.c: New file.
37089
37090         New module 'uniwbrk/u8-wordbreaks'.
37091         * modules/uniwbrk/u8-wordbreaks: New file.
37092         * lib/uniwbrk/u8-wordbreaks.c: New file.
37093         * lib/uniwbrk/u-wordbreaks.h: New file.
37094
37095         New module 'uniwbrk/table'.
37096         * modules/uniwbrk/table: New file.
37097         * lib/uniwbrk/wbrktable.h: New file.
37098         * lib/uniwbrk/wbrktable.c: New file.
37099
37100         New module 'uniwbrk/wordbreak-property'.
37101         * modules/uniwbrk/wordbreak-property: New file.
37102         * lib/uniwbrk/wordbreak-property.c: New file.
37103
37104         * lib/gen-uni-tables.c (WBP_*): New enum items.
37105         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
37106         (unicode_org_wbp): New variable.
37107         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
37108         New functions.
37109         (wbp_table): New structure.
37110         (output_wbp, output_wbrk_tables): New functions.
37111         (main): Accept additional argument. Invoke fill_org_wbp,
37112         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
37113         output_wbrk_tables.
37114         * modules/gen-uni-tables (Description): Update.
37115         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
37116         gen-uni-tables.
37117
37118         New module 'uniwbrk/base'.
37119         * modules/uniwbrk/base: New file.
37120         * lib/uniwbrk.h: New file.
37121
37122 2009-02-08  Bruno Haible  <bruno@clisp.org>
37123
37124         Update to Unicode 5.1.0.
37125         * lib/gen-uni-tables.c (is_property_alphabetic): Include
37126         U+2185..U+2188.
37127         (is_property_default_ignorable_code_point): Don't include characters
37128         of category Cc or Cs and not-a-characters.
37129         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
37130         U+0D79, U+109E, U+109F, U+A60C.
37131         * lib/unictype/bidi_of.h: Regenerated.
37132         * lib/unictype/blocks.h: Regenerated.
37133         * lib/unictype/categ_C.h: Regenerated.
37134         * lib/unictype/categ_Cf.h: Regenerated.
37135         * lib/unictype/categ_Cn.h: Regenerated.
37136         * lib/unictype/categ_L.h: Regenerated.
37137         * lib/unictype/categ_Ll.h: Regenerated.
37138         * lib/unictype/categ_Lm.h: Regenerated.
37139         * lib/unictype/categ_Lo.h: Regenerated.
37140         * lib/unictype/categ_Lu.h: Regenerated.
37141         * lib/unictype/categ_M.h: Regenerated.
37142         * lib/unictype/categ_Mc.h: Regenerated.
37143         * lib/unictype/categ_Me.h: Regenerated.
37144         * lib/unictype/categ_Mn.h: Regenerated.
37145         * lib/unictype/categ_N.h: Regenerated.
37146         * lib/unictype/categ_Nd.h: Regenerated.
37147         * lib/unictype/categ_Nl.h: Regenerated.
37148         * lib/unictype/categ_No.h: Regenerated.
37149         * lib/unictype/categ_P.h: Regenerated.
37150         * lib/unictype/categ_Pd.h: Regenerated.
37151         * lib/unictype/categ_Pe.h: Regenerated.
37152         * lib/unictype/categ_Pf.h: Regenerated.
37153         * lib/unictype/categ_Pi.h: Regenerated.
37154         * lib/unictype/categ_Po.h: Regenerated.
37155         * lib/unictype/categ_Ps.h: Regenerated.
37156         * lib/unictype/categ_S.h: Regenerated.
37157         * lib/unictype/categ_Sk.h: Regenerated.
37158         * lib/unictype/categ_Sm.h: Regenerated.
37159         * lib/unictype/categ_So.h: Regenerated.
37160         * lib/unictype/categ_of.h: Regenerated.
37161         * lib/unictype/combining.h: Regenerated.
37162         * lib/unictype/ctype_alnum.h: Regenerated.
37163         * lib/unictype/ctype_alpha.h: Regenerated.
37164         * lib/unictype/ctype_graph.h: Regenerated.
37165         * lib/unictype/ctype_lower.h: Regenerated.
37166         * lib/unictype/ctype_print.h: Regenerated.
37167         * lib/unictype/ctype_punct.h: Regenerated.
37168         * lib/unictype/ctype_upper.h: Regenerated.
37169         * lib/unictype/decdigit.h: Regenerated.
37170         * lib/unictype/digit.h: Regenerated.
37171         * lib/unictype/mirror.h: Regenerated.
37172         * lib/unictype/numeric.h: Regenerated.
37173         * lib/unictype/pr_alphabetic.h: Regenerated.
37174         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
37175         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
37176         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
37177         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
37178         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
37179         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
37180         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
37181         * lib/unictype/pr_combining.h: Regenerated.
37182         * lib/unictype/pr_dash.h: Regenerated.
37183         * lib/unictype/pr_decimal_digit.h: Regenerated.
37184         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
37185         * lib/unictype/pr_deprecated.h: Regenerated.
37186         * lib/unictype/pr_diacritic.h: Regenerated.
37187         * lib/unictype/pr_extender.h: Regenerated.
37188         * lib/unictype/pr_format_control.h: Regenerated.
37189         * lib/unictype/pr_grapheme_base.h: Regenerated.
37190         * lib/unictype/pr_grapheme_extend.h: Regenerated.
37191         * lib/unictype/pr_grapheme_link.h: Regenerated.
37192         * lib/unictype/pr_id_continue.h: Regenerated.
37193         * lib/unictype/pr_id_start.h: Regenerated.
37194         * lib/unictype/pr_ideographic.h: Regenerated.
37195         * lib/unictype/pr_ignorable_control.h: Regenerated.
37196         * lib/unictype/pr_lowercase.h: Regenerated.
37197         * lib/unictype/pr_math.h: Regenerated.
37198         * lib/unictype/pr_numeric.h: Regenerated.
37199         * lib/unictype/pr_other_alphabetic.h: Regenerated.
37200         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
37201         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
37202         * lib/unictype/pr_other_id_continue.h: Regenerated.
37203         * lib/unictype/pr_other_lowercase.h: Regenerated.
37204         * lib/unictype/pr_other_math.h: Regenerated.
37205         * lib/unictype/pr_punctuation.h: Regenerated.
37206         * lib/unictype/pr_sentence_terminal.h: Regenerated.
37207         * lib/unictype/pr_soft_dotted.h: Regenerated.
37208         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
37209         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
37210         * lib/unictype/pr_unified_ideograph.h: Regenerated.
37211         * lib/unictype/pr_uppercase.h: Regenerated.
37212         * lib/unictype/pr_xid_continue.h: Regenerated.
37213         * lib/unictype/pr_xid_start.h: Regenerated.
37214         * lib/unictype/pr_zero_width.h: Regenerated.
37215         * lib/unictype/scripts.h: Regenerated.
37216         * lib/unictype/scripts_byname.gperf: Regenerated.
37217         * lib/unictype/sy_java_ident.h: Regenerated.
37218         * lib/unilbrk/lbrkprop1.h: Regenerated.
37219         * lib/unilbrk/lbrkprop2.h: Regenerated.
37220         * tests/unictype/test-categ_C.c: Regenerated.
37221         * tests/unictype/test-categ_Cf.c: Regenerated.
37222         * tests/unictype/test-categ_Cn.c: Regenerated.
37223         * tests/unictype/test-categ_L.c: Regenerated.
37224         * tests/unictype/test-categ_Ll.c: Regenerated.
37225         * tests/unictype/test-categ_Lm.c: Regenerated.
37226         * tests/unictype/test-categ_Lo.c: Regenerated.
37227         * tests/unictype/test-categ_Lu.c: Regenerated.
37228         * tests/unictype/test-categ_M.c: Regenerated.
37229         * tests/unictype/test-categ_Mc.c: Regenerated.
37230         * tests/unictype/test-categ_Me.c: Regenerated.
37231         * tests/unictype/test-categ_Mn.c: Regenerated.
37232         * tests/unictype/test-categ_N.c: Regenerated.
37233         * tests/unictype/test-categ_Nd.c: Regenerated.
37234         * tests/unictype/test-categ_Nl.c: Regenerated.
37235         * tests/unictype/test-categ_No.c: Regenerated.
37236         * tests/unictype/test-categ_P.c: Regenerated.
37237         * tests/unictype/test-categ_Pd.c: Regenerated.
37238         * tests/unictype/test-categ_Pe.c: Regenerated.
37239         * tests/unictype/test-categ_Pf.c: Regenerated.
37240         * tests/unictype/test-categ_Pi.c: Regenerated.
37241         * tests/unictype/test-categ_Po.c: Regenerated.
37242         * tests/unictype/test-categ_Ps.c: Regenerated.
37243         * tests/unictype/test-categ_S.c: Regenerated.
37244         * tests/unictype/test-categ_Sk.c: Regenerated.
37245         * tests/unictype/test-categ_Sm.c: Regenerated.
37246         * tests/unictype/test-categ_So.c: Regenerated.
37247         * tests/unictype/test-ctype_alnum.c: Regenerated.
37248         * tests/unictype/test-ctype_alpha.c: Regenerated.
37249         * tests/unictype/test-ctype_graph.c: Regenerated.
37250         * tests/unictype/test-ctype_lower.c: Regenerated.
37251         * tests/unictype/test-ctype_print.c: Regenerated.
37252         * tests/unictype/test-ctype_punct.c: Regenerated.
37253         * tests/unictype/test-ctype_upper.c: Regenerated.
37254         * tests/unictype/test-decdigit.h: Regenerated.
37255         * tests/unictype/test-digit.h: Regenerated.
37256         * tests/unictype/test-numeric.h: Regenerated.
37257         * tests/unictype/test-pr_alphabetic.c: Regenerated.
37258         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
37259         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
37260         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
37261         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
37262         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
37263         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
37264         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
37265         * tests/unictype/test-pr_combining.c: Regenerated.
37266         * tests/unictype/test-pr_dash.c: Regenerated.
37267         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
37268         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
37269         * tests/unictype/test-pr_deprecated.c: Regenerated.
37270         * tests/unictype/test-pr_diacritic.c: Regenerated.
37271         * tests/unictype/test-pr_extender.c: Regenerated.
37272         * tests/unictype/test-pr_format_control.c: Regenerated.
37273         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
37274         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
37275         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
37276         * tests/unictype/test-pr_id_continue.c: Regenerated.
37277         * tests/unictype/test-pr_id_start.c: Regenerated.
37278         * tests/unictype/test-pr_ideographic.c: Regenerated.
37279         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
37280         * tests/unictype/test-pr_lowercase.c: Regenerated.
37281         * tests/unictype/test-pr_math.c: Regenerated.
37282         * tests/unictype/test-pr_numeric.c: Regenerated.
37283         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
37284         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
37285         Regenerated.
37286         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
37287         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
37288         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
37289         * tests/unictype/test-pr_other_math.c: Regenerated.
37290         * tests/unictype/test-pr_punctuation.c: Regenerated.
37291         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
37292         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
37293         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
37294         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
37295         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
37296         * tests/unictype/test-pr_uppercase.c: Regenerated.
37297         * tests/unictype/test-pr_xid_continue.c: Regenerated.
37298         * tests/unictype/test-pr_xid_start.c: Regenerated.
37299         * tests/unictype/test-pr_zero_width.c: Regenerated.
37300
37301         Update to Unicode 5.1.0.
37302         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
37303         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
37304         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
37305         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
37306         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
37307         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
37308         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
37309         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
37310         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
37311         (nonspacing_table_ind): Update.
37312         * tests/uniwidth/test-uc_width2.sh: Update expected result.
37313
37314         Update to Unicode 5.1.0.
37315         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
37316         code transform.
37317         * lib/uniname/uniname.c (unicode_character_name,
37318         unicode_name_character): Add the range 0x1Fxxx to the code transform.
37319         * lib/uniname/uninames.h: Regenerated.
37320         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
37321
37322 2009-02-07  Bruno Haible  <bruno@clisp.org>
37323
37324         Merge gen-ctype and gen-lbrk into a single program.
37325         * lib/gen-uni-tables.c: New file, incorporating
37326         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
37327         Add directory prefixes to the names of the generated files.
37328         * lib/unictype/gen-ctype.c: Remove file.
37329         * lib/unilbrk/gen-lbrk.c: Remove file.
37330         * modules/gen-uni-tables: New file.
37331         * modules/unictype/gen-ctype: Remove file.
37332         * modules/unilbrk/gen-lbrk: Remove file.
37333
37334 2009-02-07  Bruno Haible  <bruno@clisp.org>
37335
37336         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
37337
37338         New module 'unistr/u32-strcoll'.
37339         * modules/unistr/u32-strcoll: New file.
37340         * lib/unistr/u32-strcoll.c: New file.
37341
37342         New module 'unistr/u16-strcoll'.
37343         * modules/unistr/u16-strcoll: New file.
37344         * lib/unistr/u16-strcoll.c: New file.
37345
37346         New module 'unistr/u8-strcoll'.
37347         * modules/unistr/u8-strcoll: New file.
37348         * lib/unistr/u8-strcoll.c: New file.
37349         * lib/unistr/u-strcoll.h: New file.
37350
37351 2009-02-07  Bruno Haible  <bruno@clisp.org>
37352
37353         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
37354         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
37355         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
37356         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
37357         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
37358         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
37359
37360 2009-02-07  Bruno Haible  <bruno@clisp.org>
37361
37362         Make 64-bit clean.
37363         * lib/unictype/gen-ctype.c (output_predicate, output_category,
37364         output_combclass, output_bidi_category, output_decimal_digit,
37365         output_digit, output_numeric, output_mirror, output_scripts,
37366         output_ident_category): Use proper width specifier in format strings.
37367
37368 2009-02-07  Bruno Haible  <bruno@clisp.org>
37369
37370         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
37371         failure behaviour.
37372
37373 2009-02-07  Jim Meyering  <meyering@redhat.com>
37374
37375         regex: avoid compilation failure with upcoming gcc-4.4
37376         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
37377         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
37378         "... error: integer overflow in preprocessor expression".
37379
37380 2009-02-05  Ben Pfaff  <blp@gnu.org>
37381
37382         Fix link errors on Windows when close module is used.
37383         * modules/close: Add $(LIB_CLOSE) to Link section.
37384         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
37385         $(LIB_CLOSE) on Windows.
37386
37387 2009-02-05  Jim Meyering  <meyering@redhat.com>
37388
37389         still avoid unused-parameter warnings, but do it cleanly
37390         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
37391         (get_fs_usage): Cast to void instead.
37392         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
37393         (dev_from_mount_options, read_file_system_list): Cast to void.
37394         Prompted by Bruno Haible.
37395
37396 2009-02-04  Jim Meyering  <meyering@redhat.com>
37397
37398         fsusage.c: correct copyright year
37399         * lib/fsusage.c: Reflect year in which the change is pushed into
37400
37401         avoid misc. warnings
37402         * lib/fsusage.c (UNUSED_PARAM): Define.
37403         (get_fs_usage): Mark parameter "disk" as unused.
37404         * lib/getugroups.c (getgrent): Use "void" in prototype.
37405         * lib/mountlist.c: Mark unused parameters.
37406         (read_file_system_list): Declare a local with "const".
37407         * lib/nanosleep.c (getnow): Declare static.
37408         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
37409
37410         dirfd: set errno upon failure
37411         * lib/dirfd.c: Include <errno.h>.
37412         Set errno to ENOTSUP when returning -1.
37413         * modules/dirfd (Depends-on): Add errno.
37414         Suggested by John Kodis <kodis@comcast.net>.
37415
37416 2009-02-01  Bruno Haible  <bruno@clisp.org>
37417
37418         Don't assume sizeof (long) >= sizeof (void *).
37419         * lib/memcmp.c: Include stdint.h.
37420         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
37421         srcp2 to 'const byte *'.
37422         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
37423         types to uintptr_t.
37424         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
37425         * modules/memcmp (Depends-on): Add stdint.
37426         Reported by Ozkan Sezer <sezeroz@gmail.com>.
37427
37428 2009-01-30  Eric Blake  <ebb9@byu.net>
37429
37430         fix more require-before-expand issues
37431         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
37432         expand, AC_PROG_AWK.
37433         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
37434
37435 2009-01-28  Eric Blake  <ebb9@byu.net>
37436
37437         version-etc: use consistent URL formatting
37438         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
37439         Improve formatting.  Use fputs for string without %.
37440
37441 2009-01-28  Jim Meyering  <meyering@redhat.com>
37442
37443         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
37444         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
37445         "underquoted definition of NAME" from autoconf-2.59.
37446
37447 2009-01-28  Bruno Haible  <bruno@clisp.org>
37448
37449         * doc/gnulib.texi: Add "Obsolete modules" to index.
37450
37451 2009-01-28  Jim Meyering  <meyering@redhat.com>
37452
37453         useless-if-before-free: recognize more variants
37454         * build-aux/useless-if-before-free: Also recognize e.g.,
37455         if (NULL != p) free (p);
37456
37457 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
37458
37459         test-getaddrinfo: skip (don't fail) this test when there's no network
37460         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
37461         on the presumption that it means you lack network access.
37462
37463 2009-01-26  Jim Meyering  <meyering@redhat.com>
37464
37465         fflush: avoid warnings on modern systems
37466         * lib/fflush.c (rpl_fflush): Move declarations of locals,
37467         pos and result, into scopes where they're used.
37468
37469 2009-01-26  Eric Blake  <ebb9@byu.net>
37470
37471         Silence warning reintroduced by recent extensions patch.
37472         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
37473         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
37474         autoconf.
37475
37476         Backport improved autoconf semantics of AC_DEFUN_ONCE.
37477         * m4/00gnulib.m4: New file.
37478         * gnulib-tool (func_get_filelist): Always use it.
37479         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
37480         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
37481
37482 2009-01-25  Bruno Haible  <bruno@clisp.org>
37483
37484         Make test-quotearg work on MacOS X and AIX.
37485         * tests/test-quotearg.sh: New file.
37486         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
37487         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
37488         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
37489         include <libintl.h>.
37490         (fake_locale): Remove variable.
37491         (gettext, dgettext, dcgettext): Remove functions.
37492         (main): Instead of setting a fake locale, set a real locale. Call
37493         textdomain and bindtextdomain.
37494         * modules/quotearg-tests (Files): Add the new files.
37495         (Depends-on): Add gettext, setenv, unsetenv.
37496         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
37497         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
37498         Augment TESTS_ENVIRONMENT.
37499
37500 2009-01-25  Bruno Haible  <bruno@clisp.org>
37501
37502         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
37503         fr_FR.ISO8859-1 locale on MacOS X.
37504         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
37505         ja_JP.eucJP locale on MacOS X.
37506         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
37507         zh_CN.GB18030 locale on MacOS X.
37508
37509 2009-01-25  Bruno Haible  <bruno@clisp.org>
37510
37511         Avoid link errors on MacOS X 10.3.
37512         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
37513         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
37514
37515 2009-01-25  Bruno Haible  <bruno@clisp.org>
37516
37517         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
37518         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
37519         * modules/pipe (Files): Remove m4/posix_spawn.m4.
37520         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
37521         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
37522         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
37523         posix_spawnattr_init, posix_spawnattr_setsigmask,
37524         posix_spawnattr_setflags, posix_spawnattr_destroy.
37525
37526         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
37527         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
37528         * modules/execute (Files): Remove m4/posix_spawn.m4.
37529         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
37530         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
37531         posix_spawnattr_init, posix_spawnattr_setsigmask,
37532         posix_spawnattr_setflags, posix_spawnattr_destroy.
37533
37534 2009-01-25  Bruno Haible  <bruno@clisp.org>
37535
37536         * lib/glthread/threadlib.c: Include <stdlib.h>.
37537
37538 2009-01-25  Bruno Haible  <bruno@clisp.org>
37539
37540         * lib/glthread/threadlib.c (dummy): New declaration.
37541
37542 2009-01-25  Bruno Haible  <bruno@clisp.org>
37543
37544         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
37545         multibyte characters also for the GB18030 encoding. Don't crash when
37546         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
37547
37548 2009-01-25  Bruno Haible  <bruno@clisp.org>
37549
37550         Avoid redefining 'struct random_data' on OSF/1 5.1.
37551         * lib/stdlib.in.h: Include <random.h> if it exists.
37552         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
37553         HAVE_RANDOM_H. Include <random.h> when testing whether
37554         'struct random_data' exists.
37555         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
37556
37557 2009-01-25  Bruno Haible  <bruno@clisp.org>
37558
37559         Don't install charset.alias on MacOS X >= 10.3.
37560         * lib/localcharset.c (DARWIN7): New macro.
37561         (get_charset_aliases): Hardcode the result for Darwin7.
37562         * modules/localcharset (install-exec-local): Don't install
37563         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
37564
37565 2009-01-25  Bruno Haible  <bruno@clisp.org>
37566
37567         Don't install charset.alias on mingw and Cygwin.
37568         * modules/localcharset (install-exec-local): Don't install
37569         charset.alias on mingw and Cygwin, if the file does not yet exist.
37570         The result for these platforms is hardcoded in localcharset.c.
37571
37572 2009-01-25  Bruno Haible  <bruno@clisp.org>
37573
37574         Make it possible again to use AC_GNU_SOURCE together with gnulib.
37575         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
37576         before requiring AC_USE_SYSTEM_EXTENSIONS.
37577
37578 2009-01-25  Jim Meyering  <meyering@redhat.com>
37579
37580         c-strtod: avoid warnings
37581         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
37582         "assignment discards qualifiers from pointer target type" warnings.
37583
37584 2009-01-24  Bruno Haible  <bruno@clisp.org>
37585
37586         Add support for non-UTF-8 locales on MacOS X.
37587         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
37588         canonical encodings. For Darwin 7 and newer, don't map traditional
37589         encodings to UTF-8.
37590         Reported by Vincent Lefevre <vincent@vinc17.org>
37591         at <http://savannah.gnu.org/bugs/?25235>.
37592
37593 2009-01-24  Bruno Haible  <bruno@clisp.org>
37594
37595         * doc/gnulib.texi (Obsolete modules): New section.
37596         Reported by Mike Frysinger <vapier@gentoo.org>.
37597
37598 2009-01-24  Bruno Haible  <bruno@clisp.org>
37599
37600         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
37601         (%.dvi): New rule.
37602
37603 2009-01-24  Bruno Haible  <bruno@clisp.org>
37604
37605         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
37606         Reported by Eric Blake.
37607
37608 2009-01-24  Bruno Haible  <bruno@clisp.org>
37609
37610         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
37611         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
37612         Reported by Gary V. Vaughan <gary@gnu.org>.
37613
37614 2009-01-24  Bruno Haible  <bruno@clisp.org>
37615
37616         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
37617
37618 2009-01-23  Bruno Haible  <bruno@clisp.org>
37619
37620         Make c-strtod, c-strtold usable in libraries.
37621         * lib/c-strtod.c: Include string.h instead of xalloc.h.
37622         (C_STRTOD): Call strdup instead of xstrdup.
37623         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
37624         * modules/c-strtold (Depends-on): Likewise.
37625         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
37626         * NEWS: Mention the change.
37627         Reported by Michael Gold <mgold@ncf.ca>.
37628
37629 2009-01-23  Jim Meyering  <meyering@redhat.com>
37630
37631         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
37632         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
37633         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
37634
37635 2009-01-23  Simon Josefsson  <simon@josefsson.org>
37636
37637         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
37638         GNU CoreUtils.
37639         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
37640         * modules/version-etc (Description): Update.
37641
37642 2009-01-22  Bruno Haible  <bruno@clisp.org>
37643
37644         Cache the C locale object.
37645         * lib/c-strtod.c (c_locale_cache): New variable.
37646         (c_locale): New function.
37647         (C_STRTOD): Use it, and don't call freelocale.
37648         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
37649         Suggested by Paolo Bonzini.
37650
37651 2009-01-21  Bruno Haible  <bruno@clisp.org>
37652
37653         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
37654         conditions other than overflow.
37655
37656 2009-01-21  Bruno Haible  <bruno@clisp.org>
37657
37658         * lib/c-strtod.c: Include errno.h.
37659         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
37660         value from STRTOD_L and STRTOD.
37661
37662 2009-01-21  Bruno Haible  <bruno@clisp.org>
37663         and Jim Meyering  <meyering@redhat.com>
37664
37665         nanosleep: skip configure test (fail it) for apple universal builds
37666         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
37667         universal builds, assume that nanosleep does not work.
37668         * modules/nanosleep (Depends-on): Add multiarch.
37669
37670         mktime: skip configure test (fail it) for apple universal builds
37671         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
37672         universal builds, assume that mktime does not work.
37673         * modules/mktime (Depends-on): Add multiarch.
37674
37675 2009-01-21  Eric Blake  <ebb9@byu.net>
37676
37677         multiarch: avoid expand-before-require warning
37678         * modules/multiarch (configure.ac): Require, rather than expand,
37679         gl_MULTIARCH.
37680         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
37681         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
37682         enforce that all clients require it.  Partial reversion of
37683         2008-12-29 patch.
37684
37685         error: avoid expand-before-require warning
37686         * modules/errno (configure.ac): Require, rather than expand,
37687         gl_HEADER_ERRNO_H.
37688         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
37689         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
37690         enforce that all clients require it.
37691
37692         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
37693         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
37694         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
37695         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
37696
37697 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
37698
37699         Revert:
37700         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
37701
37702         regex: do not depend on obsolete modules.
37703         * modules/regex: Remove memcmp and memmove.
37704
37705 2009-01-20  Bruno Haible  <bruno@clisp.org>
37706
37707         Make the 'link' module link on Windows NT 4.
37708         * lib/link.c (_WIN32_WINNT): Don't define.
37709         (CreateHardLinkFuncType): New type.
37710         (CreateHardLinkFunc, initialized): New variables.
37711         (initialize): New function.
37712         (link): Invoke CreateHardLink indirectly through the function pointer.
37713
37714 2009-01-20  Bruno Haible  <bruno@clisp.org>
37715
37716         Fix compilation failure on mingw.
37717         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
37718
37719 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
37720
37721         * doc/c-strtod.texi: Mention a couple of restrictions.
37722
37723 2009-01-20  Jim Meyering  <meyering@redhat.com>
37724
37725         gettimeofday: move more declarations out of functions
37726         * lib/gettimeofday.c: Move extern declarations of tzset and
37727         gmtime out of containing functions.  Prompted by Bruno Haible.
37728
37729 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
37730
37731         regex: do not depend on obsolete modules.
37732         * modules/regex: Remove memcmp and memmove.
37733
37734 2009-01-19  Bruno Haible  <bruno@clisp.org>
37735
37736         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
37737         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
37738         gl_BIGENDIAN, not AC_C_BIGENDIAN.
37739         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
37740         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
37741
37742 2009-01-19  Bruno Haible  <bruno@clisp.org>
37743
37744         * tests/test-link.c: Include <errno.h>.
37745         (main): Exit with code 77 when a hard link cannot be created due to
37746         the file system.
37747         * tests/test-link.sh: Skip test when a hard link cannot be created due
37748         to the file system.
37749         Suggested by Eric Blake.
37750
37751 2009-01-19  Martin Lambers  <marlam@marlam.de>
37752
37753         * modules/link-tests: New file.
37754         * tests/test-link.sh: New file.
37755         * tests/test-link.c: New file.
37756
37757 2009-01-19  Eric Blake  <ebb9@byu.net>
37758
37759         doc: mention another function added in cygwin 1.7.0
37760         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
37761         Another new function in cygwin 1.7.
37762
37763 2009-01-19  Bruno Haible  <bruno@clisp.org>
37764
37765         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
37766         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
37767         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
37768         gl_BIGENDIAN, not AC_C_BIGENDIAN.
37769         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
37770         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
37771         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
37772         * m4/md4.m4 (gl_MD4): Likewise.
37773         * m4/md5.m4 (gl_MD5): Likewise.
37774         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
37775         * m4/sha1.m4 (gl_SHA1): Likewise.
37776         * m4/sha256.m4 (gl_SHA256): Likewise.
37777         * m4/sha512.m4 (gl_SHA512): Likewise.
37778
37779 2009-01-19  Bruno Haible  <bruno@clisp.org>
37780
37781         * modules/uniname/uniname-tests (Depends-on): Add progname.
37782         * tests/uniname/test-uninames.c: Include progname.h.
37783         (main): Call set_program_name.
37784
37785         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
37786         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
37787         (main): Call set_program_name.
37788
37789         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
37790         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
37791         (main): Call set_program_name.
37792
37793         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
37794         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
37795         (main): Call set_program_name.
37796
37797         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
37798         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
37799         (main): Call set_program_name.
37800
37801         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
37802         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
37803         (main): Call set_program_name.
37804
37805         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
37806         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
37807         (main): Call set_program_name.
37808
37809         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
37810         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
37811         (main): Call set_program_name.
37812
37813         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
37814         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
37815         (main): Call set_program_name.
37816
37817 2009-01-19  Eric Blake  <ebb9@byu.net>
37818
37819         test-unistd: test previous patch
37820         * tests/test-unistd.c: Test *_FILENO macros.
37821
37822         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
37823         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
37824         Guarantee a definition.
37825         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
37826         * modules/unistd-safer (Depends-on): Add dependency on unistd.
37827         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
37828         * lib/dup-safer.c (STDERR_FILENO): Likewise.
37829         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
37830         Likewise.
37831         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
37832         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
37833         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
37834         Likewise.
37835         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
37836         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
37837         (STDERR_FILENO): Likewise.
37838         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
37839         (STDERR_FILENO): Likewise.
37840         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
37841         (STDERR_FILENO): Likewise.
37842         Reported by Elbert Pol.
37843
37844 2009-01-19  Eric Blake  <ebb9@byu.net>
37845
37846         doc: mention more functions added in cygwin 1.7.0
37847         * doc/posix-functions/abort.texi (abort): Update wording related
37848         to cygwin.
37849         * doc/posix-functions/daylight.texi (daylight): Likewise.
37850         * doc/posix-functions/optarg.texi (optarg): Likewise.
37851         * doc/posix-functions/optarg.texi (opterr): Likewise.
37852         * doc/posix-functions/optarg.texi (optind): Likewise.
37853         * doc/posix-functions/optarg.texi (optopt): Likewise.
37854         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
37855         worked in 1.5.x, and was withdrawn in 1.7.
37856         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
37857         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
37858         cygwin versions.
37859         * doc/posix-functions/perror.texi (perror): Likewise.
37860         * doc/posix-functions/printf.texi (printf): Likewise.
37861         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
37862         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
37863         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
37864         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
37865         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
37866         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
37867         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
37868         Likewise.
37869         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
37870         Likewise.
37871         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
37872         this function.
37873         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
37874         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
37875         Likewise.
37876         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
37877         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
37878         * doc/posix-functions/confstr.texi (confstr): Likewise.
37879         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
37880         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
37881         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
37882         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
37883         * doc/posix-functions/fputws.texi (fputws): Likewise.
37884         * doc/posix-functions/fwide.texi (fwide): Likewise.
37885         * doc/posix-functions/getwc.texi (getwc): Likewise.
37886         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
37887         * doc/posix-functions/putwc.texi (putwc): Likewise.
37888         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
37889         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
37890         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
37891         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
37892         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
37893         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
37894         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
37895         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
37896         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
37897         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
37898         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
37899
37900 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
37901
37902         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
37903         * lib/ioctl.c: Include <sys/ioctl.h>.
37904
37905 2009-01-19  Simon Josefsson  <simon@josefsson.org>
37906
37907         * modules/getdate-tests (Depends-on): Add progname.
37908         * tests/test-getdate.c: Use progname module, to avoid link errors
37909         on non-glibc systems.
37910
37911 2009-01-18  Simon Josefsson  <simon@josefsson.org>
37912
37913         * modules/filenamecat-tests (Depends-on): Add progname.
37914         * modules/fstrcmp-tests (Depends-on): Likewise.
37915
37916         * tests/test-filenamecat.c: Use progname module, to avoid link
37917         errors on non-glibc systems.
37918         * tests/test-fstrcmp.c: Likewise.
37919
37920 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
37921
37922         gettimeofday: avoid warning: nested extern declaration of 'localtime'
37923         * lib/gettimeofday.c: Move extern declaration out of function.
37924
37925 2009-01-18  Bruno Haible  <bruno@clisp.org>
37926
37927         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
37928         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
37929         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
37930
37931 2009-01-18  Bruno Haible  <bruno@clisp.org>
37932
37933         * lib/strftime.c (MEMPCPY): Remove unused macro.
37934         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
37935
37936 2009-01-18  Martin Lambers  <marlam@marlam.de>
37937
37938         New module 'link'.
37939         * lib/unistd.in.h (link): New declaration.
37940         * lib/link.c: New file.
37941         * m4/link.m4: New file.
37942         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
37943         HAVE_LINK.
37944         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
37945         * modules/link: New file.
37946         * doc/posix-functions/link.texi: Mention the new module.
37947
37948 2009-01-18  Bruno Haible  <bruno@clisp.org>
37949
37950         * tests/test-avltree_list.c (main): Call set_program_name.
37951         * tests/test-avltree_oset.c (main): Likewise.
37952         * tests/test-obstack-printf.c: Include progname.h.
37953         (main): Call set_program_name.
37954         * tests/test-quotearg.c: Include progname.h.
37955         (main): Call set_program_name.
37956         * tests/test-xmemdup0.c: Include progname.h.
37957         (main): Call set_program_name.
37958
37959 2009-01-18  Bruno Haible  <bruno@clisp.org>
37960
37961         New module 'alphasort'.
37962         * lib/dirent.in.h (alphasort): New declaration.
37963         * lib/alphasort.c: New file, from glibc with modifications.
37964         * m4/alphasort.m4: New file.
37965         * modules/alphasort: New file.
37966         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
37967         HAVE_ALPHASORT.
37968         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
37969         HAVE_ALPHASORT.
37970         * doc/posix-functions/alphasort.texi: Mention the new module and the
37971         portability problems.
37972
37973 2009-01-18  Bruno Haible  <bruno@clisp.org>
37974
37975         New module 'scandir'.
37976         * lib/dirent.in.h (scandir): New declaration.
37977         * lib/scandir.c: New file, from glibc with modifications.
37978         * m4/scandir.m4: New file.
37979         * modules/scandir: New file.
37980         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
37981         HAVE_SCANDIR.
37982         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
37983         HAVE_SCANDIR.
37984         * doc/posix-functions/scandir.texi: Mention the new module and the
37985         portability problems.
37986
37987 2009-01-17  Bruno Haible  <bruno@clisp.org>
37988
37989         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
37990         Update documentation.
37991         (func_remove_suffix): Escape all dots in the suffix. Update
37992         documentation.
37993         (func_filter_filelist): Update documentation.
37994         Reported by Ralf Wildenhues.
37995
37996 2009-01-17  Bruno Haible  <bruno@clisp.org>
37997
37998         * modules/dprintf-posix-tests: New file.
37999         * tests/test-dprintf-posix.sh: New file.
38000         * tests/test-dprintf-posix.c: New file.
38001
38002         New modules 'dprintf', 'dprintf-posix'.
38003         * lib/stdio.in.h (dprintf): New declaration.
38004         * lib/dprintf.c: New file.
38005         * m4/dprintf.m4: New file.
38006         * m4/dprintf-posix.m4: New file.
38007         * modules/dprintf: New file.
38008         * modules/dprintf-posix: New file.
38009         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
38010         HAVE_DPRINTF, REPLACE_DPRINTF.
38011         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
38012         HAVE_DPRINTF, REPLACE_DPRINTF.
38013         * doc/posix-functions/dprintf.texi: Mention the new modules.
38014
38015 2009-01-17  Bruno Haible  <bruno@clisp.org>
38016
38017         * modules/vdprintf-posix-tests: New file.
38018         * tests/test-vdprintf-posix.sh: New file.
38019         * tests/test-vdprintf-posix.c: New file.
38020
38021         New modules 'vdprintf', 'vdprintf-posix'.
38022         * lib/stdio.in.h (vdprintf): New declaration.
38023         * lib/vdprintf.c: New file.
38024         * m4/vdprintf.m4: New file.
38025         * m4/vdprintf-posix.m4: New file.
38026         * modules/vdprintf: New file.
38027         * modules/vdprintf-posix: New file.
38028         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
38029         HAVE_VDPRINTF, REPLACE_VDPRINTF.
38030         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
38031         HAVE_VDPRINTF, REPLACE_VDPRINTF.
38032         * doc/posix-functions/vdprintf.texi: Mention the new modules.
38033
38034 2009-01-17  Bruno Haible  <bruno@clisp.org>
38035
38036         Fix replacement of fopen on mingw.
38037         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
38038         mingw.
38039
38040 2009-01-17  Bruno Haible  <bruno@clisp.org>
38041
38042         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
38043         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
38044
38045 2009-01-17  Bruno Haible  <bruno@clisp.org>
38046
38047         Avoid test-fflush2.sh failure on mingw.
38048         * tests/test-fflush2.c: Include binary-io.h.
38049         (main): Put standard input into binary mode.
38050         * modules/fflush-tests (Depends-on): Add binary-io.
38051
38052 2009-01-17  Bruno Haible  <bruno@clisp.org>
38053
38054         * lib/wchar.in.h: In another particular situation, include only the
38055         system's <wchar.h> file.
38056         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
38057         Reported by Albert Chin-A-Young <china@thewrittenword.com>
38058         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
38059
38060 2009-01-17  Bruno Haible  <bruno@clisp.org>
38061
38062         Support for stripping executables in --enable-relocatable.
38063         * build-aux/install-reloc: Expect one more argument, or an environment
38064         variable RELOC_STRIP_PROG. If set, strip the destination program and
38065         its wrapper.
38066         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
38067         RELOC_STRIP_PROG.
38068         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
38069         to set RELOCATABLE_STRIP.
38070         * NEWS: Mention the new Makefile requirement.
38071
38072 2009-01-17  Bruno Haible  <bruno@clisp.org>
38073
38074         * build-aux/install-reloc: Remove debugging information left over by
38075         C compiler on MacOS X.
38076
38077 2009-01-17  Bruno Haible  <bruno@clisp.org>
38078
38079         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
38080         * lib/progreloc.c (find_executable): Fix type of pointer passed to
38081         _NSGetExecutablePath.
38082
38083 2009-01-16  Jim Meyering  <meyering@redhat.com>
38084
38085         strerror: avoid warnings about discarding "const"
38086         * lib/strerror.c (rpl_strerror): Instead of returning a const
38087         string from each and every "case", use a variable, and add a single
38088         cast after the switch.
38089
38090 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
38091
38092         * lib/arpa_inet.in.h: Add extern "C" block for C++.
38093
38094 2009-01-16  Bruno Haible  <bruno@clisp.org>
38095
38096         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
38097         array initializer syntax that also works in C++ mode.
38098         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
38099
38100 2009-01-16  Jim Meyering  <meyering@redhat.com>
38101
38102         poll: suppress a warning
38103         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
38104         to ignore "...unsigned expression < 0 is always false" warnings.
38105
38106 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
38107
38108         poll: remove declarations of unused variables
38109         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
38110         sockbuf and optlen.
38111
38112 2009-01-15  Bruno Haible  <bruno@clisp.org>
38113
38114         Make fflush-after-ungetc POSIX compliant on BSD systems.
38115         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
38116         (clear_ungetc_buffer): Implement also for other systems.
38117         (rpl_fflush): On glibc systems, invoke
38118         clear_ungetc_buffer_preserving_position. Otherwise, invoke
38119         clear_ungetc_buffer after fetching the stream's position, not before.
38120
38121 2009-01-15  Bruno Haible  <bruno@clisp.org>
38122
38123         Make fflush-after-ungetc POSIX compliant on glibc systems.
38124         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
38125         after ungetc.
38126         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
38127         (rpl_fflush): On glibc systems, simply call the system's fflush
38128         function after clearing the ungetc buffer.
38129         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
38130         Instead, lseek only to the end of file, then use the system's fseeko
38131         for the rest. On glibc systems, reset the EOF indicator bit.
38132
38133 2009-01-15  Jim Meyering  <meyering@redhat.com>
38134
38135         openmp.m4: revert quote-adding change, for portability to older autoconf
38136         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
38137         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
38138         Simon Josefsson noticed the problem when using autoconf-2.61.
38139
38140 2009-01-15  Bruno Haible  <bruno@clisp.org>
38141
38142         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
38143         * tests/test-fflush2.c (ASSERT): Always fail.
38144         (main): Add two tests for fflush() after ungetc(), taking into account
38145         the Austin Group's clarification.
38146         Suggested by Eric Blake.
38147
38148 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
38149
38150         mktime.m4: remove K&R-style function prototypes
38151         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
38152         for the Sun C++ compiler.
38153
38154 2009-01-14  Bruno Haible  <bruno@clisp.org>
38155
38156         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
38157         while including <wchar.h>.
38158         * lib/wchar.in.h: In two particular situations on HP-UX, include only
38159         the system's <wchar.h> file.
38160         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
38161
38162 2009-01-14  Bruno Haible  <bruno@clisp.org>
38163
38164         * m4/csharp.m4: Don't mention gettext on the serial number line.
38165         * m4/csharpexec.m4: Likewise.
38166         * m4/eaccess.m4: Likewise.
38167         * m4/javaexec.m4: Likewise.
38168         * m4/sig_atomic_t.m4: Likewise.
38169         * m4/tmpdir.m4: Likewise.
38170         * m4/intldir.m4: Bump gettext version.
38171         * m4/lib-ld.m4: Likewise.
38172
38173 2009-01-14  Bruno Haible  <bruno@clisp.org>
38174
38175         * lib/progname.c (set_program_name): Add more comments.
38176         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
38177
38178 2009-01-14  Simon Josefsson  <simon@josefsson.org>
38179
38180         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
38181         were sys/stat.h does not define it.
38182
38183 2009-01-14  Jim Meyering  <meyering@redhat.com>
38184
38185         many *.m4 files: improve m4 quoting
38186         99% of this change was performed by running the following commands:
38187         git ls-files | grep '\.m4$' | xargs perl -pi \
38188           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
38189           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
38190           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
38191           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
38192         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
38193         The remainder were to add Copyright dates, increment serial numbers,
38194         undo some changes in comments, exclude m4/intl.m4, and add quotes
38195         around the "1" in ",1" where the unusual spacing prohibited the
38196         above regexps from doing the job.  For more details, see
38197         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
38198         * m4/acl.m4: Modified.
38199         * m4/afs.m4: Likewise.
38200         * m4/alloca.m4: Likewise.
38201         * m4/argp.m4: Likewise.
38202         * m4/argz.m4: Likewise.
38203         * m4/atexit.m4: Likewise.
38204         * m4/bison-i18n.m4: Likewise.
38205         * m4/bison.m4: Likewise.
38206         * m4/byteswap.m4: Likewise.
38207         * m4/c-stack.m4: Likewise.
38208         * m4/c-strtod.m4: Likewise.
38209         * m4/calloc.m4: Likewise.
38210         * m4/canonicalize-lgpl.m4: Likewise.
38211         * m4/chown.m4: Likewise.
38212         * m4/clock_time.m4: Likewise.
38213         * m4/codeset.m4: Likewise.
38214         * m4/copy-file.m4: Likewise.
38215         * m4/csharp.m4: Likewise.
38216         * m4/csharpcomp.m4: Likewise.
38217         * m4/csharpexec.m4: Likewise.
38218         * m4/d-ino.m4: Likewise.
38219         * m4/d-type.m4: Likewise.
38220         * m4/dirfd.m4: Likewise.
38221         * m4/double-slash-root.m4: Likewise.
38222         * m4/eaccess.m4: Likewise.
38223         * m4/eealloc.m4: Likewise.
38224         * m4/environ.m4: Likewise.
38225         * m4/errno_h.m4: Likewise.
38226         * m4/euidaccess.m4: Likewise.
38227         * m4/execute.m4: Likewise.
38228         * m4/fatal-signal.m4: Likewise.
38229         * m4/fchdir.m4: Likewise.
38230         * m4/fcntl_h.m4: Likewise.
38231         * m4/fileblocks.m4: Likewise.
38232         * m4/filenamecat.m4: Likewise.
38233         * m4/findprog.m4: Likewise.
38234         * m4/flexmember.m4: Likewise.
38235         * m4/fnmatch.m4: Likewise.
38236         * m4/fopen.m4: Likewise.
38237         * m4/fpending.m4: Likewise.
38238         * m4/fprintf-posix.m4: Likewise.
38239         * m4/free.m4: Likewise.
38240         * m4/frexp.m4: Likewise.
38241         * m4/frexpl.m4: Likewise.
38242         * m4/fsusage.m4: Likewise.
38243         * m4/ftruncate.m4: Likewise.
38244         * m4/gc-camellia.m4: Likewise.
38245         * m4/gc-random.m4: Likewise.
38246         * m4/gc.m4: Likewise.
38247         * m4/getaddrinfo.m4: Likewise.
38248         * m4/getcwd-abort-bug.m4: Likewise.
38249         * m4/getcwd-path-max.m4: Likewise.
38250         * m4/getdate.m4: Likewise.
38251         * m4/getdomainname.m4: Likewise.
38252         * m4/getgroups.m4: Likewise.
38253         * m4/gethostname.m4: Likewise.
38254         * m4/gethrxtime.m4: Likewise.
38255         * m4/getline.m4: Likewise.
38256         * m4/getloadavg.m4: Likewise.
38257         * m4/getndelim2.m4: Likewise.
38258         * m4/getpass.m4: Likewise.
38259         * m4/gettext.m4: Likewise.
38260         * m4/gettime.m4: Likewise.
38261         * m4/gettimeofday.m4: Likewise.
38262         * m4/gnulib-common.m4: Likewise.
38263         * m4/group-member.m4: Likewise.
38264         * m4/host-os.m4: Likewise.
38265         * m4/iconv.m4: Likewise.
38266         * m4/iconv_open.m4: Likewise.
38267         * m4/inet_ntop.m4: Likewise.
38268         * m4/inet_pton.m4: Likewise.
38269         * m4/inline.m4: Likewise.
38270         * m4/intldir.m4: Likewise.
38271         * m4/intlmacosx.m4: Likewise.
38272         * m4/intmax.m4: Likewise.
38273         * m4/intmax_t.m4: Likewise.
38274         * m4/inttypes.m4: Likewise.
38275         * m4/inttypes_h.m4: Likewise.
38276         * m4/inttypes-pri.m4: Likewise.
38277         * m4/isapipe.m4: Likewise.
38278         * m4/isnand.m4: Likewise.
38279         * m4/isnanf.m4: Likewise.
38280         * m4/isnanl.m4: Likewise.
38281         * m4/javacomp.m4: Likewise.
38282         * m4/javaexec.m4: Likewise.
38283         * m4/jm-winsz1.m4: Likewise.
38284         * m4/jm-winsz2.m4: Likewise.
38285         * m4/lchown.m4: Likewise.
38286         * m4/lcmessage.m4: Likewise.
38287         * m4/ldexpl.m4: Likewise.
38288         * m4/lib-ld.m4: Likewise.
38289         * m4/lib-link.m4: Likewise.
38290         * m4/libsigsegv.m4: Likewise.
38291         * m4/link-follow.m4: Likewise.
38292         * m4/localcharset.m4: Likewise.
38293         * m4/locale-fr.m4: Likewise.
38294         * m4/locale-ja.m4: Likewise.
38295         * m4/locale-tr.m4: Likewise.
38296         * m4/locale-zh.m4: Likewise.
38297         * m4/lock.m4: Likewise.
38298         * m4/longlong.m4: Likewise.
38299         * m4/ls-mntd-fs.m4: Likewise.
38300         * m4/lstat.m4: Likewise.
38301         * m4/malloc.m4: Likewise.
38302         * m4/mathl.m4: Likewise.
38303         * m4/mbrtowc.m4: Likewise.
38304         * m4/mbstate_t.m4: Likewise.
38305         * m4/mbswidth.m4: Likewise.
38306         * m4/memchr.m4: Likewise.
38307         * m4/memcmp.m4: Likewise.
38308         * m4/memcpy.m4: Likewise.
38309         * m4/memmem.m4: Likewise.
38310         * m4/memmove.m4: Likewise.
38311         * m4/mempcpy.m4: Likewise.
38312         * m4/memrchr.m4: Likewise.
38313         * m4/memset.m4: Likewise.
38314         * m4/minmax.m4: Likewise.
38315         * m4/mkdir-slash.m4: Likewise.
38316         * m4/mkdtemp.m4: Likewise.
38317         * m4/mktime.m4: Likewise.
38318         * m4/mmap-anon.m4: Likewise.
38319         * m4/mountlist.m4: Likewise.
38320         * m4/nanosleep.m4: Likewise.
38321         * m4/nls.m4: Likewise.
38322         * m4/nocrash.m4: Likewise.
38323         * m4/open.m4: Likewise.
38324         * m4/openat.m4: Likewise.
38325         * m4/openmp.m4: Likewise.
38326         * m4/pathmax.m4: Likewise.
38327         * m4/perl.m4: Likewise.
38328         * m4/physmem.m4: Likewise.
38329         * m4/pipe.m4: Likewise.
38330         * m4/po.m4: Likewise.
38331         * m4/poll.m4: Likewise.
38332         * m4/posixtm.m4: Likewise.
38333         * m4/posixver.m4: Likewise.
38334         * m4/printf-frexp.m4: Likewise.
38335         * m4/printf-frexpl.m4: Likewise.
38336         * m4/printf-posix.m4: Likewise.
38337         * m4/printf-posix-rpl.m4: Likewise.
38338         * m4/printf.m4: Likewise.
38339         * m4/progtest.m4: Likewise.
38340         * m4/putenv.m4: Likewise.
38341         * m4/readline.m4: Likewise.
38342         * m4/readlink.m4: Likewise.
38343         * m4/readutmp.m4: Likewise.
38344         * m4/realloc.m4: Likewise.
38345         * m4/regex.m4: Likewise.
38346         * m4/relocatable.m4: Likewise.
38347         * m4/relocatable-lib.m4: Likewise.
38348         * m4/rename-dest-slash.m4: Likewise.
38349         * m4/rename.m4: Likewise.
38350         * m4/rmdir-errno.m4: Likewise.
38351         * m4/rmdir.m4: Likewise.
38352         * m4/roundf.m4: Likewise.
38353         * m4/roundl.m4: Likewise.
38354         * m4/rpmatch.m4: Likewise.
38355         * m4/save-cwd.m4: Likewise.
38356         * m4/selinux-selinux-h.m4: Likewise.
38357         * m4/setenv.m4: Likewise.
38358         * m4/settime.m4: Likewise.
38359         * m4/sig2str.m4: Likewise.
38360         * m4/sig_atomic_t.m4: Likewise.
38361         * m4/signalblocking.m4: Likewise.
38362         * m4/signbit.m4: Likewise.
38363         * m4/sigpipe.m4: Likewise.
38364         * m4/sockets.m4: Likewise.
38365         * m4/sockpfaf.m4: Likewise.
38366         * m4/st_dm_mode.m4: Likewise.
38367         * m4/stat-time.m4: Likewise.
38368         * m4/stdbool.m4: Likewise.
38369         * m4/stdint.m4: Likewise.
38370         * m4/stdint_h.m4: Likewise.
38371         * m4/stpcpy.m4: Likewise.
38372         * m4/stpncpy.m4: Likewise.
38373         * m4/strcase.m4: Likewise.
38374         * m4/strchrnul.m4: Likewise.
38375         * m4/strcspn.m4: Likewise.
38376         * m4/strdup.m4: Likewise.
38377         * m4/strftime.m4: Likewise.
38378         * m4/strndup.m4: Likewise.
38379         * m4/strnlen.m4: Likewise.
38380         * m4/strpbrk.m4: Likewise.
38381         * m4/strptime.m4: Likewise.
38382         * m4/strsep.m4: Likewise.
38383         * m4/strtod.m4: Likewise.
38384         * m4/strtoimax.m4: Likewise.
38385         * m4/strtok_r.m4: Likewise.
38386         * m4/strtol.m4: Likewise.
38387         * m4/strtoll.m4: Likewise.
38388         * m4/strtoul.m4: Likewise.
38389         * m4/strtoull.m4: Likewise.
38390         * m4/strtoumax.m4: Likewise.
38391         * m4/strverscmp.m4: Likewise.
38392         * m4/threadlib.m4: Likewise.
38393         * m4/timegm.m4: Likewise.
38394         * m4/tm_gmtoff.m4: Likewise.
38395         * m4/tmpdir.m4: Likewise.
38396         * m4/tmpfile.m4: Likewise.
38397         * m4/tzset.m4: Likewise.
38398         * m4/uintmax_t.m4: Likewise.
38399         * m4/unlinkdir.m4: Likewise.
38400         * m4/unlocked-io.m4: Likewise.
38401         * m4/uptime.m4: Likewise.
38402         * m4/userspec.m4: Likewise.
38403         * m4/utimbuf.m4: Likewise.
38404         * m4/utime.m4: Likewise.
38405         * m4/utimes-null.m4: Likewise.
38406         * m4/utimes.m4: Likewise.
38407         * m4/vararrays.m4: Likewise.
38408         * m4/vasnprintf.m4: Likewise.
38409         * m4/vfprintf-posix.m4: Likewise.
38410         * m4/vprintf-posix.m4: Likewise.
38411         * m4/wait-process.m4: Likewise.
38412         * m4/wchar_t.m4: Likewise.
38413         * m4/wint_t.m4: Likewise.
38414         * m4/write-any-file.m4: Likewise.
38415         * m4/yield.m4: Likewise.
38416
38417 2009-01-13  Bruno Haible  <bruno@clisp.org>
38418
38419         Avoid test-copy-file.sh failures when ACL support insufficient.
38420         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
38421         TESTS_ENVIRONMENT.
38422         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
38423         Reported by Jim Meyering.
38424
38425 2009-01-13  Bruno Haible  <bruno@clisp.org>
38426
38427         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
38428         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
38429         * modules/unistdio/u8-printf-parse (Files): Likewise.
38430         * modules/unistdio/u32-printf-parse (Files): Likewise.
38431         * modules/unistdio/ulc-printf-parse (Files): Likewise.
38432
38433 2009-01-13  Simon Josefsson  <simon@josefsson.org>
38434
38435         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
38436         and m4/inttypes_h.m4 too.
38437
38438 2009-01-12  Eric Blake  <ebb9@byu.net>
38439
38440         tests: IRIX 6.2 cc can't compile -0.0 into .data
38441         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
38442         rather than at compile-time.
38443         * tests/test-floorl.c (minus_zero): Likewise.
38444         * tests/test-frexpl.c (minus_zero): Likewise.
38445         * tests/test-isnan.c (minus_zerol): Likewise.
38446         * tests/test-isnanl.h (minus_zero): Likewise.
38447         * tests/test-ldexpl.c (minus_zero): Likewise.
38448         * tests/test-roundl.c (minus_zero): Likewise.
38449         * tests/test-signbit.c (minus_zerol): Likewise.
38450         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
38451         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
38452         * tests/test-truncl.c (minus_zero): Likewise.
38453         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
38454         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
38455         Reported by Tom G. Christensen and Nelson H. F. Beebe.
38456
38457 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
38458
38459         regex: fix glibc bug 9697
38460         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
38461         handling.
38462
38463 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
38464
38465         regex: fix glibc bug 697
38466         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
38467         being NULL also if there are no backreferences.
38468
38469 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
38470
38471         regex: merge glibc changes
38472         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
38473         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
38474         re_string_skip_chars, re_string_reconstruct): Likewise.
38475         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
38476
38477 2009-01-07  Jim Meyering  <meyering@redhat.com>
38478
38479         poll: filter through cppi
38480         * lib/poll.c: Indent cpp directives to reflect nesting.
38481
38482 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
38483
38484         poll: don't return uninitialized
38485         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
38486
38487 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
38488
38489         avoid compile failure on AIX 6.1
38490         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
38491         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
38492
38493 2009-01-04  Jim Meyering  <meyering@redhat.com>
38494
38495         remove duplicate inclusion of <stdio.h>
38496         * tests/test-fprintf-posix.c: Likewise.
38497         * tests/test-printf-posix.c: Likewise.
38498         * tests/test-snprintf-posix.c: Likewise.
38499         * tests/test-sprintf-posix.c: Likewise.
38500         * tests/test-vasprintf-posix.c: Likewise.
38501         * tests/test-vfprintf-posix.c: Likewise.
38502         * tests/test-vprintf-posix.c: Likewise.
38503         * tests/test-vsnprintf-posix.c: Likewise.
38504         * tests/test-vsprintf-posix.c: Likewise.
38505
38506 2009-01-03  Jim Meyering  <meyering@redhat.com>
38507
38508         gnulib-tool: fix sed-based filtering
38509         * gnulib-tool (func_filter_filelist): Remove extra backslash
38510         in sed_fff_filter definition.
38511
38512 2009-01-02  Jim Meyering  <meyering@redhat.com>
38513
38514         strftime: avoid compilation failure on Solaris 2.6
38515         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
38516         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
38517         Don't #define mbrlen or mbsinit, since now they're guaranteed to
38518         be available.  Reported by Tom G. Christensen.  Details in
38519         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
38520
38521 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38522             Bruno Haible  <bruno@clisp.org>
38523
38524         Speed up gnulib-tool by doing more string processing through shell
38525         built-ins.
38526         * gnulib-tool (fast_func_append): New variable.
38527         (func_remove_prefix, func_remove_suffix): New functions.
38528         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
38529         (func_filter_filelist): New function.
38530         (func_get_dependencies): Use func_remove_suffix instead of sed.
38531         (func_get_automake_snippet): Use func_filter_filelist instead of a
38532         subshell and sed invocation.
38533
38534 2009-01-01  Bruno Haible  <bruno@clisp.org>
38535
38536         Fix a security bug.
38537         * gnulib-tool (func_import, import, update): Don't allow the characters
38538         '"', '$', '`', '\' in macro arguments that become part of commands that
38539         are evaluated.
38540
38541 2009-01-01  Bruno Haible  <bruno@clisp.org>
38542
38543         * gnulib-tool (func_reset_sigpipe): Add more comments.
38544
38545 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38546
38547         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
38548         func_emit_tests_Makefile_am, func_import): Abort loops early if we
38549         already know the answer.
38550
38551 2009-01-01  Jim Meyering  <meyering@redhat.com>
38552
38553         * lib/version-etc.c (version_etc_va): Update copyright year.
38554
38555 2008-12-30  Bruno Haible  <bruno@clisp.org>
38556
38557         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
38558         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
38559         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
38560
38561 2008-12-29  Eric Blake  <ebb9@byu.net>
38562
38563         multiarch: avoid autoconf AC_REQUIRE bug
38564         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
38565         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
38566         2.63 and older.
38567         Reported by Bruno Haible, and analyzed in
38568         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
38569
38570 2008-12-29  Bruno Haible  <bruno@clisp.org>
38571
38572         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
38573         files in subdirectories correctly.
38574         Reported by Ralf Wildenhues.
38575
38576 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38577
38578         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
38579         rather than 'join FILE -', for Solaris join.
38580
38581 2008-12-29  Bruno Haible  <bruno@clisp.org>
38582
38583         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
38584         quoting.
38585         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
38586         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
38587         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
38588         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
38589         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
38590         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
38591         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
38592         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
38593         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
38594         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
38595         * m4/nls.m4 (AM_NLS): Likewise.
38596         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
38597         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
38598         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
38599         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
38600         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
38601         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
38602         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
38603         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
38604         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
38605         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
38606         * m4/xsize.m4 (gl_XSIZE): Likewise.
38607         Suggested by Jim Meyering.
38608
38609 2008-11-17  Bruce Korb  <bkorb@gnu.org>
38610
38611         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
38612         * lib/parse-duration.c: use a switch instead of cascading if's.
38613
38614 2008-12-29  Eric Blake  <ebb9@byu.net>
38615
38616         wchar.h: supply WEOF on Irix 5.3
38617         * lib/wchar.in.h (wint_t): Also supply WEOF.
38618         * lib/wctype.in.h (wint_t): Likewise.
38619         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
38620         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
38621         Reported by Tom G. Christensen.
38622
38623 2008-12-26  Bruno Haible  <bruno@clisp.org>
38624
38625         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
38626         i486, i586, i686.
38627
38628 2008-12-26  Bruno Haible  <bruno@clisp.org>
38629
38630         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
38631
38632 2008-12-26  Bruno Haible  <bruno@clisp.org>
38633
38634         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
38635         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
38636         not __STDC_CONSTANT_MACROS.
38637         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
38638
38639 2008-12-25  Bruno Haible  <bruno@clisp.org>
38640
38641         Add support for universal builds to vasnprintf.
38642         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
38643         universal builds, guess no.
38644         * modules/vasnprintf-posix (Depends-on): Add multiarch.
38645         * modules/vasprintf-posix (Depends-on): Likewise.
38646         * modules/fprintf-posix (Depends-on): Likewise.
38647         * modules/vfprintf-posix (Depends-on): Likewise.
38648         * modules/snprintf-posix (Depends-on): Likewise.
38649         * modules/vsnprintf-posix (Depends-on): Likewise.
38650         * modules/sprintf-posix (Depends-on): Likewise.
38651         * modules/vsprintf-posix (Depends-on): Likewise.
38652         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
38653         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
38654         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
38655         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
38656         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
38657         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
38658         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
38659
38660         Add support for universal builds to <inttypes.h>.
38661         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
38662         _SCNu64_PREFIX): In Apple
38663         universal builds, define directly, using _LP64.
38664         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
38665         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
38666         * modules/inttypes (Depends-on): Add multiarch.
38667         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
38668
38669         Add support for universal builds to <stdint.h>.
38670         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
38671         universal builds, define directly, using _LP64.
38672         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
38673         Apple universal builds, don't test for the size and suffix of ptrdiff_t
38674         and size_t.
38675         * modules/stdint (Depends-on): Add multiarch.
38676         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
38677
38678         New module 'multiarch'.
38679         * modules/multiarch: New file.
38680         * m4/multiarch.m4: New file.
38681
38682 2008-12-25  Bruno Haible  <bruno@clisp.org>
38683
38684         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
38685
38686 2008-12-25  Bruno Haible  <bruno@clisp.org>
38687
38688         * modules/btowc (License): Relicense under LGPLv2+.
38689         * modules/mbsinit (License): Likewise.
38690         * modules/mbrtowc (License): Likewise.
38691         * modules/wcrtomb (License): Likewise.
38692         * modules/streq (License): Likewise.
38693         Reported by David Lutterkort <lutter@redhat.com>.
38694
38695 2008-12-23  Bruno Haible  <bruno@clisp.org>
38696
38697         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
38698
38699 2008-12-23  Bruno Haible  <bruno@clisp.org>
38700
38701         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
38702         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
38703         GETADDRINFO_LIB, not in LIBS.
38704         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
38705         * modules/canon-host (Link): Likewise.
38706         * NEWS: Mention the change.
38707         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
38708         GETADDRINFO_LIB.
38709
38710 2008-12-22  Bruno Haible  <bruno@clisp.org>
38711
38712         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
38713         * doc/posix-functions/iswalpha_l.texi: Likewise.
38714         * doc/posix-functions/iswblank_l.texi: Likewise.
38715         * doc/posix-functions/iswcntrl_l.texi: Likewise.
38716         * doc/posix-functions/iswctype_l.texi: Likewise.
38717         * doc/posix-functions/iswdigit_l.texi: Likewise.
38718         * doc/posix-functions/iswgraph_l.texi: Likewise.
38719         * doc/posix-functions/iswlower_l.texi: Likewise.
38720         * doc/posix-functions/iswprint_l.texi: Likewise.
38721         * doc/posix-functions/iswpunct_l.texi: Likewise.
38722         * doc/posix-functions/iswspace_l.texi: Likewise.
38723         * doc/posix-functions/iswupper_l.texi: Likewise.
38724         * doc/posix-functions/iswxdigit_l.texi: Likewise.
38725         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
38726         * doc/posix-functions/open_wmemstream.texi: Likewise.
38727         * doc/posix-functions/swscanf.texi: Likewise.
38728         * doc/posix-functions/towctrans_l.texi: Likewise.
38729         * doc/posix-functions/towlower.texi: Likewise.
38730         * doc/posix-functions/towlower_l.texi: Likewise.
38731         * doc/posix-functions/towupper.texi: Likewise.
38732         * doc/posix-functions/towupper_l.texi: Likewise.
38733         * doc/posix-functions/vfwprintf.texi: Likewise.
38734         * doc/posix-functions/vfwscanf.texi: Likewise.
38735         * doc/posix-functions/vswscanf.texi: Likewise.
38736         * doc/posix-functions/vwprintf.texi: Likewise.
38737         * doc/posix-functions/vwscanf.texi: Likewise.
38738         * doc/posix-functions/wcpcpy.texi: Likewise.
38739         * doc/posix-functions/wcpncpy.texi: Likewise.
38740         * doc/posix-functions/wcscasecmp.texi: Likewise.
38741         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
38742         * doc/posix-functions/wcscoll_l.texi: Likewise.
38743         * doc/posix-functions/wcsdup.texi: Likewise.
38744         * doc/posix-functions/wcsncasecmp.texi: Likewise.
38745         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
38746         * doc/posix-functions/wcsnlen.texi: Likewise.
38747         * doc/posix-functions/wcsnrtombs.texi: Likewise.
38748         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
38749         * doc/posix-functions/wctrans_l.texi: Likewise.
38750         * doc/posix-functions/wctype_l.texi: Likewise.
38751         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
38752         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
38753         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
38754         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
38755         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
38756         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
38757         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
38758         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
38759         * doc/glibc-functions/wcschrnul.texi: Likewise.
38760         * doc/glibc-functions/wcsftime_l.texi: Likewise.
38761         * doc/glibc-functions/wcstod_l.texi: Likewise.
38762         * doc/glibc-functions/wcstof_l.texi: Likewise.
38763         * doc/glibc-functions/wcstol_l.texi: Likewise.
38764         * doc/glibc-functions/wcstold_l.texi: Likewise.
38765         * doc/glibc-functions/wcstoll_l.texi: Likewise.
38766         * doc/glibc-functions/wcstoq.texi: Likewise.
38767         * doc/glibc-functions/wcstoul_l.texi: Likewise.
38768         * doc/glibc-functions/wcstoull_l.texi: Likewise.
38769         * doc/glibc-functions/wcstouq.texi: Likewise.
38770         * doc/glibc-functions/wmempcpy.texi: Likewise.
38771
38772 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
38773             Eric Blake  <ebb9@byu.net>
38774             Paolo Bonzini  <bonzini@gnu.org>
38775             Bruno Haible  <bruno@clisp.org>
38776
38777         Make c-stack work on Haiku.
38778         * lib/c-stack.c (SA_ONSTACK): Define fallback.
38779         (c_stack_action): Use SA_ONSTACK flag.
38780
38781 2008-12-22  Bruno Haible  <bruno@clisp.org>
38782
38783         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
38784
38785 2008-12-22  Bruno Haible  <bruno@clisp.org>
38786
38787         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
38788         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
38789         being overridden.
38790         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
38791         New macros.
38792         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
38793         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
38794         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
38795         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
38796
38797 2008-12-22  Bruno Haible  <bruno@clisp.org>
38798
38799         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
38800         from test code.
38801
38802 2008-12-22  Eric Blake  <ebb9@byu.net>
38803
38804         Avoid gcc warnings on cygwin.
38805         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
38806         Avoid unused variable.
38807         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
38808         Likewise.
38809
38810 2008-12-22  Bruno Haible  <bruno@clisp.org>
38811
38812         Remove HAVE_MBRTOWC conditionals.
38813         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
38814         (mbscasecmp): Assume mbrtowc function.
38815         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
38816         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
38817         * lib/mbschr.c: Include mbuiter.h unconditionally.
38818         (mbschr): Assume mbrtowc function.
38819         * lib/mbscspn.c: Include mbuiter.h unconditionally.
38820         (mbscspn): Assume mbrtowc function.
38821         * lib/mbslen.c: Include mbuiter.h unconditionally.
38822         (mbslen): Assume mbrtowc function.
38823         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
38824         (mbsncasecmp): Assume mbrtowc function.
38825         * lib/mbsnlen.c: Include mbiter.h unconditionally.
38826         (mbsnlen): Assume mbrtowc function.
38827         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
38828         (mbspbrk): Assume mbrtowc function.
38829         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
38830         (mbspcasecmp): Assume mbrtowc function.
38831         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
38832         (mbsrchr): Assume mbrtowc function.
38833         * lib/mbssep.c: Include mbuiter.h unconditionally.
38834         (mbssep): Assume mbrtowc function.
38835         * lib/mbsspn.c: Include mbuiter.h unconditionally.
38836         (mbsspn): Assume mbrtowc function.
38837         * lib/mbsstr.c: Include mbuiter.h unconditionally.
38838         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
38839         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
38840         (mbstok_r): Assume mbrtowc function.
38841         * lib/propername.c: Include mbuiter.h unconditionally.
38842         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
38843         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
38844         (trim2): Assume mbrtowc function.
38845         * lib/mbswidth.c (mbsinit): Remove fallback definition.
38846         (mbsnwidth): Assume mbrtowc function.
38847         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
38848         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
38849         fallback definitions.
38850         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
38851
38852 2008-12-22  Bruno Haible  <bruno@clisp.org>
38853
38854         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
38855
38856 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
38857
38858         * modules/regex: Request emulations for the mb*/wc* functions we need.
38859         * m4/regex.m4: Don't look for those functions here.
38860         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
38861
38862 2008-12-22  Bruno Haible  <bruno@clisp.org>
38863
38864         * modules/fnmatch (Depends-on): Remove duplicated dependency.
38865
38866 2008-12-21  Bruno Haible  <bruno@clisp.org>
38867
38868         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
38869         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
38870         (Include): Remove conditionalization.
38871         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
38872         (Include): Remove conditionalization.
38873         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
38874         (Include): Remove conditionalization.
38875         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
38876         * m4/mbfile.m4 (gl_MBFILE): Likewise.
38877         * NEWS: Mention the change.
38878         Reported by Alan Hourihane <alanh@fairlite.co.uk>
38879         via Sergey Poznyakoff <gray@gnu.org.ua>.
38880
38881 2008-12-21  Bruno Haible  <bruno@clisp.org>
38882
38883         * MODULES.html.sh (Extended multibyte and wide character utilities
38884         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
38885         wcrtomb, wcsrtombs.
38886         (Support for systems lacking POSIX:2008): Add accept, bind, close,
38887         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
38888         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
38889         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
38890
38891 2008-12-21  Bruno Haible  <bruno@clisp.org>
38892
38893         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
38894
38895 2008-12-21  Bruno Haible  <bruno@clisp.org>
38896
38897         * modules/wcsnrtombs-tests: New file.
38898         * tests/test-wcsnrtombs1.sh: New file.
38899         * tests/test-wcsnrtombs2.sh: New file.
38900         * tests/test-wcsnrtombs3.sh: New file.
38901         * tests/test-wcsnrtombs4.sh: New file.
38902         * tests/test-wcsnrtombs.c: New file.
38903
38904         New module 'wcsnrtombs'.
38905         * lib/wchar.in.h (wcsnrtombs): New declaration.
38906         * lib/wcsnrtombs.c: New file.
38907         * lib/wcsrtombs-state.c: New file.
38908         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
38909         (internal_state): Remove variable.
38910         * m4/wcsnrtombs.m4: New file.
38911         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
38912         compilation units.
38913         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
38914         HAVE_WCSNRTOMBS.
38915         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
38916         HAVE_WCSNRTOMBS.
38917         * modules/wcsnrtombs: New file.
38918         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
38919         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
38920
38921 2008-12-21  Bruno Haible  <bruno@clisp.org>
38922
38923         * modules/wcsrtombs-tests: New file.
38924         * tests/test-wcsrtombs1.sh: New file.
38925         * tests/test-wcsrtombs2.sh: New file.
38926         * tests/test-wcsrtombs3.sh: New file.
38927         * tests/test-wcsrtombs4.sh: New file.
38928         * tests/test-wcsrtombs.c: New file.
38929
38930         New module 'wcsrtombs'.
38931         * lib/wchar.in.h (wcsrtombs): New declaration.
38932         * lib/wcsrtombs.c: New file.
38933         * m4/wcsrtombs.m4: New file.
38934         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
38935         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
38936         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
38937         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
38938         * modules/wcsrtombs: New file.
38939         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
38940         bugs.
38941
38942 2008-12-21  Bruno Haible  <bruno@clisp.org>
38943
38944         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
38945         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
38946         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
38947         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
38948         if not correct.
38949         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
38950         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
38951         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
38952         m4/locale-zh.m4, m4/codeset.m4.
38953         * doc/posix-functions/wcrtomb.texi: Document the bug.
38954
38955 2008-12-21  Bruno Haible  <bruno@clisp.org>
38956
38957         Work around a btowc() bug on IRIX 6.5.
38958         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
38959         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
38960         REPLACE_WTOBC if not.
38961         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
38962         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
38963         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
38964
38965 2008-12-21  Bruno Haible  <bruno@clisp.org>
38966
38967         * modules/wcrtomb-tests: New file.
38968         * tests/test-wcrtomb.sh: New file.
38969         * tests/test-wcrtomb.c: New file.
38970
38971         New module 'wcrtomb'.
38972         * lib/wchar.in.h (wcrtomb): New declaration.
38973         * lib/wcrtomb.c: New file.
38974         * m4/wcrtomb.m4: New file.
38975         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
38976         HAVE_WCRTOMB.
38977         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
38978         HAVE_WCRTOMB.
38979         * modules/wcrtomb: New file.
38980         * doc/posix-functions/wcrtomb.texi: Mention the new module.
38981
38982 2008-12-21  Bruno Haible  <bruno@clisp.org>
38983
38984         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
38985         * modules/mbsrtowcs (Files): Likewise.
38986         * modules/wctob (Files): Likewise.
38987         * modules/c-strcase-tests (Files): Likewise.
38988         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
38989         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
38990         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
38991         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
38992         * modules/vasnprintf-posix-tests (Files): Likewise.
38993
38994 2008-12-21  William Pursell  <bill.pursell@gmail.com>
38995
38996         gitlog-to-changelog: pass all command-line arguments to git-log
38997         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
38998         it is sometimes convenient to filter the commits in various ways.
38999         gitlog-to-changelog only allows --since to specify a start date,
39000         but git-log itself supports many other filtering mechanisms.
39001         At the moment, I want to filter by branch name.  Rather than
39002         adding a --branch option to gitlog-to-changelog, it seems more
39003         flexible to simply pass all options directly to git-log and let
39004         git do the work.  Notice that this effectively makes --since a
39005         redundant option for gitlog-to-changelog, but removing it would
39006         require current usage to change since calls would then require
39007         an additional '--'.
39008
39009 2008-12-21  Bruno Haible  <bruno@clisp.org>
39010
39011         * modules/mbsnrtowcs-tests: New file.
39012         * tests/test-mbsnrtowcs1.sh: New file.
39013         * tests/test-mbsnrtowcs2.sh: New file.
39014         * tests/test-mbsnrtowcs3.sh: New file.
39015         * tests/test-mbsnrtowcs4.sh: New file.
39016         * tests/test-mbsnrtowcs.c: New file.
39017
39018         New module 'mbsnrtowcs'.
39019         * lib/wchar.in.h (mbsnrtowcs): New declaration.
39020         * lib/mbsnrtowcs.c: New file.
39021         * lib/mbsrtowcs-state.c: New file.
39022         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
39023         (internal_state): Remove variable.
39024         * m4/mbsnrtowcs.m4: New file.
39025         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
39026         compilation units.
39027         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
39028         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
39029         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
39030         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
39031         * modules/mbsnrtowcs: New file.
39032         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
39033         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
39034         portability problem.
39035
39036 2008-12-21  Bruno Haible  <bruno@clisp.org>
39037
39038         Work around mbsrtowcs bug.
39039         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
39040         (gl_FUNC_MBSRTOWCS): Invoke it.
39041         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
39042         m4/locale-zh.m4.
39043         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
39044
39045 2008-12-21  Bruno Haible  <bruno@clisp.org>
39046
39047         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
39048
39049 2008-12-21  Bruno Haible  <bruno@clisp.org>
39050
39051         Update doc for AIX.
39052         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
39053         16-bit wchar_t type.
39054         * doc/posix-functions/btowc.texi: Likewise.
39055         * doc/posix-functions/fgetwc.texi: Likewise.
39056         * doc/posix-functions/fgetws.texi: Likewise.
39057         * doc/posix-functions/fputwc.texi: Likewise.
39058         * doc/posix-functions/fputws.texi: Likewise.
39059         * doc/posix-functions/fwide.texi: Likewise.
39060         * doc/posix-functions/fwprintf.texi: Likewise.
39061         * doc/posix-functions/fwscanf.texi: Likewise.
39062         * doc/posix-functions/getwchar.texi: Likewise.
39063         * doc/posix-functions/getwc.texi: Likewise.
39064         * doc/posix-functions/iswalnum.texi: Likewise.
39065         * doc/posix-functions/iswalpha.texi: Likewise.
39066         * doc/posix-functions/iswblank.texi: Likewise.
39067         * doc/posix-functions/iswcntrl.texi: Likewise.
39068         * doc/posix-functions/iswctype.texi: Likewise.
39069         * doc/posix-functions/iswdigit.texi: Likewise.
39070         * doc/posix-functions/iswgraph.texi: Likewise.
39071         * doc/posix-functions/iswlower.texi: Likewise.
39072         * doc/posix-functions/iswprint.texi: Likewise.
39073         * doc/posix-functions/iswpunct.texi: Likewise.
39074         * doc/posix-functions/iswspace.texi: Likewise.
39075         * doc/posix-functions/iswupper.texi: Likewise.
39076         * doc/posix-functions/iswxdigit.texi: Likewise.
39077         * doc/posix-functions/mbrtowc.texi: Likewise.
39078         * doc/posix-functions/mbsrtowcs.texi: Likewise.
39079         * doc/posix-functions/mbstowcs.texi: Likewise.
39080         * doc/posix-functions/mbtowc.texi: Likewise.
39081         * doc/posix-functions/putwchar.texi: Likewise.
39082         * doc/posix-functions/putwc.texi: Likewise.
39083         * doc/posix-functions/swprintf.texi: Likewise.
39084         * doc/posix-functions/tolower.texi: Likewise.
39085         * doc/posix-functions/toupper.texi: Likewise.
39086         * doc/posix-functions/towctrans.texi: Likewise.
39087         * doc/posix-functions/ungetwc.texi: Likewise.
39088         * doc/posix-functions/vswprintf.texi: Likewise.
39089         * doc/posix-functions/wcrtomb.texi: Likewise.
39090         * doc/posix-functions/wcscat.texi: Likewise.
39091         * doc/posix-functions/wcschr.texi: Likewise.
39092         * doc/posix-functions/wcscmp.texi: Likewise.
39093         * doc/posix-functions/wcscoll.texi: Likewise.
39094         * doc/posix-functions/wcscpy.texi: Likewise.
39095         * doc/posix-functions/wcscspn.texi: Likewise.
39096         * doc/posix-functions/wcsftime.texi: Likewise.
39097         * doc/posix-functions/wcslen.texi: Likewise.
39098         * doc/posix-functions/wcsncat.texi: Likewise.
39099         * doc/posix-functions/wcsncmp.texi: Likewise.
39100         * doc/posix-functions/wcsncpy.texi: Likewise.
39101         * doc/posix-functions/wcspbrk.texi: Likewise.
39102         * doc/posix-functions/wcsrchr.texi: Likewise.
39103         * doc/posix-functions/wcsrtombs.texi: Likewise.
39104         * doc/posix-functions/wcsspn.texi: Likewise.
39105         * doc/posix-functions/wcsstr.texi: Likewise.
39106         * doc/posix-functions/wcstod.texi: Likewise.
39107         * doc/posix-functions/wcstof.texi: Likewise.
39108         * doc/posix-functions/wcstoimax.texi: Likewise.
39109         * doc/posix-functions/wcstok.texi: Likewise.
39110         * doc/posix-functions/wcstold.texi: Likewise.
39111         * doc/posix-functions/wcstoll.texi: Likewise.
39112         * doc/posix-functions/wcstol.texi: Likewise.
39113         * doc/posix-functions/wcstombs.texi: Likewise.
39114         * doc/posix-functions/wcstoull.texi: Likewise.
39115         * doc/posix-functions/wcstoul.texi: Likewise.
39116         * doc/posix-functions/wcstoumax.texi: Likewise.
39117         * doc/posix-functions/wcswidth.texi: Likewise.
39118         * doc/posix-functions/wcsxfrm.texi: Likewise.
39119         * doc/posix-functions/wctob.texi: Likewise.
39120         * doc/posix-functions/wctomb.texi: Likewise.
39121         * doc/posix-functions/wctrans.texi: Likewise.
39122         * doc/posix-functions/wctype.texi: Likewise.
39123         * doc/posix-functions/wcwidth.texi: Likewise.
39124         * doc/posix-functions/wmemchr.texi: Likewise.
39125         * doc/posix-functions/wmemcmp.texi: Likewise.
39126         * doc/posix-functions/wmemcpy.texi: Likewise.
39127         * doc/posix-functions/wmemmove.texi: Likewise.
39128         * doc/posix-functions/wmemset.texi: Likewise.
39129         * doc/posix-functions/wprintf.texi: Likewise.
39130         * doc/posix-functions/wscanf.texi: Likewise.
39131
39132 2008-12-21  Bruno Haible  <bruno@clisp.org>
39133
39134         Update doc for HP-UX 11.11.
39135         * doc/posix-functions/btowc.texi: Clarify that the function is missing
39136         in HP-UX version 11.00, not in all versions of HP-UX 11.
39137         * doc/posix-functions/fwide.texi: Likewise.
39138         * doc/posix-functions/fwprintf.texi: Likewise.
39139         * doc/posix-functions/fwscanf.texi: Likewise.
39140         * doc/posix-functions/inet_ntop.texi: Likewise.
39141         * doc/posix-functions/inet_pton.texi: Likewise.
39142         * doc/posix-functions/mbrlen.texi: Likewise.
39143         * doc/posix-functions/mbrtowc.texi: Likewise.
39144         * doc/posix-functions/mbsinit.texi: Likewise.
39145         * doc/posix-functions/mbsrtowcs.texi: Likewise.
39146         * doc/posix-functions/swprintf.texi: Likewise.
39147         * doc/posix-functions/swscanf.texi: Likewise.
39148         * doc/posix-functions/towctrans.texi: Likewise.
39149         * doc/posix-functions/vfwprintf.texi: Likewise.
39150         * doc/posix-functions/vswprintf.texi: Likewise.
39151         * doc/posix-functions/vwprintf.texi: Likewise.
39152         * doc/posix-functions/wcrtomb.texi: Likewise.
39153         * doc/posix-functions/wcsrtombs.texi: Likewise.
39154         * doc/posix-functions/wcsstr.texi: Likewise.
39155         * doc/posix-functions/wctob.texi: Likewise.
39156         * doc/posix-functions/wctrans.texi: Likewise.
39157         * doc/posix-functions/wmemchr.texi: Likewise.
39158         * doc/posix-functions/wmemcmp.texi: Likewise.
39159         * doc/posix-functions/wmemcpy.texi: Likewise.
39160         * doc/posix-functions/wmemmove.texi: Likewise.
39161         * doc/posix-functions/wmemset.texi: Likewise.
39162         * doc/posix-functions/wprintf.texi: Likewise.
39163         * doc/posix-functions/wscanf.texi: Likewise.
39164
39165 2008-12-21  Bruno Haible  <bruno@clisp.org>
39166
39167         Work around a portability problem.
39168         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
39169         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
39170
39171 2008-12-20  Bruno Haible  <bruno@clisp.org>
39172
39173         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
39174         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
39175         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
39176         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
39177         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
39178
39179         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
39180         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
39181         set.
39182         (GNULIB_defined_mbstate_t): New macro.
39183         (mbsinit): Redefine if REPLACE_MBSINIT is set.
39184         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
39185         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
39186         reuses the system's mbrtowc function but works around the bugs.
39187         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
39188         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
39189         macros.
39190         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
39191         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
39192         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
39193         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
39194         REPLACE_MBSINIT if mbsinit needs to be overridden.
39195         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
39196         REPLACE_MBSINIT, REPLACE_MBRTOWC.
39197         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
39198         REPLACE_MBSINIT, REPLACE_MBRTOWC.
39199         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
39200         m4/locale-zh.m4.
39201         (Depends): Add mbsinit.
39202         * modules/mbsinit (Depends): Add mbrtowc.
39203         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
39204
39205 2008-12-20  Bruno Haible  <bruno@clisp.org>
39206
39207         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
39208         so that there are no conversion errors on AIX.
39209         * tests/test-mbsrtowcs.c (main): LIkewise.
39210
39211 2008-12-20  Bruno Haible  <bruno@clisp.org>
39212
39213         Work around wctob bug on Solaris <= 9.
39214         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
39215         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
39216         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
39217         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
39218         * modules/wctob (Files): Add m4/locale-fr.m4.
39219         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
39220
39221 2008-12-20  Bruno Haible  <bruno@clisp.org>
39222
39223         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
39224         /dev/null.
39225         * tests/test-select-in.sh: Likewise.
39226         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
39227
39228 2008-12-20  Bruno Haible  <bruno@clisp.org>
39229
39230         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
39231         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
39232         Cygwin 1.5.x.
39233
39234 2008-12-20  Bruno Haible  <bruno@clisp.org>
39235
39236         Ensure mbstate_t is defined on HP-UX 11.11.
39237         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
39238         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
39239         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
39240         AC_USE_SYSTEM_EXTENSIONS.
39241         * modules/fnmatch (Depends-on): Add extensions.
39242         * modules/mbrlen (Depends-on): Likewise.
39243         * modules/mbrtowc (Depends-on): Likewise.
39244         * modules/mbsinit (Depends-on): Likewise.
39245         * modules/mbsrtowcs (Depends-on): Likewise.
39246         * modules/mbswidth (Depends-on): Likewise.
39247         * modules/quotearg (Depends-on): Likewise.
39248         * modules/strftime (Depends-on): Likewise.
39249
39250 2008-12-20  Bruno Haible  <bruno@clisp.org>
39251
39252         Ensure wctob is declared on IRIX 6.5.
39253         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
39254         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
39255         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
39256         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
39257         of HAVE_WCTOB.
39258         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
39259         HAVE_WCTOB.
39260         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
39261
39262 2008-12-19  Bruno Haible  <bruno@clisp.org>
39263
39264         * modules/mbsrtowcs-tests: New file.
39265         * tests/test-mbsrtowcs1.sh: New file.
39266         * tests/test-mbsrtowcs2.sh: New file.
39267         * tests/test-mbsrtowcs3.sh: New file.
39268         * tests/test-mbsrtowcs4.sh: New file.
39269         * tests/test-mbsrtowcs.c: New file.
39270
39271         New module 'mbsrtowcs'.
39272         * lib/wchar.in.h (mbsrtowcs): New declaration.
39273         * lib/mbsrtowcs.c: New file.
39274         * m4/mbsrtowcs.m4: New file.
39275         * modules/mbsrtowcs: New file.
39276         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
39277         HAVE_MBSRTOWCS.
39278         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
39279         HAVE_MBSRTOWCS.
39280         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
39281
39282 2008-12-19  Bruno Haible  <bruno@clisp.org>
39283
39284         New module 'mbrlen'.
39285         * lib/wchar.in.h (mbrlen): New declaration.
39286         * lib/mbrlen.c: New file.
39287         * m4/mbrlen.m4: New file.
39288         * modules/mbrlen: New file.
39289         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
39290         HAVE_MBRLEN.
39291         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
39292         HAVE_MBRLEN.
39293         * doc/posix-functions/mbrlen.texi: Document the new module.
39294
39295 2008-12-19  Bruno Haible  <bruno@clisp.org>
39296
39297         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
39298         * modules/mbrtowc (Depends-on): Add verify.
39299         Suggested by Paul Eggert.
39300
39301 2008-12-18  Bruno Haible  <bruno@clisp.org>
39302
39303         * modules/mbsinit-tests: New file.
39304         * tests/test-mbsinit.sh: New file.
39305         * tests/test-mbsinit.c: New file.
39306
39307 2008-12-18  Bruno Haible  <bruno@clisp.org>
39308
39309         * modules/mbrtowc-tests: New file.
39310         * tests/test-mbrtowc1.sh: New file.
39311         * tests/test-mbrtowc2.sh: New file.
39312         * tests/test-mbrtowc3.sh: New file.
39313         * tests/test-mbrtowc4.sh: New file.
39314         * tests/test-mbrtowc.c: New file.
39315
39316         New module 'mbrtowc'.
39317         * lib/wchar.in.h (mbstate_t): Override when the system does not have
39318         mbsinit and mbrtowc.
39319         (mbrtowc): New declaration.
39320         * lib/mbrtowc.c: New file.
39321         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
39322         * modules/mbrtowc: New file.
39323         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
39324         HAVE_MBRTOWC.
39325         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
39326         HAVE_MBRTOWC.
39327         * doc/posix-functions/mbrtowc.texi: Document the new module.
39328
39329 2008-12-18  Bruno Haible  <bruno@clisp.org>
39330
39331         New module 'wctob'.
39332         * lib/wchar.in.h (wctob): New declaration.
39333         * lib/wctob.c: New file.
39334         * m4/wctob.m4: New file.
39335         * modules/wctob: New file.
39336         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
39337         HAVE_WCTOB.
39338         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
39339         * doc/posix-functions/wctob.texi: Document the new module.
39340
39341 2008-12-18  Bruno Haible  <bruno@clisp.org>
39342
39343         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
39344         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
39345
39346 2008-12-18  Simon Josefsson  <simon@josefsson.org>
39347
39348         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
39349         G. Christensen" <tgc@jupiterrise.com>.
39350
39351         * lib/flock.c: Need to include errno.h.  Reported by "Tom
39352         G. Christensen" <tgc@jupiterrise.com>.
39353
39354         * lib/flock.c: Need to include string.h.  Reported by "Tom
39355         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
39356         <ebb9@byu.net>.
39357
39358 2008-12-18  Bruno Haible  <bruno@clisp.org>
39359
39360         * m4/locale-ja.m4: New file, from GNU gettext.
39361
39362 2008-12-17  Bruno Haible  <bruno@clisp.org>
39363
39364         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
39365         Suggested by Eric Blake.
39366
39367 2008-12-17  Bruno Haible  <bruno@clisp.org>
39368
39369         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
39370
39371 2008-12-17  Bruno Haible  <bruno@clisp.org>
39372
39373         * lib/mbsinit.c: Include verify.h. Verify an assumption.
39374         * modules/mbsinit (Depends-on): Add verify.
39375         Suggested by Paul Eggert.
39376
39377 2008-12-17  Bruno Haible  <bruno@clisp.org>
39378
39379         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
39380         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
39381         gl_FUNC_MBRTOWC.
39382         * m4/mbiter.m4 (gl_MBITER): LIkewise.
39383         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
39384         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
39385         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
39386         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
39387         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
39388         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
39389         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
39390         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
39391         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
39392         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
39393         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
39394         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
39395         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
39396         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
39397         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
39398         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
39399         * modules/trim (configure.ac): Likewise.
39400
39401 2008-12-17  Bruno Haible  <bruno@clisp.org>
39402
39403         * modules/btowc-tests: New file.
39404         * tests/test-btowc1.sh: New file.
39405         * tests/test-btowc2.sh: New file.
39406         * tests/test-btowc.c: New file.
39407
39408         New module 'btowc'.
39409         * lib/wchar.in.h (btowc): New declaration.
39410         * lib/btowc.c: New file.
39411         * m4/btowc.m4: New file.
39412         * modules/btowc: New file.
39413         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
39414         HAVE_BTOWC.
39415         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
39416         * doc/posix-functions/btowc.texi: Document the new module.
39417
39418 2008-12-17  Bruno Haible  <bruno@clisp.org>
39419
39420         New module 'mbsinit'.
39421         * lib/wchar.in.h (mbsinit): New declaration.
39422         * lib/mbsinit.c: New file.
39423         * m4/mbsinit.m4: New file.
39424         * modules/mbsinit: New file.
39425         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
39426         HAVE_MBSINIT.
39427         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
39428         HAVE_MBSINIT.
39429         * doc/posix-functions/mbsinit.texi: Document the new module.
39430
39431 2008-12-16  Bruno Haible  <bruno@clisp.org>
39432
39433         * lib/unistd.in.h: Add comment.
39434         * tests/test-environ.c: Don't include <stdlib.h>.
39435
39436 2008-12-16  Bruno Haible  <bruno@clisp.org>
39437
39438         * lib/parse-duration.h (parse_duration): Document return value
39439         convention.
39440         * lib/parse-duration.c: Include specification header first. Add
39441         comments.
39442         (_): Remove macro.
39443         (parse_year_month_day, parse_hour_minute_second): Move side effects
39444         outside of strchr call.
39445         (parse_non_iso8601): Move side effects outside of isspace call.
39446         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
39447         call.
39448
39449 2008-12-16  Bruno Haible  <bruno@clisp.org>
39450
39451         * tests/test-parse-duration.sh: Produce no output when the test
39452         succeeds.
39453
39454 2008-12-16  Bruno Haible  <bruno@clisp.org>
39455
39456         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
39457         expressions.
39458
39459 2008-12-15  Bruno Haible  <bruno@clisp.org>
39460
39461         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
39462         * doc/glibc-functions/flistxattr.texi: Likewise.
39463         * doc/glibc-functions/fopencookie.texi: Likewise.
39464         * doc/glibc-functions/fremovexattr.texi: Likewise.
39465         * doc/glibc-functions/fsetxattr.texi: Likewise.
39466         * doc/glibc-functions/getxattr.texi: Likewise.
39467         * doc/glibc-functions/lgetxattr.texi: Likewise.
39468         * doc/glibc-functions/listxattr.texi: Likewise.
39469         * doc/glibc-functions/llistxattr.texi: Likewise.
39470         * doc/glibc-functions/lremovexattr.texi: Likewise.
39471         * doc/glibc-functions/lsetxattr.texi: Likewise.
39472         * doc/glibc-functions/removexattr.texi: Likewise.
39473         * doc/glibc-functions/setxattr.texi: Likewise.
39474         * doc/posix-functions/open_memstream.texi: Likewise.
39475
39476 2008-12-15  Eric Blake  <ebb9@byu.net>
39477
39478         Update doc for cygwin 1.7.
39479         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
39480         functions.
39481         * doc/posix-functions/fchmodat.texi: Likewise.
39482         * doc/posix-functions/fchownat.texi: Likewise.
39483         * doc/posix-functions/fdopendir.texi: Likewise.
39484         * doc/posix-functions/fmemopen.texi: Likewise.
39485         * doc/posix-functions/freeaddrinfo.texi: Likewise.
39486         * doc/posix-functions/fstatat.texi: Likewise.
39487         * doc/posix-functions/futimens.texi: Likewise.
39488         * doc/posix-functions/gai_strerror.texi: Likewise.
39489         * doc/posix-functions/getaddrinfo.texi: Likewise.
39490         * doc/posix-functions/getnameinfo.texi: Likewise.
39491         * doc/posix-functions/if_freenameindex.texi: Likewise.
39492         * doc/posix-functions/if_indextoname.texi: Likewise.
39493         * doc/posix-functions/if_nameindex.texi: Likewise.
39494         * doc/posix-functions/if_nametoindex.texi: Likewise.
39495         * doc/posix-functions/insque.texi: Likewise.
39496         * doc/posix-functions/linkat.texi: Likewise.
39497         * doc/posix-functions/llrint.texi: Likewise.
39498         * doc/posix-functions/llrintf.texi: Likewise.
39499         * doc/posix-functions/llrintl.texi: Likewise.
39500         * doc/posix-functions/lockf.texi: Likewise.
39501         * doc/posix-functions/lrintl.texi: Likewise.
39502         * doc/posix-functions/mkdirat.texi: Likewise.
39503         * doc/posix-functions/mkfifoat.texi: Likewise.
39504         * doc/posix-functions/mknodat.texi: Likewise.
39505         * doc/posix-functions/mq_close.texi: Likewise.
39506         * doc/posix-functions/mq_getattr.texi: Likewise.
39507         * doc/posix-functions/mq_notify.texi: Likewise.
39508         * doc/posix-functions/mq_open.texi: Likewise.
39509         * doc/posix-functions/mq_receive.texi: Likewise.
39510         * doc/posix-functions/mq_send.texi: Likewise.
39511         * doc/posix-functions/mq_setattr.texi: Likewise.
39512         * doc/posix-functions/mq_timedreceive.texi: Likewise.
39513         * doc/posix-functions/mq_timedsend.texi: Likewise.
39514         * doc/posix-functions/mq_unlink.texi: Likewise.
39515         * doc/posix-functions/open_memstream.texi: Likewise.
39516         * doc/posix-functions/openat.texi: Likewise.
39517         * doc/posix-functions/posix_fadvise.texi: Likewise.
39518         * doc/posix-functions/posix_fallocate.texi: Likewise.
39519         * doc/posix-functions/posix_madvise.texi: Likewise.
39520         * doc/posix-functions/posix_memalign.texi: Likewise.
39521         * doc/posix-functions/posix_openpt.texi: Likewise.
39522         * doc/posix-functions/readlinkat.texi: Likewise.
39523         * doc/posix-functions/remque.texi: Likewise.
39524         * doc/posix-functions/renameat.texi: Likewise.
39525         * doc/posix-functions/rintl.texi: Likewise.
39526         * doc/posix-functions/sem_unlink.texi: Likewise.
39527         * doc/posix-functions/shm_open.texi: Likewise.
39528         * doc/posix-functions/shm_unlink.texi: Likewise.
39529         * doc/posix-functions/signgam.texi: Likewise.
39530         * doc/posix-functions/sigset.texi: Likewise.
39531         * doc/posix-functions/stpcpy.texi: Likewise.
39532         * doc/posix-functions/stpncpy.texi: Likewise.
39533         * doc/posix-functions/strerror.texi: Likewise.
39534         * doc/posix-functions/strtod.texi: Likewise.
39535         * doc/posix-functions/symlinkat.texi: Likewise.
39536         * doc/posix-functions/unlinkat.texi: Likewise.
39537         * doc/posix-functions/utimensat.texi: Likewise.
39538         * doc/glibc-functions/bindresvport.texi: Likewise.
39539         * doc/glibc-functions/dn_expand.texi: Likewise.
39540         * doc/glibc-functions/exp10.texi: Likewise.
39541         * doc/glibc-functions/exp10f.texi: Likewise.
39542         * doc/glibc-functions/fgetxattr.texi: Likewise.
39543         * doc/glibc-functions/flistxattr.texi: Likewise.
39544         * doc/glibc-functions/fopencookie.texi: Likewise.
39545         * doc/glibc-functions/freeifaddrs.texi: Likewise.
39546         * doc/glibc-functions/fremovexattr.texi: Likewise.
39547         * doc/glibc-functions/fsetxattr.texi: Likewise.
39548         * doc/glibc-functions/getifaddrs.texi: Likewise.
39549         * doc/glibc-functions/getxattr.texi: Likewise.
39550         * doc/glibc-functions/lgetxattr.texi: Likewise.
39551         * doc/glibc-functions/listxattr.texi: Likewise.
39552         * doc/glibc-functions/llistxattr.texi: Likewise.
39553         * doc/glibc-functions/lremovexattr.texi: Likewise.
39554         * doc/glibc-functions/lsetxattr.texi: Likewise.
39555         * doc/glibc-functions/pow10.texi: Likewise.
39556         * doc/glibc-functions/pow10f.texi: Likewise.
39557         * doc/glibc-functions/rcmd_af.texi: Likewise.
39558         * doc/glibc-functions/removexattr.texi: Likewise.
39559         * doc/glibc-functions/res_init.texi: Likewise.
39560         * doc/glibc-functions/res_mkquery.texi: Likewise.
39561         * doc/glibc-functions/res_query.texi: Likewise.
39562         * doc/glibc-functions/res_querydomain.texi: Likewise.
39563         * doc/glibc-functions/res_send.texi: Likewise.
39564         * doc/glibc-functions/rresvport_af.texi: Likewise.
39565         * doc/glibc-functions/setxattr.texi: Likewise.
39566         * doc/glibc-functions/strcasestr.texi: Likewise.
39567
39568 2008-12-15  Bruno Haible  <bruno@clisp.org>
39569
39570         Fix compilation error on OSF/1 4.0.
39571         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
39572         <sys/time.h>, simply delegate to the system header.
39573         Reported by Daniel Richard G. <oss@teragram.com>.
39574
39575 2008-12-15  Bruno Haible  <bruno@clisp.org>
39576
39577         * doc/posix-functions/openat.texi: Mention the 'openat' module.
39578         * doc/posix-functions/fchmodat.texi: Likewise.
39579         * doc/posix-functions/fchownat.texi: Likewise.
39580         * doc/posix-functions/fdopendir.texi: Likewise.
39581         * doc/posix-functions/fstatat.texi: Likewise.
39582         * doc/posix-functions/mkdirat.texi: Likewise.
39583         * doc/posix-functions/unlinkat.texi: Likewise.
39584
39585 2008-12-14  Bruno Haible  <bruno@clisp.org>
39586
39587         Update doc for POSIX:2008.
39588         * doc/posix-functions/faccessat.texi: New file.
39589         * doc/posix-functions/fchmodat.texi: New file.
39590         * doc/posix-functions/fchownat.texi: New file.
39591         * doc/posix-functions/fdopendir.texi: New file.
39592         * doc/posix-functions/fstatat.texi: New file.
39593         * doc/posix-functions/futimens.texi: New file.
39594         * doc/posix-functions/linkat.texi: New file.
39595         * doc/posix-functions/mkdirat.texi: New file.
39596         * doc/posix-functions/mkfifoat.texi: New file.
39597         * doc/posix-functions/mknodat.texi: New file.
39598         * doc/posix-functions/open_wmemstream.texi: New file.
39599         * doc/posix-functions/openat.texi: New file.
39600         * doc/posix-functions/psiginfo.texi: New file.
39601         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
39602         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
39603         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
39604         * doc/posix-functions/readlinkat.texi: New file.
39605         * doc/posix-functions/renameat.texi: New file.
39606         * doc/posix-functions/strerror_l.texi: New file.
39607         * doc/posix-functions/symlinkat.texi: New file.
39608         * doc/posix-functions/unlinkat.texi: New file.
39609         * doc/posix-functions/utimensat.texi: New file.
39610         * doc/gnulib.texi (Function Substitutes): Add these subsections.
39611
39612 2008-12-14  Bruno Haible  <bruno@clisp.org>
39613
39614         Update doc for POSIX:2008.
39615         * doc/posix-functions/alphasort.texi: Renamed from
39616         doc/glibc-functions/alphasort.texi.
39617         * doc/posix-functions/dirfd.texi: Renamed from
39618         doc/glibc-functions/dirfd.texi.
39619         * doc/posix-functions/dprintf.texi: Renamed from
39620         doc/glibc-functions/dprintf.texi.
39621         * doc/posix-functions/duplocale.texi: Renamed from
39622         doc/glibc-functions/duplocale.texi.
39623         * doc/posix-functions/fexecve.texi: Renamed from
39624         doc/glibc-functions/fexecve.texi.
39625         * doc/posix-functions/fmemopen.texi: Renamed from
39626         doc/glibc-functions/fmemopen.texi.
39627         * doc/posix-functions/freelocale.texi: Renamed from
39628         doc/glibc-functions/freelocale.texi.
39629         * doc/posix-functions/getdate_err.texi: Renamed from
39630         doc/glibc-functions/getdate_err.texi.
39631         * doc/posix-functions/isalnum_l.texi: Renamed from
39632         doc/glibc-functions/isalnum_l.texi.
39633         * doc/posix-functions/isalpha_l.texi: Renamed from
39634         doc/glibc-functions/isalpha_l.texi.
39635         * doc/posix-functions/isblank_l.texi: Renamed from
39636         doc/glibc-functions/isblank_l.texi.
39637         * doc/posix-functions/iscntrl_l.texi: Renamed from
39638         doc/glibc-functions/iscntrl_l.texi.
39639         * doc/posix-functions/isdigit_l.texi: Renamed from
39640         doc/glibc-functions/isdigit_l.texi.
39641         * doc/posix-functions/isgraph_l.texi: Renamed from
39642         doc/glibc-functions/isgraph_l.texi.
39643         * doc/posix-functions/islower_l.texi: Renamed from
39644         doc/glibc-functions/islower_l.texi.
39645         * doc/posix-functions/isprint_l.texi: Renamed from
39646         doc/glibc-functions/isprint_l.texi.
39647         * doc/posix-functions/ispunct_l.texi: Renamed from
39648         doc/glibc-functions/ispunct_l.texi.
39649         * doc/posix-functions/isspace_l.texi: Renamed from
39650         doc/glibc-functions/isspace_l.texi.
39651         * doc/posix-functions/isupper_l.texi: Renamed from
39652         doc/glibc-functions/isupper_l.texi.
39653         * doc/posix-functions/iswalnum_l.texi: Renamed from
39654         doc/glibc-functions/iswalnum_l.texi.
39655         * doc/posix-functions/iswalpha_l.texi: Renamed from
39656         doc/glibc-functions/iswalpha_l.texi.
39657         * doc/posix-functions/iswblank_l.texi: Renamed from
39658         doc/glibc-functions/iswblank_l.texi.
39659         * doc/posix-functions/iswcntrl_l.texi: Renamed from
39660         doc/glibc-functions/iswcntrl_l.texi.
39661         * doc/posix-functions/iswctype_l.texi: Renamed from
39662         doc/glibc-functions/iswctype_l.texi.
39663         * doc/posix-functions/iswdigit_l.texi: Renamed from
39664         doc/glibc-functions/iswdigit_l.texi.
39665         * doc/posix-functions/iswgraph_l.texi: Renamed from
39666         doc/glibc-functions/iswgraph_l.texi.
39667         * doc/posix-functions/iswlower_l.texi: Renamed from
39668         doc/glibc-functions/iswlower_l.texi.
39669         * doc/posix-functions/iswprint_l.texi: Renamed from
39670         doc/glibc-functions/iswprint_l.texi.
39671         * doc/posix-functions/iswpunct_l.texi: Renamed from
39672         doc/glibc-functions/iswpunct_l.texi.
39673         * doc/posix-functions/iswspace_l.texi: Renamed from
39674         doc/glibc-functions/iswspace_l.texi.
39675         * doc/posix-functions/iswupper_l.texi: Renamed from
39676         doc/glibc-functions/iswupper_l.texi.
39677         * doc/posix-functions/iswxdigit_l.texi: Renamed from
39678         doc/glibc-functions/iswxdigit_l.texi.
39679         * doc/posix-functions/isxdigit_l.texi: Renamed from
39680         doc/glibc-functions/isxdigit_l.texi.
39681         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
39682         doc/glibc-functions/mbsnrtowcs.texi.
39683         * doc/posix-functions/mkdtemp.texi: Renamed from
39684         doc/glibc-functions/mkdtemp.texi.
39685         * doc/posix-functions/newlocale.texi: Renamed from
39686         doc/glibc-functions/newlocale.texi.
39687         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
39688         doc/glibc-functions/nl_langinfo_l.texi.
39689         * doc/posix-functions/open_memstream.texi: Renamed from
39690         doc/glibc-functions/open_memstream.texi.
39691         * doc/posix-functions/opterr.texi: Renamed from
39692         doc/glibc-functions/opterr.texi.
39693         * doc/posix-functions/optind.texi: Renamed from
39694         doc/glibc-functions/optind.texi.
39695         * doc/posix-functions/optopt.texi: Renamed from
39696         doc/glibc-functions/optopt.texi.
39697         * doc/posix-functions/psignal.texi: Renamed from
39698         doc/glibc-functions/psignal.texi.
39699         * doc/posix-functions/scandir.texi: Renamed from
39700         doc/glibc-functions/scandir.texi.
39701         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
39702         doc/glibc-functions/sched_get_priority_min.texi.
39703         * doc/posix-functions/signgam.texi: Renamed from
39704         doc/glibc-functions/signgam.texi.
39705         * doc/posix-functions/stpcpy.texi: Renamed from
39706         doc/glibc-functions/stpcpy.texi.
39707         * doc/posix-functions/stpncpy.texi: Renamed from
39708         doc/glibc-functions/stpncpy.texi.
39709         * doc/posix-functions/strcasecmp_l.texi: Renamed from
39710         doc/glibc-functions/strcasecmp_l.texi.
39711         * doc/posix-functions/strcoll_l.texi: Renamed from
39712         doc/glibc-functions/strcoll_l.texi.
39713         * doc/posix-functions/strfmon_l.texi: Renamed from
39714         doc/glibc-functions/strfmon_l.texi.
39715         * doc/posix-functions/strftime_l.texi: Renamed from
39716         doc/glibc-functions/strftime_l.texi.
39717         * doc/posix-functions/strncasecmp_l.texi: Renamed from
39718         doc/glibc-functions/strncasecmp_l.texi.
39719         * doc/posix-functions/strndup.texi: Renamed from
39720         doc/glibc-functions/strndup.texi.
39721         * doc/posix-functions/strnlen.texi: Renamed from
39722         doc/glibc-functions/strnlen.texi.
39723         * doc/posix-functions/strsignal.texi: Renamed from
39724         doc/glibc-functions/strsignal.texi.
39725         * doc/posix-functions/strxfrm_l.texi: Renamed from
39726         doc/glibc-functions/strxfrm_l.texi.
39727         * doc/posix-functions/timer_gettime.texi: Renamed from
39728         doc/glibc-functions/timer_gettime.texi.
39729         * doc/posix-functions/tolower_l.texi: Renamed from
39730         doc/glibc-functions/tolower_l.texi.
39731         * doc/posix-functions/toupper_l.texi: Renamed from
39732         doc/glibc-functions/toupper_l.texi.
39733         * doc/posix-functions/towctrans_l.texi: Renamed from
39734         doc/glibc-functions/towctrans_l.texi.
39735         * doc/posix-functions/towlower_l.texi: Renamed from
39736         doc/glibc-functions/towlower_l.texi.
39737         * doc/posix-functions/towupper_l.texi: Renamed from
39738         doc/glibc-functions/towupper_l.texi.
39739         * doc/posix-functions/uselocale.texi: Renamed from
39740         doc/glibc-functions/uselocale.texi.
39741         * doc/posix-functions/vdprintf.texi: Renamed from
39742         doc/glibc-functions/vdprintf.texi.
39743         * doc/posix-functions/wcpcpy.texi:
39744         Renamed from doc/glibc-functions/wcpcpy.texi.
39745         * doc/posix-functions/wcpncpy.texi: Renamed from
39746         doc/glibc-functions/wcpncpy.texi.
39747         * doc/posix-functions/wcscasecmp.texi: Renamed from
39748         doc/glibc-functions/wcscasecmp.texi.
39749         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
39750         doc/glibc-functions/wcscasecmp_l.texi.
39751         * doc/posix-functions/wcscoll_l.texi: Renamed from
39752         doc/glibc-functions/wcscoll_l.texi.
39753         * doc/posix-functions/wcsdup.texi: Renamed from
39754         doc/glibc-functions/wcsdup.texi.
39755         * doc/posix-functions/wcsncasecmp.texi: Renamed from
39756         doc/glibc-functions/wcsncasecmp.texi.
39757         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
39758         doc/glibc-functions/wcsncasecmp_l.texi.
39759         * doc/posix-functions/wcsnlen.texi: Renamed from
39760         doc/glibc-functions/wcsnlen.texi.
39761         * doc/posix-functions/wcsnrtombs.texi: Renamed from
39762         doc/glibc-functions/wcsnrtombs.texi.
39763         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
39764         doc/glibc-functions/wcsxfrm_l.texi.
39765         * doc/posix-functions/wctrans_l.texi: Renamed from
39766         doc/glibc-functions/wctrans_l.texi.
39767         * doc/posix-functions/wctype_l.texi: Renamed from
39768         doc/glibc-functions/wctype_l.texi.
39769         * doc/gnulib.texi (Function Substitutes): Add these subsections.
39770         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
39771         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
39772         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
39773         these subsections.
39774         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
39775         Remove sections.
39776
39777 2008-12-14  Bruno Haible  <bruno@clisp.org>
39778
39779         Update doc for POSIX:2008.
39780         * doc/posix-functions/*.texi: Update URL of POSIX specification.
39781
39782 2008-12-14  Bruno Haible  <bruno@clisp.org>
39783
39784         Update doc for POSIX:2008.
39785         * doc/pastposix-functions/bcmp.texi: Renamed from
39786         doc/posix-functions/bcmp.texi.
39787         * doc/pastposix-functions/bcopy.texi: Renamed from
39788         doc/posix-functions/bcopy.texi.
39789         * doc/pastposix-functions/bsd_signal.texi: Renamed from
39790         doc/posix-functions/bsd_signal.texi.
39791         * doc/pastposix-functions/bzero.texi: Renamed from
39792         doc/posix-functions/bzero.texi.
39793         * doc/pastposix-functions/ecvt.texi: Renamed from
39794         doc/posix-functions/ecvt.texi.
39795         * doc/pastposix-functions/fcvt.texi: Renamed from
39796         doc/posix-functions/fcvt.texi.
39797         * doc/pastposix-functions/ftime.texi: Renamed from
39798         doc/posix-functions/ftime.texi.
39799         * doc/pastposix-functions/gcvt.texi: Renamed from
39800         doc/posix-functions/gcvt.texi.
39801         * doc/pastposix-functions/getcontext.texi: Renamed from
39802         doc/posix-functions/getcontext.texi.
39803         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
39804         doc/posix-functions/gethostbyaddr.texi.
39805         * doc/pastposix-functions/gethostbyname.texi: Renamed from
39806         doc/posix-functions/gethostbyname.texi.
39807         * doc/pastposix-functions/getwd.texi: Renamed from
39808         doc/posix-functions/getwd.texi.
39809         * doc/pastposix-functions/h_errno.texi: Renamed from
39810         doc/posix-functions/h_errno.texi.
39811         * doc/pastposix-functions/index.texi: Renamed from
39812         doc/posix-functions/index.texi.
39813         * doc/pastposix-functions/makecontext.texi: Renamed from
39814         doc/posix-functions/makecontext.texi.
39815         * doc/pastposix-functions/mktemp.texi: Renamed from
39816         doc/posix-functions/mktemp.texi.
39817         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
39818         doc/posix-functions/pthread_attr_getstackaddr.texi.
39819         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
39820         doc/posix-functions/pthread_attr_setstackaddr.texi.
39821         * doc/pastposix-functions/rindex.texi: Renamed from
39822         doc/posix-functions/rindex.texi.
39823         * doc/pastposix-functions/scalb.texi: Renamed from
39824         doc/posix-functions/scalb.texi.
39825         * doc/pastposix-functions/setcontext.texi: Renamed from
39826         doc/posix-functions/setcontext.texi.
39827         * doc/pastposix-functions/swapcontext.texi: Renamed from
39828         doc/posix-functions/swapcontext.texi.
39829         * doc/pastposix-functions/ualarm.texi: Renamed from
39830         doc/posix-functions/ualarm.texi.
39831         * doc/pastposix-functions/usleep.texi: Renamed from
39832         doc/posix-functions/usleep.texi.
39833         * doc/pastposix-functions/vfork.texi: Renamed from
39834         doc/posix-functions/vfork.texi.
39835         * doc/pastposix-functions/wcswcs.texi: Renamed from
39836         doc/posix-functions/wcswcs.texi.
39837         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
39838         (Function Substitutes): Update.
39839
39840 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39841
39842         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
39843         m4/strerror.m4.
39844
39845 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39846             Bruno Haible  <bruno@clisp.org>
39847
39848         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
39849
39850 2008-12-13  Bruno Haible  <bruno@clisp.org>
39851
39852         * modules/strtoull (Depends-on): Remove unistd.
39853
39854 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39855
39856         * modules/strtoull (Depends-on): Add stdlib.
39857
39858 2008-12-11  Simon Josefsson  <simon@josefsson.org>
39859
39860         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
39861
39862 2008-12-10  Jim Meyering  <meyering@redhat.com>
39863
39864         gl_ASSERT: don't say assertions are disabled when they're not
39865         * m4/assert.m4 (gl_ASSERT): Do not make configure report
39866         "checking whether to enable assertions... no", when they are in
39867         fact enabled.  This is solely a bug in the output of configure.
39868         In spite of saying "no", NDEBUG was not defined in that case.
39869         Also, as noted by Eric Blake, leave assertions enabled upon
39870         --enable-assert=INVALID.
39871
39872 2008-12-10  Bruno Haible  <bruno@clisp.org>
39873
39874         Change MODULES.html to refer to POSIX:2008 where possible.
39875         * MODULES.html.sh (POSIX2008_URL): New variable.
39876         (posix_headers): Remove sys/timeb, ucontext.
39877         (posix2001_headers): New variable.
39878         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
39879         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
39880         index, makecontext, mktemp, pthread_attr_getstackaddr,
39881         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
39882         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
39883         (posix2001_functions): New variable.
39884         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
39885         otherwise.
39886
39887 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39888
39889         add missing include to parse-duration.c
39890         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
39891         * modules/parse-duration (Depends-on): Add xalloc.
39892
39893         fix sed script reading maint.mk
39894         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
39895         (syntax-check-rules): Use it.
39896
39897 2008-12-09  Bruno Haible  <bruno@clisp.org>
39898
39899         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
39900         MacOS X 10.4/PowerPC.
39901         Reported by Simon Josefsson.
39902
39903 2008-12-08  Jim Meyering  <meyering@redhat.com>
39904
39905         work around mingw's lack of some S_IF definitions
39906         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
39907         Reported by Simon Josefsson.
39908
39909 2008-12-08  Bruno Haible  <bruno@clisp.org>
39910
39911         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
39912         applied to variables. Needed on MacOS X 10.4/PowerPC.
39913         Reported by Simon Josefsson.
39914
39915 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
39916         and Eric Blake  <ebb9@byu.net>
39917
39918         assert: honor --enable-assert
39919         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
39920         order to honor --enable-assert, rather than treating it as a
39921         synonym for --disable-assert.
39922
39923 2008-12-08  Jim Meyering  <meyering@redhat.com>
39924
39925         * lib/posixtm.c: Remove now-useless declaration of mktime.
39926
39927         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
39928
39929 2008-12-07  Bruno Haible  <bruno@clisp.org>
39930
39931         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
39932         test_once): Mark functions as static.
39933         * tests/test-tls.c (test_tls): Likewise.
39934
39935 2008-12-07  Bruno Haible  <bruno@clisp.org>
39936
39937         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
39938         iconv_register_autodetect.
39939
39940 2008-12-07  Jim Meyering  <meyering@redhat.com>
39941
39942         posixtm.c: avoid a warning
39943         * lib/posixtm.c (posixtime): Don't initialize tm0.
39944         It's no longer needed to placate gcc4's -Wuninitialized,
39945         and the attempt to placate would elicit a new warning.
39946
39947         unicodeio.c: mark unused parameters
39948         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
39949         (fallback_failure_callback): Likewise.
39950
39951 2008-12-07  Bruno Haible  <bruno@clisp.org>
39952
39953         * gnulib-tool (func_create_testdir): When building the tests
39954         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
39955         Reported by Simon Josefsson.
39956
39957 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39958
39959         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
39960
39961 2008-12-06  Bruno Haible  <bruno@clisp.org>
39962
39963         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
39964         Suggested by Eric Blake.
39965
39966 2008-12-06  Bruno Haible  <bruno@clisp.org>
39967
39968         Fix a c-stack test failure on MacOS X.
39969         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
39970         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
39971         handler for SIGBUS as well.
39972         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
39973         install a signal handler for SIGBUS as well.
39974         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
39975
39976 2008-12-06  Bruno Haible  <bruno@clisp.org>
39977
39978         Advocacy documentation.
39979         * doc/gnulib-intro.texi (Benefits): New section.
39980         * doc/gnulib.texi: Update.
39981
39982 2008-12-06  Bruno Haible  <bruno@clisp.org>
39983
39984         Document the 'manywarnings' module.
39985         * doc/manywarnings.texi: New file.
39986         * doc/gnulib.texi: Include it.
39987
39988 2008-12-05  Eric Blake  <ebb9@byu.net>
39989
39990         tests: silence some gcc warnings
39991         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
39992         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
39993         type mismatches.
39994
39995 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39996             Bruno Haible  <bruno@clisp.org>
39997
39998         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
39999
40000 2008-11-29  Jim Meyering  <meyering@redhat.com>
40001
40002         unicodeio.c: mark unused parameters
40003         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
40004         (fallback_failure_callback): Likewise.
40005
40006         fts: fix a thinko
40007         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
40008         (set_stat_type): Return S_IF*-valued "type" directly.
40009         Prompted by James Youngman's spotting a related bug.
40010         Confirmed by further testing through find.
40011
40012         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
40013         * lib/fts.c (D_TYPE): Define.
40014         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
40015         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
40016         (s_ifmt_shift_bits): New function.
40017         (set_stat_type): New function.
40018         (fts_build): When not calling fts_stat, call set_stat_type
40019         to propagate dirent.d_type info to fts_read caller.
40020         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
40021         fts_statp->st_mode type information may be valid.
40022
40023 2008-11-28  Simon Josefsson  <simon@josefsson.org>
40024
40025         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
40026         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
40027         <sds@gnu.org>.
40028
40029 2008-11-20  Bruno Haible  <bruno@clisp.org>
40030
40031         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
40032         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
40033         INCLUDE_NEXT.
40034         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
40035         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
40036         * modules/math (Makefile.am): Substitute
40037         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
40038         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
40039
40040 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
40041             Bruno Haible  <bruno@clisp.org>
40042
40043         * lib/stdint.in.h: Define all type macros so that their expansion is
40044         a single typedef'ed token. Fixes a compilation failure in Boost which
40045         does "using ::int8_t;".
40046
40047 2008-11-18  Simon Josefsson  <simon@josefsson.org>
40048
40049         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
40050         gl_MANYWARN_ALL_GCC.
40051         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
40052         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
40053         * modules/manywarnings: New file.
40054         * MODULES.html.sh: Mention manywarnings module.
40055
40056 2008-11-18  Bruno Haible  <bruno@clisp.org>
40057
40058         * doc/gnulib-tool.texi (Unit tests): New section.
40059
40060 2008-11-18  Simon Josefsson  <simon@josefsson.org>
40061
40062         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
40063         paths like 'lib/po/foo.po'.
40064
40065 2008-11-17  Simon Josefsson  <simon@josefsson.org>
40066
40067         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
40068         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
40069
40070 2008-11-17  Simon Josefsson  <simon@josefsson.org>
40071
40072         * m4/warnings.m4: Use CPPFLAGS to really check whether the
40073         parameter works.
40074
40075 2008-11-17  Simon Josefsson  <simon@josefsson.org>
40076
40077         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
40078
40079 2008-11-17  Bruce Korb  <bkorb@gnu.org>
40080
40081         * modules/parse-duration-tests: New file.
40082         * tests/test-parse-duration.sh: New file.
40083         * tests/test-parse-duration.c: New file.
40084
40085         New module 'parse-duration'.
40086         * lib/parse-duration.h: New file.
40087         * lib/parse-duration.c: New file.
40088         * modules/parse-duration: New file.
40089
40090 2008-11-17  Bruno Haible  <bruno@clisp.org>
40091
40092         * tests/test-select-out.sh: Comment out the first pipe test.
40093         Reported by Simon Josefsson.
40094
40095 2008-11-17  Bruno Haible  <bruno@clisp.org>
40096
40097         * modules/getaddrinfo (Depends-on): Add servent, hostent.
40098         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
40099         gl_HOSTENT.
40100
40101 2008-11-17  Bruno Haible  <bruno@clisp.org>
40102
40103         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
40104         -lnetwork and -lnet. Needed for Haiku and BeOS.
40105
40106 2008-11-16  Bruno Haible  <bruno@clisp.org>
40107
40108         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
40109
40110 2008-11-16  Bruno Haible  <bruno@clisp.org>
40111
40112         Avoid test failure on Haiku.
40113         * tests/test-fsync.c: Include <errno.h>.
40114         (main): Don't require that fsync (0) fails.
40115
40116 2008-11-15  Bruno Haible  <bruno@clisp.org>
40117
40118         New module 'hostent'.
40119         * modules/hostent: New file.
40120         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
40121
40122 2008-11-15  Bruno Haible  <bruno@clisp.org>
40123
40124         New module 'servent'.
40125         * modules/servent: New file.
40126         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
40127
40128 2008-11-15  Bruno Haible  <bruno@clisp.org>
40129
40130         Avoid generating same test program with two different rules.
40131         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
40132         test-frexp to test-frexp-nolibm.
40133         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
40134         test-frexpl to test-frexpl-nolibm.
40135
40136 2008-11-15  Bruno Haible  <bruno@clisp.org>
40137
40138         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
40139         $(FREXPL_LIBM).
40140
40141 2008-11-15  Bruno Haible  <bruno@clisp.org>
40142
40143         * lib/netdb.in.h: Activate the definitions also when the system's
40144         <netdb.h> has 'struct addrinfo'.
40145         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
40146         EAI_OVERFLOW or AI_NUMERICSERV.
40147         * doc/posix-headers/netdb.texi: Document the problem.
40148
40149 2008-11-15  Bruno Haible  <bruno@clisp.org>
40150
40151         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
40152
40153         Make the 'sched' module work on platforms where <sched.h> exists but
40154         is incomplete (such as Haiku).
40155         * lib/sched.in.h; Include the system's <sched.h> if it exists.
40156         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
40157         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
40158         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
40159         HAVE_STRUCT_SCHED_PARAM.
40160         * modules/sched (Depends-on): Add include_next.
40161         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
40162         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
40163         * doc/posix-headers/sched.texi: Document the issue.
40164
40165 2008-11-13  Jim Meyering  <meyering@redhat.com>
40166
40167         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
40168         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
40169         test would fail due to the difference in the Report bugs to ...
40170         line.  The expected address is empty, "<>", while the actual
40171         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
40172
40173 2008-11-12  Bruno Haible  <bruno@clisp.org>
40174
40175         lstat: don't compile lstat.c on systems lacking lstat
40176         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
40177         which don't have lstat; this is handled by lib/sys_stat.in.h already.
40178         Reported by Daniel P. Berrange via Jim Meyering.
40179
40180 2008-11-12  Jim Meyering  <meyering@redhat.com>
40181
40182         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
40183
40184 2008-11-12  Simon Josefsson  <simon@josefsson.org>
40185
40186         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
40187         instead.
40188
40189 2008-11-12  Bruno Haible  <bruno@clisp.org>
40190
40191         * lib/unicodeio.c: Include unistr.h.
40192         (utf8_wctomb): Remove function.
40193         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
40194
40195 2008-11-12  Simon Josefsson  <simon@josefsson.org>
40196
40197         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
40198         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
40199         <bruno@clisp.org>.
40200         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
40201
40202 2008-11-12  Simon Josefsson  <simon@josefsson.org>
40203
40204         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
40205         * doc/gnulib.texi: Add section for warnings.
40206
40207 2008-11-11  Bruno Haible  <bruno@clisp.org>
40208
40209         * lib/sockets.h: Add a comment.
40210
40211 2008-11-11  Karl Berry  <karl@gnu.org>
40212
40213         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
40214
40215 2008-11-11  Eric Blake  <ebb9@byu.net>
40216
40217         fdl.texi: avoid git symlinks
40218         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
40219
40220 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
40221
40222         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
40223
40224 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
40225
40226         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
40227         (gl_WARN_ADD): Substitute $2 if literal.
40228
40229 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
40230
40231         * m4/warning.m4: Remove.
40232
40233 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
40234
40235         * m4/warnings.m4: Almost complete rewrite. :-)
40236
40237 2008-11-10  Simon Josefsson  <simon@josefsson.org>
40238
40239         * modules/warnings: New module.
40240         * m4/warnings.m4: New file.
40241         * MODULES.html.sh: Mention warnings module.
40242         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
40243         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
40244
40245 2008-11-10  Eric Blake  <ebb9@byu.net>
40246
40247         fdl.texi: make a symlink to the latest version
40248         * doc/standards.texi: Revert today's earlier change.
40249         * doc/fdl-1.2.texi: Rename from old fdl.texi...
40250         * doc/fdl.texi: ...and replace this with a symlink to the newer
40251         fdl-1.3.texi.
40252
40253 2008-11-10  Bruno Haible  <bruno@clisp.org>
40254
40255         * tests/test-select-fd.c (main): Accept the result file name as fourth
40256         argument.
40257         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
40258         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
40259
40260 2008-11-10  Bruno Haible  <bruno@clisp.org>
40261
40262         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
40263         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
40264         as autoconf-substituted macros.
40265         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
40266         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
40267         gl_NETDB_H_DEFAULTS. Set these variables.
40268         * modules/netdb (Makefile.am): Substitute these variables.
40269
40270 2008-11-10  Eric Blake  <ebb9@byu.net>
40271
40272         standards.texi: include correct file for FDL 1.3
40273         * doc/standards.texi (GNU Free Documentation License): Change
40274         include file to pull in FDL 1.3, not 1.2.
40275
40276         fdl.texi: revert accidental change to license
40277         * doc/fdl.texi: This is FDL 1.2, not 1.3.
40278
40279 2008-11-10  Bruno Haible  <bruno@clisp.org>
40280
40281         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
40282         cross-compiling guesses also when the native compile gives no result.
40283
40284 2008-11-10  Bruno Haible  <bruno@clisp.org>
40285
40286         * lib/spawni.c (__spawni): Force variable into the stack.
40287
40288 2008-11-10  Bruno Haible  <bruno@clisp.org>
40289
40290         Add support for Haiku.
40291         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
40292         glibc and BeOS, but also on Haiku.
40293         * lib/fpurge.c (fpurge): Likewise.
40294         * lib/freadable.c (freadable): Likewise.
40295         * lib/freadahead.c (freadahead): Likewise.
40296         * lib/freading.c (freading): Likewise.
40297         * lib/freadptr.c (freadptr): Likewise.
40298         * lib/freadseek.c (freadptrinc): Likewise.
40299         * lib/fseeko.c (rpl_fseeko): Likewise.
40300         * lib/fseterr.c (fseterr): Likewise.
40301         * lib/fwritable.c (fwritable): Likewise.
40302         * lib/fwriting.c (fwriting): Likewise.
40303         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
40304
40305 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
40306
40307         * lib/config.charset: Treat Haiku like BeOS.
40308
40309 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
40310
40311         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
40312         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
40313
40314 2008-11-08  Bruno Haible  <bruno@clisp.org>
40315
40316         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
40317         AC_CACHE_CHECK.
40318
40319 2008-11-08  Bruno Haible  <bruno@clisp.org>
40320
40321         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
40322
40323 2008-11-08  Bruno Haible  <bruno@clisp.org>
40324
40325         * tests/test-select-fd.c: New file.
40326         * tests/test-select-in.sh: New file.
40327         * tests/test-select-out.sh: New file.
40328         * tests/test-select-stdin.c: New file.
40329         * modules/select-tests (Files): Add the new files.
40330         (Depends-on): Add gettimeofday.
40331         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
40332         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
40333         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
40334
40335 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
40336             Bruno Haible  <bruno@clisp.org>
40337
40338         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
40339
40340 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
40341
40342         * build-aux/pmccabe2html: Added support for C++ source files.
40343
40344 2008-11-05  Ben Pfaff  <blp@gnu.org>
40345
40346         Fix lib/close.c build on Windows.
40347         * modules/close (Files): Add lib/w32sock.h.
40348
40349 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
40350
40351         Accept Bison's NEWS format.
40352         * build-aux/announce-gen (print_news_deltas): Tweak
40353         $re_prefix.
40354
40355 2008-11-04  Bruno Haible  <bruno@clisp.org>
40356
40357         * modules/random_r (Maintainer): Add glibc.
40358
40359 2008-11-04  Simon Josefsson  <simon@josefsson.org>
40360
40361         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
40362         by karl@freefriends.org (Karl Berry).
40363         * doc/alloca.texi: Likewise.
40364         * doc/c-ctype.texi: Likewise.
40365         * doc/c-strcase.texi: Likewise.
40366         * doc/c-strcaseeq.texi: Likewise.
40367         * doc/c-strcasestr.texi: Likewise.
40368         * doc/c-strstr.texi: Likewise.
40369         * doc/c-strtod.texi: Likewise.
40370         * doc/c-strtold.texi: Likewise.
40371         * doc/ctime.texi: Likewise.
40372         * doc/error.texi: Likewise.
40373         * doc/fdl.texi: Likewise.
40374         * doc/gcd.texi: Likewise.
40375         * doc/getdate.texi: Likewise.
40376         * doc/gnulib-intro.texi: Likewise.
40377         * doc/gnulib-tool.texi: Likewise.
40378         * doc/gnulib.texi: Likewise.
40379         * doc/inet_ntoa.texi: Likewise.
40380         * doc/maintain.texi: Likewise.
40381         * doc/make-stds.texi: Likewise.
40382         * doc/quote.texi: Likewise.
40383         * doc/regexprops-generic.texi: Likewise.
40384         * doc/standards.texi: Likewise.
40385         * doc/verify.texi: Likewise.
40386         * doc/visibility.texi: Likewise.
40387         * doc/gnulib.texi (GNU Free Documentation License): Include
40388         fdl-1.3.texi instead of fdl.texi.
40389
40390 2008-11-04  Simon Josefsson  <simon@josefsson.org>
40391
40392         * doc/fdl-1.3.texi: New file, from
40393         <http://www.gnu.org/licenses/fdl-1.3.texi>.
40394         * modules/fdl-1.3: Add.
40395         * MODULES.html.sh: Add fdl-1.3.
40396
40397 2008-11-03  Bruno Haible  <bruno@clisp.org>
40398
40399         Make determination of absolute name of header file work with AIX xlc.
40400         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
40401         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
40402         preprocessing.
40403         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
40404         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
40405
40406 2008-11-03  Simon Josefsson  <simon@josefsson.org>
40407
40408         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
40409         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
40410         <ludo@gnu.org>.
40411
40412 2008-11-02  Bruno Haible  <bruno@clisp.org>
40413
40414         Mark 'strpbrk' obsolete.
40415         * modules/strpbrk (Status, Notice): New sections.
40416         * modules/strtok_r (Depends-on): Add strpbrk.
40417
40418 2008-11-02  Bruno Haible  <bruno@clisp.org>
40419
40420         Mark 'strdup' obsolete.
40421         * modules/strdup (Status, Notice): New sections.
40422         * modules/findprog (Depends-on): Add strdup.
40423         * modules/getaddrinfo (Depends-on): Likewise.
40424         * modules/localename (Depends-on): Likewise.
40425         * modules/relocatable-lib (Depends-on): Likewise.
40426         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
40427         * modules/relocatable-prog (Depends-on): Likewise.
40428         * modules/trim (Depends-on): Likewise.
40429         * modules/unictype/gen-ctype (Depends-on): Likewise.
40430         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
40431
40432 2008-11-02  Bruno Haible  <bruno@clisp.org>
40433
40434         Mark 'strcspn' obsolete.
40435         * modules/strcspn (Status, Notice): New sections.
40436
40437 2008-11-02  Bruno Haible  <bruno@clisp.org>
40438
40439         Mark 'rmdir' obsolete.
40440         * modules/rmdir (Status, Notice): New sections.
40441         * modules/clean-temp (Depends-on): Add rmdir.
40442         * modules/openat (Depends-on): Likewise.
40443
40444 2008-11-02  Bruno Haible  <bruno@clisp.org>
40445
40446         Mark 'raise' obsolete.
40447         * modules/raise (Status, Notice): New sections.
40448         (Include): Specify <signal.h>.
40449         * modules/stdio (Depends-on): Add raise.
40450         * modules/write (Depends-on): Likewise.
40451
40452 2008-11-02  Bruno Haible  <bruno@clisp.org>
40453
40454         Mark 'memset' obsolete.
40455         * modules/memset (Status, Notice): New sections.
40456
40457 2008-11-02  Bruno Haible  <bruno@clisp.org>
40458
40459         Mark 'memmove' obsolete.
40460         * modules/memmove (Status, Notice): New sections.
40461         * modules/argp (Depends-on): Add memmove.
40462         * modules/argz (Depends-on): Likewise.
40463         * modules/canonicalize (Depends-on): Likewise.
40464         * modules/canonicalize-lgpl (Depends-on): Likewise.
40465         * modules/fts (Depends-on): Likewise.
40466         * modules/getcwd (Depends-on): Likewise.
40467         * modules/human (Depends-on): Likewise.
40468         * modules/regex (Depends-on): Likewise.
40469         * modules/striconveh (Depends-on): Likewise.
40470         * modules/trim (Depends-on): Likewise.
40471         * modules/unistr/u8-move (Depends-on): Likewise.
40472         * modules/unistr/u16-move (Depends-on): Likewise.
40473         * modules/unistr/u32-move (Depends-on): Likewise.
40474
40475 2008-11-02  Bruno Haible  <bruno@clisp.org>
40476
40477         Mark 'memcpy' obsolete.
40478         * modules/memcpy (Status, Notice): New sections.
40479
40480 2008-11-02  Bruno Haible  <bruno@clisp.org>
40481
40482         Mark 'memcmp' obsolete.
40483         * modules/memcmp (Status, Notice): New sections.
40484         * modules/argmatch (Depends-on): Add memchr.
40485         * modules/backupfile (Depends-on): Likewise.
40486         * modules/c-strcasestr (Depends-on): Likewise.
40487         * modules/crypto/des (Depends-on): Likewise.
40488         * modules/csharpcomp (Depends-on): Likewise.
40489         * modules/fnmatch (Depends-on): Likewise.
40490         * modules/git-merge-changelog (Depends-on): Likewise.
40491         * modules/isnand (Depends-on): Likewise.
40492         * modules/isnand-nolibm (Depends-on): Likewise.
40493         * modules/isnanf (Depends-on): Likewise.
40494         * modules/isnanf-nolibm (Depends-on): Likewise.
40495         * modules/isnanl (Depends-on): Likewise.
40496         * modules/isnanl-nolibm (Depends-on): Likewise.
40497         * modules/mbchar (Depends-on): Likewise.
40498         * modules/memcoll (Depends-on): Likewise.
40499         * modules/quotearg (Depends-on): Likewise.
40500         * modules/regex (Depends-on): Likewise.
40501         * modules/relocatable-prog (Depends-on): Likewise.
40502         * modules/same (Depends-on): Likewise.
40503         * modules/signbit (Depends-on): Likewise.
40504         * modules/strcasestr-simple (Depends-on): Likewise.
40505         * modules/unictype/gen-ctype (Depends-on): Likewise.
40506         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
40507         * modules/uniname/uniname (Depends-on): Likewise.
40508         * modules/unistr/u8-cmp (Depends-on): Likewise.
40509
40510 2008-11-02  Bruno Haible  <bruno@clisp.org>
40511
40512         Mark 'memchr' obsolete.
40513         * modules/memchr (Status, Notice): New sections.
40514         * modules/argp (Depends-on): Add memchr.
40515         * modules/base64 (Depends-on): Likewise.
40516         * modules/c-strcasestr (Depends-on): Likewise.
40517         * modules/chdir-long (Depends-on): Likewise.
40518         * modules/fnmatch (Depends-on): Likewise.
40519         * modules/getsubopt (Depends-on): Likewise.
40520         * modules/git-merge-changelog (Depends-on): Likewise.
40521         * modules/glob (Depends-on): Likewise.
40522         * modules/strcasestr-simple (Depends-on): Likewise.
40523         * modules/strnlen (Depends-on): Likewise.
40524
40525 2008-11-02  Bruno Haible  <bruno@clisp.org>
40526
40527         Mark 'atexit' obsolete.
40528         * modules/atexit (Status, Notice): New sections.
40529         * modules/chdir-long (Depends-on): Add atexit.
40530         * modules/wait-process (Depends-on): Likewise.
40531
40532 2008-11-02  Bruno Haible  <bruno@clisp.org>
40533
40534         * gnulib-tool: New option --with-obsolete.
40535         (func_usage): Document it.
40536         (func_modules_transitive_closure): Drop obsolete dependencies if
40537         incobsolete is not true.
40538         (func_import): Read and save the incobsolete variable to the cache.
40539
40540 2008-11-02  Bruno Haible  <bruno@clisp.org>
40541
40542         * modules/TEMPLATE-EXTENDED: New field 'Status'.
40543         * gnulib-tool: New option --extract-status.
40544         (func_usage): Document it.
40545         (sed_extract_prog): Recognize it.
40546         (func_get_status): New function.
40547
40548 2008-10-30  Simon Josefsson  <simon@josefsson.org>
40549
40550         * modules/sockets (License): Change from LGPL to LGPLv2+.
40551
40552 2008-10-28  Simon Josefsson  <simon@josefsson.org>
40553
40554         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
40555
40556 2008-10-28  Simon Josefsson  <simon@josefsson.org>
40557
40558         * MODULES.html.sh (Support for systems lacking POSIX:2001):
40559         Mention times and sys_times.
40560         * modules/sys_times, modules/sys_times-tests: New modules.
40561         * modules/times, modules/times-tests: Likewise
40562         * m4/sys_times_h.m4: New file.
40563         * lib/sys_times.in.h: Likewise
40564         * lib/times.c: Likewise.
40565         * tests/test-sys_times.c: Likewise.
40566         * tests/test-times.c: Likewise.
40567         * doc/posix-headers/sys_times.texi: Update.
40568         * doc/posix-functions/times.texi: Update.
40569
40570 2008-10-28  Jim Meyering  <meyering@redhat.com>
40571
40572         * modules/tempname (Depends-on): Add lstat.
40573
40574         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
40575
40576 2008-10-28  Simon Josefsson  <simon@josefsson.org>
40577
40578         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
40579         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
40580         using idiom used elsewhere in gnulib.
40581
40582 2008-10-27  Jim Meyering  <meyering@redhat.com>
40583
40584         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
40585
40586 2008-10-27  Simon Josefsson  <simon@josefsson.org>
40587
40588         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
40589         TESTS_ENVIRONMENT, for shell scripts that needs to call built
40590         programs.
40591         * tests/test-argp-2.sh: Use $EXEEXT when needed.
40592
40593 2008-10-27  Simon Josefsson  <simon@josefsson.org>
40594
40595         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
40596
40597 2008-10-27  Bruno Haible  <bruno@clisp.org>
40598
40599         * tests/test-lstat.c: Include <stdio.h>.
40600
40601 2008-10-27  Simon Josefsson  <simon@josefsson.org>
40602
40603         * modules/lstat-tests: New module.
40604         * tests/test-lstat.c: New file.
40605
40606 2008-10-26  Jim Meyering  <meyering@redhat.com>
40607
40608         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
40609
40610 2008-10-26  Simon Josefsson  <simon@josefsson.org>
40611             Bruno Haible  <bruno@clisp.org>
40612
40613         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
40614         * modules/configmake (Include): Add a note that the include must come
40615         after all system headers.
40616         * lib/javaversion.c: Include configmake.h after all other includes.
40617
40618 2008-10-26  Bruno Haible  <bruno@clisp.org>
40619
40620         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
40621         HAVE_STRUCT_RANDOM_DATA to 1.
40622         (gl_STDLIB_H): Simplify.
40623
40624 2008-10-26  Simon Josefsson  <simon@josefsson.org>
40625
40626         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
40627         substitute HAVE_STRUCT_RANDOM_DATA.
40628         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
40629         random_data.
40630         * modules/stdlib (Makefile.am): Substitute
40631         HAVE_STRUCT_RANDOM_DATA.
40632
40633 2008-10-26  Simon Josefsson  <simon@josefsson.org>
40634
40635         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
40636         * doc/gnulib-intro.texi (Copyright): Likewise.
40637
40638 2008-10-26  Simon Josefsson  <simon@josefsson.org>
40639
40640         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
40641         findings.
40642
40643 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
40644             Bruno Haible  <bruno@clisp.org>
40645
40646         * lib/unistd.in.h: Include <winsock2.h>.
40647         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
40648         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
40649         Provide dummy declarations.
40650         (gethostname): Override.
40651         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
40652         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
40653         gl_PREREQ_SYS_H_WINSOCK2.
40654         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
40655         * doc/posix-functions/gethostname.texi: More details.
40656
40657 2008-10-25  Bruno Haible  <bruno@clisp.org>
40658
40659         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
40660         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
40661         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
40662
40663         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
40664         here ...
40665         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
40666         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
40667         gl_UNISTD_H_DEFAULTS.
40668
40669 2008-10-25  Eric Blake  <ebb9@byu.net>
40670
40671         signbit: avoid spurious compiler failure
40672         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
40673         declarations inside function.
40674
40675 2008-10-24  Simon Josefsson  <simon@josefsson.org>
40676             Bruno Haible  <bruno@clisp.org>
40677
40678         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
40679         * modules/random_r (Depends-on): Add stdint.
40680
40681 2008-10-24  Bruno Haible  <bruno@clisp.org>
40682
40683         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
40684         Eggert.
40685         * modules/strerror (License): Likewise.
40686
40687 2008-10-24  Jim Meyering  <meyering@redhat.com>
40688
40689         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
40690         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
40691
40692 2008-10-24  Eric Blake  <ebb9@byu.net>
40693
40694         getgroups: fix compilation when getgroups is available
40695         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
40696         but with <config.h> override of getgroups disabled.
40697
40698 2008-10-24  Simon Josefsson  <simon@josefsson.org>
40699
40700         * doc/gnulib.texi (Header files): Add note about C++ problems.
40701         Explained by Bruno Haible <bruno@clisp.org>.
40702
40703 2008-10-23  Bruno Haible  <bruno@clisp.org>
40704
40705         Define a dummy SA_NODEFER macro on Interix.
40706         * lib/signal.in.h (SA_NODEFER): Define fallback.
40707         Reported by Aleksey Cheusov <cheusov@tut.by> via
40708         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
40709
40710 2008-10-23  Bruno Haible  <bruno@clisp.org>
40711
40712         * modules/freadahead (License): Change to LGPLv2+.
40713         Suggested by Simon Josefsson.
40714
40715 2008-10-23  Jim Meyering  <meyering@redhat.com>
40716
40717         random_r: new module
40718         * modules/random_r: New file.
40719         * m4/random_r.m4: New file.
40720         * lib/random_r.c: New file, from glibc.
40721         * modules/random_r-tests: New file.
40722         * tests/test-random_r.c: New file.
40723         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
40724          Declare.
40725         (RAND_MAX): Define.
40726         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
40727         * modules/stdlib: Substitute them, too.
40728         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
40729         * doc/glibc-functions/initstate_r.texi: Mention the new module.
40730         * doc/glibc-functions/random_r.texi: Likewise.
40731         * doc/glibc-functions/setstate_r.texi: Likewise.
40732         * doc/glibc-functions/srandom_r.texi: Likewise.
40733         * config/srclist.txt: Mention it.
40734
40735 2008-10-23  David Lutterkort  <lutter@redhat.com>
40736
40737         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
40738         link requirement
40739
40740 2008-10-23  Jim Meyering  <meyering@redhat.com>
40741
40742         selinux-h: mark parameters of stub functions as intentionally unused
40743         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
40744         * lib/se-context.in.h: Likewise.
40745
40746 2008-10-22  Simon Josefsson  <simon@josefsson.org>
40747
40748         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
40749
40750 2008-10-22  Simon Josefsson  <simon@josefsson.org>
40751
40752         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
40753
40754 2008-10-22  Eric Blake  <ebb9@byu.net>
40755
40756         glthread/thread: avoid compiler warning
40757         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
40758         Add unreachable abort to silence compiler.
40759
40760 2008-10-22  Eric Blake  <ebb9@byu.net>
40761
40762         netdb: also supply struct addrinfo for cygwin 1.5.x
40763         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
40764         older cygwin.
40765         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
40766         cygwin.
40767         * doc/posix-headers/netdb.texi (netdb.h): Document this.
40768
40769 2008-10-22  Bruno Haible  <bruno@clisp.org>
40770
40771         * users.txt: Update entry about pspp.
40772
40773 2008-10-21  Bruno Haible  <bruno@clisp.org>
40774
40775         Simplification.
40776         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
40777         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
40778
40779         Simplification.
40780         * lib/ioctl.c (ioctl): Don't undefine.
40781         * lib/socket.c (socket): Don't undefine.
40782
40783         Remove unused module indicator macros.
40784         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
40785         GNULIB_$1 as a C macro.
40786
40787         * doc/posix-functions/close.texi: Undo last change.
40788         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
40789         Windows platforms.
40790
40791 2008-10-21  Bruno Haible  <bruno@clisp.org>
40792
40793         Add gethostname() declaration to <unistd.h>.
40794         * lib/unistd.in.h (gethostname): New declaration.
40795         * lib/gethostname.c: Include <unistd.h>.
40796         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
40797         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
40798         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
40799         and HAVE_GETHOSTNAME.
40800         * modules/gethostname (Depends-on): Add unistd.
40801         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
40802         (Include): Specify <unistd.h>.
40803         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
40804         HAVE_GETHOSTNAME.
40805         * tests/test-gethostname.c: Include <unistd.h> first.
40806
40807 2008-10-21  Bruno Haible  <bruno@clisp.org>
40808
40809         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
40810         * modules/select-tests (Depends-on): Likewise.
40811         Reported by Simon Josefsson.
40812
40813 2008-10-21  Simon Josefsson  <simon@josefsson.org>
40814
40815         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
40816         * lib/accept.c: New file, based on winsock.c.
40817         * lib/bind.c: New file, based on winsock.c.
40818         * lib/connect.c: New file, based on winsock.c.
40819         * lib/getpeername.c: New file, based on winsock.c.
40820         * lib/getsockname.c: New file, based on winsock.c.
40821         * lib/getsockopt.c: New file, based on winsock.c.
40822         * lib/ioctl.c: New file, based on winsock.c.
40823         * lib/listen.c: New file, based on winsock.c.
40824         * lib/recv.c: New file, based on winsock.c.
40825         * lib/recvfrom.c: New file, based on winsock.c.
40826         * lib/send.c: New file, based on winsock.c.
40827         * lib/sendto.c: New file, based on winsock.c.
40828         * lib/setsockopt.c: New file, based on winsock.c.
40829         * lib/shutdown.c: New file, based on winsock.c.
40830         * lib/socket.c: New file, based on winsock.c.
40831         * lib/w32sock.h: New file, based on winsock.c.
40832         * lib/winsock.c: Remove file.
40833         * modules/accept: Likewise.
40834         * modules/bind: Likewise.
40835         * modules/connect: Likewise.
40836         * modules/getpeername: Likewise.
40837         * modules/getsockname: Likewise.
40838         * modules/getsockopt: Likewise.
40839         * modules/ioctl: Likewise.
40840         * modules/listen: Likewise.
40841         * modules/recv: Likewise.
40842         * modules/recvfrom: Likewise.
40843         * modules/send: Likewise.
40844         * modules/sendto: Likewise.
40845         * modules/setsockopt: Likewise.
40846         * modules/shutdown: Likewise.
40847         * modules/socket: Use socket.c instead of winsock.c.
40848         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
40849         * doc/posix-functions/accept.texi: Doc fix.
40850         * doc/posix-functions/bind.texi: Doc fix.
40851         * doc/posix-functions/close.texi: Doc fix.
40852         * doc/posix-functions/connect.texi: Doc fix.
40853         * doc/posix-functions/getpeername.texi: Doc fix.
40854         * doc/posix-functions/getsockname.texi: Doc fix.
40855         * doc/posix-functions/getsockopt.texi: Doc fix.
40856         * doc/posix-functions/ioctl.texi: Doc fix.
40857         * doc/posix-functions/listen.texi: Doc fix.
40858         * doc/posix-functions/recv.texi: Doc fix.
40859         * doc/posix-functions/recvfrom.texi: Doc fix.
40860         * doc/posix-functions/send.texi: Doc fix.
40861         * doc/posix-functions/sendto.texi: Doc fix.
40862         * doc/posix-functions/setsockopt.texi: Doc fix.
40863         * doc/posix-functions/shutdown.texi: Doc fix.
40864         * doc/posix-functions/socket.texi: Doc fix.
40865
40866 2008-10-20  Bruno Haible  <bruno@clisp.org>
40867
40868         Take into account the role of SIGABRT_COMPAT on Windows 2008.
40869         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
40870         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
40871         as an alias for SIGABRT.
40872         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
40873         (sigaction): Map it to SIGABRT.
40874         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
40875
40876 2008-10-20  Bruno Haible  <bruno@clisp.org>
40877
40878         * lib/fts.c: Don't include lstat.h.
40879         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
40880
40881         Move the lstat() declaration to <sys/stat.h>.
40882         * lib/lstat.h: Remove file.
40883         * lib/sys_stat.in.h: Add special invocation convention.
40884         (lstat): New declaration.
40885         * lib/lstat.c (orig_lstat): New function.
40886         (rpl_lstat): Use orig_lstat instead of lstat.
40887         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
40888         AC_C_INLINE. Set REPLACE_LSTAT.
40889         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
40890         and REPLACE_LSTAT.
40891         * modules/lstat (Files): Remove lib/lstat.h.
40892         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
40893         (Include): Specify <sys/stat.h> instead of lstat.h.
40894         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
40895         REPLACE_LSTAT.
40896         * NEWS: Mention the change.
40897
40898 2008-10-20  Bruno Haible  <bruno@clisp.org>
40899
40900         * modules/posix_spawn-tests: New file.
40901         * tests/test-posix_spawn3.c: New file.
40902
40903 2008-10-20  Bruno Haible  <bruno@clisp.org>
40904
40905         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
40906         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
40907         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
40908         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
40909         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
40910
40911 2008-10-20  Bruno Haible  <bruno@clisp.org>
40912
40913         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
40914         of posix_spawn on AIX 5.3.
40915
40916 2008-10-20  Bruno Haible  <bruno@clisp.org>
40917
40918         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
40919
40920 2008-10-20  Bruno Haible  <bruno@clisp.org>
40921
40922         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
40923         of AC_LANG_PROGRAM.
40924
40925 2008-10-20  Simon Josefsson  <simon@josefsson.org>
40926
40927         * lib/netdb.in.h: Don't define GNU specific constants until they
40928         are supported or needed.  Reported by Bruno Haible
40929         <bruno@clisp.org>.
40930
40931 2008-10-20  Simon Josefsson  <simon@josefsson.org>
40932
40933         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
40934
40935 2008-10-20  Simon Josefsson  <simon@josefsson.org>
40936
40937         * lib/getaddrinfo.h: Remove file.
40938         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
40939         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
40940         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
40941         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
40942         * modules/netdb: Substitute GNULIB_GETADDRINFO.
40943         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
40944         * tests/test-getaddrinfo.c: Likewise.
40945         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
40946         * NEWS: Mention change.
40947
40948 2008-10-19  Bruno Haible  <bruno@clisp.org>
40949
40950         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
40951
40952 2008-10-19  Bruno Haible  <bruno@clisp.org>
40953
40954         * lib/wait-process.c: Include simply <sys/wait.h>.
40955         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
40956         WIFSTOPPED): Remove fallback definitions.
40957         * modules/wait-process (Depends-on): Add sys_wait.
40958
40959         New module 'sys_wait'.
40960         * modules/sys_wait: New file.
40961         * lib/sys_wait.in.h: New file, partially copied from
40962         lib/wait-process.c.
40963         * m4/sys_wait_h.m4: New file.
40964         * doc/posix-headers/sys_wait.texi: Mention the new module.
40965
40966 2008-10-19  Bruno Haible  <bruno@clisp.org>
40967
40968         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
40969
40970 2008-10-19  Bruno Haible  <bruno@clisp.org>
40971
40972         Assume that waitpid() fills an 'int' status, not a 'union wait'.
40973         * lib/wait-process.c (WAIT_T): Remove type.
40974         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
40975         (wait_subprocess): Update.
40976
40977 2008-10-19  Bruno Haible  <bruno@clisp.org>
40978
40979         New module 'atoll'.
40980         * modules/atoll: New file.
40981         * lib/stdlib.in.h (atoll): New declaration.
40982         * lib/atoll.c: New file, from glibc with modifications.
40983         * m4/atoll.m4: New file.
40984         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
40985         HAVE_ATOLL.
40986         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
40987         * doc/posix-functions/atoll.texi: Mention the new module.
40988
40989 2008-10-19  Bruno Haible  <bruno@clisp.org>
40990
40991         Add strtoull() declaration to <stdlib.h>.
40992         * lib/stdlib.in.h (strtoull): New declaration.
40993         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
40994         Set HAVE_STRTOULL.
40995         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
40996         HAVE_STRTOULL.
40997         * modules/strtoull (Depends-on): Add stdlib.
40998         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
40999         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
41000         HAVE_STRTOULL.
41001
41002 2008-10-19  Bruno Haible  <bruno@clisp.org>
41003
41004         Add strtoll() declaration to <stdlib.h>.
41005         * lib/stdlib.in.h (strtoll): New declaration.
41006         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
41007         Set HAVE_STRTOLL.
41008         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
41009         HAVE_STRTOLL.
41010         * modules/strtoll (Depends-on): Add stdlib.
41011         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
41012         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
41013
41014 2008-10-19  Bruno Haible  <bruno@clisp.org>
41015
41016         * modules/bcopy (Depends-on): Add strings.
41017         (Include): Specify <strings.h>.
41018
41019 2008-10-19  Bruno Haible  <bruno@clisp.org>
41020
41021         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
41022
41023 2008-10-19  Bruno Haible  <bruno@clisp.org>
41024
41025         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
41026         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
41027         mingw.
41028
41029 2008-10-19  Bruno Haible  <bruno@clisp.org>
41030
41031         * lib/atanl.c: Don't include isnanl.h.
41032         * lib/cosl.c: Likewise.
41033         * lib/ldexpl.c: Likewise.
41034         * lib/logl.c: Likewise.
41035         * lib/sinl.c: Likewise.
41036         * lib/sqrtl.c: Likewise.
41037         * lib/tanl.c: Likewise.
41038
41039         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
41040         * lib/isnanf.h: Remove file.
41041         * lib/isnand.h: Remove file.
41042         * lib/isnanl.h: Remove file.
41043         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
41044         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
41045         macros.
41046         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
41047         HAVE_ISNANF, don't define it as a C macro.
41048         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
41049         HAVE_ISNAND, don't define it as a C macro.
41050         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
41051         HAVE_ISNANL, don't define it as a C macro.
41052         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
41053         HAVE_ISNAN[FDL].
41054         * modules/isnanf (Files): Remove lib/isnanf.h.
41055         (Depends-on): Add math.
41056         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
41057         (Include): Specify <math.h> instead of isnanf.h.
41058         * modules/isnand (Files): Remove lib/isnand.h.
41059         (Depends-on): Add math.
41060         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
41061         (Include): Specify <math.h> instead of isnand.h.
41062         * modules/isnanl (Files): Remove lib/isnanl.h.
41063         (Depends-on): Add math.
41064         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
41065         (Include): Specify <math.h> instead of isnanl.h.
41066         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
41067         HAVE_ISNAN[FDL].
41068         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
41069         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
41070         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
41071         * NEWS: Mention the change.
41072
41073 2008-10-18  Bruno Haible  <bruno@clisp.org>
41074
41075         Add getusershell(), setusershell(), endusershell() declarations to
41076         <unistd.h>.
41077         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
41078         declarations.
41079         * lib/getusershell.c: Include unistd.h.
41080         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
41081         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
41082         HAVE_GETUSERSHELL.
41083         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
41084         and HAVE_GETUSERSHELL.
41085         * modules/getusershell (Depends-on): Add unistd, extensions.
41086         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
41087         (Include): Specify <unistd.h>.
41088         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
41089         HAVE_GETUSERSHELL.
41090
41091 2008-10-18  Bruno Haible  <bruno@clisp.org>
41092
41093         Add a getloadavg() declaration to <stdlib.h>.
41094         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
41095         getloadavg declaration.
41096         (getloadavg): New declaration.
41097         * lib/getloadavg.c: Include <stdlib.h> first.
41098         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
41099         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
41100         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
41101         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
41102         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
41103         * modules/getloadavg (Depends-on): Add stdlib, extensions.
41104         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
41105         (Include): Specify <stdlib.h>.
41106         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
41107         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
41108
41109 2008-10-18  Bruno Haible  <bruno@clisp.org>
41110
41111         * lib/dirchownmod.c: Don't include lchmod.h.
41112
41113         Move the lchmod() declaration to <sys/stat.h>.
41114         * lib/lchmod.h: Remove file.
41115         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
41116         (lchmod): New declaration, moved here from lib/lchown.h.
41117         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
41118         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
41119         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
41120         and HAVE_LCHMOD.
41121         * modules/lchmod (Files): Remove lib/lchmod.h.
41122         (Depends-on): Add sys_stat, extensions.
41123         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
41124         (Include): Specify <sys/stat.h> instead of lchmod.h.
41125         * modules/sys_stat (Depends-on): Add link-warning.
41126         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
41127         definition of GL_LINK_WARNING.
41128         * NEWS: Mention the change.
41129
41130 2008-10-18  Bruno Haible  <bruno@clisp.org>
41131
41132         * lib/fchdir.c: Don't include dirfd.h.
41133         * lib/fts.c: Likewise.
41134         * lib/getcwd.c: Likewise.
41135         * lib/glob.c: Likewise.
41136
41137         Move the dirfd() declaration to <dirent.h>.
41138         * lib/dirfd.h: Remove file.
41139         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
41140         (dirfd): New declaration.
41141         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
41142         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
41143         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
41144         HAVE_DECL_DIRFD.
41145         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
41146         HAVE_DECL_DIRFD.
41147         * modules/dirfd (Files): Remove lib/dirfd.h.
41148         (Depends-on): Add dirent, extensions.
41149         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
41150         (Include): Specify <dirent.h> instead of dirfd.h.
41151         * modules/dirent (Depends-on): Add link-warning.
41152         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
41153         definition of GL_LINK_WARNING.
41154         * NEWS: Mention the change.
41155
41156 2008-10-18  Bruno Haible  <bruno@clisp.org>
41157
41158         Move the euidaccess() declaration to <unistd.h>.
41159         * lib/euidaccess.h: Remove file.
41160         * lib/unistd.in.h (euidaccess): New declaration.
41161         * lib/euidaccess.c: Don't include euidaccess.h.
41162         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
41163         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
41164         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
41165         and HAVE_EUIDACCESS.
41166         * modules/euidaccess (Files): Remove lib/euidaccess.h.
41167         (Depends-on): Add unistd.
41168         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
41169         (Include): Specify <unistd.h> instead of euidaccess.h.
41170         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
41171         HAVE_EUIDACCESS.
41172         * NEWS: Mention the change.
41173
41174 2008-10-18  Bruno Haible  <bruno@clisp.org>
41175
41176         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
41177
41178         Move the getdomainname() declaration to <unistd.h>.
41179         * lib/getdomainname.h: Remove file.
41180         * lib/unistd.in.h (getdomainname): New declaration.
41181         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
41182         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
41183         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
41184         HAVE_GETDOMAINNAME.
41185         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
41186         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
41187         * modules/getdomainname (Files): Remove lib/getdomainname.h.
41188         (Depends-on): Add unistd, extensions.
41189         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
41190         (Includes): Specify <unistd.h> instead of getdomainname.h.
41191         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
41192         HAVE_GETDOMAINNAME.
41193         * NEWS: Mention the change.
41194
41195 2008-10-18  Bruno Haible  <bruno@clisp.org>
41196
41197         * modules/dirent: New file.
41198         * m4/dirent_h.m4: New file.
41199         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
41200         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
41201         * modules/fchdir (Files): Remove lib/dirent.in.h.
41202         (Depends-on): Add dirent.
41203         (Makefile.am): Move rules to modules/dirent.
41204         * doc/posix-headers/dirent.texi: Mention the new module.
41205
41206 2008-10-18  Bruno Haible  <bruno@clisp.org>
41207
41208         Avoid -Wunused-parameter warnings in public gnulib header files.
41209         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
41210         macro.
41211         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
41212
41213 2008-10-18  Bruno Haible  <bruno@clisp.org>
41214
41215         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
41216         * doc/glibc-functions/error.texi: Mention the module 'error'.
41217         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
41218         * doc/glibc-functions/getdomainname.texi: Mention the module
41219         'getdomainname'.
41220         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
41221         * doc/glibc-functions/getpagesize.texi: Mention the module
41222         'getpagesize'.
41223         * doc/glibc-functions/getusershell.texi: Mention the module
41224         'getusershell'.
41225         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
41226         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
41227         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
41228         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
41229         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
41230         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
41231         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
41232         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
41233         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
41234         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
41235         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
41236         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
41237         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
41238         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
41239
41240 2008-10-17  Bruno Haible  <bruno@clisp.org>
41241
41242         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
41243         HP-UX and IRIX, use -0.0L.
41244         * tests/test-ceill.c (minus_zero): Likewise.
41245         * tests/test-floorl.c (minus_zero): Likewise.
41246         * tests/test-frexpl.c (minus_zero): Likewise.
41247         * tests/test-isnan.c (minus_zerol): Likewise.
41248         * tests/test-isnanl.h (minus_zero): Likewise.
41249         * tests/test-ldexpl.c (minus_zero): Likewise.
41250         * tests/test-roundl.c (minus_zero): Likewise.
41251         * tests/test-signbit.c (minus_zerol): Likewise.
41252         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
41253         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
41254         * tests/test-truncl.c (minus_zero): Likewise.
41255         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
41256         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
41257         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
41258         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
41259
41260 2008-10-17  Bruno Haible  <bruno@clisp.org>
41261
41262         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
41263         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
41264         that it gets activated only for gcc >= 3.0.
41265         * lib/dirent.in.h: Likewise.
41266         * lib/errno.in.h: Likewise.
41267         * lib/fcntl.in.h: Likewise.
41268         * lib/float.in.h: Likewise.
41269         * lib/iconv.in.h: Likewise.
41270         * lib/inttypes.in.h: Likewise.
41271         * lib/locale.in.h: Likewise.
41272         * lib/math.in.h: Likewise.
41273         * lib/netdb.in.h: Likewise.
41274         * lib/netinet_in.in.h: Likewise.
41275         * lib/search.in.h: Likewise.
41276         * lib/signal.in.h: Likewise.
41277         * lib/spawn.in.h: Likewise.
41278         * lib/stdarg.in.h: Likewise.
41279         * lib/stdint.in.h: Likewise.
41280         * lib/stdio.in.h: Likewise.
41281         * lib/stdlib.in.h: Likewise.
41282         * lib/string.in.h: Likewise.
41283         * lib/strings.in.h: Likewise.
41284         * lib/sys_file.in.h: Likewise.
41285         * lib/sys_ioctl.in.h: Likewise.
41286         * lib/sys_select.in.h: Likewise.
41287         * lib/sys_socket.in.h: Likewise.
41288         * lib/sys_stat.in.h: Likewise.
41289         * lib/sys_time.in.h: Likewise.
41290         * lib/sysexits.in.h: Likewise.
41291         * lib/time.in.h: Likewise.
41292         * lib/unistd.in.h: Likewise.
41293         * lib/wchar.in.h: Likewise.
41294         * lib/wctype.in.h: Likewise.
41295         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
41296
41297 2008-10-17  Jim Meyering  <meyering@redhat.com>
41298
41299         ignore-value: don't depend on inline module
41300         * modules/ignore-value (Depends-on): Remove 'inline'.
41301         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
41302         Suggestion from Bruno Haible.
41303
41304 2008-10-17  Bruno Haible  <bruno@clisp.org>
41305
41306         New implementation of condition variables for Win32.
41307         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
41308         (gl_linked_waitqueue_t): New type.
41309         (gl_cond_t): Use it.
41310         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
41311         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
41312         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
41313         (glthread_cond_init_func, glthread_cond_wait_func,
41314         glthread_cond_timedwait_func, glthread_cond_signal_func,
41315         glthread_cond_broadcast_func, glthread_cond_destroy_func):
41316         Reimplemented on the basis of gl_linked_waitqueue_t.
41317         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
41318         gl_waitqueue_t.
41319         (gl_rwlock_t): Update.
41320         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
41321
41322 2008-10-17  Simon Josefsson  <simon@josefsson.org>
41323
41324         * modules/recvfrom (Depends-on): Add dependency on getpeername.
41325         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
41326
41327 2008-10-17  Jim Meyering  <meyering@redhat.com>
41328
41329         ignore-value: new module
41330         * modules/ignore-value: New file.
41331         * lib/ignore-value.h: New file.
41332         * MODULES.html.sh (Compiler warning management): New section,
41333         just for this module.  More to come.
41334
41335 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
41336
41337         open-safer.c: avoid 'signed and unsigned in conditional...' warning
41338         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
41339         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
41340
41341 2008-10-16  Jim Meyering  <meyering@redhat.com>
41342
41343         openat-die.c: avoid 'no previous prototype' warning
41344         * lib/openat-die.c: Include "openat.h".
41345         Reported by Reuben Thomas <rrt@sc3d.org>.
41346
41347 2008-10-16  Simon Josefsson  <simon@josefsson.org>
41348
41349         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
41350         * lib/netdb.in.h: Fix typo.
41351         Reported by Bruno Haible  <bruno@clisp.org>
41352
41353         * lib/netdb.in.h: Include sys/socket.h for platforms without
41354         netdb.h, to get structures like hostent on MinGW.
41355         * modules/netdb (Depends-on): Add sys_socket.
41356
41357 2008-10-15  Simon Josefsson  <simon@josefsson.org>
41358
41359         * modules/netdb, modules/netdb-tests: New file.
41360         * m4/netdb_h.m4: New file.
41361         * lib/netdb.in.h: Add, currently just an empty file pending
41362         definitions.
41363         * tests/test-netdb.c: New file.
41364         * doc/posix-headers/netdb.texi: Mention that we replace it if
41365         needed.
41366         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
41367         netdb.
41368
41369 2008-10-15  Simon Josefsson  <simon@josefsson.org>
41370
41371         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
41372         with code.
41373
41374 2008-10-13  Bruno Haible  <bruno@clisp.org>
41375
41376         * lib/glthread/cond.c (glthread_cond_wait_func,
41377         glthread_cond_timedwait_func): Add a comment.
41378
41379 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
41380
41381         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
41382         * tests/test-select.c: Likewise,
41383
41384 2008-10-13  Bruno Haible  <bruno@clisp.org>
41385
41386         * lib/glthread/cond.c (glthread_cond_wait_func,
41387         glthread_cond_timedwait_func): Fix variable name.
41388         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
41389
41390 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
41391
41392         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
41393         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
41394         struct sockaddr.sa_len.
41395         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
41396
41397 2008-10-13  Simon Josefsson  <simon@josefsson.org>
41398
41399         * build-aux/pmccabe2html: Add css and css_url parameters.
41400
41401 2008-10-12  Bruno Haible  <bruno@clisp.org>
41402
41403         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
41404         calling aclx_get.
41405         Reported by Rainer Tammer <tammer@tammer.net>.
41406
41407 2008-10-12  Bruno Haible  <bruno@clisp.org>
41408
41409         Use msvcrt aware primitives for creation/termination of Win32 threads.
41410         * lib/glthread/thread.c: Include <process.h>.
41411         (glthread_create_func): Use _beginthreadex instead of CreateThread.
41412         (wrapper_func): Update signature.
41413         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
41414
41415 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
41416             Bruno Haible  <bruno@clisp.org>
41417
41418         Provide a Win32 implementation of the 'cond' module.
41419         * lib/glthread/cond.h [USE_WIN32]: New implementation.
41420         * lib/glthread/cond.c (glthread_cond_init_func,
41421         glthread_cond_wait_func, glthread_cond_timedwait_func,
41422         glthread_cond_signal_func, glthread_cond_broadcast_func,
41423         glthread_cond_destroy_func) [USE_WIN32]: New functions.
41424         * modules/cond (Dependencies): Add gettimeofday.
41425
41426 2008-10-11  Bruno Haible  <bruno@clisp.org>
41427
41428         Make sleep work on older versions of mingw.
41429         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
41430         only whether it exists.
41431         * doc/posix-functions/sleep.texi: Mention the problem with older
41432         versions of mingw.
41433
41434 2008-10-11  Bruno Haible  <bruno@clisp.org>
41435
41436         New module 'shutdown'.
41437         * modules/shutdown: New file.
41438         * lib/sys_socket.in.h (shutdown): New declaration.
41439         * lib/winsock.c (shutdown): New function.
41440         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
41441         GNULIB_SHUTDOWN.
41442         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
41443         * doc/posix-functions/shutdown.texi: Document the new module.
41444
41445 2008-10-11  Jim Meyering  <meyering@redhat.com>
41446
41447         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
41448
41449 2008-10-11  Bruno Haible  <bruno@clisp.org>
41450
41451         New module 'fclose'.
41452         * modules/fclose: New file.
41453         * lib/stdio.in.h (fclose): New declaration.
41454         * lib/fclose.c: New file.
41455         * m4/fclose.m4: New file.
41456         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
41457         REPLACE_FCLOSE.
41458         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
41459         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
41460         REPLACE_FCLOSE.
41461         * modules/close (Depends-on): fclose.
41462         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
41463
41464 2008-10-11  Bruno Haible  <bruno@clisp.org>
41465
41466         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
41467         set errno and don't call _close.
41468
41469 2008-10-10  Bruno Haible  <bruno@clisp.org>
41470
41471         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
41472         ACL, not afterwards. Fixes test failure on Cygwin.
41473
41474 2008-10-09  Ben Pfaff  <blp@gnu.org>
41475
41476         * build-aux/announce-gen: Fix gnulib version related part of usage
41477         message.  Die with a useful error message if no tarballs are
41478         found.
41479
41480 2008-10-10  Jim Meyering  <meyering@redhat.com>
41481
41482         bootstrap: use git's --depth=N option only if it's supported
41483         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
41484         recognize the --depth option.  Reported by Pádraig Brady.
41485
41486 2008-10-09  Bruno Haible  <bruno@clisp.org>
41487
41488         New module 'ioctl'.
41489         * modules/ioctl: New file.
41490         * lib/sys_socket.in.h (ioctl): Remove declaration.
41491         * lib/winsock.c: Include <sys/ioctl.h>.
41492         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
41493         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
41494         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
41495         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
41496         * doc/posix-functions/ioctl.texi: Mention the new module.
41497
41498 2008-10-09  Bruno Haible  <bruno@clisp.org>
41499
41500         New module 'sys_ioctl'.
41501         * lib/sys_ioctl.in.h: New file.
41502         * m4/sys_ioctl_h.m4: New file.
41503         * modules/sys_ioctl: New file.
41504         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
41505
41506 2008-10-09  Bruno Haible  <bruno@clisp.org>
41507
41508         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
41509         * lib/winsock.c: Include <stdarg.h>.
41510         (rpl_ioctl): Change to second argument 'int' and then varargs.
41511
41512 2008-10-09  Bruno Haible  <bruno@clisp.org>
41513
41514         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
41515         when the sys_socket module is present and the system has <winsock2.h>.
41516
41517 2008-10-09  Bruno Haible  <bruno@clisp.org>
41518
41519         * doc/posix-functions/close.texi: Mention module 'close' instead of
41520         module 'sys_socket'.
41521
41522 2008-10-09  Bruno Haible  <bruno@clisp.org>
41523
41524         * doc/glibc-headers/sys_ioctl.texi: New file.
41525         * doc/gnulib.texi: Include it.
41526
41527 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
41528             Bruno Haible  <bruno@clisp.org>
41529
41530         Combine the two replacements of 'close'.
41531         * lib/sys_socket.in.h (close): Define to a reminder to include
41532         <unistd.h>.
41533         (_gl_close_fd_maybe_socket): New declaration.
41534         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
41535         * lib/winsock.c (close): Remove undefinition.
41536         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
41537         needed for the gnulib module 'close'.
41538         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
41539         define to an error symbol or to a warning, if suitable.
41540         * lib/close.c: Include <sys/socket.h>.
41541         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
41542         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
41543         UNISTD_H_HAVE_WINSOCK2_H.
41544         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
41545         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
41546         UNISTD_H_HAVE_WINSOCK2_H.
41547         * modules/sys_socket (Files): Add m4/unistd_h.m4.
41548         (configure.ac): Set a module indicator.
41549         (Makefile.am): Substitute GNULIB_CLOSE.
41550         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
41551         * modules/poll-tests (Depends-on): Add close.
41552         * modules/select-tests (Depends-on): Likewise.
41553
41554 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
41555             Bruno Haible  <bruno@clisp.org>
41556
41557         New module 'close'.
41558         * modules/close: New file.
41559         * lib/unistd.in.h (close): Move declaration out of the
41560         FCHDIR_REPLACEMENT scope.
41561         (_gl_unregister_fd): New declaration.
41562         * lib/close.c: New file.
41563         * lib/fchdir.c (rpl_close): Remove function.
41564         * m4/close.m4: New file.
41565         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
41566         close.
41567         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
41568         REPLACE_CLOSE.
41569         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
41570         REPLACE_CLOSE.
41571         * modules/fchdir (Depends-on): Add close.
41572
41573 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
41574             Bruno Haible  <bruno@clisp.org>
41575
41576         * lib/fcntl.in.h (open): Simplify conditionals.
41577         (_gl_register_fd): New declaration.
41578         * lib/fchdir.c (rpl_open): Remove function.
41579         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
41580         also.
41581         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
41582         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
41583         open.
41584
41585 2008-10-09  Jim Meyering  <meyering@redhat.com>
41586
41587         GNUmakefile: use the more name-space-friendly "_version"
41588         * top/GNUmakefile (_dummy): Update.
41589         (_version): Rename from "version".
41590
41591 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
41592             Bruno Haible  <bruno@clisp.org>
41593
41594         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
41595         rpl_close.
41596         (_gl_register_fd): New function, extracted from rpl_open.
41597         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
41598         (rpl_open, rpl_opendir): Use _gl_register_fd.
41599
41600 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
41601
41602         Fix organization of 'open' replacement.
41603         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
41604         (gl_FUNC_OPEN): Use it.
41605         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
41606
41607 2008-10-08  Bruno Haible  <bruno@clisp.org>
41608
41609         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
41610
41611 2008-10-08  Simon Josefsson  <simon@josefsson.org>
41612
41613         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
41614         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
41615         listen).
41616
41617 2008-10-08  Eric Blake  <ebb9@byu.net>
41618
41619         GNUmakefile: add 'make version' target
41620         * top/GNUmakefile (_curr-ver): Split version update rules...
41621         (version): ...into a target.
41622
41623 2008-10-07  Bruno Haible  <bruno@clisp.org>
41624
41625         Use a more portable replacement expression for -0.0L.
41626         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
41627         instead of -0.0L. Fix m4 quotation.
41628
41629         * tests/test-signbit.c: Include <float.h>.
41630         (minus_zero): New variable.
41631         (test_signbitl): Use minus_zero instead of -zero.
41632         * modules/signbit-tests (Depends-on): Add float.
41633
41634         * tests/test-ceill.c: Include <float.h>.
41635         (zero): Remove variable.
41636         (minus_zero): New variable.
41637         (main): Use minus_zero instead of -zero.
41638         * modules/ceill-tests (Depends-on): Add float.
41639
41640         * tests/test-floorl.c: Include <float.h>.
41641         (zero): Remove variable.
41642         (minus_zero): New variable.
41643         (main): Use minus_zero instead of -zero.
41644         * modules/floorl-tests (Depends-on): Add float.
41645
41646         * tests/test-roundl.c: Include <float.h>.
41647         (zero): Remove variable.
41648         (minus_zero): New variable.
41649         (main): Use minus_zero instead of -zero.
41650         * modules/roundl-tests (Depends-on): Add float.
41651
41652         * tests/test-truncl.c: Include <float.h>.
41653         (zero): Remove variable.
41654         (minus_zero): New variable.
41655         (main): Use minus_zero instead of -zero.
41656         * modules/truncl-tests (Depends-on): Add float.
41657
41658         * tests/test-frexpl.c (zero): Remove variable.
41659         (minus_zero): New variable.
41660         (main): Use minus_zero instead of -zero.
41661         * modules/frexpl-tests (Depends-on): Add float.
41662
41663         * tests/test-isnan.c (zerol): Remove variable.
41664         (minus_zerol): New variable.
41665         (test_long_double): Use minus_zerol instead of -zerol.
41666         * modules/isnan-tests (Depends-on): Add float.
41667
41668         * tests/test-isnanl.h (zero): Remove variable.
41669         (minus_zero): New variable.
41670         (main): Use minus_zero instead of -zero.
41671         * modules/isnanl-nolibm-tests (Depends-on): Add float.
41672         * modules/isnanl-tests (Depends-on): Add float.
41673
41674         * tests/test-ldexpl.c (zero): Remove variable.
41675         (minus_zero): New variable.
41676         (main): Use minus_zero instead of -zero.
41677         * modules/ldexpl-tests (Depends-on): Add float.
41678
41679         * tests/test-snprintf-posix.h (zerol): Remove variable.
41680         (minus_zerol): New variable.
41681         (test_function): Use minus_zerol instead of -zerol.
41682         * modules/snprintf-posix-tests (Depends-on): Add float.
41683         * modules/vsnprintf-posix-tests (Depends-on): Add float.
41684
41685         * tests/test-sprintf-posix.h (zerol): Remove variable.
41686         (minus_zerol): New variable.
41687         (test_function): Use minus_zerol instead of -zerol.
41688         * modules/sprintf-posix-tests (Depends-on): Add float.
41689         * modules/vsprintf-posix-tests (Depends-on): Add float.
41690
41691         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
41692         (minus_zerol): New variable.
41693         (test_function): Use minus_zerol instead of -zerol.
41694         * modules/vasnprintf-posix-tests (Depends-on): Add float.
41695
41696         * tests/test-vasprintf-posix.c (zerol): Remove variable.
41697         (minus_zerol): New variable.
41698         (test_function): Use minus_zerol instead of -zerol.
41699         * modules/vasprintf-posix-tests (Depends-on): Add float.
41700
41701 2008-10-07  Simon Josefsson  <simon@josefsson.org>
41702
41703         * MODULES.html.sh (Support for building documentation): Mention
41704         pmccabe2html.  Sort entries.
41705
41706         Add pmccabe2html module, from gnupdf.
41707         * build-aux/pmccabe.css: New file.
41708         * build-aux/pmccabe2html: New file.
41709         * m4/pmccabe2html.m4: New file.
41710         * modules/pmccabe2html: New file.
41711
41712 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
41713
41714         flock: new module
41715         * MODULES.html.sh: Add to list of modules.
41716         * lib/flock.c: flock implementation for Windows and Unix systems
41717         which have fcntl.
41718         * doc/glibc-functions/flock.texi: Update documentation.
41719         * lib/sys_file.in.h: <sys/file.h> header file.
41720         * m4/flock.m4: M4 macros.
41721         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
41722         * modules/flock: flock module.
41723         * modules/flock-tests: flock tests module.
41724         * modules/sys_file: sys/file.h module.
41725         * tests/test-flock.c: test suite for flock.
41726
41727 2008-10-06  Jim Meyering  <meyering@redhat.com>
41728
41729         bootstrap: check for LT_INIT more portably still ;-)
41730         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
41731         Spotted by Bruno Haible.
41732
41733 2008-10-06  Eric Blake  <ebb9@byu.net>
41734
41735         test-signbit: avoid tripping Irix cc bug on -0.0L
41736         * tests/test-signbit.c (minus_zerol): Delete, and replace with
41737         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
41738         entire testsuite consistent and avoids an Irix 6.2 bug.
41739
41740 2008-10-05  Bruno Haible  <bruno@clisp.org>
41741             Jim Meyering  <jim@meyering.net>
41742
41743         Add an option for ignoring EPIPE during close_stdout.
41744         * lib/closeout.h: Include <stdbool.h>.
41745         (close_stdout_set_ignore_EPIPE): New declaration.
41746         * lib/closeout.c: Include <stdbool.h>.
41747         (ignore_EPIPE): New variable.
41748         (close_stdout_set_ignore_EPIPE): New function.
41749         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
41750         * lib/close-stream.c (close_stream): Mention the possible EPIPE
41751         failure.
41752         * modules/closeout (Depends-on): Add stdbool.
41753
41754 2008-10-05  Bruno Haible  <bruno@clisp.org>
41755
41756         * modules/accept: New file.
41757         * modules/bind: New file.
41758         * modules/connect: New file.
41759         * modules/getpeername: New file.
41760         * modules/getsockname: New file.
41761         * modules/getsockopt: New file.
41762         * modules/listen: New file.
41763         * modules/recv: New file.
41764         * modules/recvfrom: New file.
41765         * modules/send: New file.
41766         * modules/sendto: New file.
41767         * modules/setsockopt: New file.
41768         * modules/socket: New file.
41769         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
41770         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
41771         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
41772         the particular module is requested. Add a link warning when the
41773         particular module is not requested.
41774         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
41775         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
41776         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
41777         the particular module is requested.
41778         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
41779         gl_SYS_SOCKET_H_DEFAULTS): New macros.
41780         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
41781         * modules/sys_socket (Depends-on): Add link-warning.
41782         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
41783         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
41784         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
41785         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
41786         GL_LINK_WARNING.
41787         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
41788         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
41789         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
41790         * doc/posix-functions/getpeername.texi: Mention the new module
41791         'getpeername'.
41792         * doc/posix-functions/getsockname.texi: Mention the new module
41793         'getsockname'.
41794         * doc/posix-functions/getsockopt.texi: Mention the new module
41795         'getsockopt'.
41796         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
41797         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
41798         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
41799         * doc/posix-functions/send.texi: Mention the new module 'send'.
41800         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
41801         * doc/posix-functions/setsockopt.texi: Mention the new module
41802         'setsockopt'.
41803         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
41804         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
41805         listen, connect, accept.
41806         * modules/select-tests (Depends-on): Likewise.
41807
41808 2008-10-05  Bruno Haible  <bruno@clisp.org>
41809
41810         * lib/winsock.c (strerror): Remove unused #undef.
41811         (rpl_close): Remove unused local variable.
41812
41813         * modules/sys_socket (Depends-on); Add errno.
41814
41815 2008-10-05  Bruno Haible  <bruno@clisp.org>
41816
41817         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
41818         (select): Add a link warning when the 'select' module is not used.
41819         * modules/sys_select (Depends-on): Add link-warning.
41820         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
41821         Suggested by Paolo Bonzini.
41822
41823 2008-10-05  Jim Meyering  <meyering@redhat.com>
41824
41825         bootstrap: check for LT_INIT more portably
41826         * build-aux/bootstrap: Avoid using grep -E, since it's not
41827         portable enough.  Suggestion from Bruno Haible.
41828
41829 2008-10-05  Bruno Haible  <bruno@clisp.org>
41830
41831         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
41832         as being fixed by gnulib.
41833
41834 2008-10-05  Bruno Haible  <bruno@clisp.org>
41835
41836         * modules/select-tests: New file, mostly copied from
41837         modules/sys_select-tests.
41838         * tests/test-select.c: New file, mostly copied from
41839         tests/test-sys_select.c.
41840         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
41841         * modules/sys_select-tests (Depends-on): Remove all dependencies.
41842         (Makefile.am): Remove test_sys_select_LDADD.
41843
41844         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
41845         to an undefined symbol, for an error message.
41846         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
41847         (gl_SYS_SELECT_H_DEFAULTS): New macro.
41848         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
41849         winsock-select.c here.
41850         * modules/sys_select (Files): Remove lib/winsock-select.c.
41851         (Depends-on): Remove alloca.
41852         (Makefile.am): Substitute GNULIB_SELECT.
41853         * modules/select: New file.
41854         * doc/posix-functions/select.texi: Update.
41855
41856 2008-10-05  Bruno Haible  <bruno@clisp.org>
41857
41858         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
41859         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
41860         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
41861         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
41862         getdtablesize.
41863         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
41864         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
41865
41866 2008-10-05  Bruno Haible  <bruno@clisp.org>
41867
41868         * modules/getdtablesize-tests: New file.
41869         * tests/test-getdtablesize.c: New file.
41870
41871         New module 'getdtablesize'.
41872         * lib/unistd.in.h (getdtablesize): New declaration.
41873         * lib/getdtablesize.c: New file.
41874         * m4/getdtablesize.m4: New file.
41875         * modules/getdtablesize: New file.
41876         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
41877         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
41878         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
41879         HAVE_GETDTABLESIZE.
41880         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
41881
41882 2008-10-05  Bruno Haible  <bruno@clisp.org>
41883
41884         * modules/sched (Makefile.am): Fix typo.
41885         Reported by Simon Josefsson.
41886
41887 2008-10-05  Jim Meyering  <meyering@redhat.com>
41888
41889         bootstrap: check for LT_INIT, too
41890         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
41891         are deprecated.  Suggestion from Ralf Wildenhues.
41892
41893 2008-10-05  Bruno Haible  <bruno@clisp.org>
41894
41895         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
41896         overriding them by ours.
41897         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
41898
41899 2008-10-05  Jim Meyering  <meyering@redhat.com>
41900
41901         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
41902         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
41903         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
41904
41905 2008-10-04  Bruno Haible  <bruno@clisp.org>
41906
41907         * modules/dup2 (License): Change to LGPLv2+.
41908         * modules/sleep (License): Likewise.
41909         * modules/perror (License): Likewise.
41910         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
41911         Blake.
41912         * modules/signal (License): Likewise.
41913         * modules/sigprocmask (License): Likewise.
41914         * modules/raise (License): Change to LGPLv2+, with approval by Jim
41915         Meyering.
41916
41917 2008-10-04  Bruno Haible  <bruno@clisp.org>
41918
41919         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
41920         Reported by Rainer Tammer <tammer@tammer.net>.
41921
41922 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
41923             Bruno Haible  <bruno@clisp.org>
41924
41925         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
41926         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
41927         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
41928
41929 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
41930
41931         filevercmp: new module
41932         * lib/filevercmp.h: New function filevercmp comparing version strings.
41933         * lib/filevercmp.c: Implementation of filevercmp function.
41934         * modules/filevercmp: Module metadata.
41935         * tests/test-filevercmp.c: Unit test for new module.
41936         * modules/filevercmp-tests: Unit test metadata.
41937         * MODULES.html.sh: Add filevercmp module.
41938
41939 2008-10-03  Bruno Haible  <bruno@clisp.org>
41940
41941         * lib/c-ctype.h: Add comment.
41942         Reported by Jim Meyering.
41943
41944 2008-10-02  Bruno Haible  <bruno@clisp.org>
41945
41946         * modules/posix_spawn-internal (Depends-on): Add 'open'.
41947
41948 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
41949
41950         * build-aux/bootstrap: Allow renaming bootstrap, and change the
41951         name of bootstrap.conf accordingly.
41952
41953 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
41954
41955         * build-aux/bootstrap: Install git-merge-changelog configuration
41956         items into .gitconfig if needed.
41957
41958 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
41959
41960         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
41961         git repository, and initialize/update it accordingly.
41962
41963 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
41964
41965         * modules/fsync-tests: New file.
41966         * tests/test-fsync.c: New file.
41967
41968         New module 'fsync'.
41969         * lib/fsync.c: New file.
41970         * m4/fsync.m4: New file.
41971         * modules/fsync: New file.
41972         * lib/unistd.in.h (fsync): New declaration.
41973         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
41974         GNULIB_FSYNC and HAVE_FSYNC.
41975         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
41976         * MODULES.html.sh (posix_functions): Add fsync.
41977         * doc/posix-functions/fsync.texi: Mention the new module.
41978
41979 2008-10-02  Jim Meyering  <meyering@redhat.com>
41980
41981         fts.c: sync with similar code from coreutils' remove.c
41982         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
41983         Guard also with "#if defined __linux__", since for now at least,
41984         this code is Linux-kernel-specific.
41985
41986 2008-10-02  Jim Meyering  <meyering@redhat.com>
41987
41988         fts: bug fixes
41989         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
41990         Include <sys/vfs.h>, not <sys/statfs.h>.
41991
41992         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
41993         Include <sys/vfs.h>, not <sys/statfs.h>.
41994
41995 2008-10-01  Bruno Haible  <bruno@clisp.org>
41996
41997         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
41998         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
41999         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
42000         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
42001         * doc/posix-functions/posix_spawnp.texi: Likewise.
42002         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
42003         whether posix_spawn actually works.
42004         * m4/pipe.m4 (gl_PIPE): Likewise.
42005         * modules/execute (Files): Add m4/posix_spawn.m4.
42006         * modules/pipe (Files): Add m4/posix_spawn.m4.
42007         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
42008
42009 2008-10-01  Jim Meyering  <meyering@redhat.com>
42010
42011         remove trailing spaces
42012         * NEWS: Likewise.
42013         * lib/poll.c (poll): Likewise.
42014         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
42015         * lib/winsock.c (rpl_close): Likewise.
42016         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
42017         * modules/yield: Likewise.
42018         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
42019         * tests/test-sys_select.c (connect_to_socket): Likewise.
42020
42021         fts.c: adjust a new interface to be more generally useful
42022         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
42023         (fts_build): Adjust caller.
42024
42025 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42026
42027         * modules/cond-tests: New file.
42028         * tests/test-cond.c: New file.
42029
42030 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42031             Bruno Haible  <bruno@clisp.org>
42032
42033         * modules/cond (Dependencies): Add errno, time.
42034         * lib/glthread/cond.h: Include <time.h>.
42035         (gl_cond_define, gl_cond_define_initialized): Use the same definition
42036         across platforms.
42037
42038 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42039             Bruno Haible  <bruno@clisp.org>
42040
42041         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
42042
42043 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42044             Bruno Haible  <bruno@clisp.org>
42045
42046         * modules/tls-tests (Depends-on): Add thread, yield.
42047         (configure.ac): Remove all checks.
42048         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
42049         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
42050         gl_thread_self): Remove definitions. Include glthread/thread.h and
42051         glthread/yield.h instead.
42052         (test_tls): Pass an additional NULL argument to gl_thread_join.
42053
42054 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42055             Bruno Haible  <bruno@clisp.org>
42056
42057         * modules/lock-tests (Depends-on): Add thread, yield.
42058         (configure.ac): Remove all checks.
42059         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
42060         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
42061         gl_thread_self): Remove definitions. Include glthread/thread.h and
42062         glthread/yield.h instead.
42063         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
42064         additional NULL argument to gl_thread_join.
42065
42066 2008-09-30  Bruno Haible  <bruno@clisp.org>
42067
42068         Fix the Win32 implementation of the 'thread' module.
42069         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
42070         pointer type.
42071         (gl_thread_self): Invoke gl_thread_self_func.
42072         (gl_thread_self_func): New declaration.
42073         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
42074         (do_init_self_key, init_self_key): New functions.
42075         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
42076         Remove some fields.
42077         (running_threads, running_lock): Remove variables.
42078         (get_current_thread_handle): New function.
42079         (gl_thread_self_func, wrapper_func, glthread_create_func,
42080         glthread_join_func, gl_thread_exit_func): Largely rewritten and
42081         simplified.
42082
42083 2008-09-30  Bruno Haible  <bruno@clisp.org>
42084
42085         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
42086         files.
42087
42088 2008-09-30  Jim Meyering  <meyering@redhat.com>
42089
42090         fts.m4: correct the test for statfs.f_type
42091         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
42092         when checking for statfs.f_type.
42093
42094 2008-09-15  Simon Josefsson  <simon@josefsson.org>
42095
42096         tests: avoid some compiler warnings
42097         * tests/test-memchr.c (main): Pass NULL indirectly.
42098         * tests/test-getdate.c (main): Remove unused variable 'ret'.
42099
42100 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
42101
42102         getdate.y: disallow countable dayshifts like "4 yesterday ago"
42103         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
42104         exactly specified dayshifts.
42105         (dayshift): New rule.
42106         (rel): Add dayshift.
42107         (relative_time_table) [tomorrow, yesterday, today, now]:
42108         Use tDAY_SHIFT in place of tDAY_UNIT.
42109         * tests/test-getdate.c: Add tests for now-disallowed countable
42110         dayshifts, e.g., "4 yesterday ago".
42111
42112 2008-09-29  Bruno Haible  <bruno@clisp.org>
42113
42114         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
42115         * tests/test-posix_spawn1.in.sh: Renamed from
42116         tests/test-posix_spawn.in.sh.
42117         * tests/test-posix_spawn2.c: New file.
42118         * tests/test-posix_spawn2.in.sh: New file.
42119         * modules/posix_spawnp-tests (Files): Update.
42120         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
42121
42122 2008-09-29  Bruno Haible  <bruno@clisp.org>
42123
42124         Propagate effects of putenv/setenv/unsetenv to child processes.
42125         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
42126         * lib/pipe.c (create_pipe): Likewise.
42127
42128 2008-09-29  Bruno Haible  <bruno@clisp.org>
42129
42130         Enable use of shell scripts as executables in mingw.
42131         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
42132         run the program as a shell script.
42133         * lib/pipe.c (create_pipe): Likewise.
42134         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
42135         resulting array.
42136
42137 2008-09-29  Eric Blake  <ebb9@byu.net>
42138
42139         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
42140
42141 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
42142
42143         * doc/posix-functions/accept.texi: Update mingw problems.
42144         * doc/posix-functions/bind.texi: Update mingw problems.
42145         * doc/posix-functions/close.texi: Update mingw problems.
42146         * doc/posix-functions/connect.texi: Update mingw problems.
42147         * doc/posix-functions/getpeername.texi: Update mingw problems.
42148         * doc/posix-functions/getsockname.texi: Update mingw problems.
42149         * doc/posix-functions/getsockopt.texi: Update mingw problems.
42150         * doc/posix-functions/ioctl.texi: Update mingw problems.
42151         * doc/posix-functions/listen.texi: Update mingw problems.
42152         * doc/posix-functions/recv.texi: Update mingw problems.
42153         * doc/posix-functions/recvfrom.texi: Update mingw problems.
42154         * doc/posix-functions/select.texi: Update mingw problems.
42155         * doc/posix-functions/send.texi: Update mingw problems.
42156         * doc/posix-functions/sendto.texi: Update mingw problems.
42157         * doc/posix-functions/setsockopt.texi: Update mingw problems.
42158         * doc/posix-functions/socket.texi: Update mingw problems.
42159
42160 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
42161             Bruno Haible  <bruno@clisp.org>
42162
42163         * lib/sys_select.in.h: Include sys/time.h.
42164         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
42165         * modules/sys_select: Depend on sys_time.
42166         * tests/test-sys_select.c: Test that sys/select.h defines struct
42167         timeval fully.
42168
42169 2008-09-29  Bruno Haible  <bruno@clisp.org>
42170
42171         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
42172         * lib/sys_select.in.h: Likewise.
42173
42174 2008-09-29  Bruno Haible  <bruno@clisp.org>
42175
42176         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
42177
42178 2008-09-29  Bruno Haible  <bruno@clisp.org>
42179
42180         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
42181         Set LIBSOCKET instead of augmenting LIBS.
42182         * modules/sockets (Link): New section.
42183         * modules/sockets-tests (test_sockets_LDADD): New variable.
42184         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
42185         * modules/poll-tests (test_poll_LDADD): New variable.
42186         * NEWS: Document the change.
42187
42188 2008-09-29  Bruno Haible  <bruno@clisp.org>
42189
42190         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
42191         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
42192         ARPA_INET_H directly.
42193         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
42194
42195 2008-09-28  Bruno Haible  <bruno@clisp.org>
42196
42197         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
42198         from gl_HEADER_SYS_SOCKET.
42199         (gl_HEADER_SYS_SOCKET): Invoke it.
42200         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
42201
42202 2008-09-28  Bruno Haible  <bruno@clisp.org>
42203
42204         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
42205         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
42206         Needed on OSF/1 4.0.
42207
42208 2008-09-28  Bruno Haible  <bruno@clisp.org>
42209
42210         Override open more carefully.
42211         * lib/open.c (orig_open): New function.
42212         (rpl_open): Use orig_open instead of open.
42213         * lib/fcntl.in.h: Add special invocation convention.
42214         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
42215         (gl_FUNC_OPEN): Invoke it.
42216
42217         Override freopen more carefully.
42218         * lib/freopen.c (orig_freopen): New function.
42219         (rpl_freopen): Use orig_freopen instead of freopen.
42220         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
42221         (gl_FUNC_FREOPEN): Invoke it.
42222
42223         Override fopen more carefully.
42224         * lib/fopen.c (orig_fopen): New function.
42225         (rpl_fopen): Use orig_fopen instead of fopen.
42226         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
42227         (gl_FUNC_FOPEN): Invoke it.
42228         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
42229
42230 2008-09-28  Bruno Haible  <bruno@clisp.org>
42231
42232         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
42233         SIGPIPE.
42234
42235 2008-09-28  Bruno Haible  <bruno@clisp.org>
42236
42237         * tests/test-sigaction.c (handler, main): Disable the check whether
42238         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
42239         glibc systems with LinuxThreads.
42240
42241 2008-09-28  Bruno Haible  <bruno@clisp.org>
42242
42243         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
42244
42245         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
42246         with AIX xlc.
42247         * lib/fcntl.in.h (open): Likewise.
42248         Reported by Rainer Tammer <tammer@tammer.net>.
42249
42250 2008-09-28  Bruno Haible  <bruno@clisp.org>
42251
42252         * modules/posix_spawnp-tests: New file.
42253         * tests/test-posix_spawn.c: New file.
42254         * tests/test-posix_spawn.in.sh: New file.
42255
42256         New module 'posix_spawnp'.
42257         * modules/posix_spawnp: New file.
42258         * lib/spawnp.c: New file, from GNU libc with modifications.
42259         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
42260
42261         New module 'posix_spawn'.
42262         * modules/posix_spawn: New file.
42263         * lib/spawn.c: New file, from GNU libc with modifications.
42264         * doc/posix-functions/posix_spawn.texi: Mention the new module.
42265
42266         New module 'posix_spawnattr_destroy'.
42267         * modules/posix_spawnattr_destroy: New file.
42268         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
42269         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
42270         module.
42271
42272         New module 'posix_spawnattr_setsigmask'.
42273         * modules/posix_spawnattr_setsigmask: New file.
42274         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
42275         modifications.
42276         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
42277         new module.
42278
42279         New module 'posix_spawnattr_getsigmask'.
42280         * modules/posix_spawnattr_getsigmask: New file.
42281         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
42282         modifications.
42283         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
42284         new module.
42285
42286         New module 'posix_spawnattr_setsigdefault'.
42287         * modules/posix_spawnattr_setsigdefault: New file.
42288         * lib/spawnattr_setdefault.c: New file, from GNU libc with
42289         modifications.
42290         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
42291         new module.
42292
42293         New module 'posix_spawnattr_getsigdefault'.
42294         * modules/posix_spawnattr_getsigdefault: New file.
42295         * lib/spawnattr_getdefault.c: New file, from GNU libc with
42296         modifications.
42297         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
42298         new module.
42299
42300         New module 'posix_spawnattr_setschedpolicy'.
42301         * modules/posix_spawnattr_setschedpolicy: New file.
42302         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
42303         modifications.
42304         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
42305         new module.
42306
42307         New module 'posix_spawnattr_getschedpolicy'.
42308         * modules/posix_spawnattr_getschedpolicy: New file.
42309         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
42310         modifications.
42311         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
42312         new module.
42313
42314         New module 'posix_spawnattr_setschedparam'.
42315         * modules/posix_spawnattr_setschedparam: New file.
42316         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
42317         modifications.
42318         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
42319         new module.
42320
42321         New module 'posix_spawnattr_getschedparam'.
42322         * modules/posix_spawnattr_getschedparam: New file.
42323         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
42324         modifications.
42325         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
42326         new module.
42327
42328         New module 'posix_spawnattr_setpgroup'.
42329         * modules/posix_spawnattr_setpgroup: New file.
42330         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
42331         modifications.
42332         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
42333         module.
42334
42335         New module 'posix_spawnattr_getpgroup'.
42336         * modules/posix_spawnattr_getpgroup: New file.
42337         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
42338         modifications.
42339         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
42340         module.
42341
42342         New module 'posix_spawnattr_setflags'.
42343         * modules/posix_spawnattr_setflags: New file.
42344         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
42345         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
42346         module.
42347
42348         New module 'posix_spawnattr_getflags'.
42349         * modules/posix_spawnattr_getflags: New file.
42350         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
42351         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
42352         module.
42353
42354         New module 'posix_spawnattr_init'.
42355         * modules/posix_spawnattr_init: New file.
42356         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
42357         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
42358         module.
42359
42360         New module 'posix_spawn_file_actions_destroy'.
42361         * modules/posix_spawn_file_actions_destroy: New file.
42362         * lib/spawn_faction_destroy.c: New file, from GNU libc with
42363         modifications.
42364         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
42365         the new module.
42366
42367         New module 'posix_spawn_file_actions_addopen'.
42368         * modules/posix_spawn_file_actions_addopen: New file.
42369         * lib/spawn_faction_addopen.c: New file, from GNU libc with
42370         modifications.
42371         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
42372         the new module.
42373
42374         New module 'posix_spawn_file_actions_adddup2'.
42375         * modules/posix_spawn_file_actions_adddup2: New file.
42376         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
42377         modifications.
42378         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
42379         the new module.
42380
42381         New module 'posix_spawn_file_actions_addclose'.
42382         * modules/posix_spawn_file_actions_addclose: New file.
42383         * lib/spawn_faction_addclose.c: New file, from GNU libc with
42384         modifications.
42385         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
42386         the new module.
42387
42388         New module 'posix_spawn_file_actions_init'.
42389         * modules/posix_spawn_file_actions_init: New file.
42390         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
42391         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
42392         new module.
42393
42394         New module 'posix_spawn-internal'.
42395         * modules/posix_spawn-internal: New file.
42396         * lib/spawn_int.h: New file, from GNU libc with modifications.
42397         * lib/spawni.c: New file, from GNU libc with modifications.
42398         * m4/posix_spawn.m4: New file.
42399
42400         New module 'spawn'.
42401         * modules/spawn: New file.
42402         * lib/spawn.in.h: New file, from GNU libc with modifications.
42403         * m4/spawn_h.m4: New file.
42404         * doc/posix-headers/spawn.texi: Mention the new module.
42405
42406 2008-09-28  Bruno Haible  <bruno@clisp.org>
42407
42408         * modules/sched-tests: New file.
42409         * tests/test-sched.c: New file.
42410
42411         New module 'sched'.
42412         * modules/sched: New file.
42413         * lib/sched.in.h: New file.
42414         * m4/sched_h.m4: New file.
42415         * doc/posix-headers/sched.texi: Mention the new module.
42416
42417 2008-09-27  Eric Blake  <ebb9@byu.net>
42418
42419         Fix previous patch, and tweak references to $0.
42420         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
42421         (func_version, func_gnulib_dir): Don't call this program
42422         gnulib-tool.
42423         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
42424         with using $0 in function.
42425         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
42426         (func_fatal_error): Reuse the name the user invoked us with.
42427
42428 2008-09-27  Bruno Haible  <bruno@clisp.org>
42429
42430         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
42431         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
42432         (gl_ICONV_H): Not here.
42433         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
42434         instead of assigning ICONV_H directly.
42435
42436         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
42437         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
42438         WCHAR_H directly.
42439
42440 2008-09-27  Bruno Haible  <bruno@clisp.org>
42441
42442         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
42443         * modules/arpa_inet (Depends-on): Add link-warning.
42444         (Makefile.am): Insert the definition of GL_LINK-WARNING.
42445         * modules/unistd (Makefile.am): Likewise.
42446
42447 2008-09-26  Bruno Haible  <bruno@clisp.org>
42448
42449         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
42450         variables.
42451         (func_version): Essentially copied from gnulib-tool.
42452         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
42453         func_readlink): Copied from gnulib-tool.
42454
42455 2008-09-26  Bruno Haible  <bruno@clisp.org>
42456
42457         * gnulib-tool (func_version): Change directory to $gnulib_dir before
42458         invoking git-version-gen.
42459
42460 2008-09-26  Bruno Haible  <bruno@clisp.org>
42461
42462         * posix-modules: Update to directory names changed on 2008-01-19.
42463         Remove commas in output before splitting into words. No more need to
42464         avoid 'ftruncate' since 2007-02-19.
42465
42466 2008-09-26  Bruno Haible  <bruno@clisp.org>
42467
42468         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
42469
42470 2008-09-26  Bruno Haible  <bruno@clisp.org>
42471
42472         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
42473         * modules/fwriteerror (Depends-on): Add errno.
42474
42475 2008-09-26  Bruno Haible  <bruno@clisp.org>
42476
42477         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
42478         * tests/test-vc-list-files-cvs.sh: Likewise.
42479
42480 2008-09-26  Bruno Haible  <bruno@clisp.org>
42481
42482         * doc/posix-headers/sys_resource.texi: Reorder items.
42483
42484 2008-09-26  Jim Meyering  <meyering@redhat.com>
42485
42486         fts: tweak inode comparison function
42487         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
42488         inode numbers, as documented.
42489
42490         fts: sort dirent entries on inode number before traversing
42491         This avoids a quadratic, seek-related performance penalty when
42492         operating on a directory containing many entries (measurable at 10k;
42493         3.5 hours at 2 million entries with a cold cache) on certain types
42494         of file systems, including ext3 and ext4, but not tmpfs.
42495         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
42496         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
42497         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
42498         (fs_handles_readdir_ordered_dirents_efficiently): New function.
42499         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
42500         (fts_build): Set the stat.st_ino member from D_INO.
42501         If it is likely to be useful, sort dirent entries on inode number.
42502
42503         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
42504         and the struct statfs.f_type member.
42505         * modules/fts (Depends-on): Add d-ino.
42506
42507 2008-09-26  Bruno Haible  <bruno@clisp.org>
42508
42509         * modules/sigpipe-die (Depends-on): Add sigpipe.
42510
42511         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
42512         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
42513         and GNULIB_STDIO_H_SIGPIPE are set.
42514         * lib/stdio-write.c: New file.
42515         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
42516         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
42517         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
42518         REPLACE_STDIO_WRITE_FUNCS.
42519         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
42520         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
42521         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
42522         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
42523         * modules/stdio (Files): Add lib/stdio-write.c.
42524         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
42525         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
42526         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
42527         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
42528         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
42529         REPLACE_FPRINTF_POSIX.
42530         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
42531         REPLACE_PRINTF_POSIX.
42532         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
42533         REPLACE_VFPRINTF_POSIX.
42534         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
42535         REPLACE_VPRINTF_POSIX.
42536         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
42537         SIGPIPE issue.
42538         * doc/posix-functions/fputc.texi: Likewise.
42539         * doc/posix-functions/fputs.texi: Likewise.
42540         * doc/posix-functions/fwrite.texi: Likewise.
42541         * doc/posix-functions/printf.texi: Likewise.
42542         * doc/posix-functions/putc.texi: Likewise.
42543         * doc/posix-functions/putchar.texi: Likewise.
42544         * doc/posix-functions/puts.texi: Likewise.
42545         * doc/posix-functions/vfprintf.texi: Likewise.
42546         * doc/posix-functions/vprintf.texi: Likewise.
42547
42548         * modules/safe-write (Depends-on): Add write.
42549
42550         * modules/sigpipe-tests: New file.
42551         * tests/test-sigpipe.c: New file.
42552         * tests/test-sigpipe.sh: New file.
42553
42554         * modules/write: New file.
42555         * lib/unistd.in.h: Include <sys/types.h>.
42556         (write): New declaration.
42557         * lib/write.c: New file.
42558         * m4/write.m4: New file.
42559         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
42560         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
42561         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
42562         GNULIB_WRITE, REPLACE_WRITE.
42563         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
42564         and the SIGPIPE issue.
42565
42566         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
42567         (raise): New declaration.
42568         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
42569         (ext_signal): New function.
42570         (rpl_raise): New function.
42571         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
42572         GNULIB_SIGNAL_H_SIGPIPE.
42573         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
42574         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
42575
42576         * modules/sigpipe: New file.
42577         * m4/sigpipe.m4: New file.
42578
42579 2008-09-25  Derek Price  <derek@ximbiot.com>
42580             Bruno Haible  <bruno@clisp.org>
42581
42582         * gnulib-tool (func_import): Report all license incompatibilities, not
42583         just the first one.
42584
42585 2008-09-25  Bruno Haible  <bruno@clisp.org>
42586
42587         * gnulib-tool (func_import): When computing the edits, consider not
42588         only the Makefile.ams that exist but also those that will be generated.
42589
42590 2008-09-25  Simon Josefsson  <simon@josefsson.org>
42591
42592         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
42593         fixes gnulib-tool --test warning about duplicate dependency.
42594
42595 2008-09-25  Bruno Haible  <bruno@clisp.org>
42596
42597         * gnulib-tool: Don't ask the user to perform edits in the generated
42598         Makefile.ams.
42599         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
42600         apply to the Makefile.am being generated.
42601         (func_emit_tests_Makefile_am): Execute edits that apply to the
42602         Makefile.am being generated.
42603         (func_import): Setup list of Makefile.am edits before emitting the
42604         Makefile.ams, not at the end.
42605         (func_create_testdir): Update.
42606         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
42607
42608 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42609
42610         * gnulib-tool (func_import): Store the --tests-base option in the
42611         comment in gnulib-cache.m4.
42612
42613 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
42614
42615         * NEWS: Document increased portability that sys_select now provides.
42616
42617         * lib/sys_select.in.h: Install select wrapper.
42618         * lib/sys_socket.in.h: Use more descriptive name when there is no
42619         select wrapper.
42620         * lib/winsock-select.c: New.
42621         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
42622         Require gl_HEADER_SYS_SOCKET.
42623         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
42624         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
42625         * tests/test-sys_select.c: Add functional tests.
42626
42627 2008-09-24  Eric Blake  <ebb9@byu.net>
42628
42629         open, fopen: close fd leak in last patch
42630         * lib/open.c (rpl_open): Close fd before returning error.
42631         * lib/fopen.c (rpl_fopen): Close fd before returning error.
42632         * doc/posix-functions/open.texi (open): Document that Irix also
42633         has the bug.
42634         * doc/posix-functions/fopen.texi (fopen): Likewise.
42635         Reported by Paolo Bonzini.
42636
42637 2008-09-24  Bruno Haible  <bruno@clisp.org>
42638
42639         Ensure that a filename ending in a slash cannot be used to access a
42640         non-directory.
42641         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
42642         to check whether it's really a directory.
42643         * lib/fopen.c: Include fcntl.h, unistd.h.
42644         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
42645         and fdopen().
42646         * modules/fopen (Depends-on): Add unistd.
42647         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
42648         * tests/test-fopen.c (main): Likewise.
42649         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
42650         * doc/posix-functions/fopen.texi: Likewise.
42651         Reported by Eric Blake.
42652
42653 2008-09-23  Eric Blake  <ebb9@byu.net>
42654
42655         c-stack: avoid compiler optimizations when provoking overflow
42656         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
42657         recursion harder to optimize, to ensure a stack overflow occurs.
42658         * tests/test-c-stack.c (recurse): Likewise.
42659         Borrowed from libsigsegv.
42660
42661         c-stack: work around Irix sigaltstack bug
42662         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
42663         whether sigaltstack uses wrong end of stack_t (copied in part from
42664         libsigsegv).
42665         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
42666         Irix bug, without requiring an over-allocation.
42667         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
42668         bug.
42669
42670         fopen: document mingw bug on directories
42671         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
42672         not allowing a stream visiting a directory, even though reading
42673         from such a stream is not portable.
42674
42675 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
42676
42677         * lib/poll.c: Rewrite.
42678         * modules/poll: Depend on alloca.
42679
42680 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
42681
42682         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
42683         instead define prototypes for a full set of wrappers.  Ensure
42684         that Cygwin does not use the compatibility code, which is only
42685         for MinGW.
42686         * lib/winsock.c: New.
42687         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
42688         * modules/sys_socket: Add lib/winsock.c.
42689
42690         * modules/poll-tests: Add errno and perror.
42691         * tests/test-poll.c: Use ioctl, not ioctlsocket.
42692
42693 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
42694
42695         * tests/test-poll.c: Downgrade minimum needed Winsock version.
42696
42697 2008-09-23  Bruno Haible  <bruno@clisp.org>
42698
42699         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
42700         * doc/glibc-functions/*: Likewise.
42701
42702 2008-09-23  Simon Josefsson  <simon@josefsson.org>
42703
42704         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
42705         success.
42706
42707 2008-09-22  Eric Blake  <ebb9@byu.net>
42708             Bruno Haible  <bruno@clisp.org>
42709
42710         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
42711         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
42712         supply %A but mishandle pseudo-NaN.
42713         Reported by Simon Josefsson.
42714
42715 2008-09-21  Bruno Haible  <bruno@clisp.org>
42716
42717         * tests/test-lock.c (main): Tweak skip message.
42718         * tests/test-tls.c (main): Likewise.
42719
42720 2008-09-21  Bruno Haible  <bruno@clisp.org>
42721
42722         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
42723         whether 'struct sigaction' has sa_sigaction here...
42724         (gl_PREREQ_SIG_HANDLER_H): ... not here.
42725         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
42726
42727 2008-09-21  Bruno Haible  <bruno@clisp.org>
42728
42729         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
42730         section.
42731         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
42732         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
42733         the new section.
42734         (Support for obsolete systems lacking POSIX:2001): New section.
42735         (String handling <string.h>): Move strdup to the new section.
42736         Suggested by Simon Josefsson and Paolo Bonzini.
42737
42738 2008-09-21  Bruno Haible  <bruno@clisp.org>
42739
42740         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
42741         exponents in %e and %g results on 'long double'. Needed for mingw's
42742         improved *printf functions.
42743         * tests/test-vasprintf-posix.c (test_function): Likewise.
42744         * tests/test-snprintf-posix.h (test_function): Likewise.
42745         * tests/test-sprintf-posix.h (test_function): Likewise.
42746         Reported by Eric Blake.
42747
42748 2008-09-21  Bruno Haible  <bruno@clisp.org>
42749
42750         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
42751         * tests/test-sprintf-posix.h (test_function): Likewise.
42752
42753 2008-09-21  Bruno Haible  <bruno@clisp.org>
42754
42755         * modules/getpass (Depends-on): Add strdup-posix.
42756
42757         New module 'strdup-posix'.
42758         * modules/strdup-posix: New file.
42759         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
42760         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
42761         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
42762         REPLACE_STRDUP.
42763         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
42764         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
42765         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
42766         strdup-posix.
42767
42768         * modules/strdup (Depends-on): Remove malloc-posix.
42769
42770 2008-09-20  Bruno Haible  <bruno@clisp.org>
42771
42772         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
42773         Wildenhues.
42774
42775 2008-09-20  Bruno Haible  <bruno@clisp.org>
42776
42777         Ensure that wint_t gets defined on IRIX 5.3.
42778         * lib/wchar.in.h (wint_t): Define if not defined by the system.
42779         * lib/wctype.in.h (wint_t): Likewise.
42780         (__wctype_wint_t): Remove type.
42781         (isw*): Use wint_t instead of __wctype_wint_t.
42782         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
42783         * modules/wchar (Files): Add m4/wint_t.m4.
42784         (Makefile.am): Substitute HAVE_WINT_T.
42785         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
42786         * tests/test-wctype.c: Check that wint_t is defined.
42787         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
42788         * doc/posix-headers/wctype.texi: Likewise.
42789         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42790
42791 2008-09-18  Bruno Haible  <bruno@clisp.org>
42792
42793         * gnulib-tool (func_exit): Update comment.
42794
42795 2008-09-18  Simon Josefsson  <simon@josefsson.org>
42796
42797         * modules/getaddrinfo (Depends-on): Remove strdup, this module
42798         assumes strdup exists and does not depend on strdup to return
42799         ENOMEM on out of memory conditions.
42800
42801 2008-09-18  Bruno Haible  <bruno@clisp.org>
42802
42803         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
42804         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
42805         digits for the exponent.
42806
42807 2008-09-18  Jim Meyering  <meyering@redhat.com>
42808             Bruno Haible  <bruno@clisp.org>
42809
42810         * lib/vasnprintf.c (decimal_point_char): Define also if
42811         NEED_PRINTF_INFINITE_LONG_DOUBLE.
42812
42813 2008-09-16  Bruno Haible  <bruno@clisp.org>
42814         and Eric Blake  <ebb9@byu.net>
42815
42816         vasnprintf: support Irix 5.3
42817         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
42818         that mishandle long double infinity.
42819         Reported by Tom G. Christensen.
42820
42821 2008-09-16  Bruno Haible  <bruno@clisp.org>
42822
42823         * doc/glibc-functions/scandir.texi: Mention the function is missing on
42824         Solaris 9.
42825         * doc/glibc-functions/alphasort.texi: Likewise.
42826         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
42827
42828 2008-09-16  Jim Meyering  <meyering@redhat.com>
42829
42830         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
42831         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
42832         a umask modification leak out of a subshell.  Otherwise, the
42833         opensolaris /bin/sh would be accepted and thus cause unwarranted
42834         failures in the coreutils test suite.
42835
42836 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
42837
42838         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
42839         to succeed.
42840
42841 2008-09-16  Jim Meyering  <meyering@redhat.com>
42842
42843         avoid spurious test failure when library is built without ACL support
42844         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
42845         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
42846         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
42847         * tests/test-copy-acl.sh: Likewise.
42848
42849 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42850
42851         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
42852         based on character occurrence counts.
42853
42854 2008-09-15  Eric Blake  <ebb9@byu.net>
42855
42856         tests: avoid some compiler warnings
42857         * tests/test-memchr.c (main): Pass NULL indirectly.
42858         * tests/test-closein.c (main): Avoid unused variable.
42859
42860 2008-09-15  Bruno Haible  <bruno@clisp.org>
42861
42862         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
42863         are missing on OpenBSD 4.0 individually.
42864         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
42865
42866 2008-09-15  Bruno Haible  <bruno@clisp.org>
42867
42868         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
42869         * doc/posix-functions/strerror.texi: Mention also Cygwin.
42870         * doc/posix-functions/perror.texi: Likewise.
42871         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
42872         is missing.
42873         Reported by Eric Blake.
42874
42875         * lib/errno.in.h: Use replacement values >= 2000.
42876         Reported by Eric Blake.
42877
42878 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42879
42880         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
42881         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
42882         limit.
42883         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
42884         compareseq was aborted.
42885
42886 2008-09-14  Bruno Haible  <bruno@clisp.org>
42887
42888         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
42889         yvec_edit_count.
42890         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
42891         (fstrcmp_bounded): Simplify result computation accordingly.
42892
42893 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42894
42895         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
42896         (fstrcmp): Define in terms of fstrcmp_bounded.
42897         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
42898         lower_bound argument.
42899         Return quickly if the result is certainly < lower_bound.
42900         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
42901
42902 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42903
42904         * lib/diffseq.h (EARLY_ABORT): New macro.
42905         (compareseq): Change return type to bool. Return true when EARLY_ABORT
42906         evaluates to true.
42907
42908 2008-09-14  Bruno Haible  <bruno@clisp.org>
42909
42910         * modules/perror-tests: New file.
42911         * tests/test-perror.sh: New file.
42912         * tests/test-perror.c: New file.
42913
42914         New module 'perror'.
42915         * lib/stdio.in.h (perror): New declaration.
42916         * lib/perror.c: New file.
42917         * m4/perror.m4: New file.
42918         * modules/perror: New file.
42919         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
42920         * doc/posix-functions/perror.texi: Mention the perror module.
42921         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
42922         REPLACE_PERROR.
42923         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
42924         REPLACE_PERROR.
42925
42926 2008-09-14  Bruno Haible  <bruno@clisp.org>
42927
42928         * modules/stdio (Makefile.am): Reorder to match the order in
42929         lib/stdio.in.h.
42930         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
42931
42932 2008-09-13  Bruno Haible  <bruno@clisp.org>
42933
42934         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
42935
42936 2008-09-13  Bruno Haible  <bruno@clisp.org>
42937
42938         Extend strerror to cover the added errno values.
42939         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
42940         (rpl_strerror): Provide error messages for the added errno values and
42941         for the WSA* values.
42942         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
42943         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
42944         strerror.
42945         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
42946         * modules/strerror (Depends-on): Add errno.
42947         * doc/posix-functions/strerror.texi: Document the change.
42948         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
42949         and EOVERFLOW.
42950
42951 2008-09-13  Bruno Haible  <bruno@clisp.org>
42952
42953         * modules/EOVERFLOW: Remove file.
42954         * m4/eoverflow.m4: Remove file.
42955         * modules/EOVERFLOW-tests: Remove file.
42956         * tests/test-EOVERFLOW.c: Remove file.
42957         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
42958         * modules/ftell (Depends-on): Likewise.
42959         * modules/getdelim (Depends-on): Likewise.
42960         * modules/getugroups (Depends-on): Likewise.
42961         * modules/poll (Depends-on): Likewise.
42962         * modules/snprintf (Depends-on): Likewise.
42963         * modules/sprintf-posix (Depends-on): Likewise.
42964         * modules/vasnprintf (Depends-on): Likewise.
42965         * modules/vasprintf (Depends-on): Likewise.
42966         * modules/vfprintf-posix (Depends-on): Likewise.
42967         * modules/vsnprintf (Depends-on): Likewise.
42968         * modules/vsprintf-posix (Depends-on): Likewise.
42969         * modules/xvasprintf (Depends-on): Likewise.
42970         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
42971         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
42972         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
42973         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
42974         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
42975         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
42976         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
42977         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
42978         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
42979         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
42980         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
42981         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
42982         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
42983         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
42984         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
42985         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
42986         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
42987         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
42988         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
42989         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
42990         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
42991         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
42992         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
42993         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
42994         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
42995         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
42996         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
42997         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
42998         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
42999         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
43000         * MODULES.html.sh: Remove EOVERFLOW.
43001         * NEWS: Mention the change.
43002
43003 2008-09-13  Bruno Haible  <bruno@clisp.org>
43004
43005         * modules/errno-tests: New file.
43006         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
43007
43008         * lib/errno.in.h: New file.
43009         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
43010         * modules/errno: New file.
43011         * doc/posix-headers/errno.texi: Update documentation.
43012         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
43013
43014 2008-09-13  Bruno Haible  <bruno@clisp.org>
43015
43016         * tests/test-poll.c: Use #if for native Windows, rather than testing
43017         __MSVCRT__.
43018
43019 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43020             Bruno Haible  <bruno@clisp.org>
43021
43022         * lib/glob.c: Don't include <pwd.h> on native Windows.
43023         (WINDOWS32): New macro.
43024         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
43025
43026 2008-09-13  Bruno Haible  <bruno@clisp.org>
43027
43028         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
43029         (ETIMEDOUT): Remove macro.
43030         (glthread_cond_timedwait_multithreaded): New declaration.
43031         (glthread_cond_timedwait): Use it.
43032         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
43033         (glthread_cond_timedwait_multithreaded): New function.
43034
43035 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
43036
43037         * modules/poll-tests: Do not check for io.h.
43038         * tests/test-poll.c: Check for __MSVCRT__ instead.
43039
43040 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
43041
43042         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
43043         * modules/poll-tests: Add inet_pton, stdbool, sockets.
43044         * tests/test-poll.c: Use them.  Use _pipe on Windows.
43045
43046 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
43047
43048         * modules/poll-tests: New.
43049         * tests/test-poll.c: New.
43050
43051 2008-09-12  Eric Blake  <ebb9@byu.net>
43052
43053         frexp: test for NetBSD failure on -0.0
43054         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
43055         not all, bugs from NetBSD 3.0 have been fixed.
43056         * doc/posix-functions/frexp.texi (frexp): Document bug.
43057         Reported by Thomas Klausner.
43058
43059         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
43060         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
43061         literal -0.0.
43062         Reported by Jonathan C. Patschke <jp@centtech.com>.
43063
43064 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43065
43066         * lib/glthread/cond.h: Use dummy implementation also if
43067         USE_WIN32_THREADS.
43068
43069 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43070
43071         * modules/fnmatch-posix (License): Change to LGPLv2+.
43072         * modules/fnmatch-gnu (License): Likewise.
43073
43074 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43075
43076         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
43077
43078 2008-09-11  Jim Meyering  <meyering@redhat.com>
43079
43080         * users.txt: Add gtk-vnc.
43081
43082 2008-09-08  Simon Josefsson  <simon@josefsson.org>
43083
43084         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
43085         rotate amounts.
43086
43087         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
43088         required for 16-bit and 8-bit rotates.
43089         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
43090         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
43091         UINT8_MAX instead of hard-coded constants.
43092         Suggested by Paul Eggert.
43093
43094 2008-09-07  Bruno Haible  <bruno@clisp.org>
43095
43096         * tests/test-striconveh.c (main): Check behaviour when converting from
43097         UTF-7.
43098
43099         Make striconveh work better with stateful encodings.
43100         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
43101         that iconv does not increment the inptr when returning -1/EINVAL.
43102
43103 2008-09-07  Bruno Haible  <bruno@clisp.org>
43104
43105         * build-aux/config.rpath: Update according to libtool-2.2.6.
43106         * build-aux/config.libpath: Likewise.
43107
43108 2008-09-06  Bruno Haible  <bruno@clisp.org>
43109
43110         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
43111         * lib/freadptr.c (freadptr): Likewise.
43112         * lib/freadseek.c (freadptrinc): Likewise.
43113         Reported by Simon Josefsson.
43114
43115 2008-09-06  Bruno Haible  <bruno@clisp.org>
43116
43117         * modules/freadptr (License): Change to LGPLv2+.
43118         * modules/freadseek (License): Likewise.
43119         Suggested by Eric Blake.
43120
43121         * modules/memchr2 (License): Change to LGPLv2+.
43122         Approved by Eric Blake.
43123
43124 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43125             Bruno Haible  <bruno@clisp.org>
43126
43127         Make gnulib-tool work with native 'sed' on AIX.
43128         * gnulib-tool (sed_noop): New variable.
43129         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
43130         func_add_or_update, func_create_testdir): Use it to initialize sed
43131         script variables.
43132         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
43133
43134 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
43135             Bruno Haible  <bruno@clisp.org>
43136
43137         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
43138         also works after #include directives.
43139
43140 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
43141
43142         getdate.y: reject an out-of-range timezone value
43143         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
43144         the range [-24...+24].  When specified with only one or two digits,
43145         * tests/test-getdate.c: Tests for the fix.
43146         * doc/getdate.texi: Document this change.
43147
43148 2008-09-03  Bruno Haible  <bruno@clisp.org>
43149
43150         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
43151
43152 2008-09-02  Simon Josefsson  <simon@josefsson.org>
43153
43154         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
43155         <bruce.korb@gmail.com> with ideas from Ben Pfaff
43156         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
43157         Blake <ebb9@byu.net>.
43158
43159         * tests/test-bitrotate.c: Add more test vectors.
43160
43161 2008-09-02  Eric Blake  <ebb9@byu.net>
43162
43163         vasnprintf-posix: handle large precision via %.*d
43164         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
43165         when handling it ourselves.
43166         * tests/test-vasnprintf-posix.c (test_function): Add test.
43167         * tests/test-snprintf-posix.h (test_function): Likewise.
43168         * tests/test-sprintf-posix.h (test_function): Likewise.
43169         * tests/test-vasprintf-posix.c (test_function): Likewise.
43170         Reported by Alain Guibert.
43171
43172 2008-09-01  Eric Blake  <ebb9@byu.net>
43173
43174         c-stack: make configure-time check more robust
43175         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
43176         successful sigaction call.
43177         Reported by Tom G. Christensen.
43178
43179 2008-09-01  Bruno Haible  <bruno@clisp.org>
43180
43181         New module 'findprog-lgpl'.
43182         * modules/findprog-lgpl: New file.
43183         * lib/findprog-lgpl.c: New file.
43184         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
43185         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
43186         to decide whether to use strdup or xstrdup, concatenated_filename or
43187         xconcatenated_filename.
43188
43189 2008-09-01  Bruno Haible  <bruno@clisp.org>
43190
43191         Split module 'concat-filename' into 'concat-filename' (LGPL) and
43192         'xconcat-filename' (GPL).
43193         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
43194         (License): Change to LGPLv2+.
43195         * modules/xconcat-filename: New file.
43196         * lib/concat-filename.h (concatenated_filename): Change specification.
43197         (xconcatenated_filename): New declaration.
43198         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
43199         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
43200         memory situations.
43201         * lib/xconcat-filename.c: New file.
43202         * NEWS: Mention the change.
43203         * lib/findprog.c: Include concat-filename.h, not filename.h.
43204         (find_in_path): Use xconcatenated_filename instead of
43205         concatenated_filename.
43206         * lib/javacomp.c: Include concat-filename.h, not filename.h.
43207         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
43208         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
43209         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
43210         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
43211         instead of concatenated_filename.
43212         * lib/javaexec.c: Include concat-filename.h, not filename.h.
43213         (execute_java_class): Use xconcatenated_filename instead of
43214         concatenated_filename.
43215         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
43216         * modules/javacomp (Depends-on): Likewise.
43217         * modules/javaexec (Depends-on): Likewise.
43218
43219 2008-09-01  Bruno Haible  <bruno@clisp.org>
43220
43221         Split module 'filename' into 'filename' and 'concat-filename'.
43222         * modules/filename: Keep only lib/filename.h.
43223         (License): Change to LGPLv2+.
43224         * modules/concat-filename: New file, extracted from modules/filename.
43225         * lib/filename.h (concatenated_filename): Remove declaration.
43226         * lib/concat-filename.h: New file, extracted from lib/filename.h.
43227         * lib/concat-filename.c: Include concat-filename.h.
43228         * NEWS: Mention the change.
43229
43230 2008-09-01  Simon Josefsson  <simon@josefsson.org>
43231
43232         * lib/bitrotate.h (rotl8, rotr8): Add.
43233
43234         * modules/bitrotate (configure.ac): Need
43235         AC_REQUIRE([AC_C_INLINE]).
43236         (Description): Mention stdint.h.  Reported by Bruno Haible
43237         <bruno@clisp.org>.
43238
43239         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
43240         Paolo Bonzini <bonzini@gnu.org>.
43241
43242 2008-08-31  Bruno Haible  <bruno@clisp.org>
43243
43244         Assume Solaris specific bi-arch conventions on Solaris systems.
43245         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
43246         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
43247         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
43248         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
43249         like acl_libdirstem.
43250         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
43251         acl_libdirstem.
43252         * NEWS: Mention the change.
43253         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
43254
43255 2008-08-31  Jim Meyering  <meyering@redhat.com>
43256
43257         * lib/strftime.h: Add comments describing the two added arguments.
43258
43259         remove duplicate #include directives
43260         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
43261         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
43262
43263 2008-08-31  Bruno Haible  <bruno@clisp.org>
43264
43265         New module 'sigpipe-die'.
43266         * modules/sigpipe-die: New file.
43267         * lib/sigpipe-die.h: New file.
43268         * lib/sigpipe-die.c: New file.
43269         * MODULES.html.sh (Signal handling): Add sigpipe-die.
43270
43271 2008-08-31  Bruno Haible  <bruno@clisp.org>
43272
43273         Don't override previously installed signal handlers.
43274         * lib/fatal-signal.c (saved_sigactions): New variable.
43275         (uninstall_handlers): Reset the signal to the saved handler, not
43276         to SIG_DFL (except when ignored).
43277         (install_handlers): Save the previous handlers.
43278
43279 2008-08-30  Bruno Haible  <bruno@clisp.org>
43280
43281         * gnulib-tool (func_reset_sigpipe): New function.
43282         (func_get_automake_snippet, func_modules_transitive_closure,
43283         func_import): Invoke it before a join command that reads from stdin,
43284         to avoid "echo: write error: Broken pipe" error messages on stderr.
43285         Reported by Sam Steingold <sds@gnu.org>.
43286
43287 2008-08-30  Bruno Haible  <bruno@clisp.org>
43288
43289         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
43290         Code copied from m4/open.m4.
43291         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
43292         access and the filename ends in a slash. Code copied from lib/open.c.
43293         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
43294         * tests/test-fopen.c (main): Check against bug with trailing slash.
43295
43296 2008-08-29  Bruno Haible  <bruno@clisp.org>
43297
43298         Avoid some "gcc -pedantic" warnings.
43299         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
43300         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
43301         * lib/dirent.in.h: Likewise.
43302         * lib/fcntl.in.h: Likewise.
43303         * lib/float.in.h: Likewise.
43304         * lib/iconv.in.h: Likewise.
43305         * lib/inttypes.in.h: Likewise.
43306         * lib/locale.in.h: Likewise.
43307         * lib/math.in.h: Likewise.
43308         * lib/netinet_in.in.h: Likewise.
43309         * lib/search.in.h: Likewise.
43310         * lib/signal.in.h: Likewise.
43311         * lib/stdarg.in.h: Likewise.
43312         * lib/stdint.in.h: Likewise.
43313         * lib/stdio.in.h: Likewise.
43314         * lib/stdlib.in.h: Likewise.
43315         * lib/string.in.h: Likewise.
43316         * lib/strings.in.h: Likewise.
43317         * lib/sys_select.in.h: Likewise.
43318         * lib/sys_socket.in.h: Likewise.
43319         * lib/sys_stat.in.h: Likewise.
43320         * lib/sys_time.in.h: Likewise.
43321         * lib/sysexits.in.h: Likewise.
43322         * lib/time.in.h: Likewise.
43323         * lib/unistd.in.h: Likewise.
43324         * lib/wchar.in.h: Likewise.
43325         * lib/wctype.in.h: Likewise.
43326         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
43327         * modules/fchdir (Makefile.am): Likewise.
43328         * modules/fcntl (Makefile.am): Likewise.
43329         * modules/float (Makefile.am): Likewise.
43330         * modules/iconv_open (Makefile.am): Likewise.
43331         * modules/inttypes (Makefile.am): Likewise.
43332         * modules/locale (Makefile.am): Likewise.
43333         * modules/math (Makefile.am): Likewise.
43334         * modules/netinet_in (Makefile.am): Likewise.
43335         * modules/search (Makefile.am): Likewise.
43336         * modules/signal (Makefile.am): Likewise.
43337         * modules/stdarg (Makefile.am): Likewise.
43338         * modules/stdint (Makefile.am): Likewise.
43339         * modules/stdio (Makefile.am): Likewise.
43340         * modules/stdlib (Makefile.am): Likewise.
43341         * modules/string (Makefile.am): Likewise.
43342         * modules/strings (Makefile.am): Likewise.
43343         * modules/sys_select (Makefile.am): Likewise.
43344         * modules/sys_socket (Makefile.am): Likewise.
43345         * modules/sys_stat (Makefile.am): Likewise.
43346         * modules/sys_time (Makefile.am): Likewise.
43347         * modules/sysexits (Makefile.am): Likewise.
43348         * modules/time (Makefile.am): Likewise.
43349         * modules/unistd (Makefile.am): Likewise.
43350         * modules/wchar (Makefile.am): Likewise.
43351         * modules/wctype (Makefile.am): Likewise.
43352         Reported by Reuben Thomas <rrt@sc3d.org>.
43353
43354 2008-08-29  Bruno Haible  <bruno@clisp.org>
43355
43356         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
43357         any more.
43358
43359 2008-08-29  Simon Josefsson  <simon@josefsson.org>
43360
43361         * MODULES.html.sh (Misc): Add bitrotate.
43362
43363         * modules/bitrotate: New file.
43364
43365         * lib/bitrotate.h: New file.
43366
43367         * modules/bitrotate-tests: New file.
43368
43369         * tests/test-bitrotate.c: New file.
43370
43371         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
43372         on the bitrotate module.
43373
43374         * lib/arctwo.c: Use new bitrotate module.
43375
43376 2008-08-29  Jim Meyering  <meyering@redhat.com>
43377
43378         bootstrap: merge changes from coreutils
43379         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
43380         of copied files.  Remove a kludge, now that this is fixed.
43381         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
43382         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
43383         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
43384
43385 2008-08-29  Bruno Haible  <bruno@clisp.org>
43386
43387         * MODULES.html.sh: Remove --cvs-urls option.
43388
43389 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
43390
43391         maint.mk: adjust to file name change
43392         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
43393
43394 2008-08-28  Jim Meyering  <meyering@redhat.com>
43395
43396         * modules/getndelim2 (License): Relicense to LGPLv2+.
43397         Approved by Richard Stallman for the version of 1995, and by
43398         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
43399
43400 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
43401
43402         * lib/getdelim.c (flockfile, funlockfile): Make all of them
43403         dummy if one is not available.  Do not touch them if
43404         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
43405         (getc_maybe_unlocked): New.
43406         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
43407
43408 2008-08-26  Eric Blake  <ebb9@byu.net>
43409
43410         doc/INSTALL: resync from autoconf
43411         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
43412         (INSTALL_PRELUDE): Delete; this is done more efficiently by
43413         moving...
43414         * install.texi [!autoconf]: ...here.  Resync from autoconf.
43415         * INSTALL: Regenerate.
43416         * INSTALL.ISO: New file.
43417         * INSTALL.UTF-8: Likewise.
43418
43419 2008-08-26  Jim Meyering  <meyering@redhat.com>
43420
43421         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
43422         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
43423         these definitions conditional, so that they may be overridden, too.
43424
43425 2008-08-26  Bruno Haible  <bruno@clisp.org>
43426
43427         Generate INSTALL file variants with prettier quotes.
43428         * doc/Makefile (INSTALL_PRELUDE): New macro.
43429         (INSTALL): Use it.
43430         (INSTALL.ISO, INSTALL.UTF-8): New rules.
43431
43432 2008-08-26  Bruno Haible  <bruno@clisp.org>
43433
43434         Run makeinfo in an English locale.
43435         * doc/Makefile (MAKEINFO): New variable.
43436
43437 2008-08-26  Bruno Haible  <bruno@clisp.org>
43438
43439         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
43440         Suggested by Eric Blake.
43441
43442 2008-08-25  Bruno Haible  <bruno@clisp.org>
43443
43444         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
43445
43446 2008-08-25  Eric Blake  <ebb9@byu.net>
43447
43448         c-stack: test that stack overflow can be caught
43449         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
43450         that platform allows handling stack overflow; at least OS/2 EMX
43451         has sigaltstack, but crashes before transferring control to
43452         handler on stack overflow.
43453         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
43454         check for HAVE_STACK_OVERFLOW_HANDLING.
43455         Reported by Elbert Pol.
43456
43457 2008-08-25  Bruno Haible  <bruno@clisp.org>
43458
43459         * doc/posix-functions/strftime.texi: Fix description of strftime
43460         module.
43461
43462 2008-08-24  Bruno Haible  <bruno@clisp.org>
43463
43464         * tests/uniwidth/test-uc_width2.c: New file.
43465         * tests/uniwidth/test-uc_width2.sh: New file.
43466         * modules/uniwidth/width-tests (Files): Add the new files.
43467         (TESTS): Add uniwidth/test-uc_width2.sh.
43468         (TESTS_ENVIRONMENT): New variable.
43469         (check_PROGRAMS): Add test-uc_width2.
43470         (test_uc_width2_SOURCES): New variable.
43471
43472         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
43473         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
43474         not 0x00AB.
43475         Reported by Alexander V. Lukyanov <lav@netis.ru>.
43476
43477 2008-08-22  Eric Blake  <ebb9@byu.net>
43478
43479         test-lock, test-tls: mention why a test is skipped
43480         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
43481         skipped.
43482         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
43483
43484         count-one-bits: relax license
43485         * modules/count-one-bits (License): Relicense to LGPLv2+.
43486         Suggested by Ludovic Courtès, approved by Ben Pfaff.
43487
43488 2008-08-22  Andreas Schwab  <schwab@suse.de>
43489
43490         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
43491         Remove spurious space in assignment.
43492
43493 2008-08-21  Simon Josefsson  <simon@josefsson.org>
43494
43495         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
43496         Paul Eggert <eggert@CS.UCLA.EDU>.
43497
43498 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
43499
43500         * modules/gettext: Add m4/threadlib.m4.
43501
43502 2008-08-19  Eric Blake  <ebb9@byu.net>
43503
43504         test-c-stack: fix compilation failure on FreeBSD 5.0
43505         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
43506         headers before <sys/resource.h>.
43507         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
43508         the bug.
43509         Reported by Nelson H. F. Beebe.
43510
43511         strverscmp: migrate from "strverscmp.h" to <string.h>
43512         * modules/string (Makefile.am): Add new hooks.
43513         * modules/strverscmp (Files): Remove strverscmp.h.
43514         (Depends-on): Add string.
43515         (configure.ac): Add indicator.
43516         (Include): Mention new header.
43517         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
43518         defaults.
43519         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
43520         results.
43521         * lib/strverscmp.h: Delete.
43522         * lib/string.in.h (strverscmp): Provide declaration, when needed.
43523         * tests/test-strverscmp.c (includes): Adjust client.
43524         * lib/check-version.c (includes): Likewise.
43525         * NEWS: Document the change.
43526
43527         strverscmp: add unit test
43528         * modules/strverscmp-tests: New file.
43529         * tests/test-strverscmp.c: Likewise.
43530
43531 2008-08-19  Simon Josefsson  <simon@josefsson.org>
43532
43533         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
43534         regarding Windows crypto stuff, from Mono.
43535
43536 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
43537
43538         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
43539         if present, for intel RND.  Return error on failures.
43540
43541 2008-08-18  Ben Pfaff  <blp@gnu.org>
43542
43543         gitlog-to-changelog: give better diagnostic for failed pipe-open
43544         * build-aux/gitlog-to-changelog: Improve error message: suggest
43545         that the version of Git may be too old.
43546
43547 2008-08-18  Simon Josefsson  <simon@josefsson.org>
43548
43549         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
43550         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
43551
43552 2008-08-18  Bruno Haible  <bruno@clisp.org>
43553
43554         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
43555         pthread_in_use().
43556
43557 2008-08-18  Bruno Haible  <bruno@clisp.org>
43558
43559         * lib/glthread/threadlib.c: Include <pthread.h>.
43560
43561 2008-08-18  Bruno Haible  <bruno@clisp.org>
43562
43563         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
43564         glthread_recursive_lock_* macros.
43565         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
43566         Fix syntax error.
43567
43568 2008-08-18  Bruno Haible  <bruno@clisp.org>
43569
43570         * lib/glthread/thread.c: Avoid forcing a context switch right after
43571         thread creation.
43572
43573 2008-08-17  Bruno Haible  <bruno@clisp.org>
43574
43575         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
43576         * lib/glthread/thread.h: Provide Win32 specific implementation.
43577         * modules/thread (Files): Add lib/glthread/thread.c.
43578         (Depends-on): Add lock.
43579         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
43580
43581 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43582
43583         New module 'yield'.
43584         * modules/yield: New file.
43585         * lib/glthread/yield.h: New file.
43586         * m4/yield.m4: New file.
43587         * MODULES.html.sh (Multithreading): Add yield.
43588
43589 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43590
43591         New module 'thread'.
43592         * modules/thread: New file.
43593         * lib/glthread/thread.h: New file.
43594         * m4/thread.m4: New file.
43595         * MODULES.html.sh (Multithreading): Add thread.
43596
43597 2008-08-17  Bruno Haible  <bruno@clisp.org>
43598
43599         * lib/glthread/lock.h: Include <stdlib.h> always.
43600         * lib/glthread/tls.h: Likewise.
43601         * lib/glthread/cond.h: Likewise.
43602
43603 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43604
43605         New module 'cond'.
43606         * modules/cond: New file.
43607         * lib/glthread/cond.h: New file.
43608         * lib/glthread/cond.c: New file.
43609         * m4/cond.m4: New file.
43610         * MODULES.html.sh (Multithreading): Add cond.
43611
43612 2008-08-16  Eric Blake  <ebb9@byu.net>
43613
43614         c-stack: fix regression on Irix 5.3 from 2008-06-21
43615         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
43616         sa_sigaction...
43617         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
43618         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
43619         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
43620         * modules/signal (Makefile.am): Use the value.
43621         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
43622         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
43623         * doc/posix-headers/signal.texi (signal.h): Document this
43624         portability issue.
43625         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
43626         Reported by Tom G. Christensen.
43627
43628 2008-08-17  Bruno Haible  <bruno@clisp.org>
43629
43630         New module 'threadlib'.
43631         * modules/threadlib: New file.
43632         * lib/glthread/threadlib.c: New file, extracted from
43633         lib/glthread/lock.c.
43634         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
43635         functions.
43636         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
43637         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
43638         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
43639         macros.
43640         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
43641         (gl_DISABLE_THREADS): Remove macro.
43642         * modules/lock (Files): Remove build-aux/config.rpath.
43643         (Depends-on): Remove havelib. Add threadlib.
43644         (configure.ac-early): Remove section.
43645         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
43646         * modules/tls (Depends-on): Remove lock. Add threadlib.
43647         (Link): New section, copied from threadlib.
43648         * MODULES.html.sh (Multithreading): Add threadlib.
43649
43650 2008-08-14  Bruno Haible  <bruno@clisp.org>
43651
43652         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
43653         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
43654         glthread_rwlock_unlock, glthread_rwlock_destroy,
43655         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
43656         glthread_recursive_lock_destroy): Define as macros always.
43657         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
43658         glthread_lock_lock.
43659         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
43660         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
43661         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
43662         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
43663         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
43664         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
43665         (glthread_recursive_lock_lock_func): Renamed from
43666         glthread_recursive_lock_lock.
43667         (glthread_recursive_lock_unlock_func): Renamed from
43668         glthread_recursive_lock_unlock.
43669         (glthread_recursive_lock_destroy_func): Renamed from
43670         glthread_recursive_lock_destroy.
43671
43672 2008-08-14  Bruno Haible  <bruno@clisp.org>
43673
43674         * lib/glthread/lock.h: Renamed from lib/lock.h.
43675         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
43676         * lib/glthread/tls.h: Renamed from lib/tls.h.
43677         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
43678         * lib/fstrcmp.c: Update includes.
43679         * lib/strsignal.c: Update includes.
43680         * modules/lock (Files, Makefile.am): Update.
43681         (Include): Change to "glthread/lock.h".
43682         * modules/tls (Files, Makefile.am): Update.
43683         (Include): Change to "glthread/tls.h".
43684         * tests/test-lock.c: Update includes.
43685         * tests/test-tls.c: Update includes.
43686         * NEWS: Mention the renamed header files.
43687
43688 2008-08-11  Jim Meyering  <meyering@redhat.com>
43689
43690         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
43691
43692 2008-08-11  Eric Blake  <ebb9@byu.net>
43693
43694         test-c-stack: avoid C99-ism
43695         * tests/test-c-stack.c (main): Fix whitespace, move declaration
43696         before statement.
43697         Reported by Alain Guibert.
43698
43699 2008-08-10  Jim Meyering  <meyering@redhat.com>
43700
43701         ensure that return value of uinttostr et al are not ignored
43702         * lib/inttostr.h (__GNUC_PREREQ): Define.
43703         (__attribute_warn_unused_result__): Define.
43704         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
43705
43706 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
43707
43708         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
43709         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
43710
43711 2008-08-07  Jim Meyering  <meyering@redhat.com>
43712
43713         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
43714
43715         * modules/mkstemp (License): Relicense under LGPLv2+.
43716         * modules/tempname (License): Likewise.
43717
43718 2008-08-06  Bruno Haible  <bruno@clisp.org>
43719
43720         * lib/poll.c (poll): Further micro-optimization.
43721
43722 2008-08-06  Jim Meyering  <meyering@redhat.com>
43723
43724         inet_pton.c: use locale-independent tolower
43725         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
43726         (inet_pton6): Use c_tolower rather than tolower.
43727         * modules/inet_pton (Depends-on): Add c-ctype.
43728
43729 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
43730
43731         * lib/poll.c (poll): Avoid division when timeout is 0, cache
43732         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
43733
43734 2008-08-06  Jim Meyering  <meyering@redhat.com>
43735
43736         * modules/inet_pton (License): Relicense under LGPLv2+.
43737
43738 2008-08-03  Bruno Haible  <bruno@clisp.org>
43739
43740         Additional non-aborting API for lock and tls.
43741         * lib/lock.h: Include <errno.h>.
43742         (glthread_lock_init): New macro/function.
43743         (gl_lock_init): Define as wrapper around glthread_lock_init.
43744         (glthread_lock_lock): New macro/function.
43745         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
43746         (glthread_lock_unlock): New macro/function.
43747         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
43748         (glthread_lock_destroy): New macro/function.
43749         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
43750         (glthread_rwlock_init): New macro/function.
43751         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
43752         (glthread_rwlock_rdlock): New macro/function.
43753         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
43754         (glthread_rwlock_wrlock): New macro/function.
43755         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
43756         (glthread_rwlock_unlock): New macro/function.
43757         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
43758         (glthread_rwlock_destroy): New macro/function.
43759         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
43760         (glthread_recursive_lock_init): New macro/function.
43761         (gl_recursive_lock_init): Define as wrapper around
43762         glthread_recursive_lock_init.
43763         (glthread_recursive_lock_lock): New macro/function.
43764         (gl_recursive_lock_lock): Define as wrapper around
43765         glthread_recursive_lock_lock.
43766         (glthread_recursive_lock_unlock): New macro/function.
43767         (gl_recursive_lock_unlock): Define as wrapper around
43768         glthread_recursive_lock_unlock.
43769         (glthread_recursive_lock_destroy): New macro/function.
43770         (gl_recursive_lock_destroy): Define as wrapper around
43771         glthread_recursive_lock_destroy.
43772         (glthread_once): New macro/function.
43773         (gl_once): Define as wrapper around glthread_once.
43774         Update function declarations.
43775         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
43776         glthread_rwlock_init. Return error code.
43777         (glthread_rwlock_rdlock_multithreaded): Renamed from
43778         glthread_rwlock_rdlock. Return error code.
43779         (glthread_rwlock_wrlock_multithreaded): Renamed from
43780         glthread_rwlock_wrlock. Return error code.
43781         (glthread_rwlock_unlock_multithreaded): Renamed from
43782         glthread_rwlock_unlock. Return error code.
43783         (glthread_rwlock_destroy_multithreaded): Renamed from
43784         glthread_rwlock_destroy. Return error code.
43785         (glthread_recursive_lock_init_multithreaded): Renamed from
43786         glthread_recursive_lock_init. Return error code.
43787         (glthread_recursive_lock_lock_multithreaded): Renamed from
43788         glthread_recursive_lock_lock. Return error code.
43789         (glthread_recursive_lock_unlock_multithreaded): Renamed from
43790         glthread_recursive_lock_unlock. Return error code.
43791         (glthread_recursive_lock_destroy_multithreaded): Renamed from
43792         glthread_recursive_lock_destroy. Return error code.
43793         (glthread_once_call): Make static.
43794         (glthread_once_multithreaded): Renamed from glthread_once.
43795         * lib/tls.h: Include <errno.h>.
43796         (glthread_tls_key_init): New macro/function.
43797         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
43798         (glthread_tls_set): New macro/function.
43799         (gl_tls_set): Define as wrapper around glthread_tls_set.
43800         (glthread_tls_key_destroy): New macro/function.
43801         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
43802         Update function declarations.
43803         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
43804         glthread_tls_get.
43805         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
43806
43807 2008-08-04  Eric Blake  <ebb9@byu.net>
43808
43809         gnumakefile: use space, not TAB, outside of targets
43810         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
43811
43812 2008-08-02  Jim Meyering  <meyering@redhat.com>
43813
43814         getdate.y: avoid locale-dependent date parsing failure
43815         In Turkish locales, getdate would fail to recognize keywords
43816         containing a lowercase "i".  The solution is not to rely on
43817         locale-sensitive case-conversion.
43818         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
43819         (lookup_word): Use c_toupper in place of toupper.
43820         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
43821         Reported by Vefa Bicakci <bicave@superonline.com> in
43822         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
43823         * modules/getdate (Depends-on): Add c-ctype.
43824
43825 2008-08-02  Bruno Haible  <bruno@clisp.org>
43826
43827         * gnulib-tool (func_import): When updating or creating a .gitignore
43828         file, prepend each added line with a slash, and ignore leading slashes
43829         from the existing lines.
43830         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
43831
43832 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43833
43834         Portability fix for GNU make 3.79.1.
43835         * top/GNUmakefile: Avoid 'else COND', which older GNU make
43836         versions do not understand.
43837
43838 2008-08-01  Bruno Haible  <bruno@clisp.org>
43839
43840         Work around bug of HP-UX 10.20 cc with -0.0 literal.
43841         * tests/test-isnanf.h (zero): New variable.
43842         (main): Avoid literal -0.0f.
43843         * tests/test-isnand.h (zero): New variable.
43844         (main): Avoid literal -0.0.
43845         * tests/test-isnanl.h (zero): New variable.
43846         (main): Avoid literal -0.0L.
43847         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
43848         (test_float, test_double, test_long_double): Avoid literals -0.0f,
43849         -0.0, -0.0L.
43850         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
43851         (test_signbitd): Avoid literal -0.0.
43852         (test_signbitl): Avoid literal -0.0L.
43853         * tests/test-ceilf1.c (zero): New variable.
43854         (main): Avoid literal -0.0f.
43855         * tests/test-ceill.c (zero): New variable.
43856         (main): Avoid literal -0.0L.
43857         * tests/test-floorf1.c (zero): New variable.
43858         (main): Avoid literal -0.0f.
43859         * tests/test-floorl.c (zero): New variable.
43860         (main): Avoid literal -0.0L.
43861         * tests/test-roundf1.c (zero): New variable.
43862         (main): Avoid literal -0.0f.
43863         * tests/test-round1.c (zero): New variable.
43864         (main): Avoid literal -0.0.
43865         * tests/test-roundl.c (zero): New variable.
43866         (main): Avoid literal -0.0L.
43867         * tests/test-truncf1.c (zero): New variable.
43868         (main): Avoid literal -0.0f.
43869         * tests/test-trunc1.c (zero): New variable.
43870         (main): Avoid literal -0.0.
43871         * tests/test-truncl.c (zero): New variable.
43872         (main): Avoid literal -0.0L.
43873         * tests/test-frexp.c (zero): New variable.
43874         (main): Avoid literal -0.0.
43875         * tests/test-frexpl.c (zero): New variable.
43876         (main): Avoid literal -0.0L.
43877         * tests/test-ldexpl.c (zero): New variable.
43878         (main): Avoid literal -0.0L.
43879         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
43880         (zerod, zerol): New variables.
43881         (test_function): Avoid literals -0.0, -0.0L.
43882         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
43883         (zerod, zerol): New variables.
43884         (test_function): Avoid literals -0.0, -0.0L.
43885         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
43886         (zerod, zerol): New variables.
43887         (test_function): Avoid literals -0.0, -0.0L.
43888         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
43889         (zerod, zerol): New variables.
43890         (test_function): Avoid literals -0.0, -0.0L.
43891         * tests/test-strtod.c (zero): New variable.
43892         (main): Avoid literal -0.0.
43893         Reported by Jonathan C. Patschke <jp@centtech.com>.
43894
43895 2008-07-31  Jim Meyering  <meyering@redhat.com>
43896
43897         sha256.h: correct definition of SHA224_DIGEST_SIZE
43898         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
43899         Reported by Paulie Pena IV <paulie4@gmail.com>.
43900         Define as 224 / 8, rather than as a literal.
43901         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
43902         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
43903         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
43904
43905 2008-07-31  Bruno Haible  <bruno@clisp.org>
43906
43907         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
43908         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
43909         Reported by Jonathan Patschke <jp@centtech.com>.
43910
43911 2008-07-31  Bruno Haible  <bruno@clisp.org>
43912
43913         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
43914         Reported by Paolo Bonzini <bonzini@gnu.org>.
43915
43916 2008-07-30  Eric Blake  <ebb9@byu.net>
43917
43918         test-strtod: allow compilation without -lm
43919         * tests/test-strtod.c (main): Avoid link dependence on fabs.
43920         Reported by Dennis Clarke <blastwave@gmail.com>.
43921
43922 2008-07-28  Jim Meyering  <meyering@redhat.com>
43923
43924         bootstrap: work also when there are no .po files in po/
43925         * build-aux/bootstrap (update_po_files): Complete the change
43926         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
43927
43928 2008-07-27  Jim Meyering  <meyering@redhat.com>
43929
43930         * users.txt: Add zile.
43931
43932 2008-07-26  Ben Pfaff  <blp@gnu.org>
43933
43934         Add missing dependencies on new m4/exponent[fdl].m4 files.
43935         * modules/isnanf-nolibm: Add m4/exponentf.m4.
43936         * modules/isnand-nolibm: Add m4/exponentd.m4.
43937         * modules/isnanl-nolibm: Add m4/exponentl.m4.
43938         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
43939         m4/isnan[fdl].m4, because the macros actually used moved.
43940         Reported by Jim Meyering.
43941
43942 2008-07-14  Ben Pfaff  <blp@gnu.org>
43943
43944         Add isinf module.
43945         * lib/isinf.c: New file.
43946         * lib/math.in.h: Define isinf macro if we have decided to replace
43947         it.
43948         * m4/isinf.m4: New file.
43949         * m4/math_h.m4: Initialize and substitute variables for isinf
43950         module.
43951         * modules/isinf: New file.
43952         * modules/isinf-tests: New file.
43953         * modules/math: Add substitutions for new module.
43954         * tests/test-isinf.c: New file.
43955         * doc/posix-functions/isinf.texi: Mention new module.
43956         * MODULES.html.sh: Mention new module.
43957
43958 2008-07-14  Ben Pfaff  <blp@gnu.org>
43959
43960         Factor out some macros for use by additional modules.
43961         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
43962         exponentf.m4.
43963         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
43964         exponentd.m4.
43965         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
43966         file exponentl.m4.
43967         * m4/exponentf.m4: New file.
43968         * m4/exponentd.m4: New file.
43969         * m4/exponentl.m4: New file.
43970         * modules/isnanf: Use new file m4/exponentf.m4.
43971         * modules/isnand: Use new file m4/exponentd.m4.
43972         * modules/isnanl: Use new file m4/exponentl.m4.
43973
43974 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
43975
43976         mktime.c: normalize tp->tm_isdst value to -1/0/1.
43977         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
43978         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
43979         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
43980
43981         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
43982         readlink on platforms without PATH_MAX.
43983
43984 2008-07-21  Eric Blake  <ebb9@byu.net>
43985
43986         Warn, not fail, on stale version.
43987         * top/GNUmakefile (_curr-ver): Tone down previous patch.
43988
43989         Don't allow installation with stale devel version number.
43990         * top/GNUmakefile (_is-install-target): New macro.
43991         (_curr-ver): Forbid installation with stale version number.
43992
43993 2008-07-20  Bruno Haible  <bruno@clisp.org>
43994
43995         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
43996         TESTS_ENVIRONMENT.
43997         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
43998
43999 2008-07-20  Bruno Haible  <bruno@clisp.org>
44000
44001         * lib/c-stack.h (c_stack_action): Add documentation.
44002         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
44003
44004 2008-07-20  Bruno Haible  <bruno@clisp.org>
44005
44006         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
44007         * modules/readlink (License): Likewise.
44008
44009 2008-07-17  Eric Blake  <ebb9@byu.net>
44010
44011         * modules/c-stack (Link): Fix typo.
44012
44013         Make c-stack use libsigsegv, when available.
44014         * modules/c-stack (Depends-on): Add libsigsegv.
44015         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
44016         needed.
44017         * lib/c-stack.c (SIGSTKSZ): Define fallback.
44018         (segv_handler, overflow_handler, c_stack_action)
44019         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
44020         implementation when libsigsegv is available, but only when using
44021         the library is necessary.
44022         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
44023         comment, explaining why XSI check fails on Linux.
44024         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
44025         * tests/test-c-stack2.sh: Tweak skip message.
44026         * NEWS: Document new link-time requirements.
44027
44028 2008-07-16  Eric Blake  <ebb9@byu.net>
44029
44030         c-stack: Expose false positives when not using libsigsegv.
44031         * modules/c-stack-tests (Files): Expand test.
44032         * tests/test-c-stack.c (main): Add means to conditionally trigger
44033         non-overflow SIGSEGV.
44034         * tests/test-c-stack2.sh: New file.
44035
44036 2008-07-14  Bruno Haible  <bruno@clisp.org>
44037
44038         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
44039         Reported by Eric Blake.
44040
44041 2008-07-14  Sam Steingold  <sds@gnu.org>
44042             Bruno Haible  <bruno@clisp.org>
44043
44044         New module libsigsegv.
44045         * modules/libsigsegv: New file.
44046         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
44047         modifications.
44048         * MODULES.html.sh (Signal handling): New section.
44049
44050 2008-07-14  Bruno Haible  <bruno@clisp.org>
44051
44052         * modules/unictype/ctype-* (Description): Add the word "function".
44053         Improves the resulting doc in MODULES.html.
44054
44055 2008-07-12  Ben Pfaff  <blp@gnu.org>
44056
44057         Add longlong module.
44058         * modules/longlong: New file.
44059
44060 2008-07-12  Bruno Haible  <bruno@clisp.org>
44061
44062         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
44063         to empty.
44064
44065 2008-07-10  Ben Pfaff  <blp@gnu.org>
44066
44067         Add isnan module.
44068         * doc/posix-functions/isnan.texi: Mention new module.
44069         * lib/math.in.h: Define isnan macro if we have decided to replace
44070         it.
44071         * m4/isnan.m4: New file.
44072         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
44073         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
44074         also.
44075         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
44076         redundancy.
44077         * m4/math_h.m4: Initialize and substitute variables for isnan
44078         module.
44079         * modules/isnan: New file.
44080         * modules/isnan-tests: New file.
44081         * modules/math: Add substitutions for new module.
44082         * tests/test-isnan.c: New file.
44083         * MODULES.html.sh: Mention new module.
44084
44085 2008-07-10  Ben Pfaff  <blp@gnu.org>
44086
44087         Add isnanf module.
44088         * lib/isnanf.m4: New file.
44089         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
44090         (gl_HAVE_ISNANF_IN_LIBM): New macro.
44091         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
44092         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
44093         * modules/isnanf: New file.
44094         * modules/isnanf-tests: New file.
44095         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
44096         files.
44097         * tests/test-isnanf-nolibm.c: factored most of its contents into
44098         new file tests/test-isnanf.h.
44099         * tests/test-isnanf.h: New file.
44100         * tests/test-isnanf.c: New file.
44101         * MODULES.html.sh: Mention new module.
44102         * doc/glibc-functions/isnanf.texi: Mention new module.
44103
44104 2008-07-10  Ben Pfaff  <blp@gnu.org>
44105
44106         Add isnand module.
44107         * lib/isnand.h: New file.
44108         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
44109         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
44110         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
44111         functionality also.
44112         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
44113         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
44114         (gl_HAVE_ISNAND_IN_LIBM): New macro.
44115         * modules/isnand: New file.
44116         * modules/isnand-tests: New file.
44117         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
44118         files.
44119         * tests/test-isnand-nolibm.c: factored most of its contents into
44120         new file tests/test-isnand.h.
44121         * tests/test-isnand.h: New file.
44122         * tests/test-isnand.c: New file.
44123         * MODULES.html.sh: Mention new module.
44124
44125 2008-07-10  Ben Pfaff  <blp@gnu.org>
44126
44127         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
44128         * lib/isnand.h: Rename lib/isnand-nolibm.h.
44129         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
44130         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
44131         * modules/isnanf-nolibm: Update references to renamed files.
44132         * modules/isnand-nolibm: Likewise.
44133         * modules/isnanf-nolibm-tests: Likewise.
44134         * modules/isnand-nolibm-tests: Likewise.
44135         * lib/frexp.c: Likewise.
44136         * lib/isfinite.c: Likewise.
44137         * lib/signbitd.c: Likewise.
44138         * lib/signbitf.c: Likewise.
44139         * lib/vasnprintf.c: Likewise.
44140         * tests/test-ceilf1.c: Likewise.
44141         * tests/test-ceilf2.c: Likewise.
44142         * tests/test-floorf1.c: Likewise.
44143         * tests/test-floorf2.c: Likewise.
44144         * tests/test-frexp.c: Likewise.
44145         * tests/test-round1.c: Likewise.
44146         * tests/test-round2.c: Likewise.
44147         * tests/test-roundf1.c: Likewise.
44148         * tests/test-strtod.c: Likewise.
44149         * tests/test-trunc1.c: Likewise.
44150         * tests/test-trunc2.c: Likewise.
44151         * tests/test-truncf1.c: Likewise.
44152         * tests/test-truncf2.c: Likewise.
44153         * NEWS: Mention the renamed header files.
44154
44155 2008-07-11  Jim Meyering  <meyering@redhat.com>
44156
44157         vc-list-files: make the last-resort awk code more portable
44158         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
44159         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
44160         does not support it.
44161
44162 2008-07-10  Eric Blake  <ebb9@byu.net>
44163
44164         Work with tar's bootstrap.
44165         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
44166         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
44167         an m4 comment.
44168
44169 2008-07-09  Jim Meyering  <meyering@redhat.com>
44170
44171         posix-shell.m4: fix typo that made this test malfunction
44172         * m4/posix-shell.m4: Remove capitalization in variable name.
44173
44174 2008-07-08  Bruno Haible  <bruno@clisp.org>
44175
44176         * m4/onceonly.m4: Update comments.
44177         Reported by Ben Pfaff <blp@cs.stanford.edu>.
44178
44179 2008-07-04  Jim Meyering  <meyering@redhat.com>
44180
44181         * users.txt: Add vc-dwim.
44182         (bison, coreutils): Use the gitweb URL.
44183
44184 2008-07-03  Jim Meyering  <meyering@redhat.com>
44185
44186         * users.txt: Add libffcall.  From Sam Steingold.
44187
44188 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
44189
44190         getdate.y: do not ignore TZ with relative day, month or year offset
44191         * lib/getdate.y (get_date): Move the tz-handling block to follow the
44192         relative-date-handling, since otherwise, the latter would clobber the
44193         sole output (an updated Start value) of the tz-handling block.
44194         * tests/test-getdate.c: Tests for the fix
44195
44196 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44197
44198         Recognize 'foo_LIBRARIES += libgnu.a'.
44199         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
44200         makefile snippet has already specified an installation location,
44201         also using '+='.
44202
44203 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
44204
44205         getdate.y: factor out common actions
44206         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
44207         Use them in place of open-coded actions.
44208
44209 2008-07-01  Simon Josefsson  <simon@josefsson.org>
44210
44211         Add self-test for getdate module.
44212         * modules/getdate-tests: New file.
44213         * tests/test-getdate.c: New file.
44214
44215 2008-06-29  Bruno Haible  <bruno@clisp.org>
44216
44217         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
44218         .gitignore.
44219         Reported by Sylvain Beucler <beuc@beuc.net>.
44220
44221 2008-06-29  Bruno Haible  <bruno@clisp.org>
44222
44223         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
44224         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
44225
44226 2008-06-29  Bruno Haible  <bruno@clisp.org>
44227
44228         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
44229         EXTRA_DIST.
44230         Reported by Sylvain Beucler <beuc@beuc.net>.
44231
44232 2008-06-26  Jim Meyering  <meyering@redhat.com>
44233
44234         make several modules depend on the "open" module
44235         This provides slightly increased consistency when opening-for-write
44236         the name of a non-directory spelled with a trailing slash.
44237         * modules/chdir-safer: Likewise.
44238         * modules/chown: Likewise.
44239         * modules/clean-temp: Likewise.
44240         * modules/copy-file: Likewise.
44241         * modules/fchdir: Likewise.
44242         * modules/fcntl-safer: Likewise.
44243         * modules/pipe: Likewise.
44244         * modules/utime: Likewise.
44245         Prompted by Eric Blake and Bruno Haible.
44246
44247 2008-06-24  Andreas Schwab  <schwab@suse.de>
44248
44249         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
44250         literals can be used as initializers for global variables.
44251
44252 2008-06-23  Eric Blake  <ebb9@byu.net>
44253
44254         Make gnulib-cache.m4 easier to diff.
44255         * gnulib-tool (func_import): Allow newlines when reading cached
44256         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
44257
44258 2008-06-23  Bruno Haible  <bruno@clisp.org>
44259
44260         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
44261         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
44262         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
44263         m4/signalblocking.m4.
44264         (gl_PREREQ_SIGACTION): Don't invoke it.
44265         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
44266         gl_PREREQ_SIG_HANDLER_H.
44267         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
44268         Don't check for sigaction here.
44269
44270 2008-06-23  Bruno Haible  <bruno@clisp.org>
44271
44272         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
44273         (install_handlers): Don't set the SA_RESETHAND flag.
44274
44275 2008-06-23  Bruno Haible  <bruno@clisp.org>
44276
44277         * m4/sigaction.m4: Comment fixes.
44278         * lib/signal.in.h: Likewise.
44279
44280 2008-06-23  Eric Blake  <ebb9@byu.net>
44281
44282         Fix typo.
44283         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
44284
44285         Avoid SA_ namespace.
44286         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
44287         Reported by Ralf Wildenhues.
44288
44289         Avoid test failure due to SA_RESTORER.
44290         * tests/test-sigaction.c (SA_MASK): New macro.
44291         (main): Avoid failing due to extension flags being set.
44292         Reported by Jim Meyering.
44293
44294         Revert use of sig-handler.h in sigprocmask.c.
44295         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
44296         it requires the existence of struct sigaction.
44297         * lib/sigprocmask.c (handler_t): Restore typedef.
44298         (rpl_signal, old_handlers): Use local type.
44299
44300 2008-06-22  Bruno Haible  <bruno@clisp.org>
44301
44302         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
44303         conditionally.
44304         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
44305
44306 2008-06-22  Bruno Haible  <bruno@clisp.org>
44307
44308         * doc/posix-functions/siginterrupt.texi: Move note.
44309
44310         * lib/signal.in.h (SA_RESTART): New macro.
44311         * lib/sigaction.c: Update comment.
44312
44313         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
44314
44315         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
44316         (gl_PREREQ_SIGPROCMASK): Invoke it.
44317         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
44318
44319         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
44320
44321         * lib/sigprocmask.c: Update a comment.
44322
44323 2008-06-21  Eric Blake  <ebb9@byu.net>
44324
44325         Use sigaction module rather than signal().
44326         * modules/c-stack (Depends-on): Add sigaction.
44327         * modules/fatal-signal (Depends-on): Likewise.
44328         * modules/nanosleep (Depends-on): Likewise.
44329         * modules/sigprocmask (Files): Add sig-handler.h.
44330         * modules/sigaction (Files): Likewise.
44331         * lib/sig-handler.h (get_handler): New file, suggested by Paul
44332         Eggert.
44333         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
44334         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
44335         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
44336         (init_fatal_signals): Likewise.
44337         * lib/nanosleep.c (rpl_nanosleep): Likewise.
44338         (siginterrupt): Delete fallback.
44339         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
44340         instead.
44341         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
44342         siginterrupt.
44343
44344         New module sigaction, for mingw.
44345         * modules/sigaction: New module...
44346         * modules/sigaction-tests: ...and its test.
44347         * m4/sigaction.m4: New file.
44348         * lib/sigaction.c: Likewise.
44349         * tests/test-sigaction.c: Likewise.
44350         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
44351         * modules/signal (Makefile.am): Likewise.
44352         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
44353         needed.
44354         * doc/posix-headers/signal.texi (signal.h): Mention provided
44355         types.
44356         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
44357         that sigaction is preferable.
44358         * doc/posix-functions/sigaction.texi (sigaction): Mention new
44359         module.
44360         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
44361         sigaction.
44362
44363         Improve robustness of sigprocmask by overriding signal.
44364         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
44365         is in use.
44366         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
44367         (SIGKILL, SIGSTOP): Provide fallbacks.
44368         (rpl_signal): Implement.
44369         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
44370         signal can be called inside handlers.
44371
44372         Fix nanosleep module on mingw.
44373         * modules/nanosleep (Depends-on): Add sys_select.
44374         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
44375
44376         Fix licensing of sigprocmask.
44377         * modules/raise (License): Relicense as LGPL.
44378
44379 2008-06-21  Bruno Haible  <bruno@clisp.org>
44380
44381         * lib/propername.c (proper_name_utf8): Don't use the transliterated
44382         result if it contains question marks.
44383         Reported by Michael Geng <linux@michaelgeng.de>.
44384
44385 2008-06-19  Bruno Haible  <bruno@clisp.org>
44386
44387         Fix CVS-ism.
44388         * doc/gnulib.texi: Include updated-stamp.texi.
44389         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
44390         (updated-stamp.texi): New rule.
44391         (gnulib.info): Depend on it.
44392         * doc/.gitignore: Add updated-stamp.texi.
44393         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
44394
44395 2008-06-19  Bruno Haible  <bruno@clisp.org>
44396
44397         * doc/Makefile (gnulib.info): Update and simplify dependencies.
44398         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
44399
44400 2008-06-19  Eric Blake  <ebb9@byu.net>
44401
44402         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
44403         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
44404         Reported by Stepan Kasal.
44405
44406 2008-06-18  Bruno Haible  <bruno@clisp.org>
44407
44408         * lib/fatal-signal.c (init_fatal_signals): Add comment.
44409         Reported by Eric Blake.
44410
44411 2008-06-18  Eric Blake  <ebb9@byu.net>
44412
44413         Work around cygwin 1.5.25 strsignal bug.
44414         * tests/test-strsignal.c: Allow for const char *.
44415         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
44416
44417 2008-06-18  Simon Josefsson  <simon@josefsson.org>
44418
44419         * users.txt: Update URL to article and add author/date
44420         information.
44421
44422 2008-06-17  Bruno Haible  <bruno@clisp.org>
44423
44424         New macro gl_DISABLE_THREADS.
44425         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
44426         if the user did not pass --enable-threads or --disable-threads option.
44427         (gl_DISABLE_THREADS): New macro.
44428         Reported by Eric Blake <ebb9@byu.net>.
44429
44430 2008-06-17  Bruno Haible  <bruno@clisp.org>
44431
44432         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
44433         when the macro ignores it.
44434         Based on a patch by Eric Blake <ebb9@byu.net>.
44435
44436 2008-06-17  Bruno Haible  <bruno@clisp.org>
44437
44438         * modules/tls (License): Change to LGPLv2+.
44439         Reported by Eric Blake.
44440
44441 2008-06-17  Eric Blake  <ebb9@byu.net>
44442
44443         Simplify c-stack prerequisites.
44444         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
44445         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
44446         no longer requires <ucontext.h> to exist.  Optimize setrlimit
44447         check.
44448         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
44449         <sys/resource.h>.
44450
44451         Move c-stack test into testsuite.
44452         * modules/c-stack-tests: New file.
44453         * lib/c-stack.c [DEBUG]: Move test program...
44454         * tests/test-c-stack.c: ...into this new file.  Skip rather than
44455         fail test if sigaltstack is lacking.
44456         * tests/test-c-stack.sh: New driver file.
44457
44458 2008-06-16  Eric Blake  <ebb9@byu.net>
44459
44460         Use raise module consistently.
44461         * modules/fatal-signal (Depends-on): Add raise.
44462         * modules/sigprocmask (Depends-on): Likewise.
44463         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
44464         * lib/sigprocmask.c (sigprocmask): Likewise.
44465         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
44466         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
44467
44468         Fix compliance bug in sigpending.
44469         * lib/sigprocmask.c (sigpending): Return pending array via
44470         parameter, not return value.
44471
44472 2008-06-14  Eric Blake  <ebb9@byu.net>
44473
44474         Improve obstack-printf test code.
44475         * tests/test-obstack-printf.c (test_function): Fix comment, and
44476         simplify usage of obstack_* in macros.  Add a test for coverage.
44477         Reported by Bruno Haible.
44478
44479 2008-06-14  Bruno Haible  <bruno@clisp.org>
44480
44481         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
44482         array size as a constant, not as a const variable.
44483         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
44484         AC_USE_SYSTEM_EXTENSIONS.
44485         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
44486         Test whether the obstack_printf function actually exists.
44487         * modules/obstack-printf (Depends-on): Add extensions.
44488         (Include): Remove obstack.h.
44489         * modules/obstack-printf-posix (Depends-on): Add extensions.
44490         (Include): Remove obstack.h.
44491
44492 2008-06-13  Eric Blake  <ebb9@byu.net>
44493
44494         Add obstack-printf and obstack-printf-posix modules.
44495         * modules/obstack-printf: New file.
44496         * modules/obstack-printf-posix: Likewise.
44497         * MODULES.html.sh (Misc): Mention them.
44498         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
44499         Likewise.
44500         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
44501         Likewise.
44502         * modules/stdio (Makefile.am): Accomodate new modules.
44503         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
44504         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
44505         Declare.
44506         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
44507         functions.
44508         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
44509         (gl_REPLACE_OBSTACK_PRINTF): New macros
44510         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
44511         * tests/test-obstack-printf.c: New file.
44512         * modules/obstack-printf-tests: Likewise.
44513         * modules/obstack-printf-posix-tests: Likewise.
44514
44515 2008-06-11  Bruno Haible  <bruno@clisp.org>
44516
44517         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
44518         * lib/open.c: Include errno.h.
44519         (open): Fail when attempting to write to a file that has a trailing
44520         slash.
44521         * tests/test-open.c (main): Test against trailing slash bug.
44522         * doc/posix-functions/open.texi: Mention the trailing slash bug.
44523
44524 2008-06-10  Bruno Haible  <bruno@clisp.org>
44525
44526         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
44527         for $? to work inside the trap command, with various /bin/sh-s.
44528         * tests/test-vc-list-files-cvs.sh: Likewise.
44529
44530 2008-06-10  Bruno Haible  <bruno@clisp.org>
44531
44532         * lib/acl-internal.h: Don't include gettext.h here.
44533         * lib/set-mode-acl.c: Include gettext.h here.
44534         * lib/copy-acl.c: Likewise.
44535
44536 2008-06-10  Bruno Haible  <bruno@clisp.org>
44537
44538         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
44539         * lib/wait-process.c (wait_subprocess): Likewise.
44540         * lib/execute.h (execute): Add termsigp argument.
44541         * lib/execute.c (execute): Likewise.
44542         * lib/csharpcomp.c (compile_csharp_using_pnet,
44543         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
44544         * lib/csharpexec.c (execute_csharp_using_pnet,
44545         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
44546         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
44547         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
44548         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
44549         is_jikes_present): Update.
44550         * lib/javaexec.c (execute_java_class): Update.
44551         * lib/javaversion.c (execute_and_read_line): Update.
44552         * NEWS: Document the changes.
44553         Reported by Eric Blake.
44554
44555 2008-06-10  Eric Blake  <ebb9@byu.net>
44556
44557         Add missing include.
44558         * tests/test-strstr.c (includes): Add <signal.h>.
44559         * tests/test-strcasestr.c (includes): Likewise.
44560         * tests/test-memmem.c (includes): Likewise.
44561
44562 2008-06-10  Bruno Haible  <bruno@clisp.org>
44563
44564         * lib/wait-process.c (wait_subprocess): Add an assertion.
44565
44566 2008-06-10  Bruno Haible  <bruno@clisp.org>
44567
44568         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
44569
44570 2008-06-10  Bruno Haible  <bruno@clisp.org>
44571
44572         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
44573         using alarm().
44574         * tests/test-strcasestr.c (main): Likewise.
44575         * tests/test-strstr.c (main): Likewise.
44576
44577 2008-06-09  Bruno Haible  <bruno@clisp.org>
44578
44579         Work around the Solaris 10 ACE ACLs ABI change.
44580         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
44581         declare if ACL_NO_TRIVIAL is present.
44582         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
44583         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
44584         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
44585         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
44586         define if ACL_NO_TRIVIAL is present.
44587         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
44588         and use the current ABI.
44589         (file_has_acl): Use same #if condition as elsewhere.
44590         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
44591         in use, and use the current ABI.
44592         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
44593         Reported by Jim Meyering.
44594
44595 2008-06-09  Eric Blake  <ebb9@byu.net>
44596
44597         Work around environments that (stupidly) ignore SIGALRM.
44598         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
44599         before using alarm().
44600         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
44601         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
44602         Reported by Ian Beckwith <ianb@erislabs.net>.
44603
44604         Produce autobuild blurb earlier in log.
44605         * modules/autobuild (configure.ac-early): Move AB_INIT here.
44606
44607 2008-06-09  Jim Meyering  <meyering@redhat.com>
44608         and OndÅ™ej Vašík  <ovasik@redhat.com>
44609
44610         utimens.c: correct kernel bug work-around
44611         OndÅ™ej Vašík found that the invalid return value of 280 indicates
44612         failure, not success, and the kernel bug we're trying to work
44613         around affects not just the utimensat call, but also the fallback
44614         futimens call.
44615         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
44616         not success.
44617         [HAVE_FUTIMENS]: Use the same work-around, here.
44618
44619 2008-06-09  Jim Meyering  <meyering@redhat.com>
44620
44621         add more guards around definition of ACE_-related code
44622         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
44623         ALLOW and ACE_OWNER are also defined.
44624
44625 2008-06-08  Bruno Haible  <bruno@clisp.org>
44626
44627         * lib/acl-internal.h: Add me as co-author.
44628         * lib/file-has-acl.c: Likewise.
44629         * lib/set-mode-acl.c: Likewise.
44630         * lib/copy-acl.c: Likewise.
44631
44632 2008-06-08  Bruno Haible  <bruno@clisp.org>
44633
44634         Add support for AIX ACLs.
44635         * lib/acl-internal.h (acl_nontrivial): New declaration.
44636         * lib/file-has-acl.c (acl_nontrivial): New function.
44637         (file_has_acl): Add implementation using AIX 4 ACL API.
44638         * lib/set-mode-acl.c (qset_acl): Likewise.
44639         * lib/copy-acl.c (qcopy_acl): Likewise.
44640
44641 2008-06-08  Bruno Haible  <bruno@clisp.org>
44642
44643         Add support for HP-UX ACLs.
44644         * lib/acl-internal.h (acl_nontrivial): New declaration.
44645         * lib/file-has-acl.c (acl_nontrivial): New function.
44646         (file_has_acl): Add implementation using HP-UX 11 ACL API.
44647         * lib/set-mode-acl.c (qset_acl): Likewise.
44648         * lib/copy-acl.c (qcopy_acl): Likewise.
44649
44650 2008-06-08  Bruno Haible  <bruno@clisp.org>
44651
44652         Add support for Cygwin ACLs.
44653         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
44654         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
44655         the chmod_or_fchmod call.
44656         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
44657
44658 2008-06-08  Bruno Haible  <bruno@clisp.org>
44659
44660         Fix bug with setuid modes in Solaris 10+ code.
44661         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
44662         succeeded, when the mode contains some special bits.
44663
44664 2008-06-08  Bruno Haible  <bruno@clisp.org>
44665
44666         Add support for Solaris 7..10 ACLs.
44667         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
44668         declarations.
44669         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
44670         functions.
44671         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
44672         * lib/set-mode-acl.c (qset_acl): Likewise.
44673         * lib/copy-acl.c (qcopy_acl): Likewise.
44674
44675 2008-06-08  Bruno Haible  <bruno@clisp.org>
44676
44677         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
44678         declaration.
44679         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
44680         (acl_access_nontrivial): Remove MacOS X case.
44681         (file_has_acl): Use acl_extended_nontrivial.
44682         * lib/copy-acl.c (qcopy_acl): Likewise.
44683
44684 2008-06-08  Bruno Haible  <bruno@clisp.org>
44685
44686         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
44687
44688 2008-06-08  Jim Meyering  <meyering@redhat.com>
44689
44690         * modules/acl (Maintainer): Add Bruno Haible.
44691
44692 2008-06-07  Bruno Haible  <bruno@clisp.org>
44693
44694         Improve support for Tru64 ACLs.
44695         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
44696         ACL on OSF/1.
44697
44698 2008-06-07  Bruno Haible  <bruno@clisp.org>
44699
44700         Add support for MacOS X ACLs.
44701         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
44702         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
44703         * lib/set-mode-acl.c (qset_acl): Likewise.
44704         * lib/copy-acl.c (qcopy_acl): Likewise.
44705
44706 2008-06-07  Bruno Haible  <bruno@clisp.org>
44707
44708         Fix memory leak introduced on 2008-05-22.
44709         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
44710         use.
44711
44712 2008-06-07  Bruno Haible  <bruno@clisp.org>
44713
44714         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
44715         to construct an empty ACL.
44716
44717 2008-06-07  Bruno Haible  <bruno@clisp.org>
44718
44719         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
44720         precisely.
44721         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
44722
44723 2008-06-07  Bruno Haible  <bruno@clisp.org>
44724
44725         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
44726         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
44727
44728 2008-06-07  Bruno Haible  <bruno@clisp.org>
44729
44730         * doc/posix-functions/_setjmp.texi: Explain the use of this function
44731         regardless of POSIX.
44732         * doc/posix-functions/_longjmp.texi: Likewise.
44733         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
44734         SystemV platform in this case.
44735
44736 2008-06-06  Eric Blake  <ebb9@byu.net>
44737
44738         Document abort() bugs.
44739         * doc/posix-functions/abort.texi (abort): Mention anomalies.
44740
44741         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
44742         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
44743         sigsetjmp.
44744         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
44745         siglongjmp, but only as a macro.
44746         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
44747         is obsolete.
44748         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
44749
44750         Tweak documentation to cover cygwin argz bugs.
44751         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
44752         argz bug fix; no code change needed since no cygwin releases
44753         occurred between the last fix and the bug being tested.
44754         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
44755         module and recently fixed cygwin bugs.
44756         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
44757         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
44758         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
44759         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
44760         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
44761         Likewise.
44762         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
44763         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
44764         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
44765         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
44766         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
44767         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
44768         Likewise.
44769
44770         Avoid gcc warning on cygwin.
44771         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
44772         !ACL_NO_TRIVIAL]: Avoid unused variable.
44773
44774 2008-06-05  Eric Blake  <ebb9@byu.net>
44775
44776         Be tolerant of UNKNOWN version in gnulib-tool test dir.
44777         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
44778         git-version-gen fails to come up with a version.
44779         Reported by Simon Josefsson.
44780
44781 2008-06-05  Jim Meyering  <meyering@redhat.com>
44782             Paul Eggert  <eggert@cs.ucla.edu>
44783
44784         utimens.c: work around a probable Linux kernel bug
44785         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
44786         appears to be a kernel bug that causes utimensat to return 280
44787         instead of 0, indicating success.
44788
44789 2008-06-04  Bruno Haible  <bruno@clisp.org>
44790
44791         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
44792         2008-06-01 commit.
44793
44794 2008-06-04  Bruno Haible  <bruno@clisp.org>
44795
44796         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
44797         * lib/file-has-acl.c (acl_access_nontrivial): New function.
44798         (file_has_acl): Use it. Save errno afterwards.
44799         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
44800
44801 2008-06-03  Bruno Haible  <bruno@clisp.org>
44802
44803         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
44804         draft code. Simplify #ifs.
44805         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
44806         Put Solaris code after POSIX-draft code. Fix comments regarding
44807         Solaris 10, HP-UX. Mention Cygwin.
44808         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
44809
44810 2008-06-03  Eric Blake  <ebb9@byu.net>
44811
44812         Provide fallback for older kernels.
44813         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
44814         Provide runtime fallback if kernel lacks support.
44815         Reported by Mike Frysinger.
44816
44817 2008-06-02  Bruno Haible  <bruno@clisp.org>
44818
44819         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
44820         it exists.
44821
44822 2008-06-02  Bruno Haible  <bruno@clisp.org>
44823
44824         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
44825         * lib/copy-acl.c (qcopy_acl): Update comment.
44826
44827 2008-06-02  Bruno Haible  <bruno@clisp.org>
44828
44829         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
44830         like ACL APIs.
44831
44832 2008-06-02  Bruno Haible  <bruno@clisp.org>
44833
44834         * tests/test-file-has-acl.sh: Use different code for Cygwin.
44835         * tests/test-set-mode-acl.sh: Likewise.
44836         * tests/test-copy-acl.sh: Likewise.
44837         * tests/test-copy-file.sh: Likewise.
44838
44839 2008-06-02  Bruno Haible  <bruno@clisp.org>
44840
44841         * tests/test-file-has-acl.sh: Remove unused code.
44842
44843 2008-06-01  Bruno Haible  <bruno@clisp.org>
44844
44845         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
44846         (copy_acl): Just a wrapper around qcopy_acl that emits the error
44847         messages.
44848         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
44849
44850 2008-06-01  Bruno Haible  <bruno@clisp.org>
44851
44852         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
44853         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
44854         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
44855         APIs.
44856         * modules/acl-tests (configure.ac): Remove tests now contained in
44857         m4/acl.m4.
44858
44859 2008-06-02  Jim Meyering  <meyering@redhat.com>
44860
44861         announce-gen: use a better key-server host name
44862         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
44863         it may be more consistently reliable.  Suggested by Werner Koch
44864         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
44865
44866 2008-06-01  Bruno Haible  <bruno@clisp.org>
44867
44868         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
44869         Reported by Voroskoi Andras <voroskoi@gmail.com>.
44870
44871 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
44872
44873         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
44874
44875 2008-06-01  Bruno Haible  <bruno@clisp.org>
44876
44877         New ACL tests.
44878         * tests/test-file-has-acl.sh: New file.
44879         * tests/test-file-has-acl.c: New file.
44880         * tests/test-set-mode-acl.sh: New file.
44881         * tests/test-set-mode-acl.c: New file.
44882         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
44883         * tests/test-copy-acl.c: New file.
44884         * modules/acl-tests: New file, based on modules/copy-file-tests.
44885         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
44886         (Depends-on): Add acl-tests.
44887         (configure.ac): Remove checks.
44888         (Makefile.am): Don't create test-sameacls program here any more.
44889
44890 2008-06-01  Bruno Haible  <bruno@clisp.org>
44891
44892         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
44893         * tests/test-sameacls.c: Include progname.h.
44894         (main): Invoke set_program_name. Portability fixes for MacOS X,
44895         Solaris, HP-UX.
44896
44897 2008-06-01  Bruno Haible  <bruno@clisp.org>
44898
44899         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
44900         function.
44901         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
44902
44903 2008-06-01  Bruno Haible  <bruno@clisp.org>
44904
44905         * modules/rpmatch (Depends-on): Add strdup.
44906
44907 2008-06-01  Bruno Haible  <bruno@clisp.org>
44908
44909         * lib/pipe.c: Include unistd-safer.h.
44910         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
44911         * modules/pipe (Depends-on): Add unistd-safer.
44912
44913 2008-05-30  Simon Josefsson  <simon@josefsson.org>
44914
44915         * modules/autobuild (configure.ac): Call AB_INIT.
44916
44917 2008-05-30  Simon Josefsson  <simon@josefsson.org>
44918
44919         * tests/test-getaddrinfo.c: Don't print debug messages by default.
44920         Suggested by Bruno Haible <bruno@clisp.org>.
44921
44922 2008-05-30  Simon Josefsson  <simon@josefsson.org>
44923
44924         * tests/test-base64.c: Cast size_t to unsigned long when invoking
44925         printf.  Use %lu instead of %d.  Reported by Bruno Haible
44926         <bruno@clisp.org>.
44927
44928 2008-05-29  Eric Blake  <ebb9@byu.net>
44929
44930         Prefer new POSIX 200x interfaces over futimesat.
44931         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
44932         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
44933         when available.
44934         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
44935
44936 2008-05-28  Bruno Haible  <bruno@clisp.org>
44937
44938         * modules/stpcpy (License): Change to LGPLv2+.
44939         Requested by David Lutterkort <dlutter@redhat.com>.
44940
44941 2008-05-27  Bruno Haible  <bruno@clisp.org>
44942
44943         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
44944         current mingw.
44945         Reported by Jose E. Marchesi <jemarch@gnu.org>.
44946
44947 2008-05-27  Bruno Haible  <bruno@clisp.org>
44948
44949         * modules/iconv_open (Link): New section, from module 'iconv'.
44950         * modules/striconv (Link): Likewise.
44951         * modules/striconveh (Link): Likewise.
44952         * modules/xstriconv (Link): Likewise.
44953         * modules/unicodeio (Link): Likewise.
44954         * modules/propername (Link): Likewise.
44955         Reported by Jim Meyering.
44956
44957 2008-05-26  Jim Meyering  <meyering@redhat.com>
44958
44959         sha256: do not artificially restrict buffer length to be < 2^32
44960         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
44961         uint32_t to size_t.
44962         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
44963         to match.
44964
44965         avoid unaligned access errors, e.g., on sparc
44966         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
44967         direct access through a possibly-unaligned uint64* pointer.
44968         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
44969         direct access through a possibly-unaligned uint32* pointer.
44970         Prompted by this patch from Tom "spot" Callaway:
44971         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
44972
44973         sha512.c: fix typo in comment
44974         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
44975
44976 2008-05-25  Bruno Haible  <bruno@clisp.org>
44977
44978         * lib/set-mode-acl.c: Renamed from lib/acl.c.
44979         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
44980         (Makefile.am): Update lib_SOURCES.
44981
44982 2008-05-25  Bruno Haible  <bruno@clisp.org>
44983
44984         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
44985
44986 2008-05-25  Jim Meyering  <meyering@redhat.com>
44987
44988         useless-if-before-free: freed expr may have white-space differences
44989         * build-aux/useless-if-before-free: Recognize cases in which the
44990         freed expression differs from the tested one in embedded white
44991         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
44992         $1 was used, so we can't make any regexp shy.  Improved tests now
44993         detect this.
44994
44995         useless-if-before-free: accept white space in the expression.
44996         * build-aux/useless-if-before-free: For now, any white space
44997         in the expression must be identical in the free argument.
44998
44999         useless-if-before-free: efficiency tweak
45000         * build-aux/useless-if-before-free: Make the expression-matching
45001         regexp "shy".
45002         Make the *outer* regexp shy, not the expr-matching one.
45003
45004         update code-in-comment to accept cast of free arg
45005         * build-aux/useless-if-before-free: Update regexp.
45006
45007 2008-05-25  Bruno Haible  <bruno@clisp.org>
45008
45009         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
45010         * modules/copy-file-tests (Files, Makefile.am): Update.
45011         * tests/test-copy-file.c (func_test_copy): Update.
45012
45013 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
45014
45015         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
45016
45017 2008-05-23  Bruno Haible  <bruno@clisp.org>
45018
45019         Improve support for ACLs on OSF/1.
45020         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
45021         Remove fallback for unknown flavors of ACLs.
45022
45023 2008-05-22  Bruno Haible  <bruno@clisp.org>
45024
45025         Add support for ACLs on OSF/1.
45026         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
45027         replacements.
45028         (acl_free_text): New macro fallback.
45029         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
45030         acl_free.
45031         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
45032         acl_free_text function. Require AC_C_INLINE.
45033
45034 2008-05-22  Bruno Haible  <bruno@clisp.org>
45035
45036         Make copy_acl work on MacOS X 10.5.
45037         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
45038         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
45039         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
45040         If MODE_INSIDE_ACL, don't assume that every system has the same text
45041         representation for ACLs as FreeBSD.
45042         * lib/copy-acl.c (copy_acl): Add support for platforms with
45043         !MODE_INSIDE_ACL.
45044         * lib/file-has-acl.c (file_has_acl): Likewise.
45045         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
45046         FreeBSD, MacOS X, or IRIX, respectively.
45047
45048 2008-05-22  Bruno Haible  <bruno@clisp.org>
45049
45050         * lib/acl.h: Don't include <sys/acl.h>.
45051         (GETACLCNT): Move fallback to lib/acl-internal.h.
45052         * lib/acl-internal.h: Include <sys/acl.h> here.
45053         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
45054
45055 2008-05-22  Bruno Haible  <bruno@clisp.org>
45056
45057         Split off copy_acl function to separate file.
45058         * lib/copy-acl.c: New file, extracted from lib/acl.c.
45059         * lib/acl.c (copy_acl): Moved function to separate file.
45060         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
45061         * modules/acl (Files): Add lib/copy-acl.c.
45062         (Makefiles.am): Augment lib_SOURCES.
45063
45064 2008-05-22  Bruno Haible  <bruno@clisp.org>
45065
45066         * modules/copy-file-tests: New file.
45067         * tests/test-copy-file.sh: New file.
45068         * tests/test-copy-file.c: New file.
45069         * tests/test-copy-file-sameacls.c: New file.
45070
45071 2008-05-22  Eric Blake  <ebb9@byu.net>
45072
45073         Avoid gcc warning.
45074         * tests/test-memcmp.c (main): Pass NULL indirectly.
45075
45076 2008-05-21  Bruno Haible  <bruno@clisp.org>
45077
45078         Add reference doc about ACLs.
45079         * doc/acl-resources.txt: New file.
45080         * doc/acl-cygwin.txt: New file.
45081
45082 2008-05-21  Bruno Haible  <bruno@clisp.org>
45083
45084         Avoid one more warning from gcc.
45085         * lib/vasnprintf.c (IF_LINT): Update comments.
45086         (VASNPRINTF): Use it also for the 'prefix' array initializer.
45087
45088 2008-05-21  Jim Meyering  <meyering@redhat.com>
45089
45090         avoid a warning from gcc
45091         * lib/vasnprintf.c (IF_LINT): Define.
45092         (scale10_round_decimal_long_double):
45093         Use it to avoid a "may be used uninitialized" warning.
45094         (scale10_round_decimal_double): Likewise.
45095
45096 2008-05-21  Simon Josefsson  <simon@josefsson.org>
45097
45098         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
45099         declared.
45100
45101 2008-05-20  Bruno Haible  <bruno@clisp.org>
45102
45103         * tests/test-memcmp.c (main): Test also the sign of the result. Test
45104         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
45105
45106 2008-05-20  Simon Josefsson  <simon@josefsson.org>
45107
45108         * modules/memcmp-tests: New file.
45109         * tests/test-memcmp.c: New file.
45110
45111 2008-05-19  Bruno Haible  <bruno@clisp.org>
45112
45113         * modules/propername (Notice, configure.ac): Put quoted "..." into
45114         --keyword option.
45115         * lib/propername.h: Update comments accordingly.
45116         Reported by Eric Blake.
45117
45118 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
45119
45120         * modules/getpass-gnu (Depends-on): Add fseeko.
45121
45122 2008-05-19  Simon Josefsson  <simon@josefsson.org>
45123
45124         * modules/base64-tests: New file.
45125
45126 2008-05-19  Bo Borgerson <gigabo@gmail.com>
45127
45128         * lib/base64.c (base64_decode_ctx): If a decode context structure
45129         was passed in use it to ignore newlines.  If a context structure
45130         was _not_ passed in, continue to treat newlines as garbage (this
45131         is the historical behavior).  Formerly base64_decode.
45132         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
45133         takes a decode context structure.
45134         * lib/base64.h (base64_decode): Macro for four-argument calls.
45135         (base64_decode_alloc): Likewise.
45136         * lib/base64.c (base64_decode_ctx): If a decode context structure
45137         was passed in use it to ignore newlines.  If a context structure
45138         was _not_ passed in, continue to treat newlines as garbage (this
45139         is the historical behavior).  Formerly base64_decode.
45140         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
45141         takes a decode context structure.
45142         * lib/base64.h (base64_decode): Macro for four-argument calls.
45143         (base64_decode_alloc): Likewise.
45144
45145 2008-05-19  Jim Meyering  <meyering@redhat.com>
45146
45147         avoid a warning from gcc
45148         * lib/trim.c (IF_LINT): Define.
45149         (trim2): Use it to avoid a "may be used uninitialized" warning.
45150
45151         Fix doc typo.
45152         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
45153
45154 2008-05-19  Bruno Haible  <bruno@clisp.org>
45155
45156         * doc/glibc-functions/getpass.texi: Document limits of other
45157         implementations.
45158
45159 2008-05-19  Simon Josefsson  <simon@josefsson.org>
45160             Bruno Haible <bruno@clisp.org>
45161
45162         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
45163
45164 2008-05-18  Bruno Haible  <bruno@clisp.org>
45165
45166         * modules/propername: New file, from GNU gettext.
45167         * lib/propername.h: New file, from GNU gettext.
45168         * lib/propername.c: New file, from GNU gettext.
45169         * MODULES.html.sh (Internationalization functions): Add propername.
45170
45171 2008-05-16  Jim Meyering  <meyering@redhat.com>
45172             Bruno Haible  <bruno@clisp.org>
45173
45174         Avoid some warnings from "gcc -Wshadow".
45175         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
45176
45177 2008-05-15  Eric Blake  <ebb9@byu.net>
45178
45179         Extend previous patch to cygwin 1.7.0.
45180         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
45181         fast implementation in cygwin >= 1.7.0.
45182         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
45183         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
45184
45185 2008-05-15  Bruno Haible  <bruno@clisp.org>
45186
45187         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
45188         implementation in glibc >= 2.9.
45189         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
45190         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
45191
45192 2008-05-15  Bruno Haible  <bruno@clisp.org>
45193
45194         * MODULES.html.sh (Internationalization functions): Remove linebreak.
45195         (Unicode string functions): Add unilbrk/*.
45196         Reported by Karl Berry.
45197
45198 2008-05-15  Eric Blake  <ebb9@byu.net>
45199
45200         Fix violation of <stdbool.h> replacement in regex.
45201         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
45202         * lib/regexec.c (re_search_internal): Likewise.
45203         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
45204
45205 2008-05-15  Jim Meyering  <meyering@redhat.com>
45206
45207         avoid distracting test output when git or cvs is not found
45208         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
45209         * tests/test-vc-list-files-git.sh: Likewise.
45210
45211 2008-05-15  Eric Blake  <ebb9@byu.net>
45212
45213         Glibc finally accepted the memmem speedup code, bugzilla #5514.
45214         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
45215         glibc version.
45216         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
45217         * doc/posix-functions/strstr.texi (strstr): Likewise.
45218         * lib/str-two-way.h (MAX): Sychronize with glibc.
45219
45220 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
45221
45222         * lib/regcomp.c (optimize_utf8): Add a note on why we test
45223         opr.ctx_type.
45224         (calc_first): Initialize constraint field.
45225         (duplicate_node_closure): Use it instead of special casing ANCHORS.
45226         Fix grammar.
45227         (duplicate_node): Merge constraint field for all node types.
45228         (calc_eclosure_iter): Look at constraint field for all node types.
45229         * lib/regex_internal.c (create_cd_newstate): Don't look at
45230         opr.ctx_type.
45231
45232 2008-05-14  Bruno Haible  <bruno@clisp.org>
45233
45234         Help GCC to do better code generation.
45235         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
45236         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
45237         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
45238         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
45239         Declare with attribute 'malloc' if supported.
45240
45241 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
45242
45243         use "echo STR|wc -c" rather than unportable "expr length STR"
45244         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
45245         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
45246
45247 2008-05-14  Jim Meyering  <meyering@redhat.com>
45248
45249         use dd ibs=$n count=1 ... rather than less-portable head -c$n
45250         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
45251         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
45252         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
45253         via Collin Lasse.
45254
45255 2008-05-14  Eric Blake  <ebb9@byu.net>
45256
45257         Avoid quadratic growth in gl_LIBSOURCES.
45258         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
45259         Suggested by Bruno Haible.
45260
45261         Test xmemdup0.
45262         * modules/xmemdup0-tests: New file.
45263         * tests/test-xmemdup0.c: Likewise.
45264
45265 2008-05-13  Eric Blake  <ebb9@byu.net>
45266
45267         Split xmemdup0 into its own module.
45268         * modules/xmemdup0: New file.
45269         * lib/xmemdup0.h: Likewise.
45270         * lib/xmemdup0.c: Likewise.
45271         * MODULES.html.sh (Memory management functions): Add xmemdup0.
45272         * lib/xalloc.h (xmemdup0): Remove.
45273         * lib/xmalloc.c (xmemdup0): Likewise.
45274
45275 2008-05-13  Eric Blake  <ebb9@byu.net>
45276             Bruno Haible  <bruno@clisp.org>
45277
45278         Reduce number of forks required during autoconf.
45279         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
45280         and gl_LIBSOURCES_DIR.
45281         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
45282         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
45283         m4_syscmd per file.
45284         <m4_foreach_w>: Move...
45285         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
45286
45287 2008-05-13  Eric Blake  <ebb9@byu.net>
45288
45289         * gnulib-tool: Fix various comment typos.
45290
45291 2008-05-12  Bruno Haible  <bruno@clisp.org>
45292
45293         Tailor the linebreaking algorithm.
45294         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
45295
45296 2008-05-12  Bruno Haible  <bruno@clisp.org>
45297
45298         Update to Unicode 5.0.0.
45299         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
45300         LBP_JV, LBP_JT. Redistribute values.
45301         (unilbrk_table): Change size.
45302         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
45303         Unicode TR#14 rev. 22.
45304         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
45305         LBP_JV, LBP_JT. Redistribute values.
45306         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
45307         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
45308         Update.
45309         * lib/unilbrk/lbrkprop1.h: Regenerated.
45310         * lib/unilbrk/lbrkprop2.h: Regenerated.
45311         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
45312         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
45313         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
45314         Likewise.
45315         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
45316         Likewise.
45317         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
45318         result.
45319         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
45320         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
45321         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
45322         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
45323         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
45324         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
45325
45326 2008-05-11  Bruno Haible  <bruno@clisp.org>
45327
45328         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
45329
45330 2008-05-11  Bruno Haible  <bruno@clisp.org>
45331
45332         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
45333         * modules/unilbrk/gen-lbrk: New file.
45334
45335 2008-05-11  Bruno Haible  <bruno@clisp.org>
45336
45337         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
45338         * m4/sha512.m4 (gl_SHA512): Likewise.
45339
45340 2008-05-11  Jim Meyering  <meyering@redhat.com>
45341
45342         New modules: crypto/sha256, crypto/sha512 (from coreutils)
45343         * modules/crypto/sha256: New file.
45344         * modules/crypto/sha512: Likewise.
45345         * lib/sha256.c: Likewise.
45346         * lib/sha256.h: Likewise.
45347         * lib/sha512.c: Likewise.
45348         * lib/sha512.h: Likewise.
45349         * lib/u64.h: Likewise.
45350         * m4/sha256.m4: Likewise.
45351         * m4/sha512.m4: Likewise.
45352         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
45353
45354 2008-05-10  Bruno Haible  <bruno@clisp.org>
45355
45356         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
45357         (Input/Output <stdio.h>): Add xprintf.
45358         (Signal handling <signal.h>): Add strsignal.
45359         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
45360         (Core language properties): Add func.
45361         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
45362         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
45363         strings.
45364         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
45365         (Input/output): New section.
45366         (File system functions): Add openat-die, stat-macros.
45367         (Networking functions): Add sockets.
45368         (Unicode string functions): Add unictype/*.
45369         (Support for building libraries and executables): Add gperf.
45370         (Support for building documentation): Add agpl-3.0.
45371         (Misc): Add nocrash.
45372
45373 2008-05-10  Bruno Haible  <bruno@clisp.org>
45374
45375         * modules/unictype/gen-ctype: New file.
45376
45377 2008-05-10  Jim Meyering  <meyering@redhat.com>
45378
45379         Make chdir-safer.c more efficient on a system with no symlinks.
45380         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
45381         also if ELOOP is zero.  Suggested by Bruno Haible.
45382
45383         Make chdir-safer.c slightly safer.
45384         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
45385         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
45386
45387         Avoid compile failure on systems without ELOOP (like mingw).
45388         * lib/chdir-safer.c (ELOOP): Define if not already defined.
45389         Reported by Bruno Haible.
45390
45391 2008-05-10  Bruno Haible  <bruno@clisp.org>
45392
45393         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
45394         (is_utf8_encoding): Use a case-insensitive comparison.
45395         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
45396         streq.
45397
45398 2008-05-10  Bruno Haible  <bruno@clisp.org>
45399
45400         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
45401         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
45402         * lib/unilbrk/ulc-common.h (iconv_string_length,
45403         iconv_string_keeping_offsets): Remove declarations.
45404         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
45405         Don't include <iconv.h>, streq.h, xsize.h.
45406         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
45407         conversion.
45408         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
45409         <iconv.h>, streq.h, xsize.h.
45410         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
45411         conversion.
45412         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
45413         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
45414         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
45415         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
45416
45417 2008-05-10  Bruno Haible  <bruno@clisp.org>
45418
45419         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
45420         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
45421
45422         * modules/unilbrk/u32-width-linebreaks-tests: New file.
45423         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
45424
45425         * modules/unilbrk/u16-width-linebreaks-tests: New file.
45426         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
45427
45428         * modules/unilbrk/u8-width-linebreaks-tests: New file.
45429         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
45430
45431         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
45432         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
45433
45434         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
45435         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
45436
45437         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
45438         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
45439
45440         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
45441         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
45442
45443 2008-05-10  Bruno Haible  <bruno@clisp.org>
45444
45445         Split up 'linebreak' module.
45446         * lib/unilbrk.h: New file, based on lib/linebreak.h.
45447         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
45448         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
45449         modifications.
45450         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
45451         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
45452         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
45453         lib/linebreak.c.
45454         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
45455         lib/linebreak.c.
45456         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
45457         lib/linebreak.c.
45458         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
45459         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
45460         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
45461         lib/linebreak.c.
45462         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
45463         lib/linebreak.c.
45464         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
45465         lib/linebreak.c.
45466         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
45467         lib/linebreak.c.
45468         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
45469         lib/linebreak.c.
45470         * modules/unilbrk/base: New file.
45471         * modules/unilbrk/tables: New file.
45472         * modules/unilbrk/u8-possible-linebreaks: New file.
45473         * modules/unilbrk/u16-possible-linebreaks: New file.
45474         * modules/unilbrk/u32-possible-linebreaks: New file.
45475         * modules/unilbrk/ulc-common: New file.
45476         * modules/unilbrk/ulc-possible-linebreaks: New file.
45477         * modules/unilbrk/u8-width-linebreaks: New file.
45478         * modules/unilbrk/u16-width-linebreaks: New file.
45479         * modules/unilbrk/u32-width-linebreaks: New file.
45480         * modules/unilbrk/ulc-width-linebreaks: New file.
45481         * lib/linebreak.h: Remove file.
45482         * lib/linebreak.c: Remove file.
45483         * m4/linebreak.m4: Remove file.
45484         * modules/linebreak: Remove file.
45485         * NEWS: Mention the changes.
45486
45487 2008-05-09  Eric Blake  <ebb9@byu.net>
45488
45489         Add xmemdup0.
45490         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
45491         implementation.
45492         * lib/xmalloc.c (xmemdup0): New C implementation.
45493
45494 2008-05-08  Bruno Haible  <bruno@clisp.org>
45495
45496         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
45497
45498 2008-05-07  Eric Blake  <ebb9@byu.net>
45499
45500         Support cross-compilation of <wctype.h>.
45501         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
45502         AC_CACHE_CHECK.
45503
45504 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
45505
45506         * build-aux/vc-list-files: Add support for bzr.
45507
45508 2008-05-03  Jim Meyering  <meyering@redhat.com>
45509
45510         avoid failed assertion with tight malloc
45511         * tests/test-getndelim2.c: Correct an off-by-one assertion.
45512
45513 2008-05-03  Simon Josefsson  <simon@josefsson.org>
45514
45515         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
45516         are needed from arpa/inet.h.
45517         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
45518         Reported by Bruno Haible.
45519
45520 2008-05-02  Jim Meyering  <meyering@redhat.com>
45521
45522         avoid compilation error on FreeBSD 6
45523         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
45524
45525 2008-05-01  Jim Meyering  <meyering@redhat.com>
45526
45527         useless-if-before-free: correct --help's exit status description
45528         * build-aux/useless-if-before-free (usage): Like grep, exit 0
45529         for one or more matches, etc.  Reported by Bruno Haible.
45530
45531         vc-list-files: make the stand-alone gnulib test work
45532         * modules/vc-list-files-tests (configure.ac):
45533         Define and AC_SUBST abs_aux_dir.
45534         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
45535         $(abs_top_srcdir) to each script and having each of them
45536         duplicate the work of setting PATH, set PATH here, using
45537         the new variable, abs_aux_dir instead.
45538         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
45539         * tests/test-vc-list-files-git.sh: Likewise.
45540         Reported by Bruno Haible.
45541
45542 2008-05-01  Bruno Haible  <bruno@clisp.org>
45543
45544         * lib/getndelim2.c (getndelim2): Fix newsize computation during
45545         reallocation. Rename 'done' to 'found_delimiter'.
45546
45547 2008-05-01  Jim Meyering  <meyering@redhat.com>
45548
45549         vc-list-files: accommodate /bin/sh like the one from Solaris 10
45550         * build-aux/vc-list-files: Use `...`, not $(...).
45551
45552 2008-04-30  Jim Meyering  <meyering@redhat.com>
45553
45554         add tests for vc-list-files
45555         * modules/vc-list-files-tests: New module.
45556         * tests/test-vc-list-files-cvs.sh: New file.
45557         * tests/test-vc-list-files-git.sh: New file.
45558
45559         avoid a warning from gcc
45560         * lib/getndelim2.c (IF_LINT): Define.
45561         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
45562
45563         vc-list-files: work properly with build-aux/cvsu, too
45564         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
45565         to all cvs-based clauses.
45566
45567         vc-list-files: work properly in the CVS+awk case, too
45568         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
45569
45570         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
45571         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
45572         take more than one file argument, so .  Add quotes, just in case $dir
45573         ever contains a shell meta-character.  Prompted by Soren Hansen in
45574         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
45575
45576 2008-04-29  Eric Blake  <ebb9@byu.net>
45577
45578         Optimize getndelim2 to use block operations when possible.
45579         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
45580         freadseek, and memchr2.
45581         * lib/getndelim2.c (getndelim2): Use them for block reads.
45582
45583 2008-04-29  Bruno Haible  <bruno@clisp.org>
45584
45585         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
45586         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
45587         * modules/inet_ntop (Depends-on): Add extensions.
45588         * modules/inet_pton (Depends-on): Likewise.
45589         Reported by Simon Josefsson.
45590
45591 2008-04-29  Jim Meyering  <meyering@redhat.com>
45592
45593         When the is more than one match in a block, match all of them.
45594         * build-aux/useless-if-before-free: Iterate through each block
45595         until there are no more matches.
45596
45597         Fix broken useless-if-before-free script.
45598         * build-aux/useless-if-before-free: Fix typo: missing "?" after
45599         the expression to match cast of argument to free-like function.
45600
45601 2008-04-29  Eric Blake  <ebb9@byu.net>
45602
45603         Use new header.
45604         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
45605
45606 2008-04-29  Jim Meyering  <meyering@redhat.com>
45607
45608         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
45609         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
45610         by gnulib to exist and to declare e.g., inet_ntop.
45611         Don't include "inet_ntop.h", now removed.
45612
45613         * m4/arpa_inet_h.m4: Remove trailing blanks.
45614
45615 2008-04-29  Eric Blake  <ebb9@byu.net>
45616
45617         Silence valgrind on safe reads beyond potential array bounds.
45618         * lib/rawmemchr.valgrind: New file.
45619         * lib/strchrnul.valgrind: Likewise.
45620         * modules/rawmemchr (Files): Distribute new file.
45621         * modules/strchrnul (Files): Likewise.
45622         Suggested by Bruno Haible.
45623
45624 2008-04-29  Bruno Haible  <bruno@clisp.org>
45625
45626         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
45627         (inet_ntop, inet_pton): Change portability warning's wording.
45628         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
45629         Invoke gl_CHECK_NEXT_HEADERS.
45630         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
45631         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
45632         set ARPA_INET_H.
45633         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
45634         * modules/arpa_inet (Description): No longer only for systems that
45635         lack it.
45636         (Depends-on): Add include_next.
45637         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
45638         HAVE_ARPA_INET_H.
45639
45640 2008-04-29  Jim Meyering  <meyering@redhat.com>
45641
45642         * modules/mkdir (License): Re-license as LGPLv2+.
45643
45644 2008-04-29  Bruno Haible  <bruno@clisp.org>
45645
45646         * modules/rawmemchr (Maintainer): Set to Eric.
45647         * modules/strchrnul (Maintainer): Likewise.
45648
45649 2008-04-29  Simon Josefsson  <simon@josefsson.org>
45650
45651         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
45652         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
45653
45654         * modules/arpa_inet (arpa/inet.h): Use them.
45655
45656 2008-04-28  Eric Blake  <ebb9@byu.net>
45657
45658         Test getndelim2.
45659         * modules/getndelim2-tests: New file.
45660         * tests/test-getndelim2.c: Likewise.
45661         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
45662         stream.
45663         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
45664
45665         * MODULES.html.sh: Document new module.
45666
45667 2008-04-20  Bruno Haible  <bruno@clisp.org>
45668
45669         * lib/c-stack.c (die): Use raise.
45670         * modules/c-stack (Depends-on): Add raise.
45671
45672 2008-04-28  Bruno Haible  <bruno@clisp.org>
45673
45674         Expect rpmatch to be declared.
45675         * lib/yesno.c (rpmatch): Remove declaration.
45676
45677         Declare rpmatch.
45678         * lib/stdlib.in.h (rpmatch): New declaration.
45679         * lib/rpmatch.c: Include <stdlib.h> first.
45680         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
45681         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
45682         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
45683         HAVE_RPMATCH.
45684         * modules/rpmatch (Depends-on): Add stdlib, extensions.
45685         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
45686         (Include): Set to <stdlib.h>.
45687         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
45688         HAVE_RPMATCH.
45689         * NEWS: Document the change.
45690
45691 2008-04-28  Bruno Haible  <bruno@clisp.org>
45692
45693         Change rpmatch to use nl_langinfo when appropriate.
45694         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
45695         (N_): New macro.
45696         (localized_pattern): New function/macro.
45697         (try): Remove match, nomatch arguments. Copy the pattern into safe
45698         memory before caching it.
45699         (rpmatch): Use localized_pattern. Add translator comments.
45700         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
45701         Suggested by Eric Blake.
45702         * modules/rpmatch (Depends-on): Add stdbool.
45703
45704 2008-04-28  Eric Blake  <ebb9@byu.net>
45705
45706         Add rawmemchr module, matching glibc.
45707         * modules/string (Makefile.am): New indicator.
45708         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
45709         * lib/string.in.h (rawmemchr): Declare when appropriate.
45710         * modules/rawmemchr: New file.
45711         * m4/rawmemchr.m4: Likewise.
45712         * lib/rawmemchr.c: Likewise.
45713         * modules/rawmemchr-tests: Likewise.
45714         * tests/test-rawmemchr.c: Likewise.
45715         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
45716         module.
45717         * modules/strchrnul (Depends-on): Add rawmemchr.
45718         * lib/strchrnul.c (strchrnul): Optimize a corner case.
45719
45720         Whitespace cleanup.
45721         * tests/test-strchrnul.c: Reindent.
45722         * lib/strchrnul.c: Likewise.
45723
45724         Optimize and test strchrnul.
45725         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
45726         * modules/strchrnul-tests: New file.
45727         * tests/test-strchrnul.c: Likewise.
45728
45729         Remove intprops dependency.
45730         * modules/memchr (Depends-on): Remove intprops.
45731         * modules/memrchr (Depends-on): Likewise.
45732         * modules/memchr2 (Depends-on): Likewise.
45733         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
45734         * lib/memrchr.c (__memrchr): Likewise.
45735         * lib/memrchr2.c (memchr2): Likewise.
45736         Reported by Simon Josefsson.
45737
45738 2008-04-28  Simon Josefsson  <simon@josefsson.org>
45739
45740         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
45741         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
45742
45743 2008-04-28  Simon Josefsson  <simon@josefsson.org>
45744
45745         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
45746
45747         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
45748
45749         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
45750
45751         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
45752         declarations.
45753         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
45754
45755         * m4/inet_pton.m4: Don't check for header files.
45756
45757         * m4/inet_ntop.m4: Don't check for header files.
45758
45759 2008-04-28  Simon Josefsson  <simon@josefsson.org>
45760
45761         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
45762         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
45763         trigger for cygwin).
45764         Reported by Bruno Haible  <bruno@clisp.org>.
45765
45766 2008-04-28  Bruno Haible  <bruno@clisp.org>
45767
45768         * doc/posix-functions/strdup.texi: Mention mingw problem.
45769
45770 2008-04-27  Bruno Haible  <bruno@clisp.org>
45771
45772         * modules/stat-time-tests (Depends-on): Add sleep.
45773         * tests/test-stat-time.c (force_unlink): New function.
45774         (cleanup): Use it.
45775         (test_mtime): Remove the ctime related tests.
45776         (test_ctime): New function, containing the ctime related tests.
45777         (main): Call test_ctime, except on native Windows platforms.
45778
45779 2008-04-27  Bruno Haible  <bruno@clisp.org>
45780
45781         * lib/rpmatch.c (rpmatch): Add some comments.
45782         Reported by James Youngman <jay@gnu.org>.
45783
45784 2008-04-27  Bruno Haible  <bruno@clisp.org>
45785
45786         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
45787         quiet NaNs.
45788
45789 2008-04-27  Bruno Haible  <bruno@clisp.org>
45790
45791         Make test-yesno.sh work on mingw.
45792         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
45793         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
45794         (main): Set stdin to binary mode.
45795         * modules/yesno-tests (Depends-on): Add binary-io.
45796
45797 2008-04-27  Bruno Haible  <bruno@clisp.org>
45798
45799         Fix 'isfinite' on x86, x86_64, ia64 platforms.
45800         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
45801         argument that lie outside the IEEE 854 domain.
45802         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
45803         (gl_ISFINITE): Use it.
45804         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
45805
45806 2008-04-27  Bruno Haible  <bruno@clisp.org>
45807
45808         Allow local renaming in config.h.
45809         * lib/memrchr.c (memrchr): Don't undefine outside libc.
45810
45811 2008-04-27  Bruno Haible  <bruno@clisp.org>
45812
45813         * lib/memchr.c (__memchr): Change type of 'i'.
45814         * lib/memchr2.c (memchr2): Likewise.
45815
45816 2008-04-26  Eric Blake  <ebb9@byu.net>
45817         and Bruno Haible  <bruno@clisp.org>
45818
45819         Optimize and test memrchr.
45820         * modules/memrchr (Depends-on): Add intprops.
45821         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
45822         * modules/memrchr-tests: New file.
45823         * tests/test-memrchr.c: New file.
45824
45825 2008-04-26  Bruno Haible  <bruno@clisp.org>
45826
45827         Add tentative support for DragonFly BSD.
45828         * lib/stdio-impl.h: Add macros for DragonFly BSD.
45829         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
45830         fp.
45831         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
45832         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
45833         * lib/fpurge.c (fpurge): Likewise.
45834         * lib/freadable.c (freaadable): Likewise.
45835         * lib/freadahead.c (freadahead): Likewise.
45836         * lib/freading.c (freading): Likewise.
45837         * lib/freadptr.c (freadptr): Likewise.
45838         * lib/freadseek.c (freadptrinc): Likewise.
45839         * lib/fseeko.c (fseeko): Likewise.
45840         * lib/fseterr.c (fseterr): Likewise.
45841         * lib/fwritable.c (fwritable): Likewise.
45842         * lib/fwriting.c (fwriting): Likewise.
45843
45844 2008-04-26  Bruno Haible  <bruno@clisp.org>
45845
45846         * lib/stdio-impl.h: New file.
45847         * lib/fbufmode.c: Include stdio-impl.h.
45848         (fbufmode): Use fp_, remove redundant #defines.
45849         * lib/fflush.c: Include stdio-impl.h.
45850         (clear_ungetc_buffer): Remove redundant #defines.
45851         * lib/fpurge.c: Include stdio-impl.h.
45852         (fpurge): Remove redundant #defines.
45853         * lib/freadable.c: Include stdio-impl.h.
45854         (freadable): Remove redundant #defines.
45855         * lib/freadahead.c: Include stdio-impl.h.
45856         (freadahead): Remove redundant #defines.
45857         * lib/freading.c: Include stdio-impl.h.
45858         (freading): Remove redundant #defines.
45859         * lib/freadptr.c: Include stdio-impl.h.
45860         (freadptr): Remove redundant #defines.
45861         * lib/freadseek.c: Include stdio-impl.h.
45862         (freadptrinc): Remove redundant #defines.
45863         * lib/fseeko.c: Include stdio-impl.h.
45864         (rpl_fseeko): Remove redundant #defines.
45865         * lib/fseterr.c: Include stdio-impl.h.
45866         (fseterr): Remove redundant #defines.
45867         * lib/fwritable.c: Include stdio-impl.h.
45868         (fwritable: Remove redundant #defines.
45869         * lib/fwriting.c: Include stdio-impl.h.
45870         (fwriting): Remove redundant #defines.
45871         * modules/fbufmode (Files): Add lib/stdio-impl.h.
45872         * modules/fflush (Files): Likewise.
45873         * modules/fpurge (Files): Likewise.
45874         * modules/freadable (Files): Likewise.
45875         * modules/freadahead (Files): Likewise.
45876         * modules/freading (Files): Likewise.
45877         * modules/freadptr (Files): Likewise.
45878         * modules/freadseek (Files): Likewise.
45879         * modules/fseeko (Files): Likewise.
45880         * modules/fseterr (Files): Likewise.
45881         * modules/fwritable (Files): Likewise.
45882         * modules/fwriting (Files): Likewise.
45883
45884 2008-04-26  Bruno Haible  <bruno@clisp.org>
45885
45886         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
45887         restore_seek_optimization, update_fpos_cache): New functions, extracted
45888         from rpl_fflush.
45889         (rpl_fflush): Use them.
45890         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
45891         (gl_REPLACE_FFLUSH): Use it.
45892
45893 2008-04-26  Bruno Haible  <bruno@clisp.org>
45894
45895         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
45896         on Solaris.
45897         * tests/test-xstrtoimax.sh: Likewise.
45898         * tests/test-xstrtoumax.sh: Likewise.
45899         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
45900
45901 2008-04-26  Bruno Haible  <bruno@clisp.org>
45902
45903         * modules/memchr-tests: New file.
45904         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
45905
45906 2008-04-26  Eric Blake  <ebb9@byu.net>
45907             Bruno Haible  <bruno@clisp.org>
45908
45909         * lib/memchr.c: Include intprops.h.
45910         (__memchr): Optimize parallel detection of matching bytes. Rename local
45911         variables. Add explanatory comments.
45912
45913 2008-04-26  Bruno Haible  <bruno@clisp.org>
45914
45915         Fix module 'memchr', broken since 2000-10-28.
45916         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
45917
45918 2008-04-26  Bruno Haible  <bruno@clisp.org>
45919
45920         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
45921         comments.
45922
45923 2008-04-25  Eric Blake  <ebb9@byu.net>
45924
45925         Use native fstatat on cygwin 1.7.0.
45926         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
45927         first.
45928
45929 2008-04-23  Eric Blake  <ebb9@byu.net>
45930
45931         Improve memchr2 performance.
45932         * lib/memchr2.c (memchr2): Further optimize parallel detection of
45933         NUL bytes.
45934         * modules/memchr2 (Depends-on): Use intprops.h.
45935
45936 2008-04-23  Simon Josefsson  <simon@josefsson.org>
45937
45938         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
45939         an inline function instead of a CPP macro.  Patch by Ben Pfaff
45940         <blp@cs.stanford.edu>.
45941
45942 2008-04-23  Simon Josefsson  <simon@josefsson.org>
45943
45944         * lib/arpa_inet.in.h: New file.
45945
45946         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
45947         (Makefile.am): Sed in substitute header file.
45948
45949         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
45950         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
45951
45952         * modules/inet_ntop (configure.ac): Use
45953         gl_ARPA_INET_MODULE_INDICATOR.
45954
45955         * modules/inet_pton (configure.ac): Use
45956         gl_ARPA_INET_MODULE_INDICATOR.
45957
45958 2008-04-22  Jim Meyering  <meyering@redhat.com>
45959
45960         * modules/verify (License): Re-license as LGPLv2+.
45961
45962 2008-04-22  Simon Josefsson  <simon@josefsson.org>
45963
45964         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
45965         parameter to void* as per POSIX standard (MinGW uses char*).
45966
45967 2008-04-21  Bruno Haible  <bruno@clisp.org>
45968
45969         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
45970         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
45971         Define to replacements if REPLACE_ISWCNTRL is 1.
45972         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
45973         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
45974         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
45975         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
45976         what it fixes.
45977         * doc/posix-functions/iswalpha.texi: Likewise.
45978         * doc/posix-functions/iswblank.texi: Likewise.
45979         * doc/posix-functions/iswcntrl.texi: Likewise.
45980         * doc/posix-functions/iswdigit.texi: Likewise.
45981         * doc/posix-functions/iswgraph.texi: Likewise.
45982         * doc/posix-functions/iswlower.texi: Likewise.
45983         * doc/posix-functions/iswprint.texi: Likewise.
45984         * doc/posix-functions/iswpunct.texi: Likewise.
45985         * doc/posix-functions/iswspace.texi: Likewise.
45986         * doc/posix-functions/iswupper.texi: Likewise.
45987         * doc/posix-functions/iswxdigit.texi: Likewise.
45988         Reported by Alain Guibert.
45989
45990 2008-04-21  Bruno Haible  <bruno@clisp.org>
45991
45992         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
45993         Patch by Alain Guibert.
45994
45995 2008-04-21  Bruno Haible  <bruno@clisp.org>
45996
45997         Fix test failures on mingw.
45998         * tests/test-xstrtol.c (print_no_progname): New function.
45999         (main): Install it in error_print_progname hook.
46000         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
46001         * tests/test-xstrtoimax.sh: Likewise.
46002         * tests/test-xstrtoumax.sh: Likewise.
46003
46004 2008-04-21  Bruno Haible  <bruno@clisp.org>
46005
46006         Fix test failure on mingw.
46007         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
46008
46009 2008-04-21  Bruno Haible  <bruno@clisp.org>
46010
46011         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
46012         Actually assign a value.
46013
46014 2008-04-20  Bruno Haible  <bruno@clisp.org>
46015
46016         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
46017         take 2.
46018         * lib/canonicalize.c (canonicalize_file_name): Elide if the
46019         'canonicalize-lgpl' module is also used.
46020         * lib/canonicalize-lgpl.c: Undo last change.
46021         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
46022
46023 2008-04-20  Bruno Haible  <bruno@clisp.org>
46024
46025         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
46026         config.h. Provide _mkdir based fallback for mingw.
46027         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
46028         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
46029         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
46030         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
46031         rather than defining mkdir in config.h.
46032         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
46033         (gl_SYS_STAT_H_DEFAULTS): New macro.
46034         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
46035         HAVE_IO_H any more.
46036         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
46037         HAVE_DECL_MKDIR and HAVE_IO_H.
46038
46039 2008-04-20  Bruno Haible  <bruno@clisp.org>
46040
46041         * lib/isapipe.c: Port to native Windows platforms.
46042
46043 2008-04-20  Bruno Haible  <bruno@clisp.org>
46044
46045         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
46046
46047 2008-04-21  Eric Blake  <ebb9@byu.net>
46048
46049         Work around preprocessors that don't handle UINTMAX_MAX.
46050         * lib/memchr2.c (memchr2): Avoid embedded #if.
46051         Reported by Alain Guibert, fix suggested by Bruno Haible.
46052
46053 2008-04-21  Simon Josefsson  <simon@josefsson.org>
46054
46055         * doc/posix-functions/strftime.texi (strftime): Explain better
46056         Windows incompatibility.  Suggested by Micah Cowan
46057         <micah@cowan.name>.
46058
46059 2008-04-20  Bruno Haible  <bruno@clisp.org>
46060
46061         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
46062         unistr/u8-mblen.
46063
46064 2008-04-20  Bruno Haible  <bruno@clisp.org>
46065
46066         Fix test failure on platforms with non-GNU iconv.
46067         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
46068         (U_TO_U8): Use it, rather than u16_to_u8.
46069         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
46070         units at the end of the input string.
46071         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
46072
46073 2008-04-20  Bruno Haible  <bruno@clisp.org>
46074
46075         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
46076         when the resulting length is 0.
46077         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
46078
46079 2008-04-20  Bruno Haible  <bruno@clisp.org>
46080
46081         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
46082         works.
46083         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
46084
46085 2008-04-20  Bruno Haible  <bruno@clisp.org>
46086
46087         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
46088         * modules/tsearch-tests (configure.ac): Test for initstate function.
46089
46090 2008-04-20  Bruno Haible  <bruno@clisp.org>
46091
46092         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
46093         for nlink_t if missing.
46094         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
46095
46096 2008-04-19  Bruno Haible  <bruno@clisp.org>
46097
46098         Work around snprintf bug on Linux libc5.
46099         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
46100         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
46101         gl_SNPRINTF_SIZE1.
46102         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
46103         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
46104         that test failed.
46105         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
46106         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
46107         * modules/snprintf (Files): Add m4/printf.m4.
46108         * modules/vsnprintf (Files): Likewise.
46109         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
46110         * doc/posix-functions/vsnprintf.texi: Likewise.
46111
46112 2008-04-19  Bruno Haible  <bruno@clisp.org>
46113
46114         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
46115         from 0.0058 to less than 10^-7.
46116
46117 2008-04-19  Bruno Haible  <bruno@clisp.org>
46118
46119         Fix rounding when a precision is given.
46120         * lib/vasnprintf.c (is_borderline): New function.
46121         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
46122         9...9x.
46123         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
46124         %e, %g.
46125         * tests/test-vasprintf-posix.c (test_function): Likewise.
46126         * tests/test-snprintf-posix.h (test_function): Likewise.
46127         * tests/test-sprintf-posix.h (test_function): Likewise.
46128         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
46129         * tests/test-printf-posix.h (test_function): Likewise.
46130         * tests/test-printf-posix.output: Update.
46131         Reported by John Darrington <john@darrington.wattle.id.au> via
46132         Ben Pfaff <blp@cs.stanford.edu>.
46133
46134 2008-04-18  Simon Josefsson  <simon@josefsson.org>
46135
46136         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
46137         Suggested by Bruno Haible <bruno@clisp.org>.
46138
46139 2008-04-17  Bruno Haible  <bruno@clisp.org>
46140
46141         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
46142         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
46143         implementation.
46144         Patch by Bruce Merry <bmerry@gmail.com>.
46145
46146 2008-04-17  Simon Josefsson  <simon@josefsson.org>
46147
46148         * doc/posix-functions/strftime.texi (strftime): Mention that %e
46149         doesn't work under Windows.
46150
46151 2008-04-16  Bruno Haible  <bruno@clisp.org>
46152
46153         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
46154         New macros.
46155         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
46156         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
46157         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
46158         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
46159         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
46160         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
46161         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
46162         macros.
46163         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
46164         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
46165         Northern Sotho, Uighur.
46166
46167 2008-04-16  Bruno Haible  <bruno@clisp.org>
46168
46169         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
46170         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
46171         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
46172         Reported by Daniel Bergström <daniel@octocode.com>.
46173
46174 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
46175             Bruno Haible  <bruno@clisp.org>
46176
46177         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
46178         function.
46179         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
46180         New functions, mostly extracted from gl_locale_name_default.
46181         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
46182
46183 2008-04-16  Eric Blake  <ebb9@byu.net>
46184
46185         Adjust strtod detection to catch glibc 2.7 bug.
46186         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
46187         Reported by John Gatewood Ham.
46188
46189 2008-04-16  Bruno Haible  <bruno@clisp.org>
46190
46191         Add tentative support for Linux libc5.
46192         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
46193         * lib/fpurge.c (fpurge): Likewise.
46194         * lib/freadable.c (freadable): Likewise.
46195         * lib/freadahead.c (freadahead): Likewise.
46196         * lib/freading.c (freading): Likewise.
46197         * lib/freadptr.c (freadptr): Likewise.
46198         * lib/freadseek.c (freadptrinc): Likewise.
46199         * lib/fseeko.c (rpl_fseeko): Likewise.
46200         * lib/fseterr.c (fseterr): Likewise.
46201         * lib/fwritable.c (fwritable): Likewise.
46202         * lib/fwriting.c (fwriting): Likewise.
46203         Reported by Alain Guibert <alguibert+bts@free.fr>.
46204
46205 2008-04-15  Bruno Haible  <bruno@clisp.org>
46206
46207         * modules/mathl (configure.ac): Define module indicator.
46208
46209 2008-04-15  Bruno Haible  <bruno@clisp.org>
46210
46211         * lib/logl.c (logl): Remove unused variables.
46212
46213 2008-04-15  Bruno Haible  <bruno@clisp.org>
46214
46215         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
46216         fails.
46217
46218 2008-04-15  Bruno Haible  <bruno@clisp.org>
46219
46220         * lib/trim.c (trim2): Fix argument of isspace() macro.
46221
46222 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
46223
46224         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
46225         to 0.
46226         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
46227
46228 2008-04-14  Bruno Haible  <bruno@clisp.org>
46229
46230         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
46231         AC_LANG_PROGRAM argument.
46232         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
46233         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
46234         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
46235         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
46236         * m4/math_h.m4 (gl_MATH_H): Likewise.
46237         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
46238         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
46239         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
46240         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
46241         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
46242         * m4/regex.m4 (gl_REGEX): Likewise.
46243         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
46244         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
46245         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
46246         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
46247         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
46248         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
46249         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
46250         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
46251
46252 2008-04-14  Jim Meyering  <meyering@redhat.com>
46253
46254         test-strtod: fix typos: s/abs/fabs/
46255         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
46256
46257 2008-04-13  Bruno Haible  <bruno@clisp.org>
46258
46259         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
46260         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
46261         module is also used and while not building the reloc-wrapper.
46262
46263 2008-04-13  Bruno Haible  <bruno@clisp.org>
46264
46265         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
46266
46267 2008-04-13  Bruno Haible  <bruno@clisp.org>
46268
46269         Fix AIX compilation failure introduced on 2008-04-02.
46270         * tests/test-frexp.c (exp): Undefine before redefining.
46271         * tests/test-frexpl.c (exp): Likewise.
46272
46273 2008-04-13  Bruno Haible  <bruno@clisp.org>
46274
46275         Work around a HP-UX stdio bug.
46276         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
46277         * tests/test-ftello.c (main): Likewise.
46278         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
46279         * doc/posix-functions/ftello.texi: Likewise.
46280
46281 2008-04-13  Bruno Haible  <bruno@clisp.org>
46282
46283         Make test-signbit pass on HP-UX/hppa.
46284         * tests/test-signbit.c (minus_zerol): New variable.
46285         (test_signbitl): Use it.
46286
46287 2008-04-13  Bruno Haible  <bruno@clisp.org>
46288
46289         Make truncl work on OSF/1 4.0.
46290         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
46291         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
46292         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
46293         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
46294         HAVE_DECL_TRUNCL.
46295         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
46296         HAVE_DECL_TRUNCL.
46297         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
46298
46299 2008-04-13  Bruno Haible  <bruno@clisp.org>
46300
46301         * lib/unictype.h: Remove trailing comma from enumeration definitions.
46302
46303 2008-04-13  Bruno Haible  <bruno@clisp.org>
46304
46305         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
46306         expression, so as to avoid HP-UX 11 cc compiler bug.
46307
46308 2008-04-13  Bruno Haible  <bruno@clisp.org>
46309
46310         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
46311
46312 2008-04-13  Bruno Haible  <bruno@clisp.org>
46313
46314         * lib/git-merge-changelog.c: Remove empty declaration outside of
46315         functions.
46316
46317 2008-04-13  Bruno Haible  <bruno@clisp.org>
46318
46319         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
46320
46321 2008-04-13  Bruno Haible  <bruno@clisp.org>
46322
46323         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
46324         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
46325         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
46326         also if it exists but lacks definitions of the SHUT_* macros.
46327         * modules/sys_socket (Description): Update.
46328         Reported by Elbert Pol <e.pol@chello.nl>.
46329
46330 2008-04-13  Bruno Haible  <bruno@clisp.org>
46331
46332         * lib/localcharset.c (OS2): Don't redefine if already defined.
46333         Reported by Elbert Pol <e.pol@chello.nl>.
46334
46335 2008-04-13  Bruno Haible  <bruno@clisp.org>
46336
46337         * lib/binary-io.h [__EMX__]: Include <io.h>.
46338         Reported by Elbert Pol <e.pol@chello.nl>.
46339
46340 2008-04-12  Bruno Haible  <bruno@clisp.org>
46341
46342         * lib/fpucw.h: Enable the definitions also for x86_64.
46343         Needed for NetBSD/x86_64.
46344         Reported by Thomas Klausner <tk@giga.or.at>.
46345
46346 2008-04-12  Bruno Haible  <bruno@clisp.org>
46347
46348         * tests/test-strtod.c: Include isnand.h.
46349         (main): Use isnand instead of isnan.
46350         Reported by Jim Meyering.
46351
46352 2008-04-12  Bruno Haible  <bruno@clisp.org>
46353
46354         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
46355         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
46356
46357 2008-04-12  Jim Meyering  <meyering@redhat.com>
46358
46359         * m4/math_h.m4 (gl_MATH_H): Fix typos.
46360
46361 2008-04-12  Bruno Haible  <bruno@clisp.org>
46362
46363         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
46364         Reported by Elbert Pol <e.pol@chello.nl>.
46365
46366 2008-04-12  Eric Blake  <ebb9@byu.net>
46367
46368         Work around Solaris 10 math.h bug.
46369         * m4/math_h.m4 (gl_MATH_H): Check for bug.
46370         (gl_MATH_H_DEFAULTS): Set up default.
46371         * modules/math (Makefile.am): Replace new indicators.
46372         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
46373         * tests/test-math.c (main): Test this.
46374         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
46375         * doc/posix-headers/math.texi (math.h): Mention bug.
46376         Reported by Nelson H. F. Beebe and Jim Meyering.
46377
46378 2008-04-11  Bruno Haible  <bruno@clisp.org>
46379
46380         Adapt to future versions of Apple GCC.
46381         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
46382         Reported by Peter O'Gorman <peter@pogma.com>.
46383
46384 2008-04-11  Bruno Haible  <bruno@clisp.org>
46385
46386         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
46387
46388 2008-04-11  Bruno Haible  <bruno@clisp.org>
46389
46390         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
46391
46392         * modules/getaddrinfo-tests (Makefile.am): Define
46393         test_getaddrinfo_LDADD.
46394
46395 2008-04-11  Bruno Haible  <bruno@clisp.org>
46396
46397         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
46398         (init): Fix syntax error.
46399         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
46400         is declared.
46401
46402 2008-04-11  Bruno Haible  <bruno@clisp.org>
46403
46404         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
46405         * modules/glob (Depends-on): Add stdbool.
46406
46407 2008-04-11  Bruno Haible  <bruno@clisp.org>
46408
46409         * lib/trim.c: Include <string.h>.
46410
46411 2008-04-11  Eric Blake  <ebb9@byu.net>
46412
46413         Avoid compile failure on OS/2.
46414         * lib/regex_internal.h (internal_function): Disable optimization
46415         on OS/2 (__EMX__), where it caused compiler error.
46416         Reported by Elbert Pol.
46417
46418 2008-04-11  Bruno Haible  <bruno@clisp.org>
46419
46420         Flush the standard error stream before aborting. Needed on mingw.
46421         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
46422         * tests/test-array_list.c (ASSERT): Likewise.
46423         * tests/test-array_oset.c (ASSERT): Likewise.
46424         * tests/test-avltree_list.c (ASSERT): Likewise.
46425         * tests/test-avltree_oset.c (ASSERT): Likewise.
46426         * tests/test-avltreehash_list.c (ASSERT): Likewise.
46427         * tests/test-binary-io.c (ASSERT): Likewise.
46428         * tests/test-byteswap.c (ASSERT): Likewise.
46429         * tests/test-c-ctype.c (ASSERT): Likewise.
46430         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
46431         * tests/test-c-strcasestr.c (ASSERT): Likewise.
46432         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
46433         * tests/test-c-strstr.c (ASSERT): Likewise.
46434         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
46435         * tests/test-canonicalize.c (ASSERT): Likewise.
46436         * tests/test-carray_list.c (ASSERT): Likewise.
46437         * tests/test-ceilf1.c (ASSERT): Likewise.
46438         * tests/test-ceilf2.c (ASSERT): Likewise.
46439         * tests/test-ceill.c (ASSERT): Likewise.
46440         * tests/test-count-one-bits.c (ASSERT): Likewise.
46441         * tests/test-fbufmode.c (ASSERT): Likewise.
46442         * tests/test-fflush2.c (ASSERT): Likewise.
46443         * tests/test-floorf1.c (ASSERT): Likewise.
46444         * tests/test-floorf2.c (ASSERT): Likewise.
46445         * tests/test-floorl.c (ASSERT): Likewise.
46446         * tests/test-fopen.c (ASSERT): Likewise.
46447         * tests/test-fpending.c (ASSERT): Likewise.
46448         * tests/test-fprintf-posix.c (ASSERT): Likewise.
46449         * tests/test-fpurge.c (ASSERT): Likewise.
46450         * tests/test-freadable.c (ASSERT): Likewise.
46451         * tests/test-freadahead.c (ASSERT): Likewise.
46452         * tests/test-freading.c (ASSERT): Likewise.
46453         * tests/test-freadptr.c (ASSERT): Likewise.
46454         * tests/test-freadptr2.c (ASSERT): Likewise.
46455         * tests/test-freadseek.c (ASSERT): Likewise.
46456         * tests/test-freopen.c (ASSERT): Likewise.
46457         * tests/test-frexp.c (ASSERT): Likewise.
46458         * tests/test-frexpl.c (ASSERT): Likewise.
46459         * tests/test-fseek.c (ASSERT): Likewise.
46460         * tests/test-fseeko.c (ASSERT): Likewise.
46461         * tests/test-fstrcmp.c (ASSERT): Likewise.
46462         * tests/test-ftell.c (ASSERT): Likewise.
46463         * tests/test-ftello.c (ASSERT): Likewise.
46464         * tests/test-func.c (ASSERT): Likewise.
46465         * tests/test-fwritable.c (ASSERT): Likewise.
46466         * tests/test-fwriting.c (ASSERT): Likewise.
46467         * tests/test-getdelim.c (ASSERT): Likewise.
46468         * tests/test-getline.c (ASSERT): Likewise.
46469         * tests/test-i-ring.c (ASSERT): Likewise.
46470         * tests/test-iconv-utf.c (ASSERT): Likewise.
46471         * tests/test-iconv.c (ASSERT): Likewise.
46472         * tests/test-isfinite.c (ASSERT): Likewise.
46473         * tests/test-isnand.c (ASSERT): Likewise.
46474         * tests/test-isnanf.c (ASSERT): Likewise.
46475         * tests/test-isnanl.h (ASSERT): Likewise.
46476         * tests/test-ldexpl.c (ASSERT): Likewise.
46477         * tests/test-linked_list.c (ASSERT): Likewise.
46478         * tests/test-linkedhash_list.c (ASSERT): Likewise.
46479         * tests/test-localename.c (ASSERT): Likewise.
46480         * tests/test-lseek.c (ASSERT): Likewise.
46481         * tests/test-mbscasecmp.c (ASSERT): Likewise.
46482         * tests/test-mbscasestr1.c (ASSERT): Likewise.
46483         * tests/test-mbscasestr2.c (ASSERT): Likewise.
46484         * tests/test-mbscasestr3.c (ASSERT): Likewise.
46485         * tests/test-mbscasestr4.c (ASSERT): Likewise.
46486         * tests/test-mbschr.c (ASSERT): Likewise.
46487         * tests/test-mbscspn.c (ASSERT): Likewise.
46488         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
46489         * tests/test-mbspbrk.c (ASSERT): Likewise.
46490         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
46491         * tests/test-mbsrchr.c (ASSERT): Likewise.
46492         * tests/test-mbsspn.c (ASSERT): Likewise.
46493         * tests/test-mbsstr1.c (ASSERT): Likewise.
46494         * tests/test-mbsstr2.c (ASSERT): Likewise.
46495         * tests/test-mbsstr3.c (ASSERT): Likewise.
46496         * tests/test-memchr2.c (ASSERT): Likewise.
46497         * tests/test-memmem.c (ASSERT): Likewise.
46498         * tests/test-open.c (ASSERT): Likewise.
46499         * tests/test-printf-frexp.c (ASSERT): Likewise.
46500         * tests/test-printf-frexpl.c (ASSERT): Likewise.
46501         * tests/test-printf-posix.c (ASSERT): Likewise.
46502         * tests/test-quotearg.c (ASSERT): Likewise.
46503         * tests/test-rbtree_list.c (ASSERT): Likewise.
46504         * tests/test-rbtree_oset.c (ASSERT): Likewise.
46505         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
46506         * tests/test-round1.c (ASSERT): Likewise.
46507         * tests/test-roundf1.c (ASSERT): Likewise.
46508         * tests/test-roundl.c (ASSERT): Likewise.
46509         * tests/test-signbit.c (ASSERT): Likewise.
46510         * tests/test-sleep.c (ASSERT): Likewise.
46511         * tests/test-snprintf-posix.c (ASSERT): Likewise.
46512         * tests/test-snprintf.c (ASSERT): Likewise.
46513         * tests/test-sprintf-posix.c (ASSERT): Likewise.
46514         * tests/test-stat-time.c (ASSERT): Likewise.
46515         * tests/test-strcasestr.c (ASSERT): Likewise.
46516         * tests/test-strerror.c (ASSERT): Likewise.
46517         * tests/test-striconv.c (ASSERT): Likewise.
46518         * tests/test-striconveh.c (ASSERT): Likewise.
46519         * tests/test-striconveha.c (ASSERT): Likewise.
46520         * tests/test-strsignal.c (ASSERT): Likewise.
46521         * tests/test-strstr.c (ASSERT): Likewise.
46522         * tests/test-strtod.c (ASSERT): Likewise.
46523         * tests/test-trunc1.c (ASSERT): Likewise.
46524         * tests/test-trunc2.c (ASSERT): Likewise.
46525         * tests/test-truncf1.c (ASSERT): Likewise.
46526         * tests/test-truncf2.c (ASSERT): Likewise.
46527         * tests/test-truncl.c (ASSERT): Likewise.
46528         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
46529         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
46530         * tests/test-vasnprintf.c (ASSERT): Likewise.
46531         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
46532         * tests/test-vasprintf.c (ASSERT): Likewise.
46533         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
46534         * tests/test-vprintf-posix.c (ASSERT): Likewise.
46535         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
46536         * tests/test-vsnprintf.c (ASSERT): Likewise.
46537         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
46538         * tests/test-wcwidth.c (ASSERT): Likewise.
46539         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
46540         * tests/test-xprintf-posix.c (ASSERT): Likewise.
46541         * tests/test-xvasprintf.c (ASSERT): Likewise.
46542         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
46543         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
46544         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
46545         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
46546         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
46547         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
46548         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
46549         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
46550         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
46551         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
46552         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
46553         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
46554         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
46555         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
46556         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
46557         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
46558         * tests/unictype/test-block_list.c (ASSERT): Likewise.
46559         * tests/unictype/test-block_of.c (ASSERT): Likewise.
46560         * tests/unictype/test-block_test.c (ASSERT): Likewise.
46561         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
46562         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
46563         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
46564         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
46565         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
46566         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
46567         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
46568         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
46569         * tests/unictype/test-combining.c (ASSERT): Likewise.
46570         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
46571         * tests/unictype/test-digit.c (ASSERT): Likewise.
46572         * tests/unictype/test-mirror.c (ASSERT): Likewise.
46573         * tests/unictype/test-numeric.c (ASSERT): Likewise.
46574         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
46575         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
46576         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
46577         * tests/unictype/test-scripts.c (ASSERT): Likewise.
46578         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
46579         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
46580         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
46581         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
46582         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
46583         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
46584         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
46585         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
46586         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
46587         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
46588         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
46589         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
46590         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
46591         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
46592         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
46593         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
46594         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
46595         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
46596         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
46597         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
46598         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
46599         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
46600         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
46601         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
46602         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
46603         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
46604         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
46605         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
46606         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
46607         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
46608         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
46609         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
46610         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
46611         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
46612         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
46613         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
46614         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
46615         Reported by Eric Blake.
46616
46617 2008-04-11  Bruno Haible  <bruno@clisp.org>
46618
46619         * lib/wchar.in.h: Tweak comment.
46620
46621 2008-04-11  Bruno Haible  <bruno@clisp.org>
46622
46623         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
46624         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
46625         gl_COMMON.
46626         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
46627
46628 2008-04-11  Bruno Haible  <bruno@clisp.org>
46629
46630         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
46631
46632 2008-04-11  Simon Josefsson  <simon@josefsson.org>
46633
46634         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
46635         of attempting to use non-existing /dev/*random.  Based on patch
46636         from Adam Strzelecki <ono@java.pl> in
46637         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
46638
46639 2008-04-08  Bruno Haible  <bruno@clisp.org>
46640
46641         Add tentative support for emx+gcc.
46642         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
46643         * lib/fpurge.c (fpurge): Likewise.
46644         * lib/freadable.c (freadable): Likewise.
46645         * lib/freadahead.c (freadahead): Likewise.
46646         * lib/freading.c (freading): Likewise.
46647         * lib/freadptr.c (freadptr): Likewise.
46648         * lib/freadseek.c (freadptrinc): Likewise.
46649         * lib/fseeko.c (rpl_fseeko): Likewise.
46650         * lib/fseterr.c (fseterr): Likewise.
46651         * lib/fwritable.c (fwritable): Likewise.
46652         * lib/fwriting.c (fwriting): Likewise.
46653         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
46654
46655 2008-04-09  Eric Blake  <ebb9@byu.net>
46656
46657         Avoid some autoconf warnings.
46658         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
46659         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
46660         * m4/afs.m4 (gl_AFS): Likewise.
46661         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
46662         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
46663         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
46664         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
46665         (gl_INTEGER_TYPE_SUFFIX): Likewise.
46666         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
46667         (AC_CHECK_DECLS_ONCE): Likewise.
46668         Rename file...
46669         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
46670         gnulib-tool requires autoconf 2.59 or better.
46671         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
46672
46673 2008-04-08  Eric Blake  <ebb9@byu.net>
46674
46675         Use 'git describe --match' if present (added in git 1.5.5).
46676         * build-aux/git-version-gen: Limit result to tags that match 'v*'
46677         if possible.
46678
46679 2008-04-08  Bruno Haible  <bruno@clisp.org>
46680
46681         Add tentative support for OpenServer.
46682         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
46683         _ptr, _cnt.
46684         * lib/fpurge.c (fpurge): Likewise.
46685         * lib/freadable.c (freadable): Likewise.
46686         * lib/freadahead.c (freadahead): Likewise.
46687         * lib/freading.c (freading): Likewise.
46688         * lib/freadptr.c (freadptr): Likewise.
46689         * lib/freadseek.c (freadptrinc): Likewise.
46690         * lib/fseeko.c (rpl_fseeko): Likewise.
46691         * lib/fseterr.c (fseterr): Likewise.
46692         * lib/fwritable.c (fwritable): Likewise.
46693         * lib/fwriting.c (fwriting): Likewise.
46694         Reported by Roger Cornelius <rac@tenzing.org> and
46695         Brian K. White <brian@aljex.com>.
46696
46697 2008-04-06  Jim Meyering  <meyering@redhat.com>
46698
46699         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
46700
46701 2008-04-06  Bruno Haible  <bruno@clisp.org>
46702
46703         Avoid possible error with non-ASCII bytes in UTF-8 locales.
46704         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
46705         * tests/test-printf-posix.sh: Likewise.
46706         * tests/test-vfprintf-posix.sh: Likewise.
46707         * tests/test-vprintf-posix.sh: Likewise.
46708         * tests/test-xprintf-posix.sh: Likewise.
46709
46710 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46711
46712         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
46713         hide error from 'ls', needed on OS/2.
46714         Report by Elbert Pol <elbert.pol@gmail.com>.
46715
46716 2008-04-04  Eric Blake  <ebb9@byu.net>
46717
46718         Make test-fseeko.c failures meaningful.
46719         * tests/test-fseeko.c: Print line number on failure.
46720         * tests/test-fseek.c: Likewise.
46721         Reported by Nelson H. F. Beebe.
46722
46723         Improve strtod bug detection check.
46724         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
46725         required for Solaris 10.
46726         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
46727
46728 2008-04-04  Bruno Haible  <bruno@clisp.org>
46729
46730         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
46731         by m4/setenv.m4.
46732
46733 2008-04-03  Eric Blake  <ebb9@byu.net>
46734
46735         Ensure sane .version contents.
46736         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
46737         version string.
46738         * build-aux/git-version-gen: Improve documentation.
46739
46740         Make GNU make output nicer.
46741         * top/GNUmakefile [!_have-Makefile]: Add dependency on
46742         MAKECMDGOALS to enforce message for all command line targets.  Set
46743         srcdir for use in maint.mk.
46744
46745         Another maintainer tweak.
46746         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
46747         a target that regenerates version.
46748
46749 2008-04-03  Jim Meyering  <meyering@redhat.com>
46750
46751         vc-list-files: don't cause coreutils "make po-check" failure
46752         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
46753
46754 2008-04-03  Eric Blake  <ebb9@byu.net>
46755
46756         Allow VPATH usage of vc-list-files.
46757         * build-aux/vc-list-files (scriptversion): Add timestamp.
46758         (options): Add --help, --version, -C.
46759         (CVS): Support installed cvsu.
46760
46761 2008-04-02  Bruno Haible  <bruno@clisp.org>
46762
46763         Avoid some "statement with no effect" warnings from gcc.
46764         * tests/test-wctype.c (main): Explicitly ignore unused values.
46765         Reported by Jim Meyering.
46766
46767 2008-04-02  Jim Meyering  <meyering@redhat.com>
46768
46769         Avoid some warnings from "gcc -Wshadow".
46770         * tests/test-frexp.c (exp): Define to a different identifier.
46771         * tests/test-frexpl.c (exp): Likewise.
46772
46773 2008-04-03  Jim Meyering  <meyering@redhat.com>
46774
46775         bootstrap: remove dangling *.[ch] symlinks from lib
46776         * build-aux/bootstrap [dangling symlink removal]: Move find's
46777         -depth option to precede all others, to avoid a warning.
46778         Remove *.[ch] files too, and from "$source_base" (usually lib/).
46779
46780 2008-04-02  Bruno Haible  <bruno@clisp.org>
46781
46782         Avoid some warnings from "gcc -Wshadow".
46783         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
46784         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
46785         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
46786         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
46787         Reported by Jim Meyering.
46788
46789 2008-04-01  Bruno Haible  <bruno@clisp.org>
46790
46791         Fix test to work on IRIX 6.5 with cc.
46792         * tests/test-math.c (numeric_equal): New function.
46793         (main): Use it.
46794
46795 2008-04-01  Bruno Haible  <bruno@clisp.org>
46796
46797         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
46798
46799 2008-04-01  Bruno Haible  <bruno@clisp.org>
46800
46801         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
46802         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
46803         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
46804         (Depends-on): Remove math.
46805
46806         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
46807         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
46808         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
46809         (Depends-on): Remove math.
46810
46811         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
46812         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
46813         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
46814         (Depends-on): Remove math.
46815         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
46816         (Depends-on): Remove math.
46817
46818         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
46819         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
46820         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
46821         (Depends-on): Remove math.
46822         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
46823         (Depends-on): Remove math.
46824
46825         * tests/test-round1.c: Include nan.h.
46826         (main): Use NaNd instead of NAN.
46827         * modules/round-tests (Files): Add tests/nan.h.
46828
46829         * tests/test-trunc1.c: Include nan.h.
46830         (main): Use NaNd instead of NAN.
46831         * modules/trunc-tests (Files): Add tests/nan.h.
46832
46833         * tests/test-roundf1.c: Include nan.h.
46834         (main): Use NaNf instead of NAN.
46835         * modules/roundf-tests (Files): Add tests/nan.h.
46836
46837         * tests/test-truncf1.c: Include nan.h.
46838         (main): Use NaNf instead of NAN.
46839         * modules/truncf-tests (Files): Add tests/nan.h.
46840
46841         * tests/test-ceilf1.c: Include nan.h.
46842         (main): Use NaNf instead of NAN.
46843         * modules/ceilf-tests (Files): Add tests/nan.h.
46844
46845         * tests/test-floorf1.c: Include nan.h.
46846         (main): Use NaNf instead of NAN.
46847         * modules/floorf-tests (Files): Add tests/nan.h.
46848
46849         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
46850         (main): Use NaNf instead of NAN.
46851         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
46852
46853         * tests/test-isnand.c: Include nan.h instead of <math.h>.
46854         (main): Use NaNd instead of NAN.
46855         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
46856
46857         * tests/test-frexp.c: Include nan.h.
46858         (main): Use NaNd instead of NAN.
46859         * modules/frexp-tests (Files): Add tests/nan.h.
46860
46861         * lib/isnan.c: Don't include <math.h>.
46862         (FUNC): Don't use NAN macro.
46863         * modules/isnand-nolibm (Depends-on): Remove math.
46864         * modules/isnanf-nolibm (Depends-on): Remove math.
46865         * modules/isnanl (Depends-on): Remove math.
46866         * modules/isnanl-nolibm (Depends-on): Remove math.
46867
46868         * tests/nan.h: New file.
46869
46870 2008-04-01  Eric Blake  <ebb9@byu.net>
46871
46872         Fix typos.
46873         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
46874         values to be the right type.
46875
46876         For now, cater to gnulib strtod inaccuracies.
46877         * tests/test-strtod.c (main): Allow 1-ulp error on expected
46878         fractional results.  While not as nice from a QoI perspective, it
46879         is a quicker patch than correctly implementing decimal to binary
46880         rounding.
46881
46882 2008-03-31  Eric Blake  <ebb9@byu.net>
46883
46884         Guarantee a definition of NAN.
46885         * lib/math.in.h (NAN): Define if missing.
46886         * tests/test-math.c (main): Test it.
46887         * doc/posix-headers/math.texi (math.h): Document this.
46888         * lib/isnan.c (rpl_isnand): Use it.
46889         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
46890         * tests/test-floorf1.c (NaN): Likewise.
46891         * tests/test-frexp.c (NaN): Likewise.
46892         * tests/test-isnand.c (NaN): Likewise.
46893         * tests/test-isnanf.c (NaN): Likewise.
46894         * tests/test-round1.c (NaN): Likewise.
46895         * tests/test-roundf1.c (NaN): Likewise.
46896         * tests/test-snprintf-posix.h (NaN): Likewise.
46897         * tests/test-sprintf-posix.h (NaN): Likewise.
46898         * tests/test-trunc1.c (NaN): Likewise.
46899         * tests/test-truncf1.c (NaN): Likewise.
46900         * tests/test-vasnprintf-posix.c (NaN): Likewise.
46901         * tests/test-vasprintf-posix.c (NaN): Likewise.
46902         * modules/isnand-nolibm (Depends-on): Add math.
46903         * modules/isnanf-nolibm (Depends-on): Likewise.
46904         * modules/isnanl (Depends-on): Likewise.
46905         * modules/isnanl-nolibm (Depends-on): Likewise.
46906         * modules/snprintf-posix-tests (Depends-on): Likewise.
46907         * modules/sprintf-posix-tests (Depends-on): Likewise.
46908         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
46909         * modules/vsprintf-posix-tests (Depends-on): Likewise.
46910         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
46911         * modules/vasprintf-posix-tests (Depends-on): Likewise.
46912
46913 2008-03-31  Bruno Haible  <bruno@clisp.org>
46914
46915         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
46916         * doc/posix-functions/strtod.texi: Likewise.
46917
46918 2008-03-31  Bruno Haible  <bruno@clisp.org>
46919
46920         * tests/test-strtod.c (main): Don't use C99 syntax.
46921
46922 2008-03-31  Bruno Haible  <bruno@clisp.org>
46923
46924         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
46925         Reported by Eric Blake.
46926
46927 2008-03-31  Jim Meyering  <meyering@redhat.com>
46928
46929         Don't compare actual signbit return values.
46930         * tests/test-strtod.c (main): Rather, compare only their
46931         zero/non-zero nature.
46932
46933 2008-03-31  Eric Blake  <ebb9@byu.net>
46934
46935         More strtod documentation.
46936         * doc/posix-functions/strtod.texi (strtod): Interpret more test
46937         failures as distinct bugs.
46938
46939 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
46940
46941         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
46942         Problem reported by Erik Benada in
46943         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
46944
46945 2008-03-30  Bruno Haible  <bruno@clisp.org>
46946
46947         * tests/test-strtod.c: Add comments about which assertion fails on which
46948         platform.
46949         * doc/posix-functions/strtod.texi: Add info about many more platforms.
46950
46951 2008-03-30  Eric Blake  <ebb9@byu.net>
46952
46953         Test signbit behavior on zeros.
46954         * tests/test-signbit.c (test_signbitf): Add tests for zero.
46955         (test_signbitd, test_signbitl): Likewise.
46956
46957         More strtod touchups.
46958         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
46959         sign of negative underflow, for now.  Use .5, not .1.
46960         * doc/posix-functions/strtod.texi (strtod): Mention these
46961         limitations.
46962         Reported by Jim Meyering.
46963
46964 2008-03-30  Bruno Haible  <bruno@clisp.org>
46965
46966         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
46967         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
46968
46969 2008-03-30  Bruno Haible  <bruno@clisp.org>
46970
46971         Avoid failure when attempting to return empty iconv results on some
46972         platforms.
46973         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
46974         allocation, don't report ENOMEM when the resulting string is empty.
46975
46976 2008-03-30  Bruno Haible  <bruno@clisp.org>
46977
46978         Fix buffer overrun.
46979         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
46980         Don't consider the width for tmp_length. Check count against tmp_length
46981         before doing the padding. Ensure enough allocation during padding.
46982
46983 2008-03-30  Eric Blake  <ebb9@byu.net>
46984
46985         strtod touchups.
46986         * lib/strtod.c (strtod): Avoid compiler warnings.
46987         Reported by Jim Meyering.
46988
46989 2008-03-30  Bruno Haible  <bruno@clisp.org>
46990
46991         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
46992         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
46993         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
46994         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
46995         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
46996         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
46997         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
46998         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
46999
47000         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
47001         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
47002         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
47003         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
47004         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
47005         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
47006         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
47007         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
47008
47009         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
47010         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
47011         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
47012         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
47013         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
47014         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
47015         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
47016         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
47017
47018         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
47019         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
47020
47021         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
47022         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
47023
47024         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
47025         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
47026
47027         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
47028         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
47029         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
47030
47031         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
47032         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
47033         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
47034
47035         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
47036         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
47037         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
47038
47039         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
47040         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
47041         * modules/vasprintf (Depends-on): Add EOVERFLOW.
47042
47043         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
47044         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
47045         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
47046         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
47047         (Depends-on): Add EOVERFLOW.
47048         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
47049         (Depends-on): Add EOVERFLOW.
47050         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
47051         (Depends-on): Add EOVERFLOW.
47052         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
47053         (Depends-on): Add EOVERFLOW.
47054         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
47055         (Depends-on): Add EOVERFLOW.
47056         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
47057         (Depends-on): Add EOVERFLOW.
47058         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
47059         (Depends-on): Add EOVERFLOW.
47060         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
47061         (Depends-on): Add EOVERFLOW.
47062
47063         * lib/sprintf.c (EOVERFLOW): Remove fallback.
47064         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
47065         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
47066
47067         * lib/snprintf.c (EOVERFLOW): Remove fallback.
47068         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
47069         * modules/snprintf (Depends-on): Add EOVERFLOW.
47070
47071         * lib/poll.c (EOVERFLOW): Remove fallback.
47072         * modules/poll (Depends-on): Add EOVERFLOW.
47073
47074         * lib/getugroups.c (EOVERFLOW): Remove fallback.
47075         * modules/getugroups (Depends-on): Add EOVERFLOW.
47076
47077         * lib/getdelim.c (EOVERFLOW): Remove fallback.
47078         * modules/getdelim (Depends-on): Add EOVERFLOW.
47079
47080         * lib/ftell.c (EOVERFLOW): Remove fallback.
47081         * modules/ftell (Depends-on): Add EOVERFLOW.
47082
47083         * lib/fprintf.c (EOVERFLOW): Remove fallback.
47084         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
47085         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
47086
47087         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
47088
47089         * modules/EOVERFLOW-tests: New file.
47090         * tests/test-EOVERFLOW.c: New file.
47091
47092         * modules/EOVERFLOW: New file.
47093         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
47094
47095 2008-03-30  Bruno Haible  <bruno@clisp.org>
47096
47097         Fix bug introduced on 2007-06-10.
47098         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
47099         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
47100
47101 2008-03-30  Bruno Haible  <bruno@clisp.org>
47102
47103         Improve freadseek's efficiency after ungetc.
47104         * lib/freadseek.c: Include freadahead.h.
47105         (freadptrinc): New function, extracted from freadseek.
47106         (freadseek): Use it in a loop. Use freadahead to determine the number
47107         of loop iterations.
47108         * modules/freadseek (Depends-on): Add freadahead.
47109         (configure.ac): Require AC_C_INLINE.
47110
47111 2008-03-30  Bruno Haible  <bruno@clisp.org>
47112
47113         * lib/freadseek.c (freadseek): Don't ignore the return value of
47114         freadptr.
47115
47116 2008-03-29  Eric Blake  <ebb9@byu.net>
47117
47118         Add hex float support.
47119         * modules/strtod (Depends-on): Add c-ctype.
47120         (Link): Mention POW_LIB.
47121         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
47122         whitespace between 'e' and exponent.
47123         * tests/test-strtod.c (main): Enable hex float tests.
47124         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
47125         now provides.
47126
47127         Document various strtod bugs, with some fixes.
47128         * doc/posix-functions/strtod.texi (strtod): Document bugs with
47129         "-0x", "inf", "nan", and hex constants.
47130         * doc/posix-functions/atof.texi (atof): Likewise.
47131         * modules/stdlib (Makefile.am): Support strtod.
47132         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
47133         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
47134         detect additional strtod bugs.
47135         * lib/stdlib.in.h (rpl_strtod): Add declarations.
47136         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
47137         bool where appropriate.  Parse 'inf' and 'nan'.
47138         * tests/test-strtod.c: New file.
47139         * modules/strtod (Depends-on): Add stdbool, stdlib.
47140         (configure.ac): Turn on module indicator.
47141         * modules/strtod-tests: New module.
47142
47143 2008-03-29  Eric Blake  <ebb9@byu.net>
47144
47145         Fix ftell on mingw.
47146         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
47147         * modules/ftell-tests (Depends-on): Add binary-io.
47148         * modules/ftello-tests (Depends-on): Likewise.
47149         * tests/test-ftell.c (main): Enhance test to cover behavior after
47150         ungetc.  Enforce binary mode.
47151         * tests/test-ftello.c (main): Likewise.
47152
47153         Pass test-freadseek on cygwin.
47154         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
47155         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
47156         ungetc buffer.
47157
47158         * tests/test-fflush2.c (main): Fix typo.
47159
47160 2008-03-29  Bruno Haible  <bruno@clisp.org>
47161
47162         * tests/test-fflush2.c (main): Temporarily disable the contents of
47163         this test.
47164         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
47165         Reported by Eric Blake.
47166
47167 2008-03-28  Simon Josefsson  <simon@josefsson.org>
47168
47169         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
47170         (GC_SHA224_DIGEST_SIZE): Add.
47171
47172         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
47173         (gc_hash_digest_length): Likewise.
47174         (gc_hash_buffer): Likewise.
47175
47176 2008-03-25  Bruno Haible  <bruno@clisp.org>
47177
47178         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
47179         detail which gettext release to use.
47180         Reported by Simon Josefsson.
47181
47182 2008-03-26  Jim Meyering  <meyering@redhat.com>
47183
47184         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
47185         * modules/gnumakefile (clean-GNUmakefile): Also, use
47186         test ... && ... || : syntax rather than if-then ... fi.
47187
47188         gnumakefile: Don't double-quote-expand $(VPATH) value.
47189         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
47190
47191 2008-03-24  Eric Blake  <ebb9@byu.net>
47192
47193         Alter GNUmakefile to install into top directory.
47194         * modules/maintainer-makefile: Split, and add dependency...
47195         * modules/gnumakefile: to this new module.
47196         * build-aux/GNUmakefile: Move...
47197         * top/GNUmakefile: ...here.
47198         * build-aux/maint.mk: Move...
47199         * top/maint.mk: ...here.
47200         * MODULES.html.sh (Support for maintaining...): Document new
47201         module.
47202
47203 2008-03-23  Bruno Haible  <bruno@clisp.org>
47204
47205         * gnulib-tool: New options --vc-files, --no-vc-files.
47206         (func_usage): Document them.
47207         (vc_files): New variable.
47208         (func_import): Consider vc_files.
47209         (func_create_testdir): Set vc_files to empty.
47210         Suggested by Jim Meyering and Karl Berry.
47211
47212 2008-03-23  Bruno Haible  <bruno@clisp.org>
47213
47214         Fix regex compilation error on HP-UX 11.
47215         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
47216         * modules/regex (Files): Add m4/mbstate_t.m4.
47217         Reported by Ton Voon <ton.voon@altinity.com>.
47218
47219 2008-03-23  Bruno Haible  <bruno@clisp.org>
47220
47221         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
47222
47223 2008-03-23  Eric Blake  <ebb9@byu.net>
47224             Bruno Haible  <bruno@clisp.org>
47225
47226         Install files from top/ in the destination directory.
47227         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
47228         augmentation also for the files from top/.
47229         (func_import, func_create_testdir): Rewrite file names:
47230         top/filename -> filename.
47231
47232 2008-03-23  Bruno Haible  <bruno@clisp.org>
47233
47234         Tweak "gnulib --version" output.
47235         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
47236
47237 2008-03-23  Bruno Haible  <bruno@clisp.org>
47238
47239         Tweak "gnulib --version" output.
47240         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
47241         rather than contents of ChangeLog, when possible.
47242
47243 2008-03-21  Eric Blake  <ebb9@byu.net>
47244
47245         More --version tweaks.
47246         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
47247         date of last ChangeLog entry.
47248
47249 2008-03-21  Jim Meyering  <meyering@redhat.com>
47250
47251         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
47252
47253 2008-03-20  Eric Blake  <ebb9@byu.net>
47254
47255         VPATH fix.
47256         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
47257
47258 2008-03-20  Simon Josefsson  <simon@josefsson.org>
47259
47260         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
47261         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
47262
47263 2008-03-20  Eric Blake  <ebb9@byu.net>
47264
47265         Sync GNUmakefile with coreutils.
47266         * build-aux/GNUmakefile (have-Makefile): Rename...
47267         (_have-Makefile): ...to this, for namespace consideration.
47268         (GNUmakefile.cfg): Include, if present.
47269         (_autoreconf): Define a default.
47270         (_is-dist-target): New rule for rebuilds to pick up intra-release
47271         version.
47272         (maint-cfg.mk): Rename...
47273         (cfg.mk): ...to this.
47274
47275 2008-03-18  Jim Meyering  <meyering@redhat.com>
47276
47277         New script and module: mktempd
47278         * MODULES.html.sh (maint+release support): Add mktempd.
47279         * build-aux/mktempd: New file.
47280         * modules/mktempd: New file.
47281
47282 2008-03-15  Jim Meyering  <meyering@redhat.com>
47283
47284         Undo last change.
47285         * lib/sha1.c, lib/md5.c: 63 != ~63.
47286         Reported by Andreas Schwab.
47287
47288         sha1.c, md5.c: Hoist a redundant expression.
47289         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
47290         "ctx->buflen" only once, before calling *_process_block.
47291         * lib/md5.c (md5_process_bytes): Likewise.
47292
47293 2008-03-14  Eric Blake  <ebb9@byu.net>
47294
47295         Bump copyright year in files generated by gnulib-tool.
47296         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
47297         gnulib-tool, rather than hard-coding it.
47298
47299         Fix 'gnulib-tool --version' output to work with git.
47300         * gnulib-tool (func_gnulib_dir): New function, extracted from...
47301         (startup): ...here.
47302         (func_version): Use it to invoke git-version-gen, rather than
47303         relying on CVS keyword expansion.  Modernize wording.
47304         (cvsdatestamp, last_checkin_date, version): Kill unused
47305         variables.
47306
47307 2008-03-12  Jim Meyering  <meyering@redhat.com>
47308
47309         Recognize optional cast of the argument to free.
47310         * build-aux/useless-if-before-free: Update regexps.
47311
47312         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
47313
47314 2008-03-11  Bruno Haible  <bruno@clisp.org>
47315
47316         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
47317         by a single package.
47318         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
47319         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
47320         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
47321         Reported by Sam Steingold <sds@gnu.org>.
47322
47323 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
47324
47325         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
47326         repositories.
47327
47328 2008-03-11  Bruno Haible  <bruno@clisp.org>
47329
47330         Avoid conflicts between local macro definitions.
47331         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
47332         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
47333
47334 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
47335             Bruno Haible  <bruno@clisp.org>
47336
47337         Make va_copy work with some version of xlc on AIX 5.1.
47338         * lib/stdarg.in.h: New file.
47339         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
47340         On AIX, use a <stdarg.h> file substitute.
47341         * modules/stdarg (Files): Add lib/stdarg.in.h.
47342         (Depends-on): Add include_next.
47343         (Makefile.am): Build a stdarg.h substitute if requested.
47344         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
47345
47346 2008-03-10  Bruno Haible  <bruno@clisp.org>
47347
47348         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
47349         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
47350         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
47351
47352 2008-03-10  Bruno Haible  <bruno@clisp.org>
47353
47354         * modules/stdlib (Depends-on): Add include_next, remove
47355         absolute-header.
47356
47357 2008-03-09  Bruno Haible  <bruno@clisp.org>
47358
47359         * lib/freadahead.h (freadahead): Document more precisely.
47360         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
47361         the sum of both buffer sizes.
47362         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
47363         * NEWS: Document the change.
47364
47365 2008-03-09  Bruno Haible  <bruno@clisp.org>
47366
47367         Extend freadptr to return also the buffer size.
47368         * lib/freadptr.h (freadptr): Add sizep argument.
47369         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
47370         (freadptr): Add sizep argument. Determine buffer size like freadahead
47371         does.
47372         * tests/test-freadptr.c: Don't include freadahead.h.
47373         (main): Adapt for new calling convention of freadptr.
47374         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
47375         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
47376         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
47377         tests/test-freadptr2.sh.
47378         (Depends): Remove freadahead.
47379         (TESTS): Add test-freadptr2.sh.
47380         (check_PROGRAMS): Add test-freadptr2.
47381
47382 2008-03-09  Bruno Haible  <bruno@clisp.org>
47383
47384         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
47385         Report and solution by Simon Josefsson.
47386
47387 2008-03-06  Bruno Haible  <bruno@clisp.org>
47388
47389         Make fflush after ungetc work on BSD platforms.
47390         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
47391         * tests/test-fflush2.c: New file.
47392         * tests/test-fflush2.sh: New file.
47393         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
47394         tests/test-fflush2.c.
47395         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
47396         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
47397
47398 2008-03-06  Eric Blake  <ebb9@byu.net>
47399
47400         Likewise for ftello.
47401         * modules/ftello (Dependencies): Add extensions.
47402         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
47403
47404 2008-03-06  Bruno Haible  <bruno@clisp.org>
47405
47406         * modules/fseeko (Dependencies): Add extensions.
47407         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
47408         Needed on glibc systems.
47409
47410 2008-03-06  Bruno Haible  <bruno@clisp.org>
47411
47412         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
47413         email address.
47414         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
47415
47416 2008-03-06  Bruno Haible  <bruno@clisp.org>
47417
47418         * users.txt: Add libgnupdf.
47419
47420 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
47421
47422         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
47423         (Header File Substitutes, Function Substitutes,
47424         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
47425         (Build robot for gnulib): Fix typo.
47426
47427 2008-03-06  Bruno Haible  <bruno@clisp.org>
47428
47429         * doc/gnulib-tool.texi (VCS Issues): Small updates.
47430         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
47431
47432 2008-03-06  Bruno Haible  <bruno@clisp.org>
47433
47434         * doc/func.texi: New file, extracted from doc/gnulib.texi.
47435         * doc/gnulib.texi: Include it.
47436
47437 2008-03-06  Simon Josefsson  <simon@josefsson.org>
47438
47439         * modules/func (License): Change license to unlimited; there was
47440         no LGPL parts in the module anyway.
47441
47442 2008-03-06  Simon Josefsson  <simon@josefsson.org>
47443
47444         * modules/__func__: Renamed to modules/func.
47445         * modules/__func__-tests: Renamed to modules/func-tests.
47446         * tests/test-__func__.c: Renamed to tests/test-func.c.
47447         * m4/__func__.m4: Renamed to m4/func.m4.
47448         * doc/gnulib.texi (__func__): Section renamed to func.
47449         Suggested by Eric Blake <ebb9@byu.net>.
47450
47451 2008-03-06  Simon Josefsson  <simon@josefsson.org>
47452
47453         * doc/gnulib.texi (__func__): Use C99 terminology when talking
47454         about __func__.  Make example self-contained.  Suggested by Eric
47455         Blake <ebb9@byu.net>.
47456
47457         * tests/test-__func__.c (main): Avoid extraneous () around __func.
47458         Suggested by Eric Blake <ebb9@byu.net>.
47459
47460 2008-03-06  Simon Josefsson  <simon@josefsson.org>
47461
47462         * modules/__func__: New file.
47463         * modules/__func__-tests: New file.
47464         * tests/test-__func__.c: New file.
47465         * m4/__func__.m4: New file.
47466         * doc/gnulib.texi (__func__): Document __func__ module.
47467
47468 2008-03-05  Simon Josefsson  <simon@josefsson.org>
47469
47470         * modules/byteswap (License): Re-license as LGPLv2+.
47471
47472 2008-03-05  Simon Josefsson  <simon@josefsson.org>
47473
47474         * doc/Makefile: Add pdf target.
47475
47476 2008-03-05  Simon Josefsson  <simon@josefsson.org>
47477
47478         * modules/inline (License): Use 'unlimited', since there are only
47479         *.m4 files in this module.
47480
47481 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
47482             Bruno Haible  <bruno@clisp.org>
47483
47484         Add support for HP C 7.1 on OpenVMS 8.3.
47485         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
47486
47487 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
47488
47489         Update VMS specifics.
47490         * lib/getopt.c [VMS]: Remove include of unixlib.h.
47491
47492 2008-03-02  Jim Meyering  <meyering@redhat.com>
47493
47494         Remove the last dependency on the "free" module.
47495         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
47496         Reported by Bob Proulx.
47497
47498         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
47499
47500         Remove useless "if" tests before free.  Deprecate "free" module.
47501         * doc/posix-functions/free.texi: Mention that this
47502         module is no longer useful.
47503         * modules/free (Notice): Say this module is obsolete.
47504         * modules/readutmp (Depends-on): Remove free.
47505         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
47506         * lib/putenv.c (putenv): Likewise.
47507         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
47508         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
47509         * tests/test-c-strcasestr.c (main): Likewise.
47510         * tests/test-c-strstr.c (main): Likewise.
47511         * tests/test-mbscasestr1.c (main): Likewise.
47512         * tests/test-mbscasestr2.c (main): Likewise.
47513         * tests/test-mbsstr1.c (main): Likewise.
47514         * tests/test-mbsstr2.c (main): Likewise.
47515         * tests/test-memmem.c (main): Likewise.
47516         * tests/test-strcasestr.c (main): Likewise.
47517         * tests/test-striconv.c (main): Likewise.
47518         * tests/test-striconveh.c (main): Likewise.
47519         * tests/test-striconveha.c (main): Likewise.
47520         * tests/test-strstr.c (main): Likewise.
47521
47522         * build-aux/git-version-gen: Adjust a comment and the Usage string.
47523
47524         bootstrap: sync from coreutils again
47525         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
47526
47527 2008-03-01  Jim Meyering  <meyering@redhat.com>
47528
47529         bootstrap: sync from coreutils
47530         * build-aux/bootstrap (update_po_files): Copy a .po file into place
47531         also when the target doesn't exist.
47532
47533 2008-03-01  Eric Blake  <ebb9@byu.net>
47534
47535         Fix bugs in last patch.
47536         * lib/memchr2.c (memchr2): Fix typo.
47537         * tests/test-memchr2.c: Test previous bug, and don't use GNU
47538         extension.
47539         Reported by Bruce Korb.
47540
47541         New module 'memchr2'.
47542         * modules/memchr2: New file.
47543         * modules/memchr2-tests: Likewise.
47544         * lib/memchr2.h: Likewise.
47545         * lib/memchr2.c: Likewise, based on memchr.c.
47546         * tests/test-memchr2.c: New test.
47547         * MODULES.html.sh (String handling): Add memchr2.
47548
47549 2008-02-29  Bruno Haible  <bruno@clisp.org>
47550
47551         * modules/freadseek-tests: New file.
47552         * tests/test-freadseek.sh: New file.
47553         * tests/test-freadseek.c: New file.
47554
47555         New module 'freadseek'.
47556         * modules/freadseek: New file.
47557         * lib/freadseek.h: New file.
47558         * lib/freadseek.c: New file.
47559         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
47560
47561 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
47562
47563         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
47564         wydawca.
47565
47566         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
47567         program_invocation_name and program_invocation_short_name are
47568         present.
47569
47570 2008-02-28  Bruno Haible  <bruno@clisp.org>
47571
47572         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
47573         * tests/test-freadptr.sh: Also test non-seekable stdin.
47574
47575 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
47576
47577         * build-aux/bootstrap (source_base, m4_base)
47578         (doc_base, tests_base): New variables.
47579         (gnulib_tool_options): Do not hardcode base directories, use
47580         the above variables instead.
47581
47582 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
47583
47584         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
47585
47586 2008-02-28  Bruno Haible  <bruno@clisp.org>
47587
47588         * modules/freadptr-tests: New file.
47589         * tests/test-freadptr.sh: New file.
47590         * tests/test-freadptr.c: New file.
47591
47592         New module 'freadptr'.
47593         * modules/freadptr: New file.
47594         * lib/freadptr.h: New file.
47595         * lib/freadptr.c: New file.
47596         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
47597
47598 2008-02-26  Karl Berry  <karl@freefriends.org>
47599
47600         Sync from Libtool:
47601         * libltdl/argz.c (argz_add, argz_count): New functions.
47602         * libltdl/argz.in.h: Declare them.
47603         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
47604
47605 2008-02-22  Bruno Haible  <bruno@clisp.org>
47606
47607         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
47608         is a pointer type.  Needed for HP-UX 10.
47609         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
47610         * doc/posix-functions/gmtime_r.texi: Likewise.
47611         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
47612
47613 2008-02-24  Bruno Haible  <bruno@clisp.org>
47614
47615         * modules/environ-tests: New file.
47616         * tests/test-environ.c: New file.
47617
47618         New module 'environ'.
47619         * modules/environ: New file.
47620         * lib/unistd.in.h (environ): New declaration.
47621         * m4/environ.m4: New file.
47622         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
47623         after use.
47624         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
47625         HAVE_DECL_ENVIRON.
47626         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
47627         HAVE_DECL_ENVIRON.
47628         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
47629         wrong claim that 'environ' is missing on some systems.
47630         * modules/execute (Depends-on): Add environ.
47631         * lib/execute.c (environ): Remove fallback declaration.
47632         * modules/pipe (Depends-on): Add environ.
47633         * lib/pipe.c (environ): Remove fallback declaration.
47634         * modules/setenv (Depends-on): Add environ.
47635         * lib/setenv.c (environ): Remove fallback declaration.
47636         * modules/unsetenv (Depends-on): Add environ.
47637         * lib/unsetenv.c (environ): Remove fallback declaration.
47638         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
47639         m4/environ.m4.
47640         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
47641         (gl_PREREQ_UNSETENV): Likewise.
47642
47643 2008-02-24  Bruno Haible  <bruno@clisp.org>
47644
47645         * doc/posix-functions/environ.texi: Document the MacOS X problem.
47646
47647 2008-02-20  Bob Proulx  <bob@proulx.com>
47648
47649         Enable use of older two part flavor 'git describe'.
47650         * build-aux/git-version-gen: If using the older two part flavor of
47651         git version then recreate the third part now present in the
47652         newer three part flavor of git describe.
47653
47654 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
47655
47656         * lib/fts.c (fts_build): Typo correction to comment.
47657
47658 2008-02-17  Bruno Haible  <bruno@clisp.org>
47659
47660         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
47661         generating no-op conflicts.
47662
47663 2008-02-17  Bruno Haible  <bruno@clisp.org>
47664
47665         Speed up by 10%.
47666         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
47667         result_entries, rather than an index-based loop.
47668
47669 2008-02-17  Bruno Haible  <bruno@clisp.org>
47670
47671         Speed up by 25%.
47672         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
47673         'hashcode_cached'.
47674         (entry_create): New function.
47675         (entry_hashcode): Use the cached hashcode if possible.
47676         (read_changelog_file, try_split_merged_entry): Use entry_create.
47677
47678 2008-02-17  Bruno Haible  <bruno@clisp.org>
47679
47680         Speed up from O(n^2) to O(n) for long ChangeLog files.
47681         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
47682         (read_changelog_file): Change implementation of entries_reversed list
47683         to rbtreehash.
47684         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
47685
47686 2008-02-17  Bruno Haible  <bruno@clisp.org>
47687
47688         New option --split-merged-entry.
47689         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
47690         (find_paragraph_end, try_split_merged_entry): New functions.
47691         (long_options): Add option --split-merged-entry.
47692         (usage): Document option --split-merged-entry.
47693         (main): Implement option --split-merged-entry.
47694         Reported by Eric Blake.
47695
47696 2008-02-17  Bruno Haible  <bruno@clisp.org>
47697
47698         * lib/git-merge-changelog.c: Include c-strstr.h.
47699         (main): Support the "git pull --rebase" situation.
47700         * modules/git-merge-changelog (Depends-on): Add c-strstr.
47701         Reported by Eric Blake.
47702
47703 2008-02-16  Eric Blake  <ebb9@byu.net>
47704
47705         Avoid doubling \ in common case of "c-maybe" quoting style.
47706         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
47707         eliding outer quotes.
47708         * lib/quotearg.h: Document this.
47709         * tests/test-quotearg.c (result_strings, inputs, results_g)
47710         (flag_results, locale_results): Test it by adding a new string to
47711         each test group.
47712         (compare_strings): Test new string.
47713
47714 2008-02-13  Eric Blake  <ebb9@byu.net>
47715
47716         Avoid trigraph quoting in default output.
47717         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
47718         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
47719         unless explicitly requested.
47720         * tests/test-quotearg.c (flag_results, main): Add additional tests.
47721
47722 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
47723
47724         Don't rely on signed integer overflowing to negative value.
47725         * lib/getugroups.c (getugroups): Include <limits.h>.
47726         Instead, compare against INT_MAX, and increment only if the test passes.
47727
47728 2008-02-13  Jim Meyering  <meyering@redhat.com>
47729         and Eric Blake  <ebb9@byu.net>
47730
47731         Avoid shadowing warning and compile errors on Linux.
47732         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
47733         forwarding macros on Linux.
47734         (dcgettext): Define a stub, for Linux.
47735         (results_g, main): Avoid warnings.
47736
47737 2008-02-12  Eric Blake  <ebb9@byu.net>
47738
47739         Silence warning in last patch.
47740         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
47741
47742         Quotearg part 4: add tests, fix c-maybe colon quoting.
47743         * lib/quotearg.h: Improve documentation.
47744         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
47745         escapes when adding outer quotes.  When quoting trigraphs, use
47746         valid C notation.  When quoting NUL, omit extra characters if next
47747         character is not digit.  Alter prototype.
47748         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
47749         callers.
47750         * modules/quotearg-tests: New module.
47751         * tests/test-quotearg.c: New test.
47752
47753 2008-02-07  Eric Blake  <ebb9@byu.net>
47754
47755         Quotearg part 3: add flag to control outer quote elision.
47756         * lib/quotearg.h (c_maybe_quoting_style): New style.
47757         (enum quoting_flags): Better documentation of flags.
47758         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
47759         c-maybe style.
47760         (quotearg_buffer_restyled): Handle new flag to elide outer
47761         quotes.
47762
47763         Quotearg part 2: add flag that can control NUL elision.
47764         * lib/quotearg.h (set_quoting_flags): New prototype.
47765         * lib/quotearg.c (struct quoting_options): Add flag field.
47766         (set_quoting_flags): New function.
47767         (quotearg_buffer_restyled): Add flags parameter.
47768         (quotearg_alloc_mem): Set the flag if length cannot be returned.
47769         (quotearg_n_options): Set the flag, since length cannot be
47770         returned.
47771         (quoting_options_from_style): Default flags correctly.
47772
47773         Quotearg part 1: more wrappers, restore quotearg_char state.
47774         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
47775         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
47776         (quotearg_colon_mem): New wrappers.
47777         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
47778         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
47779         functions.
47780         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
47781         (quotearg_colon_mem): New functions.
47782
47783 2008-02-11  Bruno Haible  <bruno@clisp.org>
47784
47785         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
47786         library in the current directory: it does not work with parallel make.
47787         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47788
47789 2008-02-11  Bruno Haible  <bruno@clisp.org>
47790
47791         * .gitattributes: New file.
47792
47793 2008-02-11  Jim Meyering  <meyering@redhat.com>
47794
47795         useless-if-before-free: Fix reversed exit values.
47796         * build-aux/useless-if-before-free: Use correct values
47797         for EXIT_MATCH and EXIT_NO_MATCH.
47798
47799         * build-aux/useless-if-before-free: Close stdout carefully.
47800
47801 2008-02-10  Bruno Haible  <bruno@clisp.org>
47802
47803         New module 'git-merge-changelog'.
47804         * modules/git-merge-changelog: New file.
47805         * lib/git-merge-changelog.c: New file.
47806
47807 2008-02-10  Jim Meyering  <meyering@redhat.com>
47808
47809         useless-if-before-free: New option: --list (-l).
47810
47811         useless-if-before-free: Don't exit immediately upon open failure.
47812         * build-aux/useless-if-before-free: Exit 2 for errors.
47813         Upon failure to open a file, don't exit immediately.
47814         Rather, just warn and continue with any remaining files.
47815
47816 2008-02-10  Bruno Haible  <bruno@clisp.org>
47817
47818         New abstract list operation 'node_set_value'.
47819         * lib/gl_list.h (gl_list_node_set_value): New function.
47820         (struct gl_list_implementation): New field node_set_value.
47821         * lib/gl_list.c (gl_list_node_set_value): New function.
47822         * lib/gl_array_list.c (gl_array_node_set_value): New function.
47823         (gl_array_list_implementation): Update.
47824         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
47825         (gl_carray_list_implementation): Update.
47826         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
47827         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
47828         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
47829         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
47830         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
47831         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
47832         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
47833         Update.
47834         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
47835         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
47836         (gl_sublist_list_implementation): Update.
47837
47838 2008-02-10  Bruno Haible  <bruno@clisp.org>
47839
47840         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
47841         Needed when ELEMENT is #defined to 'some_type *'.
47842
47843 2008-02-10  Jim Meyering  <meyering@redhat.com>
47844
47845         New script and module: useless-if-before-free
47846         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
47847         * build-aux/useless-if-before-free: New file.
47848         * modules/useless-if-before-free: New file.
47849
47850         * build-aux/gitlog-to-changelog: Use committer date, not author date.
47851
47852         xstrtol_error: Fix typo.
47853         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
47854         s/exit_failure/exit_status/.
47855
47856 2008-02-09  Jim Meyering  <meyering@redhat.com>
47857
47858         New script and module: gitlog-to-changelog
47859         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
47860         * modules/gitlog-to-changelog: New file.
47861         * build-aux/gitlog-to-changelog: New file.
47862
47863 2008-02-08  Jim Meyering  <meyering@redhat.com>
47864
47865         Avoid two "parameter unused" warnings.
47866         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
47867         Mark "st" as used.
47868
47869         Use "git COMMAND", not "git-COMMAND".
47870         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
47871         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
47872         * build-aux/git-version-gen: Use "git status", not "git-status".
47873
47874 2008-02-07  Bruno Haible  <bruno@clisp.org>
47875
47876         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
47877         Avoids a crash on Windows Vista.
47878         Reported by Adam Strzelecki <ono@java.pl> via
47879         Simon Josefsson <simon@josefsson.org>.
47880
47881 2008-02-06  Bruno Haible  <bruno@clisp.org>
47882
47883         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
47884         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
47885         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
47886         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
47887         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
47888         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
47889         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
47890         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
47891         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
47892         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
47893         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
47894         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
47895         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
47896         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
47897         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
47898         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
47899         left-adjust flag.
47900         * tests/test-snprintf-posix.h (test_function): Likewise.
47901         * tests/test-sprintf-posix.h (test_function): Likewise.
47902         * tests/test-vasprintf-posix.c (test_function): Likewise.
47903         * doc/posix-functions/fprintf.texi: Update.
47904         * doc/posix-functions/printf.texi: Update.
47905         * doc/posix-functions/snprintf.texi: Update.
47906         * doc/posix-functions/sprintf.texi: Update.
47907         * doc/posix-functions/vfprintf.texi: Update.
47908         * doc/posix-functions/vprintf.texi: Update.
47909         * doc/posix-functions/vsnprintf.texi: Update.
47910         * doc/posix-functions/vsprintf.texi: Update.
47911         Reported by Peter Fales <psfales@alcatel-lucent.com>.
47912
47913 2008-02-06  Bruno Haible  <bruno@clisp.org>
47914
47915         Fix bug introduced on 2008-01-26.
47916         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
47917
47918 2008-02-06  Bruno Haible  <bruno@clisp.org>
47919
47920         Fix bug introduced on 2007-06-10.
47921         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
47922         !NEED_PRINTF_FLAG_ZERO.
47923
47924 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
47925
47926         getloadavg: use libperfstat on AIX5
47927         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
47928
47929 2008-02-03  Bruno Haible  <bruno@clisp.org>
47930
47931         * lib/diffseq.h: Add comments about required #includes.
47932         Reported by Michael Biggs <gnulib@doubleplum.net>.
47933
47934 2008-02-01  Bruno Haible  <bruno@clisp.org>
47935
47936         * users.txt: Add gnuit.
47937
47938 2008-01-31  Bruno Haible  <bruno@clisp.org>
47939
47940         * lib/md4.c (set_uint32): Mark as inline.
47941         * lib/md5.c (set_uint32): Likewise.
47942         * lib/sha1.c (set_uint32): Likewise.
47943         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
47944         * m4/md5.m4 (gl_MD5): Likewise.
47945         * m4/sha1.m4 (gl_SHA1): Likewise.
47946
47947 2008-01-31  Jim Meyering  <meyering@redhat.com>
47948
47949         Use "sizeof VAR", rather than a literal "4".
47950         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
47951         * lib/md4.c (md4_read_ctx): Likewise.
47952         * lib/sha1.c (sha1_read_ctx): Likewise.
47953
47954 2008-01-31  Simon Josefsson  <simon@josefsson.org>
47955
47956         * tests/test-sha1.c: New file, based on test-md5.c.
47957
47958         * modules/crypto/sha1-tests: New file.
47959
47960 2008-01-31  Simon Josefsson  <simon@josefsson.org>
47961
47962         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
47963
47964 2008-01-31  Jim Meyering  <meyering@redhat.com>
47965
47966         Prefer "sizeof v" over the equivalent "4".
47967         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
47968         * lib/md5.c (set_uint32): Likewise.
47969         * lib/sha1.c (set_uint32): Likewise.
47970
47971 2008-01-31  Simon Josefsson  <simon@josefsson.org>
47972
47973         * lib/sha1.c (set_uint32): Mark function as static.
47974
47975 2008-01-31  Simon Josefsson  <simon@josefsson.org>
47976
47977         md2: clarify comments to say that alignment is not required.
47978         * lib/md2.h: Remove warning about alignment in comment.
47979         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
47980         never been required.
47981
47982 2008-01-31  Simon Josefsson  <simon@josefsson.org>
47983
47984         md4: adapt alignment constraint fix from sha1.
47985         * lib/md4.c (set_uint32): New function, from sha1.c
47986         (md4_read_ctx): Use it.
47987         (md4_finish_ctx): Doc fix.
47988         * lib/md4.h: Doc fix.
47989
47990 2008-01-31  Simon Josefsson  <simon@josefsson.org>
47991
47992         md5: adapt alignment constraint fix from sha1.
47993         * lib/md5.c (set_uint32): New function, from sha1.c
47994         (md5_read_ctx): Use it.
47995         (md5_finish_ctx): Doc fix.
47996         * lib/md5.h: Doc fix.
47997
47998 2008-01-30  Peter Palfrader  <weasel@debian.org>
47999
48000         sha1: remove the result buffer alignment constraint
48001         * lib/sha1.c (set_uint32): New function.
48002         (sha1_read_ctx): Rewrite to remove the result buffer alignment
48003         constraint.
48004         (sha1_finish_ctx): Remove comment warning about alignment constraint.
48005         * lib/sha1.h: Likewise.
48006
48007 2008-01-30  Andreas Schwab  <schwab@suse.de>
48008             Bruno Haible  <bruno@clisp.org>
48009
48010         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
48011         correct definition of LDBL_MIN_EXP.
48012
48013 2008-01-30  Karl Berry  <karl@gnu.org>
48014
48015         * config/srclist-update: try to preserve x bit on updates.
48016         * config/srclistvars.sh: update for karl.
48017
48018 2008-01-29  Jim Meyering  <meyering@redhat.com>
48019
48020         vasnprintf.c: Avoid warning about unused label
48021         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
48022         "overflow" label definition and associated code with the
48023         same cpp condition that guards the sole use of that label.
48024
48025 2008-01-26  Bruno Haible  <bruno@clisp.org>
48026
48027         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
48028         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
48029         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
48030         * lib/isnanl-nolibm.h (isnanl): Likewise.
48031         Reported by Paul Eggert <eggert@cs.ucla.edu>.
48032
48033 2008-01-26  Bruno Haible  <bruno@clisp.org>
48034
48035         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
48036         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
48037
48038 2008-01-26  Bruno Haible  <bruno@clisp.org>
48039
48040         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
48041         GCC >= 4.0 built-in.
48042         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
48043
48044 2008-01-26  Bruno Haible  <bruno@clisp.org>
48045
48046         Rename isnan, applicable to 'double' only, to isnand.
48047         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
48048         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
48049         (configure.ac): Update.
48050         (Include): Replace "isnan.h" with "isnand.h".
48051         * m4/isnand.m4: Renamed from m4/isnan.m4.
48052         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
48053         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
48054         instead of isnan.c.
48055         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
48056         instead of HAVE_ISNAN_IN_LIBC.
48057         (isnand): Renamed from isnan.
48058         * lib/isnand.c: New file.
48059         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
48060         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
48061         (Makefile.am): Update.
48062         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
48063         Include isnand.h instead of isnan.h.
48064         (main): Test isnand instead of isnan.
48065         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
48066         isnan-nolibm.
48067         * modules/frexp (Depends-on): Likewise.
48068         * modules/frexp-tests (Depends-on): Likewise.
48069         * modules/frexp-nolibm (Depends-on): Likewise.
48070         * modules/frexp-nolibm-tests (Depends-on): Likewise.
48071         * modules/isfinite (Depends-on): Likewise.
48072         * modules/round-tests (Depends-on): Likewise.
48073         * modules/signbit (Depends-on): Likewise.
48074         * modules/signbit-tests (Depends-on): Likewise.
48075         * modules/snprintf-posix (Depends-on): Likewise.
48076         * modules/sprintf-posix (Depends-on): Likewise.
48077         * modules/trunc-tests (Depends-on): Likewise.
48078         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
48079         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
48080         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
48081         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
48082         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
48083         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
48084         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
48085         * modules/vasnprintf-posix (Depends-on): Likewise.
48086         * modules/vasprintf-posix (Depends-on): Likewise.
48087         * modules/vfprintf-posix (Depends-on): Likewise.
48088         * modules/vsnprintf-posix (Depends-on): Likewise.
48089         * modules/vsprintf-posix (Depends-on): Likewise.
48090         * lib/frexp.c: Include isnand.h instead of isnan.h.
48091         (ISNAN): Set to isnand instead of isnan.
48092         * lib/isfinite.c: Include isnand.h instead of isnan.h.
48093         (gl_isfinited): Use isnand instead of isnan.
48094         * lib/signbitd.c: Include isnand.h instead of isnan.h.
48095         (gl_signbitd): Use isnand instead of isnan.
48096         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
48097         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
48098         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
48099         (main): Use isnand instead of isnan.
48100         * tests/test-round1.c: Include isnand.h.
48101         (main): Use isnand instead of isnan.
48102         * tests/test-round2.c: Include isnand.h instead of isnan.h.
48103         (ISNAN): Set to isnand instead of isnan.
48104         * tests/test-trunc1.c: Include isnand.h.
48105         (main): Use isnand instead of isnan.
48106         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
48107         (equal): Use isnand instead of isnan.
48108         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
48109         isnand-nolibm.
48110         * NEWS: Mention the change.
48111
48112 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
48113             Bruno Haible  <bruno@clisp.org>
48114
48115         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
48116         the GCC builtins for signbits are present and set
48117         REPLACE_SIGNBIT_USING_GCC if so.
48118         * lib/math.in.h (signbit): Define using GCC builtins if
48119         REPLACE_SIGNBIT_USING_GCC is set.
48120         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
48121         REPLACE_SIGNBIT_USING_GCC.
48122         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
48123
48124 2008-01-25  Jim Meyering  <meyering@redhat.com>
48125
48126         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
48127         * lib/poll.c: Include <config.h>, not "config.h".
48128         * tests/test-getaddrinfo.c: Likewise.
48129
48130 2008-01-25  Simon Josefsson  <simon@josefsson.org>
48131
48132         * modules/sockets-tests: New file.
48133
48134 2008-01-24  Simon Josefsson  <simon@josefsson.org>
48135
48136         * modules/sockets: New module, can be used to call WSA_Startup and
48137         WSA_Cleanup when needed.
48138
48139         * lib/sockets.h, lib/sockets.c: New files.
48140
48141         * m4/sockets.m4: New file.
48142
48143         * tests/test-sockets.c: New file.
48144
48145 2008-01-19  Bruno Haible  <bruno@clisp.org>
48146
48147         * doc/posix-headers: Renamed from doc/headers.
48148         * doc/posix-functions: Renamed from doc/functions.
48149         * doc/gnulib.texi: Update.
48150
48151 2008-01-19  Bruno Haible  <bruno@clisp.org>
48152
48153         * doc/glibc-functions/strcasestr.texi: Include contents of
48154         doc/functions/strcasestr.texi, fixing the list of platforms.
48155         * doc/functions/strcasestr.texi: Remove file.
48156
48157 2008-01-19  Bruno Haible  <bruno@clisp.org>
48158
48159         * doc/glibc-functions/memmem.texi: Include contents of
48160         doc/functions/memmem.texi.
48161         * doc/functions/memmem.texi: Remove file.
48162
48163 2008-01-18  Bruno Haible  <bruno@clisp.org>
48164
48165         * doc/glibc-functions/*.texi: New files.
48166         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
48167         to use the new files.
48168
48169 2008-01-17  Bruno Haible  <bruno@clisp.org>
48170
48171         * tests/test-gethostname.c (main): Fix printf statement.
48172
48173 2008-01-17  Simon Josefsson  <simon@josefsson.org>
48174
48175         * modules/gethostname-tests: New file.
48176
48177         * tests/test-gethostname.c: New file.
48178
48179 2008-01-17  Simon Josefsson  <simon@josefsson.org>
48180
48181         * lib/gethostname.c: Include string.h unconditionally, strncpy is
48182         used by the UNAME case.  Reported by Bruno Haible
48183         <bruno@clisp.org>.
48184
48185 2008-01-17  Eric Blake  <ebb9@byu.net>
48186
48187         Convert c-strcasestr to be more efficient.
48188         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
48189         (Depends-on): Add c-strcase, remove malloca, strnlen.
48190         * tests/test-c-strcasestr.c (main): Enhance test.
48191         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
48192
48193 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
48194
48195         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
48196         Use it in creating po/Makevars.
48197
48198 2008-01-15  Simon Josefsson  <simon@josefsson.org>
48199
48200         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
48201         Applications that requires it should initialize libgcrypt
48202         manually.
48203
48204 2008-01-16  Simon Josefsson  <simon@josefsson.org>
48205
48206         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
48207
48208 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
48209
48210         Fix problem with getdate on mingw32 reported by Simon Josefsson
48211         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
48212         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
48213         tzname", when deciding whether to declare tzname.
48214         * lib/strftime.c (tzname): Likewise.
48215
48216 2008-01-15  Bruno Haible  <bruno@clisp.org>
48217
48218         Work around a MacOS X 10.5 bug in frexpl().
48219         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
48220         * doc/functions/frexpl.texi: Document the bug.
48221         Reported by Elias Pipping <pipping@gentoo.org>.
48222
48223 2008-01-14  Eric Blake  <ebb9@byu.net>
48224
48225         Touch up previous patch.
48226         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
48227         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
48228
48229         Convert strcasestr module to use Two-Way algorithm.
48230         * modules/strcasestr-simple: New module, based on the old
48231         strcasestr, but with Two-Way rather than KMP.
48232         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
48233         * lib/string.in.h (rpl_strcasestr): Declare.
48234         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
48235         performance.
48236         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
48237         * modules/string (Makefile.am): Support strcasestr.
48238         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
48239         * modules/strcasestr-tests (Depends-on): Check for alarm.
48240         * tests/test-strcasestr.c: Augment test.
48241         * lib/str-two-way.h: Clean up stray macro.
48242         * NEWS: Document new module.
48243         * MODULES.html.sh (string handling): Likewise.
48244         * doc/functions/strcasestr.texi: New file.
48245         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
48246         here, since it is not a POSIX function.
48247
48248 2008-01-14  Colin Watson  <cjwatson@debian.org>
48249             Bruno Haible  <bruno@clisp.org>
48250
48251         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
48252         works fine; if not, set REPLACE_STRSIGNAL.
48253         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
48254         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
48255         REPLACE_STRSIGNAL.
48256         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
48257         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
48258         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
48259
48260 2008-01-14  Bruno Haible  <bruno@clisp.org>
48261
48262         * modules/strsignal (Include): Change to <string.h>.
48263
48264 2008-01-14  Colin Watson  <cjwatson@debian.org>
48265
48266         * modules/argp (Notice): Add a notice recommending to change
48267         XGETTEXT_OPTIONS.
48268         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
48269
48270 2008-01-13  Colin Watson  <cjwatson@debian.org>
48271
48272         * modules/strsignal-tests: New file.
48273         * tests/test-strsignal.c: New file.
48274
48275         * lib/strsignal.c: New file, from glibc with modifications.
48276         * lib/siglist.h: New file, from glibc with modifications.
48277         * lib/string.in.h (strsignal): New declaration.
48278         * m4/strsignal.m4: New file.
48279         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
48280         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
48281         * modules/strsignal: New file.
48282         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
48283         HAVE_DECL_STRSIGNAL.
48284
48285 2008-01-13  Bruno Haible  <bruno@clisp.org>
48286
48287         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
48288         locale encoding is not ASCII. Needed for OpenBSD 4.0.
48289         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
48290         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
48291
48292 2008-01-13  Bruno Haible  <bruno@clisp.org>
48293
48294         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
48295         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
48296         * lib/argp.h (__attribute__): Likewise.
48297         * lib/c-stack.c (__attribute__): Likewise.
48298         * lib/error.h (__attribute__): Likewise.
48299         * lib/fts.c (__attribute__): Likewise.
48300         * lib/openat.h (__attribute__): Likewise.
48301         * lib/stdio.in.h (__attribute__): Likewise.
48302         * lib/string.in.h (__attribute__): Likewise.
48303         * lib/utimens.c (__attribute__): Likewise.
48304         * lib/vasnprintf.h (__attribute__): Likewise.
48305         * lib/xalloc.h (__attribute__): Likewise.
48306         * lib/xprintf.h (__attribute__): Likewise.
48307         * lib/xstrtol.h (__attribute__): Likewise.
48308         * lib/xvasprintf.h (__attribute__): Likewise.
48309
48310 2008-01-12  Bruno Haible  <bruno@clisp.org>
48311
48312         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
48313         * doc/glibc-headers/a.out.texi: New file.
48314         * doc/glibc-headers/aliases.texi: New file.
48315         * doc/glibc-headers/alloca.texi: New file.
48316         * doc/glibc-headers/ar.texi: New file.
48317         * doc/glibc-headers/argp.texi: New file.
48318         * doc/glibc-headers/argz.texi: New file.
48319         * doc/glibc-headers/byteswap.texi: New file.
48320         * doc/glibc-headers/crypt.texi: New file.
48321         * doc/glibc-headers/endian.texi: New file.
48322         * doc/glibc-headers/envz.texi: New file.
48323         * doc/glibc-headers/err.texi: New file.
48324         * doc/glibc-headers/error.texi: New file.
48325         * doc/glibc-headers/execinfo.texi: New file.
48326         * doc/glibc-headers/fpu_control.texi: New file.
48327         * doc/glibc-headers/fstab.texi: New file.
48328         * doc/glibc-headers/fts.texi: New file.
48329         * doc/glibc-headers/getopt.texi: New file.
48330         * doc/glibc-headers/ieee754.texi: New file.
48331         * doc/glibc-headers/ifaddrs.texi: New file.
48332         * doc/glibc-headers/libintl.texi: New file.
48333         * doc/glibc-headers/mcheck.texi: New file.
48334         * doc/glibc-headers/mntent.texi: New file.
48335         * doc/glibc-headers/obstack.texi: New file.
48336         * doc/glibc-headers/paths.texi: New file.
48337         * doc/glibc-headers/printf.texi: New file.
48338         * doc/glibc-headers/pty.texi: New file.
48339         * doc/glibc-headers/resolv.texi: New file.
48340         * doc/glibc-headers/shadow.texi: New file.
48341         * doc/glibc-headers/sysexits.texi: New file.
48342         * doc/glibc-headers/ttyent.texi: New file.
48343
48344 2008-01-12  Jim Meyering  <meyering@redhat.com>
48345
48346         announce-gen: emit Gnulib's git-based version string.
48347         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
48348         New option --gnulib-version=V, where V is expected to be
48349         the output of running git describe in the gnulib directory.
48350         (get_tool_versions): Request feedback on xdelta.  I suspect it's
48351         not useful, and plan to stop publishing an xdelta file with each
48352         coreutils release.
48353
48354         * build-aux/announce-gen: Also check for lzma-compressed files.
48355
48356 2008-01-11  Bruno Haible  <bruno@clisp.org>
48357
48358         * tests/test-memmem.c (main): Increase maximum allowed time.
48359         * tests/test-strstr.c (main): Likewise.
48360
48361 2008-01-11  Bruno Haible  <bruno@clisp.org>
48362
48363         * doc/functions/memmem.texi: Add more precisions about platforms.
48364         * doc/functions/strstr.texi: Likewise.
48365
48366 2008-01-10  Eric Blake  <ebb9@byu.net>
48367
48368         * m4/strstr.m4: Delete cruft from copy-n-paste.
48369         Reported by Bruno Haible.
48370
48371 2008-01-10  Bruno Haible  <bruno@clisp.org>
48372
48373         Make c-strstr rely on strstr.
48374         * lib/c-strstr.c: Don't include str-kmp.h.
48375         (c_strstr): Define in terms of strstr.
48376         * modules/c-strstr (Files): Remove lib/str-kmp.h.
48377         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
48378
48379 2008-01-10  Bruno Haible  <bruno@clisp.org>
48380
48381         * doc/gnulib.texi (String Functions in C Locale): New section.
48382         * doc/c-ctype.texi: New file.
48383         * doc/c-strcase.texi: New file.
48384         * doc/c-strcaseeq.texi: New file.
48385         * doc/c-strcasestr.texi: New file.
48386         * doc/c-strstr.texi: New file.
48387         * doc/c-strtod.texi: New file.
48388         * doc/c-strtold.texi: New file.
48389
48390 2008-01-10  Eric Blake  <ebb9@byu.net>
48391
48392         * lib/relocatable.h: Fix a comment.
48393
48394 2008-01-10  Eric Blake  <ebb9@byu.net>
48395
48396         Share two-way algorithm.
48397         * lib/str-two-way.h: New file, merged from...
48398         * lib/memmem.c: ...here...
48399         * lib/strstr.c: ...and here.
48400         * modules/memmem (Files): Use it.
48401         * modules/strstr (Files): Likewise.
48402
48403         Avoid quadratic strstr implementations.
48404         * lib/strstr.c: New file.
48405         * m4/strstr.m4: Likewise.
48406         * modules/strstr: Likewise.
48407         * modules/strstr-tests: Likewise.
48408         * tests/test-strstr.c: Likewise.
48409         * lib/string.in.h (rpl_strstr): Declare.
48410         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
48411         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
48412         * modules/string (Makefile.am): Likewise.
48413         * MODULES.html.sh (string handling): Mention new module.
48414         * doc/functions/strstr.texi (strstr): Document the bug.
48415
48416 2008-01-10  Bruno Haible  <bruno@clisp.org>
48417
48418         * lib/relocatable.h (relocate): State whether result is freshly
48419         allocated or not.
48420         * lib/relocatable.c (relocate): Return a freshly allocated string
48421         instead of a pointer to a privately held string.
48422         Reported by Sylvain Beucler <beuc@gnu.org>.
48423
48424 2008-01-10  Colin Watson  <cjwatson@debian.org>
48425
48426         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
48427         s/S_ISNLK/S_ISLNK/.
48428
48429 2008-01-09  Bruno Haible  <bruno@clisp.org>
48430
48431         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
48432         and other files.
48433         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
48434         if it's only a guess.
48435         * modules/memmem: Simplify by depending on memmem-simple.
48436
48437 2008-01-09  Bruno Haible  <bruno@clisp.org>
48438
48439         Work around OpenBSD 4.0 tdelete() bug.
48440         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
48441         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
48442         macros and don't redefine the enum values.
48443         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
48444         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
48445         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
48446
48447 2008-01-09  Bruno Haible  <bruno@clisp.org>
48448
48449         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
48450         (main): Don't perform the tests if setlocale did not install a UTF-8
48451         locale. Needed on OpenBSD 4.0.
48452         * modules/wcwidth-tests (Depends-on): Add localcharset.
48453
48454 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
48455
48456         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
48457         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
48458         * NEWS: announce this.
48459         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
48460
48461 2008-01-09  Simon Josefsson  <simon@josefsson.org>
48462         and Eric Blake  <ebb9@byu.net>
48463
48464         Add memmem-simple module.
48465         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
48466         (gl_FUNC_MEMMEM): Separate performance from presence checks.
48467         * modules/memmem-simple: New file.
48468         * modules/memmem (Description): Tweak.
48469         * MODULES.html.sh (string handling): Mention new module.
48470         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
48471         addressed by memmem-simple.
48472         * NEWS: Document the difference.
48473
48474 2008-01-09  Eric Blake  <ebb9@byu.net>
48475
48476         Give gcc some memmem optimization hints.
48477         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
48478         (strcasestr): Declare as pure.
48479         * modules/memmem (Maintainer): Claim my implementation.
48480
48481 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48482
48483         Support AIX 6.1 and higher.
48484         * build-aux/config.libpath: Likewise.
48485         * build-aux/config.rpath: Likewise.
48486
48487 2008-01-08  Jim Meyering  <meyering@redhat.com>
48488             Bruno Haible  <bruno@clisp.org>
48489
48490         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
48491         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
48492         Reported by Peter Fales in
48493         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
48494
48495 2008-01-08  Bruno Haible  <bruno@clisp.org>
48496
48497         * modules/unictype/category-of (Depends-on): Add
48498         unictype/category-none.
48499         * modules/unictype/category-and-tests (Depends-on): Add
48500         unictype/category-{L,N,Lu,Nd}.
48501         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
48502         * modules/unictype/category-or-tests (Depends-on): Add
48503         unictype/category-{L,N}.
48504         * modules/unictype/category-name-tests (Depends-on): Add
48505         unictype/category-{Z,Nl}.
48506         Reported by Simon Josefsson.
48507
48508 2008-01-08  Bruno Haible  <bruno@clisp.org>
48509
48510         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
48511         convention better.
48512         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
48513         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
48514         Reported by Peter Miller <millerp@canb.auug.org.au>.
48515
48516 2008-01-08  Eric Blake  <ebb9@byu.net>
48517
48518         Rewrite memmem to guarantee linear complexity without malloc.
48519         * lib/memmem.c (memmem): Use Two-Way rather than
48520         Knuth-Morris-Pratt, to allow O(1) space usage.
48521         (critical_factorization, two_way_short_needle)
48522         (two_way_long_needle): New functions.
48523         (knuth_morris_pratt): Delete.
48524         * modules/memmem (Depends-on): No longer need malloca or stdbool.
48525         Add stdint.
48526         * tests/test-memmem.c (main): Add tests for periodic needle and
48527         sublinear performance.
48528         * doc/functions/memmem.texi (memmem): Document other deficiencies
48529         in cygwin and older glibc.
48530
48531 2008-01-08  Bruno Haible  <bruno@clisp.org>
48532
48533         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
48534         augmentation.
48535
48536 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
48537
48538         Add a configure time option: --disable-acl.
48539         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
48540         AC_ARG_ENABLE(acl).
48541
48542 2008-01-06  Simon Josefsson  <simon@josefsson.org>
48543
48544         * tests/test-localename.c: Don't include obsolete "setenv.h".
48545
48546         * modules/localename-tests (Depends-on): Need unsetenv.
48547
48548 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48549
48550         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
48551
48552 2008-01-06  Colin Watson  <cjwatson@debian.org>
48553
48554         * users.txt: Add man-db.
48555
48556 2008-01-07  Bruno Haible  <bruno@clisp.org>
48557
48558         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
48559         previous section name.
48560
48561 2008-01-07  Bruno Haible  <bruno@clisp.org>
48562
48563         * lib/progname.c (set_program_name): Don't strip off a leading
48564         "lt-" prefix outside a .libs directory.
48565         Suggested by Paul Eggert.
48566
48567 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
48568             Bruno Haible  <bruno@clisp.org>
48569
48570         Improve memory cleanup in 'relocatable' module.
48571         * lib/relocatable.h (compute_curr_prefix): Change return type to
48572         'char *'.
48573         * lib/relocatable.c (compute_curr_prefix): Change return type to
48574         'char *'. Free curr_installdir after use.
48575         (relocate): Free curr_prefix_better after use.
48576         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
48577
48578 2008-01-01  Bruno Haible  <bruno@clisp.org>
48579
48580         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
48581         failure on older glibc systems.
48582         Reported by Peter Fales <psfales@alcatel-lucent.com>.
48583
48584 2008-01-05  Eric Blake  <ebb9@byu.net>
48585
48586         Avoid quadratic system memmem.
48587         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
48588         Reported by Ralf Wildenhues.
48589
48590         Fix memmem test for mingw.
48591         * modules/memmem-tests (configure.ac): Check for alarm.
48592         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
48593         it.
48594         * doc/functions/memmem.texi: New file.
48595         * doc/gnulib.texi (Function Substitutes): Add memmem.
48596         Reported by Bruno Haible.
48597
48598 2008-01-04  Bruno Haible  <bruno@clisp.org>
48599
48600         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
48601         Require gl_HEADER_STRINGS_H_DEFAULTS, not
48602         gl_HEADER_STRING_H_DEFAULTS.
48603
48604 2008-01-04  Eric Blake  <ebb9@byu.net>
48605
48606         Shorten duration of memmem test.
48607         * tests/test-memmem.c (main): Use alarm to declare failure if test
48608         is taking too long.
48609         Reported by Ralf Wildenhues.
48610
48611 2007-12-21  Simon Josefsson  <simon@josefsson.org>
48612
48613         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
48614         string, needed by strerror.
48615
48616 2008-01-03  Colin Watson  <cjwatson@debian.org>
48617             Bruno Haible  <bruno@clisp.org>
48618
48619         * doc/gnulib-tool.texi (Localization): New section.
48620
48621 2008-01-02  Bruno Haible  <bruno@clisp.org>
48622
48623         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
48624         variables to 'unsigned char *' type.
48625         Reported by Paul Eggert.
48626
48627 2008-01-02  Jim Meyering  <jim@meyering.net>
48628
48629         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
48630
48631 2007-12-31  Jim Meyering  <jim@meyering.net>
48632
48633         Avoid use of private FTS type name.
48634         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
48635
48636 2007-12-30  Karl Berry  <karl@gnu.org>
48637
48638         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
48639         work around defect in Texinfo and/or the standalone Info browser.
48640
48641 2007-12-30  Bruno Haible  <bruno@clisp.org>
48642
48643         Unify 5 copies of the KMP code.
48644         * lib/str-kmp.h: New file.
48645         * lib/c-strcasestr.c: Include str-kmp.h.
48646         (knuth_morris_pratt): Remove function.
48647         (c_strcasestr): Update.
48648         * lib/c-strstr.c: Include str-kmp.h.
48649         (knuth_morris_pratt): Remove function.
48650         (c_strcasestr): Update.
48651         * lib/mbscasestr.c: Include str-kmp.h.
48652         (knuth_morris_pratt_unibyte): Remove function.
48653         * lib/mbsstr.c: Include str-kmp.h.
48654         (knuth_morris_pratt_unibyte): Remove function.
48655         * lib/strcasestr.c: Include str-kmp.h.
48656         (knuth_morris_pratt): Remove function.
48657         (strcasestr): Update.
48658         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
48659         * modules/c-strstr (Files): Likewise.
48660         * modules/mbscasestr (Files): Likewise.
48661         * modules/mbsstr (Files): Likewise.
48662         * modules/strcasestr (Files): Likewise.
48663         Suggested by Paul Eggert.
48664
48665 2007-12-30  Bruno Haible  <bruno@clisp.org>
48666
48667         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
48668         defined.
48669
48670 2007-12-30  Bruno Haible  <bruno@clisp.org>
48671
48672         * lib/xmalloca.h: Include xalloc.h.
48673         (xnmalloca): New macro.
48674
48675 2007-12-30  Bruno Haible  <bruno@clisp.org>
48676
48677         * lib/malloca.h (nmalloca): New macro.
48678         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
48679         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
48680         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
48681         knuth_morris_pratt_multibyte): Likewise.
48682         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
48683         knuth_morris_pratt_multibyte): Likewise.
48684         * lib/memmem.c (knuth_morris_pratt): Likewise.
48685         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
48686
48687 2007-12-25  Bruno Haible  <bruno@clisp.org>
48688
48689         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
48690         * lib/glob.c: Don't include openat.h.
48691         (link_exists2_p): Add back the code that deals with the
48692         !GLOB_ALTDIRFUNC case.
48693         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
48694         let it do the filename concatenation.
48695         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
48696         * modules/glob (Depends-on): Remove openat.
48697
48698 2007-12-31  Bruno Haible  <bruno@clisp.org>
48699
48700         * modules/dirfd (License): Change to LGPLv2+.
48701         Approved by Jim Meyering.
48702
48703 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
48704
48705         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
48706         when multiplying M by sizeof (size_t).
48707
48708 2007-12-10  Martin Lambers  <marlam@marlam.de>
48709
48710         Override getpagesize on mingw.
48711         * lib/getpagesize.c: New file.
48712         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
48713         * modules/getpagesize (Files): Add lib/getpagesize.c.
48714         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
48715         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
48716         REPLACE_GETPAGESIZE.
48717         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
48718
48719 2007-12-25  Bruno Haible  <bruno@clisp.org>
48720
48721         * modules/localcharset (Notice): New field.
48722         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
48723         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
48724
48725 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
48726             Bruno Haible  <bruno@clisp.org>
48727
48728         Avoid using the syntax symbol() in formatted documentation.
48729         * MODULES.html.sh (func_module): When replacing symbol() with a
48730         hyperlink, remove the parentheses. Show an error if some remain.
48731         Recognize and render the '...' syntax.
48732         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
48733         Rework. Add paragraph about GCC's inlining.
48734         * doc/alloca.texi: Likewise.
48735         * doc/error.texi: Remove parentheses from symbol reference.
48736         * doc/gnulib-intro.texi: Likewise.
48737         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
48738         * modules/fnmatch (Description): Reword to say "the ... function".
48739         * modules/full-read (Description): Likewise.
48740         * modules/full-write (Description): Likewise.
48741         * modules/safe-read (Description): Likewise.
48742         * modules/safe-write (Description): Likewise.
48743         * modules/strchrnul (Description): Likewise.
48744         * modules/trim (Description): Likewise.
48745         * modules/error (Description): Remove parentheses from symbol
48746         references.
48747         * modules/verror (Description): Likewise.
48748         Reported by Karl Berry.
48749
48750 2007-12-25  Bruno Haible  <bruno@clisp.org>
48751
48752         Fixup after 2007-10-16 commit.
48753         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
48754
48755 2007-12-24  Bruno Haible  <bruno@clisp.org>
48756
48757         Make --enable-relocatable work with DESTDIR.
48758         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
48759         to compute installdir from destprog.
48760         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
48761         also set the RELOC_DESTDIR variable.
48762         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
48763
48764 2007-12-24  Bruno Haible  <bruno@clisp.org>
48765
48766         Fix link error due to xalloc_die().
48767         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
48768         of xreadlink.
48769         * lib/relocwrapper.c: Update comments.
48770         * build-aux/install-reloc: Remove xreadlink.c from file list.
48771         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
48772         xreadlink.c.
48773         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
48774
48775 2007-12-24  Bruno Haible  <bruno@clisp.org>
48776
48777         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
48778         * lib/setenv.h: Remove file.
48779         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
48780         lib/setenv.h.
48781         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
48782         (Depends-on): Add stdlib.
48783         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
48784         gl_FUNC_UNSETENV.
48785         (Include): Replace setenv.h with <stdlib.h>.
48786         * modules/unsetenv: New file.
48787         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
48788         * lib/unsetenv.c: Include <stdlib.h> first.
48789         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
48790         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
48791         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
48792         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
48793         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
48794         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
48795         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
48796         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
48797         * doc/functions/unsetenv.texi: Update.
48798         * modules/xsetenv (Depends-on): Add unsetenv.
48799         * modules/getdate (Depends-on): Likewise.
48800         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
48801         * lib/xsetenv.c: Don't include setenv.h.
48802         * lib/getdate.y: Likewise.
48803         * lib/relocwrapper.c: Likewise.
48804         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
48805         (Depends-on): Add stdlib.
48806         * NEWS: Mention the changes.
48807         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
48808
48809 2007-12-23  Bruno Haible  <bruno@clisp.org>
48810
48811         * lib/memmem.c (memmem): Use lowercase variable names. Tab
48812         indentation.
48813
48814 2007-12-23  Bruno Haible  <bruno@clisp.org>
48815
48816         * lib/c-strcasestr.c: Add more comments.
48817         * lib/c-strstr.c: Likewise.
48818         * lib/mbscasestr.c: Likewise.
48819         * lib/mbsstr.c: Likewise.
48820         * lib/strcasestr.c: Likewise.
48821         * lib/memmem.c: Likewise.
48822
48823 2007-12-23  Bruno Haible  <bruno@clisp.org>
48824
48825         * tests/test-memmem.c: Include <string.h> first.
48826
48827 2007-12-22  Bruno Haible  <bruno@clisp.org>
48828
48829         * gnulib-tool (func_create_testdir): Change $auxdir while generating
48830         the contents of $testsbase.
48831         Reported by Ralf Wildenhues.
48832
48833 2007-12-22  Bruno Haible  <bruno@clisp.org>
48834
48835         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
48836         two variables local_ldadd_before, local_ldadd_last.
48837
48838 2007-12-20  Eric Blake  <ebb9@byu.net>
48839
48840         Work around circular library issue when cross-compiling.
48841         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
48842         that progname.o does not need to pull in rpl_memcmp.
48843
48844 2007-12-19  Eric Blake  <ebb9@byu.net>
48845
48846         Fix memmem to avoid O(n^2) worst-case complexity.
48847         * lib/memmem.c (knuth_morris_pratt): New function.
48848         (memmem): Use it if first few naive iterations fail.
48849         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
48850         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
48851         * modules/memchr (License): Likewise.
48852         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
48853         malloca.
48854         * tests/test-memmem.c: Rewrite, borrowing ideas from
48855         test-mbsstr1.c; the old version wouldn't even compile!
48856         * modules/memmem-tests: New file.
48857         * lib/string.in.h (rpl_memmem): Add declaration.
48858         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
48859         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
48860         REPLACE_MEMMEM.
48861
48862 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
48863
48864         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
48865         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
48866         before any system include files, and undef after them all.  This
48867         should fix a problem on VMS reported by John E. Malmberg in
48868         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
48869
48870 2007-12-17  Eric Blake  <ebb9@byu.net>
48871
48872         Revert addition of verify, for BSD/OS.
48873         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
48874         can't handle large files, for the sake of obsolete platforms.
48875         * modules/fseeko (Depends-on): Remove verify.
48876         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
48877         * doc/functions/ftello.texi (ftello): Likewise.
48878         * doc/functions/fgetpos.texi (fgetpos): Likewise.
48879         Reported by Larry Jones.
48880
48881 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
48882
48883         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
48884         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
48885
48886 2007-12-17  Jim Meyering  <meyering@redhat.com>
48887
48888         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
48889         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
48890         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
48891         * modules/getcwd (Depends-on): Add openat.
48892         Reported by Petr Salinger.
48893
48894 2007-12-17  Bruno Haible  <bruno@clisp.org>
48895
48896         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
48897         avoid a segmentation fault of the configure test on x86_64 systems.
48898
48899 2007-12-15  Jim Meyering  <meyering@redhat.com>
48900
48901         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
48902
48903 2007-12-13  Eric Blake  <ebb9@byu.net>
48904
48905         Another fseek test.
48906         * tests/test-fseek.c (main): Also test ungetc handling.
48907         * tests/test-fseeko.c (main): Likewise.
48908         * modules/fseeko (Depends-on): Add verify.
48909         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
48910         large.
48911         Reported by Larry Jones.
48912
48913         Fix fseeko on mingw.
48914         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
48915         seek.
48916
48917         Beef up fseek tests.
48918         * tests/test-fseek.c (main): Also test eof handling.
48919         * tests/test-fseeko.c (main): Likewise.
48920         Reported by Larry Jones.
48921
48922 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
48923
48924         Fix fseeko on BSD-based platforms.
48925         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
48926         successful seek.
48927
48928 2007-12-12  Eric Blake  <ebb9@byu.net>
48929
48930         Allow circular dependency of separate libtests.a
48931         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
48932         when use_libtests.
48933
48934 2007-12-11  Eric Blake  <ebb9@byu.net>
48935
48936         Fix bug with -0.0L in previous patch.
48937         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
48938         * tests/test-isnan.c (main): Also test on zeroes.
48939         * tests/test-isnanf.c (main): Likewise.
48940         * tests/test-isnanl.h (main): Likewise.
48941
48942         Detect pseudo-denormals on x86 even when cross-compiling.
48943         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
48944         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
48945         invalid bit patterns that happen to satisfy ==.
48946
48947         Avoid link failures with separate libtests.a.
48948         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
48949         last, to satisfy circular dependencies.
48950
48951 2007-12-11  Eric Blake  <ebb9@byu.net>
48952         and Bruno Haible  <bruno@clisp.org>
48953
48954         Fix OpenBSD 4.0 <float.h> handling of long double.
48955         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
48956         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
48957         * doc/headers/float.texi (float.h): Document OpenBSD bug.
48958
48959 2007-12-11  Jim Meyering  <meyering@redhat.com>
48960
48961         * users.txt: Add libvirt.
48962
48963         Support versions of autoconf prior to 2.59c.
48964         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
48965         if it is not already defined.
48966
48967 2007-12-09  Bruno Haible  <bruno@clisp.org>
48968
48969         Let 'gnulib-tool --import' collect sources needed for the tests in
48970         tests/ rather than in lib/.
48971         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
48972         argument. If true, add rules to generate libtests.a, and put libtests.a
48973         into $(LDADD). Consider source files in subdirectories and set
48974         uses_subdirs.
48975         (func_emit_initmacro_start, func_emit_initmacro_end,
48976         func_emit_initmacro_done): Pass all arguments explicitly.
48977         (func_import): Determine two module lists main_modules,
48978         testsrelated_modules. Determine use_libtests. Determine two variables
48979         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
48980         instead of just sed_transform_lib_file. Determine two variables
48981         main_files and testsrelated_files. Compute 'files' as the union of
48982         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
48983         func_add_or_update. In the generated gnulib-comp.m4, collect the
48984         object files for tests/ in different variables than those for lib/.
48985         Substitute LIBTESTS_LIBDEPS.
48986         (func_create_testdir): Combine the uses_subdirs results from
48987         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
48988
48989 2007-12-09  Bruno Haible  <bruno@clisp.org>
48990
48991         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
48992         the build-aux directory.
48993
48994 2007-12-09  Bruno Haible  <bruno@clisp.org>
48995
48996         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
48997         introduced on 2006-09-09.
48998
48999 2007-12-07  Jim Meyering  <meyering@redhat.com>
49000
49001         Let these macros work also with autoconf-2.59.
49002         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
49003         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
49004         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
49005
49006 2007-12-06  Jim Meyering  <meyering@redhat.com>
49007
49008         Avoid a configure-time syntax error in gl_FUNC_ACL.
49009         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
49010         function in each branch, before testing the cache variable.
49011
49012 2007-12-04  Eric Blake  <ebb9@byu.net>
49013
49014         Make scripts executable.
49015         * build-aux/config.guess: Add execute permissions.
49016         * build-aux/config.sub: Likewise.
49017         * build-aux/gendocs.sh: Likewise.
49018
49019         Fix frexp on mingw.
49020         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
49021         cross-compiling.
49022         * doc/functions/frexp.texi (frexp): Document the bug.
49023
49024         Make cygwin fseeko check more reliable.
49025         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
49026         version numbers, rather than unrelated feature check.
49027         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
49028         * doc/functions/ftello.texi (ftello): Likewise.
49029         Reported by Bruno Haible.
49030
49031         * m4/strerror.m4: Bump version number.
49032
49033 2007-12-03  Bruno Haible  <bruno@clisp.org>
49034
49035         * doc/functions/mprotect.texi: Mention the mingw problem.
49036
49037 2007-12-03  Eric Blake  <ebb9@byu.net>
49038
49039         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
49040         REPLACE_STRERROR is initialized before this macro.
49041
49042 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
49043
49044         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
49045         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
49046         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
49047         put -lsec in even for programs other than 'ls'.  This fixes a problem
49048         for gettext reported by Bruno Haible in
49049         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
49050         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
49051         Add support for Solaris 10.  This isn't efficient, but should get the
49052         job done for now.
49053
49054 2007-12-03  James Youngman  <jay@gnu.org>
49055
49056         * doc/regexprops-generic.texi: change "an close-group" to "a
49057         close-group" and "illegal" to "not allowed".
49058
49059 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49060
49061         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
49062         pr_byname.h. Needed for the rare case when the maintainer has done
49063         "make maintainer-clean" in the source directory and then attempts a
49064         build outside the source directory.
49065         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
49066         scripts_byname.h.
49067
49068 2007-12-02  Martin Lambers <marlam@marlam.de>
49069             Bruno Haible  <bruno@clisp.org>
49070
49071         * lib/getpagesize.h: Remove file.
49072         * lib/unistd.in.h: Include declaration of getpagesize here.
49073         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
49074         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
49075         HAVE_SYS_PARAM_H.
49076         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
49077         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
49078         * modules/getpagesize (Files): Remove lib/getpagesize.h.
49079         (Depends-on): Add unistd.
49080         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
49081         (Include): Use <unistd.h> instead of getpagesize.h.
49082         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
49083         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
49084         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
49085         gl_GETPAGESIZE invocation, already handled by module dependency.
49086         * lib/pagealign_alloc.c: Don't include getpagesize.h.
49087
49088 2007-12-02  Bruno Haible  <bruno@clisp.org>
49089
49090         * modules/strings-tests: New file.
49091         * tests/test-strings.c: New file.
49092
49093         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
49094         * lib/strings.in.h: New file.
49095         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
49096         * m4/strings_h.m4: New file.
49097         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
49098         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
49099         * modules/strings: New file.
49100         * modules/string (Makefile.am): Update.
49101         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
49102         Reported by Karl Berry.
49103
49104 2007-12-01  Eric Blake  <ebb9@byu.net>
49105
49106         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
49107         accomodate fix in cygwin 1.5.25.
49108
49109 2007-12-01  Jim Meyering  <meyering@redhat.com>
49110
49111         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
49112         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
49113         that would inhibit utf8-optimization of a regexp containing line-
49114         or buffer-anchors, e.g., `^', `$'.
49115
49116 2007-11-30  Bruno Haible  <bruno@clisp.org>
49117
49118         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
49119         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
49120         glthread_recursive_lock_init.
49121         * lib/lock.c (glthread_recursive_lock_init)
49122         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
49123         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
49124
49125 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
49126
49127         New function qset_acl, like set_acl but with syscall semantics.
49128         * lib/acl.h (qset_acl): New decl.
49129         * lib/acl.c (qset_acl): New function.
49130         (set_acl): Use new function.  Use more-consistent diagnostics.
49131
49132 2007-11-28  Jim Meyering  <meyering@redhat.com>
49133
49134         * modules/physmem (License): Change from GPL to LGPLv2+.
49135
49136 2007-11-26  Bruno Haible  <bruno@clisp.org>
49137
49138         * lib/vasnprintf.c (decode_long_double): Don't abort if the
49139         'long double' type has excess precision.
49140         Reported by Jim Meyering in
49141         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
49142
49143 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49144
49145         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
49146         Sync from <http://gnu.org/licenses>.
49147         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
49148         with license text from same location.
49149         * doc/maintain.texi, doc/standards.texi:  Sync from
49150         <http://savannah.gnu.org/projects/gnustandards>.
49151
49152 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
49153         and Jim Meyering  <meyering@redhat.com>
49154
49155         Adjust getdate' grammar to accept a slightly more regular language.
49156         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
49157         Before, the former was rejected.
49158         * lib/getdate.y (digits_to_date_time): New function, factored
49159         out of ...
49160         (number): ...here.  Just call digits_to_date_time.
49161         (hybrid): New non-terminal to handle an <unsigned number,
49162         signed relative offset> sequence consistently.
49163
49164 2007-11-18  Jim Meyering  <meyering@redhat.com>
49165
49166         Pull my changes from coreutils:
49167         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
49168         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
49169         use of $gnulib_tool_option_extras, so that it's separated from the
49170         preceding argument.
49171
49172         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
49173         * build-aux/bootstrap (cp_mark_as_generated): Create any required
49174         parent destination directories before copying a file into place.
49175
49176 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
49177
49178         bootstrap: work also with 4-argument variant of AC_INIT
49179         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
49180
49181 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
49182
49183         Port test-getaddrinfo to Solaris.
49184         Problem reported by Bruno Haible in
49185         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
49186         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
49187         explanation of setting 'hints'.
49188         Don't reject an implementation merely because it returns EAI_SERVICE.
49189         (EAI_SERVICE): Define to 0 if not defined.
49190
49191 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
49192
49193         The license of gnu-make and posix-shell is now "GPLed build tool".
49194         * modules/gnu-make (License): Likewise.
49195         * modules/posix-shell (License): Likewise.
49196
49197         New module posix-shell, for determining a POSIX shell
49198         or perhaps something that is close enough to a POSIX shell.
49199         * m4/posix-shell.m4: New file.
49200         * modules/posix-shell: New file.
49201
49202         * MODULES.html.sh: Mention new module.
49203
49204         New module gnu-make, for determining whether we're using GNU Make.
49205         * m4/gnu-make.m4: New file.
49206         * modules/gnu-make: New file.
49207         * MODULES.html.sh: Mention new module.
49208
49209 2007-11-14  Jim Meyering  <meyering@redhat.com>
49210
49211         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
49212         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
49213         use this macro to create a function _definition_.
49214         Remove useless "#undef ARGMATCH_DIE".
49215
49216 2007-11-14  Bruno Haible  <bruno@clisp.org>
49217
49218         * lib/config.charset: Update for OpenBSD 4.1.
49219         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
49220
49221 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
49222
49223         Document 64-bit #if problems in stdint.texi.
49224         * doc/headers/stdint.texi (stdint.h): Mention problems with
49225         64-bit-#if, and how to work around them.
49226
49227         Don't insist on 'long long int' support in the preprocessor.  It
49228         breaks too many things.  For example, PRIdMAX still uses a 'long
49229         long int' format with the latest Sun compiler, even though
49230         HAVE_LONG_LONG_INT isn't defined due to that compiler's
49231         preprocessor problem.  This causes the latest coreutils to dump
49232         core on Solaris 10 sparc with the Sun C compiler.
49233         Instead, fix the 2007-10-16 problem in a different way, by evaluating
49234         the troublesome expressions at configure-time, not at #if-time.
49235         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
49236         preprocessor.
49237         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
49238         compile-time C checks, done at 'configure'-time.
49239         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
49240         * modules/inttypes (Makefile): Substitute the new symbols that
49241         gl_INTTYPES_H now generates.
49242         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
49243
49244 2007-11-12  Bruno Haible  <bruno@clisp.org>
49245
49246         Tests for Unicode character classification functions.
49247
49248         * modules/unictype/bidicategory-byname-tests: New file.
49249         * modules/unictype/bidicategory-name-tests: New file.
49250         * modules/unictype/bidicategory-of-tests: New file.
49251         * modules/unictype/bidicategory-test-tests: New file.
49252         * modules/unictype/block-list-tests: New file.
49253         * modules/unictype/block-of-tests: New file.
49254         * modules/unictype/block-test-tests: New file.
49255         * modules/unictype/category-C-tests: New file.
49256         * modules/unictype/category-Cc-tests: New file.
49257         * modules/unictype/category-Cf-tests: New file.
49258         * modules/unictype/category-Cn-tests: New file.
49259         * modules/unictype/category-Co-tests: New file.
49260         * modules/unictype/category-Cs-tests: New file.
49261         * modules/unictype/category-L-tests: New file.
49262         * modules/unictype/category-Ll-tests: New file.
49263         * modules/unictype/category-Lm-tests: New file.
49264         * modules/unictype/category-Lo-tests: New file.
49265         * modules/unictype/category-Lt-tests: New file.
49266         * modules/unictype/category-Lu-tests: New file.
49267         * modules/unictype/category-M-tests: New file.
49268         * modules/unictype/category-Mc-tests: New file.
49269         * modules/unictype/category-Me-tests: New file.
49270         * modules/unictype/category-Mn-tests: New file.
49271         * modules/unictype/category-N-tests: New file.
49272         * modules/unictype/category-Nd-tests: New file.
49273         * modules/unictype/category-Nl-tests: New file.
49274         * modules/unictype/category-No-tests: New file.
49275         * modules/unictype/category-P-tests: New file.
49276         * modules/unictype/category-Pc-tests: New file.
49277         * modules/unictype/category-Pd-tests: New file.
49278         * modules/unictype/category-Pe-tests: New file.
49279         * modules/unictype/category-Pf-tests: New file.
49280         * modules/unictype/category-Pi-tests: New file.
49281         * modules/unictype/category-Po-tests: New file.
49282         * modules/unictype/category-Ps-tests: New file.
49283         * modules/unictype/category-S-tests: New file.
49284         * modules/unictype/category-Sc-tests: New file.
49285         * modules/unictype/category-Sk-tests: New file.
49286         * modules/unictype/category-Sm-tests: New file.
49287         * modules/unictype/category-So-tests: New file.
49288         * modules/unictype/category-Z-tests: New file.
49289         * modules/unictype/category-Zl-tests: New file.
49290         * modules/unictype/category-Zp-tests: New file.
49291         * modules/unictype/category-Zs-tests: New file.
49292         * modules/unictype/category-and-not-tests: New file.
49293         * modules/unictype/category-and-tests: New file.
49294         * modules/unictype/category-byname-tests: New file.
49295         * modules/unictype/category-name-tests: New file.
49296         * modules/unictype/category-none-tests: New file.
49297         * modules/unictype/category-of-tests: New file.
49298         * modules/unictype/category-or-tests: New file.
49299         * modules/unictype/category-test-withtable-tests: New file.
49300         * modules/unictype/combining-class-tests: New file.
49301         * modules/unictype/ctype-alnum-tests: New file.
49302         * modules/unictype/ctype-alpha-tests: New file.
49303         * modules/unictype/ctype-blank-tests: New file.
49304         * modules/unictype/ctype-cntrl-tests: New file.
49305         * modules/unictype/ctype-digit-tests: New file.
49306         * modules/unictype/ctype-graph-tests: New file.
49307         * modules/unictype/ctype-lower-tests: New file.
49308         * modules/unictype/ctype-print-tests: New file.
49309         * modules/unictype/ctype-punct-tests: New file.
49310         * modules/unictype/ctype-space-tests: New file.
49311         * modules/unictype/ctype-upper-tests: New file.
49312         * modules/unictype/ctype-xdigit-tests: New file.
49313         * modules/unictype/decimal-digit-tests: New file.
49314         * modules/unictype/digit-tests: New file.
49315         * modules/unictype/mirror-tests: New file.
49316         * modules/unictype/numeric-tests: New file.
49317         * modules/unictype/property-alphabetic-tests: New file.
49318         * modules/unictype/property-ascii-hex-digit-tests: New file.
49319         * modules/unictype/property-bidi-arabic-digit-tests: New file.
49320         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
49321         * modules/unictype/property-bidi-block-separator-tests: New file.
49322         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
49323         * modules/unictype/property-bidi-common-separator-tests: New file.
49324         * modules/unictype/property-bidi-control-tests: New file.
49325         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
49326         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
49327         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
49328         * modules/unictype/property-bidi-european-digit-tests: New file.
49329         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
49330         * modules/unictype/property-bidi-left-to-right-tests: New file.
49331         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
49332         * modules/unictype/property-bidi-other-neutral-tests: New file.
49333         * modules/unictype/property-bidi-pdf-tests: New file.
49334         * modules/unictype/property-bidi-segment-separator-tests: New file.
49335         * modules/unictype/property-bidi-whitespace-tests: New file.
49336         * modules/unictype/property-byname-tests: New file.
49337         * modules/unictype/property-combining-tests: New file.
49338         * modules/unictype/property-composite-tests: New file.
49339         * modules/unictype/property-currency-symbol-tests: New file.
49340         * modules/unictype/property-dash-tests: New file.
49341         * modules/unictype/property-decimal-digit-tests: New file.
49342         * modules/unictype/property-default-ignorable-code-point-tests: New file.
49343         * modules/unictype/property-deprecated-tests: New file.
49344         * modules/unictype/property-diacritic-tests: New file.
49345         * modules/unictype/property-extender-tests: New file.
49346         * modules/unictype/property-format-control-tests: New file.
49347         * modules/unictype/property-grapheme-base-tests: New file.
49348         * modules/unictype/property-grapheme-extend-tests: New file.
49349         * modules/unictype/property-grapheme-link-tests: New file.
49350         * modules/unictype/property-hex-digit-tests: New file.
49351         * modules/unictype/property-hyphen-tests: New file.
49352         * modules/unictype/property-id-continue-tests: New file.
49353         * modules/unictype/property-id-start-tests: New file.
49354         * modules/unictype/property-ideographic-tests: New file.
49355         * modules/unictype/property-ids-binary-operator-tests: New file.
49356         * modules/unictype/property-ids-trinary-operator-tests: New file.
49357         * modules/unictype/property-ignorable-control-tests: New file.
49358         * modules/unictype/property-iso-control-tests: New file.
49359         * modules/unictype/property-join-control-tests: New file.
49360         * modules/unictype/property-left-of-pair-tests: New file.
49361         * modules/unictype/property-line-separator-tests: New file.
49362         * modules/unictype/property-logical-order-exception-tests: New file.
49363         * modules/unictype/property-lowercase-tests: New file.
49364         * modules/unictype/property-math-tests: New file.
49365         * modules/unictype/property-non-break-tests: New file.
49366         * modules/unictype/property-not-a-character-tests: New file.
49367         * modules/unictype/property-numeric-tests: New file.
49368         * modules/unictype/property-other-alphabetic-tests: New file.
49369         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
49370         * modules/unictype/property-other-grapheme-extend-tests: New file.
49371         * modules/unictype/property-other-id-continue-tests: New file.
49372         * modules/unictype/property-other-id-start-tests: New file.
49373         * modules/unictype/property-other-lowercase-tests: New file.
49374         * modules/unictype/property-other-math-tests: New file.
49375         * modules/unictype/property-other-uppercase-tests: New file.
49376         * modules/unictype/property-paired-punctuation-tests: New file.
49377         * modules/unictype/property-paragraph-separator-tests: New file.
49378         * modules/unictype/property-pattern-syntax-tests: New file.
49379         * modules/unictype/property-pattern-white-space-tests: New file.
49380         * modules/unictype/property-private-use-tests: New file.
49381         * modules/unictype/property-punctuation-tests: New file.
49382         * modules/unictype/property-quotation-mark-tests: New file.
49383         * modules/unictype/property-radical-tests: New file.
49384         * modules/unictype/property-sentence-terminal-tests: New file.
49385         * modules/unictype/property-soft-dotted-tests: New file.
49386         * modules/unictype/property-space-tests: New file.
49387         * modules/unictype/property-terminal-punctuation-tests: New file.
49388         * modules/unictype/property-test-tests: New file.
49389         * modules/unictype/property-titlecase-tests: New file.
49390         * modules/unictype/property-unassigned-code-value-tests: New file.
49391         * modules/unictype/property-unified-ideograph-tests: New file.
49392         * modules/unictype/property-uppercase-tests: New file.
49393         * modules/unictype/property-variation-selector-tests: New file.
49394         * modules/unictype/property-white-space-tests: New file.
49395         * modules/unictype/property-xid-continue-tests: New file.
49396         * modules/unictype/property-xid-start-tests: New file.
49397         * modules/unictype/property-zero-width-tests: New file.
49398         * modules/unictype/scripts-tests: New file.
49399         * modules/unictype/syntax-c-ident-tests: New file.
49400         * modules/unictype/syntax-c-whitespace-tests: New file.
49401         * modules/unictype/syntax-java-ident-tests: New file.
49402         * modules/unictype/syntax-java-whitespace-tests: New file.
49403         * tests/unictype/test-bidi_byname.c: New file.
49404         * tests/unictype/test-bidi_name.c: New file.
49405         * tests/unictype/test-bidi_of.c: New file.
49406         * tests/unictype/test-bidi_test.c: New file.
49407         * tests/unictype/test-block_list.c: New file.
49408         * tests/unictype/test-block_of.c: New file.
49409         * tests/unictype/test-block_test.c: New file.
49410         * tests/unictype/test-categ_and.c: New file.
49411         * tests/unictype/test-categ_and_not.c: New file.
49412         * tests/unictype/test-categ_byname.c: New file.
49413         * tests/unictype/test-categ_name.c: New file.
49414         * tests/unictype/test-categ_none.c: New file.
49415         * tests/unictype/test-categ_of.c: New file.
49416         * tests/unictype/test-categ_or.c: New file.
49417         * tests/unictype/test-categ_test_withtable.c: New file.
49418         * tests/unictype/test-combining.c: New file.
49419         * tests/unictype/test-decdigit.c: New file.
49420         * tests/unictype/test-digit.c: New file.
49421         * tests/unictype/test-mirror.c: New file.
49422         * tests/unictype/test-numeric.c: New file.
49423         * tests/unictype/test-pr_byname.c: New file.
49424         * tests/unictype/test-pr_test.c: New file.
49425         * tests/unictype/test-predicate-part1.h: New file.
49426         * tests/unictype/test-predicate-part2.h: New file.
49427         * tests/unictype/test-scripts.c: New file.
49428         * tests/unictype/test-sy_c_ident.c: New file.
49429         * tests/unictype/test-sy_java_ident.c: New file.
49430
49431         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
49432         for Unicode 5.0.0.
49433         * tests/unictype/test-categ_Cc.c: Likewise.
49434         * tests/unictype/test-categ_Cf.c: Likewise.
49435         * tests/unictype/test-categ_Cn.c: Likewise.
49436         * tests/unictype/test-categ_Co.c: Likewise.
49437         * tests/unictype/test-categ_Cs.c: Likewise.
49438         * tests/unictype/test-categ_L.c: Likewise.
49439         * tests/unictype/test-categ_Ll.c: Likewise.
49440         * tests/unictype/test-categ_Lm.c: Likewise.
49441         * tests/unictype/test-categ_Lo.c: Likewise.
49442         * tests/unictype/test-categ_Lt.c: Likewise.
49443         * tests/unictype/test-categ_Lu.c: Likewise.
49444         * tests/unictype/test-categ_M.c: Likewise.
49445         * tests/unictype/test-categ_Mc.c: Likewise.
49446         * tests/unictype/test-categ_Me.c: Likewise.
49447         * tests/unictype/test-categ_Mn.c: Likewise.
49448         * tests/unictype/test-categ_N.c: Likewise.
49449         * tests/unictype/test-categ_Nd.c: Likewise.
49450         * tests/unictype/test-categ_Nl.c: Likewise.
49451         * tests/unictype/test-categ_No.c: Likewise.
49452         * tests/unictype/test-categ_P.c: Likewise.
49453         * tests/unictype/test-categ_Pc.c: Likewise.
49454         * tests/unictype/test-categ_Pd.c: Likewise.
49455         * tests/unictype/test-categ_Pe.c: Likewise.
49456         * tests/unictype/test-categ_Pf.c: Likewise.
49457         * tests/unictype/test-categ_Pi.c: Likewise.
49458         * tests/unictype/test-categ_Po.c: Likewise.
49459         * tests/unictype/test-categ_Ps.c: Likewise.
49460         * tests/unictype/test-categ_S.c: Likewise.
49461         * tests/unictype/test-categ_Sc.c: Likewise.
49462         * tests/unictype/test-categ_Sk.c: Likewise.
49463         * tests/unictype/test-categ_Sm.c: Likewise.
49464         * tests/unictype/test-categ_So.c: Likewise.
49465         * tests/unictype/test-categ_Z.c: Likewise.
49466         * tests/unictype/test-categ_Zl.c: Likewise.
49467         * tests/unictype/test-categ_Zp.c: Likewise.
49468         * tests/unictype/test-categ_Zs.c: Likewise.
49469         * tests/unictype/test-ctype_alnum.c: Likewise.
49470         * tests/unictype/test-ctype_alpha.c: Likewise.
49471         * tests/unictype/test-ctype_blank.c: Likewise.
49472         * tests/unictype/test-ctype_cntrl.c: Likewise.
49473         * tests/unictype/test-ctype_digit.c: Likewise.
49474         * tests/unictype/test-ctype_graph.c: Likewise.
49475         * tests/unictype/test-ctype_lower.c: Likewise.
49476         * tests/unictype/test-ctype_print.c: Likewise.
49477         * tests/unictype/test-ctype_punct.c: Likewise.
49478         * tests/unictype/test-ctype_space.c: Likewise.
49479         * tests/unictype/test-ctype_upper.c: Likewise.
49480         * tests/unictype/test-ctype_xdigit.c: Likewise.
49481         * tests/unictype/test-decdigit.h: Likewise.
49482         * tests/unictype/test-digit.h: Likewise.
49483         * tests/unictype/test-numeric.h: Likewise.
49484         * tests/unictype/test-pr_alphabetic.c: Likewise.
49485         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
49486         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
49487         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
49488         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
49489         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
49490         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
49491         * tests/unictype/test-pr_bidi_control.c: Likewise.
49492         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
49493         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
49494         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
49495         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
49496         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
49497         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
49498         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
49499         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
49500         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
49501         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
49502         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
49503         * tests/unictype/test-pr_combining.c: Likewise.
49504         * tests/unictype/test-pr_composite.c: Likewise.
49505         * tests/unictype/test-pr_currency_symbol.c: Likewise.
49506         * tests/unictype/test-pr_dash.c: Likewise.
49507         * tests/unictype/test-pr_decimal_digit.c: Likewise.
49508         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
49509         * tests/unictype/test-pr_deprecated.c: Likewise.
49510         * tests/unictype/test-pr_diacritic.c: Likewise.
49511         * tests/unictype/test-pr_extender.c: Likewise.
49512         * tests/unictype/test-pr_format_control.c: Likewise.
49513         * tests/unictype/test-pr_grapheme_base.c: Likewise.
49514         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
49515         * tests/unictype/test-pr_grapheme_link.c: Likewise.
49516         * tests/unictype/test-pr_hex_digit.c: Likewise.
49517         * tests/unictype/test-pr_hyphen.c: Likewise.
49518         * tests/unictype/test-pr_id_continue.c: Likewise.
49519         * tests/unictype/test-pr_id_start.c: Likewise.
49520         * tests/unictype/test-pr_ideographic.c: Likewise.
49521         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
49522         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
49523         * tests/unictype/test-pr_ignorable_control.c: Likewise.
49524         * tests/unictype/test-pr_iso_control.c: Likewise.
49525         * tests/unictype/test-pr_join_control.c: Likewise.
49526         * tests/unictype/test-pr_left_of_pair.c: Likewise.
49527         * tests/unictype/test-pr_line_separator.c: Likewise.
49528         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
49529         * tests/unictype/test-pr_lowercase.c: Likewise.
49530         * tests/unictype/test-pr_math.c: Likewise.
49531         * tests/unictype/test-pr_non_break.c: Likewise.
49532         * tests/unictype/test-pr_not_a_character.c: Likewise.
49533         * tests/unictype/test-pr_numeric.c: Likewise.
49534         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
49535         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
49536         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
49537         * tests/unictype/test-pr_other_id_continue.c: Likewise.
49538         * tests/unictype/test-pr_other_id_start.c: Likewise.
49539         * tests/unictype/test-pr_other_lowercase.c: Likewise.
49540         * tests/unictype/test-pr_other_math.c: Likewise.
49541         * tests/unictype/test-pr_other_uppercase.c: Likewise.
49542         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
49543         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
49544         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
49545         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
49546         * tests/unictype/test-pr_private_use.c: Likewise.
49547         * tests/unictype/test-pr_punctuation.c: Likewise.
49548         * tests/unictype/test-pr_quotation_mark.c: Likewise.
49549         * tests/unictype/test-pr_radical.c: Likewise.
49550         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
49551         * tests/unictype/test-pr_soft_dotted.c: Likewise.
49552         * tests/unictype/test-pr_space.c: Likewise.
49553         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
49554         * tests/unictype/test-pr_titlecase.c: Likewise.
49555         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
49556         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
49557         * tests/unictype/test-pr_uppercase.c: Likewise.
49558         * tests/unictype/test-pr_variation_selector.c: Likewise.
49559         * tests/unictype/test-pr_white_space.c: Likewise.
49560         * tests/unictype/test-pr_xid_continue.c: Likewise.
49561         * tests/unictype/test-pr_xid_start.c: Likewise.
49562         * tests/unictype/test-pr_zero_width.c: Likewise.
49563         * tests/unictype/test-sy_c_whitespace.c: Likewise.
49564         * tests/unictype/test-sy_java_whitespace.c: Likewise.
49565
49566 2007-11-12  Bruno Haible  <bruno@clisp.org>
49567
49568         Unicode character classification functions.
49569         * lib/unictype.h: New file.
49570         * modules/unictype/base: New file.
49571         * modules/unictype/category-L: New file.
49572         * modules/unictype/category-Lu: New file.
49573         * modules/unictype/category-Ll: New file.
49574         * modules/unictype/category-Lt: New file.
49575         * modules/unictype/category-Lm: New file.
49576         * modules/unictype/category-Lo: New file.
49577         * modules/unictype/category-M: New file.
49578         * modules/unictype/category-Mn: New file.
49579         * modules/unictype/category-Mc: New file.
49580         * modules/unictype/category-Me: New file.
49581         * modules/unictype/category-N: New file.
49582         * modules/unictype/category-Nd: New file.
49583         * modules/unictype/category-Nl: New file.
49584         * modules/unictype/category-No: New file.
49585         * modules/unictype/category-P: New file.
49586         * modules/unictype/category-Pc: New file.
49587         * modules/unictype/category-Pd: New file.
49588         * modules/unictype/category-Ps: New file.
49589         * modules/unictype/category-Pe: New file.
49590         * modules/unictype/category-Pi: New file.
49591         * modules/unictype/category-Pf: New file.
49592         * modules/unictype/category-Po: New file.
49593         * modules/unictype/category-S: New file.
49594         * modules/unictype/category-Sm: New file.
49595         * modules/unictype/category-Sc: New file.
49596         * modules/unictype/category-Sk: New file.
49597         * modules/unictype/category-So: New file.
49598         * modules/unictype/category-Z: New file.
49599         * modules/unictype/category-Zs: New file.
49600         * modules/unictype/category-Zl: New file.
49601         * modules/unictype/category-Zp: New file.
49602         * modules/unictype/category-C: New file.
49603         * modules/unictype/category-Cc: New file.
49604         * modules/unictype/category-Cf: New file.
49605         * modules/unictype/category-Cs: New file.
49606         * modules/unictype/category-Co: New file.
49607         * modules/unictype/category-Cn: New file.
49608         * modules/unictype/category-or: New file.
49609         * modules/unictype/category-of: New file.
49610         * modules/unictype/category-test: New file.
49611         * modules/unictype/category-test-withtable: New file.
49612         * modules/unictype/category-byname: New file.
49613         * modules/unictype/category-none: New file.
49614         * modules/unictype/category-and: New file.
49615         * modules/unictype/category-and-not: New file.
49616         * modules/unictype/category-name: New file.
49617         * modules/unictype/combining-class: New file.
49618         * modules/unictype/category-all: New file.
49619         * modules/unictype/bidicategory-all: New file.
49620         * modules/unictype/bidicategory-byname: New file.
49621         * modules/unictype/bidicategory-name: New file.
49622         * modules/unictype/bidicategory-of: New file.
49623         * modules/unictype/bidicategory-test: New file.
49624         * modules/unictype/decimal-digit: New file.
49625         * modules/unictype/digit: New file.
49626         * modules/unictype/numeric: New file.
49627         * modules/unictype/mirror: New file.
49628         * modules/unictype/property-white-space: New file.
49629         * modules/unictype/property-alphabetic: New file.
49630         * modules/unictype/property-other-alphabetic: New file.
49631         * modules/unictype/property-not-a-character: New file.
49632         * modules/unictype/property-default-ignorable-code-point: New file.
49633         * modules/unictype/property-other-default-ignorable-code-point: New
49634         file.
49635         * modules/unictype/property-deprecated: New file.
49636         * modules/unictype/property-logical-order-exception: New file.
49637         * modules/unictype/property-variation-selector: New file.
49638         * modules/unictype/property-private-use: New file.
49639         * modules/unictype/property-unassigned-code-value: New file.
49640         * modules/unictype/property-uppercase: New file.
49641         * modules/unictype/property-other-uppercase: New file.
49642         * modules/unictype/property-lowercase: New file.
49643         * modules/unictype/property-other-lowercase: New file.
49644         * modules/unictype/property-titlecase: New file.
49645         * modules/unictype/property-soft-dotted: New file.
49646         * modules/unictype/property-id-start: New file.
49647         * modules/unictype/property-other-id-start: New file.
49648         * modules/unictype/property-id-continue: New file.
49649         * modules/unictype/property-other-id-continue: New file.
49650         * modules/unictype/property-xid-start: New file.
49651         * modules/unictype/property-xid-continue: New file.
49652         * modules/unictype/property-pattern-white-space: New file.
49653         * modules/unictype/property-pattern-syntax: New file.
49654         * modules/unictype/property-join-control: New file.
49655         * modules/unictype/property-grapheme-base: New file.
49656         * modules/unictype/property-grapheme-extend: New file.
49657         * modules/unictype/property-other-grapheme-extend: New file.
49658         * modules/unictype/property-grapheme-link: New file.
49659         * modules/unictype/property-bidi-control: New file.
49660         * modules/unictype/property-bidi-left-to-right: New file.
49661         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
49662         * modules/unictype/property-bidi-arabic-right-to-left: New file.
49663         * modules/unictype/property-bidi-european-digit: New file.
49664         * modules/unictype/property-bidi-eur-num-separator: New file.
49665         * modules/unictype/property-bidi-eur-num-terminator: New file.
49666         * modules/unictype/property-bidi-arabic-digit: New file.
49667         * modules/unictype/property-bidi-common-separator: New file.
49668         * modules/unictype/property-bidi-block-separator: New file.
49669         * modules/unictype/property-bidi-segment-separator: New file.
49670         * modules/unictype/property-bidi-whitespace: New file.
49671         * modules/unictype/property-bidi-non-spacing-mark: New file.
49672         * modules/unictype/property-bidi-boundary-neutral: New file.
49673         * modules/unictype/property-bidi-pdf: New file.
49674         * modules/unictype/property-bidi-embedding-or-override: New file.
49675         * modules/unictype/property-bidi-other-neutral: New file.
49676         * modules/unictype/property-hex-digit: New file.
49677         * modules/unictype/property-ascii-hex-digit: New file.
49678         * modules/unictype/property-ideographic: New file.
49679         * modules/unictype/property-unified-ideograph: New file.
49680         * modules/unictype/property-radical: New file.
49681         * modules/unictype/property-ids-binary-operator: New file.
49682         * modules/unictype/property-ids-trinary-operator: New file.
49683         * modules/unictype/property-zero-width: New file.
49684         * modules/unictype/property-space: New file.
49685         * modules/unictype/property-non-break: New file.
49686         * modules/unictype/property-iso-control: New file.
49687         * modules/unictype/property-format-control: New file.
49688         * modules/unictype/property-dash: New file.
49689         * modules/unictype/property-hyphen: New file.
49690         * modules/unictype/property-punctuation: New file.
49691         * modules/unictype/property-line-separator: New file.
49692         * modules/unictype/property-paragraph-separator: New file.
49693         * modules/unictype/property-quotation-mark: New file.
49694         * modules/unictype/property-sentence-terminal: New file.
49695         * modules/unictype/property-terminal-punctuation: New file.
49696         * modules/unictype/property-currency-symbol: New file.
49697         * modules/unictype/property-math: New file.
49698         * modules/unictype/property-other-math: New file.
49699         * modules/unictype/property-paired-punctuation: New file.
49700         * modules/unictype/property-left-of-pair: New file.
49701         * modules/unictype/property-combining: New file.
49702         * modules/unictype/property-composite: New file.
49703         * modules/unictype/property-decimal-digit: New file.
49704         * modules/unictype/property-numeric: New file.
49705         * modules/unictype/property-diacritic: New file.
49706         * modules/unictype/property-extender: New file.
49707         * modules/unictype/property-ignorable-control: New file.
49708         * modules/unictype/property-test: New file.
49709         * modules/unictype/property-byname: New file.
49710         * modules/unictype/property-all: New file.
49711         * modules/unictype/scripts: New file.
49712         * modules/unictype/scripts-all: New file.
49713         * modules/unictype/block-of: New file.
49714         * modules/unictype/block-test: New file.
49715         * modules/unictype/block-list: New file.
49716         * modules/unictype/block-all: New file.
49717         * modules/unictype/syntax-c-whitespace: New file.
49718         * modules/unictype/syntax-java-whitespace: New file.
49719         * modules/unictype/syntax-c-ident: New file.
49720         * modules/unictype/syntax-java-ident: New file.
49721         * modules/unictype/ctype-alnum: New file.
49722         * modules/unictype/ctype-alpha: New file.
49723         * modules/unictype/ctype-cntrl: New file.
49724         * modules/unictype/ctype-digit: New file.
49725         * modules/unictype/ctype-graph: New file.
49726         * modules/unictype/ctype-lower: New file.
49727         * modules/unictype/ctype-print: New file.
49728         * modules/unictype/ctype-punct: New file.
49729         * modules/unictype/ctype-space: New file.
49730         * modules/unictype/ctype-upper: New file.
49731         * modules/unictype/ctype-xdigit: New file.
49732         * modules/unictype/ctype-blank: New file.
49733         * lib/unictype/bidi_byname.c: New file.
49734         * lib/unictype/bidi_name.c: New file.
49735         * lib/unictype/bidi_of.c: New file.
49736         * lib/unictype/bidi_test.c: New file.
49737         * lib/unictype/bitmap.h: New file.
49738         * lib/unictype/block_test.c: New file.
49739         * lib/unictype/blocks.c: New file.
49740         * lib/unictype/categ_C.c: New file.
49741         * lib/unictype/categ_Cc.c: New file.
49742         * lib/unictype/categ_Cf.c: New file.
49743         * lib/unictype/categ_Cn.c: New file.
49744         * lib/unictype/categ_Co.c: New file.
49745         * lib/unictype/categ_Cs.c: New file.
49746         * lib/unictype/categ_L.c: New file.
49747         * lib/unictype/categ_Ll.c: New file.
49748         * lib/unictype/categ_Lm.c: New file.
49749         * lib/unictype/categ_Lo.c: New file.
49750         * lib/unictype/categ_Lt.c: New file.
49751         * lib/unictype/categ_Lu.c: New file.
49752         * lib/unictype/categ_M.c: New file.
49753         * lib/unictype/categ_Mc.c: New file.
49754         * lib/unictype/categ_Me.c: New file.
49755         * lib/unictype/categ_Mn.c: New file.
49756         * lib/unictype/categ_N.c: New file.
49757         * lib/unictype/categ_Nd.c: New file.
49758         * lib/unictype/categ_Nl.c: New file.
49759         * lib/unictype/categ_No.c: New file.
49760         * lib/unictype/categ_P.c: New file.
49761         * lib/unictype/categ_Pc.c: New file.
49762         * lib/unictype/categ_Pd.c: New file.
49763         * lib/unictype/categ_Pe.c: New file.
49764         * lib/unictype/categ_Pf.c: New file.
49765         * lib/unictype/categ_Pi.c: New file.
49766         * lib/unictype/categ_Po.c: New file.
49767         * lib/unictype/categ_Ps.c: New file.
49768         * lib/unictype/categ_S.c: New file.
49769         * lib/unictype/categ_Sc.c: New file.
49770         * lib/unictype/categ_Sk.c: New file.
49771         * lib/unictype/categ_Sm.c: New file.
49772         * lib/unictype/categ_So.c: New file.
49773         * lib/unictype/categ_Z.c: New file.
49774         * lib/unictype/categ_Zl.c: New file.
49775         * lib/unictype/categ_Zp.c: New file.
49776         * lib/unictype/categ_Zs.c: New file.
49777         * lib/unictype/categ_and.c: New file.
49778         * lib/unictype/categ_and_not.c: New file.
49779         * lib/unictype/categ_byname.c: New file.
49780         * lib/unictype/categ_name.c: New file.
49781         * lib/unictype/categ_none.c: New file.
49782         * lib/unictype/categ_of.c: New file.
49783         * lib/unictype/categ_or.c: New file.
49784         * lib/unictype/categ_test.c: New file.
49785         * lib/unictype/combining.c: New file.
49786         * lib/unictype/ctype_alnum.c: New file.
49787         * lib/unictype/ctype_alpha.c: New file.
49788         * lib/unictype/ctype_blank.c: New file.
49789         * lib/unictype/ctype_cntrl.c: New file.
49790         * lib/unictype/ctype_digit.c: New file.
49791         * lib/unictype/ctype_graph.c: New file.
49792         * lib/unictype/ctype_lower.c: New file.
49793         * lib/unictype/ctype_print.c: New file.
49794         * lib/unictype/ctype_punct.c: New file.
49795         * lib/unictype/ctype_space.c: New file.
49796         * lib/unictype/ctype_upper.c: New file.
49797         * lib/unictype/ctype_xdigit.c: New file.
49798         * lib/unictype/decdigit.c: New file.
49799         * lib/unictype/digit.c: New file.
49800         * lib/unictype/identsyntaxmap.h: New file.
49801         * lib/unictype/mirror.c: New file.
49802         * lib/unictype/numeric.c: New file.
49803         * lib/unictype/pr_alphabetic.c: New file.
49804         * lib/unictype/pr_ascii_hex_digit.c: New file.
49805         * lib/unictype/pr_bidi_arabic_digit.c: New file.
49806         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
49807         * lib/unictype/pr_bidi_block_separator.c: New file.
49808         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
49809         * lib/unictype/pr_bidi_common_separator.c: New file.
49810         * lib/unictype/pr_bidi_control.c: New file.
49811         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
49812         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
49813         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
49814         * lib/unictype/pr_bidi_european_digit.c: New file.
49815         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
49816         * lib/unictype/pr_bidi_left_to_right.c: New file.
49817         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
49818         * lib/unictype/pr_bidi_other_neutral.c: New file.
49819         * lib/unictype/pr_bidi_pdf.c: New file.
49820         * lib/unictype/pr_bidi_segment_separator.c: New file.
49821         * lib/unictype/pr_bidi_whitespace.c: New file.
49822         * lib/unictype/pr_byname.c: New file.
49823         * lib/unictype/pr_byname.gperf: New file.
49824         * lib/unictype/pr_combining.c: New file.
49825         * lib/unictype/pr_composite.c: New file.
49826         * lib/unictype/pr_currency_symbol.c: New file.
49827         * lib/unictype/pr_dash.c: New file.
49828         * lib/unictype/pr_decimal_digit.c: New file.
49829         * lib/unictype/pr_default_ignorable_code_point.c: New file.
49830         * lib/unictype/pr_deprecated.c: New file.
49831         * lib/unictype/pr_diacritic.c: New file.
49832         * lib/unictype/pr_extender.c: New file.
49833         * lib/unictype/pr_format_control.c: New file.
49834         * lib/unictype/pr_grapheme_base.c: New file.
49835         * lib/unictype/pr_grapheme_extend.c: New file.
49836         * lib/unictype/pr_grapheme_link.c: New file.
49837         * lib/unictype/pr_hex_digit.c: New file.
49838         * lib/unictype/pr_hyphen.c: New file.
49839         * lib/unictype/pr_id_continue.c: New file.
49840         * lib/unictype/pr_id_start.c: New file.
49841         * lib/unictype/pr_ideographic.c: New file.
49842         * lib/unictype/pr_ids_binary_operator.c: New file.
49843         * lib/unictype/pr_ids_trinary_operator.c: New file.
49844         * lib/unictype/pr_ignorable_control.c: New file.
49845         * lib/unictype/pr_iso_control.c: New file.
49846         * lib/unictype/pr_join_control.c: New file.
49847         * lib/unictype/pr_left_of_pair.c: New file.
49848         * lib/unictype/pr_line_separator.c: New file.
49849         * lib/unictype/pr_logical_order_exception.c: New file.
49850         * lib/unictype/pr_lowercase.c: New file.
49851         * lib/unictype/pr_math.c: New file.
49852         * lib/unictype/pr_non_break.c: New file.
49853         * lib/unictype/pr_not_a_character.c: New file.
49854         * lib/unictype/pr_numeric.c: New file.
49855         * lib/unictype/pr_other_alphabetic.c: New file.
49856         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
49857         * lib/unictype/pr_other_grapheme_extend.c: New file.
49858         * lib/unictype/pr_other_id_continue.c: New file.
49859         * lib/unictype/pr_other_id_start.c: New file.
49860         * lib/unictype/pr_other_lowercase.c: New file.
49861         * lib/unictype/pr_other_math.c: New file.
49862         * lib/unictype/pr_other_uppercase.c: New file.
49863         * lib/unictype/pr_paired_punctuation.c: New file.
49864         * lib/unictype/pr_paragraph_separator.c: New file.
49865         * lib/unictype/pr_pattern_syntax.c: New file.
49866         * lib/unictype/pr_pattern_white_space.c: New file.
49867         * lib/unictype/pr_private_use.c: New file.
49868         * lib/unictype/pr_punctuation.c: New file.
49869         * lib/unictype/pr_quotation_mark.c: New file.
49870         * lib/unictype/pr_radical.c: New file.
49871         * lib/unictype/pr_sentence_terminal.c: New file.
49872         * lib/unictype/pr_soft_dotted.c: New file.
49873         * lib/unictype/pr_space.c: New file.
49874         * lib/unictype/pr_terminal_punctuation.c: New file.
49875         * lib/unictype/pr_test.c: New file.
49876         * lib/unictype/pr_titlecase.c: New file.
49877         * lib/unictype/pr_unassigned_code_value.c: New file.
49878         * lib/unictype/pr_unified_ideograph.c: New file.
49879         * lib/unictype/pr_uppercase.c: New file.
49880         * lib/unictype/pr_variation_selector.c: New file.
49881         * lib/unictype/pr_white_space.c: New file.
49882         * lib/unictype/pr_xid_continue.c: New file.
49883         * lib/unictype/pr_xid_start.c: New file.
49884         * lib/unictype/pr_zero_width.c: New file.
49885         * lib/unictype/scripts.c: New file.
49886         * lib/unictype/sy_c_ident.c: New file.
49887         * lib/unictype/sy_c_whitespace.c: New file.
49888         * lib/unictype/sy_java_ident.c: New file.
49889         * lib/unictype/sy_java_whitespace.c: New file.
49890
49891         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
49892         Unicode 5.0.0.
49893         * lib/unictype/blocks.h: Likewise.
49894         * lib/unictype/categ_C.h: Likewise.
49895         * lib/unictype/categ_Cc.h: Likewise.
49896         * lib/unictype/categ_Cf.h: Likewise.
49897         * lib/unictype/categ_Cn.h: Likewise.
49898         * lib/unictype/categ_Co.h: Likewise.
49899         * lib/unictype/categ_Cs.h: Likewise.
49900         * lib/unictype/categ_L.h: Likewise.
49901         * lib/unictype/categ_Ll.h: Likewise.
49902         * lib/unictype/categ_Lm.h: Likewise.
49903         * lib/unictype/categ_Lo.h: Likewise.
49904         * lib/unictype/categ_Lt.h: Likewise.
49905         * lib/unictype/categ_Lu.h: Likewise.
49906         * lib/unictype/categ_M.h: Likewise.
49907         * lib/unictype/categ_Mc.h: Likewise.
49908         * lib/unictype/categ_Me.h: Likewise.
49909         * lib/unictype/categ_Mn.h: Likewise.
49910         * lib/unictype/categ_N.h: Likewise.
49911         * lib/unictype/categ_Nd.h: Likewise.
49912         * lib/unictype/categ_Nl.h: Likewise.
49913         * lib/unictype/categ_No.h: Likewise.
49914         * lib/unictype/categ_P.h: Likewise.
49915         * lib/unictype/categ_Pc.h: Likewise.
49916         * lib/unictype/categ_Pd.h: Likewise.
49917         * lib/unictype/categ_Pe.h: Likewise.
49918         * lib/unictype/categ_Pf.h: Likewise.
49919         * lib/unictype/categ_Pi.h: Likewise.
49920         * lib/unictype/categ_Po.h: Likewise.
49921         * lib/unictype/categ_Ps.h: Likewise.
49922         * lib/unictype/categ_S.h: Likewise.
49923         * lib/unictype/categ_Sc.h: Likewise.
49924         * lib/unictype/categ_Sk.h: Likewise.
49925         * lib/unictype/categ_Sm.h: Likewise.
49926         * lib/unictype/categ_So.h: Likewise.
49927         * lib/unictype/categ_Z.h: Likewise.
49928         * lib/unictype/categ_Zl.h: Likewise.
49929         * lib/unictype/categ_Zp.h: Likewise.
49930         * lib/unictype/categ_Zs.h: Likewise.
49931         * lib/unictype/categ_of.h: Likewise.
49932         * lib/unictype/combining.h: Likewise.
49933         * lib/unictype/ctype_alnum.h: Likewise.
49934         * lib/unictype/ctype_alpha.h: Likewise.
49935         * lib/unictype/ctype_blank.h: Likewise.
49936         * lib/unictype/ctype_cntrl.h: Likewise.
49937         * lib/unictype/ctype_digit.h: Likewise.
49938         * lib/unictype/ctype_graph.h: Likewise.
49939         * lib/unictype/ctype_lower.h: Likewise.
49940         * lib/unictype/ctype_print.h: Likewise.
49941         * lib/unictype/ctype_punct.h: Likewise.
49942         * lib/unictype/ctype_space.h: Likewise.
49943         * lib/unictype/ctype_upper.h: Likewise.
49944         * lib/unictype/ctype_xdigit.h: Likewise.
49945         * lib/unictype/decdigit.h: Likewise.
49946         * lib/unictype/digit.h: Likewise.
49947         * lib/unictype/mirror.h: Likewise.
49948         * lib/unictype/numeric.h: Likewise.
49949         * lib/unictype/pr_alphabetic.h: Likewise.
49950         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
49951         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
49952         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
49953         * lib/unictype/pr_bidi_block_separator.h: Likewise.
49954         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
49955         * lib/unictype/pr_bidi_common_separator.h: Likewise.
49956         * lib/unictype/pr_bidi_control.h: Likewise.
49957         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
49958         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
49959         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
49960         * lib/unictype/pr_bidi_european_digit.h: Likewise.
49961         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
49962         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
49963         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
49964         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
49965         * lib/unictype/pr_bidi_pdf.h: Likewise.
49966         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
49967         * lib/unictype/pr_bidi_whitespace.h: Likewise.
49968         * lib/unictype/pr_combining.h: Likewise.
49969         * lib/unictype/pr_composite.h: Likewise.
49970         * lib/unictype/pr_currency_symbol.h: Likewise.
49971         * lib/unictype/pr_dash.h: Likewise.
49972         * lib/unictype/pr_decimal_digit.h: Likewise.
49973         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
49974         * lib/unictype/pr_deprecated.h: Likewise.
49975         * lib/unictype/pr_diacritic.h: Likewise.
49976         * lib/unictype/pr_extender.h: Likewise.
49977         * lib/unictype/pr_format_control.h: Likewise.
49978         * lib/unictype/pr_grapheme_base.h: Likewise.
49979         * lib/unictype/pr_grapheme_extend.h: Likewise.
49980         * lib/unictype/pr_grapheme_link.h: Likewise.
49981         * lib/unictype/pr_hex_digit.h: Likewise.
49982         * lib/unictype/pr_hyphen.h: Likewise.
49983         * lib/unictype/pr_id_continue.h: Likewise.
49984         * lib/unictype/pr_id_start.h: Likewise.
49985         * lib/unictype/pr_ideographic.h: Likewise.
49986         * lib/unictype/pr_ids_binary_operator.h: Likewise.
49987         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
49988         * lib/unictype/pr_ignorable_control.h: Likewise.
49989         * lib/unictype/pr_iso_control.h: Likewise.
49990         * lib/unictype/pr_join_control.h: Likewise.
49991         * lib/unictype/pr_left_of_pair.h: Likewise.
49992         * lib/unictype/pr_line_separator.h: Likewise.
49993         * lib/unictype/pr_logical_order_exception.h: Likewise.
49994         * lib/unictype/pr_lowercase.h: Likewise.
49995         * lib/unictype/pr_math.h: Likewise.
49996         * lib/unictype/pr_non_break.h: Likewise.
49997         * lib/unictype/pr_not_a_character.h: Likewise.
49998         * lib/unictype/pr_numeric.h: Likewise.
49999         * lib/unictype/pr_other_alphabetic.h: Likewise.
50000         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
50001         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
50002         * lib/unictype/pr_other_id_continue.h: Likewise.
50003         * lib/unictype/pr_other_id_start.h: Likewise.
50004         * lib/unictype/pr_other_lowercase.h: Likewise.
50005         * lib/unictype/pr_other_math.h: Likewise.
50006         * lib/unictype/pr_other_uppercase.h: Likewise.
50007         * lib/unictype/pr_paired_punctuation.h: Likewise.
50008         * lib/unictype/pr_paragraph_separator.h: Likewise.
50009         * lib/unictype/pr_pattern_syntax.h: Likewise.
50010         * lib/unictype/pr_pattern_white_space.h: Likewise.
50011         * lib/unictype/pr_private_use.h: Likewise.
50012         * lib/unictype/pr_punctuation.h: Likewise.
50013         * lib/unictype/pr_quotation_mark.h: Likewise.
50014         * lib/unictype/pr_radical.h: Likewise.
50015         * lib/unictype/pr_sentence_terminal.h: Likewise.
50016         * lib/unictype/pr_soft_dotted.h: Likewise.
50017         * lib/unictype/pr_space.h: Likewise.
50018         * lib/unictype/pr_terminal_punctuation.h: Likewise.
50019         * lib/unictype/pr_titlecase.h: Likewise.
50020         * lib/unictype/pr_unassigned_code_value.h: Likewise.
50021         * lib/unictype/pr_unified_ideograph.h: Likewise.
50022         * lib/unictype/pr_uppercase.h: Likewise.
50023         * lib/unictype/pr_variation_selector.h: Likewise.
50024         * lib/unictype/pr_white_space.h: Likewise.
50025         * lib/unictype/pr_xid_continue.h: Likewise.
50026         * lib/unictype/pr_xid_start.h: Likewise.
50027         * lib/unictype/pr_zero_width.h: Likewise.
50028         * lib/unictype/scripts.h: Likewise.
50029         * lib/unictype/scripts_byname.gperf: Likewise.
50030         * lib/unictype/sy_c_ident.h: Likewise.
50031         * lib/unictype/sy_c_whitespace.h: Likewise.
50032         * lib/unictype/sy_java_ident.h: Likewise.
50033         * lib/unictype/sy_java_whitespace.h: Likewise.
50034
50035         * lib/unictype/Makefile: New file.
50036         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
50037         glibc.
50038         * lib/unictype/3level.h: New file, copied from glibc.
50039         * lib/unictype/3levelbit.h: New file.
50040
50041 2007-11-11  Bruno Haible  <bruno@clisp.org>
50042
50043         * modules/gperf: New file.
50044         * modules/iconv_open (Depends-on): Add it.
50045         (Makefile.am): Remove the GPERF definition.
50046
50047 2007-11-11  Bruno Haible  <bruno@clisp.org>
50048
50049         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
50050         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
50051
50052 2007-11-11  Bruno Haible  <bruno@clisp.org>
50053
50054         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
50055         (usage): Remove function.
50056
50057 2007-11-11  Bruno Haible  <bruno@clisp.org>
50058
50059         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
50060         gl_FUNC_CEILF_LIBS.
50061         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
50062         gl_FUNC_CEIL_LIBS.
50063         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
50064         gl_FUNC_CEILL_LIBS.
50065         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
50066         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
50067         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
50068
50069 2007-11-11  Bruno Haible  <bruno@clisp.org>
50070
50071         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
50072         roundf were declared but do not exist on functions.
50073         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
50074         roundl were declared but do not exist on functions.
50075         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
50076         HAVE_FLOORL_AND_CEILL, respectively.
50077         Needed for Sun C on Solaris 10.
50078
50079 2007-11-11  Bruno Haible  <bruno@clisp.org>
50080
50081         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
50082         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
50083         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
50084         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
50085         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
50086         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
50087         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
50088         HAVE_DECL_ROUNDF.
50089         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
50090         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
50091         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
50092         of HAVE_DECL_ROUND*.
50093         * modules/math (Makefile.am): Update.
50094
50095 2007-11-10  Bruno Haible  <bruno@clisp.org>
50096
50097         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
50098         ptrdiff_t as m4/intl.m4.
50099
50100 2007-11-10  Jim Meyering  <meyering@redhat.com>
50101
50102         Avoid link failure for the argmatch test.
50103         * tests/test-argmatch.c (usage): Define function to avoid a link
50104         failure: argmatch_die requires a usage function.
50105
50106 2007-11-09  Bruno Haible  <bruno@clisp.org>
50107
50108         * doc/functions/snprintf.texi: Mention BeOS deficiency.
50109         * doc/functions/vsnprintf.texi: Likewise.
50110         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
50111         with a size argument < 2.
50112
50113 2007-11-09  Bruno Haible  <bruno@clisp.org>
50114
50115         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
50116         buffer. Fixes an inefficiency introduced on 2007-11-03.
50117
50118 2007-11-09  Bruno Haible  <bruno@clisp.org>
50119
50120         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
50121         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
50122
50123 2007-11-08  Jim Meyering  <meyering@redhat.com>
50124
50125         Change cache variable name prefix "jm_" to "gl_" everywhere.
50126         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
50127         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
50128         * m4/uptime.m4: s/gl_/jm_/
50129
50130 2007-11-07  Bruno Haible  <bruno@clisp.org>
50131
50132         Update to GNU gettext 0.17.
50133         * m4/intl.m4: Update to GNU gettext 0.17.
50134         * m4/po.m4: Likewise.
50135         * modules/gettext (Files): Remove m4/ulonglong.m4.
50136         (configure.ac): Require gettext infrastructure from version 0.17.
50137
50138 2007-11-06  Bruno Haible  <bruno@clisp.org>
50139
50140         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
50141         symbolic values are not defined in a public header.
50142         * lib/freadable.c (freadable) [QNX]: Likewise.
50143         * lib/freadahead.c (freadahead) [QNX]: Likewise.
50144         * lib/freading.c (freading) [QNX]: Likewise.
50145         * lib/fseterr.c (fseterr) [QNX]: Likewise.
50146         * lib/fwritable.c (fwritable) [QNX]: Likewise.
50147         * lib/fwriting.c (fwriting) [QNX]: Likewise.
50148         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
50149         Reported by Alain Magloire.
50150
50151         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
50152
50153 2007-11-05  Bruno Haible  <bruno@clisp.org>
50154
50155         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
50156         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
50157         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
50158         Reported by Eric Blake.
50159
50160 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50161             Bruno Haible  <bruno@clisp.org>
50162
50163         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
50164         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
50165         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
50166         (malloc): Undefine also before including <stdlib.h>.
50167         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
50168         Needed on OSF/1 4.0.
50169
50170 2007-11-05  Jim Meyering  <meyering@redhat.com>
50171
50172         git-version-gen: sync from coreutils.
50173         * build-aux/git-version-gen: Add comments.
50174         Change the first '-' to '.' in the snapshot version string,
50175         e.g., 6.9-377-08144 -> 6.9.377-08144
50176         Remove first parameter.
50177         Don't declare a version "-dirty" merely because a time
50178         stamp has changed.
50179
50180 2007-11-04  Bruno Haible  <bruno@clisp.org>
50181
50182         * lib/lock.h: Protect all macro definitions containing an 'if'
50183         statement through a "do { ... } while (0)".
50184         * lib/tls.h: Likewise.
50185
50186 2007-11-04  Bruno Haible  <bruno@clisp.org>
50187
50188         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
50189
50190 2007-11-04  Bruno Haible  <bruno@clisp.org>
50191
50192         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
50193         * modules/fprintf-posix (Depends-on): Add nocrash.
50194         * modules/snprintf-posix (Depends-on): Likewise.
50195         * modules/sprintf-posix (Depends-on): Likewise.
50196         * modules/vasnprintf-posix (Depends-on): Likewise.
50197         * modules/vasprintf-posix (Depends-on): Likewise.
50198         * modules/vfprintf-posix (Depends-on): Likewise.
50199         * modules/vsnprintf-posix (Depends-on): Likewise.
50200         * modules/vsprintf-posix (Depends-on): Likewise.
50201         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
50202         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
50203         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
50204         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
50205         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
50206         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
50207         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
50208
50209 2007-11-04  Bruno Haible  <bruno@clisp.org>
50210
50211         * modules/nocrash: New file.
50212         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
50213         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
50214
50215 2007-11-04  Bruno Haible  <bruno@clisp.org>
50216
50217         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
50218         precision handling.
50219         * tests/test-vasprintf-posix.c (test_function): Likewise.
50220         * tests/test-snprintf-posix.h (test_function): Likewise.
50221         * tests/test-sprintf-posix.h (test_function): Likewise.
50222
50223         Fix *printf behaviour for large precisions on mingw and BeOS.
50224         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
50225         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
50226         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
50227         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
50228         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
50229         gl_PRINTF_PRECISION and test its result. Invoke
50230         gl_PREREQ_VASNPRINTF_PRECISION.
50231         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
50232         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50233         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50234         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50235         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
50236         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50237         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50238         * doc/functions/fprintf.texi: Update.
50239         * doc/functions/printf.texi: Update.
50240         * doc/functions/snprintf.texi: Update.
50241         * doc/functions/sprintf.texi: Update.
50242         * doc/functions/vfprintf.texi: Update.
50243         * doc/functions/vprintf.texi: Update.
50244         * doc/functions/vsnprintf.texi: Update.
50245         * doc/functions/vsprintf.texi: Update.
50246
50247 2007-11-04  Bruno Haible  <bruno@clisp.org>
50248
50249         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
50250
50251 2007-11-04  Bruno Haible  <bruno@clisp.org>
50252
50253         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
50254         Reported by Sylvain Beucler <beuc@gnu.org>.
50255
50256 2007-11-03  Bruno Haible  <bruno@clisp.org>
50257
50258         * tests/test-fprintf-posix2.sh: New file.
50259         * tests/test-fprintf-posix2.c: New file.
50260         * modules/fprintf-posix-tests (Files): Add them.
50261         (TESTS): Add test-fprintf-posix2.sh.
50262         (configure.ac): Check for getrlimit and setrlimit.
50263         (check_PROGRAMS): Add test-fprintf-posix2.
50264
50265         * tests/test-printf-posix2.sh: New file.
50266         * tests/test-printf-posix2.c: New file.
50267         * modules/printf-posix-tests (Files): Add them.
50268         (TESTS): Add test-printf-posix2.sh.
50269         (configure.ac): Check for getrlimit and setrlimit.
50270         (check_PROGRAMS): Add test-printf-posix2.
50271
50272         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
50273         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
50274         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
50275         (decode_double): New function, copied from decode_long_double.
50276         (scale10_round_decimal_decoded): New function, extracted from
50277         scale10_round_decimal_long_double.
50278         (scale10_round_decimal_long_double): Use it.
50279         (scale10_round_decimal_double): New function.
50280         (floorlog10): New function.
50281         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
50282         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
50283         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
50284         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
50285         gl_PRINTF_ENOMEM and test its result. Invoke
50286         gl_PREREQ_VASNPRINTF_ENOMEM.
50287         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
50288         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50289         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50290         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50291         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
50292         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50293         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50294         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
50295         * modules/snprintf-posix (Depends-on): Likewise.
50296         * modules/sprintf-posix (Depends-on): Likewise.
50297         * modules/vasnprintf-posix (Depends-on): Likewise.
50298         * modules/vasprintf-posix (Depends-on): Likewise.
50299         * modules/vfprintf-posix (Depends-on): Likewise.
50300         * modules/vsnprintf-posix (Depends-on): Likewise.
50301         * modules/vsprintf-posix (Depends-on): Likewise.
50302         * doc/functions/fprintf.texi: Update.
50303         * doc/functions/printf.texi: Update.
50304         * doc/functions/snprintf.texi: Update.
50305         * doc/functions/sprintf.texi: Update.
50306         * doc/functions/vfprintf.texi: Update.
50307         * doc/functions/vprintf.texi: Update.
50308         * doc/functions/vsnprintf.texi: Update.
50309         * doc/functions/vsprintf.texi: Update.
50310
50311 2007-11-03  Bruno Haible  <bruno@clisp.org>
50312
50313         * modules/frexp-nolibm-tests: New file.
50314
50315         * modules/frexp-nolibm: New file.
50316         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
50317
50318 2007-11-03  Bruno Haible  <bruno@clisp.org>
50319
50320         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
50321         value is C99 compliant.
50322         Needed for OSF/1 5.1.
50323
50324 2007-11-03  Bruno Haible  <bruno@clisp.org>
50325
50326         Fix out-of-memory handling of vasnprintf.
50327         * lib/printf-parse.c: Include <errno.h>.
50328         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
50329         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
50330         is already set.
50331
50332 2007-11-02  Eric Blake  <ebb9@byu.net>
50333
50334         Fix tests on cygwin.
50335         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
50336
50337 2007-11-01  Bruno Haible  <bruno@clisp.org>
50338
50339         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
50340         warning.
50341         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
50342         needed for POSIX compatibility.
50343
50344 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
50345
50346         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
50347         for compatibility with GNU.
50348
50349 2007-11-01  Bruno Haible  <bruno@clisp.org>
50350
50351         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
50352         (putenv): Renamed from rpl_putenv. Change argument type from
50353         'const char *' to 'char *'.
50354         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
50355         of defining putenv in config.h, just set REPLACE_PUTENV.
50356         * modules/putenv (Depends-on): Add stdlib.
50357         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
50358         (Include): Use <stdlib.h>.
50359         * lib/stdlib.in.h (putenv): New declaration.
50360         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
50361         REPLACE_PUTENV.
50362         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
50363         REPLACE_PUTENV.
50364         Needed for MacOS X 10.5.0.
50365         Reported by Peter O'Gorman <peter@pogma.com>.
50366
50367 2007-11-01  Jim Meyering  <meyering@redhat.com>
50368
50369         Treat an empty date string exactly like "0".
50370         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
50371         if the remaining date string (to be parsed) is empty, use "0".
50372         Reported by Mischa Molhoek and discussed in this thread:
50373         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
50374
50375 2007-10-31  Bruno Haible  <bruno@clisp.org>
50376
50377         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
50378         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
50379         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
50380         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
50381         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
50382         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
50383
50384 2007-10-31  Bruno Haible  <bruno@clisp.org>
50385
50386         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
50387         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
50388         (AC_TYPE_LONG_LONG_INT): Use it.
50389         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
50390         it as well.
50391         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
50392         to m4/longlong.m4.
50393         * modules/stdint (Files): Remove m4/ulonglong.m4.
50394         * modules/strtoull (Files): Use m4/longlong.m4 instead of
50395         m4/ulonglong.m4.
50396         * modules/strtoumax (Files): Likewise.
50397
50398 2007-10-30  Bruno Haible  <bruno@clisp.org>
50399
50400         * modules/xvasprintf-posix: New file.
50401         Suggested by Eric Blake.
50402
50403 2007-10-30  Bruno Haible  <bruno@clisp.org>
50404
50405         * modules/xprintf-posix-tests: New file.
50406         * tests/test-xprintf-posix.sh: New file.
50407         * tests/test-xprintf-posix.c: New file.
50408         * tests/test-xfprintf-posix.c: New file.
50409
50410         * modules/xprintf-posix: New file.
50411
50412 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50413
50414         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
50415         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
50416         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
50417
50418 2007-10-29  Bruno Haible  <bruno@clisp.org>
50419
50420         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
50421         contain the special marker '_cv_'.
50422         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
50423         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
50424         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
50425         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
50426         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
50427         Reported by Ralf Wildenhues.
50428
50429 2007-10-29  Bruno Haible  <bruno@clisp.org>
50430
50431         * gnulib-tool (func_import): When --lgpl is not specified, set
50432         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
50433         GPLv3.
50434         Reported by Simon Josefsson.
50435
50436 2007-10-28  Bruno Haible  <bruno@clisp.org>
50437
50438         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
50439         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
50440         HAVE_DECL_ISFINITE.
50441         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
50442         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
50443         HAVE_DECL_ISFINITE.
50444
50445 2007-10-28  Bruno Haible  <bruno@clisp.org>
50446
50447         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
50448         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
50449
50450 2007-10-28  Bruno Haible  <bruno@clisp.org>
50451
50452         Fix link errors with Sun C 5.0 on Solaris 10.
50453         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
50454         function is declared but not present in the compiler's libm.
50455         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
50456         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
50457         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
50458         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
50459         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
50460         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
50461         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
50462         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
50463         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
50464         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
50465         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
50466         HAVE_DECL_FLOORL.
50467
50468 2007-10-28  Bruno Haible  <bruno@clisp.org>
50469
50470         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
50471         gl_FUNC_FLOORL. Cache the result.
50472         (gl_FUNC_FLOORL): Use it.
50473         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
50474         gl_FUNC_CEILL. Cache the result.
50475         (gl_FUNC_CEILL): Use it.
50476
50477         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
50478         gl_FUNC_FLOOR. Cache the result.
50479         (gl_FUNC_FLOOR): Use it.
50480         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
50481         gl_FUNC_CEIL. Cache the result.
50482         (gl_FUNC_CEIL): Use it.
50483
50484         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
50485         gl_FUNC_FLOORF. Cache the result.
50486         (gl_FUNC_FLOORF): Use it.
50487         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
50488         gl_FUNC_CEILF. Cache the result.
50489         (gl_FUNC_CEILF): Use it.
50490
50491 2007-10-28  Bruno Haible  <bruno@clisp.org>
50492
50493         * gnulib-tool: Allow specifying the LGPL version number through
50494         --lgpl=2 or --lgpl=3.
50495         (func_usage): Document --lgpl with argument.
50496         Handle --lgpl=... arguments.
50497         (func_import): Recognize also gl_LGPL calls with an argument. When
50498         --lgpl=2 is used and the module's license is just LGPL, report an
50499         error. Set sed_transform_lib_file according to the lgpl variable. In
50500         the generated files, use --lgpl or gl_LGPL invocations with argument,
50501         if necessary.
50502         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
50503         an LGPv2+ license.
50504         * doc/gnulib-tool.texi (Modified imports): Update explanation of
50505         gl_LGPL macro.
50506
50507 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50508             Bruno Haible  <bruno@clisp.org>
50509
50510         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
50511         (u16_uctomb_aux): Likewise.
50512         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
50513         !HAVE_INLINE.
50514         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
50515
50516 2007-10-28  Bruno Haible  <bruno@clisp.org>
50517
50518         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
50519         Invoke AM_GETTEXT_OPTION if it exists.
50520         * modules/vasprintf: Likewise.
50521         * modules/verror: Likewise.
50522         * modules/xprintf: Likewise.
50523         * modules/xvasprintf: Likewise.
50524
50525 2007-10-27  Ben Pfaff  <blp@gnu.org>
50526
50527         * lib/math.in.h: Define isfinite macro and prototypes for
50528         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
50529         implementations.
50530         * m4/math_h.m4: New substitutions for isfinite module.
50531         * lib/isfinite.c: New file.
50532         * m4/isfinite.m4: New file.
50533         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
50534         * modules/isfinite: New file.
50535         * modules/isfinite-tests: New file.
50536         * tests/tests-isfinite.c: New file.
50537         * doc/functions/isfinite.texi: Mention isfinite module.
50538         * MODULES.html.sh: Mention new module.
50539
50540 2007-10-27  Ben Pfaff  <blp@gnu.org>
50541
50542         Ralf Wildenhues reported that Tru64 4.0D declares the round
50543         functions but does not have definitions.
50544         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
50545         cannot be found in any library, set the output variable to
50546         "missing" instead of "".
50547         * m4/round.m4: Also use our substitute if we cannot find round in
50548         any library, even if it is declared.
50549         * m4/roundf.m4: Likewise for roundf.
50550         * m4/roundl.m4: Likewise for roundl.
50551         * lib/math.in.h: Undefine roundf, round, roundl before defining
50552         their replacements, to allow for hypothetical systems where these
50553         may be defined as macros but not available in libraries.
50554
50555 2007-10-27  Bruno Haible  <bruno@clisp.org>
50556
50557         * doc/gnulib.texi: Invoke @firstparagraphindent.
50558         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
50559         changes in gnulib.
50560         (Source changes): New section.
50561
50562 2007-10-26  Bruno Haible  <bruno@clisp.org>
50563
50564         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
50565         borrowed from autoconf.
50566
50567 2007-10-26  Bruno Haible  <bruno@clisp.org>
50568
50569         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
50570         strerror returned the empty string. Needed on HP-UX 11.00.
50571
50572 2007-10-24  Micah Cowan  <micah@cowan.name>
50573
50574         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
50575         * build-aux/bootstrap: Remove support for now-unnecessary option,
50576         --cvs-user, and envvars CVS_USER, CVS_RSH.
50577
50578 2007-10-24  Jim Meyering  <meyering@redhat.com>
50579
50580         Avoid diagnostics from sha1sum when there is no cached checksum.
50581         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
50582         if the po.s1 file hasn't been created yet.
50583
50584         * build-aux/bootstrap: Sync from coreutils:
50585         2007-10-24  Jim Meyering  <meyering@redhat.com>
50586         Get gnulib from the git repository, not from an obsolete cvs one.
50587         * build-aux/bootstrap: Suggestion from Micah Cowan.
50588         2007-10-04  Jim Meyering  <jim@meyering.net>
50589         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
50590         (update_po_files): Work also when there are no .po files in po/.
50591
50592 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
50593
50594         * README: Append ".git" to git and cg examples.
50595         Problem reported by Benoit Sigoure.
50596
50597 2007-10-23  Micah Cowan  <micah@cowan.name>
50598
50599         * users.txt: Add wget.
50600
50601 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50602
50603         Fix linking of some unistdio tests on FreeBSD.
50604         * modules/unistdio/u16-vsnprintf-tests
50605         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
50606         * modules/unistdio/u16-vsprintf-tests
50607         (test_u16_vsnprintf1_LDADD): Likewise.
50608         * modules/unistdio/u32-vsnprintf-tests
50609         (test_u32_vsnprintf1_LDADD): Likewise.
50610         * modules/unistdio/u32-vsprintf-tests
50611         (test_u32_vsprintf1_LDADD): Likewise.
50612         * modules/unistdio/u8-vsnprintf-tests
50613         (test_u8_vsnprintf1_LDADD): Likewise.
50614         * modules/unistdio/u8-vsprintf-tests
50615         (test_u8_vsprintf1_LDADD): Likewise.
50616         * modules/unistdio/ulc-vsnprintf-tests
50617         (test_ulc_vsnprintf1_LDADD): Likewise.
50618         * modules/unistdio/ulc-vsprintf-tests
50619         (test_ulc_vsprintf1_LDADD): Likewise.
50620
50621         Fix linking of some uniconv tests on FreeBSD.
50622         * modules/uniconv/u16-conv-from-enc-tests
50623         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
50624         * modules/uniconv/u16-conv-to-enc-tests
50625         (test_u16_conv_to_enc_LDADD): Likewise.
50626         * modules/uniconv/u16-strconv-from-enc-tests
50627         (test_u16_strconv_from_enc_LDADD): Likewise.
50628         * modules/uniconv/u16-strconv-to-enc-tests
50629         (test_u16_strconv_to_enc_LDADD): Likewise.
50630         * modules/uniconv/u32-conv-from-enc-tests
50631         (test_u32_conv_from_enc_LDADD): Likewise.
50632         * modules/uniconv/u32-conv-to-enc-tests
50633         (test_u32_conv_to_enc_LDADD): Likewise.
50634         * modules/uniconv/u32-strconv-from-enc-tests
50635         (test_u32_strconv_from_enc_LDADD): Likewise.
50636         * modules/uniconv/u32-strconv-to-enc-tests
50637         (test_u32_strconv_to_enc_LDADD): Likewise.
50638         * modules/uniconv/u8-conv-from-enc-tests
50639         (test_u8_conv_from_enc_LDADD): Likewise.
50640         * modules/uniconv/u8-conv-to-enc-tests
50641         (test_u8_conv_to_enc_LDADD): Likewise.
50642         * modules/uniconv/u8-strconv-from-enc-tests
50643         (test_u8_strconv_from_enc_LDADD): Likewise.
50644         * modules/uniconv/u8-strconv-to-enc-tests
50645         (test_u8_strconv_to_enc_LDADD): Likewise.
50646
50647 2007-10-22  Bruno Haible  <bruno@clisp.org>
50648
50649         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
50650         size.
50651
50652 2007-10-22  Eric Blake  <ebb9@byu.net>
50653
50654         Tweak x*printf documentation.
50655         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
50656         variable name and comments.
50657         Suggested by Bruno Haible.
50658
50659 2007-10-22  Bruno Haible  <bruno@clisp.org>
50660
50661         * lib/acl.c (copy_acl): Fix file name in comment.
50662
50663 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
50664
50665         Fix Tru64 problem with stdbool.h.
50666         * lib/stdbool.in.h (false, true):
50667         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
50668         Don't declare as an enum in this situation; it runs afoul of Tru64.
50669         Problem reported by Steven M. Schweda in
50670         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
50671
50672 2007-10-22  Eric Blake  <ebb9@byu.net>
50673
50674         Also wrap vf?printf.
50675         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
50676         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
50677         (xvprintf, xvfprintf): New functions.
50678
50679 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50680
50681         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
50682         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
50683
50684         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
50685         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
50686
50687 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
50688
50689         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
50690         by Bruno Haible.
50691
50692 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50693
50694         * lib/getloadavg.c
50695         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
50696         Undef `sys' after including sys/table.h, for Tru64 4.0D.
50697
50698         * tests/test-i-ring.c: Work for C89.
50699
50700 2007-10-22  Bruno Haible  <bruno@clisp.org>
50701
50702         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
50703         -1u, in preprocessor expression, so that we don't test for the bug
50704         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
50705         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
50706
50707 2007-10-22  Eric Blake  <ebb9@byu.net>
50708
50709         * tests/test-yesno.sh: Silence stderr during test.
50710
50711 2007-10-22  Simon Josefsson  <simon@josefsson.org>
50712
50713         * modules/crypto/gc-camellia: New file.
50714
50715         * m4/gc-camellia.m4: New file.
50716
50717         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
50718
50719         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
50720
50721 2007-10-22  Simon Josefsson  <simon@josefsson.org>
50722
50723         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
50724         --help to stdout.  Reported by sms@antinode.org (Steven
50725         M. Schweda).
50726
50727 2007-10-22  Simon Josefsson  <simon@josefsson.org>
50728
50729         * users.txt: Fix link to libksba.
50730
50731 2007-10-21  Ben Pfaff  <blp@gnu.org>
50732
50733         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
50734         round.c roundf implementation that depends on floorf and ceilf to
50735         be tested unconditionally.
50736
50737 2007-10-21  Ben Pfaff  <blp@gnu.org>
50738
50739         * m4/check-libm-func.m4: Removed.
50740         * m4/check-math-lib.m4: New file.
50741         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
50742         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
50743         definition and lack of AC_LIBOBJ([roundf]).
50744         * m4/roundl.m4: Ditto, and similarly for roundl.
50745         * modules/round: Reference new m4 file.
50746         * modules/roundf: Ditto.
50747         * modules/roundl: Ditto.
50748         * tests/test-round2.c (main): Use ROUND instead of round.
50749         Bug report from Bruno Haible.
50750
50751 2007-10-21  Bruno Haible  <bruno@clisp.org>
50752
50753         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
50754         context.
50755
50756 2007-10-21  Bruno Haible  <bruno@clisp.org>
50757
50758         * tests/test-wcwidth.c (main): Allow negative result for some control
50759         characters.
50760
50761         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
50762         Needed on OSF/1 5.1.
50763
50764 2007-10-21  Bruno Haible  <bruno@clisp.org>
50765
50766         * tests/test-floorf1.c: Include isnanf.h.
50767         (main): Use isnanf() instead of isnan().
50768         * tests/test-ceilf1.c: Include isnanf.h.
50769         (main): Use isnanf() instead of isnan().
50770         * tests/test-truncf1.c: Include isnanf.h.
50771         (main): Use isnanf() instead of isnan().
50772         * tests/test-roundf1.c: Include isnanf.h.
50773         (main): Use isnanf() instead of isnan().
50774
50775 2007-10-21  Eric Blake  <ebb9@byu.net>
50776
50777         * users.txt: Update URL for m4.
50778
50779 2007-10-21  Bruno Haible  <bruno@clisp.org>
50780
50781         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
50782
50783 2007-10-21  Bruno Haible  <bruno@clisp.org>
50784
50785         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
50786         Git's management files if the CVS files are not present.
50787
50788 2007-10-20  Bruno Haible  <bruno@clisp.org>
50789
50790         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
50791         gcc-3.4.x.
50792
50793 2007-10-20  Ben Pfaff  <blp@gnu.org>
50794
50795         * lib/math.in.h: Declare round, roundf, roundl if we are providing
50796         implementations.
50797         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
50798         * lib/round.c: New file.
50799         * lib/roundf.c: New file.
50800         * lib/roundl.c: New file.
50801         * m4/round.m4: New file.
50802         * m4/roundf.m4: New file.
50803         * m4/roundl.m4: New file.
50804         * m4/check-libm-func-m4: New file.
50805         * modules/math: Replace round, roundf, roundl related @VARS@ in
50806         math.in.h.
50807         * modules/round: New file.
50808         * modules/round-tests: New file.
50809         * modules/roundf: New file.
50810         * modules/roundf-tests: New file.
50811         * modules/roundl: New file.
50812         * modules/roundl-tests: New file.
50813         * tests/test-round1.c: New file.
50814         * tests/test-round2.c: New file.
50815         * tests/test-roundf1.c: New file.
50816         * tests/test-roundf2.c: New file.
50817         * tests/test-roundl.c: New file.
50818         * doc/functions/round.texi: Mention round module.
50819         * doc/functions/roundf.texi: Mention roundf module.
50820         * doc/functions/roundl.texi: Mention roundl module.
50821         * MODULES.html.sh: Mention new modules.
50822         Thanks to Bruno Haible for suggestions.
50823
50824 2007-10-20  Jim Meyering  <meyering@redhat.com>
50825
50826         * lib/xprintf.c: Include <config.h> unconditionally.
50827
50828         Change xprintf's license to GPL.
50829         * modules/xprintf (License): s/LGPL/GPL/, since this module
50830         depends on modules (exit and exitfail) which are GPL.
50831         Suggestion from Bruno Haible.
50832
50833         xprintf fixes.
50834         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
50835         Use a clearer diagnostic.
50836         Patch from Bruno Haible.
50837
50838 2007-10-20  Bruno Haible  <bruno@clisp.org>
50839
50840         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
50841         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
50842         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50843
50844 2007-10-20  Bruno Haible  <bruno@clisp.org>
50845
50846         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
50847         precision in the comparison result > x - 1 or similar.
50848         * tests/test-ceilf2.c (correct_result_p): Likewise.
50849         * tests/test-truncf2.c (correct_result_p): Likewise.
50850         * tests/test-trunc2.c (correct_result_p): Likewise.
50851         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50852
50853 2007-10-20  Bruno Haible  <bruno@clisp.org>
50854
50855         * modules/ceil: New file.
50856         * m4/ceil.m4: New file.
50857         * doc/functions/ceil.texi: Mention the 'ceil' module.
50858
50859 2007-10-20  Bruno Haible  <bruno@clisp.org>
50860
50861         * modules/floor: New file.
50862         * m4/floor.m4: New file.
50863         * doc/functions/floor.texi: Mention the 'floor' module.
50864
50865 2007-10-20  Bruno Haible  <bruno@clisp.org>
50866
50867         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
50868         of %a.
50869         * modules/floorf-tests (Depends-on): Likewise.
50870         * modules/truncf-tests (Depends-on): Likewise.
50871         * modules/trunc-tests (Depends-on): Likewise.
50872         Reported by Ben Pfaff.
50873
50874 2007-10-19  Jim Meyering  <meyering@redhat.com>
50875
50876         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
50877         Don't bother testing specific errno values.  Just test ferror.
50878
50879         New module: xprintf
50880         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
50881
50882 2007-10-19  Bruno Haible  <bruno@clisp.org>
50883
50884         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
50885         syntax.
50886         * modules/javaexec (Makefile.am): Likewise.
50887         * modules/relocatable-prog (Makefile.am): Likewise.
50888         Suggested by Jim Meyering.
50889
50890 2007-10-18  Bruno Haible  <bruno@clisp.org>
50891
50892         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
50893         Reported by Jim Meyering.
50894
50895 2007-10-18  Eric Blake  <ebb9@byu.net>
50896
50897         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
50898
50899 2007-10-18  Bruno Haible  <bruno@clisp.org>
50900
50901         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
50902         the format string into writable memory. Needed in Fortify conditions.
50903
50904 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
50905             Bruno Haible  <bruno@clisp.org>
50906
50907         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
50908         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
50909         * modules/trim (Depends-on): Add mbchar.
50910         (configure.ac): Add gl_FUNC_MBRTOWC.
50911         (Makefile.am): Augment lib_SOURCES.
50912
50913 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
50914
50915         Modify glob.c to use fstatat and dirfd, to simplify it.
50916         Suggested by Eric Blake.
50917         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
50918         Don't include <stdbool.h>; not used.
50919         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
50920         (link_exists_p): Simplify implementation, since we can now assume
50921         dirfd and fstatat.
50922         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
50923
50924 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50925
50926         * gnulib-tool (func_get_dependencies): Fix sed script to
50927         match only tests.
50928
50929 2007-10-17  Bruno Haible  <bruno@clisp.org>
50930
50931         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
50932         allow locale names without encoding suffix.
50933         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
50934         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
50935
50936 2007-10-16  Bruno Haible  <bruno@clisp.org>
50937
50938         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
50939         * lib/getgroups.c (getgroups): Likewise.
50940         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
50941
50942 2007-10-16  Bruno Haible  <bruno@clisp.org>
50943
50944         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
50945         * modules/malloc-posix (License): Likewise.
50946         * modules/realloc-posix (License): Likewise.
50947         * modules/calloc-posix (License): Likewise.
50948         * modules/intprops (License): Change from GPL to LGPL, with
50949         Paul Eggert's approval.
50950
50951 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
50952
50953         Merge glibc changes into lib/glob.c.
50954
50955         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
50956         2007-10-15 04:59:03 UTC.  Here are the changes:
50957
50958         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
50959
50960         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
50961
50962         * lib/glob.c: Add some branch prediction throughout.
50963
50964         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
50965
50966         [BZ #5103]
50967         * lib/glob.c (glob): Recognize patterns starting \/.
50968
50969         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
50970
50971         [BZ #3996]
50972         * lib/glob.c (attribute_hidden): Define if not defined.
50973         (glob): Unescape dirname, filename or username when needed and not
50974         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
50975         is NULL.  Handle unescaped [ in pattern without closing ].
50976         Don't pass GLOB_CHECK down to recursive glob for directories.
50977         (__glob_pattern_type): New function.
50978         (__glob_pattern_p): Implement using __glob_pattern_type.
50979         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
50980         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
50981         Remove unreachable code.
50982
50983         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
50984
50985         * lib/glob.c (glob_in_dir): Add some comments and asserts to
50986         explain why there are no leaks.
50987
50988         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
50989
50990         [BZ #3253]
50991         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
50992         time, rather allocate increasingly bigger arrays of pointers, if
50993         possible with alloca, if too large with malloc.
50994
50995 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
50996
50997         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
50998         Problem reported by H.Merijn Brand in
50999         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
51000         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
51001         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
51002
51003 2007-10-15  Bruno Haible  <bruno@clisp.org>
51004
51005         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
51006         with explicit rpl_ prefix.
51007         * lib/fopen.c (fopen): Likewise.
51008         * lib/freopen.c (freopen): Likewise.
51009         * lib/iconv.c (iconv): Likewise.
51010         * lib/iconv_close.c (iconv_close): Likewise.
51011
51012 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51013
51014         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
51015
51016 2007-10-15  Bruno Haible  <bruno@clisp.org>
51017
51018         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
51019         <stddef.h> instead of <stdlib.h> since we only need NULL.
51020         Reported by Ben Pfaff <blp@cs.stanford.edu>.
51021
51022 2007-10-15  Bruno Haible  <bruno@clisp.org>
51023
51024         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
51025         Replace paragraph talking about LIBOBJS.
51026         Reported by Colin Watson <cjwatson@debian.org>.
51027
51028 2007-10-15  Bruno Haible  <bruno@clisp.org>
51029
51030         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
51031         <stdlib.h> before using NULL.
51032
51033 2007-10-15  Simon Josefsson  <simon@josefsson.org>
51034
51035         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
51036         Reported by Albert Chin <china@thewrittenword.com>.
51037
51038 2007-10-14  Bruno Haible  <bruno@clisp.org>
51039
51040         * modules/iconv_open-utf-tests: New file.
51041         * tests/test-iconv-utf.c: New file.
51042
51043         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
51044         * modules/iconv_open-utf: New file.
51045         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
51046         (iconv, iconv_close): New declarations.
51047         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
51048         be defined.
51049         (iconv_open): Add special handling of conversion between UTF-8 and
51050         UTF-{16,32}{BE,LE}.
51051         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
51052         * lib/iconv_close.c: New file.
51053         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
51054         gl_FUNC_ICONV_OPEN.
51055         (gl_FUNC_ICONV_OPEN): Use it.
51056         (gl_FUNC_ICONV_OPEN_UTF): New macro.
51057         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
51058         and REPLACE_ICONV_UTF.
51059         * modules/iconv_open (Depends-on): Add c-strcase.
51060         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
51061         ICONV_CONST.
51062         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
51063
51064 2007-10-13  Albert Chin  <china@thewrittenword.com>
51065             Bruno Haible  <bruno@clisp.org>
51066
51067         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
51068         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
51069
51070 2007-10-13  Bruno Haible  <bruno@clisp.org>
51071
51072         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
51073         defined, use the ISO C99 inline semantics.
51074         * lib/argp.h (ARGP_EI): Likewise.
51075
51076 2007-10-13  Bruno Haible  <bruno@clisp.org>
51077
51078         Handle 'inline' change in gcc 4.3.0.
51079         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
51080         argp_fmtstream_write, argp_fmtstream_set_lmargin,
51081         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
51082         argp_fmtstream_point): Disable 'extern' declaration if the function
51083         definition is going to be provided inline.
51084         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
51085         semantics, not the ISO C99 inline semantics.
51086         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
51087         'extern' declaration if the function definition is going to be provided
51088         inline.
51089         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
51090         the GNU C inline semantics, not the ISO C99 inline semantics. With
51091         GCC 4.2, avoid a warning.
51092
51093 2007-10-13  Bruno Haible  <bruno@clisp.org>
51094
51095         * lib/freading.h (freading): Enable the use of __freading for
51096         glibc >= 2.7.
51097         * lib/freading.c (freading): Likewise.
51098
51099 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
51100
51101         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
51102         "warning: C99 inline functions are not supported; using GNU89".
51103
51104 2007-10-12  Bruno Haible  <bruno@clisp.org>
51105
51106         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
51107         of 2.
51108         * tests/test-ceilf2.c: New file.
51109         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
51110
51111         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
51112         * modules/ceilf-tests: Update.
51113
51114 2007-10-12  Bruno Haible  <bruno@clisp.org>
51115
51116         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
51117         of 2.
51118         * tests/test-floorf2.c: New file.
51119         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
51120
51121         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
51122         * modules/floorf-tests: Update.
51123
51124 2007-10-12  Bruno Haible  <bruno@clisp.org>
51125
51126         * tests/test-trunc2.c: New file.
51127         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
51128
51129         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
51130         * modules/trunc-tests: Update.
51131
51132 2007-10-12  Bruno Haible  <bruno@clisp.org>
51133
51134         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
51135         of 2.
51136         * tests/test-truncf2.c: New file.
51137         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
51138
51139         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
51140         * modules/truncf-tests: Update.
51141
51142 2007-10-11  Eric Blake  <ebb9@byu.net>
51143
51144         Don't claim strerror is broken on Interix.
51145         * doc/functions/strerror.texi (strerror): Known broken systems are
51146         now Solaris 8, and not Interix.
51147         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
51148         Interix on cross-compile.
51149         Reported by Martin Koeppe in
51150         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
51151
51152 2007-10-11  Bruno Haible  <bruno@clisp.org>
51153
51154         * modules/i-ring-tests: New file.
51155         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
51156         instead of assert.
51157
51158 2007-10-11  Bruno Haible  <bruno@clisp.org>
51159
51160         * modules/filenamecat-tests: New file.
51161         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
51162         * lib/filenamecat.c: Remove test code.
51163
51164 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
51165
51166         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
51167
51168         * lib/strerror.c: Include <string.h> always, to test interface,
51169         and to remove the need for the dummy.
51170         Include intprops.h to compute width instead of doing it ourselves
51171         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
51172         (strerror): Define it to return NULL if there's no system strerror.
51173         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
51174         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
51175         ancient pre-strerror Unix systems well any more.  Saying "unknown
51176         system error" is enough.
51177         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
51178         simpler strerror.c implementation.
51179         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
51180         Simplify the tests to reflect the simpler strerror implementation.
51181         * modules/strerror (Depends-on): Add intprops.
51182
51183 2007-10-09  Eric Blake  <ebb9@byu.net>
51184
51185         Silence test-fpending.
51186         * modules/fpending-tests (Files): Add wrapper script.
51187         * tests/test-fpending.sh: New file.
51188
51189 2007-10-09  Bruno Haible  <bruno@clisp.org>
51190
51191         * MODULES.html.sh (func_module): Don't create a hyperlink for
51192         function names like 'printf_frexp'.
51193         (Misc): Add crc, memxor.
51194         (Characteristics of floating types): New section.
51195         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
51196         isnanf-nolibm, signbit, trunc, truncf, truncl.
51197         (Enhancements for ISO C 99 functions): New subsection Input/output.
51198         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
51199         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
51200         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
51201         (Compatibility checks for POSIX:2001 functions): Add clock-time.
51202         (Enhancements for POSIX:2001 functions): Add chdir-long.
51203         (File system functions): Add areadlink, chdir-safer, read-file.
51204         Remove cycle-check.
51205         (File system as inode set): New section.
51206         (Date and time): Add gethrxtime.
51207         (Multithreading): Add openmp.
51208         (Internationalization functions): Add localename.
51209         (Unicode string functions): Add unistr/u*-mbsnlen.
51210         (Support for maintaining and releasing projects): Add git-version-gen.
51211         (Lone files): Remove directories.
51212
51213 2007-10-08  Ben Pfaff  <blp@gnu.org>
51214
51215         * lib/xmalloca.h: Fix typo in comment.
51216
51217 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
51218
51219         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
51220         when avoiding problems with integer overflow.  Use a portable test
51221         instead.
51222
51223 2007-10-08  Simon Josefsson  <simon@josefsson.org>
51224
51225         * modules/dummy (License): Change to LGPLv2+.
51226         * modules/float (License): Likewise
51227         * modules/realloc (License): Likewise
51228         * modules/stdlib (License): Likewise
51229
51230 2007-10-07  Bruno Haible  <bruno@clisp.org>
51231
51232         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
51233         * floor.c (TWO_MANT_DIG): Likewise.
51234         * ceil.c (TWO_MANT_DIG): Likewise.
51235         Reported by Ben Pfaff.
51236
51237 2007-10-07  Bruno Haible  <bruno@clisp.org>
51238
51239         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
51240         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
51241         * lib/frexp.c (FUNC): Likewise.
51242         * lib/printf-frexp.h (printf_frexp): Likewise.
51243         * lib/printf-frexpl.h (printf_frexpl): Likewise.
51244         * lib/printf-frexp.c (FUNC): Likewise.
51245         Suggested by Jim Meyering.
51246
51247 2007-10-07  Jim Meyering  <meyering@redhat.com>
51248
51249         Make xnanosleep's integer overflow test more robust.
51250         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
51251         so that gcc-4.3.0 doesn't optimize away this test for overflow.
51252
51253 2007-10-07  Bruno Haible  <bruno@clisp.org>
51254
51255         * NEWS: Mention the license change.
51256
51257         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
51258         abbreviations in the modules files.
51259
51260         Change copyright notice from GPLv2+ to GPLv3+.
51261         * README: Change copyright notice.
51262         * MODULES.html.sh: Likewise.
51263         * build-aux/bootstrap.conf: Likewise.
51264         * build-aux/config.libpath: Likewise.
51265         * build-aux/csharpcomp.sh.in: Likewise.
51266         * build-aux/csharpexec.sh.in: Likewise.
51267         * build-aux/install-reloc: Likewise.
51268         * build-aux/javacomp.sh.in: Likewise.
51269         * build-aux/javaexec.sh.in: Likewise.
51270         * build-aux/ldd.sh.in: Likewise.
51271         * build-aux/reloc-ldflags: Likewise.
51272         * build-aux/relocatable.sh.in: Likewise.
51273         * build-aux/x-to-1.in: Likewise.
51274         * check-module: Likewise.
51275         * config/srclistvars.sh: Likewise.
51276         * gnulib-tool: Likewise.
51277         * lib/acl-internal.h: Likewise.
51278         * lib/acl.c: Likewise.
51279         * lib/acl.h: Likewise.
51280         * lib/acl_entries.c: Likewise.
51281         * lib/areadlink-with-size.c: Likewise.
51282         * lib/areadlink.c: Likewise.
51283         * lib/areadlink.h: Likewise.
51284         * lib/argmatch.c: Likewise.
51285         * lib/argmatch.h: Likewise.
51286         * lib/argp-ba.c: Likewise.
51287         * lib/argp-eexst.c: Likewise.
51288         * lib/argp-fmtstream.c: Likewise.
51289         * lib/argp-fmtstream.h: Likewise.
51290         * lib/argp-fs-xinl.c: Likewise.
51291         * lib/argp-help.c: Likewise.
51292         * lib/argp-namefrob.h: Likewise.
51293         * lib/argp-parse.c: Likewise.
51294         * lib/argp-pin.c: Likewise.
51295         * lib/argp-pv.c: Likewise.
51296         * lib/argp-pvh.c: Likewise.
51297         * lib/argp-xinl.c: Likewise.
51298         * lib/argp.h: Likewise.
51299         * lib/at-func.c: Likewise.
51300         * lib/atanl.c: Likewise.
51301         * lib/backupfile.c: Likewise.
51302         * lib/backupfile.h: Likewise.
51303         * lib/basename.c: Likewise.
51304         * lib/binary-io.h: Likewise.
51305         * lib/byteswap.in.h: Likewise.
51306         * lib/c-stack.c: Likewise.
51307         * lib/c-stack.h: Likewise.
51308         * lib/c-strcasestr.c: Likewise.
51309         * lib/c-strcasestr.h: Likewise.
51310         * lib/c-strstr.c: Likewise.
51311         * lib/c-strstr.h: Likewise.
51312         * lib/c-strtod.c: Likewise.
51313         * lib/calloc.c: Likewise.
51314         * lib/canon-host.c: Likewise.
51315         * lib/canon-host.h: Likewise.
51316         * lib/canonicalize-lgpl.c: Likewise.
51317         * lib/canonicalize.c: Likewise.
51318         * lib/canonicalize.h: Likewise.
51319         * lib/ceil.c: Likewise.
51320         * lib/ceilf.c: Likewise.
51321         * lib/ceill.c: Likewise.
51322         * lib/chdir-long.c: Likewise.
51323         * lib/chdir-long.h: Likewise.
51324         * lib/chdir-safer.c: Likewise.
51325         * lib/chdir-safer.h: Likewise.
51326         * lib/chown.c: Likewise.
51327         * lib/classpath.c: Likewise.
51328         * lib/classpath.h: Likewise.
51329         * lib/clean-temp.c: Likewise.
51330         * lib/clean-temp.h: Likewise.
51331         * lib/cloexec.c: Likewise.
51332         * lib/close-stream.c: Likewise.
51333         * lib/closein.c: Likewise.
51334         * lib/closein.h: Likewise.
51335         * lib/closeout.c: Likewise.
51336         * lib/closeout.h: Likewise.
51337         * lib/concat-filename.c: Likewise.
51338         * lib/copy-file.c: Likewise.
51339         * lib/copy-file.h: Likewise.
51340         * lib/count-one-bits.h: Likewise.
51341         * lib/crc.c: Likewise.
51342         * lib/crc.h: Likewise.
51343         * lib/creat-safer.c: Likewise.
51344         * lib/csharpcomp.c: Likewise.
51345         * lib/csharpcomp.h: Likewise.
51346         * lib/csharpexec.c: Likewise.
51347         * lib/csharpexec.h: Likewise.
51348         * lib/cycle-check.c: Likewise.
51349         * lib/cycle-check.h: Likewise.
51350         * lib/diacrit.c: Likewise.
51351         * lib/diacrit.h: Likewise.
51352         * lib/diffseq.h: Likewise.
51353         * lib/dirchownmod.c: Likewise.
51354         * lib/dirent.in.h: Likewise.
51355         * lib/dirfd.c: Likewise.
51356         * lib/dirfd.h: Likewise.
51357         * lib/dirname.c: Likewise.
51358         * lib/dirname.h: Likewise.
51359         * lib/dummy.c: Likewise.
51360         * lib/dup-safer.c: Likewise.
51361         * lib/dup2.c: Likewise.
51362         * lib/eealloc.h: Likewise.
51363         * lib/error.c: Likewise.
51364         * lib/error.h: Likewise.
51365         * lib/euidaccess.c: Likewise.
51366         * lib/exclude.c: Likewise.
51367         * lib/exclude.h: Likewise.
51368         * lib/execute.c: Likewise.
51369         * lib/execute.h: Likewise.
51370         * lib/exitfail.c: Likewise.
51371         * lib/exitfail.h: Likewise.
51372         * lib/expl.c: Likewise.
51373         * lib/fatal-signal.c: Likewise.
51374         * lib/fatal-signal.h: Likewise.
51375         * lib/fbufmode.c: Likewise.
51376         * lib/fbufmode.h: Likewise.
51377         * lib/fchdir.c: Likewise.
51378         * lib/fchmodat.c: Likewise.
51379         * lib/fchownat.c: Likewise.
51380         * lib/fcntl--.h: Likewise.
51381         * lib/fcntl-safer.h: Likewise.
51382         * lib/fcntl.in.h: Likewise.
51383         * lib/fd-safer.c: Likewise.
51384         * lib/fflush.c: Likewise.
51385         * lib/file-has-acl.c: Likewise.
51386         * lib/file-set.c: Likewise.
51387         * lib/file-type.c: Likewise.
51388         * lib/file-type.h: Likewise.
51389         * lib/fileblocks.c: Likewise.
51390         * lib/filemode.c: Likewise.
51391         * lib/filemode.h: Likewise.
51392         * lib/filename.h: Likewise.
51393         * lib/filenamecat.c: Likewise.
51394         * lib/filenamecat.h: Likewise.
51395         * lib/findprog.c: Likewise.
51396         * lib/findprog.h: Likewise.
51397         * lib/float.in.h: Likewise.
51398         * lib/floor.c: Likewise.
51399         * lib/floorf.c: Likewise.
51400         * lib/floorl.c: Likewise.
51401         * lib/fopen-safer.c: Likewise.
51402         * lib/fopen.c: Likewise.
51403         * lib/fpending.c: Likewise.
51404         * lib/fpending.h: Likewise.
51405         * lib/fprintf.c: Likewise.
51406         * lib/fprintftime.h: Likewise.
51407         * lib/fpucw.h: Likewise.
51408         * lib/fpurge.c: Likewise.
51409         * lib/fpurge.h: Likewise.
51410         * lib/freadable.c: Likewise.
51411         * lib/freadable.h: Likewise.
51412         * lib/freadahead.c: Likewise.
51413         * lib/freadahead.h: Likewise.
51414         * lib/freading.c: Likewise.
51415         * lib/freading.h: Likewise.
51416         * lib/free.c: Likewise.
51417         * lib/freopen.c: Likewise.
51418         * lib/frexp.c: Likewise.
51419         * lib/frexpl.c: Likewise.
51420         * lib/fseek.c: Likewise.
51421         * lib/fseterr.c: Likewise.
51422         * lib/fseterr.h: Likewise.
51423         * lib/fstatat.c: Likewise.
51424         * lib/fstrcmp.c: Likewise.
51425         * lib/fstrcmp.h: Likewise.
51426         * lib/fsusage.c: Likewise.
51427         * lib/fsusage.h: Likewise.
51428         * lib/ftell.c: Likewise.
51429         * lib/ftello.c: Likewise.
51430         * lib/fts-cycle.c: Likewise.
51431         * lib/fts.c: Likewise.
51432         * lib/fts_.h: Likewise.
51433         * lib/full-read.c: Likewise.
51434         * lib/full-read.h: Likewise.
51435         * lib/full-write.c: Likewise.
51436         * lib/full-write.h: Likewise.
51437         * lib/fwritable.c: Likewise.
51438         * lib/fwritable.h: Likewise.
51439         * lib/fwriteerror.c: Likewise.
51440         * lib/fwriteerror.h: Likewise.
51441         * lib/fwriting.c: Likewise.
51442         * lib/fwriting.h: Likewise.
51443         * lib/gcd.c: Likewise.
51444         * lib/gcd.h: Likewise.
51445         * lib/getcwd.c: Likewise.
51446         * lib/getdate.h: Likewise.
51447         * lib/getdate.y: Likewise.
51448         * lib/getdomainname.c: Likewise.
51449         * lib/getdomainname.h: Likewise.
51450         * lib/getgroups.c: Likewise.
51451         * lib/gethostname.c: Likewise.
51452         * lib/gethrxtime.c: Likewise.
51453         * lib/gethrxtime.h: Likewise.
51454         * lib/getloadavg.c: Likewise.
51455         * lib/getndelim2.c: Likewise.
51456         * lib/getndelim2.h: Likewise.
51457         * lib/getnline.c: Likewise.
51458         * lib/getnline.h: Likewise.
51459         * lib/getopt.c: Likewise.
51460         * lib/getopt.in.h: Likewise.
51461         * lib/getopt1.c: Likewise.
51462         * lib/getopt_int.h: Likewise.
51463         * lib/getpagesize.h: Likewise.
51464         * lib/getsubopt.c: Likewise.
51465         * lib/gettime.c: Likewise.
51466         * lib/getugroups.c: Likewise.
51467         * lib/getugroups.h: Likewise.
51468         * lib/getusershell.c: Likewise.
51469         * lib/gl_anyavltree_list1.h: Likewise.
51470         * lib/gl_anyavltree_list2.h: Likewise.
51471         * lib/gl_anyhash_list1.h: Likewise.
51472         * lib/gl_anyhash_list2.h: Likewise.
51473         * lib/gl_anylinked_list1.h: Likewise.
51474         * lib/gl_anylinked_list2.h: Likewise.
51475         * lib/gl_anyrbtree_list1.h: Likewise.
51476         * lib/gl_anyrbtree_list2.h: Likewise.
51477         * lib/gl_anytree_list1.h: Likewise.
51478         * lib/gl_anytree_list2.h: Likewise.
51479         * lib/gl_anytree_oset.h: Likewise.
51480         * lib/gl_anytreehash_list1.h: Likewise.
51481         * lib/gl_anytreehash_list2.h: Likewise.
51482         * lib/gl_array_list.c: Likewise.
51483         * lib/gl_array_list.h: Likewise.
51484         * lib/gl_array_oset.c: Likewise.
51485         * lib/gl_array_oset.h: Likewise.
51486         * lib/gl_avltree_list.c: Likewise.
51487         * lib/gl_avltree_list.h: Likewise.
51488         * lib/gl_avltree_oset.c: Likewise.
51489         * lib/gl_avltree_oset.h: Likewise.
51490         * lib/gl_avltreehash_list.c: Likewise.
51491         * lib/gl_avltreehash_list.h: Likewise.
51492         * lib/gl_carray_list.c: Likewise.
51493         * lib/gl_carray_list.h: Likewise.
51494         * lib/gl_linked_list.c: Likewise.
51495         * lib/gl_linked_list.h: Likewise.
51496         * lib/gl_linkedhash_list.c: Likewise.
51497         * lib/gl_linkedhash_list.h: Likewise.
51498         * lib/gl_list.c: Likewise.
51499         * lib/gl_list.h: Likewise.
51500         * lib/gl_oset.c: Likewise.
51501         * lib/gl_oset.h: Likewise.
51502         * lib/gl_rbtree_list.c: Likewise.
51503         * lib/gl_rbtree_list.h: Likewise.
51504         * lib/gl_rbtree_oset.c: Likewise.
51505         * lib/gl_rbtree_oset.h: Likewise.
51506         * lib/gl_rbtreehash_list.c: Likewise.
51507         * lib/gl_rbtreehash_list.h: Likewise.
51508         * lib/gl_sublist.c: Likewise.
51509         * lib/gl_sublist.h: Likewise.
51510         * lib/group-member.c: Likewise.
51511         * lib/group-member.h: Likewise.
51512         * lib/hard-locale.c: Likewise.
51513         * lib/hard-locale.h: Likewise.
51514         * lib/hash-pjw.c: Likewise.
51515         * lib/hash-pjw.h: Likewise.
51516         * lib/hash-triple.c: Likewise.
51517         * lib/hash.c: Likewise.
51518         * lib/hash.h: Likewise.
51519         * lib/human.c: Likewise.
51520         * lib/human.h: Likewise.
51521         * lib/i-ring.c: Likewise.
51522         * lib/i-ring.h: Likewise.
51523         * lib/idcache.c: Likewise.
51524         * lib/imaxabs.c: Likewise.
51525         * lib/imaxdiv.c: Likewise.
51526         * lib/inet_pton.c: Likewise.
51527         * lib/inet_pton.h: Likewise.
51528         * lib/intprops.h: Likewise.
51529         * lib/inttostr.c: Likewise.
51530         * lib/inttostr.h: Likewise.
51531         * lib/inttypes.in.h: Likewise.
51532         * lib/isapipe.c: Likewise.
51533         * lib/isdir.c: Likewise.
51534         * lib/isnan.c: Likewise.
51535         * lib/isnan.h: Likewise.
51536         * lib/isnanf.c: Likewise.
51537         * lib/isnanf.h: Likewise.
51538         * lib/isnanl-nolibm.h: Likewise.
51539         * lib/isnanl.c: Likewise.
51540         * lib/isnanl.h: Likewise.
51541         * lib/javacomp.c: Likewise.
51542         * lib/javacomp.h: Likewise.
51543         * lib/javaexec.c: Likewise.
51544         * lib/javaexec.h: Likewise.
51545         * lib/javaversion.c: Likewise.
51546         * lib/javaversion.h: Likewise.
51547         * lib/javaversion.java: Likewise.
51548         * lib/lbrkprop.h: Likewise.
51549         * lib/lchmod.h: Likewise.
51550         * lib/lchown.c: Likewise.
51551         * lib/ldexpl.c: Likewise.
51552         * lib/linebreak.c: Likewise.
51553         * lib/linebreak.h: Likewise.
51554         * lib/linebuffer.c: Likewise.
51555         * lib/linebuffer.h: Likewise.
51556         * lib/locale.in.h: Likewise.
51557         * lib/logl.c: Likewise.
51558         * lib/long-options.c: Likewise.
51559         * lib/long-options.h: Likewise.
51560         * lib/lstat.c: Likewise.
51561         * lib/lstat.h: Likewise.
51562         * lib/math.in.h: Likewise.
51563         * lib/mbchar.c: Likewise.
51564         * lib/mbchar.h: Likewise.
51565         * lib/mbfile.h: Likewise.
51566         * lib/mbiter.h: Likewise.
51567         * lib/mbscasecmp.c: Likewise.
51568         * lib/mbscasestr.c: Likewise.
51569         * lib/mbschr.c: Likewise.
51570         * lib/mbscspn.c: Likewise.
51571         * lib/mbslen.c: Likewise.
51572         * lib/mbsncasecmp.c: Likewise.
51573         * lib/mbsnlen.c: Likewise.
51574         * lib/mbspbrk.c: Likewise.
51575         * lib/mbspcasecmp.c: Likewise.
51576         * lib/mbsrchr.c: Likewise.
51577         * lib/mbssep.c: Likewise.
51578         * lib/mbsspn.c: Likewise.
51579         * lib/mbsstr.c: Likewise.
51580         * lib/mbstok_r.c: Likewise.
51581         * lib/mbswidth.c: Likewise.
51582         * lib/mbswidth.h: Likewise.
51583         * lib/mbuiter.h: Likewise.
51584         * lib/memcasecmp.c: Likewise.
51585         * lib/memcasecmp.h: Likewise.
51586         * lib/memchr.c: Likewise.
51587         * lib/memcmp.c: Likewise.
51588         * lib/memcoll.c: Likewise.
51589         * lib/memcoll.h: Likewise.
51590         * lib/memcpy.c: Likewise.
51591         * lib/memrchr.c: Likewise.
51592         * lib/mkancesdirs.c: Likewise.
51593         * lib/mkdir-p.c: Likewise.
51594         * lib/mkdir-p.h: Likewise.
51595         * lib/mkdir.c: Likewise.
51596         * lib/mkdirat.c: Likewise.
51597         * lib/mkdtemp.c: Likewise.
51598         * lib/mkstemp-safer.c: Likewise.
51599         * lib/mkstemp.c: Likewise.
51600         * lib/modechange.c: Likewise.
51601         * lib/modechange.h: Likewise.
51602         * lib/mountlist.c: Likewise.
51603         * lib/mountlist.h: Likewise.
51604         * lib/mpsort.c: Likewise.
51605         * lib/nanosleep.c: Likewise.
51606         * lib/obstack.c: Likewise.
51607         * lib/obstack.h: Likewise.
51608         * lib/open-safer.c: Likewise.
51609         * lib/open.c: Likewise.
51610         * lib/openat-die.c: Likewise.
51611         * lib/openat-priv.h: Likewise.
51612         * lib/openat-proc.c: Likewise.
51613         * lib/openat.c: Likewise.
51614         * lib/openat.h: Likewise.
51615         * lib/pagealign_alloc.c: Likewise.
51616         * lib/pagealign_alloc.h: Likewise.
51617         * lib/physmem.c: Likewise.
51618         * lib/physmem.h: Likewise.
51619         * lib/pipe-safer.c: Likewise.
51620         * lib/pipe.c: Likewise.
51621         * lib/pipe.h: Likewise.
51622         * lib/posixtm.c: Likewise.
51623         * lib/posixtm.h: Likewise.
51624         * lib/posixver.c: Likewise.
51625         * lib/printf-frexp.c: Likewise.
51626         * lib/printf-frexp.h: Likewise.
51627         * lib/printf-frexpl.c: Likewise.
51628         * lib/printf-frexpl.h: Likewise.
51629         * lib/printf.c: Likewise.
51630         * lib/progname.c: Likewise.
51631         * lib/progname.h: Likewise.
51632         * lib/progreloc.c: Likewise.
51633         * lib/putenv.c: Likewise.
51634         * lib/quote.c: Likewise.
51635         * lib/quote.h: Likewise.
51636         * lib/quotearg.c: Likewise.
51637         * lib/quotearg.h: Likewise.
51638         * lib/raise.c: Likewise.
51639         * lib/readline.c: Likewise.
51640         * lib/readline.h: Likewise.
51641         * lib/readlink.c: Likewise.
51642         * lib/readtokens.c: Likewise.
51643         * lib/readtokens.h: Likewise.
51644         * lib/readtokens0.c: Likewise.
51645         * lib/readtokens0.h: Likewise.
51646         * lib/readutmp.c: Likewise.
51647         * lib/readutmp.h: Likewise.
51648         * lib/realloc.c: Likewise.
51649         * lib/relocwrapper.c: Likewise.
51650         * lib/rename-dest-slash.c: Likewise.
51651         * lib/rename.c: Likewise.
51652         * lib/rmdir.c: Likewise.
51653         * lib/rpmatch.c: Likewise.
51654         * lib/safe-read.c: Likewise.
51655         * lib/safe-read.h: Likewise.
51656         * lib/safe-write.c: Likewise.
51657         * lib/safe-write.h: Likewise.
51658         * lib/same-inode.h: Likewise.
51659         * lib/same.c: Likewise.
51660         * lib/same.h: Likewise.
51661         * lib/save-cwd.c: Likewise.
51662         * lib/save-cwd.h: Likewise.
51663         * lib/savedir.c: Likewise.
51664         * lib/savedir.h: Likewise.
51665         * lib/savewd.c: Likewise.
51666         * lib/savewd.h: Likewise.
51667         * lib/search.in.h: Likewise.
51668         * lib/setenv.c: Likewise.
51669         * lib/setenv.h: Likewise.
51670         * lib/settime.c: Likewise.
51671         * lib/sh-quote.c: Likewise.
51672         * lib/sh-quote.h: Likewise.
51673         * lib/sig2str.c: Likewise.
51674         * lib/sig2str.h: Likewise.
51675         * lib/signal.in.h: Likewise.
51676         * lib/signbitd.c: Likewise.
51677         * lib/signbitf.c: Likewise.
51678         * lib/signbitl.c: Likewise.
51679         * lib/sigprocmask.c: Likewise.
51680         * lib/sincosl.c: Likewise.
51681         * lib/sleep.c: Likewise.
51682         * lib/sprintf.c: Likewise.
51683         * lib/sqrtl.c: Likewise.
51684         * lib/stat-time.h: Likewise.
51685         * lib/stdio--.h: Likewise.
51686         * lib/stdio-safer.h: Likewise.
51687         * lib/stdlib--.h: Likewise.
51688         * lib/stdlib-safer.h: Likewise.
51689         * lib/stdlib.in.h: Likewise.
51690         * lib/stpcpy.c: Likewise.
51691         * lib/stpncpy.c: Likewise.
51692         * lib/strchrnul.c: Likewise.
51693         * lib/strcspn.c: Likewise.
51694         * lib/strerror.c: Likewise.
51695         * lib/strftime.c: Likewise.
51696         * lib/strftime.h: Likewise.
51697         * lib/striconveh.c: Likewise.
51698         * lib/striconveh.h: Likewise.
51699         * lib/striconveha.c: Likewise.
51700         * lib/striconveha.h: Likewise.
51701         * lib/stripslash.c: Likewise.
51702         * lib/strnlen1.c: Likewise.
51703         * lib/strnlen1.h: Likewise.
51704         * lib/strtod.c: Likewise.
51705         * lib/strtoimax.c: Likewise.
51706         * lib/strtok_r.c: Likewise.
51707         * lib/strtol.c: Likewise.
51708         * lib/strtoll.c: Likewise.
51709         * lib/strtoul.c: Likewise.
51710         * lib/strtoull.c: Likewise.
51711         * lib/sysexits.in.h: Likewise.
51712         * lib/tempname.c: Likewise.
51713         * lib/tempname.h: Likewise.
51714         * lib/timespec.h: Likewise.
51715         * lib/tls.c: Likewise.
51716         * lib/tls.h: Likewise.
51717         * lib/tmpdir.c: Likewise.
51718         * lib/tmpdir.h: Likewise.
51719         * lib/tmpfile-safer.c: Likewise.
51720         * lib/tmpfile.c: Likewise.
51721         * lib/trigl.c: Likewise.
51722         * lib/trigl.h: Likewise.
51723         * lib/trim.c: Likewise.
51724         * lib/trim.h: Likewise.
51725         * lib/trunc.c: Likewise.
51726         * lib/truncf.c: Likewise.
51727         * lib/truncl.c: Likewise.
51728         * lib/tsearch.c: Likewise.
51729         * lib/unicodeio.c: Likewise.
51730         * lib/unicodeio.h: Likewise.
51731         * lib/unistd--.h: Likewise.
51732         * lib/unistd-safer.h: Likewise.
51733         * lib/unistdio/ulc-fprintf.c: Likewise.
51734         * lib/unistdio/ulc-vfprintf.c: Likewise.
51735         * lib/unlinkdir.c: Likewise.
51736         * lib/unlinkdir.h: Likewise.
51737         * lib/unlocked-io.h: Likewise.
51738         * lib/unsetenv.c: Likewise.
51739         * lib/userspec.c: Likewise.
51740         * lib/utime.c: Likewise.
51741         * lib/utimecmp.c: Likewise.
51742         * lib/utimecmp.h: Likewise.
51743         * lib/utimens.c: Likewise.
51744         * lib/verify.h: Likewise.
51745         * lib/verror.c: Likewise.
51746         * lib/verror.h: Likewise.
51747         * lib/version-etc-fsf.c: Likewise.
51748         * lib/version-etc.c: Likewise.
51749         * lib/version-etc.h: Likewise.
51750         * lib/vfprintf.c: Likewise.
51751         * lib/vprintf.c: Likewise.
51752         * lib/vsprintf.c: Likewise.
51753         * lib/w32spawn.h: Likewise.
51754         * lib/wait-process.c: Likewise.
51755         * lib/wait-process.h: Likewise.
51756         * lib/wcwidth.c: Likewise.
51757         * lib/write-any-file.c: Likewise.
51758         * lib/xalloc-die.c: Likewise.
51759         * lib/xalloc.h: Likewise.
51760         * lib/xasprintf.c: Likewise.
51761         * lib/xgetcwd.c: Likewise.
51762         * lib/xgetcwd.h: Likewise.
51763         * lib/xgetdomainname.c: Likewise.
51764         * lib/xgetdomainname.h: Likewise.
51765         * lib/xgethostname.c: Likewise.
51766         * lib/xmalloc.c: Likewise.
51767         * lib/xmalloca.c: Likewise.
51768         * lib/xmalloca.h: Likewise.
51769         * lib/xmemcoll.c: Likewise.
51770         * lib/xnanosleep.c: Likewise.
51771         * lib/xreadlink.c: Likewise.
51772         * lib/xreadlink.h: Likewise.
51773         * lib/xsetenv.c: Likewise.
51774         * lib/xsetenv.h: Likewise.
51775         * lib/xstriconv.c: Likewise.
51776         * lib/xstriconv.h: Likewise.
51777         * lib/xstrndup.c: Likewise.
51778         * lib/xstrndup.h: Likewise.
51779         * lib/xstrtod.c: Likewise.
51780         * lib/xstrtod.h: Likewise.
51781         * lib/xstrtol-error.c: Likewise.
51782         * lib/xstrtol.c: Likewise.
51783         * lib/xstrtol.h: Likewise.
51784         * lib/xtime.h: Likewise.
51785         * lib/xvasprintf.c: Likewise.
51786         * lib/xvasprintf.h: Likewise.
51787         * lib/yesno.c: Likewise.
51788         * lib/yesno.h: Likewise.
51789         * posix-modules: Likewise.
51790         * tests/test-alloca-opt.c: Likewise.
51791         * tests/test-arcfour.c: Likewise.
51792         * tests/test-arctwo.c: Likewise.
51793         * tests/test-argmatch.c: Likewise.
51794         * tests/test-argp-2.sh: Likewise.
51795         * tests/test-argp.c: Likewise.
51796         * tests/test-arpa_inet.c: Likewise.
51797         * tests/test-array_list.c: Likewise.
51798         * tests/test-array_oset.c: Likewise.
51799         * tests/test-atexit.c: Likewise.
51800         * tests/test-avltree_list.c: Likewise.
51801         * tests/test-avltree_oset.c: Likewise.
51802         * tests/test-avltreehash_list.c: Likewise.
51803         * tests/test-base64.c: Likewise.
51804         * tests/test-binary-io.c: Likewise.
51805         * tests/test-byteswap.c: Likewise.
51806         * tests/test-c-ctype.c: Likewise.
51807         * tests/test-c-strcasecmp.c: Likewise.
51808         * tests/test-c-strcasestr.c: Likewise.
51809         * tests/test-c-strncasecmp.c: Likewise.
51810         * tests/test-c-strstr.c: Likewise.
51811         * tests/test-canonicalize-lgpl.c: Likewise.
51812         * tests/test-canonicalize.c: Likewise.
51813         * tests/test-carray_list.c: Likewise.
51814         * tests/test-ceilf.c: Likewise.
51815         * tests/test-ceill.c: Likewise.
51816         * tests/test-count-one-bits.c: Likewise.
51817         * tests/test-crc.c: Likewise.
51818         * tests/test-dirname.c: Likewise.
51819         * tests/test-fbufmode.c: Likewise.
51820         * tests/test-fcntl.c: Likewise.
51821         * tests/test-fflush.c: Likewise.
51822         * tests/test-floorf.c: Likewise.
51823         * tests/test-floorl.c: Likewise.
51824         * tests/test-fopen.c: Likewise.
51825         * tests/test-fprintf-posix.c: Likewise.
51826         * tests/test-fprintf-posix.h: Likewise.
51827         * tests/test-fpurge.c: Likewise.
51828         * tests/test-freadable.c: Likewise.
51829         * tests/test-freadahead.c: Likewise.
51830         * tests/test-freading.c: Likewise.
51831         * tests/test-freopen.c: Likewise.
51832         * tests/test-frexp.c: Likewise.
51833         * tests/test-frexpl.c: Likewise.
51834         * tests/test-fseek.c: Likewise.
51835         * tests/test-fseeko.c: Likewise.
51836         * tests/test-fseterr.c: Likewise.
51837         * tests/test-fstrcmp.c: Likewise.
51838         * tests/test-ftell.c: Likewise.
51839         * tests/test-ftello.c: Likewise.
51840         * tests/test-fwritable.c: Likewise.
51841         * tests/test-fwriting.c: Likewise.
51842         * tests/test-getaddrinfo.c: Likewise.
51843         * tests/test-getpass.c: Likewise.
51844         * tests/test-gettimeofday.c: Likewise.
51845         * tests/test-hmac-md5.c: Likewise.
51846         * tests/test-hmac-sha1.c: Likewise.
51847         * tests/test-iconv.c: Likewise.
51848         * tests/test-iconvme.c: Likewise.
51849         * tests/test-inttypes.c: Likewise.
51850         * tests/test-isnan.c: Likewise.
51851         * tests/test-isnanf.c: Likewise.
51852         * tests/test-isnanl-nolibm.c: Likewise.
51853         * tests/test-isnanl.c: Likewise.
51854         * tests/test-isnanl.h: Likewise.
51855         * tests/test-ldexpl.c: Likewise.
51856         * tests/test-linked_list.c: Likewise.
51857         * tests/test-linkedhash_list.c: Likewise.
51858         * tests/test-locale.c: Likewise.
51859         * tests/test-localename.c: Likewise.
51860         * tests/test-lock.c: Likewise.
51861         * tests/test-lseek.c: Likewise.
51862         * tests/test-malloca.c: Likewise.
51863         * tests/test-math.c: Likewise.
51864         * tests/test-mbscasecmp.c: Likewise.
51865         * tests/test-mbscasestr1.c: Likewise.
51866         * tests/test-mbscasestr2.c: Likewise.
51867         * tests/test-mbscasestr3.c: Likewise.
51868         * tests/test-mbscasestr4.c: Likewise.
51869         * tests/test-mbschr.c: Likewise.
51870         * tests/test-mbscspn.c: Likewise.
51871         * tests/test-mbsncasecmp.c: Likewise.
51872         * tests/test-mbspbrk.c: Likewise.
51873         * tests/test-mbspcasecmp.c: Likewise.
51874         * tests/test-mbsrchr.c: Likewise.
51875         * tests/test-mbsspn.c: Likewise.
51876         * tests/test-mbsstr1.c: Likewise.
51877         * tests/test-mbsstr2.c: Likewise.
51878         * tests/test-mbsstr3.c: Likewise.
51879         * tests/test-md5.c: Likewise.
51880         * tests/test-memmem.c: Likewise.
51881         * tests/test-netinet_in.c: Likewise.
51882         * tests/test-open.c: Likewise.
51883         * tests/test-printf-frexp.c: Likewise.
51884         * tests/test-printf-frexpl.c: Likewise.
51885         * tests/test-printf-posix.c: Likewise.
51886         * tests/test-printf-posix.h: Likewise.
51887         * tests/test-rbtree_list.c: Likewise.
51888         * tests/test-rbtree_oset.c: Likewise.
51889         * tests/test-rbtreehash_list.c: Likewise.
51890         * tests/test-read-file.c: Likewise.
51891         * tests/test-rijndael.c: Likewise.
51892         * tests/test-search.c: Likewise.
51893         * tests/test-signbit.c: Likewise.
51894         * tests/test-sleep.c: Likewise.
51895         * tests/test-snprintf-posix.c: Likewise.
51896         * tests/test-snprintf-posix.h: Likewise.
51897         * tests/test-snprintf.c: Likewise.
51898         * tests/test-sprintf-posix.c: Likewise.
51899         * tests/test-sprintf-posix.h: Likewise.
51900         * tests/test-stat-time.c: Likewise.
51901         * tests/test-stdbool.c: Likewise.
51902         * tests/test-stdint.c: Likewise.
51903         * tests/test-stdio.c: Likewise.
51904         * tests/test-stdlib.c: Likewise.
51905         * tests/test-stpncpy.c: Likewise.
51906         * tests/test-strcasestr.c: Likewise.
51907         * tests/test-striconv.c: Likewise.
51908         * tests/test-striconveh.c: Likewise.
51909         * tests/test-striconveha.c: Likewise.
51910         * tests/test-string.c: Likewise.
51911         * tests/test-sys_select.c: Likewise.
51912         * tests/test-sys_socket.c: Likewise.
51913         * tests/test-sys_stat.c: Likewise.
51914         * tests/test-sys_time.c: Likewise.
51915         * tests/test-sysexits.c: Likewise.
51916         * tests/test-time.c: Likewise.
51917         * tests/test-tls.c: Likewise.
51918         * tests/test-trunc.c: Likewise.
51919         * tests/test-truncf.c: Likewise.
51920         * tests/test-truncl.c: Likewise.
51921         * tests/test-unistd.c: Likewise.
51922         * tests/test-vasnprintf-posix.c: Likewise.
51923         * tests/test-vasnprintf-posix2.c: Likewise.
51924         * tests/test-vasnprintf.c: Likewise.
51925         * tests/test-vasprintf-posix.c: Likewise.
51926         * tests/test-vasprintf.c: Likewise.
51927         * tests/test-verify.c: Likewise.
51928         * tests/test-vfprintf-posix.c: Likewise.
51929         * tests/test-vprintf-posix.c: Likewise.
51930         * tests/test-vsnprintf-posix.c: Likewise.
51931         * tests/test-vsnprintf.c: Likewise.
51932         * tests/test-vsprintf-posix.c: Likewise.
51933         * tests/test-wchar.c: Likewise.
51934         * tests/test-wctype.c: Likewise.
51935         * tests/test-wcwidth.c: Likewise.
51936         * tests/test-xstrtol.c: Likewise.
51937         * tests/test-xvasprintf.c: Likewise.
51938         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
51939         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
51940         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
51941         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
51942         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
51943         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
51944         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
51945         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
51946         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
51947         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
51948         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
51949         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
51950         * tests/uniname/test-uninames.c: Likewise.
51951         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
51952         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
51953         * tests/unistdio/test-u16-printf1.h: Likewise.
51954         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
51955         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
51956         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
51957         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
51958         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
51959         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
51960         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
51961         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
51962         * tests/unistdio/test-u32-printf1.h: Likewise.
51963         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
51964         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
51965         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
51966         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
51967         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
51968         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
51969         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
51970         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
51971         * tests/unistdio/test-u8-printf1.h: Likewise.
51972         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
51973         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
51974         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
51975         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
51976         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
51977         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
51978         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
51979         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
51980         * tests/unistdio/test-ulc-printf1.h: Likewise.
51981         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
51982         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
51983         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
51984         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
51985         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
51986         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
51987         * tests/uniwidth/test-u16-strwidth.c: Likewise.
51988         * tests/uniwidth/test-u16-width.c: Likewise.
51989         * tests/uniwidth/test-u32-strwidth.c: Likewise.
51990         * tests/uniwidth/test-u32-width.c: Likewise.
51991         * tests/uniwidth/test-u8-strwidth.c: Likewise.
51992         * tests/uniwidth/test-u8-width.c: Likewise.
51993         * tests/uniwidth/test-uc_width.c: Likewise.
51994         * config/srclist-update: Likewise.
51995         (fixlicense): Update to GPLv3+.
51996
51997         Change copyright notice from LGPLv2.1+ to LGPLv3+.
51998         * tests/test-tsearch.c: Change copyright notice.
51999
52000         Change copyright notice from LGPLv2.0+ to LGPLv3+.
52001         * lib/c-strcaseeq.h: Change copyright notice.
52002         * lib/streq.h: Likewise.
52003         * lib/uniconv.h: Likewise.
52004         * lib/uniconv/u-conv-from-enc.h: Likewise.
52005         * lib/uniconv/u-conv-to-enc.h: Likewise.
52006         * lib/uniconv/u-strconv-from-enc.h: Likewise.
52007         * lib/uniconv/u-strconv-to-enc.h: Likewise.
52008         * lib/uniconv/u16-conv-from-enc.c: Likewise.
52009         * lib/uniconv/u16-conv-to-enc.c: Likewise.
52010         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
52011         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
52012         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
52013         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
52014         * lib/uniconv/u32-conv-from-enc.c: Likewise.
52015         * lib/uniconv/u32-conv-to-enc.c: Likewise.
52016         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
52017         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
52018         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
52019         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
52020         * lib/uniconv/u8-conv-from-enc.c: Likewise.
52021         * lib/uniconv/u8-conv-to-enc.c: Likewise.
52022         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
52023         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
52024         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
52025         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
52026         * lib/uniname.h: Likewise.
52027         * lib/uniname/uniname.c: Likewise.
52028         * lib/unistdio.h: Likewise.
52029         * lib/unistdio/u-asnprintf.h: Likewise.
52030         * lib/unistdio/u-asprintf.h: Likewise.
52031         * lib/unistdio/u-printf-args.c: Likewise.
52032         * lib/unistdio/u-printf-args.h: Likewise.
52033         * lib/unistdio/u-printf-parse.h: Likewise.
52034         * lib/unistdio/u-snprintf.h: Likewise.
52035         * lib/unistdio/u-sprintf.h: Likewise.
52036         * lib/unistdio/u-vasprintf.h: Likewise.
52037         * lib/unistdio/u-vsnprintf.h: Likewise.
52038         * lib/unistdio/u-vsprintf.h: Likewise.
52039         * lib/unistdio/u16-asnprintf.c: Likewise.
52040         * lib/unistdio/u16-asprintf.c: Likewise.
52041         * lib/unistdio/u16-printf-parse.c: Likewise.
52042         * lib/unistdio/u16-snprintf.c: Likewise.
52043         * lib/unistdio/u16-sprintf.c: Likewise.
52044         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
52045         * lib/unistdio/u16-u16-asprintf.c: Likewise.
52046         * lib/unistdio/u16-u16-snprintf.c: Likewise.
52047         * lib/unistdio/u16-u16-sprintf.c: Likewise.
52048         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
52049         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
52050         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
52051         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
52052         * lib/unistdio/u16-vasnprintf.c: Likewise.
52053         * lib/unistdio/u16-vasprintf.c: Likewise.
52054         * lib/unistdio/u16-vsnprintf.c: Likewise.
52055         * lib/unistdio/u16-vsprintf.c: Likewise.
52056         * lib/unistdio/u32-asnprintf.c: Likewise.
52057         * lib/unistdio/u32-asprintf.c: Likewise.
52058         * lib/unistdio/u32-printf-parse.c: Likewise.
52059         * lib/unistdio/u32-snprintf.c: Likewise.
52060         * lib/unistdio/u32-sprintf.c: Likewise.
52061         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
52062         * lib/unistdio/u32-u32-asprintf.c: Likewise.
52063         * lib/unistdio/u32-u32-snprintf.c: Likewise.
52064         * lib/unistdio/u32-u32-sprintf.c: Likewise.
52065         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
52066         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
52067         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
52068         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
52069         * lib/unistdio/u32-vasnprintf.c: Likewise.
52070         * lib/unistdio/u32-vasprintf.c: Likewise.
52071         * lib/unistdio/u32-vsnprintf.c: Likewise.
52072         * lib/unistdio/u32-vsprintf.c: Likewise.
52073         * lib/unistdio/u8-asnprintf.c: Likewise.
52074         * lib/unistdio/u8-asprintf.c: Likewise.
52075         * lib/unistdio/u8-printf-parse.c: Likewise.
52076         * lib/unistdio/u8-snprintf.c: Likewise.
52077         * lib/unistdio/u8-sprintf.c: Likewise.
52078         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
52079         * lib/unistdio/u8-u8-asprintf.c: Likewise.
52080         * lib/unistdio/u8-u8-snprintf.c: Likewise.
52081         * lib/unistdio/u8-u8-sprintf.c: Likewise.
52082         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
52083         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
52084         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
52085         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
52086         * lib/unistdio/u8-vasnprintf.c: Likewise.
52087         * lib/unistdio/u8-vasprintf.c: Likewise.
52088         * lib/unistdio/u8-vsnprintf.c: Likewise.
52089         * lib/unistdio/u8-vsprintf.c: Likewise.
52090         * lib/unistdio/ulc-asnprintf.c: Likewise.
52091         * lib/unistdio/ulc-asprintf.c: Likewise.
52092         * lib/unistdio/ulc-printf-parse.c: Likewise.
52093         * lib/unistdio/ulc-snprintf.c: Likewise.
52094         * lib/unistdio/ulc-sprintf.c: Likewise.
52095         * lib/unistdio/ulc-vasnprintf.c: Likewise.
52096         * lib/unistdio/ulc-vasprintf.c: Likewise.
52097         * lib/unistdio/ulc-vsnprintf.c: Likewise.
52098         * lib/unistdio/ulc-vsprintf.c: Likewise.
52099         * lib/unistr.h: Likewise.
52100         * lib/unistr/u-cpy-alloc.h: Likewise.
52101         * lib/unistr/u-cpy.h: Likewise.
52102         * lib/unistr/u-endswith.h: Likewise.
52103         * lib/unistr/u-move.h: Likewise.
52104         * lib/unistr/u-set.h: Likewise.
52105         * lib/unistr/u-startswith.h: Likewise.
52106         * lib/unistr/u-stpcpy.h: Likewise.
52107         * lib/unistr/u-stpncpy.h: Likewise.
52108         * lib/unistr/u-strcat.h: Likewise.
52109         * lib/unistr/u-strcpy.h: Likewise.
52110         * lib/unistr/u-strcspn.h: Likewise.
52111         * lib/unistr/u-strdup.h: Likewise.
52112         * lib/unistr/u-strlen.h: Likewise.
52113         * lib/unistr/u-strncat.h: Likewise.
52114         * lib/unistr/u-strncpy.h: Likewise.
52115         * lib/unistr/u-strnlen.h: Likewise.
52116         * lib/unistr/u-strpbrk.h: Likewise.
52117         * lib/unistr/u-strspn.h: Likewise.
52118         * lib/unistr/u-strstr.h: Likewise.
52119         * lib/unistr/u-strtok.h: Likewise.
52120         * lib/unistr/u16-check.c: Likewise.
52121         * lib/unistr/u16-chr.c: Likewise.
52122         * lib/unistr/u16-cmp.c: Likewise.
52123         * lib/unistr/u16-cpy-alloc.c: Likewise.
52124         * lib/unistr/u16-cpy.c: Likewise.
52125         * lib/unistr/u16-endswith.c: Likewise.
52126         * lib/unistr/u16-mblen.c: Likewise.
52127         * lib/unistr/u16-mbsnlen.c: Likewise.
52128         * lib/unistr/u16-mbtouc-aux.c: Likewise.
52129         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
52130         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
52131         * lib/unistr/u16-mbtouc.c: Likewise.
52132         * lib/unistr/u16-mbtoucr.c: Likewise.
52133         * lib/unistr/u16-move.c: Likewise.
52134         * lib/unistr/u16-next.c: Likewise.
52135         * lib/unistr/u16-prev.c: Likewise.
52136         * lib/unistr/u16-set.c: Likewise.
52137         * lib/unistr/u16-startswith.c: Likewise.
52138         * lib/unistr/u16-stpcpy.c: Likewise.
52139         * lib/unistr/u16-stpncpy.c: Likewise.
52140         * lib/unistr/u16-strcat.c: Likewise.
52141         * lib/unistr/u16-strchr.c: Likewise.
52142         * lib/unistr/u16-strcmp.c: Likewise.
52143         * lib/unistr/u16-strcpy.c: Likewise.
52144         * lib/unistr/u16-strcspn.c: Likewise.
52145         * lib/unistr/u16-strdup.c: Likewise.
52146         * lib/unistr/u16-strlen.c: Likewise.
52147         * lib/unistr/u16-strmblen.c: Likewise.
52148         * lib/unistr/u16-strmbtouc.c: Likewise.
52149         * lib/unistr/u16-strncat.c: Likewise.
52150         * lib/unistr/u16-strncmp.c: Likewise.
52151         * lib/unistr/u16-strncpy.c: Likewise.
52152         * lib/unistr/u16-strnlen.c: Likewise.
52153         * lib/unistr/u16-strpbrk.c: Likewise.
52154         * lib/unistr/u16-strrchr.c: Likewise.
52155         * lib/unistr/u16-strspn.c: Likewise.
52156         * lib/unistr/u16-strstr.c: Likewise.
52157         * lib/unistr/u16-strtok.c: Likewise.
52158         * lib/unistr/u16-to-u32.c: Likewise.
52159         * lib/unistr/u16-to-u8.c: Likewise.
52160         * lib/unistr/u16-uctomb-aux.c: Likewise.
52161         * lib/unistr/u16-uctomb.c: Likewise.
52162         * lib/unistr/u32-check.c: Likewise.
52163         * lib/unistr/u32-chr.c: Likewise.
52164         * lib/unistr/u32-cmp.c: Likewise.
52165         * lib/unistr/u32-cpy-alloc.c: Likewise.
52166         * lib/unistr/u32-cpy.c: Likewise.
52167         * lib/unistr/u32-endswith.c: Likewise.
52168         * lib/unistr/u32-mblen.c: Likewise.
52169         * lib/unistr/u32-mbsnlen.c: Likewise.
52170         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
52171         * lib/unistr/u32-mbtouc.c: Likewise.
52172         * lib/unistr/u32-mbtoucr.c: Likewise.
52173         * lib/unistr/u32-move.c: Likewise.
52174         * lib/unistr/u32-next.c: Likewise.
52175         * lib/unistr/u32-prev.c: Likewise.
52176         * lib/unistr/u32-set.c: Likewise.
52177         * lib/unistr/u32-startswith.c: Likewise.
52178         * lib/unistr/u32-stpcpy.c: Likewise.
52179         * lib/unistr/u32-stpncpy.c: Likewise.
52180         * lib/unistr/u32-strcat.c: Likewise.
52181         * lib/unistr/u32-strchr.c: Likewise.
52182         * lib/unistr/u32-strcmp.c: Likewise.
52183         * lib/unistr/u32-strcpy.c: Likewise.
52184         * lib/unistr/u32-strcspn.c: Likewise.
52185         * lib/unistr/u32-strdup.c: Likewise.
52186         * lib/unistr/u32-strlen.c: Likewise.
52187         * lib/unistr/u32-strmblen.c: Likewise.
52188         * lib/unistr/u32-strmbtouc.c: Likewise.
52189         * lib/unistr/u32-strncat.c: Likewise.
52190         * lib/unistr/u32-strncmp.c: Likewise.
52191         * lib/unistr/u32-strncpy.c: Likewise.
52192         * lib/unistr/u32-strnlen.c: Likewise.
52193         * lib/unistr/u32-strpbrk.c: Likewise.
52194         * lib/unistr/u32-strrchr.c: Likewise.
52195         * lib/unistr/u32-strspn.c: Likewise.
52196         * lib/unistr/u32-strstr.c: Likewise.
52197         * lib/unistr/u32-strtok.c: Likewise.
52198         * lib/unistr/u32-to-u16.c: Likewise.
52199         * lib/unistr/u32-to-u8.c: Likewise.
52200         * lib/unistr/u32-uctomb.c: Likewise.
52201         * lib/unistr/u8-check.c: Likewise.
52202         * lib/unistr/u8-chr.c: Likewise.
52203         * lib/unistr/u8-cmp.c: Likewise.
52204         * lib/unistr/u8-cpy-alloc.c: Likewise.
52205         * lib/unistr/u8-cpy.c: Likewise.
52206         * lib/unistr/u8-endswith.c: Likewise.
52207         * lib/unistr/u8-mblen.c: Likewise.
52208         * lib/unistr/u8-mbsnlen.c: Likewise.
52209         * lib/unistr/u8-mbtouc-aux.c: Likewise.
52210         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
52211         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
52212         * lib/unistr/u8-mbtouc.c: Likewise.
52213         * lib/unistr/u8-mbtoucr.c: Likewise.
52214         * lib/unistr/u8-move.c: Likewise.
52215         * lib/unistr/u8-next.c: Likewise.
52216         * lib/unistr/u8-prev.c: Likewise.
52217         * lib/unistr/u8-set.c: Likewise.
52218         * lib/unistr/u8-startswith.c: Likewise.
52219         * lib/unistr/u8-stpcpy.c: Likewise.
52220         * lib/unistr/u8-stpncpy.c: Likewise.
52221         * lib/unistr/u8-strcat.c: Likewise.
52222         * lib/unistr/u8-strchr.c: Likewise.
52223         * lib/unistr/u8-strcmp.c: Likewise.
52224         * lib/unistr/u8-strcpy.c: Likewise.
52225         * lib/unistr/u8-strcspn.c: Likewise.
52226         * lib/unistr/u8-strdup.c: Likewise.
52227         * lib/unistr/u8-strlen.c: Likewise.
52228         * lib/unistr/u8-strmblen.c: Likewise.
52229         * lib/unistr/u8-strmbtouc.c: Likewise.
52230         * lib/unistr/u8-strncat.c: Likewise.
52231         * lib/unistr/u8-strncmp.c: Likewise.
52232         * lib/unistr/u8-strncpy.c: Likewise.
52233         * lib/unistr/u8-strnlen.c: Likewise.
52234         * lib/unistr/u8-strpbrk.c: Likewise.
52235         * lib/unistr/u8-strrchr.c: Likewise.
52236         * lib/unistr/u8-strspn.c: Likewise.
52237         * lib/unistr/u8-strstr.c: Likewise.
52238         * lib/unistr/u8-strtok.c: Likewise.
52239         * lib/unistr/u8-to-u16.c: Likewise.
52240         * lib/unistr/u8-to-u32.c: Likewise.
52241         * lib/unistr/u8-uctomb-aux.c: Likewise.
52242         * lib/unistr/u8-uctomb.c: Likewise.
52243         * lib/unitypes.h: Likewise.
52244         * lib/uniwidth.h: Likewise.
52245         * lib/uniwidth/cjk.h: Likewise.
52246         * lib/uniwidth/u16-strwidth.c: Likewise.
52247         * lib/uniwidth/u16-width.c: Likewise.
52248         * lib/uniwidth/u32-strwidth.c: Likewise.
52249         * lib/uniwidth/u32-width.c: Likewise.
52250         * lib/uniwidth/u8-strwidth.c: Likewise.
52251         * lib/uniwidth/u8-width.c: Likewise.
52252         * lib/uniwidth/width.c: Likewise.
52253
52254 2007-10-07  Bruno Haible  <bruno@clisp.org>
52255
52256         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
52257         The file is still under LGPL (see modules/inttypes).
52258
52259 2007-10-06  Bruno Haible  <bruno@clisp.org>
52260
52261         * modules/trunc (Dependencies): Add 'extensions'.
52262         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
52263         Reported by Ben Pfaff <blp@gnu.org>.
52264
52265 2007-10-06  Bruno Haible  <bruno@clisp.org>
52266
52267         * modules/freopen-tests: New file.
52268         * tests/test-freopen.c: New file.
52269
52270         * modules/fopen-tests: New file.
52271         * tests/test-fopen.c: New file.
52272
52273         * modules/fopen: New file.
52274         * lib/fopen.c: New file.
52275         * m4/fopen.m4: New file.
52276         * modules/freopen: New file.
52277         * lib/freopen.c: New file.
52278         * m4/freopen.m4: New file.
52279         * lib/stdio.in.h (fopen, freopen): New declarations.
52280         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
52281         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
52282         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
52283         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
52284         * doc/functions/fopen.texi: Mention the 'fopen' module.
52285         * doc/functions/freopen.texi: Mention the 'freopen' module.
52286
52287 2007-10-06  Bruno Haible  <bruno@clisp.org>
52288
52289         * modules/open-tests: New file.
52290         * tests/test-open.c: New file.
52291
52292         * modules/open: New file.
52293         * lib/open.c: New file.
52294         * m4/open.m4: New file.
52295         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
52296         lib/open.c does.
52297         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
52298         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
52299         macros.
52300         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
52301         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
52302         REPLACE_OPEN.
52303         * doc/functions/open.texi: Mention the 'open' module.
52304
52305 2007-10-04  Bruno Haible  <bruno@clisp.org>
52306
52307         * modules/ceill-tests: New file.
52308         * tests/test-ceill.c: New file.
52309
52310         * modules/ceill: New file.
52311         * lib/ceill.c: Replace entire file.
52312         * m4/ceill.m4: New file.
52313         * lib/math.in.h (ceill): Replace declaration.
52314         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
52315         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
52316         * doc/functions/ceill.texi: Mention the 'ceill' module.
52317         * modules/mathl (Files): Remove lib/ceill.c.
52318         (Depends-on): Add ceill.
52319
52320 2007-10-04  Bruno Haible  <bruno@clisp.org>
52321
52322         * modules/ceilf-tests: New file.
52323         * tests/test-ceilf.c: New file.
52324
52325         * modules/ceilf: New file.
52326         * lib/ceil.c: New file.
52327         * lib/ceilf.c: New file.
52328         * m4/ceilf.m4: New file.
52329         * lib/math.in.h (ceilf): New declaration.
52330         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
52331         HAVE_DECL_CEILF.
52332         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
52333         HAVE_DECL_CEILF.
52334         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
52335
52336 2007-10-04  Bruno Haible  <bruno@clisp.org>
52337
52338         * modules/floorl-tests: New file.
52339         * tests/test-floorl.c: New file.
52340
52341         * modules/floorl: New file.
52342         * lib/floorl.c: Replace entire file.
52343         * m4/floorl.m4: New file.
52344         * lib/math.in.h (floorl): Replace declaration.
52345         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
52346         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
52347         * doc/functions/floorl.texi: Mention the 'floorl' module.
52348         * modules/mathl (Files): Remove lib/floorl.c.
52349         (Depends-on): Add floorl.
52350
52351 2007-10-04  Bruno Haible  <bruno@clisp.org>
52352
52353         * modules/floorf-tests: New file.
52354         * tests/test-floorf.c: New file.
52355
52356         * modules/floorf: New file.
52357         * lib/floor.c: New file.
52358         * lib/floorf.c: New file.
52359         * m4/floorf.m4: New file.
52360         * lib/math.in.h (floorf): New declaration.
52361         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
52362         HAVE_DECL_FLOORF.
52363         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
52364         HAVE_DECL_FLOORF.
52365         * doc/functions/floorf.texi: Mention the 'floorf' module.
52366
52367 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
52368             Bruno Haible  <bruno@clisp.org>
52369
52370         Advertise for the Git server instead of the CVS server.
52371         * doc/gnulib-intro.texi (Steady Development): Mention the Git
52372         repository instead of the CVS one.
52373         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
52374         about all VCS systems generically.
52375         * doc/gnulib.texi (Introduction): Capitalize `Git'.
52376
52377 2007-10-04  Bruno Haible  <bruno@clisp.org>
52378
52379         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
52380         means.
52381         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
52382
52383 2007-10-04  Bruno Haible  <bruno@clisp.org>
52384
52385         * modules/truncl-tests: New file.
52386         * tests/test-truncl.c: New file.
52387
52388         * modules/truncl: New file.
52389         * lib/truncl.c: New file.
52390         * m4/truncl.m4: New file.
52391         * lib/math.in.h (truncl): New declaration.
52392         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
52393         HAVE_DECL_TRUNCL.
52394         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
52395         HAVE_DECL_TRUNCL.
52396         * doc/functions/truncl.texi: Mention the 'truncl' module.
52397
52398 2007-10-04  Bruno Haible  <bruno@clisp.org>
52399
52400         * modules/truncf-tests: New file.
52401         * tests/test-truncf.c: New file.
52402
52403         * modules/truncf: New file.
52404         * lib/trunc.c: Make paramerizable through USE_* macros.
52405         * lib/truncf.c: New file.
52406         * m4/truncf.m4: New file.
52407         * lib/math.in.h (truncf): New declaration.
52408         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
52409         HAVE_DECL_TRUNCF.
52410         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
52411         HAVE_DECL_TRUNCF.
52412         * doc/functions/truncf.texi: Mention the 'truncf' module.
52413
52414 2007-10-03  Bruno Haible  <bruno@clisp.org>
52415
52416         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
52417         augmentation also for tests modules.
52418         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
52419         * modules/atexit-tests (Makefile.am): Likewise.
52420         * modules/binary-io-tests (Makefile.am): Likewise.
52421         * modules/c-strcase-tests (Makefile.am): Likewise.
52422         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
52423         * modules/canonicalize-tests (Makefile.am): Likewise.
52424         * modules/closein-tests (Makefile.am): Likewise.
52425         * modules/fprintf-posix-tests (Makefile.am): Likewise.
52426         * modules/freadahead-tests (Makefile.am): Likewise.
52427         * modules/fseek-tests (Makefile.am): Likewise.
52428         * modules/fseeko-tests (Makefile.am): Likewise.
52429         * modules/ftell-tests (Makefile.am): Likewise.
52430         * modules/ftello-tests (Makefile.am): Likewise.
52431         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
52432         * modules/isnanl-tests (Makefile.am): Likewise.
52433         * modules/lseek-tests (Makefile.am): Likewise.
52434         * modules/mbscasecmp-tests (Makefile.am): Likewise.
52435         * modules/mbscasestr-tests (Makefile.am): Likewise.
52436         * modules/mbschr-tests (Makefile.am): Likewise.
52437         * modules/mbscspn-tests (Makefile.am): Likewise.
52438         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
52439         * modules/mbspbrk-tests (Makefile.am): Likewise.
52440         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
52441         * modules/mbsrchr-tests (Makefile.am): Likewise.
52442         * modules/mbsspn-tests (Makefile.am): Likewise.
52443         * modules/mbsstr-tests (Makefile.am): Likewise.
52444         * modules/printf-posix-tests (Makefile.am): Likewise.
52445         * modules/snprintf-posix-tests (Makefile.am): Likewise.
52446         * modules/sprintf-posix-tests (Makefile.am): Likewise.
52447         * modules/tsearch-tests (Makefile.am): Likewise.
52448         * modules/uniname/uniname-tests (Makefile.am): Likewise.
52449         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
52450         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
52451         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
52452         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
52453         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
52454         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
52455         * modules/vprintf-posix-tests (Makefile.am): Likewise.
52456         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
52457         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
52458         * modules/xstrtoimax-tests (Makefile.am): Likewise.
52459         * modules/xstrtol-tests (Makefile.am): Likewise.
52460         * modules/xstrtoumax-tests (Makefile.am): Likewise.
52461         * modules/yesno-tests (Makefile.am): Likewise.
52462
52463 2007-10-03  Bruno Haible  <bruno@clisp.org>
52464
52465         * modules/trunc-tests: New file.
52466         * tests/test-trunc.c: New file.
52467
52468         * modules/trunc: New file.
52469         * lib/trunc.c: New file.
52470         * m4/trunc.m4: New file.
52471         * lib/math.in.h (trunc): New declaration.
52472         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
52473         HAVE_DECL_TRUNC.
52474         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
52475         HAVE_DECL_TRUNC.
52476         * doc/functions/trunc.texi: Mention the 'trunc' module.
52477
52478 2007-10-03  Bruno Haible  <bruno@clisp.org>
52479
52480         * tests/test-fpending.c: New file, mostly copied
52481         from coreutils/lib/t-fpending.c.
52482         * modules/fpending-tests: New file.
52483
52484 2007-10-03  Bruno Haible  <bruno@clisp.org>
52485
52486         Port the stdio extensions to QNX (untested).
52487         * lib/fseterr.c (fseterr): Add support for QNX.
52488         * lib/fbufmode.c (fbufmode): Likewise.
52489         * lib/freadable.c (freadable): Likewise.
52490         * lib/fwritable.c (fwritable): Likewise.
52491         * lib/freading.c (freading): Likewise.
52492         * lib/fwriting.c (fwriting): Likewise.
52493         * lib/freadahead.c (freadahed): Likewise.
52494         * lib/fpurge.c (fpurge): Likewise.
52495         * lib/fseeko.c (rpl_fseeko): Likewise.
52496
52497 2007-10-03  Bruno Haible  <bruno@clisp.org>
52498             Jim Meyering  <jim@meyering.net>
52499             Eric Blake  <ebb9@byu.net>
52500
52501         * doc/relocatable.texi: Use @command instead of @program.
52502
52503 2007-10-02  Jim Meyering  <jim@meyering.net>
52504
52505         Perform one more "_.h" -> ".in.h" substitution.
52506         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
52507         instead of unistd_.h here, too.
52508
52509 2007-10-01  Bruno Haible  <bruno@clisp.org>
52510
52511         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
52512         Needed for the alloca-opt module.
52513
52514 2007-09-30  Bruno Haible  <bruno@clisp.org>
52515
52516         * lib/alloca.in.h: Renamed from lib/alloca_.h.
52517         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
52518         alloca_.h.
52519         * lib/argz.in.h: Renamed from lib/argz_.h.
52520         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
52521         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
52522         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
52523         byteswap_.h.
52524         * lib/dirent.in.h: Renamed from lib/dirent_.h.
52525         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
52526         dirent_.h.
52527         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
52528         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
52529         fcntl_.h.
52530         * lib/float.in.h: Renamed from lib/float_.h.
52531         * modules/float (Files, Makefile.am): Use float.in.h instead of
52532         float_.h.
52533         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
52534         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
52535         fnmatch_.h.
52536         * lib/getopt.in.h: Renamed from lib/getopt_.h.
52537         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
52538         getopt_.h.
52539         * lib/glob.in.h: Renamed from lib/glob_.h.
52540         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
52541         * lib/iconv.in.h: Renamed from lib/iconv_.h.
52542         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
52543         iconv_.h.
52544         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
52545         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
52546         inttypes_.h.
52547         * lib/locale.in.h: Renamed from lib/locale_.h.
52548         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
52549         locale_.h.
52550         * lib/math.in.h: Renamed from lib/math_.h.
52551         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
52552         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
52553         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
52554         of netinet_in_.h. Add dependency.
52555         * lib/poll.in.h: Renamed from lib/poll_.h.
52556         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
52557         * lib/search.in.h: Renamed from lib/search_.h.
52558         * modules/search (Files, Makefile.am): Use search.in.h instead of
52559         search_.h.
52560         * lib/signal.in.h: Renamed from lib/signal_.h.
52561         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
52562         _signal.h.
52563         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
52564         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
52565         stdbool_.h.
52566         * lib/stdint.in.h: Renamed from lib/stdint_.h.
52567         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
52568         stdint_.h.
52569         * lib/stdio.in.h: Renamed from lib/stdio_.h.
52570         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
52571         stdio_.h.
52572         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
52573         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
52574         stdlib_.h.
52575         * lib/string.in.h: Renamed from lib/string_.h.
52576         * modules/string (Files, Makefile.am): Use string.in.h instead of
52577         string_.h.
52578         * doc/gnulib-tool.texi (Initial import): Update.
52579         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
52580         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
52581         of sys_select_.h. Add dependency.
52582         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
52583         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
52584         of sys_socket_.h.
52585         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
52586         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
52587         sys_stat_.h.
52588         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
52589         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
52590         sys_time_.h.
52591         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
52592         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
52593         sysexits_.h.
52594         * lib/time.in.h: Renamed from lib/time_.h.
52595         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
52596         * lib/unistd.in.h: Renamed from lib/unistd_.h.
52597         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
52598         unistd_.h.
52599         * lib/wchar.in.h: Renamed from lib/wchar_.h.
52600         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
52601         wchar_.h.
52602         * lib/wctype.in.h: Renamed from lib/wctype_.h.
52603         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
52604         wctype_.h.
52605         * build-aux/bootstrap (slurp): Update.
52606         * lib/.cppi-disable: Update.
52607
52608 2007-09-30  Bruno Haible  <bruno@clisp.org>
52609
52610         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
52611         Needed on BeOS.
52612
52613 2007-09-30  Bruno Haible  <bruno@clisp.org>
52614
52615         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
52616
52617 2007-09-29  Bruno Haible  <bruno@clisp.org>
52618
52619         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
52620
52621 2007-09-29  Bruno Haible  <bruno@clisp.org>
52622
52623         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
52624         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
52625         * build-aux/install-reloc: Compile also areadlink.c.
52626         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
52627
52628 2007-09-29  Bruno Haible  <bruno@clisp.org>
52629
52630         * gnulib-tool (func_emit_initmacro_done): Indentation.
52631
52632 2007-09-29  Bruno Haible  <bruno@clisp.org>
52633
52634         * README: Add CVS checkout update instructions.
52635         Info from Bob Proulx <bob@proulx.com>.
52636
52637 2007-09-28  Eric Blake  <ebb9@byu.net>
52638
52639         Provide move-if-change.
52640         * build-aux/move-if-change: New file, based on best practice
52641         rather than any canonical upstream location.
52642
52643 2007-09-28  Jim Meyering  <jim@meyering.net>
52644
52645         Fix canonicalize loop-detection corner case.
52646         Do not attempt to stat the symlink values stored via seen_triple.
52647         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
52648         on linux-2.6.18, (but not 2.6.22).
52649         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
52650         triple_compare.  The former compares dev,ino,filename, while the latter
52651         would actually stat dirname(filename) when dev and ino were equal.
52652         * lib/hash-triple.c: Install <string.h>.
52653         (STREQ): Define.
52654         (triple_compare_ino_str): New function.
52655         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
52656
52657 2007-09-28  Eric Blake  <ebb9@byu.net>
52658
52659         Enforce that AC_REPLACE_FUNCS files exist.
52660         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
52661         override check for typos.
52662
52663         Fix test-closein on Solaris 10.
52664         * tests/test-closein.c (main): Don't assume stdin can be inherited
52665         closed on all systems.
52666         * tests/test-closein.sh: Likewise.
52667         Reported by Piotr Tarnowski.
52668
52669 2007-09-28  Jim Meyering  <jim@meyering.net>
52670
52671         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
52672
52673 2007-09-27  Jim Meyering  <jim@meyering.net>
52674
52675         canonicalize: Avoid a false-positive cycle failure.
52676         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
52677         Sort.  Remove cycle-check.
52678         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
52679         not cycle-check.h.
52680         (seen_triple): New function.
52681         (canonicalize_filename_mode): Use it instead of cycle-check.
52682         * tests/test-canonicalize.c: Add a test for this bug.
52683         * tests/test-canonicalize.sh: Set up and run the test.
52684
52685         New module, file-set, from coreutils.
52686         * modules/file-set: Define it.
52687         * lib/file-set.c, lib/file-set.h: Implement.
52688
52689         New module, hash-triple, from coreutils.
52690         * modules/hash-triple: Define it.
52691         * lib/hash-triple.c, lib/hash-triple.h: Implement.
52692
52693 2007-09-25  Eric Blake  <ebb9@byu.net>
52694
52695         Fix strerror on Interix.
52696         * lib/string_.h (strerror): Declare replacement.
52697         * doc/functions/strerror.texi (strerror): Document the Interix
52698         shortcoming.
52699         * modules/string (Makefile.am): Support new hooks.
52700         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
52701         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
52702         gl_FUNC_STRERROR_SEPARATE.
52703         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
52704         * lib/strerror.c (rpl_strerror): Provide replacement.
52705         * modules/strerror (Depends-on): Add string.
52706         (configure.ac): Detect use of module.
52707         * tests/test-strerror.c: New file.
52708         * modules/strerror-tests: New test module.
52709         * modules/argp (Depends-on): Add strerror.
52710         * modules/error (Depends-on): Likewise.
52711         Reported by Martin Koeppe.
52712
52713 2007-09-24  Bruno Haible  <bruno@clisp.org>
52714
52715         * README: Update git instructions.
52716
52717 2007-09-24  Eric Blake  <ebb9@byu.net>
52718
52719         Revert fpending breakage from 2007-09-08.
52720         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
52721         __fpending.c.
52722
52723 2007-09-24  Jim Meyering  <jim@meyering.net>
52724
52725         filenamecat.c: Add a test.
52726         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
52727         showing how the function works when DIR is the empty string.
52728
52729 2007-09-21  Simon Josefsson  <simon@josefsson.org>
52730
52731         * tests/test-canonicalize.sh: Turn on executable bit.
52732
52733 2007-09-19  Eric Blake  <ebb9@byu.net>
52734
52735         * README: Update CVS instructions.
52736
52737 2007-09-18  Bruno Haible  <bruno@clisp.org>
52738
52739         * modules/areadlink: New file.
52740         * lib/areadlink.h (areadlink): New declaration.
52741         * lib/areadlink.c: New file, based on lib/xreadlink.c.
52742
52743 2007-09-17  Jim Meyering  <jim@meyering.net>
52744
52745         * lib/savewd.c (ESTALE) [!defined]: Define.
52746         Reported to be required on Interix by Martin Koeppe.
52747
52748 2007-09-17  Bruno Haible  <bruno@clisp.org>
52749
52750         * gnulib-tool (func_version): Use $version.
52751
52752 2007-09-16  Bruno Haible  <bruno@clisp.org>
52753
52754         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
52755         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
52756         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
52757         Reported by Greg Schafer <gschafer@zip.com.au>.
52758
52759 2007-09-15  Bruno Haible  <bruno@clisp.org>
52760
52761         * gnulib-tool (sed): Try a little harder to make bash understand the
52762         alias.
52763         Reported by Bruce Korb <bruce.korb@gmail.com>.
52764
52765 2007-09-13  Eric Blake  <ebb9@byu.net>
52766
52767         * ChangeLog: Remove conflict markers.
52768
52769 2007-09-13  Simon Josefsson  <simon@josefsson.org>
52770
52771         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
52772         Reported by Bruno Haible <bruno@clisp.org>.
52773
52774 2007-09-12  Bruno Haible  <bruno@clisp.org>
52775
52776         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
52777         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
52778         is not defined.
52779
52780 2007-09-12  Eric Blake  <ebb9@byu.net>
52781
52782         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
52783         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
52784         Autoconf definition.
52785         * modules/euidaccess (Depends-on): Add extensions, for
52786         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
52787         * modules/fnmatch (Depends-on): Likewise.
52788         * modules/getaddrinfo (Depends-on): Likewise.
52789         * modules/getdelim (Depends-on): Likewise.
52790         * modules/getline (Depends-on): Likewise.
52791         * modules/getsubopt (Depends-on): Likewise.
52792         * modules/gettext (Depends-on): Likewise.
52793         * modules/group-member (Depends-on): Likewise.
52794         * modules/mbchar (Depends-on): Likewise.
52795         * modules/memmem (Depends-on): Likewise.
52796         * modules/mempcpy (Depends-on): Likewise.
52797         * modules/memrchr (Depends-on): Likewise.
52798         * modules/pagealign_alloc (Depends-on): Likewise.
52799         * modules/readutmp (Depends-on): Likewise.
52800         * modules/stpcpy (Depends-on): Likewise.
52801         * modules/stpncpy (Depends-on): Likewise.
52802         * modules/strchrnul (Depends-on): Likewise.
52803         * modules/strndup (Depends-on): Likewise.
52804         * modules/strsep (Depends-on): Likewise.
52805         * modules/strverscmp (Depends-on): Likewise.
52806         * modules/vasprintf (Depends-on): Likewise.
52807         * modules/wcwidth (Depends-on): Likewise.
52808         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
52809         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
52810         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
52811         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
52812         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
52813         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
52814         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
52815         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
52816         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
52817         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
52818         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
52819         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
52820         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
52821         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
52822         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
52823         * m4/readutmp.m4 (gl_READUTMP): Likewise.
52824         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
52825         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
52826         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
52827         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
52828         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
52829         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
52830         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
52831         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
52832         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
52833         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
52834         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
52835         so that lock.m4 can be used in gettext without extensions module.
52836
52837 2007-09-11  Bruno Haible  <bruno@clisp.org>
52838
52839         * m4/isc-posix.m4: Remove file.
52840         Suggested by Eric Blake.
52841
52842 2007-09-11  Eric Blake  <ebb9@byu.net>
52843
52844         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
52845
52846 2007-09-10  Bruno Haible  <bruno@clisp.org>
52847
52848         * posix-modules: Fix typo in error message.
52849         Reported by Matt <mkraai@beckman.com>.
52850
52851 2007-09-09  Bruno Haible  <bruno@clisp.org>
52852
52853         * doc/functions/getdelim.texi: Update list of platforms lacking the
52854         function.
52855         * doc/functions/getline.texi: Likewise.
52856
52857 2007-09-09  Jim Meyering  <jim@meyering.net>
52858
52859         * lib/hash.c (hash_initialize): Detect calloc failure.
52860         Reported by Bruno Haible.
52861
52862 2007-09-09  Bruno Haible  <bruno@clisp.org>
52863
52864         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
52865         malloc or realloc fails.
52866
52867 2007-09-09  Bruno Haible  <bruno@clisp.org>
52868
52869         * modules/getcwd (Depends-on): Add malloc-posix.
52870         * modules/glob (Depends-on): Likewise.
52871         * modules/putenv (Depends-on): Likewise.
52872         * modules/strdup (Depends-on): Likewise.
52873         * modules/getdelim (Depends-on): Add realloc-posix.
52874         * modules/read-file (Depends-on): Likewise.
52875
52876 2007-09-09  Bruno Haible  <bruno@clisp.org>
52877
52878         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
52879         (gl_FUNC_MALLOC_POSIX): Require it.
52880         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
52881         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
52882         * modules/realloc (Files): Add m4/malloc.m4.
52883         * modules/calloc (Files): Likewise.
52884
52885 2007-09-09  Bruno Haible  <bruno@clisp.org>
52886
52887         * modules/malloc-posix: New file.
52888         * modules/malloc (Depends-on): Add malloc-posix.
52889         * lib/malloc.c: Include errno.h.
52890         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
52891         and a POSIX-compatible malloc into a single function. Set ENOMEM
52892         when returning NULL.
52893         * m4/malloc.m4: New file.
52894         * doc/functions/malloc.texi: Mention the malloc-posix module.
52895         * lib/stdlib_.h (malloc): New declaration.
52896         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
52897         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
52898         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
52899         and HAVE_MALLOC_POSIX.
52900
52901 2007-09-09  Bruno Haible  <bruno@clisp.org>
52902
52903         * modules/realloc-posix: New file.
52904         * modules/realloc (Depends-on): Add realloc-posix.
52905         * lib/realloc.c: Include errno.h.
52906         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
52907         and a POSIX-compatible realloc into a single function. Set ENOMEM
52908         when returning NULL.
52909         * m4/realloc.m4: New file.
52910         * doc/functions/realloc.texi: Mention the realloc-posix module.
52911         * lib/stdlib_.h (realloc): New declaration.
52912         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
52913         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
52914         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
52915         and HAVE_REALLOC_POSIX.
52916
52917 2007-09-09  Bruno Haible  <bruno@clisp.org>
52918
52919         * modules/calloc-posix: New file.
52920         * modules/calloc (Depends-on): Add calloc-posix.
52921         * lib/calloc.c: Include errno.h.
52922         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
52923         and a POSIX-compatible calloc into a single function. Set ENOMEM
52924         when returning NULL.
52925         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
52926         * doc/functions/calloc.texi: Mention the calloc-posix module.
52927         * lib/stdlib_.h (calloc): New declaration.
52928         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
52929         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
52930         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
52931         and HAVE_CALLOC_POSIX.
52932
52933 2007-09-09  Bruno Haible  <bruno@clisp.org>
52934
52935         Allow for modules to show an arbitrary notice.
52936         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
52937         * gnulib-tool: New option --extract-notice.
52938         (func_usage): Document it.
52939         (sed_extract_prog): Update.
52940         (func_get_notice): New function.
52941         (func_modules_notice): New function.
52942         (func_import, func_create_testdir): Invoke it.
52943         Suggested by Jim Meyering.
52944
52945 2007-09-09  Bruno Haible  <bruno@clisp.org>
52946
52947         * gnulib-tool: New options --verbose, --quiet.
52948         (func_usage): Document them.
52949         (verbose): New variable.
52950         (func_execute_command): New function.
52951         (func_import): Don't show the module list and the file list if
52952         $verbose < 0.
52953         (func_create_testdir): Likewise. Use func_execute_command.
52954         (func_create_megatestdir): Use func_execute_command.
52955
52956 2007-09-08  Bruno Haible  <bruno@clisp.org>
52957
52958         * gnulib-tool (func_import): Prefer rsync over wget when available,
52959         for fetching the PO files.
52960
52961 2007-09-08  Bruno Haible  <bruno@clisp.org>
52962
52963         * posix-modules: New file. Portions copied from gnulib-tool.
52964         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
52965
52966 2007-09-08  Jim Meyering  <jim@meyering.net>
52967
52968         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
52969         * lib/fpending.h: Rename from __fpending.h.
52970         * lib/fpending.c: Rename from __fpending.c.
52971         Include "fpending.h", not "__fpending.h".
52972         * lib/__fpending.h, lib/__fpending.c: Remove files.
52973         * modules/fpending (Files): Reflect new file names.
52974         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
52975
52976 2007-09-08  Bruno Haible  <bruno@clisp.org>
52977
52978         * m4/inttypes-h.m4: Remove stub file.
52979
52980 2007-09-07  Simon Josefsson  <simon@josefsson.org>
52981
52982         * doc/headers/stdint.texi: Discuss #include_next issue.
52983
52984 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
52985
52986         * build-aux/bootstrap: Remove obsolete comment about wget --help.
52987
52988 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52989
52990         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
52991         in variable name.
52992
52993 2007-09-03  Jim Meyering  <jim@meyering.net>
52994
52995         New module: git-version-gen.
52996         * modules/git-version-gen: New file.
52997
52998         Import changes from coreutils for bootstrap script.
52999
53000         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
53001
53002         bootstrap: uses rsync to download the .po files
53003         * build-aux/bootstrap (po_download_command_format): New global.
53004         (download_po_files): Use rsync.
53005         (update_po_files): Don't remove .po files after download,
53006         so future rsync runs can take advantage of the copies.
53007
53008         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
53009
53010         Solve the unnecessary-.po-file-regeneration problem once and for all.
53011         * build-aux/bootstrap (download_po_files): New function, renamed from
53012         get_translations.  Now, downloads, but doesn't update LINGUAS.
53013         (update_po_files): New function.
53014
53015         bootstrap: Ignore more.
53016         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
53017         uniwidth to e.g., lib/.gitignore.
53018         (slurp): Handle the sys_stat_.h -> sys mapping, too.
53019
53020         * build-aux/bootstrap: New setting: vc_ignore.
53021         (insert_sorted_if_absent): Create $file if absent.
53022         Adapt to new, possibly empty, list: $vc_ignore.
53023
53024         bootstrap: generate more ignorable names
53025         * build-aux/bootstrap (slurp): When generating ignorable names,
53026         also map .sin to .sed, .gperf to .c, and .y to .c.
53027
53028 2007-09-03  Jim Meyering  <jim@meyering.net>
53029
53030         * build-aux/git-version-gen: New file, from coreutils.  For details, see
53031         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
53032
53033 2007-09-02  Bruno Haible  <bruno@clisp.org>
53034
53035         Fix mis-recognition of 'mcs' on QNX 6.
53036         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
53037         output contains the string "Mono".
53038         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
53039         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
53040
53041 2007-09-01  Bruno Haible  <bruno@clisp.org>
53042
53043         Fix collision between uniwidth/* and linebreak modules.
53044         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
53045         u32_width): Remove declarations.
53046         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
53047         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
53048         streq3, streq2, streq1, streq0): Remove functions.
53049         (STREQ): Remove macro.
53050         (is_cjk_encoding): Remove function.
53051         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
53052         (uc_width, u8_width, u16_width, u32_width): Remove functions.
53053         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
53054         * NEWS: Document the change.
53055
53056 2007-09-01  Bruno Haible  <bruno@clisp.org>
53057
53058         * lib/streq.h: Add double-inclusion guard.
53059
53060 2007-09-01  Karl Berry  <karl@gnu.org>
53061
53062         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
53063
53064 2007-08-28  Jim Meyering  <jim@meyering.net>
53065
53066         Rename mreadlink_with_size to areadlink_with_size.
53067         * NEWS: Document the change.
53068         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
53069         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
53070         * lib/mreadlink.h: Rename this to...
53071         * lib/areadlink.h: ...this.
53072         * modules/mreadlink-with-size: Rename this to...
53073         * modules/areadlink-with-size: ...this.
53074         * lib/canonicalize.c: Reflect the renaming.
53075         * modules/canonicalize: Likewise.
53076
53077 2007-08-26  Bruno Haible  <bruno@clisp.org>
53078
53079         * gnulib-tool (func_import): When deciding which files to remove,
53080         consider also dangling symbolic links.
53081         Reported by Eric Blake.
53082
53083 2007-08-26  Bruno Haible  <bruno@clisp.org>
53084
53085         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
53086
53087 2007-08-23  Simon Josefsson  <simon@josefsson.org>
53088
53089         * lib/readline.c: Don't include getline.h, the prototype is now
53090         found in stdio.h.
53091
53092 2007-08-23  Jim Meyering  <jim@meyering.net>
53093
53094         Getdelim touchup.
53095         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
53096         around the funlockfile call, since funlockfile never sets errno.
53097         Don't set errno upon failed realloc.
53098
53099 2007-08-22  Eric Blake  <ebb9@byu.net>
53100
53101         Getline touchups.
53102         * lib/getdelim.c (getdelim): Revert regression that required *n to
53103         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
53104         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
53105         getdelim, rather than whether implementation is missing.
53106         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
53107         * lib/stdio_.h (getline): Also declare if replacement is
53108         required.
53109         * doc/functions/getdelim.texi: New file.
53110         * doc/functions/getline.texi: Likewise.
53111         * doc/gnulib.texi (Function Substitutes): Add new files.
53112         Reported by Bruno Haible.
53113
53114 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
53115
53116         * users.txt: Add Guile.
53117
53118 2007-08-22  Eric Blake  <ebb9@byu.net>
53119
53120         * tests/test-getdelim.c (main): Use remove, not unlink.
53121         * tests/test-getline.c (main): Likewise.
53122
53123         Move getline and getdelim into stdio.h, per POSIX 200x.
53124         * modules/getline (Files): Remove getline.h.
53125         (Depends-on): Add stdio.
53126         (configure.ac): Add module indicator.
53127         * modules/getdelim (Files): Remove getdelim.h.
53128         (Depends-on): Add stdio.
53129         (configure.ac): Add module indicator.
53130         * modules/stdio (Makefile.am): Work with new indicators.
53131         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
53132         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
53133         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
53134         * lib/getdelim.h: Delete.
53135         * lib/getline.h: Delete.
53136         * lib/stdio_.h (getdelim, getline): Declare.
53137         * modules/getdelim-tests: New module.
53138         * modules/getline-tests: Likewise.
53139         * tests/test-getdelim.c: New file.
53140         * tests/test-getline.c: Likewise.
53141         * NEWS: Document the change.
53142         * lib/getline.c: Update choice of header.
53143         * lib/csharpcomp.c: Likewise.
53144         * lib/getpass.c: Likewise.
53145         * lib/javacomp.c: Likewise.
53146         * lib/javaversion.c: Likewise.
53147         * lib/yesno.c: Likewise.
53148         * lib/getdelim.c: Likewise.
53149         (getdelim): Set errno on failure, and avoid memory leak.
53150
53151 2007-08-19  Bruno Haible  <bruno@clisp.org>
53152
53153         * modules/closein (Depends-on): Add freadahead.
53154         * lib/closein.c: Include freadahead.h.
53155         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
53156         is zero.
53157
53158 2007-08-19  Bruno Haible  <bruno@clisp.org>
53159
53160         * modules/freadahead-tests: New file.
53161         * tests/test-freadahead.sh: New file.
53162         * tests/test-freadahead.c: New file.
53163
53164         * modules/freadahead: New file.
53165         * lib/freadahead.h: New file.
53166         * lib/freadahead.c: New file.
53167         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
53168         fbufmode, fpurge, freadable, fwritable.
53169
53170 2007-08-19  Eric Blake  <ebb9@byu.net>
53171
53172         Test yesno in combination with closein.
53173         * lib/yesno.c (yesno): Document use of stdin.
53174         * modules/yesno-tests (Files): New module.
53175         * tests/test-yesno.c (main): New file.
53176         * tests/test-yesno.sh: Likewise.
53177
53178 2007-08-19  Bruno Haible  <bruno@clisp.org>
53179
53180         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
53181         * lib/fseeko.c (rpl_fseeko): Likewise.
53182         * lib/fseterr.c (fseterr): Likewise.
53183
53184 2007-08-19  Bruno Haible  <bruno@clisp.org>
53185
53186         * tests/test-lseek.c (main): Disable a test for BeOS.
53187         * doc/functions/lseek.texi: Document the BeOS bug.
53188
53189 2007-08-19  Bruno Haible  <bruno@clisp.org>
53190             Eric Blake  <ebb9@byu.net>
53191
53192         * lib/lseek.c: Include <sys/stat.h>.
53193         (rpl_lseek): Add workaround code also for Unix platforms.
53194         Needed for BeOS.
53195         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
53196         * doc/functions/lseek.texi: Document BeOS definiency.
53197
53198 2007-08-18  Bruno Haible  <bruno@clisp.org>
53199
53200         * modules/fstrcmp-tests: New file.
53201         * tests/test-fstrcmp.c: New file.
53202
53203 2007-08-18  Bruno Haible  <bruno@clisp.org>
53204
53205         * modules/fstrcmp: New file, from GNU gettext with modifications.
53206         * lib/fstrcmp.h: New file, from GNU gettext.
53207         * lib/fstrcmp.c: New file, from GNU gettext.
53208         * MODULES.html.sh (String handling): Add fstrcmp.
53209
53210 2007-08-18  Bruno Haible  <bruno@clisp.org>
53211
53212         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
53213         'bool'.
53214         (diag, compareseq): Remove const from the ctxt argument.
53215         (USE_HEURISTIC): Undefine at the end.
53216
53217 2007-08-18  Jim Meyering  <jim@meyering.net>
53218
53219         New file: lib/idcache.h
53220         * NEWS: Mention the addition.
53221         * modules/idcache (Files): Add lib/idcache.h
53222         * lib/idcache.c: Include "idcache.h".
53223         Don't include <sys/types.h>.
53224         Add a FIXME comment.
53225         Move file-scoped "static" declarations to the top.
53226         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
53227
53228 2007-08-17  Bruno Haible  <bruno@clisp.org>
53229         and Paul Eggert  <eggert@cs.ucla.edu>
53230
53231         * MODULES.html.sh: Add diffseq.
53232         * modules/diffseq: New file.
53233         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
53234         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
53235
53236 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
53237
53238         Import changes from coreutils for bootstrap script.
53239
53240         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
53241
53242         * build-aux/bootstrap (slurp): Work even in environments where
53243         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
53244         current code does not slurp files whose names start with ".", and
53245         this looks like it might be a troublesome area.
53246
53247         2007-07-11  Jim Meyering  <jim@meyering.net>
53248
53249         If there's a GPL vN copyright comment, require that N == 3.
53250
53251         2007-07-08  Jim Meyering  <jim@meyering.net>
53252
53253         Run the coreutils-specific code only if tests/Makefile.am.in exists.
53254         * build-aux/bootstrap (mam_template): Move definition out of loop.
53255
53256         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
53257
53258         * build-aux/bootstrap (symlink_to_dir): Rename function from
53259         symlink_to_gnulib.  Add a directory parameter.  Update all
53260         callers.
53261         (cp_mark_as_generated): Also check for -- and link to -- files in
53262         gl/.
53263
53264         2007-07-08  Jim Meyering  <jim@meyering.net>
53265
53266         Adapt to deeper hierarchy in gnulib.
53267         * build-aux/bootstrap (symlink_to_dir): If the destination
53268         directory doesn't exist, create it. This is required at least for
53269         "lib/uniwidth/cjk.h".
53270
53271         2007-05-15  Jim Meyering  <jim@meyering.net>
53272
53273         * build-aux/bootstrap: Now that generated Makefile.am files
53274         are no longer under version control, they must be created at
53275         bootstrap time.
53276
53277 2007-08-14  Ben Pfaff  <blp@gnu.org>
53278
53279         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
53280
53281 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
53282
53283         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
53284         given the changes below.
53285         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
53286         even on hosts that have padding bits beyond the supported 64.
53287
53288 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
53289
53290         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
53291         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
53292         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
53293         depends on it.
53294         (xstrtol_error): Remove.
53295         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
53296         but with a different signature.
53297         (ATTRIBUTE_NORETURN, __attribute__): New macros.
53298         * lib/xstrtol-error.c: Include exitfail.h.
53299         (xstrtol_fatal): New function, with a different signature from the
53300         old xstrtol_error, so that the caller need not worry about passing
53301         in an exit status, or about storage management of the option argument.
53302         (xstrtol_error): Now a static function.  Redo signature to
53303         implement xstrtol_fatal.  Output the correct number of hyphens in
53304         front of the option so that the caller need not worry about
53305         storage management.
53306         (N_): New macro.
53307         (_): Remove; not used now.
53308         * modules/xstrtol: Depend on getopt.
53309         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
53310         of old STRTOL_FATAL_ERROR macro.
53311         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
53312         of test program.
53313         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
53314         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
53315
53316 2007-08-08  Eric Blake  <ebb9@byu.net>
53317
53318         * lib/xstrtol-error.c: Add missing include.
53319
53320         Move xstrtol messages into gnulib domain, when --pobase is used.
53321         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
53322         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
53323         * modules/xstrtol (Files): Distribute new file.
53324         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
53325         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
53326         * tests/test-xstrtol.c: ...into new file.
53327         * tests/test-xstrtoul.c: Also test xstrtoul.
53328         * tests/test-xstrtoimax.c: Also test xstrtoimax.
53329         * tests/test-xstrtoumax.c: Also test xstrtoumax.
53330         * tests/test-xstrtol.sh: Drive the tests.
53331         * tests/test-xstrtoimax.sh: Likewise.
53332         * tests/test-xstrtoumax.sh: Likewise.
53333         * modules/xstrtol-tests: New module.
53334         * modules/xstrtoimax-tests: Likewise.
53335         * modules/xstrtoumax-tests: Likewise.
53336
53337 2007-08-08  Jim Meyering  <jim@meyering.net>
53338
53339         New function: mfile_name_concat.
53340         * lib/filenamecat.c (mfile_name_concat): New function, just like
53341         file_name_concat, but return NULL upon failure rather than exiting
53342         with a diagnostic.
53343         * lib/filenamecat.h: Declare it.
53344
53345 2007-08-07  Bruno Haible  <bruno@clisp.org>
53346
53347         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
53348         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
53349         warning from gcc.
53350         Reported by Eric Blake.
53351
53352 2007-08-07  Simon Josefsson  <simon@josefsson.org>
53353
53354         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
53355         * modules/crypto/arcfour (License): Likewise.
53356         * modules/crypto/des-tests (License): Likewise.
53357         * modules/crypto/gc-arctwo-tests (License): Likewise.
53358         * modules/crypto/gc-des-tests (License): Likewise.
53359         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
53360         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
53361         * modules/crypto/gc-md2-tests (License): Likewise.
53362         * modules/crypto/gc-md4-tests (License): Likewise.
53363         * modules/crypto/gc-md5-tests (License): Likewise.
53364         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
53365         * modules/crypto/gc-rijndael-tests (License): Likewise.
53366         * modules/crypto/gc-sha1-tests (License): Likewise.
53367         * modules/crypto/gc-tests (License): Likewise.
53368         * modules/crypto/hmac-md5 (License): Likewise.
53369         * modules/crypto/hmac-sha1 (License): Likewise.
53370         * modules/crypto/md2-tests (License): Likewise.
53371         * modules/crypto/md4-tests (License): Likewise.
53372         * modules/crypto/md5 (License): Likewise.
53373         * modules/crypto/rijndael (License): Likewise.
53374         * modules/crypto/sha1 (License): Likewise.
53375         * modules/memxor (License): Likewise.
53376
53377 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
53378         and Bruno Haible  <bruno@clisp.org>
53379
53380         * NEWS: Describe interface changes to human, xstrtol.
53381         * lib/human.h: Include <xstrtol.h>.
53382         (human_options): Return enum strtol_error, not int.  Remove
53383         bool arg; take int * instead.
53384         * lib/human.c: Don't include "gettext.h".
53385         (_): Remove; no longer used.
53386         Don't include <xstrtol.h>, since human.h does it.
53387         (human_options): Adjust to abovementioned interface changes.
53388         Do not report error to stderr; that's now the caller's
53389         responsibility.
53390         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
53391         interface change.
53392         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
53393         Str, Argument_type_string.  All uses changed.  Put " argument"
53394         in diagnostics to make them clearer.  Change wording of suffix
53395         message for clarity.
53396         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
53397         Argument_type_string.
53398         (STRTOL_FATAL_WARN): Remove; no longer used.
53399         * modules/human (Depends-on): Remove gettext-h.
53400
53401 2007-08-06  Simon Josefsson  <simon@josefsson.org>
53402
53403         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
53404
53405 2007-07-31  Bruno Haible  <bruno@clisp.org>
53406
53407         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
53408         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
53409         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
53410
53411 2007-07-31  Bruno Haible  <bruno@clisp.org>
53412
53413         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
53414         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
53415
53416 2007-07-30  Bruno Haible  <bruno@clisp.org>
53417
53418         * modules/base64 (License): Use the synonymous term "LGPLv2+".
53419         * modules/c-ctype (License): Likewise.
53420         * modules/c-strcase (License): Likewise.
53421         * modules/check-version (License): Likewise.
53422         * modules/iconv (License): Likewise.
53423         * modules/iconv_open (License): Likewise.
53424         * modules/read-file (License): Likewise.
53425         * modules/striconv (License): Likewise.
53426         * modules/strverscmp (License): Likewise.
53427         * modules/vasprintf (License): Likewise.
53428         * modules/crypto/des (License): Likewise.
53429         * modules/crypto/gc (License): Likewise.
53430         * modules/crypto/gc-arcfour (License): Likewise.
53431         * modules/crypto/gc-arctwo (License): Likewise.
53432         * modules/crypto/gc-des (License): Likewise.
53433         * modules/crypto/gc-hmac-md5 (License): Likewise.
53434         * modules/crypto/gc-hmac-sha1 (License): Likewise.
53435         * modules/crypto/gc-md2 (License): Likewise.
53436         * modules/crypto/gc-md4 (License): Likewise.
53437         * modules/crypto/gc-md5 (License): Likewise.
53438         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
53439         * modules/crypto/gc-random (License): Likewise.
53440         * modules/crypto/gc-rijndael (License): Likewise.
53441         * modules/crypto/gc-sha1 (License): Likewise.
53442         * modules/crypto/md2 (License): Likewise.
53443         * modules/crypto/md4 (License): Likewise.
53444
53445 2007-07-30  Jim Meyering  <jim@meyering.net>
53446
53447         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
53448         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
53449         it has valid stat data.  This bug would cause du not to count the
53450         sizes of inaccessible directories.
53451         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
53452         in <http://bugzilla.redhat.com/250077>.
53453
53454 2007-07-25  Peter O'Gorman  <peter@pogma.com>
53455             Bruno Haible  <bruno@clisp.org>
53456
53457         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
53458         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
53459         #include_next, gives a diagnostic about it, but reports no error in
53460         the exit code.
53461         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
53462
53463 2007-07-24  Ben Pfaff  <blp@gnu.org>
53464
53465         Improve name: "count-one-bits" is better than "popcount".
53466         * MODULES.html.sh: Update name.
53467         * lib/popcount.h: Renamed lib/count-one-bits.h.
53468         (popcount): Renamed count_one_bits.
53469         (popcountl): Renamed count_one_bits_l.
53470         (popcountll): Renamed count_one_bits_ll.
53471         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
53472         * modules/popcount: Renamed module/count-one-bits.
53473         * modules/popcount-tests: Renamed module/count-one-bits-tests.
53474         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
53475
53476 2007-07-23  Ben Pfaff  <blp@gnu.org>
53477
53478         * lib/popcount.h (popcount32): Reduce size of constants, to allow
53479         better code generation, and add U to large constants to avoid
53480         warnings, in non-GCC case.
53481         Suggested by Bruno Haible.
53482
53483 2007-07-23  Ben Pfaff  <blp@gnu.org>
53484
53485         * lib/popcount.h: Use verify_true instead of if...abort.
53486         * modules/popcount: Depend on verify module.
53487         Suggested by Jim Meyering.
53488
53489 2007-07-23  Bruno Haible  <bruno@clisp.org>
53490
53491         * gnulib-tool (func_import): Create a .cvsignore file also when the
53492         directory is not yet in CVS but the toplevel directory is. When
53493         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
53494         Reported by Karl Berry.
53495
53496 2007-07-22  Ben Pfaff  <blp@gnu.org>
53497
53498         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
53499         case.
53500         Suggested by Eric Blake.
53501
53502 2007-07-22  Ben Pfaff  <blp@gnu.org>
53503
53504         New module: popcount.
53505         * MODULES.html.sh: Add popcount.
53506         * modules/popcount: New file.
53507         * modules/popcount-tests: New file.
53508         * tests/test-popcount.c: New file.
53509         * lib/popcount.h: New file.
53510         * m4/popcount.m4: New file.
53511
53512 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
53513
53514         * build-aux/announce-gen: Update to GPLv3.
53515
53516         * build-aux/config.guess: Update from config.
53517
53518 2007-07-21  Bruno Haible  <bruno@clisp.org>
53519
53520         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
53521         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
53522
53523 2007-07-20  Jim Meyering  <jim@meyering.net>
53524
53525         * check-module: Diagnose a self-dependency.
53526
53527 2007-07-19  Bruno Haible  <bruno@clisp.org>
53528
53529         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
53530         empty.
53531         Reported by Eric Blake.
53532
53533 2007-07-18  Bruno Haible  <bruno@clisp.org>
53534
53535         * gnulib-tool: New options --po-base, --po-domain.
53536         (func_usage): Document them.
53537         (pobase, po_domain): New variables.
53538         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
53539         DEFAULT_TEXT_DOMAIN.
53540         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
53541         (func_import): Consider pobase and po_domain. Create a po/ directory.
53542         (func_create_testdir): Set pobase and po_domain to empty.
53543         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
53544         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
53545
53546 2007-07-18  Bruno Haible  <bruno@clisp.org>
53547
53548         * gnulib-tool (func_get_automake_snippet): Synthesize also an
53549         EXTRA_DIST augmentation for files in build-aux/.
53550
53551 2007-07-16  Bruno Haible  <bruno@clisp.org>
53552
53553         * modules/lseek (License): Use the synonymous term "LGPLv2+".
53554         * modules/getdelim (License): Likewise.
53555
53556 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53557
53558         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
53559         * modules/d-type (License): Likewise.
53560         * modules/extensions (License): Likewise.
53561         * modules/fnmatch (License): Likewise.
53562         * modules/fseeko (License): Likewise.
53563         * modules/getaddrinfo (License): Likewise.
53564         * modules/getline (License): Likewise.
53565         * modules/getlogin_r (License): Likewise.
53566         * modules/getpass (License): Likewise.
53567         * modules/gettimeofday (License): Likewise.
53568         * modules/glob (License): Likewise.
53569         * modules/inet_ntop (License): Likewise.
53570         * modules/malloc (License): Likewise.
53571         * modules/malloca (License): Likewise.
53572         * modules/memmem (License): Likewise.
53573         * modules/mempcpy (License): Likewise.
53574         * modules/memset (License): Likewise.
53575         * modules/minmax (License): Likewise.
53576         * modules/mktime (License): Likewise.
53577         * modules/netinet_in (License): Likewise.
53578         * modules/pathmax (License): Likewise.
53579         * modules/poll (License): Likewise.
53580         * modules/regex (License): Likewise.
53581         * modules/snprintf (License): Likewise.
53582         * modules/stdbool (License): Likewise.
53583         * modules/stdint (License): Likewise.
53584         * modules/stdio (License): Likewise.
53585         * modules/strcase (License): Likewise.
53586         * modules/strcasestr (License): Likewise.
53587         * modules/strdup (License): Likewise.
53588         * modules/string (License): Likewise.
53589         * modules/strndup (License): Likewise.
53590         * modules/strnlen (License): Likewise.
53591         * modules/strpbrk (License): Likewise.
53592         * modules/strptime (License): Likewise.
53593         * modules/strsep (License): Likewise.
53594         * modules/sys_select (License): Likewise.
53595         * modules/sys_socket (License): Likewise.
53596         * modules/sys_stat (License): Likewise.
53597         * modules/sys_time (License): Likewise.
53598         * modules/time (License): Likewise.
53599         * modules/time_r (License): Likewise.
53600         * modules/timegm (License): Likewise.
53601         * modules/unistd (License): Likewise.
53602         * modules/vsnprintf (License): Likewise.
53603         * modules/wctype (License): Likewise.
53604
53605 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53606
53607         * modules/argz (License): LGPLv2+.
53608
53609 2007-07-15  Karl Berry  <karl@gnu.org>
53610
53611         * doc/gnulib.texi: revise node structure per new fdl.texi.
53612
53613 2007-07-14  Bruno Haible  <bruno@clisp.org>
53614
53615         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
53616         the output file.
53617         * lib/uniname/uninames.h: Regenerated.
53618
53619 2007-07-14  Karl Berry  <karl@gnu.org>
53620
53621         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
53622         omitting sectioning and index commands.
53623
53624 2007-07-13  Bruno Haible  <bruno@clisp.org>
53625
53626         New gnulib-tool option --more-symlinks.
53627         * gnulib-tool (func_usage): Document --more-symlinks.
53628         (do_copyrights): New variable.
53629         Recognize option --more-symlinks.
53630         (func_import): Don't add a copyright notice transform to
53631         sed_transform_lib_file if do_copyrights is empty.
53632
53633 2007-07-13  Bruno Haible  <bruno@clisp.org>
53634
53635         * lib/vasnprintf.c (decimal_point_char): Define also if
53636         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
53637         && !NEED_PRINTF_DIRECTIVE_A.
53638         Reported by Clemens Koller <clemens.koller@anagramm.de> via
53639         Gary V. Vaughan <gary@gnu.org>.
53640
53641 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
53642
53643         * lib/inttypes_.h: Undo previous change, since it was fixed
53644         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
53645
53646 2007-07-13  Bruno Haible  <bruno@clisp.org>
53647
53648         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
53649         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
53650
53651 2007-07-13  Jim Meyering  <jim@meyering.net>
53652
53653         df: Don't fail for Tru64's "file-on-file mount".
53654         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
53655         so we fall through and use statfs instead.  Details here:
53656         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
53657         Reported by Albert Chin.
53658
53659 2007-07-13  Bruno Haible  <bruno@clisp.org>
53660
53661         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
53662         * modules/configmake (License): Likewise.
53663         * modules/gettext (License): Likewise.
53664         * modules/gettext-h (License): Likewise.
53665         * modules/include_next (License): Likewise.
53666         * modules/link-warning (License): Likewise.
53667         * modules/localcharset (License): Likewise.
53668         * modules/localename (License): Likewise.
53669         * modules/lock (License): Likewise.
53670         * modules/relocatable-lib-lgpl (License): Likewise.
53671         * modules/size_max (License): Likewise.
53672         * modules/vasnprintf (License): Likewise.
53673         * modules/wchar (License): Likewise.
53674         * modules/xsize (License): Likewise.
53675
53676 2007-07-13  Bruno Haible  <bruno@clisp.org>
53677
53678         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
53679         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
53680
53681 2007-07-12  Bruno Haible  <bruno@clisp.org>
53682
53683         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
53684         in the modules files.
53685
53686 2007-07-11  Karl Berry  <karl@gnu.org>
53687
53688         * MODULES.html.sh (func_module): use
53689          sed -e '\|^'"${includefile}"'$|d'
53690          instead of /.../d, to avoid errors on $includefile's containing /.
53691
53692 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
53693
53694         * gnulib-tool (func_import): Avoid duplication of --avoid
53695         statements
53696         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
53697         names to `_' in variable names.
53698
53699 2007-07-10  Eric Blake  <ebb9@byu.net>
53700
53701         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
53702         * NEWS: Document this change.
53703
53704 2007-07-08  Bruno Haible  <bruno@clisp.org>
53705
53706         Update to Unicode 5.0.
53707         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
53708         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
53709         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
53710         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
53711         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
53712         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
53713         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
53714         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
53715         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
53716         U+10A3F, U+1D242..U+1D244.
53717         (nonspacing_table_ind): Update.
53718         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
53719         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
53720
53721 2007-07-08  Bruno Haible  <bruno@clisp.org>
53722
53723         Update to Unicode 5.0.
53724         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
53725         code transform. Extend the name index field of unicode_name_to_code and
53726         unicode_code_to_name from 16 to 24 bits.
53727         * lib/uniname/uniname.c (unicode_character_name,
53728         unicode_name_character): Add the range 0x12xxx to the code transform.
53729         * lib/uniname/uninames.h: Regenerated.
53730         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
53731
53732 2007-07-07  Bruno Haible  <bruno@clisp.org>
53733
53734         * modules/wcwidth-tests: New file.
53735         * tests/test-wcwidth.c: New file.
53736
53737         Work around MacOS X wcwidth() bug.
53738         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
53739         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
53740         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
53741         original wcwidth in non-UTF-8 locales.
53742         * modules/wcwidth (Depends-on): Add localcharset, streq,
53743         uniwidth/width.
53744         * doc/functions/wcwidth.texi: Update.
53745
53746 2007-07-07  Bruno Haible  <bruno@clisp.org>
53747
53748         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
53749         (wcwidth): New declaration.
53750         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
53751         macros.
53752         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
53753         here. Prepare for creating <wchar.h> unconditionally.
53754         * modules/wchar (Depends-on): Add link-warning.
53755         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
53756         REPLACE_WCWIDTH, and GL_LINK_WARNING.
53757         * lib/wcwidth.h: Remove file.
53758         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
53759         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
53760         * modules/wcwidth (Files): Remove lib/wcwidth.h.
53761         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
53762         (Include): Replace wcwidth.h with <wchar.h>.
53763         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
53764         * lib/mbchar.h: Don't include wcwidth.h.
53765         * lib/mbswidth.c: Likewise.
53766         * NEWS: Mention the change.
53767
53768 2007-07-07  Bruno Haible  <bruno@clisp.org>
53769
53770         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
53771         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
53772         definition with an external declaration.
53773         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
53774         defined as a function. Remove AC_C_INLINE requirement.
53775         * modules/wcwidth (Files): Add lib/wcwidth.c.
53776         (Makefile.am): Remove redundant statement.
53777
53778 2007-07-07  Bruno Haible  <bruno@clisp.org>
53779
53780         * MODULES.html.sh (Unicode string functions): Add the new modules.
53781
53782         * tests/uniwidth/test-u32-strwidth.c: New file.
53783         * modules/uniwidth/u32-strwidth-tests: New file.
53784
53785         * lib/uniwidth/u32-strwidth.c: New file.
53786         * modules/uniwidth/u32-strwidth: New file.
53787
53788         * tests/uniwidth/test-u16-strwidth.c: New file.
53789         * modules/uniwidth/u16-strwidth-tests: New file.
53790
53791         * lib/uniwidth/u16-strwidth.c: New file.
53792         * modules/uniwidth/u16-strwidth: New file.
53793
53794         * tests/uniwidth/test-u8-strwidth.c: New file.
53795         * modules/uniwidth/u8-strwidth-tests: New file.
53796
53797         * lib/uniwidth/u8-strwidth.c: New file.
53798         * modules/uniwidth/u8-strwidth: New file.
53799
53800         * tests/uniwidth/test-u32-width.c: New file.
53801         * modules/uniwidth/u32-width-tests: New file.
53802
53803         * lib/uniwidth/u32-width.c: New file.
53804         * modules/uniwidth/u32-width: New file.
53805
53806         * tests/uniwidth/test-u16-width.c: New file.
53807         * modules/uniwidth/u16-width-tests: New file.
53808
53809         * lib/uniwidth/u16-width.c: New file.
53810         * modules/uniwidth/u16-width: New file.
53811
53812         * tests/uniwidth/test-u8-width.c: New file.
53813         * modules/uniwidth/u8-width-tests: New file.
53814
53815         * lib/uniwidth/u8-width.c: New file.
53816         * modules/uniwidth/u8-width: New file.
53817
53818         * tests/uniwidth/test-uc_width.c: New file.
53819         * modules/uniwidth/width-tests: New file.
53820
53821         * lib/uniwidth/width.c: New file, from GNU libiconv.
53822         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
53823         * modules/uniwidth/width: New file.
53824
53825         * lib/uniwidth.h: New file, from GNU libiconv.
53826         * modules/uniwidth/base: New file.
53827
53828 2007-07-07  Bruno Haible  <bruno@clisp.org>
53829
53830         * lib/uniname.h: New file, from GNU gettext.
53831         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
53832         * lib/uniname/uninames.h: New file, from GNU gettext.
53833         * lib/uniname/uniname.c: New file, from GNU gettext.
53834         * tests/uniname/test-uninames.sh: New file.
53835         * tests/uniname/test-uninames.c: New file, from GNU gettext.
53836         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
53837         * modules/uniname/base: New file.
53838         * modules/uniname/uniname: New file.
53839         * modules/uniname/uniname-tests: New file.
53840         * MODULES.html.sh (Unicode string functions): Add the new modules.
53841
53842 2007-07-06  Bruno Haible  <bruno@clisp.org>
53843
53844         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
53845
53846 2007-07-06  Bruno Haible  <bruno@clisp.org>
53847
53848         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
53849         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
53850         includes <cygwin/sys_time.h> which includes <sys/select.h> which
53851         include <sys/time.h>.
53852         Reported by Eric Blake.
53853
53854 2007-07-06  Eric Blake  <ebb9@byu.net>
53855
53856         Fix testing canonicalize on cygwin.
53857         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
53858         Revert patch from 2007-06-19.
53859         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
53860         canonicalize module is also in use.
53861         * tests/test-canonicalize.c: New file.
53862         * tests/test-canonicalize.sh: Likewise.
53863         * modules/canonicalize-tests: Likewise.
53864
53865 2007-07-06  Jim Meyering  <jim@meyering.net>
53866
53867         * lib/getugroups.c (getugroups): Detect getgrent failure.
53868         Adjust comment to reflect reality: this function may return -1.
53869
53870 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
53871
53872         * build-aux/bootstrap (TP_URL,get_translations): Update to use
53873         the new TP address.
53874         (usage): Fix typo
53875         (gnulib_mk): New variable.
53876
53877 2007-07-05  Jim Meyering  <jim@meyering.net>
53878
53879         Don't let endgrent clobber errno, no matter how improbable.
53880         * lib/getugroups.c (getugroups): Save and restore errno around
53881         endgrent call.
53882
53883         Close the group DB even when failing with 2^31 or more members.
53884         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
53885
53886 2007-07-04  Jim Meyering  <jim@meyering.net>
53887
53888         * lib/getugroups.h: New file.
53889         * lib/getugroups.c: Include "getugroups.h".
53890         Remove uses of "register" keyword.
53891         Move local variable, "cp", down into scope where used.
53892         Give "username" parameter the "const" attribute.
53893         * modules/getugroups (Files): Add lib/getugroups.h
53894
53895 2007-07-04  Karl Berry  <karl@gnu.org>
53896
53897         * MODULES.html.sh (func_all_modules): Complete rename of
53898         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
53899
53900 2007-07-02  Bruno Haible  <bruno@clisp.org>
53901
53902         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
53903         mode, when inttypes.h comes from gnulib.
53904         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
53905
53906 2007-07-02  Simon Josefsson  <simon@josefsson.org>
53907
53908         * NEWS: Mention lgpl module name change.
53909
53910         * modules/lgpl-2.1: Renamed from lgpl.
53911
53912         * NEWS: Mention gpl module name change.
53913
53914         * modules/gpl-3.0: New file, based on gpl-2.0.
53915
53916         * modules/gpl-2.0: Renamed from gpl.
53917
53918         * modules/gpl: Fix filename, doc/gpl.texi is now found at
53919         doc/gpl-2.0.texi.
53920
53921 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
53922
53923         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
53924         #define __STDC_LIMIT_MACROS temporarily while including
53925         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
53926         Problem reported by Joel E. Denny in
53927         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
53928
53929 2007-07-01  Bruno Haible  <bruno@clisp.org>
53930
53931         * lib/unistdio.h: New file.
53932         * lib/unistdio/u-asnprintf.h: New file.
53933         * lib/unistdio/u-asprintf.h: New file.
53934         * lib/unistdio/u-printf-args.c: New file.
53935         * lib/unistdio/u-printf-args.h: New file.
53936         * lib/unistdio/u-printf-parse.h: New file.
53937         * lib/unistdio/u-snprintf.h: New file.
53938         * lib/unistdio/u-sprintf.h: New file.
53939         * lib/unistdio/u-vasprintf.h: New file.
53940         * lib/unistdio/u-vsnprintf.h: New file.
53941         * lib/unistdio/u-vsprintf.h: New file.
53942         * lib/unistdio/ulc-asnprintf.c: New file.
53943         * lib/unistdio/ulc-asprintf.c: New file.
53944         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
53945         * lib/unistdio/ulc-printf-parse.c: New file.
53946         * lib/unistdio/ulc-snprintf.c: New file.
53947         * lib/unistdio/ulc-sprintf.c: New file.
53948         * lib/unistdio/ulc-vasnprintf.c: New file.
53949         * lib/unistdio/ulc-vasprintf.c: New file.
53950         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
53951         * lib/unistdio/ulc-vsnprintf.c: New file.
53952         * lib/unistdio/ulc-vsprintf.c: New file.
53953         * lib/unistdio/u8-asnprintf.c: New file.
53954         * lib/unistdio/u8-asprintf.c: New file.
53955         * lib/unistdio/u8-printf-parse.c: New file.
53956         * lib/unistdio/u8-snprintf.c: New file.
53957         * lib/unistdio/u8-sprintf.c: New file.
53958         * lib/unistdio/u8-vasnprintf.c: New file.
53959         * lib/unistdio/u8-vasprintf.c: New file.
53960         * lib/unistdio/u8-vsnprintf.c: New file.
53961         * lib/unistdio/u8-vsprintf.c: New file.
53962         * lib/unistdio/u8-u8-asnprintf.c: New file.
53963         * lib/unistdio/u8-u8-asprintf.c: New file.
53964         * lib/unistdio/u8-u8-snprintf.c: New file.
53965         * lib/unistdio/u8-u8-sprintf.c: New file.
53966         * lib/unistdio/u8-u8-vasnprintf.c: New file.
53967         * lib/unistdio/u8-u8-vasprintf.c: New file.
53968         * lib/unistdio/u8-u8-vsnprintf.c: New file.
53969         * lib/unistdio/u8-u8-vsprintf.c: New file.
53970         * lib/unistdio/u16-asnprintf.c: New file.
53971         * lib/unistdio/u16-asprintf.c: New file.
53972         * lib/unistdio/u16-printf-parse.c: New file.
53973         * lib/unistdio/u16-snprintf.c: New file.
53974         * lib/unistdio/u16-sprintf.c: New file.
53975         * lib/unistdio/u16-vasnprintf.c: New file.
53976         * lib/unistdio/u16-vasprintf.c: New file.
53977         * lib/unistdio/u16-vsnprintf.c: New file.
53978         * lib/unistdio/u16-vsprintf.c: New file.
53979         * lib/unistdio/u16-u16-asnprintf.c: New file.
53980         * lib/unistdio/u16-u16-asprintf.c: New file.
53981         * lib/unistdio/u16-u16-snprintf.c: New file.
53982         * lib/unistdio/u16-u16-sprintf.c: New file.
53983         * lib/unistdio/u16-u16-vasnprintf.c: New file.
53984         * lib/unistdio/u16-u16-vasprintf.c: New file.
53985         * lib/unistdio/u16-u16-vsnprintf.c: New file.
53986         * lib/unistdio/u16-u16-vsprintf.c: New file.
53987         * lib/unistdio/u32-asnprintf.c: New file.
53988         * lib/unistdio/u32-asprintf.c: New file.
53989         * lib/unistdio/u32-printf-parse.c: New file.
53990         * lib/unistdio/u32-snprintf.c: New file.
53991         * lib/unistdio/u32-sprintf.c: New file.
53992         * lib/unistdio/u32-vasnprintf.c: New file.
53993         * lib/unistdio/u32-vasprintf.c: New file.
53994         * lib/unistdio/u32-vsnprintf.c: New file.
53995         * lib/unistdio/u32-vsprintf.c: New file.
53996         * lib/unistdio/u32-u32-asnprintf.c: New file.
53997         * lib/unistdio/u32-u32-asprintf.c: New file.
53998         * lib/unistdio/u32-u32-snprintf.c: New file.
53999         * lib/unistdio/u32-u32-sprintf.c: New file.
54000         * lib/unistdio/u32-u32-vasnprintf.c: New file.
54001         * lib/unistdio/u32-u32-vasprintf.c: New file.
54002         * lib/unistdio/u32-u32-vsnprintf.c: New file.
54003         * lib/unistdio/u32-u32-vsprintf.c: New file.
54004         * tests/unistdio/test-ulc-asnprintf1.c: New file.
54005         * tests/unistdio/test-ulc-asnprintf1.h: New file.
54006         * tests/unistdio/test-ulc-printf1.h: New file.
54007         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
54008         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
54009         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
54010         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
54011         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
54012         * tests/unistdio/test-ulc-vasprintf1.c: New file.
54013         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
54014         * tests/unistdio/test-ulc-vsprintf1.c: New file.
54015         * tests/unistdio/test-u8-asnprintf1.c: New file.
54016         * tests/unistdio/test-u8-asnprintf1.h: New file.
54017         * tests/unistdio/test-u8-printf1.h: New file.
54018         * tests/unistdio/test-u8-vasnprintf1.c: New file.
54019         * tests/unistdio/test-u8-vasnprintf2.c: New file.
54020         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
54021         * tests/unistdio/test-u8-vasnprintf3.c: New file.
54022         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
54023         * tests/unistdio/test-u8-vasprintf1.c: New file.
54024         * tests/unistdio/test-u8-vsnprintf1.c: New file.
54025         * tests/unistdio/test-u8-vsprintf1.c: New file.
54026         * tests/unistdio/test-u16-asnprintf1.c: New file.
54027         * tests/unistdio/test-u16-asnprintf1.h: New file.
54028         * tests/unistdio/test-u16-printf1.h: New file.
54029         * tests/unistdio/test-u16-vasnprintf1.c: New file.
54030         * tests/unistdio/test-u16-vasnprintf2.c: New file.
54031         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
54032         * tests/unistdio/test-u16-vasnprintf3.c: New file.
54033         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
54034         * tests/unistdio/test-u16-vasprintf1.c: New file.
54035         * tests/unistdio/test-u16-vsnprintf1.c: New file.
54036         * tests/unistdio/test-u16-vsprintf1.c: New file.
54037         * tests/unistdio/test-u32-asnprintf1.c: New file.
54038         * tests/unistdio/test-u32-asnprintf1.h: New file.
54039         * tests/unistdio/test-u32-printf1.h: New file.
54040         * tests/unistdio/test-u32-vasnprintf1.c: New file.
54041         * tests/unistdio/test-u32-vasnprintf2.c: New file.
54042         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
54043         * tests/unistdio/test-u32-vasnprintf3.c: New file.
54044         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
54045         * tests/unistdio/test-u32-vasprintf1.c: New file.
54046         * tests/unistdio/test-u32-vsnprintf1.c: New file.
54047         * tests/unistdio/test-u32-vsprintf1.c: New file.
54048         * modules/unistdio/base: New file.
54049         * modules/unistdio/u-printf-args: New file.
54050         * modules/unistdio/ulc-asnprintf: New file.
54051         * modules/unistdio/ulc-asprintf: New file.
54052         * modules/unistdio/ulc-fprintf: New file.
54053         * modules/unistdio/ulc-printf-parse: New file.
54054         * modules/unistdio/ulc-snprintf: New file.
54055         * modules/unistdio/ulc-sprintf: New file.
54056         * modules/unistdio/ulc-vasnprintf: New file.
54057         * modules/unistdio/ulc-vasprintf: New file.
54058         * modules/unistdio/ulc-vfprintf: New file.
54059         * modules/unistdio/ulc-vsnprintf: New file.
54060         * modules/unistdio/ulc-vsprintf: New file.
54061         * modules/unistdio/u8-asnprintf: New file.
54062         * modules/unistdio/u8-asprintf: New file.
54063         * modules/unistdio/u8-printf-parse: New file.
54064         * modules/unistdio/u8-snprintf: New file.
54065         * modules/unistdio/u8-sprintf: New file.
54066         * modules/unistdio/u8-vasnprintf: New file.
54067         * modules/unistdio/u8-vasprintf: New file.
54068         * modules/unistdio/u8-vsnprintf: New file.
54069         * modules/unistdio/u8-vsprintf: New file.
54070         * modules/unistdio/u8-u8-asnprintf: New file.
54071         * modules/unistdio/u8-u8-asprintf: New file.
54072         * modules/unistdio/u8-u8-snprintf: New file.
54073         * modules/unistdio/u8-u8-sprintf: New file.
54074         * modules/unistdio/u8-u8-vasnprintf: New file.
54075         * modules/unistdio/u8-u8-vasprintf: New file.
54076         * modules/unistdio/u8-u8-vsnprintf: New file.
54077         * modules/unistdio/u8-u8-vsprintf: New file.
54078         * modules/unistdio/u16-asnprintf: New file.
54079         * modules/unistdio/u16-asprintf: New file.
54080         * modules/unistdio/u16-printf-parse: New file.
54081         * modules/unistdio/u16-snprintf: New file.
54082         * modules/unistdio/u16-sprintf: New file.
54083         * modules/unistdio/u16-vasnprintf: New file.
54084         * modules/unistdio/u16-vasprintf: New file.
54085         * modules/unistdio/u16-vsnprintf: New file.
54086         * modules/unistdio/u16-vsprintf: New file.
54087         * modules/unistdio/u16-u16-asnprintf: New file.
54088         * modules/unistdio/u16-u16-asprintf: New file.
54089         * modules/unistdio/u16-u16-snprintf: New file.
54090         * modules/unistdio/u16-u16-sprintf: New file.
54091         * modules/unistdio/u16-u16-vasnprintf: New file.
54092         * modules/unistdio/u16-u16-vasprintf: New file.
54093         * modules/unistdio/u16-u16-vsnprintf: New file.
54094         * modules/unistdio/u16-u16-vsprintf: New file.
54095         * modules/unistdio/u32-asnprintf: New file.
54096         * modules/unistdio/u32-asprintf: New file.
54097         * modules/unistdio/u32-printf-parse: New file.
54098         * modules/unistdio/u32-snprintf: New file.
54099         * modules/unistdio/u32-sprintf: New file.
54100         * modules/unistdio/u32-vasnprintf: New file.
54101         * modules/unistdio/u32-vasprintf: New file.
54102         * modules/unistdio/u32-vsnprintf: New file.
54103         * modules/unistdio/u32-vsprintf: New file.
54104         * modules/unistdio/u32-u32-asnprintf: New file.
54105         * modules/unistdio/u32-u32-asprintf: New file.
54106         * modules/unistdio/u32-u32-snprintf: New file.
54107         * modules/unistdio/u32-u32-sprintf: New file.
54108         * modules/unistdio/u32-u32-vasnprintf: New file.
54109         * modules/unistdio/u32-u32-vasprintf: New file.
54110         * modules/unistdio/u32-u32-vsnprintf: New file.
54111         * modules/unistdio/u32-u32-vsprintf: New file.
54112         * modules/unistdio/ulc-asnprintf-tests: New file.
54113         * modules/unistdio/ulc-vasnprintf-tests: New file.
54114         * modules/unistdio/ulc-vasprintf-tests: New file.
54115         * modules/unistdio/ulc-vsnprintf-tests: New file.
54116         * modules/unistdio/ulc-vsprintf-tests: New file.
54117         * modules/unistdio/u8-asnprintf-tests: New file.
54118         * modules/unistdio/u8-vasnprintf-tests: New file.
54119         * modules/unistdio/u8-vasprintf-tests: New file.
54120         * modules/unistdio/u8-vsnprintf-tests: New file.
54121         * modules/unistdio/u8-vsprintf-tests: New file.
54122         * modules/unistdio/u16-asnprintf-tests: New file.
54123         * modules/unistdio/u16-vasnprintf-tests: New file.
54124         * modules/unistdio/u16-vasprintf-tests: New file.
54125         * modules/unistdio/u16-vsnprintf-tests: New file.
54126         * modules/unistdio/u16-vsprintf-tests: New file.
54127         * modules/unistdio/u32-asnprintf-tests: New file.
54128         * modules/unistdio/u32-vasnprintf-tests: New file.
54129         * modules/unistdio/u32-vasprintf-tests: New file.
54130         * modules/unistdio/u32-vsnprintf-tests: New file.
54131         * modules/unistdio/u32-vsprintf-tests: New file.
54132         * MODULES.html.sh (Unicode string functions): Add the new modules.
54133
54134 2007-07-01  Bruno Haible  <bruno@clisp.org>
54135
54136         * lib/sprintf.c (sprintf): Limit the available length estimation,
54137         to avoid address wraparound.
54138         * lib/vsprintf.c (vsprintf): Likewise.
54139         * modules/sprintf-posix (Dependencies): Add stdint.
54140         * modules/vsprintf-posix (Dependencies): Likewise.
54141
54142 2007-07-01  Bruno Haible  <bruno@clisp.org>
54143
54144         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
54145         Windows PATH as well. Conservative double-quoting. Comments.
54146
54147 2007-07-01  Bruno Haible  <bruno@clisp.org>
54148             Eric Blake  <ebb9@byu.net>
54149             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54150
54151         * gnulib-tool (self_abspathname): Fix algorithm to cope with
54152         empty components in $PATH, denoting '.'.
54153
54154 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54155
54156         * gnulib-tool: Fix indentation.
54157         (func_create_megatestdir): Likewise.
54158         Report by Bruno Haible.
54159
54160 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54161
54162         Sync from Automake.
54163         * build-aux/gnupload: Fix shell portability issues with for loops.
54164         Report by Karl Berry.
54165
54166 2007-06-29  Simon Josefsson  <simon@josefsson.org>
54167
54168         * build-aux/maint.mk (POURL): Use translationproject.org.
54169
54170 2007-06-27  Simon Josefsson  <simon@josefsson.org>
54171             Bruno Haible  <bruno@clisp.org>
54172
54173         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
54174         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
54175         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
54176         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
54177         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
54178
54179 2007-06-27  Bruno Haible  <bruno@clisp.org>
54180
54181         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
54182         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
54183
54184 2007-06-26  Karl Berry  <karl@gnu.org>
54185
54186         * MODULES.html.sh: remove xreadlink-with-size.
54187
54188 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
54189
54190         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
54191         method that I hope also handles the double-include problem noted
54192         by Bruno Haible in
54193         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
54194
54195 2007-06-23  Bruno Haible  <bruno@clisp.org>
54196
54197         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
54198         Don't let the 'mostlyclean' target fail if the last subdirectory could
54199         not be removed.
54200         Reported by Karl Berry.
54201
54202 2007-06-23  Bruno Haible  <bruno@clisp.org>
54203
54204         * gnulib-tool (echo): Add a speedier workaround for ksh.
54205         * tests/test-echo.sh: Likewise.
54206
54207 2007-06-23  Bruno Haible  <bruno@clisp.org>
54208
54209         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
54210         * tests/test-echo.sh: Likewise.
54211
54212 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54213
54214         * gnulib-tool (IFS): Initialize early, so we don't set it to
54215         empty later.
54216         (self_abspathname): Rewrite algorithm to set it, reindent.
54217         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
54218         (func_create_megatestdir): Merge some sed scripts.
54219
54220 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
54221
54222         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
54223         exposed by Sun Studio 11 cc on Solaris 8.
54224
54225 2007-06-22  Bruno Haible  <bruno@clisp.org>
54226
54227         * gnulib-tool (echo): Ensure the echo primitive does not interpret
54228         backslashes.
54229         * tests/test-echo.sh: New file.
54230
54231 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54232
54233         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
54234         simplify `sed_replace_build_aux' scripts, they are portable but
54235         echoing them with `echo' is not.
54236         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
54237
54238 2007-06-21  Karl Berry  <karl@gnu.org>
54239
54240         * config/srclist.txt: guess we can't handle the licenses via
54241         srclist at the moment.
54242
54243 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
54244
54245         * MODULES.html.sh: Add include_next.
54246         * modules/include_next: New file.
54247
54248 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
54249
54250         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
54251         INCLUDE_NEXT.
54252         (gl_CHECK_NEXT_HEADERS): New macro.
54253         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
54254         the obsolescent gl_ABSOLUTE_HEADER.
54255         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
54256         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
54257         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
54258         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
54259         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
54260         * m4/math_h.m4 (gl_MATH_H): Likewise.
54261         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
54262         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
54263         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
54264         * m4/stdint.m4 (gl_STDINT_H): Likewise.
54265         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
54266         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
54267         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
54268         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
54269         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
54270         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
54271         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
54272         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
54273         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
54274         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
54275         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
54276         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
54277         * m4/inttypes.m4 (gl_INTTYPES_H): Define
54278         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
54279         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
54280         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
54281         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
54282         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
54283         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
54284         * lib/float_.h: Likewise.
54285         * lib/inttypes_.h: Likewise.
54286         * lib/math_.h: Likewise.
54287         * lib/search_.h: Likewise.
54288         * lib/signal_.h: Likewise.
54289         * lib/stdint_.h: Likewise.
54290         * lib/stdio_.h: Likewise.
54291         * lib/stdlib_.h: Likewise.
54292         * lib/string_.h: Likewise.
54293         * lib/sys_stat_.h: Likewise.
54294         * lib/sys_time_.h: Likewise.
54295         * lib/time_.h: Likewise.
54296         * lib/unistd_.h: Likewise.
54297         * lib/wchar_.h: Likewise.
54298         * lib/wctype_.h: Likewise.
54299         * lib/dirent_.h: Likewise.
54300         * lib/iconv_.h: Likewise.
54301         * lib/locale_.h: Likewise.
54302         * lib/netinet_in_.h: Likewise.
54303         * lib/sys_select_.h: Likewise.
54304         * lib/sys_socket_.h: Likewise.
54305         * lib/sysexits_.h: Likewise.
54306         * modules/fcntl (Depends-on): Depend on include_next, not
54307         absolute_header.
54308         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
54309         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
54310         * modules/fchdir: Likewise.
54311         * modules/float: Likewise.
54312         * modules/iconv_open: Likewise.
54313         * modules/inttypes: Likewise.
54314         * modules/locale: Likewise.
54315         * modules/math: Likewise.
54316         * modules/netinet_in: Likewise.
54317         * modules/search: Likewise.
54318         * modules/signal: Likewise.
54319         * modules/stdint: Likewise.
54320         * modules/stdio: Likewise.
54321         * modules/stdlib: Likewise.
54322         * modules/string: Likewise.
54323         * modules/sys_select: Likewise.
54324         * modules/sys_socket: Likewise.
54325         * modules/sys_stat: Likewise.
54326         * modules/sys_time: Likewise.
54327         * modules/sysexits: Likewise.
54328         * modules/time: Likewise.
54329         * modules/unistd: Likewise.
54330         * modules/wchar: Likewise.
54331         * modules/wctype: Likewise.
54332         * modules/sys_stat: Change maintainer to "all".
54333         * modules/unistd: Likewise.
54334
54335 2007-06-20  Karl Berry  <karl@gnu.org>
54336
54337         * config/srclist.txt: track www changes in license files.
54338
54339 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
54340
54341         * build-aux/bootstrap: Remove stray dot.
54342         Make sure build_aux settings are honored when linking
54343         gnulib_extra_files.
54344
54345 2007-06-19  Eric Blake  <ebb9@byu.net>
54346
54347         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
54348         Allow compilation on cygwin.
54349
54350 2007-06-19  Jim Meyering  <jim@meyering.net>
54351
54352         xreadlink-with-size: Remove module.  No longer used.
54353         Ex-callers now use xreadlink or mreadlink-with-size.
54354         * modules/xreadlink-with-size: Remove module.
54355         * lib/xreadlink-with-size.c: Remove file.
54356         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
54357         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
54358         just before the function definition *is* accurate.
54359
54360         Eliminate one way canonicalize_filename_mode could exit.
54361         * lib/canonicalize.c (canonicalize_filename_mode):
54362         Use mreadlink_with_size, not xreadlink_with_size.
54363
54364 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
54365
54366         Detect porting problems to FreeBSD/arm, which has time_t wider than
54367         long int.  Original problem reported for GNU diff by Xin Li in
54368         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
54369         * modules/getdate (Depends-on): Add intprops, verify.
54370         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
54371         is an integer type no wider than long int.
54372
54373 2007-06-18  Jim Meyering  <jim@meyering.net>
54374
54375         New module: mreadlink-with-size.
54376         * MODULES.html.sh: Add mreadlink-with-size.
54377         * modules/mreadlink-with-size: New module
54378         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
54379         not xreadlink-with-size.
54380         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
54381
54382 2007-06-16  Bruno Haible  <bruno@clisp.org>
54383
54384         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
54385         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
54386         Reported by Gary V. Vaughan <gary@gnu.org>.
54387
54388 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
54389
54390         Revamp lchown so that it lives in unistd.h where it belongs.
54391         * lib/lchown.h: Remove.
54392         * lib/dirchownmod.c: Don't include lib/lchown.h.
54393         * lib/fchownat.c: Likewise.
54394         * lib/openat.c: Likewise.
54395         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
54396         does not follow symlinks.
54397         (EOPNOTSUPP): Define if not defined.
54398         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
54399         is defined to 0.
54400         (lchown): New decl.
54401         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
54402         Do not check for lchown decl.
54403         Set REPLACE_LCHOWN.
54404         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
54405         REPLACE_LCHOWN.
54406         * modules/chown: Make it clear it follows symlinks.
54407         * modules/lchown: Make it clear it doesn't follow symlinks.
54408         (Files): Remove lib/lchown.h
54409         (Depends-on): Add unistd.
54410         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
54411         (Include): Include <unistd.h>, not "lchown.h".
54412         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
54413         REPLACE_LCHOWN.
54414
54415 2007-06-15  Jim Meyering  <jim@meyering.net>
54416
54417         Change license (GPL to LGPL) of fsusage and dependents.
54418         * modules/fsusage (License): Change to LGPL.
54419         * modules/full-read (License): Likewise.
54420         * modules/full-write (License): Likewise.
54421         * modules/safe-read (License): Likewise.
54422         * modules/safe-write (License): Likewise.
54423
54424 2007-06-14  Ben Pfaff  <blp@gnu.org>
54425
54426         Missing part of allocsa -> malloca transition.
54427         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
54428         gl_MALLOCA.
54429
54430 2007-06-12  Bruno Haible  <bruno@clisp.org>
54431
54432         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
54433         to ia64, x86_64, i386.
54434         Reported by Eric Blake.
54435
54436 2007-06-12  Bruno Haible  <bruno@clisp.org>
54437
54438         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
54439         cross-compiling to x86_64.
54440
54441 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
54442
54443         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
54444         glitch reported by Ralf Wildenhues in
54445         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
54446
54447         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
54448         Vin Shelton.
54449
54450 2007-06-11  Bruno Haible  <bruno@clisp.org>
54451
54452         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
54453         replacement string.
54454         Reported by Eric Blake.
54455
54456 2007-06-10  Bruno Haible  <bruno@clisp.org>
54457
54458         Prepare vasnprintf code for use with Unicode strings.
54459         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
54460         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
54461         TYPE_U32_STRING.
54462         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
54463         a_u32_string variants.
54464         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
54465         * lib/printf-args.c: Don't include config.h and the specification
54466         header if PRINTF_FETCHARGS is already defined.
54467         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
54468         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
54469         TYPE_U16_STRING, TYPE_U32_STRING.
54470         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
54471         u16_directive, u16_directives, u32_directive, u32_directives): New
54472         types.
54473         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
54474         New declarations.
54475         * lib/printf-parse.c: Don't include config.h and the specification
54476         header if PRINTF_PARSE is already defined. Eliminate the set of
54477         parameters for WIDE_CHAR_VERSION; the user of this file must provide
54478         them now. Include c-ctype.h.
54479         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
54480         directive and CHAR_T_ONLY_ASCII.
54481         * lib/vasnprintf.c: Don't include config.h and the specification header
54482         if VASNPRINTF is already defined.
54483         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
54484         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
54485         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
54486         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
54487         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
54488         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
54489         code accordingly.
54490         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
54491         pad_ourselves also in this case, with the 'c' and 's' directives, and
54492         with a different notion of "width".
54493         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
54494
54495 2007-06-10  Bruno Haible  <bruno@clisp.org>
54496
54497         * modules/unistr/u32-mbsnlen: New file.
54498         * lib/unistr/u32-mbsnlen.c: New file.
54499
54500         * modules/unistr/u16-mbsnlen: New file.
54501         * lib/unistr/u16-mbsnlen.c: New file.
54502
54503         * modules/unistr/u8-mbsnlen: New file.
54504         * lib/unistr/u8-mbsnlen.c: New file.
54505
54506         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
54507         declarations.
54508
54509 2007-06-10  Bruno Haible  <bruno@clisp.org>
54510
54511         * lib/string_.h (mbsnlen): New declaration.
54512         * lib/mbsnlen.c: New file.
54513         * m4/mbsnlen.m4: New file.
54514         * modules/mbsnlen: New file.
54515         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
54516         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
54517         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
54518
54519 2007-06-10  Bruno Haible  <bruno@clisp.org>
54520
54521         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
54522
54523 2007-06-10  Bruno Haible  <bruno@clisp.org>
54524
54525         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
54526         * lib/mbuiter.h: Likewise.
54527
54528 2007-06-10  Bruno Haible  <bruno@clisp.org>
54529
54530         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
54531         declaration.
54532
54533 2007-06-10  Karl Berry  <karl@gnu.org>
54534
54535         * config/srclist.txt: remove gettext entries, Bruno prefers
54536         to update individually.
54537
54538 2007-06-10  Bruno Haible  <bruno@clisp.org>
54539
54540         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
54541         'maxlen'. Ensure only length + width bytes are allocated, not
54542         length + 1 + width.
54543
54544 2007-06-09  Bruno Haible  <bruno@clisp.org>
54545
54546         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
54547         (CHAR_T): Remove macro.
54548         (VASNPRINTF): Update.
54549
54550 2007-06-09  Bruno Haible  <bruno@clisp.org>
54551
54552         * MODULES.html.sh (Unicode string functions): Add the new modules.
54553
54554         * modules/uniconv/u32-conv-to-enc: New file.
54555         * lib/uniconv/u32-conv-to-enc.c: New file.
54556         * modules/uniconv/u32-conv-to-enc-tests: New file.
54557         * tests/uniconv/test-u32-conv-to-enc.c: New file.
54558
54559         * modules/uniconv/u16-conv-to-enc: New file.
54560         * lib/uniconv/u16-conv-to-enc.c: New file.
54561         * lib/uniconv/u-conv-to-enc.h: New file.
54562         * modules/uniconv/u16-conv-to-enc-tests: New file.
54563         * tests/uniconv/test-u16-conv-to-enc.c: New file.
54564
54565         * modules/uniconv/u8-conv-to-enc: New file.
54566         * lib/uniconv/u8-conv-to-enc.c: New file.
54567         * modules/uniconv/u8-conv-to-enc-tests: New file.
54568         * tests/uniconv/test-u8-conv-to-enc.c: New file.
54569
54570         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
54571         u32_conv_to_encoding): New declarations.
54572
54573 2007-06-09  Bruno Haible  <bruno@clisp.org>
54574
54575         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
54576
54577 2007-06-09  Bruno Haible  <bruno@clisp.org>
54578
54579         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
54580         * modules/malloca: Renamed from modules/allocsa, updated.
54581         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
54582         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
54583         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
54584         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
54585         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
54586         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
54587         * modules/xmalloca: Renamed from modules/xallocsa, updated.
54588         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
54589         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
54590         * modules/c-strcasestr (Depends-on): Update.
54591         * lib/c-strcasestr.c: Update.
54592         * modules/c-strstr (Depends-on): Update.
54593         * lib/c-strstr.c: Update.
54594         * modules/canonicalize-lgpl (Depends-on): Update.
54595         * lib/canonicalize-lgpl.c: Update.
54596         * modules/clean-temp (Depends-on): Update.
54597         * lib/clean-temp.c: Update.
54598         * modules/csharpcomp (Depends-on): Update.
54599         * lib/csharpcomp.c: Update.
54600         * modules/csharpexec (Depends-on): Update.
54601         * lib/csharpexec.c: Update.
54602         * modules/javacomp (Depends-on): Update.
54603         * lib/javacomp.c: Update.
54604         * modules/javaexec (Depends-on): Update.
54605         * lib/javaexec.c: Update.
54606         * modules/mbscasestr (Depends-on): Update.
54607         * lib/mbscasestr.c: Update.
54608         * modules/mbsstr (Depends-on): Update.
54609         * lib/mbsstr.c: Update.
54610         * modules/setenv (Depends-on): Update.
54611         * lib/setenv.c: Update.
54612         * modules/strcasestr (Depends-on): Update.
54613         * lib/strcasestr.c: Update.
54614         * modules/striconveha (Depends-on): Update.
54615         * lib/striconveha.c: Update.
54616         * modules/relocatable-prog-wrapper (Files): Update.
54617         * lib/relocwrapper.c: Update.
54618         * build-aux/install-reloc: Update.
54619         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
54620
54621 2007-06-08  Bruno Haible  <bruno@clisp.org>
54622
54623         Port to uClibc.
54624         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
54625         * lib/fpurge.c (fpurge): Likewise.
54626         * lib/freading.c (freading): Likewise.
54627         * lib/fseeko.c (rpl_fseeko): Likewise.
54628         * lib/fseterr.c (fseterr): Likewise.
54629         * lib/fwriting.c (fwriting): Likewise.
54630         * tests/test-fflush.c (main): Avoid a failure on uClibc.
54631
54632 2007-06-08  Bruno Haible  <bruno@clisp.org>
54633
54634         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
54635         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
54636         * modules/gettext (Files): Add m4/intlmacosx.m4.
54637
54638 2007-06-07  Bruno Haible  <bruno@clisp.org>
54639
54640         * modules/localename-tests: New file.
54641         * tests/test-localename.c: New file.
54642
54643         New module 'localename'.
54644         * lib/localename.h: New file.
54645         * lib/localename.c: New file, from GNU gettext.
54646         * m4/localename.m4: New file.
54647         * modules/localename: New file.
54648
54649 2007-06-07  Bruno Haible  <bruno@clisp.org>
54650
54651         Work around the lack of <wchar.h> on some builds of uClibc.
54652         * doc/headers/wchar.texi: Update.
54653         * lib/wchar_.h: Include <wchar.h> only if it exists.
54654         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
54655         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
54656         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
54657         doesn't exist.
54658         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
54659         * modules/mbfile (Depends-on): Add wchar.
54660         * modules/mbiter (Depends-on): Likewise.
54661         * modules/mbuiter (Depends-on): Likewise.
54662         Reported by Simon Josefsson.
54663
54664 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
54665
54666         Work around problem reported by Steven M. Schweda in
54667         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
54668         Tru64 5.1B with the Compaq compiler environment installed declares
54669         an 'isblank' function but does not define it in the C library.
54670         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
54671         * lib/regex_internal.h (isblank): Likewise.
54672         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
54673         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
54674
54675 2007-06-05  Bruno Haible  <bruno@clisp.org>
54676
54677         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
54678         ia64.
54679         * modules/printf-safe: New file.
54680         * modules/fprintf-posix (Depends-on): Add printf-safe.
54681         * modules/printf-posix (Depends-on): Likewise.
54682         * modules/snprintf-posix (Depends-on): Likewise.
54683         * modules/sprintf-posix (Depends-on): Likewise.
54684         * modules/vasnprintf-posix (Depends-on): Likewise.
54685         * modules/vasprintf-posix (Depends-on): Likewise.
54686         * modules/vfprintf-posix (Depends-on): Likewise.
54687         * modules/vprintf-posix (Depends-on): Likewise.
54688         * modules/vsnprintf-posix (Depends-on): Likewise.
54689         * modules/vsprintf-posix (Depends-on): Likewise.
54690         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
54691         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
54692         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
54693         "no" on i386, x86_64, ia64.
54694         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
54695         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
54696         on i386, x86_64, ia64.
54697         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
54698         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
54699         on i386, x86_64, ia64.
54700         * tests/test-vasnprintf-posix.c: Include float.h.
54701         (LDBL80_WORDS): New macro.
54702         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
54703         on i386, x86_64, ia64.
54704         * tests/test-vasprintf-posix.c: Include float.h.
54705         (LDBL80_WORDS): New macro.
54706         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
54707         on i386, x86_64, ia64.
54708         * tests/test-snprintf-posix.c: Include float.h.
54709         * tests/test-sprintf-posix.c: Likewise.
54710         * tests/test-vsnprintf-posix.c: Likewise.
54711         * tests/test-vsprintf-posix.c: Likewise.
54712
54713 2007-06-05  Bruno Haible  <bruno@clisp.org>
54714
54715         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
54716         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
54717         non-IEEE numbers on i386, x86_64, ia64.
54718         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
54719         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
54720         * tests/test-isnanl.h: Include float.h.
54721         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
54722
54723 2007-06-05  Bruno Haible  <bruno@clisp.org>
54724
54725         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
54726         also the %a / %A. Handle the %a / %A code before this extra handling.
54727
54728 2007-06-05  Bruno Haible  <bruno@clisp.org>
54729
54730         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
54731         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
54732
54733 2007-06-05  Bruno Haible  <bruno@clisp.org>
54734
54735         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
54736         typo in variable name.
54737
54738 2007-06-05  Eric Blake  <ebb9@byu.net>
54739
54740         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
54741         Reported by Simon Josefsson.
54742
54743 2007-06-04  Bruno Haible  <bruno@clisp.org>
54744
54745         Avoid test failures on some PowerPC platforms.
54746         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
54747         Define differently for PowerPC.
54748         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
54749         Reported by Gary V. Vaughan <gary@gnu.org>.
54750
54751 2007-06-02  Bruno Haible  <bruno@clisp.org>
54752
54753         Fix test-stdint failure on FreeBSD/ia64.
54754         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
54755         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
54756         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
54757         * doc/headers/stdint.texi: Update.
54758
54759 2007-06-01  Bruno Haible  <bruno@clisp.org>
54760
54761         * tests/test-binary-io.c (main): Pass a third argument to open().
54762         Reported by Gary V. Vaughan <gary@gnu.org>.
54763
54764 2007-06-01  Bruno Haible  <bruno@clisp.org>
54765
54766         * doc/functions/frexpl.texi: Update for mingw.
54767
54768 2007-06-01  Bruno Haible  <bruno@clisp.org>
54769
54770         * tests/test-lseek.c (main): Disable test of errno for invalid third
54771         argument.
54772         * doc/functions/lseek.texi: Update.
54773         Reported by Gary V. Vaughan <gary@gnu.org>.
54774
54775 2007-05-28  Bruno Haible  <bruno@clisp.org>
54776
54777         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
54778
54779 2007-05-31  Eric Blake  <ebb9@byu.net>
54780
54781         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
54782         cross compiling.
54783
54784 2007-05-30  Eric Blake  <ebb9@byu.net>
54785         and Bruno Haible  <bruno@clisp.org>
54786
54787         Work around mingw test failures exposed by m4-1.4.9b.
54788         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
54789         * tests/test-unistd.c: Disable uid_t and git_t tests for the
54790         moment.
54791
54792 2007-05-30  Bruno Haible  <bruno@clisp.org>
54793
54794         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
54795         assuming that they are closed. Needed on HP-UX 11.
54796
54797 2007-05-29  Bruno Haible  <bruno@clisp.org>
54798
54799         Fix a problem with #include_next.
54800         * lib/dirent_.h: Split the double-inclusion guard.
54801         * lib/fcntl_.h: Likewise.
54802         * lib/float_.h: Likewise.
54803         * lib/iconv_.h: Likewise.
54804         * lib/inttypes_.h: Likewise.
54805         * lib/locale_.h: Likewise.
54806         * lib/math_.h: Likewise.
54807         * lib/netinet_in_.h: Likewise.
54808         * lib/search_.h: Likewise.
54809         * lib/signal_.h: Likewise.
54810         * lib/stdint_.h: Likewise.
54811         * lib/stdio_.h: Likewise.
54812         * lib/stdlib_.h: Likewise.
54813         * lib/string_.h: Likewise.
54814         * lib/sys_select_.h: Likewise.
54815         * lib/sys_socket_.h: Likewise.
54816         * lib/sys_stat_.h: Likewise.
54817         * lib/sys_time_.h: Likewise.
54818         * lib/sysexits_.h: Likewise.
54819         * lib/time_.h: Likewise.
54820         * lib/unistd_.h: Likewise.
54821         * lib/wchar_.h: Likewise.
54822         * lib/wctype_.h: Likewise.
54823
54824 2007-05-29  Bruno Haible  <bruno@clisp.org>
54825
54826         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
54827         for the moment.
54828
54829 2007-05-29  Bruno Haible  <bruno@clisp.org>
54830
54831         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
54832         invocation.
54833         Reported by Eric Blake.
54834
54835 2007-05-29  Bruno Haible  <bruno@clisp.org>
54836
54837         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
54838         compiling case.
54839
54840 2007-05-29  Eric Blake  <ebb9@byu.net>
54841             Bruno Haible  <bruno@clisp.org>
54842
54843         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
54844         cross compiles.
54845
54846 2007-05-28  Eric Blake  <ebb9@byu.net>
54847
54848         * modules/closein-tests (test_closein_LDADD): Support test on
54849         cygwin with libtool.
54850
54851 2007-05-28  Bruno Haible  <bruno@clisp.org>
54852
54853         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
54854         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
54855         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
54856         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
54857         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
54858         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
54859         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
54860         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
54861         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
54862
54863 2007-05-28  Eric Blake  <ebb9@byu.net>
54864
54865         Unconditionally include <config.h> in unit tests.
54866         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
54867         * tests/test-allocsa.c, tests/test-arcfour.c,
54868         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
54869         tests/test-array_list.c, tests/test-array_oset.c,
54870         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
54871         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
54872         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
54873         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
54874         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
54875         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
54876         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
54877         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
54878         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
54879         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
54880         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
54881         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
54882         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
54883         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
54884         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
54885         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
54886         test-md5.c, test-memmem.c, test-printf-posix.c,
54887         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
54888         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
54889         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
54890         test-strcasestr.c, test-striconv.c, test-striconveh.c,
54891         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
54892         test-vasnprintf-posix2.c, test-vasnprintf.c,
54893         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
54894         test-vfprintf-posix.c, test-vprintf-posix.c,
54895         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
54896         test-xvasprintf.c: Likewise.
54897
54898 2007-05-28  Bruno Haible  <bruno@clisp.org>
54899
54900         * gnulib-tool (func_import): Remember the --with-tests command-line
54901         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
54902         Reported by Eric Blake.
54903
54904 2007-05-28  Bruno Haible  <bruno@clisp.org>
54905
54906         * modules/ftell-tests: New file.
54907         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
54908         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
54909
54910         * lib/ftell.c: New file.
54911         * modules/ftell: New file.
54912         * m4/ftell.m4: New file.
54913         * doc/functions/ftell.texi: Update.
54914         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
54915         REPLACE_FTELL.
54916         * lib/stdio_.h (rpl_ftell): New declaration.
54917         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
54918         REPLACE_FTELL.
54919
54920 2007-05-28  Eric Blake  <ebb9@byu.net>
54921
54922         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
54923
54924 2007-05-28  Bruno Haible  <bruno@clisp.org>
54925
54926         * modules/fseek-tests: New file.
54927         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
54928         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
54929
54930         * lib/fseek.c: New file.
54931         * modules/fseek: New file.
54932         * m4/fseek.m4: New file.
54933         * doc/functions/fseek.texi: Update.
54934         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
54935         REPLACE_FSEEK.
54936         * lib/stdio_.h (rpl_fseek): New declaration.
54937         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
54938         REPLACE_FSEEK.
54939
54940 2007-05-28  Bruno Haible  <bruno@clisp.org>
54941
54942         * lib/stdio_.h (fflush): More comments.
54943
54944 2007-05-28  Bruno Haible  <bruno@clisp.org>
54945
54946         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
54947         runtime test.
54948
54949 2007-05-28  Eric Blake  <ebb9@byu.net>
54950
54951         Improve lseek module.
54952         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
54953         * lib/unistd_.h (lseek): Scale back link warning message.
54954         * tests/test-lseek.c: Beef up test.
54955         * tests/test-lseek.sh: Exercise more facets of lseek.
54956         Reported by Bruno Haible.
54957
54958 2007-05-28  Bruno Haible  <bruno@clisp.org>
54959
54960         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
54961         to define.
54962
54963 2007-05-27  Bruno Haible  <bruno@clisp.org>
54964
54965         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
54966
54967 2007-05-27  Bruno Haible  <bruno@clisp.org>
54968
54969         * modules/openmp: New file.
54970         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
54971         Noah Misch.
54972
54973 2007-05-26  Bruno Haible  <bruno@clisp.org>
54974
54975         * modules/chdir-long (Depends-on): Add fchdir.
54976         * modules/chdir-safer (Depends-on): Likewise.
54977         * modules/fts (Depends-on): Likewise.
54978         * modules/fts-lgpl (Depends-on): Likewise.
54979         * modules/openat (Depends-on): Likewise.
54980         * modules/savewd (Depends-on): Likewise.
54981
54982 2007-05-24  Eric Blake  <ebb9@byu.net>
54983
54984         Fix lseek on mingw.
54985         * modules/lseek: New module.
54986         * m4/lseek.m4: New file.
54987         * lib/lseek.c: New file.
54988         * modules/lseek-tests: New file.
54989         * tests/test-lseek.c: New file.
54990         * tests/test-lseek.sh: New file.
54991         * MODULES.html.sh: Document lseek module.
54992         * modules/fflush (Depends-on): Add lseek, fseeko.
54993         * modules/fseeko (Depends-on): Likewise.
54994         * modules/ftello (Depends-on): Likewise.
54995         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
54996         broken.
54997         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
54998         broken.
54999         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
55000         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
55001         * lib/ftello.c (rpl_ftello): Likewise.
55002         * tests/test-fseeko.c (main): Test this.
55003         * tests/test-fseeko.sh: Likewise.
55004         * tests/test-ftello.c (main): Likewise.
55005         * tests/test-ftello.sh: Likewise.
55006         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
55007         implies replacing fseek.
55008         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
55009         HAVE_FTELLO.
55010         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
55011         * modules/unistd (Makefile.am): Likewise.
55012         * lib/unistd_.h (lseek): Declare a replacement.
55013         * doc/functions/lseek.texi (lseek): Document this fix.
55014         * doc/functions/fseek.texi (fseek): Likewise.
55015         * doc/functions/ftell.texi (ftell): Likewise.
55016
55017 2007-05-24  Bruno Haible  <bruno@clisp.org>
55018
55019         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
55020         in the printed representation of a NaN.
55021         * tests/test-vasprintf-posix.c (test_function): Likewise.
55022         * tests/test-snprintf-posix.h (test_function): Likewise.
55023         * tests/test-sprintf-posix.h (test_function): Likewise.
55024         Reported by Eric Blake.
55025
55026 2007-05-23  Eric Blake  <ebb9@byu.net>
55027
55028         Fix fseeko/ftello on cygwin 1.5.24.
55029         * doc/functions/fseeko.texi (fseeko): Document the fix.
55030         * doc/functions/ftello.texi (ftello): Document the fix.
55031         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
55032         * doc/functions/stdout.text (stdout): New file.
55033         * doc/functions/stderr.text (stderr): New file.
55034         * doc/gnulib.texi (Function Substitutes): Use new files.
55035         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
55036         prior to 1.7.0.
55037         * tests/test-ftello.c (main): Likewise for ftello.
55038         * tests/test-fseeko.sh: New file.
55039         * tests/test-ftello.sh: New file.
55040         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
55041         with seekable stdin.
55042         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
55043         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
55044         (gl_REPLACE_FSEEKO): New macro.
55045         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
55046         * modules/fseeko (Files): Distribute fseeko.c.
55047         * modules/ftello (Files): Distribute ftello.c.
55048         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
55049         mode.
55050         * lib/ftello.c (rpl_ftello): New file.
55051         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
55052         fseeko, ftello.
55053         (gl_STDIN_LARGE_OFFSET): New macro.
55054         * modules/stdio (Makefile.am): Perform the replacement.
55055         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
55056
55057 2007-05-23  Bruno Haible  <bruno@clisp.org>
55058
55059         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
55060         GNULIB_POSIXCHECK is defined.
55061
55062 2007-05-21  Bruno Haible  <bruno@clisp.org>
55063
55064         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
55065         Check also the output for NaN arguments. When cross-compiling, guess
55066         no on IRIX.
55067         * lib/vasnprintf.c: Update comments.
55068         * tests/test-vasnprintf-posix.c (strisnan): New function.
55069         (test_function): Use it.
55070         * tests/test-vasprintf-posix.c (strisnan): New function.
55071         (test_function): Use it.
55072         * tests/test-snprintf-posix.h (strisnan): New function.
55073         (test_function): Use it.
55074         * tests/test-sprintf-posix.h (strisnan): New function.
55075         (test_function): Use it.
55076         Reported by Eric Blake.
55077
55078 2007-05-20  Bruno Haible  <bruno@clisp.org>
55079
55080         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
55081         numbers that fails on BeOS.
55082         * doc/functions/frexpl.texi: Update.
55083
55084 2007-05-20  Jim Meyering  <jim@meyering.net>
55085
55086         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
55087         forced upon us by glibc-2.6.
55088
55089 2007-05-20  Bruno Haible  <bruno@clisp.org>
55090
55091         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
55092         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
55093         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
55094         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
55095         NEED_PRINTF_INFINITE.
55096         (is_infinitel): New function.
55097         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
55098         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
55099         gl_PREREQ_VASNPRINTF_INFINITE.
55100         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
55101         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
55102         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
55103         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
55104         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
55105         gl_PREREQ_VASNPRINTF_INFINITE.
55106         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
55107         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
55108         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
55109         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
55110         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
55111         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55112         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
55113         * doc/functions/fprintf.texi: Update.
55114         * doc/functions/printf.texi: Update.
55115         * doc/functions/snprintf.texi: Update.
55116         * doc/functions/sprintf.texi: Update.
55117         * doc/functions/vfprintf.texi: Update.
55118         * doc/functions/vprintf.texi: Update.
55119         * doc/functions/vsnprintf.texi: Update.
55120         * doc/functions/vsprintf.texi: Update.
55121
55122 2007-05-20  Bruno Haible  <bruno@clisp.org>
55123
55124         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
55125         was not found in libc.
55126         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
55127
55128 2007-05-20  Bruno Haible  <bruno@clisp.org>
55129
55130         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
55131         printed as "-nan" instead of "nan".
55132         * tests/test-vasprintf-posix.c (test_function): Likewise.
55133         * tests/test-snprintf-posix.h (test_function): Likewise.
55134         * tests/test-sprintf-posix.h (test_function): Likewise.
55135         Needed for HP-UX 11.
55136
55137 2007-05-20  Jim Meyering  <jim@meyering.net>
55138
55139         Fix buggy test for the fchownat-deref bug.
55140         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
55141         symlink required for the run-test.  Without it, this test would
55142         always declare that fchownat doesn't work, and client code would
55143         unnecessarily use the replacement function with fixed libc.
55144         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
55145         Reported by Greg Schafer.
55146
55147 2007-05-19  Bruno Haible  <bruno@clisp.org>
55148
55149         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
55150         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
55151         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
55152         Needed for IRIX 6.5 and Solaris 2.5.1.
55153
55154 2007-05-19  Bruno Haible  <bruno@clisp.org>
55155
55156         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
55157         (test_function): Skip tests involving -0.0 on platforms where
55158         -0.0 = 0.0.
55159         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
55160         (test_function): Skip tests involving -0.0 on platforms where
55161         -0.0 = 0.0.
55162         * tests/test-snprintf-posix.h (have_minus_zero): New function.
55163         (test_function): Skip tests involving -0.0 on platforms where
55164         -0.0 = 0.0.
55165         * tests/test-sprintf-posix.h (have_minus_zero): New function.
55166         (test_function): Skip tests involving -0.0 on platforms where
55167         -0.0 = 0.0.
55168         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
55169         tests.
55170         * tests/test-printf-posix.h (test_function): Likewise.
55171         * tests/test-printf-posix.output: Remove all -0.0 related results.
55172         Needed for IRIX 6.5.
55173
55174 2007-05-19  Bruno Haible  <bruno@clisp.org>
55175
55176         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
55177         printed as "nan0x7fffffff" instead of "nan".
55178         * tests/test-vasprintf-posix.c (test_function): Likewise.
55179         * tests/test-snprintf-posix.h (test_function): Likewise.
55180         * tests/test-sprintf-posix.h (test_function): Likewise.
55181         * tests/test-fprintf-posix.h (NaN): Remove macro.
55182         (test_function): Remove all NaN related tests.
55183         * tests/test-printf-posix.h (NaN): Remove macro.
55184         (test_function): Remove all NaN related tests.
55185         * tests/test-printf-posix.output: Remove all NaN related results.
55186         Needed for IRIX 6.5.
55187
55188 2007-05-19  Bruno Haible  <bruno@clisp.org>
55189
55190         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
55191         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
55192
55193 2007-05-19  Bruno Haible  <bruno@clisp.org>
55194
55195         * lib/float_.h: New file.
55196         * m4/float_h.m4: New file.
55197         * modules/float: New file.
55198         * modules/isnanl (Dependencies): Add float.
55199         * modules/isnanl-nolibm (Dependencies): Likewise.
55200         * modules/mathl (Dependencies): Likewise.
55201         * modules/printf-frexpl (Dependencies): Likewise.
55202         * modules/signbit (Dependencies): Likewise.
55203         * modules/vasnprintf (Dependencies): Likewise.
55204         * doc/headers/float.texi: Update.
55205
55206 2007-05-19  Jim Meyering  <jim@meyering.net>
55207
55208         * lib/utimens.c (gl_futimens): Rename from futimens,
55209         now that glibc-2.6 declares futimens.
55210         * lib/utimens.h: Likewise.
55211
55212 2007-05-19  Bruno Haible  <bruno@clisp.org>
55213
55214         Avoid test failures on mingw.
55215         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
55216         * tests/test-printf-posix.sh: Likewise.
55217         * tests/test-vfprintf-posix.sh: Likewise.
55218         * tests/test-vprintf-posix.sh: Likewise.
55219
55220 2007-05-19  Bruno Haible  <bruno@clisp.org>
55221
55222         Fix *printf result for NaN, Inf, -0.0 on mingw.
55223         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
55224         * lib/vasnprintf.c: Include math.h and isnan.h.
55225         (is_infinite_or_zero): New function.
55226         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
55227         values in the %f, %F, %e, %E, %g, %G directives.
55228         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
55229         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
55230         gl_PRINTF_INFINITE and test its result. Invoke
55231         gl_PREREQ_VASNPRINTF_INFINITE.
55232         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
55233         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
55234         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
55235         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
55236         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
55237         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55238         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
55239         * doc/functions/fprintf.texi: Update.
55240         * doc/functions/printf.texi: Update.
55241         * doc/functions/snprintf.texi: Update.
55242         * doc/functions/sprintf.texi: Update.
55243         * doc/functions/vfprintf.texi: Update.
55244         * doc/functions/vprintf.texi: Update.
55245         * doc/functions/vsnprintf.texi: Update.
55246         * doc/functions/vsprintf.texi: Update.
55247
55248 2007-05-19  Bruno Haible  <bruno@clisp.org>
55249
55250         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
55251         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
55252         Instead of multiplying with 10^k, set extra_zeroes to k.
55253         (scale10_round_long_double): Remove function.
55254
55255 2007-05-18  Bruno Haible  <bruno@clisp.org>
55256
55257         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
55258         introduced on 2007-05-06.
55259
55260 2007-05-18  Bruno Haible  <bruno@clisp.org>
55261
55262         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
55263         %g directives.
55264         * tests/test-vasprintf-posix.c (test_function): Likewise.
55265         * tests/test-snprintf-posix.h (test_function): Likewise.
55266         * tests/test-sprintf-posix.h (test_function): Likewise.
55267
55268 2007-05-18  Bruno Haible  <bruno@clisp.org>
55269
55270         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
55271         (strmatch): New function.
55272         (test_function): Test the %f directive on numbers of various exponents.
55273         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
55274         (strmatch): New function.
55275         (test_function): Test the %f directive on numbers of various exponents.
55276         * tests/test-snprintf-posix.h (strmatch): New function.
55277         (test_function): Test the %f directive on numbers of various exponents.
55278         * tests/test-sprintf-posix.h (strmatch): New function.
55279         (test_function): Test the %f directive on numbers of various exponents.
55280         * tests/test-snprintf-posix.c (SIZEOF): New macro.
55281         * tests/test-sprintf-posix.c (SIZEOF): New macro.
55282         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
55283         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
55284
55285 2007-05-18  Bruno Haible  <bruno@clisp.org>
55286
55287         Add support for 'long double' number output.
55288         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
55289         * lib/vasnprintf.c: Include math.h and float+.h.
55290         (mp_limb_t): New type.
55291         (GMP_LIMB_BITS): New macro.
55292         (mp_twolimb_t): New type.
55293         (GMP_TWOLIMB_BITS): New macro.
55294         (mpn_t): New type.
55295         (multiply, divide, convert_to_decimal, decode_long_double,
55296         scale10_round_long_double, scale10_round_decimal_long_double,
55297         floorlog10l): New functions.
55298         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
55299         for the %f, %F, %e, %E, %g, %G directives.
55300         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
55301         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
55302         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
55303         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
55304         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
55305         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
55306         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
55307         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
55308         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
55309         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55310         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
55311         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
55312         * modules/snprintf-posix (Depends-on): Likewise.
55313         * modules/sprintf-posix (Depends-on): Likewise.
55314         * modules/vasnprintf-posix (Depends-on): Likewise.
55315         * modules/vasprintf-posix (Depends-on): Likewise.
55316         * modules/vfprintf-posix (Depends-on): Likewise.
55317         * modules/vsnprintf-posix (Depends-on): Likewise.
55318         * modules/vsprintf-posix (Depends-on): Likewise.
55319         * modules/vasnprintf (Files): Add lib/float+.h.
55320         * doc/functions/fprintf.texi: Update.
55321         * doc/functions/printf.texi: Update.
55322         * doc/functions/snprintf.texi: Update.
55323         * doc/functions/sprintf.texi: Update.
55324         * doc/functions/vfprintf.texi: Update.
55325         * doc/functions/vprintf.texi: Update.
55326         * doc/functions/vsnprintf.texi: Update.
55327         * doc/functions/vsprintf.texi: Update.
55328
55329 2007-05-18  Bruno Haible  <bruno@clisp.org>
55330
55331         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
55332
55333 2007-05-18  Bruno Haible  <bruno@clisp.org>
55334
55335         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
55336         for printing 64-bit integers. Needed for mingw.
55337
55338 2007-05-18  Bruno Haible  <bruno@clisp.org>
55339
55340         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
55341         gl_FUNC_FREXPL_WORKS.
55342         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
55343
55344 2007-05-18  Bruno Haible  <bruno@clisp.org>
55345
55346         * modules/frexpl-nolibm-tests: New file.
55347
55348         * modules/frexpl-nolibm: New file.
55349         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
55350
55351 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
55352
55353         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
55354         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
55355         GCC 4.2, which otherwise issues a lot of warnings.
55356         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
55357         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
55358         Likewise.
55359         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
55360         * modules/iconv_open (iconv.h): Likewise.
55361         * modules/locale (locale.h): Likewise.
55362         * modules/netinet_in (netinet/in.h): Likewise.
55363         * modules/sys_select (sys_select.h): Likewise.
55364         * modules/sys_socket (sys/socket.h): Likewise.
55365         * modules/sys_stat (sys/stat.h): Likewise.
55366         * modules/sysexits (sysexits.h): Likewise.
55367         * modules/unistd (unistd.h): Likewise.
55368
55369 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55370
55371         * modules/closein-tests (Makefile.am): Distribute
55372         `test-closein.sh'.
55373
55374 2007-05-17  Bruno Haible  <bruno@clisp.org>
55375
55376         * tests/test-printf-posix.output: Renamed from
55377         tests/test-fprintf-posix.out.
55378         * modules/fprintf-posix-tests: Update.
55379         * modules/printf-posix-tests: Update.
55380         * modules/vfprintf-posix-tests: Update.
55381         * modules/vprintf-posix-tests: Update.
55382         * tests/test-fprintf-posix.sh: Update.
55383         * tests/test-printf-posix.sh: Update.
55384         * tests/test-vfprintf-posix.sh: Update.
55385         * tests/test-vprintf-posix.sh: Update.
55386         Reported by Ralf Wildenhues.
55387
55388 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
55389
55390         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
55391         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
55392         GCC 4.2, which otherwise issues a lot of warnings.
55393         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
55394         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
55395         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
55396         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
55397         it should no longer be needed.
55398         * lib/string_.h: Likewise.
55399         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
55400         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
55401         * modules/inttypes (inttypes.h): Likewise.
55402         * modules/math (math.h): Likewise.
55403         * modules/search (search.h): Likewise.
55404         * modules/signal (signal.h): Likewise.
55405         * modules/stdint (stdint.h): Likewise.
55406         * modules/stdio (stdio.h): Likewise.
55407         * modules/stdlib (stdlib.h): Likewise.
55408         * modules/string (string.h): Likewise.
55409         * modules/sys_time (sys/time.h): Likewise.
55410         * modules/time (time.h): Likewise.
55411         * modules/wchar (wchar.h): Likewise.
55412         * modules/wctype (wtype.h): Likewise.
55413
55414 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
55415
55416         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
55417
55418 2007-05-13  Bruno Haible  <bruno@clisp.org>
55419
55420         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
55421         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
55422         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
55423         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
55424         (gl_PREREQ_STRTOK_R): Don't require it here.
55425
55426 2007-05-13  Bruno Haible  <bruno@clisp.org>
55427
55428         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
55429         when used in C++ mode.
55430
55431 2007-05-12  Bruno Haible  <bruno@clisp.org>
55432
55433         * lib/linebuffer.h: Tweak doc.
55434         * lib/linebuffer.c: Likewise.
55435
55436 2007-05-12  James Youngman  <jay@gnu.org>
55437
55438         * lib/linebuffer.c (readlinebuffer_delim): New function,
55439         like readlinebuffer, but use a caller-specified delimiter.
55440         (readlinebuffer): Just call readlinebuffer_delim with '\n'
55441         as the delimiter.
55442         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
55443
55444 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
55445
55446         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
55447         * modules/openat (Files): Remove openat-die.c.
55448         (Depends-on): Add openat-die.
55449         * modules/openat-die: New module.
55450
55451 2007-05-06  Bruno Haible  <bruno@clisp.org>
55452
55453         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
55454         Update with info about Cygwin.
55455         * doc/functions/fprintf.texi: Update.
55456         * doc/functions/printf.texi: Update.
55457         * doc/functions/snprintf.texi: Update.
55458         * doc/functions/sprintf.texi: Update.
55459         * doc/functions/vfprintf.texi: Update.
55460         * doc/functions/vprintf.texi: Update.
55461         * doc/functions/vsnprintf.texi: Update.
55462         * doc/functions/vsprintf.texi: Update.
55463         Reported by Eric Blake.
55464
55465 2007-05-06  Bruno Haible  <bruno@clisp.org>
55466
55467         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
55468         padding ourselves for the floating-point directives.
55469         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
55470         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
55471         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
55472         gl_PRINTF_FLAG_ZERO and test its result. Invoke
55473         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
55474         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
55475         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
55476         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
55477         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
55478         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
55479         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55480         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
55481         * tests/test-snprintf-posix.h (test_function): Also check the width
55482         and some flags in the %f directive.
55483         * tests/test-sprintf-posix.h (test_function): Likewise.
55484         * tests/test-vasnprintf-posix.c (test_function): Likewise.
55485         * tests/test-vasprintf-posix.c (test_function): Likewise.
55486         * doc/functions/fprintf.texi: Update.
55487         * doc/functions/printf.texi: Update.
55488         * doc/functions/snprintf.texi: Update.
55489         * doc/functions/sprintf.texi: Update.
55490         * doc/functions/vfprintf.texi: Update.
55491         * doc/functions/vprintf.texi: Update.
55492         * doc/functions/vsnprintf.texi: Update.
55493         * doc/functions/vsprintf.texi: Update.
55494
55495 2007-05-06  Bruno Haible  <bruno@clisp.org>
55496
55497         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
55498         pass the ' flag character to sprintf or snprintf.
55499         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
55500         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
55501         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
55502         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
55503         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
55504         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
55505         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
55506         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
55507         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
55508         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
55509         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55510         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
55511         * tests/test-snprintf-posix.h (test_function): Also check the grouping
55512         flag.
55513         * tests/test-sprintf-posix.h (test_function): Likewise.
55514         * tests/test-vasnprintf-posix.c (test_function): Likewise.
55515         * tests/test-vasprintf-posix.c (test_function): Likewise.
55516         * doc/functions/fprintf.texi: Update.
55517         * doc/functions/printf.texi: Update.
55518         * doc/functions/snprintf.texi: Update.
55519         * doc/functions/sprintf.texi: Update.
55520         * doc/functions/vfprintf.texi: Update.
55521         * doc/functions/vprintf.texi: Update.
55522         * doc/functions/vsnprintf.texi: Update.
55523         * doc/functions/vsprintf.texi: Update.
55524
55525 2007-05-01  Bruno Haible  <bruno@clisp.org>
55526
55527         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
55528
55529 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
55530
55531         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
55532         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
55533
55534 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
55535
55536         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
55537         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
55538         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
55539
55540 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
55541
55542         * lib/argp-help.c (struct hol_entry): New member `ord'.
55543         (HOL_ENTRY_PTRCMP): Use ord for comparison
55544         (hol_sort): Initialize ord.
55545
55546 2007-05-01  Bruno Haible  <bruno@clisp.org>
55547
55548         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
55549         Reported by Eric Blake.
55550         * doc/gnulib.texi (Function Substitutes): Update.
55551
55552 2007-05-01  Bruno Haible  <bruno@clisp.org>
55553
55554         * doc/functions.texi: Remove file, now redundant through
55555         doc/functions/*.texi.
55556
55557 2007-05-01  Bruno Haible  <bruno@clisp.org>
55558
55559         * modules/argp (Depends-on): Add sleep.
55560
55561 2007-05-01  Bruno Haible  <bruno@clisp.org>
55562
55563         * modules/sleep-tests: New file.
55564         * tests/test-sleep.c: New file.
55565
55566         * modules/sleep: New file.
55567         * lib/sleep.c: New file.
55568         * m4/sleep.m4: New file.
55569         * lib/unistd_.h (sleep): New declaration.
55570         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
55571         HAVE_SLEEP.
55572         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
55573         * doc/functions/sleep.texi: Document the sleep module.
55574
55575 2007-05-01  Bruno Haible  <bruno@clisp.org>
55576
55577         * lib/sigprocmask.h: Remove file.
55578         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
55579         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
55580         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
55581         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
55582         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
55583         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
55584         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
55585         HAVE_SIGSET_T as a shell variable.
55586         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
55587         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
55588         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
55589         (Depends-on): Add signal. Remove verify.
55590         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
55591         (Include): Mention <signal.h> instead of sigprocmask.h.
55592         * NEWS: Mention the change.
55593         * lib/fatal-signal.c: Don't include sigprocmask.h.
55594
55595 2007-05-01  Bruno Haible  <bruno@clisp.org>
55596
55597         * modules/signal: New file.
55598         * lib/signal_.h: New file.
55599         * m4/signal_h.m4: New file.
55600
55601 2007-05-01  Bruno Haible  <bruno@clisp.org>
55602
55603         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
55604         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
55605         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
55606         HAVE_WCTYPE_CTMP_BUG into wctype.h.
55607
55608 2007-05-01  Bruno Haible  <bruno@clisp.org>
55609
55610         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
55611         configure time.
55612         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
55613         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
55614         * modules/sys_stat (Makefile.am): Substitute their values into
55615         sys/stat.h.
55616
55617 2007-05-01  Bruno Haible  <bruno@clisp.org>
55618
55619         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
55620         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
55621         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
55622
55623 2007-05-01  Bruno Haible  <bruno@clisp.org>
55624
55625         * doc/header/assert.texi: Undo last change: don't mention the gnulib
55626         'assert' module here.
55627
55628 2007-05-01  Bruno Haible  <bruno@clisp.org>
55629
55630         * doc/functions/*.texi: New files.
55631         * doc/functions/google-ranking.txt: New file.
55632         * doc/gnulib.texi (Function Substitutes): New chapter.
55633         (ctime, inet_ntoa): Remove sections.
55634         * doc/ctime.texi: Remove file.
55635         * doc/inet_ntoa.texi: Remove file.
55636         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
55637         dependencies.
55638         (%.info): New rule, specifying a --reference-limit.
55639
55640 2007-05-01  Bruno Haible  <bruno@clisp.org>
55641
55642         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
55643
55644 2007-05-01  Bruno Haible  <bruno@clisp.org>
55645
55646         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
55647         the portability of 'mkdir' to mingw systems.
55648
55649 2007-05-01  Bruno Haible  <bruno@clisp.org>
55650
55651         * doc/headers/google-ranking.txt: New file.
55652
55653 2007-04-30  Eric Blake  <ebb9@byu.net>
55654
55655         Prefer fseeko to fseek.
55656         * modules/getpass (Depends-on): Add fseeko.
55657         * lib/getpass.c (getpass): Use fseeko, not fseek.
55658
55659 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
55660
55661         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
55662         assumes the sorting is stable, while most qsort implementations
55663         are not.  Use argument addresses to ensure they never compare as
55664         equal.
55665
55666         * tests/test-argp-2.sh (usage-indent test): Fix output
55667         (func_compare): Restore diff options
55668         * tests/test-argp.c: Restore #include "progname.h"
55669
55670 2007-04-29  Bruno Haible  <bruno@clisp.org>
55671
55672         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
55673         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
55674         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
55675         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55676         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
55677         (configure.ac): Define CHECK_SNPRINTF_POSIX.
55678         (TESTS, check_PROGRAMS): Add test-snprintf.
55679         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
55680         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
55681         (TESTS, check_PROGRAMS): Add test-vsnprintf.
55682         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
55683         assertions that fail on HP-UX, OSF/1, or IRIX.
55684         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
55685
55686 2007-04-29  Bruno Haible  <bruno@clisp.org>
55687
55688         * MODULES.html.sh (posix_functions): Remove 'contents'.
55689
55690 2007-04-29  Karl Berry  <karl@gnu.org>
55691
55692         * config/srclist.txt (gendocs_template_min): new entry.
55693
55694 2007-04-29  Bruno Haible  <bruno@clisp.org>
55695
55696         Work around fpurge bug on BSD systems.
55697         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
55698         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
55699         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
55700         fpurge to rpl_fpurge if the system already has this function.
55701         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
55702         the case where the system already has this function. Correct invariants
55703         on BSD systems.
55704         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
55705         BSD systems.
55706
55707 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
55708
55709         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
55710         proposed by Sven Verdoolaege.
55711
55712         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
55713         options.
55714         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
55715         (usage and help tests): Update
55716
55717 2007-04-29  Bruno Haible  <bruno@clisp.org>
55718
55719         * tests/test-fflush.c (main): Use a file of size 17, not 10.
55720         Print more information in case of failure. Disable a test on BeOS.
55721
55722 2007-04-29  Bruno Haible  <bruno@clisp.org>
55723
55724         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
55725         This helps debugging on systems on which no gdb is available.
55726
55727 2007-04-29  Bruno Haible  <bruno@clisp.org>
55728
55729         * lib/freading.h: Improve comments.
55730         * lib/fwriting.h: Likewise.
55731         * tests/test-freading.c (main): Don't check freading immediately after
55732         repositioning. Needed for glibc.
55733
55734 2007-04-29  Bruno Haible  <bruno@clisp.org>
55735
55736         * lib/freading.c (freading): Trivial simplification.
55737
55738 2007-04-28  Bruno Haible  <bruno@clisp.org>
55739
55740         * tests/test-fwriting.c (main): Also test the interaction between
55741         fflush and fwriting.
55742         * modules/fwriting-tests (Depends-on): Add fflush.
55743
55744         * tests/test-freading.c (main): Also test the interaction between
55745         fflush and freading.
55746         * modules/freading-tests (Depends-on): Add fflush.
55747
55748 2007-04-28  Bruno Haible  <bruno@clisp.org>
55749
55750         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
55751         fseeko and ftello.
55752         Suggested by Eric Blake.
55753
55754 2007-04-28  Jim Meyering  <jim@meyering.net>
55755
55756         Avoid false-negative in gl_STDINT_H's C99 conformance test.
55757         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
55758         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
55759
55760 2007-04-27  Eric Blake  <ebb9@byu.net>
55761
55762         * doc/headers/assert.texi (assert.h): Document assert module use.
55763
55764 2007-04-27  Bruno Haible  <bruno@clisp.org>
55765
55766         * doc/headers/*.texi: New files.
55767         * doc/gnulib.texi (Header File Substitutes): New chapter.
55768         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
55769         dependencies.
55770         (standards.info ,standards.html, standards.dvi): Update dependencies.
55771         (mostlyclean, clean): New targets.
55772
55773 2007-04-27  Bruno Haible  <bruno@clisp.org>
55774
55775         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
55776         * modules/sysexits (Files, Makefile.am): Update.
55777
55778         * lib/sys_socket_.h: Renamed from lib/socket_.h.
55779         * modules/sys_socket (Files, Makefile.am): Update.
55780
55781         * lib/sys_stat_.h: Renamed from lib/stat_.h.
55782         * modules/sys_stat (Files, Makefile.am): Update.
55783
55784 2007-04-27  Eric Blake  <ebb9@byu.net>
55785
55786         * lib/freading.h: Improve comments.
55787         * lib/fwriting.h: Likewise.
55788         * lib/fflush.c: Likewise.
55789
55790         Fix closein for mingw.
55791         * modules/closein-tests: Add tests for closein.
55792         * tests/test-closein.c: New file.
55793         * tests/test-closein.sh: Likewise.
55794         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
55795         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
55796
55797 2007-04-27  Bruno Haible  <bruno@clisp.org>
55798
55799         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
55800         version is < 6.
55801         * lib/math_.h [__DECC]: Likewise.
55802         * lib/stdio_.h [__DECC]: Likewise.
55803         * lib/stdlib_.h [__DECC]: Likewise.
55804         * lib/string_.h [__DECC]: Likewise.
55805         * lib/time_.h [__DECC]: Likewise.
55806         * lib/wchar_.h [__DECC]: Likewise.
55807         * lib/wctype_.h [__DECC]: Likewise.
55808
55809 2007-04-27  Bruno Haible  <bruno@clisp.org>
55810
55811         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
55812
55813 2007-04-27  Bruno Haible  <bruno@clisp.org>
55814
55815         * lib/fflush.c: Add comments.
55816         * modules/fpurge-tests (Depends-on): Add fflush.
55817         * modules/freadable-tests (Depends-on): Likewise.
55818         * modules/fwritable-tests (Depends-on): Likewise.
55819
55820 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
55821
55822         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
55823         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
55824         Report by Bruno Haible <bruno@clisp.org>.
55825
55826 2007-04-26  Eric Blake  <ebb9@byu.net>
55827
55828         Fix fflush on mingw.
55829         * modules/fflush (Depends-on): Add freading.
55830         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
55831         but unread data.
55832
55833 2007-04-26  Eric Blake  <ebb9@byu.net>
55834         and Bruno Haible  <bruno@clisp.org>
55835
55836         Implement freading and fwriting.
55837         * lib/freading.c: New file.
55838         * lib/freading.h: Likewise.
55839         * m4/freading.m4: Likewise.
55840         * modules/freading: Likewise.
55841         * modules/freading-tests: Likewise.
55842         * tests/test-freading.c: Likewise.
55843         * lib/fwriting.c: New file.
55844         * lib/fwriting.h: Likewise.
55845         * m4/fwriting.m4: Likewise.
55846         * modules/fwriting: Likewise.
55847         * modules/fwriting-tests: Likewise.
55848         * tests/test-fwriting.c: Likewise.
55849         * MODULES.html.sh (File stream based Input/Output): Mention them.
55850
55851 2007-04-26  Bruno Haible  <bruno@clisp.org>
55852
55853         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
55854         'long' when we assume it.
55855         Suggested by Eric Blake.
55856
55857 2007-04-26  Bruno Haible  <bruno@clisp.org>
55858
55859         Ensure fseeko, ftello are declared on glibc systems.
55860         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
55861         * modules/fseeko (configure.ac-early): Likewise.
55862         * modules/ftello (configure.ac-early): Likewise.
55863         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
55864         AC_FUNC_FSEEKO for this.
55865         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
55866         (gl_CHECK_FSEEKO): Remove macro.
55867
55868 2007-04-26  Bruno Haible  <bruno@clisp.org>
55869
55870         * tests/test-fflush.c (main): Also check the ftell result after
55871         fflush and fseek/fseeko.
55872         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
55873         file descriptor position cache in the stream.
55874         * lib/fseeko.c (rpl_fseeko): Likewise.
55875
55876 2007-04-26  Bruno Haible  <bruno@clisp.org>
55877
55878         * modules/fflush-tests (Depends-on): Add fseeko.
55879
55880 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
55881             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55882
55883         * lib/argz_.h: ensure error_t definition is obtained in same
55884         mechanism system argz.h would have.
55885         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
55886         argz facilities are known bad.  Err on the side of caution if
55887         cross-compiling.
55888
55889 2007-04-25  Eric Blake  <ebb9@byu.net>
55890
55891         * lib/fpurge.c (includes): Use stdlib.h for free.
55892         * tests/test-fflush.c (main): Also test fflush-fseeko.
55893
55894 2007-04-25  Bruno Haible  <bruno@clisp.org>
55895
55896         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
55897         * lib/fseeko.c: New file.
55898         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
55899         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
55900         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
55901         gl_FUNC_FSEEKO.
55902         (gl_FUNC_FSEEKO): Invoke it.
55903         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
55904         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
55905         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
55906
55907 2007-04-25  Bruno Haible  <bruno@clisp.org>
55908
55909         * modules/fflush (Depends-on): Add ftello.
55910
55911 2007-04-25  Bruno Haible  <bruno@clisp.org>
55912
55913         * modules/ftello-tests: New file.
55914         * tests/test-ftello.c: New file.
55915
55916         * modules/ftello: New file.
55917         * m4/ftello.m4: New file.
55918         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
55919         HAVE_FTELLO.
55920         * lib/stdio_.h (ftello): New declaration.
55921         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
55922         HAVE_FTELLO.
55923
55924 2007-04-25  Bruno Haible  <bruno@clisp.org>
55925
55926         * modules/fseeko-tests: New file.
55927         * tests/test-fseeko.c: New file.
55928
55929         * modules/fseeko: New file.
55930         * m4/fseeko.m4: New file.
55931         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
55932         HAVE_FSEEKO.
55933         * lib/stdio_.h (fseeko): New declaration.
55934         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
55935         HAVE_FSEEKO.
55936
55937 2007-04-25  Bruno Haible  <bruno@clisp.org>
55938
55939         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
55940
55941 2007-04-25  Bruno Haible  <bruno@clisp.org>
55942
55943         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
55944         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
55945         * tests/test-unistd.c: Likewise.
55946         * tests/test-fcntl.c: Likewise.
55947
55948 2007-04-23  Eric Blake  <ebb9@byu.net>
55949
55950         * lib/fflush.c: Fix missing include.
55951         Reported by Bruno Haible.
55952
55953 2007-04-23  Bruno Haible  <bruno@clisp.org>
55954
55955         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
55956         Reported by Eric Blake.
55957
55958 2007-04-23  Bruno Haible  <bruno@clisp.org>
55959
55960         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
55961
55962 2007-04-23  Bruno Haible  <bruno@clisp.org>
55963
55964         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
55965
55966 2007-04-23  Bruno Haible  <bruno@clisp.org>
55967
55968         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
55969         Needed on HP-UX 11.
55970
55971 2007-04-16  Eric Blake  <ebb9@byu.net>
55972
55973         Make fflush rely on fpurge.
55974         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
55975         open coding all variants.
55976         * modules/fflush (Depends-on): Add fpurge and unistd.
55977         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
55978         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
55979
55980         Fix --with-tests compilation on cygwin.
55981         * modules/argmatch-tests (Makefile.am): List gnulib library first
55982         in LDADD.
55983         * modules/argp-tests (Makefile.am): Likewise.
55984         * modules/array-list-tests (Makefile.am): Likewise.
55985         * modules/array-oset-tests (Makefile.am): Likewise.
55986         * modules/avltree-list-tests (Makefile.am): Likewise.
55987         * modules/avltree-oset-tests (Makefile.am): Likewise.
55988         * modules/avltreehash-list-tests (Makefile.am): Likewise.
55989         * modules/carray-list-tests (Makefile.am): Likewise.
55990         * modules/dirname-tests (Makefile.am): Likewise.
55991         * modules/frexp-tests (Makefile.am): Likewise.
55992         * modules/isnanl-tests (Makefile.am): Likewise.
55993         * modules/linked-list-tests (Makefile.am): Likewise.
55994         * modules/linkedhash-list-tests (Makefile.am): Likewise.
55995         * modules/lock-tests (Makefile.am): Likewise.
55996         * modules/rbtree-list-tests (Makefile.am): Likewise.
55997         * modules/rbtree-oset-tests (Makefile.am): Likewise.
55998         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
55999         * modules/tls-tests (Makefile.am): Likewise.
56000         * modules/tsearch-tests (Makefile.am): Likewise.
56001         * modules/xvasprintf-tests (Makefile.am): Likewise.
56002
56003         Fix fpurge for cygwin.
56004         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
56005         value.
56006         * modules/fpurge-tests (Depends-on): Clean up trash.
56007
56008 2007-04-16  Simon Josefsson  <simon@josefsson.org>
56009
56010         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
56011
56012         * m4/autobuild.m4: Re-indent.
56013
56014 2007-04-13  Bruno Haible  <bruno@clisp.org>
56015
56016         * modules/fpurge-tests: New file.
56017         * tests/test-fpurge.c: New file.
56018
56019         * modules/fpurge: New file.
56020         * lib/fpurge.h: New file.
56021         * lib/fpurge.c: New file.
56022         * m4/fpurge.m4: New file.
56023
56024 2007-04-13  Bruno Haible  <bruno@clisp.org>
56025
56026         * modules/fbufmode-tests: New file.
56027         * tests/test-fbufmode.c: New file.
56028
56029         * modules/fbufmode: New file.
56030         * lib/fbufmode.h: New file.
56031         * lib/fbufmode.c: New file.
56032         * m4/fbufmode.m4: New file.
56033
56034 2007-04-13  Bruno Haible  <bruno@clisp.org>
56035
56036         * modules/fwritable-tests: New file.
56037         * tests/test-fwritable.c: New file.
56038
56039         * modules/fwritable: New file.
56040         * lib/fwritable.h: New file.
56041         * lib/fwritable.c: New file.
56042         * m4/fwritable.m4: New file.
56043
56044 2007-04-13  Bruno Haible  <bruno@clisp.org>
56045
56046         * modules/freadable-tests: New file.
56047         * tests/test-freadable.c: New file.
56048
56049         * modules/freadable: New file.
56050         * lib/freadable.h: New file.
56051         * lib/freadable.c: New file.
56052         * m4/freadable.m4: New file.
56053
56054 2007-04-13  Bruno Haible  <bruno@clisp.org>
56055
56056         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
56057         MOSTLYCLEANFILES.
56058
56059 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
56060
56061         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
56062         gzip bootstrap.conf to avoid dragging in i18n machinery.
56063         (gnulib_tool_option): Use it.
56064
56065 2007-04-13  Bruno Haible  <bruno@clisp.org>
56066
56067         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
56068         %F directives.
56069         * tests/test-vasprintf-posix.c (test_function): Likewise.
56070         * tests/test-snprintf-posix.h (test_function): Likewise.
56071         * tests/test-sprintf-posix.h (test_function): Likewise.
56072         * tests/test-fprintf-posix.h (test_function): Likewise.
56073         * tests/test-printf-posix.h (test_function): Likewise.
56074         * tests/test-fprintf-posix.out: Likewise.
56075
56076 2007-04-13  Bruno Haible  <bruno@clisp.org>
56077
56078         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
56079         * modules/tls-tests (configure.ac): Likewise.
56080         Reported by Arto C. Nirkko <anirkko@insel.ch>.
56081
56082 2007-04-13  Bruno Haible  <bruno@clisp.org>
56083
56084         * lib/tls.c (glthread_tls_get): Fix return type.
56085         Patch by Arto C. Nirkko <anirkko@insel.ch>.
56086
56087 2007-04-12  Eric Blake  <ebb9@byu.net>
56088
56089         * modules/gettime (Depends-on): Remove gettime.
56090         Reported by Dmitry V. Levin.
56091
56092 2007-04-12  Bruno Haible  <bruno@clisp.org>
56093
56094         * modules/fflush (Include): Mention <stdio.h>.
56095         * modules/strtoimax (Include): Mention <inttypes.h>.
56096         * modules/strtoumax (Include): Likewise.
56097
56098 2007-04-12  Eric Blake  <ebb9@byu.net>
56099
56100         * .cvsignore: New file.
56101         * .gitignore: Likewise.
56102
56103 2007-04-12  Bruno Haible  <bruno@clisp.org>
56104
56105         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
56106         not before, since $(LDADD) often contains libgnu.a.
56107         * modules/striconv-tests (test_striconv_LDADD): Likewise.
56108         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
56109         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
56110         Needed on Cygwin.
56111
56112 2007-04-12  Eric Blake  <ebb9@byu.net>
56113
56114         Work around glibc's failure to flush stdin on fclose.
56115         * lib/closein.c (close_stdin): Flush stdin before closing.
56116
56117         Work around glibc's failure to reset seekable stdin on exit.
56118         * modules/closein: New module.
56119         * lib/closein.c: New file.
56120         * lib/closein.h: Likewise.
56121         * m4/closein.m4: Likewise.
56122         * MODULES.html.sh (File stream based Input/Output): Document it.
56123
56124 2007-04-12  Simon Josefsson  <simon@josefsson.org>
56125
56126         * gnulib-tool: Rename generated 'autobuild' script to
56127         'do-autobuild' in --create-megatestdir output.
56128
56129         * doc/gnulib.texi (Build robot for gnulib): Fix.
56130
56131 2007-04-12  Simon Josefsson  <simon@josefsson.org>
56132
56133         * modules/sysexits (Depends-on): Add absolute-header.
56134
56135 2007-04-12  Eric Blake  <ebb9@byu.net>
56136
56137         No need to preserve errno on success.
56138         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
56139         Reported by Bruno Haible.
56140
56141 2007-04-12  Simon Josefsson  <simon@josefsson.org>
56142
56143         * MODULES.html.sh (Support for maintaining and releasing
56144         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
56145
56146 2007-04-12  Simon Josefsson  <simon@josefsson.org>
56147
56148         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
56149
56150 2007-04-12  Simon Josefsson  <simon@josefsson.org>
56151
56152         * modules/autobuild: New module.
56153
56154         * m4/autobuild.m4: New file.
56155
56156 2007-04-11  Bruno Haible  <bruno@clisp.org>
56157
56158         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
56159         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
56160         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
56161         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
56162         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
56163         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
56164         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
56165         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
56166         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
56167         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
56168         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
56169         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
56170         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
56171         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
56172         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
56173         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
56174         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
56175         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
56176         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
56177         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
56178         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
56179         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
56180         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
56181         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
56182         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
56183         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
56184         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
56185         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
56186         Reported by Eric Blake.
56187
56188 2007-04-11  Bruno Haible  <bruno@clisp.org>
56189
56190         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
56191
56192 2007-04-10  Bruno Haible  <bruno@clisp.org>
56193
56194         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
56195         for NaN and Infinity. Needed on FreeBSD 6.1.
56196         * tests/test-vasnprintf-posix.c (test_function): Undo last change
56197         regarding results for "%010a" of Infinity and NaN.
56198         * tests/test-vasprintf-posix.c (test_function): Likewise.
56199         * tests/test-snprintf-posix.h (test_function): Likewise.
56200         * tests/test-sprintf-posix.h (test_function): Likewise.
56201         * tests/test-fprintf-posix.h (test_function): Likewise.
56202         * tests/test-printf-posix.h (test_function): Likewise.
56203         * tests/test-fprintf-posix.out: Likewise.
56204
56205 2007-04-10  Bruno Haible  <bruno@clisp.org>
56206
56207         * modules/locale-tests: New file.
56208         * tests/test-locale.c: New file.
56209
56210         * modules/locale: New file.
56211         * lib/locale_.h: New file.
56212         * m4/locale_h.m4: New file.
56213
56214 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
56215             Bruno Haible  <bruno@clisp.org>
56216
56217         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
56218         be determined, test for availability of the copysignf, copysign,
56219         copysignl functions.
56220         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
56221         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
56222         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
56223
56224 2007-04-09  Eric Blake  <ebb9@byu.net>
56225
56226         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
56227         * modules/stdio (Makefile.am): Support fflush.
56228         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
56229         * modules/fflush: New file.
56230         * lib/fflush.c: Likewise.
56231         * m4/fflush.m4: Likewise.
56232         * modules/fflush-tests: New test.
56233         * tests/test-fflush.c: Likewise.
56234         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
56235
56236 2007-04-06  Bruno Haible  <bruno@clisp.org>
56237
56238         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
56239         (VASNPRINTF): Use signbit for faster determination whether to print a
56240         minus sign.
56241         * modules/vasnprintf (Files): Remove lib/float+.h.
56242         * modules/fprintf-posix (Depends-on): Add signbit.
56243         * modules/snprintf-posix (Depends-on): Likewise.
56244         * modules/sprintf-posix (Depends-on): Likewise.
56245         * modules/vasnprintf-posix (Depends-on): Likewise.
56246         * modules/vasprintf-posix (Depends-on): Likewise.
56247         * modules/vfprintf-posix (Depends-on): Likewise.
56248         * modules/vsnprintf-posix (Depends-on): Likewise.
56249         * modules/vsprintf-posix (Depends-on): Likewise.
56250
56251 2007-04-06  Bruno Haible  <bruno@clisp.org>
56252
56253         * tests/test-frexp.c (main): Test also the sign bit of zero results.
56254         * tests/test-frexpl.c (main): Likewise.
56255         * tests/test-ldexpl.c (main): Likewise.
56256         * modules/frexp-tests (Depends-on): Add signbit.
56257         * modules/frexpl-tests (Depdends-on): Likewise.
56258         * modules/ldexpl-tests (Depdends-on): Likewise.
56259
56260 2007-04-06  Bruno Haible  <bruno@clisp.org>
56261
56262         * modules/signbit-tests: New file.
56263         * tests/test-signbit.c: New file.
56264
56265         * modules/signbit: New file.
56266         * lib/signbitf.c: New file.
56267         * lib/signbitd.c: New file.
56268         * lib/signbitl.c: New file.
56269         * m4/signbit.m4: New file.
56270         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
56271         (signbit): New macro.
56272         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
56273         REPLACE_SIGNBIT.
56274         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
56275         REPLACE_FREXPL into math.h.
56276
56277 2007-04-06  Bruno Haible  <bruno@clisp.org>
56278
56279         * modules/isnanf-nolibm-tests: New file.
56280         * tests/test-isnanf.c: New file.
56281
56282         * modules/isnanf-nolibm: New file.
56283         * lib/isnanf.h: New file.
56284         * lib/isnanf.c: New file.
56285         * lib/isnan.c: Consider the USE_FLOAT macro.
56286         * m4/isnanf.m4: New file.
56287
56288 2007-04-06  Bruno Haible  <bruno@clisp.org>
56289
56290         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
56291         (Link): New section.
56292
56293         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
56294
56295 2007-04-06  Bruno Haible  <bruno@clisp.org>
56296
56297         Assume the 'long double' type.
56298         * m4/longdouble.m4: Remove file.
56299         * config/srclist.txt: Don't mention longdouble.m4.
56300         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
56301         * lib/float+.h: Likewise.
56302         * lib/frexp.c: Likewise.
56303         * lib/printf-args.h: Likewise.
56304         * lib/printf-args.c: Likewise.
56305         * lib/printf-frexp.c: Likewise.
56306         * lib/printf-parse.c: Likewise.
56307         * lib/vasnprintf.c: Likewise.
56308         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
56309         * m4/intl.m4: Likewise.
56310         * m4/isnanl.m4: Likewise.
56311         * m4/printf.m4: Likewise.
56312         * m4/printf-frexpl.m4: Likewise.
56313         * m4/vasnprintf.m4: Likewise.
56314         * modules/allocsa (Files): Remove m4/longdouble.m4.
56315         * modules/gettext (Files): Likewise.
56316         * modules/relocatable-prog-wrapper (Files): Likewise.
56317         * modules/vasnprintf (Files): Likewise.
56318         * modules/isnanl (Files): Likewise.
56319         (Include): Simplify.
56320         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
56321         (Include): Simplify.
56322         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
56323         (Include): Simplify.
56324         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
56325         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
56326         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
56327         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
56328         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
56329         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
56330         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
56331         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
56332         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
56333         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
56334         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
56335         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
56336         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
56337         * tests/test-isnanl.c: Likewise.
56338         * tests/test-snprintf-posix.h: Likewise.
56339         * tests/test-sprintf-posix.h: Likewise.
56340         * tests/test-vasnprintf-posix.c: Likewise.
56341         * tests/test-vasnprintf-posix2.c: Likewise.
56342         * tests/test-vasprintf-posix.c: Likewise.
56343
56344 2007-04-06  Bruno Haible  <bruno@clisp.org>
56345
56346         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
56347         * lib/math_.h [__DECC]: Include the overridden include file through
56348         #include_next, outside the double-inclusion guard.
56349         * lib/stdio_.h [__DECC]: Likewise.
56350         * lib/stdlib_.h [__DECC]: Likewise.
56351         * lib/string_.h [__DECC]: Likewise.
56352         * lib/time_.h [__DECC]: Likewise.
56353         * lib/wchar_.h [__DECC]: Likewise.
56354         * lib/wctype_.h [__DECC]: Likewise.
56355         * lib/inttypes_.h [__DECC]: Likewise.
56356         Reported by Albert Chin <china@thewrittenword.com> in
56357         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
56358
56359 2007-04-04  Eric Blake  <ebb9@byu.net>
56360
56361         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
56362         1.5.x.
56363
56364 2007-04-04  Bruno Haible  <bruno@clisp.org>
56365
56366         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
56367         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
56368
56369 2007-04-04  Bruno Haible  <bruno@clisp.org>
56370
56371         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
56372         results for "%010a" of Infinity and NaN.
56373         * tests/test-vasprintf-posix.c (test_function): Likewise.
56374         * tests/test-snprintf-posix.h (test_function): Likewise.
56375         * tests/test-sprintf-posix.h (test_function): Likewise.
56376         * tests/test-fprintf-posix.h (test_function): Remove these tests.
56377         * tests/test-printf-posix.h (test_function): Likewise.
56378         * tests/test-fprintf-posix.out: Update.
56379         Needed for FreeBSD 6.1.
56380
56381 2007-04-04  Bruno Haible  <bruno@clisp.org>
56382
56383         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
56384         directly used by the gnulib modules nor by gnulib-tool.
56385
56386 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
56387
56388         * DEPENDENCIES: Give overall description of version dependency
56389         desirability.  Use more-typical names for apps.
56390         Add shell, coreutils, diffutils, grep, tar, gzip.
56391
56392 2007-04-04  Simon Josefsson  <simon@josefsson.org>
56393
56394         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
56395
56396 2007-04-04  Karl Berry  <karl@gnu.org>
56397
56398         * MODULES.html.sh (func_module): missing '.
56399
56400 2007-04-03  Bruno Haible  <bruno@clisp.org>
56401
56402         * modules/argmatch-tests (Makefile.am): New variable
56403         test_argmatch_LDADD.
56404         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
56405         * modules/array-list-tests (Makefile.am): New variable
56406         test_array_list_LDADD.
56407         * modules/array-oset-tests (Makefile.am): New variable
56408         test_array_oset_LDADD.
56409         * modules/avltree-list-tests (Makefile.am): New variable
56410         test_avltree_list_LDADD.
56411         * modules/avltree-oset-tests (Makefile.am): New variable
56412         test_avltree_oset_LDADD.
56413         * modules/avltreehash-list-tests (Makefile.am): New variable
56414         test_avltreehash_list_LDADD.
56415         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
56416         test_canonicalize_lgpl_LDADD.
56417         * modules/carray-list-tests (Makefile.am): New variable
56418         test_carray_list_LDADD.
56419         * modules/dirname-tests (Makefile.am): New variable
56420         test_dirname_LDADD.
56421         * modules/linked-list-tests (Makefile.am): New variable
56422         test_linked_list_LDADD.
56423         * modules/linkedhash-list-tests (Makefile.am): New variable
56424         test_linkedhash_list_LDADD.
56425         * modules/rbtree-list-tests (Makefile.am): New variable
56426         test_rbtree_list_LDADD.
56427         * modules/rbtree-oset-tests (Makefile.am): New variable
56428         test_rbtree_oset_LDADD.
56429         * modules/rbtreehash-list-tests (Makefile.am): New variable
56430         test_rbtreehash_list_LDADD.
56431         * modules/xvasprintf-tests (Makefile.am): New variable
56432         test_xvasprintf_LDADD.
56433         Reported by Eric Blake.
56434
56435 2007-04-03  Eric Blake  <ebb9@byu.net>
56436
56437         * DEPENDENCIES: Weaken m4 requirements.
56438
56439 2007-04-03  Bruno Haible  <bruno@clisp.org>
56440
56441         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
56442         * modules/isnanl-tests (configure.ac): Likewise.
56443
56444 2007-04-03  Ben Pfaff  <blp@gnu.org>
56445
56446         * modules/iconv_open: Add $(srcdir)/ to source directory
56447         references in Makefile fragments that call gperf, to fix VPATH
56448         builds.
56449
56450 2007-04-03  Bruno Haible  <bruno@clisp.org>
56451
56452         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
56453         * lib/ldexpl.c: Undo last change.
56454
56455 2007-04-03  Bruno Haible  <bruno@clisp.org>
56456
56457         * modules/printf-frexpl (Depends-on): Undo last change.
56458         (Files): Add m4/ldexpl.m4.
56459
56460 2007-04-03  Bruno Haible  <bruno@clisp.org>
56461
56462         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
56463         * modules/isnanl (Link): New section.
56464
56465         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
56466         * modules/frexp (Link): New section.
56467
56468         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
56469         * modules/frexpl (Link): New section.
56470
56471         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
56472         * modules/ldexpl (Link): New section.
56473
56474 2007-04-03  Bruno Haible  <bruno@clisp.org>
56475
56476         * modules/TEMPLATE-EXTENDED: New file.
56477         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
56478
56479 2007-04-03  Bruno Haible  <bruno@clisp.org>
56480
56481         * DEPENDENCIES: New file.
56482         Suggested by Simon Josefsson.
56483
56484 2007-04-03  Bruno Haible  <bruno@clisp.org>
56485
56486         * doc/gnulib.texi: Escape @.
56487
56488 2007-04-03  James Youngman  <jay@gnu.org>
56489         and Paul Eggert  <eggert@cs.ucla.edu>
56490
56491         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
56492         birthtime on all systems that have birthtime, not just those which
56493         use st_birthtimensec rather than st_birthtim.  Putting zero in
56494         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
56495         that the birth time is not available for files on an NFS mount.
56496
56497 2007-04-03  Simon Josefsson  <simon@josefsson.org>
56498
56499         * modules/memxor: Move back from crypto/, suggested by Bruno.
56500         * modules/crypto/hmac-sha1: Fix memxor dependency.
56501
56502         * modules/crypto/gc: Moved from ../.
56503
56504 2007-04-02  Eric Blake  <ebb9@byu.net>
56505
56506         * lib/ldexpl.c (includes): Avoid libm.
56507
56508         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
56509
56510 2007-04-02  Bruno Haible  <bruno@clisp.org>
56511
56512         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
56513         on IRIX.
56514
56515 2007-04-02  Bruno Haible  <bruno@clisp.org>
56516
56517         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
56518         x86 or x86_64 platforms running MacOS X.
56519         Reported by Ryan Schmidt <@ryandesign.com>.
56520
56521 2007-04-02  Bruno Haible  <bruno@clisp.org>
56522
56523         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
56524         i386.
56525
56526 2007-04-01  Simon Josefsson  <simon@josefsson.org>
56527
56528         * modules/crypto/arcfour: Moved from ../.
56529         * modules/crypto/arcfour-tests: Moved from ../.
56530         * modules/crypto/arctwo: Moved from ../.
56531         * modules/crypto/arctwo-tests: Moved from ../.
56532         * modules/crypto/des: Moved from ../.
56533         * modules/crypto/des-tests: Moved from ../.
56534         * modules/crypto/gc-arcfour: Moved from ../.
56535         * modules/crypto/gc-arcfour-tests: Moved from ../.
56536         * modules/crypto/gc-arctwo: Moved from ../.
56537         * modules/crypto/gc-arctwo-tests: Moved from ../.
56538         * modules/crypto/gc-des: Moved from ../.
56539         * modules/crypto/gc-des-tests: Moved from ../.
56540         * modules/crypto/gc-hmac-md5: Moved from ../.
56541         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
56542         * modules/crypto/gc-hmac-sha1: Moved from ../.
56543         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
56544         * modules/crypto/gc-md2: Moved from ../.
56545         * modules/crypto/gc-md2-tests: Moved from ../.
56546         * modules/crypto/gc-md4: Moved from ../.
56547         * modules/crypto/gc-md4-tests: Moved from ../.
56548         * modules/crypto/gc-md5: Moved from ../.
56549         * modules/crypto/gc-md5-tests: Moved from ../.
56550         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
56551         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
56552         * modules/crypto/gc-random: Moved from ../.
56553         * modules/crypto/gc-rijndael: Moved from ../.
56554         * modules/crypto/gc-rijndael-tests: Moved from ../.
56555         * modules/crypto/gc-sha1: Moved from ../.
56556         * modules/crypto/gc-sha1-tests: Moved from ../.
56557         * modules/crypto/gc-tests: Moved from ../.
56558         * modules/crypto/hmac-md5: Moved from ../.
56559         * modules/crypto/hmac-md5-tests: Moved from ../.
56560         * modules/crypto/hmac-sha1: Moved from ../.
56561         * modules/crypto/hmac-sha1-tests: Moved from ../.
56562         * modules/crypto/md2: Moved from ../.
56563         * modules/crypto/md2-tests: Moved from ../.
56564         * modules/crypto/md4: Moved from ../.
56565         * modules/crypto/md4-tests: Moved from ../.
56566         * modules/crypto/md5: Moved from ../.
56567         * modules/crypto/md5-tests: Moved from ../.
56568         * modules/crypto/memxor: Moved from ../.
56569         * modules/crypto/rijndael: Moved from ../.
56570         * modules/crypto/rijndael-tests: Moved from ../.
56571         * modules/crypto/sha1: Moved from ../.
56572
56573 2007-03-30  James Youngman  <jay@gnu.org>
56574
56575         * tests/test-stat-time.c (prepare_test): use chmod() rather than
56576         rename() to change the ctime of a file (because ctime is unaffected
56577         by rename on jfs2 on AIX 5.1).
56578         (main): Start by doing cleanup, in case a previous run failed leaving
56579         test files behind.
56580
56581 2007-03-31  Bruno Haible  <bruno@clisp.org>
56582
56583         Support old proprietary implementations of iconv.
56584         * modules/iconv_open: New file.
56585         * lib/iconv_.h: New file.
56586         * m4/iconv_h.m4: New file.
56587         * lib/iconv_open.c: New file.
56588         * lib/iconv_open-aix.gperf: New file.
56589         * lib/iconv_open-hpux.gperf: New file.
56590         * lib/iconv_open-irix.gperf: New file.
56591         * lib/iconv_open-osf.gperf: New file.
56592         * m4/iconv_open.m4: New file.
56593         * modules/linebreak (Depends-on): Add iconv_open.
56594         * modules/striconv (Depends-on): Likewise.
56595         * modules/striconveh (Depends-on): Likewise.
56596         * modules/unicodeio (Depends-on): Likewise.
56597         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
56598         (iconv_t)(-1).
56599         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
56600         conversion if cd is (iconv_t)(-1).
56601         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
56602         is not possible.
56603
56604 2007-03-31  Bruno Haible  <bruno@clisp.org>
56605
56606         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
56607         work on Solaris either. Protect also second use of "autodetect_jp".
56608
56609 2007-03-31  Bruno Haible  <bruno@clisp.org>
56610
56611         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
56612         the function is not present.
56613
56614 2007-03-31  Bruno Haible  <bruno@clisp.org>
56615
56616         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
56617         the function is not present.
56618
56619 2007-03-31  Bruno Haible  <bruno@clisp.org>
56620
56621         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
56622         a bug in HP-UX iconv_open().
56623
56624 2007-03-31  Bruno Haible  <bruno@clisp.org>
56625
56626         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
56627         (Mathematics <math.h>): New section, add fpieee.
56628         (Input/output <stdio.h>): Add fseterr.
56629         (Mathematics <math.h>): New section, add printf-frexp.
56630         (Container data structures): Add sublist.
56631         (Core language properties): Add fpucw, inline.
56632         (Functions for greatest-width integer types <inttypes.h>): Add
56633         imaxabs, imaxdiv, inttypes.
56634         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
56635         isnanl-nolibm, ldexp.
56636         (Mathematics <math.h>): New section, add printf-frexpl.
56637         (Support for systems lacking POSIX:2001): Add fprintf-posix,
56638         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
56639         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
56640         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
56641         (Unicode string functions): Add unistr/u*-mbtoucr.
56642         (Java): Add javacomp-script, javaexec-script.
56643         (C#): Add csharpcomp-script, csharpexec-script.
56644         (Support for building libraries and executables): Add havelib,
56645         relocatable-*.
56646         (Support for maintaining and releasing projects): Renamed from
56647         'Support for maintaining and release projects'. Add announce-gen.
56648
56649 2007-03-31  Bruno Haible  <bruno@clisp.org>
56650
56651         * README: Talk primarily about git.
56652         (git and CVS): Renamed from CVS.
56653         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
56654         gnulib is available through git.
56655         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
56656
56657 2007-03-30  Bruno Haible  <bruno@clisp.org>
56658
56659         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
56660         * lib/poll_.h: Likewise.
56661         * lib/stat_.h: Likewise.
56662         * lib/sys_time_.h: Likewise.
56663         * lib/sysexit_.h: Likewise.
56664         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
56665         * lib/stdbool_.h: Likewise.
56666         * lib/byteswap_.h: Add double-inclusion guard.
56667
56668 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
56669
56670         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
56671
56672 2007-03-30  Karl Berry  <karl@gnu.org>
56673
56674         * config/srclist-update: double space after USA in the license
56675         substitution, since that's how it's usually (?) written.
56676
56677 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
56678
56679         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
56680         reported by Bruno Haible.
56681
56682 2007-03-29  Bruno Haible  <bruno@clisp.org>
56683
56684         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
56685         a bug in AIX iconv().
56686
56687 2007-03-29  Bruno Haible  <bruno@clisp.org>
56688
56689         * modules/ldexpl-tests: New file.
56690         * tests/test-ldexpl.c: New file.
56691
56692 2007-03-29  Bruno Haible  <bruno@clisp.org>
56693
56694         * lib/ldexpl.c: Include fpucw.h.
56695         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
56696         multiplication.
56697         * modules/ldexpl (Depends-on): Add fpucw.
56698
56699 2007-03-29  Bruno Haible  <bruno@clisp.org>
56700
56701         * modules/ldexpl: New file.
56702         * m4/ldexpl.m4: New file.
56703         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
56704         set.
56705         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
56706         REPLACE_LDEXPL.
56707         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
56708         REPLACE_LDEXPL.
56709         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
56710         gl_FUNC_LDEXPL_WORKS.
56711         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
56712         * modules/mathl (Files): Remove lib/ldexpl.c.
56713         (Depends-on): Add ldexpl.
56714
56715 2007-03-29  Bruno Haible  <bruno@clisp.org>
56716
56717         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
56718
56719 2007-03-29  Bruno Haible  <bruno@clisp.org>
56720
56721         * tests/test-striconveh.c (main): Don't assume that a direct conversion
56722         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
56723         and possibly also HP-UX.
56724         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
56725         work on AIX, IRIX, HP-UX, OSF/1.
56726         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
56727         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
56728         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
56729         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
56730         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
56731         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
56732
56733 2007-03-29  Bruno Haible  <bruno@clisp.org>
56734
56735         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
56736
56737 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
56738
56739         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
56740         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
56741
56742 2007-03-29  Eric Blake  <ebb9@byu.net>
56743
56744         * lib/acl-internal.h: Remove redundant include.
56745         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
56746         Cygwin when a file is locked.
56747
56748 2007-03-29  Bruno Haible  <bruno@clisp.org>
56749
56750         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
56751         file.
56752         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
56753
56754 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
56755
56756         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
56757         try to remove a parent directory if the child couldn't be removed
56758         (except for the first rmdir, which could fail because the child
56759         doesn't exist).  Problem reported by Jeff Blaine in
56760         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
56761
56762 2007-03-28  Bruno Haible  <bruno@clisp.org>
56763
56764         * lib/striconveh.c (utf8conv_carefully): New function.
56765         (mem_cd_iconveh_internal): Invoke it.
56766
56767 2007-03-28  Bruno Haible  <bruno@clisp.org>
56768
56769         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
56770         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
56771         input.
56772         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
56773         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
56774         unistr/u8-uctomb.
56775
56776 2007-03-28  Bruno Haible  <bruno@clisp.org>
56777
56778         * modules/unistr/u8-mbtoucr: New file.
56779         * lib/unistr/u8-mbtoucr.c: New file.
56780         * modules/unistr/u16-mbtoucr: New file.
56781         * lib/unistr/u16-mbtoucr.c: New file.
56782         * modules/unistr/u16-mbtoucr: New file.
56783         * lib/unistr/u16-mbtoucr.c: New file.
56784         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
56785
56786 2007-03-27  Simon Josefsson  <simon@josefsson.org>
56787             Bruno Haible  <bruno@clisp.org>
56788
56789         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
56790         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
56791         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
56792
56793         * m4/stdio_h.m4: Add stubs for vasprintf too.
56794
56795         * modules/stdio: Support vasprintf in sed command.
56796
56797         * modules/vasprintf: Depend on stdio for prototypes.  Remove
56798         vasprintf.h.  Add stdio module indicator.
56799
56800         * lib/stdio_.h: Declare asprintf and vasprintf, based on
56801         vasprintf.h.
56802
56803         * lib/vasprintf.h: File removed.
56804
56805         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
56806         * lib/vasprintf.c: Ditto.
56807         * lib/xvasprintf.c: Ditto.
56808         * tests/test-vasprintf-posix.c: Ditto.
56809         * tests/test-vasprintf.c: Ditto.
56810
56811 2007-03-27  Bruno Haible  <bruno@clisp.org>
56812
56813         Make vasnprintf multithread-safe.
56814         * lib/vasnprintf.c (decimal_point_char): New function.
56815         (VASNPRINTF): Use it.
56816         Suggested by Simon Josefsson.
56817
56818 2007-03-27  Eric Blake  <ebb9@byu.net>
56819
56820         Support sub-second birthtime on cygwin.
56821         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
56822         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
56823         (get_stat_birthtime): Also work with st_birthtim.
56824
56825 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
56826
56827         * lib/stat-time.h (USE_BIRTHTIME): Remove.
56828         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
56829         (get_stat_birthtime_ns): Do not try to use "spare" fields.
56830         (get_stat_birthtime_ns): Simplify compile-time tests.
56831         (get_stat_birthtime): Change the API to look like
56832         get_stat_mtime etc., except return a negative tv_nsec on error.
56833         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
56834         Don't check for "spare" fields.
56835         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
56836         or for struct stat.st_birthtime, as these tests aren't used.
56837         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
56838
56839 2007-03-27  Bruno Haible  <bruno@clisp.org>
56840
56841         * lib/stat-time.h: Include <sys/stat.h>.
56842
56843 2007-03-27  James Youngman  <jay@gnu.org>
56844
56845         * lib/stat-time.h (get_stat_birthtime): New function for
56846           retrieving st_birthtime as provided by UFS2 (hence *BSD).
56847         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
56848           and its variants.
56849         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
56850         * modules/stat-time-test: New file.
56851         * tests/test-stat-time.c: New test, devised by Bruno Haible.
56852
56853 2007-03-26  Bruno Haible  <bruno@clisp.org>
56854
56855         Better support of signalling NaNs.
56856         * lib/atanl.c: Include isnanl.h.
56857         (atanl): Perform test for NaN at the beginning of the function and
56858         through a call to isnanl.
56859         * lib/cosl.c: Include isnanl.h.
56860         (cosl): Perform test for NaN at the beginning of the function and
56861         through a call to isnanl.
56862         * lib/ldexpl.c: Include isnanl.h.
56863         (ldexpl): Perform test for NaN through a call to isnanl.
56864         * lib/logl.c: Include isnanl.h.
56865         (logl): Perform test for NaN at the beginning of the function and
56866         through a call to isnanl.
56867         * lib/sinl.c: Include isnanl.h.
56868         (sinl): Perform test for NaN at the beginning of the function and
56869         through a call to isnanl.
56870         * lib/sqrtl.c: Include isnanl.h.
56871         (sqrtl): Perform test for NaN at the beginning of the function and
56872         through a call to isnanl.
56873         * lib/tanl.c: Include isnanl.h.
56874         (tanl): Perform test for NaN at the beginning of the function and
56875         through a call to isnanl.
56876         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
56877         * modules/mathl (Depends-on): Add isnanl.
56878
56879 2007-03-26  Eric Blake  <ebb9@byu.net>
56880
56881         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
56882         regression in logic sense of previous patch.
56883
56884 2007-03-26  Bruno Haible  <bruno@clisp.org>
56885
56886         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
56887         unportable shell command "if ! ...".
56888         Reported by Ralf Wildenhues.
56889
56890 2007-03-25  Bruno Haible  <bruno@clisp.org>
56891
56892         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
56893         <sysexits.h> file, and only add EX_CONFIG.
56894         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
56895         absolute file name and whether it is sufficient. Substitute also
56896         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
56897         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
56898         ABSOLUTE_SYSEXITS_H into sysexits.h.
56899
56900 2007-03-25  Bruno Haible  <bruno@clisp.org>
56901
56902         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
56903         hints is NULL.
56904
56905 2007-03-25  Bruno Haible  <bruno@clisp.org>
56906
56907         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
56908         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
56909
56910 2007-03-25  Bruno Haible  <bruno@clisp.org>
56911
56912         * lib/vasnprintf.c: Include langinfo.h.
56913         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
56914         multithread-safe.
56915         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
56916         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
56917         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
56918         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
56919         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
56920         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
56921         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
56922         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
56923         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
56924         Reported by Simon Josefsson.
56925
56926 2007-03-25  Bruno Haible  <bruno@clisp.org>
56927
56928         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
56929         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
56930         * modules/vasnprintf (Depends-on): Add stdint.
56931
56932 2007-03-25  Bruno Haible  <bruno@clisp.org>
56933
56934         * modules/fpieee: New file.
56935         * m4/fpieee.m4: New file.
56936         * modules/isnan-nolibm (Depends-on): Add fpieee.
56937         * modules/isnanl-nolibm (Depends-on): Add fpieee.
56938         * modules/isnanl (Depends-on): Add fpieee.
56939
56940 2007-03-25  Bruno Haible  <bruno@clisp.org>
56941
56942         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
56943
56944 2007-03-25  Bruno Haible  <bruno@clisp.org>
56945
56946         Avoid test failures on IRIX 6.5.
56947         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
56948         (main): Use it.
56949         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
56950         macros.
56951         (main): Use them.
56952
56953 2007-03-25  Bruno Haible  <bruno@clisp.org>
56954
56955         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
56956         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
56957         exists but doesn't work.
56958         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
56959         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
56960         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
56961         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
56962         math.h.
56963
56964 2007-03-25  Bruno Haible  <bruno@clisp.org>
56965
56966         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
56967         returns inf. Needed on IRIX 6.5.
56968
56969 2007-03-25  Bruno Haible  <bruno@clisp.org>
56970
56971         * tests/test-frexpl.c: Include isnanl-nolibm.h.
56972         (main): Use isnanl instead of x != x idiom.
56973         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
56974
56975         * tests/test-frexp.c: Include isnan.h.
56976         (main): Use isnan instead of x != x idiom.
56977         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
56978
56979 2007-03-25  Bruno Haible  <bruno@clisp.org>
56980
56981         * tests/test-frexp.c (NaN): New function/macro.
56982         (main): Use it instead of 0.0 / 0.0.
56983         * tests/test-isnan.c (NaN): New function/macro.
56984         (main): Use it instead of 0.0 / 0.0.
56985         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
56986         (test_function): Use it instead of 0.0 / 0.0.
56987         * tests/test-vasprintf-posix.c (NaN): New function/macro.
56988         (test_function): Use it instead of 0.0 / 0.0.
56989         * tests/test-snprintf-posix.h (NaN): New function/macro.
56990         (test_function): Use it instead of 0.0 / 0.0.
56991         * tests/test-sprintf-posix.h (NaN): New function/macro.
56992         (test_function): Use it instead of 0.0 / 0.0.
56993         * tests/test-fprintf-posix.h (NaN): New function/macro.
56994         (test_function): Use it instead of 0.0 / 0.0.
56995         * tests/test-printf-posix.h (NaN): New function/macro.
56996         (test_function): Use it instead of 0.0 / 0.0.
56997
56998         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
56999
57000 2007-03-25  Bruno Haible  <bruno@clisp.org>
57001
57002         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
57003
57004 2007-03-25  Bruno Haible  <bruno@clisp.org>
57005
57006         * lib/regexec.c (merge_state_with_log): Make static.
57007
57008 2007-03-25  Bruno Haible  <bruno@clisp.org>
57009
57010         * lib/trigl.c (kernel_rem_pio2): Make static.
57011
57012 2007-03-25  Bruno Haible  <bruno@clisp.org>
57013
57014         * lib/sincosl.c (sincosl_table): Make static.
57015
57016 2007-03-25  Bruno Haible  <bruno@clisp.org>
57017
57018         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
57019         if the compiler does not support C99.
57020
57021 2007-03-25  Bruno Haible  <bruno@clisp.org>
57022
57023         * modules/time (Makefile.am): Ensure all rule action lines start with a
57024         tab.
57025
57026 2007-03-24  Bruno Haible  <bruno@clisp.org>
57027
57028         * modules/tsearch-tests: New file.
57029         * tests/test-tsearch.sh: New file.
57030         * tests/test-tsearch.c: New file, mostly copied from glibc.
57031
57032         * modules/search-tests: New file.
57033         * tests/test-search.c: New file.
57034
57035         * modules/search: New file.
57036         * lib/search_.h: New file, incorporating lib/tsearch.h.
57037         * m4/search_h.m4: New file.
57038         * lib/tsearch.h: Remove file.
57039         * lib/tsearch.c: Include search.h instead of tsearch.h.
57040         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
57041         HAVE_TSEARCH.
57042         * modules/tsearch (Files): Remove lib/tsearch.h.
57043         (Depends-on): Add search.
57044         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
57045         (Include): Change tsearch.h into search.h.
57046
57047 2007-03-24  Bruno Haible  <bruno@clisp.org>
57048
57049         * modules/fpucw: New file.
57050         * lib/fpucw.h: New file.
57051         * lib/frexp.c: Include fpucw.h.
57052         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
57053         (FUNC): Use them.
57054         * lib/printf-frexp.c: Include fpucw.h.
57055         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
57056         (FUNC): Use them.
57057         * lib/vasnprintf.c: Include fpucw.h.
57058         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
57059         'long double' calculations.
57060         * tests/test-frexpl.c: Include fpucw.h.
57061         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
57062         * tests/test-printf-frexpl.c: Include fpucw.h.
57063         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
57064         * modules/frexpl (Depends-on): Add fpucw.
57065         * modules/printf-frexpl (Depends-on): Likewise.
57066         * modules/fprintf-posix (Depends-on): Likewise.
57067         * modules/snprintf-posix (Depends-on): Likewise.
57068         * modules/sprintf-posix (Depends-on): Likewise.
57069         * modules/vasnprintf-posix (Depends-on): Likewise.
57070         * modules/vasprintf-posix (Depends-on): Likewise.
57071         * modules/vfprintf-posix (Depends-on): Likewise.
57072         * modules/vsnprintf-posix (Depends-on): Likewise.
57073         * modules/vsprintf-posix (Depends-on): Likewise.
57074         * modules/frexpl-tests (Depends-on): Likewise.
57075         * modules/printf-frexpl-tests (Depends-on): Likewise.
57076
57077 2007-03-24  Bruno Haible  <bruno@clisp.org>
57078
57079         * lib/float+.h: New file.
57080         * lib/isnan.c: Include float+.h.
57081         (SIZE): New macro.
57082         (FUNC): Compare only SIZE bytes of the value.
57083         * lib/vasnprintf.c: Include float+.h.
57084         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
57085         SIZEOF_LDBL or SIZEOF_DBL bytes.
57086         * modules/isnan-nolibm (Files): Add lib/float+.h.
57087         * modules/isnanl-nolibm (Files): Add lib/float+.h.
57088         * modules/isnanl (Files): Add lib/float+.h.
57089         * modules/vasnprintf (Files): Add lib/float+.h.
57090
57091 2007-03-24  Bruno Haible  <bruno@clisp.org>
57092
57093         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
57094         include isnanl-nolibm.h.
57095
57096 2007-03-24  Bruno Haible  <bruno@clisp.org>
57097
57098         * tests/test-read-file.c (main): Don't produce spurious output for
57099         expected situations. Make the test fail if it encountered unexpected
57100         results.
57101
57102 2007-03-24  Bruno Haible  <bruno@clisp.org>
57103
57104         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
57105         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
57106
57107 2007-03-24  Bruno Haible  <bruno@clisp.org>
57108
57109         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
57110
57111 2007-03-24  Bruno Haible  <bruno@clisp.org>
57112
57113         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
57114         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
57115
57116         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
57117         * modules/utf8-ucs4: Turn into a symbolic link to module
57118         unistr/u8-mbtouc.
57119
57120         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
57121         utf8-ucs4-unsafe.
57122         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
57123         unistr/u8-mbtouc-unsafe.
57124
57125         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
57126         * modules/utf16-ucs4: Turn into a symbolic link to module
57127         unistr/u16-mbtouc.
57128
57129         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
57130         utf16-ucs4-unsafe.
57131         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
57132         unistr/u16-mbtouc-unsafe.
57133
57134         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
57135         * modules/ucs4-utf8: Turn into a symbolic link to module
57136         unistr/u8-ubtomb.
57137
57138         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
57139         * modules/ucs4-utf16: Turn into a symbolic link to module
57140         unistr/u16-ubtomb.
57141
57142 2007-03-24  Bruno Haible  <bruno@clisp.org>
57143
57144         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
57145         Enable the function only if HAVE_INLINE.
57146         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
57147         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
57148         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
57149         Enable the function only if HAVE_INLINE.
57150         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
57151         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
57152         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
57153         Enable the function only if HAVE_INLINE.
57154         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
57155         Enable the function only if HAVE_INLINE.
57156         * modules/utf8-ucs4: Update.
57157         * modules/utf8-ucs4-unsafe: Update.
57158         * modules/utf16-ucs4: Update.
57159         * modules/utf16-ucs4-unsafe: Update.
57160         * modules/ucs4-utf8: Update.
57161         * modules/ucs4-utf16: Update.
57162
57163 2007-03-24  Bruno Haible  <bruno@clisp.org>
57164
57165         * lib/utf8-ucs4.h: Remove file.
57166         * lib/utf8-ucs4-unsafe.h: Remove file.
57167         * lib/utf16-ucs4.h: Remove file.
57168         * lib/utf16-ucs4-unsafe.h: Remove file.
57169         * lib/ucs4-utf8.h: Remove file.
57170         * lib/ucs4-utf16.h: Remove file.
57171         * lib/unistr.h: Include their previous contents.
57172         * m4/utf-ucs4.m4: Remove file.
57173         * m4/ucs4-utf.m4: Remove file.
57174         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
57175         (Depends-on): Add unistr/base.
57176         (configure.ac): Remove gl_UTF_UCS4.
57177         (Makefile.am): Update.
57178         (Include): Change to unistr.h.
57179         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
57180         (Depends-on): Add unistr/base.
57181         (configure.ac): Remove gl_UTF_UCS4.
57182         (Makefile.am): Update.
57183         (Include): Change to unistr.h.
57184         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
57185         (Depends-on): Add unistr/base.
57186         (configure.ac): Remove gl_UTF_UCS4.
57187         (Makefile.am): Update.
57188         (Include): Change to unistr.h.
57189         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
57190         (Depends-on): Add unistr/base.
57191         (configure.ac): Remove gl_UTF_UCS4.
57192         (Makefile.am): Update.
57193         (Include): Change to unistr.h.
57194         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
57195         (Depends-on): Add unistr/base.
57196         (configure.ac): Remove gl_UCS4_UTF.
57197         (Makefile.am): Update.
57198         (Include): Change to unistr.h.
57199         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
57200         (Depends-on): Add unistr/base.
57201         (configure.ac): Remove gl_UCS4_UTF.
57202         (Makefile.am): Update.
57203         (Include): Change to unistr.h.
57204         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
57205         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
57206         utf8-ucs4-unsafe.h.
57207         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
57208         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
57209         utf16-ucs4-unsafe.h.
57210         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
57211         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
57212         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
57213         * lib/unistr/u8-strchr.c: Likewise.
57214         * lib/unistr/u8-strrchr.c: Likewise.
57215         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
57216         * lib/unistr/u16-strchr.c: Likewise.
57217         * lib/unistr/u16-strrchr.c: Likewise.
57218         * lib/striconveh.c: Update.
57219         * lib/linebreak.c: Update.
57220
57221 2007-03-24  Bruno Haible  <bruno@clisp.org>
57222
57223         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
57224         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
57225
57226 2007-03-22  Bruno Haible  <bruno@clisp.org>
57227
57228         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
57229
57230 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
57231
57232         * MODULES.html.sh (File system functions): New module write-any-file.
57233         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
57234         * m4/write-any-file.m4: New files.
57235
57236 2007-03-23  Eric Blake  <ebb9@byu.net>
57237
57238         * gnulib-tool: Rearrange space-tab sequences, since some editors
57239         like to eat them.
57240
57241 2007-03-23  Eric Blake  <ebb9@byu.net>
57242
57243         * lib/version-etc.c (version_etc_va): Update license wording to
57244         be more concise.  Recommended by Richard Stallman.
57245
57246 2007-03-22  Bruno Haible  <bruno@clisp.org>
57247
57248         * lib/poll.c (MSG_PEEK): New fallback definition.
57249
57250 2007-03-22  Bruno Haible  <bruno@clisp.org>
57251
57252         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
57253         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
57254         (main): Update.
57255         Fixes a compilation error on BeOS.
57256
57257 2007-03-22  Bruno Haible  <bruno@clisp.org>
57258
57259         * modules/frexpl-tests: New file.
57260         * tests/test-frexpl.c: New file.
57261
57262         * modules/frexpl: New file.
57263         * m4/frexpl.m4: New file.
57264         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
57265         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
57266         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
57267         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
57268         (Depends-on): Add frexpl. Remove isnanl-nolibm.
57269         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
57270
57271 2007-03-22  Bruno Haible  <bruno@clisp.org>
57272
57273         * lib/frexpl.c: Share code with lib/frexp.c.
57274         * modules/mathl (Files): Add lib/frexp.c.
57275         (Depends-on): Add isnanl-nolibm.
57276
57277 2007-03-22  Bruno Haible  <bruno@clisp.org>
57278
57279         * modules/printf-frexp (Files): Add m4/frexp.m4.
57280         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
57281         only if the found frexp function actually works.
57282
57283 2007-03-22  Bruno Haible  <bruno@clisp.org>
57284
57285         * lib/frexp.c: Remove older implementation that uses divisions.
57286
57287 2007-03-21  Bruno Haible  <bruno@clisp.org>
57288
57289         * modules/frexp-tests: New file.
57290         * tests/test-frexp.c: New file.
57291
57292         * modules/frexp: New file.
57293         * lib/frexp.c: New file.
57294         * m4/frexp.m4: New file.
57295         * lib/math_.h (frexp): New declaration.
57296         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
57297         REPLACE_FREXP.
57298         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
57299
57300 2007-03-21  Bruno Haible  <bruno@clisp.org>
57301
57302         * modules/isnanl-tests: New file.
57303         * tests/test-isnanl.c: New file.
57304
57305         * modules/isnanl: New file.
57306         * lib/isnanl.h: New file.
57307         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
57308         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
57309         gl_FUNC_ISNANL_WORKS.
57310         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
57311         New macros.
57312
57313 2007-03-21  Bruno Haible  <bruno@clisp.org>
57314
57315         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
57316         lib/isnanl.h.
57317         (Include): Update.
57318         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
57319         * lib/vasnprintf.c: Update.
57320         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
57321         tests/test-isnanl.h, remove tests/test-isnanl.c.
57322         (Makefile.am): Update.
57323         * tests/test-isnanl-nolibm.c: New file.
57324         * tests/test-isnanl.h: New file.
57325         * tests/test-isnanl.c: Remove file.
57326
57327 2007-03-21  Jim Meyering  <jim@meyering.net>
57328
57329         When trying to open ".", treat ESTALE like EACCES.
57330         * lib/savewd.c (savewd_save): Resort to forking not just upon
57331         failure with EACCES, but also when errno is ESTALE.
57332
57333 2007-03-20  Bruno Haible  <bruno@clisp.org>
57334
57335         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
57336         Needed on AIX 5.1. Reported by Matthew Woehlke.
57337
57338 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
57339
57340         Suggestions by Bruno Haible:
57341         * lib/acl-internal.h: Include "gettext.h" rather than rolling
57342         our own.
57343         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
57344         * modules/acl (Depends-on): Add gettext.
57345
57346 2007-03-19  Bruno Haible  <bruno@clisp.org>
57347
57348         * modules/iconvme: Remove file.
57349         * lib/iconvme.h: Remove file.
57350         * lib/iconvme.c: Remove file.
57351         * m4/iconvme.m4: Remove file.
57352
57353 2007-03-19  Bruno Haible  <bruno@clisp.org>
57354
57355         * doc/relocatable-maint.texi: Break long shell script line.
57356         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
57357
57358 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
57359
57360         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
57361         handle file_has_acl.
57362         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
57363         * lib/acl.c: Move header inclusions and related macro defns into
57364         lib/acl-internal.h.
57365         (S_ISLNK): Remove defn, since that's now done for us.
57366         (file_has_acl): Move to lib/file-has-acl.c.
57367         Call acl_trivial if available.  This is the crucial part of the fix.
57368         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
57369         shared within the library.  Rewrite a bit, partly to make it compatible
57370         with the GNU coding style.
57371         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
57372         Remove unnecessary double-quotes.
57373         Don't test for acl_to_text; the build will catch that.
57374         Replace acl_entries if it doesn't exist and it is needed.
57375         Check for -lsec and acl_trivial (as used on Solaris 10).
57376         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
57377         lib/file-has-acl.c.
57378         (Depends-on): Add sys_stat, for S_ISLNK.
57379
57380 2007-03-19  Ben Pfaff  <blp@gnu.org>
57381
57382         * doc/gnulib.texi: Fix typos.
57383         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
57384
57385 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
57386
57387         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
57388         If size is zero here, buf must be zero.
57389
57390 2007-03-19  Simon Josefsson  <simon@josefsson.org>
57391
57392         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
57393         <bruno@clisp.org>.
57394
57395 2007-03-18  Bruno Haible  <bruno@clisp.org>
57396
57397         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
57398         Suggested by Eric Blake.
57399
57400 2007-03-18  Ben Pfaff  <blp@gnu.org>
57401
57402         * doc/relocatable.texi: Recommend using as prefix a directory
57403         that does not exist and will never be created.  Based on
57404         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
57405         and others.
57406
57407 2007-03-17  Bruno Haible  <bruno@clisp.org>
57408
57409         * lib/fchownat.c: Include lchown.h.
57410
57411 2007-03-17  Bruno Haible  <bruno@clisp.org>
57412
57413         Fix endless loop when the given allocated size was > INT_MAX.
57414         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
57415         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
57416         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
57417         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
57418         * lib/sprintf.c (sprintf): Likewise.
57419
57420 2007-03-17  Bruno Haible  <bruno@clisp.org>
57421
57422         * tests/test-argp-2.sh (func_compare): Output a context diff.
57423
57424 2007-03-17  Bruno Haible  <bruno@clisp.org>
57425
57426         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
57427         locale's decimal-point character.
57428
57429 2007-03-17  Bruno Haible  <bruno@clisp.org>
57430
57431         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
57432         before comparing it. Needed because on some platforms (e.g. x86) a
57433         'long double' occupies less bytes than sizeof (long double).
57434
57435 2007-03-17  Bruno Haible  <bruno@clisp.org>
57436
57437         * tests/test-crc.c (main): Make printf statements 64-bit clean.
57438         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
57439         * tests/test-getaddrinfo.c (simple): Likewise.
57440         * tests/test-read-file.c (main): Likewise.
57441
57442 2007-03-17  Bruno Haible  <bruno@clisp.org>
57443
57444         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
57445
57446 2007-03-17  Bruno Haible  <bruno@clisp.org>
57447
57448         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
57449         unused variable.
57450
57451 2007-03-17  Bruno Haible  <bruno@clisp.org>
57452
57453         * tests/test-c-strcasecmp.c: Include c-strcase.h.
57454         * tests/test-c-strncasecmp.c: Likewise.
57455
57456 2007-03-17  Bruno Haible  <bruno@clisp.org>
57457
57458         * modules/stdlib (Depends-on): Add unistd.
57459         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
57460         Needed for MacOS X 10.3.
57461
57462 2007-03-17  Bruno Haible  <bruno@clisp.org>
57463
57464         * lib/unistr/u-strdup.h: Include <stdlib.h>.
57465
57466 2007-03-17  Bruno Haible  <bruno@clisp.org>
57467
57468         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
57469
57470 2007-03-17  Bruno Haible  <bruno@clisp.org>
57471
57472         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
57473         to reflect files copied from gnulib (with or without modifications).
57474         Suggested by Jim Meyering.
57475
57476 2007-03-17  Eric Blake  <ebb9@byu.net>
57477
57478         * NEWS: Document stdlib change from 2007-02-18.
57479
57480 2007-03-17  Jim Meyering  <jim@meyering.net>
57481
57482         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
57483         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
57484         someone uses a name containing shell meta-characters.
57485         Reported by Alfred M. Szmidt.
57486
57487         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
57488
57489 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
57490
57491         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
57492         and copy gettext configuration files only if configure.ac contains
57493         a use of AM_GNU_GETTEXT_VERSION.
57494
57495 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
57496
57497         * build-aux/bootstrap (gnulib_name): New variable.
57498         (gnulib_tool_options): Use it.
57499
57500 2007-03-13  Simon Josefsson  <simon@josefsson.org>
57501
57502         * tests/test-des.c: Use new namespace.
57503
57504 2007-03-15  Bruno Haible  <bruno@clisp.org>
57505
57506         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
57507         Reported by James Youngman <jay@gnu.org>.
57508
57509 2007-03-15  Bruno Haible  <bruno@clisp.org>
57510
57511         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
57512         declared prototype. Needed with cc on OSF/1 5.1.
57513
57514 2007-03-15  Bruno Haible  <bruno@clisp.org>
57515
57516         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
57517         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
57518         (struct gl_list_implementation): Add dispose_fn argument to the
57519         'create_empty', 'create' methods.
57520         (struct gl_list_impl_base): Add field 'dispose_fn'.
57521         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
57522         argument.
57523         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
57524         dispose_fn argument.
57525         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
57526         dispose_fn on the dropped values.
57527         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
57528         dispose_fn argument.
57529         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
57530         dropped values.
57531         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
57532         (gl_tree_remove_node): Call dispose_fn on the dropped value.
57533         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
57534         (gl_tree_remove_node): Call dispose_fn on the dropped value.
57535         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
57536         argument.
57537         (gl_tree_list_free): Call dispose_fn on the dropped values.
57538         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
57539         the dropped values.
57540         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
57541         Add dispose_fn argument.
57542         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
57543         Call dispose_fn on the dropped values.
57544         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
57545         Add dispose_fn argument.
57546         (gl_sublist_create): Initialize the 'dispose_fn' field.
57547         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
57548         * tests/test-array_list.c (main): Update.
57549         * tests/test-carray_list.c (main): Update.
57550         * tests/test-avltree_list.c (main): Update.
57551         * tests/test-rbtree_list.c (main): Update.
57552         * tests/test-avltreehash_list.c (main): Update.
57553         * tests/test-rbtreehash_list.c (main): Update.
57554         * tests/test-linked_list.c (main): Update.
57555         * tests/test-linkedhash_list.c (main): Update.
57556         * tests/test-array_oset.c (main): Update.
57557
57558 2007-03-15  Bruno Haible  <bruno@clisp.org>
57559
57560         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
57561         (gl_oset_create_empty): Add dispose_fn argument.
57562         (struct gl_oset_implementation): Add dispose_fn argument to
57563         'create_empty' method.
57564         (struct gl_oset_impl_base): Add dispose_fn field.
57565         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
57566         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
57567         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
57568         values.
57569         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
57570         (gl_tree_oset_free): Call dispose_fn on the dropped values.
57571         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
57572         dropped value.
57573         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
57574         dropped value.
57575         * tests/test-array_oset.c (main): Update.
57576         * tests/test-avltree_oset.c (main): Update.
57577         * tests/test-rbtree_oset.c (main): Update.
57578         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
57579
57580 2007-03-13  Bruno Haible  <bruno@clisp.org>
57581
57582         * tests/test-stdbool.c (i): Update after last patch.
57583
57584 2007-03-12  Bruno Haible  <bruno@clisp.org>
57585
57586         * lib/quotearg.c: Include <wctype.h> early, before the definition of
57587         the iswprint macro. Needed on Solaris 2.5.1.
57588
57589 2007-03-12  Bruno Haible  <bruno@clisp.org>
57590
57591         * tests/test-printf-frexp.c (main): Declare x as volatile.
57592
57593 2007-03-12  Simon Josefsson  <simon@josefsson.org>
57594
57595         * doc/gnulib.texi (Build robot for gnulib): New section.
57596
57597 2007-03-12  Jim Meyering  <jim@meyering.net>
57598
57599         * build-aux/bootstrap: New file.
57600         * build-aux/bootstrap.conf: New file, from coreutils.
57601
57602 2007-03-11  Bruno Haible  <bruno@clisp.org>
57603
57604         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
57605
57606 2007-03-12  Simon Josefsson  <simon@josefsson.org>
57607
57608         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
57609         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
57610         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
57611
57612 2007-03-11  Bruno Haible  <bruno@clisp.org>
57613
57614         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
57615         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
57616
57617 2007-03-11  Bruno Haible  <bruno@clisp.org>
57618
57619         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
57620         formula. Needed for SunPRO C 5.0.
57621
57622 2007-03-11  Bruno Haible  <bruno@clisp.org>
57623
57624         * modules/long-options (Depends-on): Add getopt.
57625
57626 2007-03-11  Bruno Haible  <bruno@clisp.org>
57627
57628         * modules/modechange (Depends-on): Add stdbool.
57629
57630 2007-03-11  Bruno Haible  <bruno@clisp.org>
57631
57632         * modules/i-ring (Depends-on): Add stdbool.
57633
57634 2007-03-11  Bruno Haible  <bruno@clisp.org>
57635
57636         * modules/gc-des (Depends-on): Add stdbool.
57637
57638 2007-03-11  Bruno Haible  <bruno@clisp.org>
57639
57640         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
57641
57642 2007-03-11  Bruno Haible  <bruno@clisp.org>
57643
57644         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
57645
57646 2007-03-11  Bruno Haible  <bruno@clisp.org>
57647
57648         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
57649
57650 2007-03-11  Bruno Haible  <bruno@clisp.org>
57651
57652         * lib/vasnprintf.c (sprintf): Undefine.
57653
57654 2007-03-11  Bruno Haible  <bruno@clisp.org>
57655
57656         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
57657         initializers in SunPRO C and Compaq C compilers.
57658
57659 2007-03-11  Bruno Haible  <bruno@clisp.org>
57660
57661         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
57662         decrementing code ANSI C compliant.
57663
57664 2007-03-11  Bruno Haible  <bruno@clisp.org>
57665
57666         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
57667         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
57668
57669 2007-03-11  Bruno Haible  <bruno@clisp.org>
57670
57671         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
57672         <stdbool.h> substitute doesn't pass.
57673
57674 2007-03-11  Bruno Haible  <bruno@clisp.org>
57675
57676         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
57677
57678 2007-03-11  Bruno Haible  <bruno@clisp.org>
57679
57680         * gnulib-tool (func_create_megatestdir): Create also an autobuild
57681         script, for submission to autobuild.josefsson.org.
57682
57683 2007-03-10  Bruno Haible  <bruno@clisp.org>
57684
57685         * modules/canonicalize-lgpl-tests: New file.
57686         * tests/test-canonicalize-lgpl.sh: New file.
57687         * tests/test-canonicalize-lgpl.c: New file.
57688
57689         * modules/c-strcase-tests: New file.
57690         * tests/test-c-strcase.sh: New file.
57691         * tests/test-c-strcasecmp.c: New file.
57692         * tests/test-c-strncasecmp.c: New file.
57693
57694         * modules/atexit-tests: New file.
57695         * tests/test-atexit.sh: New file.
57696         * tests/test-atexit.c: New file.
57697
57698 2007-03-10  Bruno Haible  <bruno@clisp.org>
57699
57700         * tests/test-binary-io.sh: Use temporary filenames that are not so
57701         likely to clash with those of other tests (in a parallel make).
57702         * tests/test-binary-io.c: Likewise.
57703
57704 2007-03-10  Bruno Haible  <bruno@clisp.org>
57705
57706         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
57707         fallback; use #error instead.
57708         Suggested by Simon Josefsson.
57709
57710 2007-03-10  Bruno Haible  <bruno@clisp.org>
57711
57712         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
57713         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
57714         first and the last.
57715
57716 2007-03-10  Bruno Haible  <bruno@clisp.org>
57717
57718         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
57719
57720 2007-03-10  Bruno Haible  <bruno@clisp.org>
57721
57722         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
57723         "make distcheck".
57724         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
57725         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
57726         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
57727
57728 2007-03-10  Bruno Haible  <bruno@clisp.org>
57729
57730         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
57731         variable.
57732         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
57733         variable.
57734
57735 2007-03-09  Eric Blake  <ebb9@byu.net>
57736         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
57737
57738         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
57739         types are not being provided by gnulib.
57740         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
57741         types are supported.
57742
57743 2007-03-10  Bruno Haible  <bruno@clisp.org>
57744
57745         * lib/stdio_.h (__attribute__): New macro.
57746         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
57747         vsprintf): Specify __attribute__ __format__ for GCC.
57748         Suggested by Eric Blake.
57749
57750 2007-03-09  Bruno Haible  <bruno@clisp.org>
57751
57752         * modules/printf-posix-tests: New file.
57753         * tests/test-printf-posix.sh: New file.
57754         * tests/test-printf-posix.c: New file.
57755
57756         * modules/printf-posix: New file.
57757         * lib/printf.c: New file.
57758         * m4/printf-posix-rpl.m4: New file.
57759         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
57760         REPLACE_PRINTF.
57761         * lib/stdio_.h (printf): New declaration.
57762         (format, __format__, ____printf____, ____scanf____, ____strftime____,
57763         ____strfmon____): New macros.
57764         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
57765         REPLACE_PRINTF.
57766
57767 2007-03-09  Bruno Haible  <bruno@clisp.org>
57768
57769         * tests/test-vasnprintf-posix2.sh: New file.
57770         * tests/test-vasnprintf-posix2.c: New file.
57771         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
57772         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
57773         (Makefile.am): Activate test-vasnprintf-posix2.sh.
57774
57775         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
57776         a locale dependent decimal point, rather than always '.'.
57777
57778 2007-03-09  Eric Blake  <ebb9@byu.net>
57779
57780         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
57781         spite of platforms like Tandem/NSK that define it to -1.
57782
57783 2007-03-08  Bruno Haible  <bruno@clisp.org>
57784
57785         * modules/vprintf-posix-tests: New file.
57786         * tests/test-vprintf-posix.sh: New file.
57787         * tests/test-vprintf-posix.c: New file.
57788         * tests/test-printf-posix.h: New file.
57789
57790         * modules/vprintf-posix: New file.
57791         * lib/vprintf.c: New file.
57792         * m4/vprintf-posix.m4: New file.
57793         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
57794         REPLACE_VPRINTF.
57795         * lib/stdio_.h (vprintf): New declaration.
57796         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
57797         REPLACE_VPRINTF.
57798
57799 2007-03-08  Bruno Haible  <bruno@clisp.org>
57800
57801         * modules/fprintf-posix-tests: New file.
57802         * tests/test-fprintf-posix.sh: New file.
57803         * tests/test-fprintf-posix.c: New file.
57804
57805         * modules/fprintf-posix: New file.
57806         * lib/fprintf.c: New file.
57807         * m4/fprintf-posix.m4: New file.
57808         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
57809         REPLACE_FPRINTF.
57810         * lib/stdio_.h (fprintf): New declaration.
57811         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
57812         REPLACE_FPRINTF.
57813
57814 2007-03-08  Bruno Haible  <bruno@clisp.org>
57815
57816         * modules/vfprintf-posix-tests: New file.
57817         * tests/test-vfprintf-posix.sh: New file.
57818         * tests/test-vfprintf-posix.c: New file.
57819         * tests/test-fprintf-posix.h: New file.
57820         * tests/test-fprintf-posix.out: New file.
57821
57822         * modules/vfprintf-posix: New file.
57823         * lib/vfprintf.c: New file.
57824         * m4/vfprintf-posix.m4: New file.
57825         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
57826         REPLACE_VFPRINTF.
57827         * lib/stdio_.h (vfprintf): New declaration.
57828         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
57829         REPLACE_VFPRINTF.
57830
57831 2007-03-08  Bruno Haible  <bruno@clisp.org>
57832
57833         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
57834
57835 2007-03-08  Bruno Haible  <bruno@clisp.org>
57836
57837         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
57838         instead of 'expr' invocations.
57839         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
57840         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
57841         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
57842         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
57843         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
57844         Suggested by Paul Eggert.
57845
57846 2007-03-08  Bruno Haible  <bruno@clisp.org>
57847
57848         * modules/fseterr-tests: New file.
57849         * tests/test-fseterr.c: New file.
57850
57851         * modules/fseterr: New file.
57852         * lib/fseterr.h: New file.
57853         * lib/fseterr.c: New file.
57854
57855 2007-03-08  Bruno Haible  <bruno@clisp.org>
57856
57857         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
57858         * lib/getopt_.h: Likewise.
57859         * lib/mbswidth.h: Likewise.
57860         * lib/setenv.h: Likewise.
57861         * lib/vasnprintf.h: Likewise.
57862         * lib/vasprintf.h: Likewise.
57863         * lib/verror.h: Likewise.
57864         * lib/xsetenv.h: Likewise.
57865         * lib/xvasprintf.h: Likewise.
57866
57867 2007-03-08  Jim Meyering  <jim@meyering.net>
57868
57869         * users.txt: Add parted.
57870
57871         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
57872
57873 2007-03-07  Bruno Haible  <bruno@clisp.org>
57874
57875         * m4/printf.m4: Make the shell script snippets copy&pastable.
57876
57877 2007-03-02  Bruno Haible  <bruno@clisp.org>
57878
57879         * lib/netinet_in_.h: New file.
57880         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
57881         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
57882         * modules/netinet_in (Files): Add lib/netinet_in_.h.
57883         (Depends-on): Add absolute-header.
57884         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
57885         into netinet/in.h.
57886
57887 2007-03-03  Bruno Haible  <bruno@clisp.org>
57888
57889         * lib/sys_select_.h: New file.
57890         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
57891         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
57892         * modules/sys_select (Files): Add lib/sys_select_.h.
57893         (Depends-on): Add absolute-header.
57894         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
57895         into sys/select.h.
57896
57897 2007-03-02  Bruno Haible  <bruno@clisp.org>
57898
57899         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
57900         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
57901         values.
57902         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
57903         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
57904         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
57905         * modules/sys_socket (Depends-on): Add absolute-header.
57906         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
57907         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
57908         (Include): Remove requirement of inclusion of <sys/types.h>.
57909
57910 2007-03-02  Bruno Haible  <bruno@clisp.org>
57911
57912         * lib/byteswap_.h (bswap_32): Fix formula.
57913
57914 2007-03-06  Bruno Haible  <bruno@clisp.org>
57915
57916         * modules/sprintf-posix-tests: New file.
57917         * tests/test-sprintf-posix.c: New file.
57918
57919         * modules/sprintf-posix: New file.
57920         * lib/sprintf.c: New file.
57921         * m4/sprintf-posix.m4: New file.
57922         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
57923         REPLACE_SPRINTF.
57924         * lib/stdio_.h (sprintf): New declaration.
57925         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
57926         REPLACE_SPRINTF.
57927
57928 2007-03-06  Bruno Haible  <bruno@clisp.org>
57929
57930         * modules/vsprintf-posix-tests: New file.
57931         * tests/test-vsprintf-posix.c: New file.
57932         * tests/test-sprintf-posix.h: New file.
57933
57934         * modules/vsprintf-posix: New file.
57935         * lib/vsprintf.c: New file.
57936         * m4/vsprintf-posix.m4: New file.
57937         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
57938         REPLACE_VSPRINTF.
57939         * lib/stdio_.h (vsprintf): New declaration.
57940         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
57941         REPLACE_VSPRINTF.
57942
57943 2007-03-06  Bruno Haible  <bruno@clisp.org>
57944
57945         * modules/vsnprintf (Depend-on): Remove minmax.
57946
57947 2007-03-06  Bruno Haible  <bruno@clisp.org>
57948
57949         * modules/snprintf-posix-tests: New file.
57950         * tests/test-snprintf-posix.c: New file.
57951
57952         * modules/snprintf-posix: New file.
57953         * m4/snprintf-posix.m4: New file.
57954         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
57955         gl_FUNC_SNPRINTF.
57956         (gl_FUNC_SNPRINTF): Invoke it.
57957         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
57958         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
57959         is set.
57960         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
57961
57962 2007-03-06  Bruno Haible  <bruno@clisp.org>
57963
57964         * modules/vsnprintf-posix-tests: New file.
57965         * tests/test-vsnprintf-posix.c: New file.
57966         * tests/test-snprintf-posix.h: New file.
57967
57968         * modules/vsnprintf-posix: New file.
57969         * m4/vsnprintf-posix.m4: New file.
57970         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
57971         gl_FUNC_VSNPRINTF.
57972         (gl_FUNC_VSNPRINTF): Invoke it.
57973         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
57974         * lib/stdio_.h (vsnprintf): Define as a replacement if
57975         REPLACE_VSNPRINTF is set.
57976         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
57977
57978 2007-03-06  Bruno Haible  <bruno@clisp.org>
57979
57980         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
57981         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
57982
57983 2007-03-06  Bruno Haible  <bruno@clisp.org>
57984
57985         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
57986         (asinl): Declare also if HAVE_DECL_ASINL is set.
57987         (atanl): Declare also if HAVE_DECL_ATANL is set.
57988         (ceill): Declare also if HAVE_DECL_CEILL is set.
57989         (cosl): Declare also if HAVE_DECL_COSL is set.
57990         (expl): Declare also if HAVE_DECL_EXPL is set.
57991         (floorl): Declare also if HAVE_DECL_FLOORL is set.
57992         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
57993         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
57994         (logl): Declare also if HAVE_DECL_LOGL is set.
57995         (sinl): Declare also if HAVE_DECL_SINL is set.
57996         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
57997         (tanl): Declare also if HAVE_DECL_TANL is set.
57998         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
57999         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
58000         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
58001         declaration of frexpl, ldexpl.
58002         * modules/printf-frexpl (Depends-on): Add math.
58003         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
58004
58005 2007-03-05  Bruno Haible  <bruno@clisp.org>
58006
58007         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
58008         frexpl and ldexpl are declared.
58009         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
58010
58011 2007-03-05  Bruno Haible  <bruno@clisp.org>
58012
58013         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
58014         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
58015
58016 2007-03-05  Bruno Haible  <bruno@clisp.org>
58017
58018         * lib/stdio_.h: Include <stddef.h>.
58019
58020 2007-03-05  Bruno Haible  <bruno@clisp.org>
58021
58022         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
58023
58024 2007-03-05  Bruno Haible  <bruno@clisp.org>
58025
58026         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
58027         NetBSD 4, from Ralf Wildenhues.
58028
58029 2007-03-04  Bruno Haible  <bruno@clisp.org>
58030
58031         * lib/vasprintf.h: Update #if logic for the case when the functions
58032         exist but are overridden.
58033
58034 2007-03-04  Bruno Haible  <bruno@clisp.org>
58035
58036         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
58037         implementations: glibc-2.4 and MacOS X 10.3.
58038         * tests/test-vasnprintf-posix.c (test_function): Test also the case
58039         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
58040         * tests/test-vasprintf-posix.c (test_function): Likewise.
58041
58042 2007-03-04  Bruno Haible  <bruno@clisp.org>
58043
58044         * modules/vasprintf-posix-tests: New file.
58045         * tests/test-vasprintf-posix.c: New file.
58046
58047         * modules/vasprintf-posix: New file.
58048         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
58049         defined.
58050         * m4/vasprintf-posix.m4: New file.
58051         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
58052         gl_FUNC_VASPRINTF.
58053         (gl_FUNC_VASPRINTF): Invoke it.
58054         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
58055         here.
58056         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
58057
58058 2007-03-04  Bruno Haible  <bruno@clisp.org>
58059
58060         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
58061         REPLACE_GETTIMEOFDAY.
58062         * modules/sys_time (Makefile.am): Likewise.
58063         * m4/sys_time_h.m4: Likewise.
58064         * m4/gettimeofday.m4: Likewise.
58065
58066 2007-03-04  Bruno Haible  <bruno@clisp.org>
58067
58068         * modules/vasnprintf-posix-tests: New file.
58069         * tests/test-vasnprintf-posix.c: New file.
58070
58071         * modules/vasnprintf-posix: New file.
58072         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
58073         printf-frexpl.h.
58074         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
58075         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
58076         REPLACE_VASNPRINTF is defined.
58077         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
58078         gl_FUNC_VASNPRINTF.
58079         (gl_FUNC_VASNPRINTF): Invoke it.
58080         * m4/vasnprintf-posix.m4: New file.
58081         * m4/printf.m4: New file.
58082
58083 2007-03-04  Bruno Haible  <bruno@clisp.org>
58084
58085         Compile progreloc.c only if --enable-relocatable is specified.
58086         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
58087         if --enable-relocatable was specified.
58088         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
58089         lib_SOURCES.
58090
58091 2007-03-04  Jim Meyering  <jim@meyering.net>
58092
58093         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
58094         Use it consistently, rather than enumerating errno constants.
58095
58096 2007-03-04  Bruno Haible  <bruno@clisp.org>
58097
58098         * modules/xvasprintf-tests: New file.
58099         * tests/test-xvasprintf.c: New file.
58100
58101         * modules/vasprintf-tests: New file.
58102         * tests/test-vasprintf.c: New file.
58103
58104         * modules/vasnprintf-tests: New file.
58105         * tests/test-vasnprintf.c: New file.
58106
58107         * modules/vsnprintf-tests: New file.
58108         * tests/test-vsnprintf.c: New file.
58109
58110         * modules/snprintf-tests: New file.
58111         * tests/test-snprintf.c: New file.
58112
58113 2007-03-04  Bruno Haible  <bruno@clisp.org>
58114
58115         Compile relocatable.c only if --enable-relocatable is specified.
58116         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
58117         gl_RELOCATABLE_LIBRARY.
58118         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
58119         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
58120         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
58121         gl_RELOCATABLE_LIBRARY.
58122         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
58123         (Makefile.am): Remove lib_SOURCES.
58124         * modules/relocatable-lib-lgpl (configure.ac): Invoke
58125         gl_RELOCATABLE_LIBRARY.
58126         (Makefile.am): Remove lib_SOURCES.
58127         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
58128         always.
58129         * modules/relocatable-prog-wrapper (configure.ac): Invoke
58130         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
58131
58132 2007-03-04  Bruno Haible  <bruno@clisp.org>
58133
58134         * modules/argmatch-tests: New file.
58135         * tests/test-argmatch.c: New file.
58136
58137         * tests/test-allocsa.c (main): Halve the number of loop runs.
58138
58139         * modules/alloca-opt-tests: New file.
58140         * tests/test-alloca-opt.c: New file.
58141
58142 2007-03-04  Jim Meyering  <jim@meyering.net>
58143
58144         Work around difference between Linux ACLs and Solaris 10 ZFS.
58145         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
58146         for EINVAL.
58147
58148 2007-03-03  Bruno Haible  <bruno@clisp.org>
58149
58150         * modules/relocatable-prog (Depends-on): Add back progreloc's
58151         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
58152
58153 2007-03-03  Bruno Haible  <bruno@clisp.org>
58154
58155         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
58156         * modules/relocatable-lib: New file.
58157
58158 2007-03-03  Bruno Haible  <bruno@clisp.org>
58159
58160         * modules/relocatable-prog: Renamed from modules/relocatable.
58161         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
58162
58163 2007-03-03  Bruno Haible  <bruno@clisp.org>
58164
58165         * modules/relocatable-script (Files): Add doc/relocatable.texi,
58166         m4/relocatable-lib.m4.
58167         (Depends-on): Remove 'relocatable'.
58168         (configure.ac): Add gl_RELOCATABLE_NOP.
58169
58170 2007-03-03  Bruno Haible  <bruno@clisp.org>
58171
58172         * modules/relocatable-prog-wrapper: New file.
58173         * modules/relocatable (Depends-on): Add it. Remove all other
58174         dependencies except progname.
58175         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
58176
58177         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
58178         (gl_FUNC_STRERROR): Nop.
58179         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
58180
58181         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
58182         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
58183
58184         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
58185         (gl_FUNC_READLINK): Update.
58186
58187         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
58188
58189 2007-03-03  Bruno Haible  <bruno@clisp.org>
58190
58191         * lib/xreadlink.c: Include <unistd.h> unconditionally.
58192         * modules/xreadlink (Depends-on): Add unistd.
58193         * modules/xreadlink-with-size (Depends-on): Likewise.
58194
58195 2007-03-03  Bruno Haible  <bruno@clisp.org>
58196
58197         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
58198         extracted from gt_FUNC_SETENV.
58199         (gt_FUNC_SETENV): Remove macro.
58200         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
58201         remove gt_FUNC_SETENV.
58202
58203 2007-03-03  Bruno Haible  <bruno@clisp.org>
58204
58205         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
58206         ENABLE_RELOCATABLE here.
58207         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
58208
58209 2007-03-03  Bruno Haible  <bruno@clisp.org>
58210
58211         * modules/rbtreehash-list-tests (Depends-on): Add progname.
58212         * tests/test-rbtreehash_list.c: Include progname.h.
58213         (main): Call set_program_name.
58214
58215         * modules/rbtree-oset-tests (Depends-on): Add progname.
58216         * tests/test-rbtree_oset.c: Include progname.h.
58217         (main): Call set_program_name.
58218
58219         * modules/rbtree-list-tests (Depends-on): Add progname.
58220         * tests/test-rbtree_list.c: Include progname.h.
58221         (main): Call set_program_name.
58222
58223         * modules/linked-list-tests (Depends-on): Add progname.
58224         * tests/test-linked_list.c: Include progname.h.
58225         (main): Call set_program_name.
58226
58227 2007-03-03  Bruno Haible  <bruno@clisp.org>
58228
58229         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
58230         All uses of __restrict changed to _Restrict_.
58231         * lib/glob_.h (__restrict): Remove macro.
58232
58233 2007-03-02  Bruno Haible  <bruno@clisp.org>
58234
58235         * modules/gettext (configure.ac): Require gettext infrastructure
58236         from version 0.16.1.
58237
58238 2007-03-02  Bruno Haible  <bruno@clisp.org>
58239
58240         * modules/linkedhash-list-tests (Depends-on): Add progname.
58241         * tests/test-linkedhash_list.c: Include progname.h.
58242         (main): Call set_program_name.
58243
58244         * modules/carray-list-tests (Depends-on): Add progname.
58245         * tests/test-carray_list.c: Include progname.h.
58246         (main): Call set_program_name.
58247
58248         * modules/avltreehash-list-tests (Depends-on): Add progname.
58249         * tests/test-avltreehash_list.c: Include progname.h.
58250         (main): Call set_program_name.
58251
58252         * modules/avltree-oset-tests (Depends-on): Add progname.
58253         * tests/test-avltree_oset.c: Include progname.h.
58254         (main): Call set_program_name.
58255
58256         * modules/avltree-list-tests (Depends-on): Add progname.
58257         * tests/test-avltree_list.c: Include progname.h.
58258         (main): Call set_program_name.
58259
58260         * modules/array-oset-tests (Depends-on): Add progname.
58261         * tests/test-array_oset.c: Include progname.h.
58262         (main): Call set_program_name.
58263
58264         * modules/array-list-tests (Depends-on): Add progname.
58265         * tests/test-array_list.c: Include progname.h.
58266         (main): Call set_program_name.
58267
58268         * modules/argp-tests (Depends-on): Add progname.
58269         * tests/test-argp.c: Include argp.h first. Include progname.h.
58270         (main): Call set_program_name.
58271
58272 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
58273
58274         * doc/gnulib-tool.texi (Initial import): Reword description of
58275         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
58276         limited effect even if defined after the first system include.
58277
58278 2007-03-01  Bruno Haible  <bruno@clisp.org>
58279
58280         * build-aux/config.libpath: Update to libtool-1.5.22.
58281         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
58282
58283 2007-03-01  Bruno Haible  <bruno@clisp.org>
58284
58285         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
58286         foo_CFLAGS.
58287         Reported by Ralf Wildenhues.
58288
58289 2007-03-01  Bruno Haible  <bruno@clisp.org>
58290
58291         * build-aux/install-reloc: Remove object files left over by some
58292         compilers.
58293         Reported by Ralf Wildenhues.
58294
58295 2007-03-01  Bruno Haible  <bruno@clisp.org>
58296
58297         * build-aux/install-reloc: Break long lines.
58298
58299 2007-03-01  Bruno Haible  <bruno@clisp.org>
58300
58301         * doc/relocatable.texi: Document that it may not work on OpenBSD.
58302         Reported by Ralf Wildenhues.
58303
58304 2007-03-01  Bruno Haible  <bruno@clisp.org>
58305
58306         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
58307         include ordering constraints.
58308
58309 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
58310
58311         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
58312         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
58313         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
58314         as another example.
58315         * lib/time_.h: Fix misspelling.
58316         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
58317         Require gl_HEADER_TIME_H_DEFAULTS.
58318         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
58319         * m4/time_r.m4 (gl_TIME_R): Likewise.
58320         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
58321
58322 2007-03-01  Bruno Haible  <bruno@clisp.org>
58323
58324         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
58325         * m4/utimens.m4 (gl_UTIMENS): Likewise.
58326
58327 2007-03-01  Jim Meyering  <jim@meyering.net>
58328
58329         * modules/xreadlink (Maintainer): Add my name.
58330         * modules/xreadlink-with-size (Depends-on): Alphabetize.
58331
58332 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
58333             Bruno Haible  <bruno@clisp.org>
58334
58335         * build-aux/install-reloc: Compile also c-ctype.c.
58336         * build-aux/relocatable.sh.in: New file.
58337         * doc/relocatable.texi: New file.
58338         * doc/relocatable-maint.texi: New file.
58339         * doc/gnulib.texi: Include relocatable-maint.texi.
58340         * lib/progreloc.c: Include unistd.h unconditionally.
58341         * lib/relocwrapper.c: Include unistd.h unconditionally.
58342         Include c-ctype.h.
58343         (add_dotbin): Use c_tolower.
58344         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
58345         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
58346         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
58347         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
58348         to m4/relocatable-lib.m4.
58349         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
58350         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
58351         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
58352         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
58353         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
58354         * modules/relocatable: New file.
58355         * modules/relocatable-lib: New file.
58356         * modules/relocatable-script: New file.
58357
58358 2007-02-28  Bruno Haible  <bruno@clisp.org>
58359
58360         Import --enable-relocatable infrastructure.
58361         * build-aux/config.libpath: New file, from GNU gettext.
58362         * build-aux/install-reloc: New file, from GNU gettext.
58363         * build-aux/reloc-ldflags: New file, from GNU gettext.
58364         * lib/relocatable.h: New file, from GNU gettext.
58365         * lib/relocatable.c: New file, from GNU gettext.
58366         * lib/relocwrapper.c: New file, from GNU gettext.
58367         * m4/relocatable.m4: New file, from GNU gettext.
58368
58369 2007-02-28  Bruno Haible  <bruno@clisp.org>
58370
58371         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
58372
58373         * modules/xreadlink: New file, from GNU gettext with modifications.
58374         * lib/xreadlink.c: New file, from GNU gettext.
58375         * lib/xreadlink.h: Add comments.
58376         (xreadlink): New declaration.
58377
58378         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
58379         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
58380         lib/xreadlink-with-size.c.
58381         (configure.ac): Remove gl_XREADLINK invocation.
58382         (Makefile.am): Augment lib_SOURCES.
58383         * m4/xreadlink.m4: Remove file.
58384         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
58385         (xreadlink_with_size): Renamed from xreadink.
58386         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
58387         * modules/canonicalize (Depends-on): Replace xreadlink with
58388         xreadlink-with-size.
58389         * lib/canonicalize.c (canonicalize_filename_mode): Update.
58390
58391 2007-02-25  Jim Meyering  <jim@meyering.net>
58392
58393         * build-aux/announce-gen: When complaining about excess arguments,
58394         list them.
58395
58396 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
58397
58398         * README: Document signed integer overflow situation more
58399         accurately.
58400
58401 2007-02-25  Bruno Haible  <bruno@clisp.org>
58402
58403         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
58404         'a' or 'A' conversion.
58405
58406 2007-02-25  Bruno Haible  <bruno@clisp.org>
58407
58408         * modules/filename: Renamed from modules/pathname.
58409         (Files): Replace lib/pathname.h with lib/filename.h. Replace
58410         lib/concatpath.c with lib/concat-filename.c.
58411         (Makefile.am): Update.
58412         (Include): Replace pathname.h with filename.h.
58413         * lib/filename.h: Renamed from lib/pathname.h.
58414         (concatenated_filename): Renamed from concatenated_pathname.
58415         * lib/concat-filename.c: Renamed from lib/concatpath.c.
58416         (concatenated_filename): Renamed from concatenated_pathname.
58417         * lib/findprog.c: Include filename.h instead of pathname.h.
58418         (find_in_path): Update.
58419         * lib/javacomp.c: Include filename.h instead of pathname.h.
58420         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
58421         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
58422         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
58423         is_oldgcj_14_13_usable, is_javac_usable): Update.
58424         * lib/javaexec.c: Include filename.h instead of pathname.h.
58425         (execute_java_class): Update.
58426         * modules/findprog: Update.
58427         * modules/javacomp: Update.
58428         * modules/javaexec: Update.
58429         * MODULES.html.sh (File system functions): Add 'filename', remove
58430         'pathname'.
58431
58432 2007-02-25  Bruno Haible  <bruno@clisp.org>
58433
58434         * modules/printf-frexpl-tests: New file.
58435         * tests/test-printf-frexpl.c: New file.
58436
58437         * modules/printf-frexpl: New file.
58438         * lib/printf-frexpl.h: New file.
58439         * lib/printf-frexpl.c: New file.
58440         * m4/printf-frexpl.m4: New file.
58441
58442 2007-02-25  Bruno Haible  <bruno@clisp.org>
58443
58444         * modules/printf-frexp-tests: New file.
58445         * tests/test-printf-frexp.c: New file.
58446
58447         * modules/printf-frexp: New file.
58448         * lib/printf-frexp.h: New file.
58449         * lib/printf-frexp.c: New file.
58450         * m4/printf-frexp.m4: New file.
58451
58452 2007-02-25  Bruno Haible  <bruno@clisp.org>
58453
58454         Assume automake >= 1.10 for the tests.
58455         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
58456         * modules/arctwo-tests: Likewise.
58457         * modules/argp-tests: Likewise.
58458         * modules/avltree-list-tests: Likewise.
58459         * modules/avltree-oset-tests: Likewise.
58460         * modules/avltreehash-list-tests: Likewise.
58461         * modules/carray-list-tests: Likewise.
58462         * modules/crc-tests: Likewise.
58463         * modules/des-tests: Likewise.
58464         * modules/gc-arcfour-tests: Likewise.
58465         * modules/gc-arctwo-tests: Likewise.
58466         * modules/gc-des-tests: Likewise.
58467         * modules/gc-hmac-md5-tests: Likewise.
58468         * modules/gc-hmac-sha1-tests: Likewise.
58469         * modules/gc-md2-tests: Likewise.
58470         * modules/gc-md4-tests: Likewise.
58471         * modules/gc-md5-tests: Likewise.
58472         * modules/gc-pbkdf2-sha1-tests: Likewise.
58473         * modules/gc-rijndael-tests: Likewise.
58474         * modules/gc-sha1-tests: Likewise.
58475         * modules/gc-tests: Likewise.
58476         * modules/getaddrinfo-tests: Likewise.
58477         * modules/hmac-md5-tests: Likewise.
58478         * modules/hmac-sha1-tests: Likewise.
58479         * modules/linked-list-tests: Likewise.
58480         * modules/linkedhash-list-tests: Likewise.
58481         * modules/lock-tests: Likewise.
58482         * modules/md2-tests: Likewise.
58483         * modules/md4-tests: Likewise.
58484         * modules/md5-tests: Likewise.
58485         * modules/rbtree-list-tests: Likewise.
58486         * modules/rbtree-oset-tests: Likewise.
58487         * modules/rbtreehash-list-tests: Likewise.
58488         * modules/read-file-tests: Likewise.
58489         * modules/rijndael-tests: Likewise.
58490         * modules/stdint-tests: Likewise.
58491         * modules/tls-tests: Likewise.
58492
58493 2007-02-24  Bruno Haible  <bruno@clisp.org>
58494
58495         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
58496         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
58497         function; instead check whether isnan with a double argument links.
58498         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
58499         function; instead check whether isnan with a 'long double' argument
58500         links.
58501         Reported by Eric Blake <ebb9@byu.net>.
58502
58503 2007-02-24  Bruno Haible  <bruno@clisp.org>
58504
58505         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
58506         defined.
58507         * lib/isnanl.c: Remove all code. Just include isnan.c.
58508         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
58509
58510 2007-02-25  Jim Meyering  <jim@meyering.net>
58511
58512         Avoid conflicting types for 'unsetenv' on FreeBSD.
58513         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
58514         conflicting with FreeBSD's (5.0 and 6.1) function declaration
58515         in stdlib.h.
58516
58517 2007-02-24  Bruno Haible  <bruno@clisp.org>
58518
58519         * modules/isnanl-nolibm-tests: New file.
58520         * tests/test-isnanl.c: New file.
58521
58522         * modules/isnanl-nolibm: New file.
58523         * lib/isnanl.h: New file.
58524         * lib/isnanl.c: New file.
58525         * m4/isnanl.m4: New file.
58526
58527 2007-02-24  Bruno Haible  <bruno@clisp.org>
58528
58529         * modules/isnan-nolibm-tests: New file.
58530         * tests/test-isnan.c: New file.
58531
58532         * modules/isnan-nolibm: New file.
58533         * lib/isnan.h: New file.
58534         * lib/isnan.c: New file.
58535         * m4/isnan.m4: New file.
58536
58537 2007-02-24  Bruno Haible  <bruno@clisp.org>
58538
58539         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
58540         assume that an exponent fits in 20 bits.
58541
58542 2007-02-24  Jim Meyering  <jim@meyering.net>
58543
58544         * m4/regex.m4: Update the description of the configure-time option,
58545         --without-included-regex, to state accurately what the defaults are,
58546         and perhaps to give people an idea why using this option is risky.
58547
58548 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
58549
58550         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
58551         loops on small arguments.  This attempts to avoid the problem
58552         Bruno Haible reported for AIX 4.3.2 in
58553         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
58554
58555 2007-02-23  Bruno Haible  <bruno@clisp.org>
58556
58557         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
58558         Needed for help2man.
58559
58560 2007-02-23  Karl Berry  <karl@gnu.org>
58561
58562         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
58563         exists, foo.h should be cvs-ignored, not committed.
58564
58565 2007-02-23  Eric Blake  <ebb9@byu.net>
58566
58567         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
58568         * lib/stat-time.h (includes): Likewise.
58569         * lib/utimecmp.c (includes): Likewise.
58570         * lib/utimens.h (includes): Likewise.
58571         * lib/getdate.y (includes): Also include "timespec.h" for use
58572         internal to the module.
58573         * modules/utimens (Depends-on): Revert yesterday's patch.
58574         * modules/nanosleep (Depends-on): Add missing dependency.
58575
58576 2007-02-22  Bruno Haible  <bruno@clisp.org>
58577
58578         * lib/glob.c: Don't include getlogin_r.h.
58579
58580 2007-02-22  Jim Meyering  <jim@meyering.net>
58581
58582         * modules/utimens (Depends-on): Add timespec, required for
58583         utimens.h's inclusion of timespec.h.
58584
58585 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
58586
58587         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
58588         long unreadable paths in GNU/Linux.  Problem reported by Andreas
58589         Schwab in
58590         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
58591         I'll try to think of a better way to fix the Solaris problem.
58592
58593         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
58594         like glibc; on Solaris 10, it fails with errno == EINVAL.
58595         POSIX says the behavior is unspecified if the first argument is NULL,
58596         so play it safe and never pass NULL to the system getcwd.
58597
58598 2007-02-21  Jim Meyering  <jim@meyering.net>
58599
58600         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
58601         of gettimeofday.  It would conflict with the one now always
58602         provided via sys_time_.h.  Reported by Matthew Woehlke, as
58603         an IRIX 6.5 build failure.
58604
58605 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
58606
58607         Minor fixups to port to Solaris 10 with Sun C 5.8.
58608         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
58609         * modules/getcwd (Depends-on): Add dirfd.
58610         * lib/putenv.c (putenv): #undef it.
58611         (rpl_putenv): New decl.
58612         (malloc, free): Include <stdlib.h> rather than prototyping separately.
58613
58614 2007-02-20  Bruno Haible  <bruno@clisp.org>
58615
58616         * modules/stdio-tests: New file.
58617         * tests/test-stdio.c: New file.
58618
58619         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
58620         (Depends-on): Add stdio.
58621         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
58622         (Include): Use <stdio.h> instead of vsnprintf.h.
58623         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
58624         HAVE_DECL_VSNPRINTF.
58625         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
58626
58627         * modules/snprintf (Files): Remove lib/snprintf.h.
58628         (Depends-on): Add stdio.
58629         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
58630         (Include): Use <stdio.h> instead of snprintf.h.
58631         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
58632         HAVE_DECL_SNPRINTF.
58633         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
58634         * lib/getaddrinfo.c: Likewise.
58635
58636         * modules/stdio: New file.
58637         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
58638         * lib/snprintf.h: Remove file.
58639         * lib/vsnprintf.h: Remove file.
58640         * lib/.cppi-disable: Remove snprintf.h.
58641         * m4/stdio_h.m4: New file.
58642         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
58643
58644 2007-02-20  Jim Meyering  <jim@meyering.net>
58645
58646         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
58647         used by e.g., mingw.  From Bruno Haible.
58648
58649 2007-02-19  Bruno Haible  <bruno@clisp.org>
58650
58651         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
58652         warnings.
58653         Reported by Ben Pfaff <blp@cs.stanford.edu>.
58654
58655 2007-02-19  Bruno Haible  <bruno@clisp.org>
58656
58657         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
58658         from mingw users.
58659
58660 2007-02-19  Bruno Haible  <bruno@clisp.org>
58661
58662         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
58663         warnings.
58664         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
58665
58666 2007-02-19  Jim Meyering  <jim@meyering.net>
58667
58668         Don't use FD after a successful "fdopendir (fd)".
58669         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
58670         Reset it by calling dirfd on the just-obtained DIR*.
58671
58672         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
58673         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
58674
58675 2007-02-18  Bruno Haible  <bruno@clisp.org>
58676
58677         * lib/readlink.c: Include <unistd.h>.
58678         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
58679         HAVE_READLINK.
58680         * modules/readlink (Depends-on): Add unistd.
58681         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
58682         (Include): Add <unistd.h>.
58683
58684         * lib/getlogin_r.h: Remove file.
58685         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
58686         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
58687         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
58688         HAVE_DECL_GETLOGIN_R.
58689         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
58690         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
58691         (Include): Use <unistd.h> instead of getlogin_r.h.
58692
58693         * lib/getcwd.h: Remove file.
58694         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
58695         * lib/xgetcwd.c: Likewise.
58696         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
58697         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
58698         * modules/getcwd (Files): Remove lib/getcwd.h.
58699         (Depends-on): Add unistd.
58700         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
58701         (Include): Use <unistd.h> instad of getcwd.h.
58702
58703         * lib/ftruncate.c: Include <unistd.h> first.
58704         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
58705         Set HAVE_FTRUNCATE.
58706         * modules/ftruncate (Depends-on): Add unistd.
58707         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
58708
58709         * lib/fchdir.c: Include <unistd.h> first.
58710         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
58711         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
58712         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
58713         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
58714         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
58715
58716         * lib/dup2.c: Include <unistd.h> first.
58717         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
58718         HAVE_DUP2.
58719         * modules/dup2 (Depends-on): Add unistd.
58720         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
58721
58722         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
58723         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
58724         REPLACE_CHOWN. Don't define chown as a macro here.
58725         * modules/chown (Depends-on): Add unistd.
58726         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
58727
58728         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
58729         Add definition for GL_LINK_WARNING.
58730         (chown, dup2): New declarations.
58731         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
58732         link warning.
58733         (ftruncate): New declaration.
58734         (getcwd): New declaration, taken from old getcwd.h.
58735         (getlogin_r): New declaration, taken from old getlogin_r.h.
58736         (readlink): New declaration.
58737         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
58738         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
58739         (gl_PREREQ_UNISTD): Remove macro.
58740         (gl_UNISTD_MODULE_INDICATOR): New macro.
58741         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
58742         many new variables. Don't set UNISTD_H.
58743         * modules/unistd (Description): Change.
58744         (Depends-on): Add link-warning.
58745         (configure.ac): Update.
58746         (Makefile.am): Create unistd.h always. Substitute many new variables
58747         into it.
58748
58749 2007-02-18  Bruno Haible  <bruno@clisp.org>
58750
58751         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
58752         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
58753         HAVE_GETSUBOPT.
58754         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
58755         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
58756         * lib/getsubopt.h: Remove file.
58757         * modules/getsubopt (Files): Remove lib/getsubopt.h.
58758         (Depends-on): Add stdlib.
58759         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
58760         (Includes): Use <stdlib.h> instead of getsubopt.h.
58761         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
58762         Set HAVE_GETSUBOPT.
58763         * lib/getsubopt.c: Don't include getsubopt.h.
58764
58765 2007-02-18  Bruno Haible  <bruno@clisp.org>
58766
58767         * modules/fchdir (Depends-on): Add dup2.
58768
58769 2007-02-18  Bruno Haible  <bruno@clisp.org>
58770
58771         * lib/stdlib_.h: Handle glibc's special invocation convention
58772         specially.
58773
58774 2007-02-18  Bruno Haible  <bruno@clisp.org>
58775
58776         * modules/stdlib-tests: New file.
58777         * tests/test-stdlib.c: New file.
58778
58779         * modules/mkstemp (Files): Remove lib/mkstemp.h.
58780         (Depends-on): Add stdlib.
58781         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
58782         (Includes): Use <stdlib.h> instead of mkstemp.h.
58783         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
58784         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
58785         * lib/mkstemp.c: Don't include mkstemp.h.
58786         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
58787         * lib/stdlib--.h: Don't include mkstemp.h.
58788
58789         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
58790         (Depends-on): Add stdlib.
58791         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
58792         (Includes): Use <stdlib.h> instead of mkdtemp.h.
58793         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
58794         HAVE_MKDTEMP.
58795         * lib/mkdtemp.c: Don't include mkdtemp.h.
58796         * lib/clean-temp.c: Don't include mkdtemp.h.
58797
58798         * modules/exit (Files): Remove lib/exit.h.
58799         (Depends-on): Add stdlib.
58800         (Makefile.am): Remove lib_SOURCES.
58801         (Include): Use <stdlib.h> instead of exit.h.
58802         * lib/argmatch.c: Don't include exit.h.
58803         * lib/execute.c: Likewise.
58804         * lib/pagealign_alloc.c: Likewise.
58805         * lib/pipe.c: Likewise.
58806         * lib/wait-process.c: Likewise.
58807         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
58808         * lib/exitfail.c: Likewise.
58809         * lib/savewd.c: Likewise.
58810         * lib/xsetenv.c: Likewise.
58811
58812         * modules/stdlib: New file.
58813         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
58814         and extra comments about mkstemp().
58815         * lib/exit.h: Remove file.
58816         * lib/mkdtemp.h: Remove file.
58817         * lib/mkstemp.h: Remove file.
58818         * m4/stdlib_h.m4: New file.
58819         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
58820
58821 2007-02-18  Bruno Haible  <bruno@clisp.org>
58822
58823         * modules/math-tests: New file.
58824         * tests/test-math.c: New file.
58825
58826         * modules/math: New file.
58827         * modules/mathl (Files): Remove lib/mathl.h.
58828         (Depends-on): Add math.
58829         (Makefile.am): Don't mention mathl.h.
58830         (Include): Use <math.h> instead of mathl.h.
58831         * lib/math_.h: New file.
58832         * lib/mathl.h: Remove file.
58833         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
58834         mathl.h.
58835         * lib/asinl.c: Likewise.
58836         * lib/atanl.c: Likewise.
58837         * lib/ceill.c: Likewise.
58838         * lib/cosl.c: Likewise.
58839         * lib/expl.c: Likewise.
58840         * lib/floorl.c: Likewise.
58841         * lib/frexpl.c: Likewise.
58842         * lib/ldexpl.c: Likewise.
58843         * lib/logl.c: Likewise.
58844         * lib/sincosl.c: Likewise.
58845         * lib/sinl.c: Likewise.
58846         * lib/sqrtl.c: Likewise.
58847         * lib/tanl.c: Likewise.
58848         * lib/trigl.c: Likewise.
58849         * m4/math_h.m4: New file.
58850         * MODULES.html.sh (Mathematics): Add math.
58851
58852 2007-02-17  Bruno Haible  <bruno@clisp.org>
58853
58854         * modules/wctype-tests: New file.
58855         * tests/test-wctype.c: New file.
58856
58857         * modules/wchar-tests: New file.
58858         * tests/test-wchar.c: New file.
58859
58860         * modules/unistd-tests: New file.
58861         * tests/test-unistd.c: New file.
58862
58863         * modules/time-tests: New file.
58864         * tests/test-time.c: New file.
58865
58866         * modules/sysexits-tests: New file.
58867         * tests/test-sysexits.c: New file.
58868
58869         * modules/sys_time-tests: New file.
58870         * tests/test-sys_time.c: New file.
58871
58872         * modules/sys_stat-tests: New file.
58873         * tests/test-sys_stat.c: New file.
58874
58875         * modules/sys_socket-tests: New file.
58876         * tests/test-sys_socket.c: New file.
58877
58878         * modules/sys_select-tests: New file.
58879         * tests/test-sys_select.c: New file.
58880
58881         * modules/string-tests: New file.
58882         * tests/test-string.c: New file.
58883
58884         * modules/stdbool-tests: New file.
58885         * tests/test-stdbool.c: New file.
58886
58887         * modules/netinet_in-tests: New file.
58888         * tests/test-netinet_in.c: New file.
58889
58890         * modules/inttypes-tests: New file.
58891         * tests/test-inttypes.c: New file.
58892
58893         * modules/fcntl-tests: New file.
58894         * tests/test-fcntl.c: New file.
58895
58896         * modules/byteswap-tests: New file.
58897         * tests/test-byteswap.c: New file.
58898
58899         * modules/arpa_inet-tests: New file.
58900         * tests/test-arpa_inet.c: New file.
58901
58902 2007-02-17  Bruno Haible  <bruno@clisp.org>
58903
58904         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
58905         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
58906         if the corresponding module is not enabled. Emit link warnings if
58907         the function is used nevertheless.
58908         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
58909         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
58910         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
58911         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
58912         * modules/inttypes (Depends-on): Add link-warning.
58913         (Makefile.am): Copy the contents of build-aux/link-warning.h into
58914         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
58915         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
58916         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
58917         * modules/imaxdiv (configure.ac): Likewise.
58918         * modules/strtoimax (configure.ac): Likewise.
58919         * modules/strtoumax (configure.ac): Likewise.
58920
58921 2007-02-17  Bruno Haible  <bruno@clisp.org>
58922
58923         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
58924         gl_STRING_MODULE_INDICATOR_DEFAULTS.
58925         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
58926         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
58927
58928 2007-02-17  Bruno Haible  <bruno@clisp.org>
58929
58930         * modules/link-warning: New file.
58931         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
58932         * lib/string_.h (GL_LINK_WARNING): Remove definition.
58933         * modules/string (Depends-on): Add link-warning.
58934         (Makefile.am): Copy the contents of build-aux/link-warning.h into
58935         string.h.
58936         * MODULES.html.sh (Support for building libraries and executables): Add
58937         link-warning.
58938
58939 2007-02-17  Bruno Haible  <bruno@clisp.org>
58940
58941         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
58942         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
58943         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
58944         long lines.
58945
58946 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
58947             Bruno Haible  <bruno@clisp.org>
58948
58949         * modules/tmpfile: New file.
58950         * lib/tmpfile.c: New file.
58951         * m4/tmpfile.m4: New file.
58952         * MODULES.html.sh (func_all_modules): New section "Input/output".
58953
58954 2007-02-15  Bruno Haible  <bruno@clisp.org>
58955
58956         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
58957         (supports_delete_on_close): New function.
58958         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
58959
58960 2007-02-14  Bruno Haible  <bruno@clisp.org>
58961
58962         * modules/mbspcasecmp-tests: New file.
58963         * tests/test-mbspcasecmp.sh: New file.
58964         * tests/test-mbspcasecmp.c: New file.
58965
58966         New module mbspcasecmp.
58967         * modules/mbspcasecmp: New file.
58968         * lib/mbspcasecmp.c: New file.
58969         * lib/string_.h (strncasecmp): Change warning message.
58970         (mbspcasecmp): New declaration.
58971         * m4/mbspcasecmp.m4: New file.
58972         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
58973         GNULIB_MBSPCASECMP.
58974         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
58975         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
58976
58977 2007-02-14  Bruno Haible  <bruno@clisp.org>
58978
58979         * modules/mbsncasecmp-tests: New file.
58980         * tests/test-mbsncasecmp.sh: New file.
58981         * tests/test-mbsncasecmp.c: New file.
58982
58983         New module mbsncasecmp.
58984         * modules/mbsncasecmp: New file.
58985         * lib/mbsncasecmp.c: New file.
58986         * lib/string_.h (mbsncasecmp): New declaration.
58987         * m4/mbsncasecmp.m4: New file.
58988         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
58989         GNULIB_MBSNCASECMP.
58990         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
58991         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
58992
58993 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
58994
58995         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
58996         Verify that it doesn't overlap with our flags.
58997         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
58998         do not have the desired effect in multibyte locales; instead, use
58999         mbscasecmp.
59000         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
59001         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
59002         we don't require GNU fnmatch ourselves (if our users require it, they
59003         should do so explicitly).
59004
59005         Fix regex code so it doesn't rely on strcasecmp.
59006         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
59007         Otherwise, include gnulib's langinfo.h.
59008         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
59009         undesirable behavior in non-C locales.  Instead, rely on localecharset.
59010         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
59011         * modules/regex (FILES): Remove m4/codeset.m4.
59012         (Depends-on): Add localcharset.  Remove strcase.
59013
59014 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59015
59016         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
59017         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
59018
59019 2007-02-13  Bruno Haible  <bruno@clisp.org>
59020
59021         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
59022         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
59023
59024 2007-02-12  Bruno Haible  <bruno@clisp.org>
59025
59026         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
59027         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
59028         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
59029         time warning rather than a link error.
59030
59031 2007-02-12  Bruno Haible  <bruno@clisp.org>
59032
59033         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
59034         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
59035         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
59036
59037 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
59038
59039         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
59040         args, not 2.
59041
59042 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
59043
59044         New module 'time', so that apps can include <time.h> as per
59045         POSIX and GNU instead of separate include files like time_r.h
59046         and timegm.h.  This implementation tries out a simpler approach
59047         for replacing decls in standard include files (as compared to
59048         the string module), somewhat as an experiment.
59049
59050         * config/srclist.txt: Comment out mktime.c for now.
59051         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
59052         since it doesn't apply any more.  Use generic wording instead.
59053         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
59054         'time'.
59055         * lib/time_.h, m4/time_h.m4, modules/time: New files.
59056         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
59057         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
59058         Don't include <sys/types.h>; no longer needed since we assume C89.
59059         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
59060         * lib/strftime.c: Likewise.
59061         * lib/time_r.c: Likewise.
59062         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
59063         * lib/nanosleep.c: Include <time.h> first, to check interface.
59064         * lib/strptime.c: Likewise.
59065         * lib/time_r.c: Likewise.
59066         * lib/timegm.c: Likewise.
59067         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
59068         needed.
59069         * lib/timegm.c: Don't include timegm.h; no longer needed.
59070         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
59071         time.h now handles any problems in that area.
59072         (struct timespec, nanosleep): Remove; time.h now arranges for these.
59073         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
59074         that time.h defines struct timespec.
59075         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
59076         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
59077         handles that.
59078         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
59079         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
59080         needed.  Set REPLACE_LOCALTIME.
59081         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
59082         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
59083         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
59084         nanosleep; time_h.m4 now does that.  Don't require
59085         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
59086         module handles this now.
59087         * modules/getdate (Depends-on): Remove timespec.  Add time.
59088         * modules/nanosleep (Depends-on): Likewise.
59089         * modules/stat-time (Depends-on): Likewise.
59090         * modules/nanosleep (Include): Include time.h, not timespec.h.
59091         * modules/strptime (Files): Remove lib/strptime.h.
59092         (Depends-on): Add extensions, time.
59093         (Include): Include time.h, not strptime.h.
59094         * modules/time_r (Files): Remove lib/time_r.h.
59095         (Depends-on): Add time.
59096         (Include): Include time.h, not time_r.h.
59097         * modules/timegm: Likewise.
59098         * modules/timespec (Description): Now does timespec-related decls
59099         of our own, instead of struct timespec itself.
59100         (Depends-on): Add time; remove extensions.
59101         (Maintainer): Add self.
59102         * modules/utimecmp (Depends-on): Add time; remove timespec.
59103         * modules/utimens (Depends-on): Likewise.
59104         * modules/xnanosleep (Depends-on): Likewise.
59105
59106 2007-02-11  Bruno Haible  <bruno@clisp.org>
59107
59108         * lib/c-strstr.c: Include allocsa.h.
59109         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
59110         * lib/c-strcasestr.c: Include allocsa.h.
59111         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
59112         * lib/strcasestr.c: Include allocsa.h.
59113         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
59114         * lib/mbsstr.c: Include allocsa.h.
59115         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
59116         allocsa/freesa instead of malloc/free.
59117         * lib/mbscasestr.c: Include allocsa.h.
59118         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
59119         allocsa/freesa instead of malloc/free.
59120         * modules/c-strstr (Depends-on): Add allocsa.
59121         * modules/c-strcasestr (Depends-on): Likewise.
59122         * modules/strcasestr (Depends-on): Likewise.
59123         * modules/mbsstr (Depends-on): Likewise.
59124         * modules/mbscasestr (Depends-on): Likewise.
59125
59126 2007-02-11  Bruno Haible  <bruno@clisp.org>
59127
59128         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
59129
59130         * modules/mbsspn-tests: New file.
59131         * tests/test-mbsspn.sh: New file.
59132         * tests/test-mbsspn.c: New file.
59133
59134 2007-02-11  Bruno Haible  <bruno@clisp.org>
59135
59136         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
59137
59138         * modules/mbspbrk-tests: New file.
59139         * tests/test-mbspbrk.sh: New file.
59140         * tests/test-mbspbrk.c: New file.
59141
59142 2007-02-11  Bruno Haible  <bruno@clisp.org>
59143
59144         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
59145         unneeded cast.
59146
59147         * modules/mbscspn-tests: New file.
59148         * tests/test-mbscspn.sh: New file.
59149         * tests/test-mbscspn.c: New file.
59150
59151 2007-02-11  Bruno Haible  <bruno@clisp.org>
59152
59153         * modules/mbscasecmp-tests: New file.
59154         * tests/test-mbscasecmp.sh: New file.
59155         * tests/test-mbscasecmp.c: New file.
59156
59157 2007-02-11  Bruno Haible  <bruno@clisp.org>
59158
59159         Ensure O(n) worst-case complexity of mbscasestr.
59160         * lib/mbscasestr.c: Include stdbool.h.
59161         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
59162         functions.
59163         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
59164         the bookkeeping indicates that it's worth it.
59165         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
59166
59167         * modules/mbscasestr-tests: New file.
59168         * tests/test-mbscasestr1.c: New file.
59169         * tests/test-mbscasestr2.sh: New file.
59170         * tests/test-mbscasestr2.c: New file.
59171         * tests/test-mbscasestr3.sh: New file.
59172         * tests/test-mbscasestr3.c: New file.
59173         * tests/test-mbscasestr4.sh: New file.
59174         * tests/test-mbscasestr4.c: New file.
59175         * m4/locale-tr.m4: New file.
59176
59177 2007-02-11  Bruno Haible  <bruno@clisp.org>
59178
59179         Ensure O(n) worst-case complexity of mbsstr.
59180         * lib/mbsstr.c: Include stdbool.h.
59181         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
59182         functions.
59183         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
59184         bookkeeping indicates that it's worth it.
59185         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
59186
59187         * modules/mbsstr-tests: New file.
59188         * tests/test-mbsstr1.c: New file.
59189         * tests/test-mbsstr2.sh: New file.
59190         * tests/test-mbsstr2.c: New file.
59191         * tests/test-mbsstr3.sh: New file.
59192         * tests/test-mbsstr3.c: New file.
59193         * m4/locale-fr.m4: New file.
59194
59195 2007-02-11  Bruno Haible  <bruno@clisp.org>
59196
59197         * lib/mbsrchr.c (mbsrchr): Fix bug.
59198
59199         * modules/mbsrchr-tests: New file.
59200         * tests/test-mbsrchr.sh: New file.
59201         * tests/test-mbsrchr.c: New file.
59202
59203 2007-02-11  Bruno Haible  <bruno@clisp.org>
59204
59205         * lib/mbschr.c (mbschr): Fix bug.
59206
59207         * modules/mbschr-tests: New file.
59208         * tests/test-mbschr.sh: New file.
59209         * tests/test-mbschr.c: New file.
59210         * m4/locale-zh.m4: New file.
59211
59212 2007-02-11  Bruno Haible  <bruno@clisp.org>
59213
59214         Support for copying multibyte string iterators.
59215         * lib/mbiter.h: Include <string.h>.
59216         (mbiter_multi_copy): New function.
59217         (mbi_copy): New macro.
59218         * lib/mbuiter.h: Include <string.h>.
59219         (mbuiter_multi_copy): New function.
59220         (mbui_copy): New macro.
59221
59222 2007-02-11  Bruno Haible  <bruno@clisp.org>
59223
59224         New module mbslen.
59225         * modules/mbslen: New file.
59226         * lib/mbslen.c: New file.
59227         * lib/string_.h (mbslen): New declaration.
59228         * m4/mbslen.m4: New file.
59229         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59230         GNULIB_MBSLEN.
59231         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
59232         * MODULES.html.sh (Internationalization functions): Add mbslen.
59233
59234 2007-02-11  Bruno Haible  <bruno@clisp.org>
59235
59236         Ensure O(n) worst-case complexity of strcasestr substitute.
59237         * lib/strcasestr.c: Include stdbool.h.
59238         (knuth_morris_pratt): New function.
59239         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
59240         bookkeeping indicates that it's worth it.
59241         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
59242
59243         * modules/strcasestr-tests: New file.
59244         * tests/test-strcasestr.c: New file.
59245
59246 2007-02-11  Bruno Haible  <bruno@clisp.org>
59247
59248         Ensure O(n) worst-case complexity of c_strcasestr.
59249         * lib/c-strcasestr.c: Include stdbool.h, string.h.
59250         (knuth_morris_pratt): New function.
59251         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
59252         the bookkeeping indicates that it's worth it.
59253         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
59254
59255         * modules/c-strcasestr-tests: New file.
59256         * tests/test-c-strcasestr.c: New file.
59257
59258 2007-02-11  Bruno Haible  <bruno@clisp.org>
59259
59260         Ensure O(n) worst-case complexity of c_strstr.
59261         * lib/c-strstr.c: Include stdbool.h, string.h.
59262         (knuth_morris_pratt): New function.
59263         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
59264         bookkeeping indicates that it's worth it.
59265         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
59266
59267         * lib/c-strstr.c: Complete rewrite for maintainability.
59268
59269         * modules/c-strstr-tests: New file.
59270         * tests/test-c-strstr.c: New file.
59271
59272 2007-02-11  Bruno Haible  <bruno@clisp.org>
59273
59274         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
59275         5.2.1 and earlier, whereby \055 was treated just like the range
59276         delimiter '-'.
59277         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
59278
59279 2007-02-08  Bruno Haible  <bruno@clisp.org>
59280
59281         * modules/regex (Depends-on): Add stdbool.
59282         Reported by Dalibor Topic <robilad@kaffe.org>.
59283
59284 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
59285
59286         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
59287         Prefer returning from main to exiting from it.
59288         Remove unnecessary parens after sizeof.
59289
59290 2007-02-05  Bruno Haible  <bruno@clisp.org>
59291
59292         New module mbssep.
59293         * modules/mbssep: New file.
59294         * lib/mbssep.c: New file.
59295         * lib/string_.h (strsep): Add a conditional link warning.
59296         (mbssep): New declaration.
59297         * m4/mbssep.m4: New file.
59298         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59299         GNULIB_MBSSEP.
59300         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
59301         * MODULES.html.sh (Internationalization functions): Add mbssep.
59302
59303 2007-02-05  Bruno Haible  <bruno@clisp.org>
59304
59305         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
59306         Optimize search in case of 1 delimiter.
59307
59308 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
59309
59310         * lib/acl.h: Include sys/types.h before sys/acl.h.
59311
59312 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
59313
59314         Merge upstream fix for glibc bugzilla #3957:
59315
59316         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
59317
59318         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
59319         bit for RE_HAT_LISTS_NOT_NEWLINE.
59320         (build_charclass_op): Remove bogus comment.
59321
59322 2007-02-05  Simon Josefsson  <simon@josefsson.org>
59323
59324         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
59325
59326 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
59327
59328         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
59329         * lib/memmem.c [!defined _LIBC]: Include config.h.
59330
59331 2007-02-04  Bruno Haible  <bruno@clisp.org>
59332
59333         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
59334         warning message.
59335
59336 2007-02-04  Bruno Haible  <bruno@clisp.org>
59337
59338         New module mbstok_r.
59339         * modules/mbstok_r: New file.
59340         * lib/mbstok_r.c: New file.
59341         * lib/string_.h (strtok_r): Change argument names to match the
59342         comments. Add a conditional link warning.
59343         (mbstok_r): New declaration.
59344         * m4/mbstok_r.m4: New file.
59345         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59346         GNULIB_MBSTOK_R.
59347         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
59348         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
59349
59350 2007-02-04  Bruno Haible  <bruno@clisp.org>
59351
59352         New module mbsspn.
59353         * modules/mbsspn: New file.
59354         * lib/mbsspn.c: New file.
59355         * lib/string_.h (strspn): Add a conditional link warning.
59356         (mbsspn): New declaration.
59357         * m4/mbsspn.m4: New file.
59358         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59359         GNULIB_MBSSPN.
59360         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
59361         * MODULES.html.sh (Internationalization functions): Add mbsspn.
59362
59363 2007-02-04  Bruno Haible  <bruno@clisp.org>
59364
59365         New module mbspbrk.
59366         * modules/mbspbrk: New file.
59367         * lib/mbspbrk.c: New file.
59368         * lib/string_.h (strpbrk): Add a conditional link warning.
59369         (mbspbrk): New declaration.
59370         * m4/mbspbrk.m4: New file.
59371         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59372         GNULIB_MBSPBRK.
59373         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
59374         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
59375
59376 2007-02-04  Bruno Haible  <bruno@clisp.org>
59377
59378         New module mbscspn.
59379         * modules/mbscspn: New file.
59380         * lib/mbscspn.c: New file.
59381         * lib/string_.h (strcspn): Add a conditional link warning.
59382         (mbscspn): New declaration.
59383         * m4/mbscspn.m4: New file.
59384         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59385         GNULIB_MBSCSPN.
59386         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
59387         * MODULES.html.sh (Internationalization functions): Add mbscspn.
59388
59389 2007-02-04  Bruno Haible  <bruno@clisp.org>
59390
59391         New module mbscasestr, reduced goal of strcasestr.
59392         * modules/mbscasestr: New file.
59393         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
59394         (mbscasestr): Renamed from strcasestr.
59395         * lib/strcasestr.c: Don't include mbuiter.h.
59396         (strcasestr): Remove support for multibyte locales.
59397         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
59398         Change the conditional link warning.
59399         (mbscasestr): New declaration.
59400         * m4/mbscasestr.m4: New file.
59401         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
59402         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
59403         REPLACE_STRCASESTR.
59404         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
59405         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
59406         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
59407         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
59408         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
59409         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
59410         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
59411         (Depends-on): Remove mbuiter.
59412         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
59413
59414 2007-02-04  Bruno Haible  <bruno@clisp.org>
59415
59416         Simplify handling of strncasecmp.
59417         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
59418         the conditional link warning.
59419         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
59420         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
59421         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
59422         * modules/strcase (configure.ac): Don't invoke
59423         gl_STRING_MODULE_INDICATOR.
59424         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
59425
59426 2007-02-04  Bruno Haible  <bruno@clisp.org>
59427
59428         New module mbscasecmp, reduced goal of strcasecmp.
59429         * modules/mbscasecmp: New file.
59430         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
59431         (mbscasecmp): Renamed from strcasecmp.
59432         * lib/strcasecmp.c: Don't include mbuiter.h.
59433         (strcasecmp): Remove support for multibyte locales.
59434         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
59435         Change the conditional link warning.
59436         (mbscasecmp): New declaration.
59437         * m4/mbscasecmp.m4: New file.
59438         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
59439         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
59440         REPLACE_STRCASECMP.
59441         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
59442         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59443         GNULIB_MBSCASECMP.
59444         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
59445         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
59446         * modules/strcase (Files): Remove m4/mbrtowc.m4.
59447         (Depends-on): Remove mbuiter.
59448         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
59449
59450 2007-02-04  Bruno Haible  <bruno@clisp.org>
59451
59452         New module mbsstr. Remove module strstr.
59453         * modules/mbsstr: New file.
59454         * modules/strstr: Remove file.
59455         * lib/mbsstr.c: Renamed from lib/strstr.c.
59456         (mbsstr): Renamed from strstr.
59457         * lib/string_.h (strstr): Remove declaration. Change the conditional
59458         link warning.
59459         (mbsstr): New declaration.
59460         * m4/mbsstr.m4: New file.
59461         * m4/strstr.m4: Remove file.
59462         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
59463         REPLACE_STRSTR.
59464         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
59465         Don't initialize GNULIB_STRSTR.
59466         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
59467         substitute GNULIB_STRSTR and REPLACE_STRSTR.
59468         * MODULES.html.sh (Internationalization functions): Add mbsstr.
59469         (Support for systems lacking ANSI C 89): Remove strstr.
59470
59471 2007-02-04  Bruno Haible  <bruno@clisp.org>
59472
59473         New module mbsrchr.
59474         * modules/mbsrchr: New file.
59475         * lib/mbsrchr.c: New file.
59476         * lib/string_.h (strrchr): Add a conditional link warning.
59477         (mbsrchr): New declaration.
59478         * m4/mbsrchr.m4: New file.
59479         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59480         GNULIB_MBSRCHR.
59481         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
59482         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
59483
59484 2007-02-04  Bruno Haible  <bruno@clisp.org>
59485
59486         New module mbschr.
59487         * modules/mbschr: New file.
59488         * lib/mbschr.c: New file.
59489         * lib/string_.h (strchr): Add a conditional link warning.
59490         (mbschr): New declaration.
59491         * m4/mbschr.m4: New file.
59492         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59493         GNULIB_MBSCHR.
59494         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
59495         * MODULES.html.sh (Internationalization functions): Add mbschr.
59496
59497 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
59498
59499         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
59500
59501         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
59502
59503 2007-02-04  Bruno Haible  <bruno@clisp.org>
59504
59505         New module description section 'configure.ac-early'.
59506         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
59507         (func_get_autoconf_early_snippet): New function.
59508         (func_import, func_create_testdir): Use it. Remove special cases for
59509         modules 'extensions' and 'lock'.
59510         * modules/extensions (configure.ac-early): Require
59511         gl_USE_SYSTEM_EXTENSIONS.
59512         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
59513
59514 2007-02-04  Bruno Haible  <bruno@clisp.org>
59515
59516         Make use of gcj-4.3's -fsource and -ftarget option.
59517         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
59518         and if so try the options -fsource and -ftarget.
59519         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
59520         source_version, ftarget_option, target_version arguments.
59521         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
59522         (is_envjavac_oldgcj_14_14_usable): Renamed from
59523         is_envjavac_gcj_14_14_usable.
59524         (is_envjavac_oldgcj_14_13_usable): Renamed from
59525         is_envjavac_gcj_14_13_usable.
59526         (is_gcj_present): Update.
59527         (is_gcj_43, is_gcj43_usable): New functions.
59528         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
59529         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
59530         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
59531         try the options -fsource and -ftarget.
59532
59533 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
59534
59535         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
59536         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
59537         larger value.
59538
59539 2007-02-03  Jim Meyering  <jim@meyering.net>
59540
59541         Give tools a better chance to allocate space for very large buffers.
59542         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
59543
59544         Make pwd and readlink work also when run with an unreadable parent dir
59545         on systems with openat support.
59546         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
59547         provided getcwd function, even when we have openat support.
59548         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
59549
59550 2007-02-02  Bruno Haible  <bruno@clisp.org>
59551
59552         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
59553         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
59554         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
59555         portability problems if one of these functions is only used on specific
59556         platforms.
59557         Reported by Paul Eggert.
59558
59559 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
59560
59561         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
59562         is causing more trouble than it's curing.
59563         * lib/regex_internal.h (__mempcpy): Remove.
59564         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
59565         (and make the code a tad smaller to boot).
59566         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
59567
59568 2007-02-02  Jim Meyering  <jim@meyering.net>
59569
59570         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
59571         section, not in the Makefile.am: one.
59572
59573 2007-02-02  Eric Blake  <ebb9@byu.net>
59574
59575         * lib/strchrnul.c: Always include config.h first.
59576
59577         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
59578         gnulib strstr is not necessary here.
59579
59580 2007-02-02  Simon Josefsson  <simon@josefsson.org>
59581
59582         * m4/socklen.m4: Fix typo.
59583
59584 2007-02-02  Eric Blake  <ebb9@byu.net>
59585
59586         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
59587         * modules/netinet_in (Makefile.am): Likewise.
59588
59589 2007-02-01  Bruno Haible  <bruno@clisp.org>
59590
59591         * lib/string_.h (GL_LINK_WARNING): New macro.
59592         (strcasecmp, strstr, strcasestr): If provided by the system,
59593         conditionally define as a macro that leads to a warning instead of to
59594         an error.
59595         (strncasecmp): Conditionally define as a macro that leads to a warning.
59596
59597 2007-02-01  Karl Berry  <karl@gnu.org>
59598
59599         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
59600
59601 2007-02-01  Bruno Haible  <bruno@clisp.org>
59602
59603         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
59604         renamings.
59605
59606 2007-02-01  Eric Blake  <ebb9@byu.net>
59607
59608         * modules/regex (Depends-on): Revert dependence on mempcpy.
59609         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
59610         module's definition of mempcpy.
59611         Reported by Paul Eggert.
59612
59613 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
59614
59615         * lib/string_.h: If the gnulib module XYZ is not present, undefine
59616         the symbol XYZ before redefining it.  This fixes a problem with
59617         programs that don't use XYZ, when compiled on systems that define
59618         XYZ to something else.
59619
59620 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
59621
59622         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
59623         occurs when "mkdir -m foo" creates a setgid directory that is (1)
59624         writeable to group or other and (2) is intended to have a special
59625         mode bit that is set or cleared.  In such a case, the directory
59626         should be neither group- nor other-writeable until the special
59627         mode bits are right.
59628
59629 2007-01-31  Eric Blake  <ebb9@byu.net>
59630
59631         * modules/mountlist (Depends-on): Add strstr.
59632
59633         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
59634         bug.
59635         * modules/string (Makefile.am): Remove redundant replacement.
59636         * modules/regex (Depends-on): Add mempcpy.
59637
59638 2007-01-31  Bruno Haible  <bruno@clisp.org>
59639
59640         New module description field 'Link'.
59641         * gnulib-tool (func_usage): Document --extract-link-directive.
59642         (sed_extract_prog): Recognize 'Link' directive.
59643         (func_get_link_directive): New function.
59644         (func_import): Show summary of link directives.
59645         Handle --extract-link-directive option.
59646         * modules/acl (Link): New section.
59647         * modules/clock-time (Link): New section.
59648         * modules/euidaccess (Link): New section.
59649         * modules/gettext (Link): New section.
59650         * modules/iconv (Link): New section.
59651         * modules/lock (Link): New section.
59652         * modules/nanosleep (Link): New section.
59653         * modules/readline (Link): New section.
59654
59655 2007-01-27  Bruno Haible  <bruno@clisp.org>
59656
59657         Enforce the use of gnulib modules for unportable <string.h> functions.
59658         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
59659         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
59660         (gl_HEADER_STRING_H_BODY): Require it.
59661         * lib/string_.h: If the gnulib module XYZ is not present, redefine
59662         the symbol XYZ to one that gives a link error.
59663         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
59664         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
59665         * modules/mempcpy (configure.ac): Likewise.
59666         * modules/memrchr (configure.ac): Likewise.
59667         * modules/stpcpy (configure.ac): Likewise.
59668         * modules/stpncpy (configure.ac): Likewise.
59669         * modules/strcase (configure.ac): Likewise.
59670         * modules/strcasestr (configure.ac): Likewise.
59671         * modules/strchrnul (configure.ac): Likewise.
59672         * modules/strdup (configure.ac): Likewise.
59673         * modules/strndup (configure.ac): Likewise.
59674         * modules/strnlen (configure.ac): Likewise.
59675         * modules/strpbrk (configure.ac): Likewise.
59676         * modules/strsep (configure.ac): Likewise.
59677         * modules/strstr (configure.ac): Likewise.
59678         * modules/strtok_r (configure.ac): Likewise.
59679
59680 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
59681
59682         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
59683
59684 2007-01-30  Jim Meyering  <jim@meyering.net>
59685
59686         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
59687
59688 2007-01-29  Bruno Haible  <bruno@clisp.org>
59689
59690         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
59691         * lib/execute.c: Likewise.
59692         * lib/pipe.c: Likewise.
59693         * lib/printf-args.h: Likewise.
59694         * lib/printf-args.c: Likewise.
59695         * lib/printf-parse.c: Likewise.
59696         * lib/vasnprintf.c: Likewise.
59697
59698 2007-01-29  Eric Blake  <ebb9@byu.net>
59699
59700         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
59701         declaration.
59702
59703 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
59704
59705         * lib/strptime.h (strptime): Use 'restrict' for args where
59706         POSIX requires this.
59707         * lib/strptime.c (strptime): Likewise.
59708         Change license notice from LGPL to GPL, since gnulib-tool will
59709         change this as needed.
59710         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
59711         defined.
59712         Include "strptime.h" first, to check interface.
59713         Do not #undef _LIBC and _NL_CURRENT.
59714         Do not include <stdlib.h>; no longer needed.
59715         Include "time_r.h" and declare ptime_locale_status
59716         only if _LIBC is not defined.
59717         (__P): Remove unused macro.
59718         (match_string): Bring back glibc version, but use it only if _LIBC
59719         is defined.
59720         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
59721         Remove unnecessary assertion and abort() call.
59722         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
59723         * m4/strptime.m4: Fix serial number comment.
59724         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
59725         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
59726         (Depends-on): Add time_r.
59727
59728 2007-01-29  Bruno Haible  <bruno@clisp.org>
59729
59730         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
59731         strptime.
59732         * modules/strptime (Depends-on): Add stdbool.
59733         * lib/strptime.h: Include <time.h> always. Add comments.
59734
59735 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
59736
59737         * modules/strptime: New file.
59738         * lib/strptime.h: New file.
59739         * lib/strptime.c: New file.
59740         * m4/strptime.m4: New file.
59741
59742 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
59743
59744         * MODULES.html.sh: New module mpsort.
59745         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
59746
59747         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
59748         a circularity problem with HP-UX ia64 reported by Bob Proulx in
59749         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
59750         All uses changed.
59751         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
59752         All uses changed.
59753         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
59754         to _Restrict_.
59755         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
59756         the parameter matches the prototype.
59757
59758 2007-01-28  Jim Meyering  <jim@meyering.net>
59759
59760         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
59761         sys/time.h here, reverting that part of the previous patch:
59762         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
59763
59764 2007-01-28  Bruno Haible  <bruno@clisp.org>
59765
59766         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
59767         value of $(SYS_TIME_H).
59768         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
59769         remove it conditionally, too. [added by Jim Meyering]
59770         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
59771         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
59772         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
59773         GETTIMEOFDAY_REPLACEMENT to 1.
59774
59775 2007-01-28  Bruno Haible  <bruno@clisp.org>
59776
59777         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
59778         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
59779         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
59780         Set UNISTD_H instead of UNISTD_H2.
59781         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
59782
59783 2007-01-28  Bruno Haible  <bruno@clisp.org>
59784
59785         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
59786         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
59787
59788 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59789
59790         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
59791         (func_create_testdir): Ensure C locale for `grep' and `tr'
59792         character ranges.
59793         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
59794         ACLOCAL_AMFLAGS parsing state machine.
59795
59796 2007-01-27  Bruno Haible  <bruno@clisp.org>
59797
59798         * modules/unistr/base: Update.
59799
59800 2007-01-27  Bruno Haible  <bruno@clisp.org>
59801
59802         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
59803         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
59804         * modules/unistr/u32-mbtouc-unsafe: Renamed from
59805         modules/unistr/u32-mbtouc.
59806         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
59807         * lib/unistr.h: Update.
59808         * lib/linebreak.c: Update.
59809         * modules/unistr/u32-mbtouc: Renamed from
59810         modules/unistr/u32-mbtouc-safe.
59811         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
59812         * lib/unistr.h: Update.
59813         * lib/unistr/u32-to-u8.c: Update.
59814         * lib/unistr/u32-to-u16.c: Update.
59815
59816 2007-01-27  Bruno Haible  <bruno@clisp.org>
59817
59818         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
59819         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
59820         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
59821         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
59822         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
59823         * modules/unistr/u16-mbtouc-unsafe: Renamed from
59824         modules/unistr/u16-mbtouc.
59825         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
59826         * lib/unistr.h: Update.
59827         * lib/linebreak.c: Update.
59828         * modules/linebreak: Update.
59829         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
59830         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
59831         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
59832         * modules/unistr/u16-mbtouc: Renamed from
59833         modules/unistr/u16-mbtouc-safe.
59834         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
59835         * lib/unistr.h: Update.
59836         * lib/unistr/u16-to-u8.c: Update.
59837         * modules/unistr/u16-to-u8: Update.
59838         * lib/unistr/u16-to-u32.c: Update.
59839         * modules/unistr/u16-to-u32: Update.
59840
59841 2007-01-27  Bruno Haible  <bruno@clisp.org>
59842
59843         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
59844         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
59845         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
59846         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
59847         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
59848         * modules/unistr/u8-mbtouc-unsafe: Renamed from
59849         modules/unistr/u8-mbtouc.
59850         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
59851         * lib/unistr.h: Update.
59852         * lib/striconveh.c: Update.
59853         * modules/striconveh: Update.
59854         * lib/linebreak.c: Update.
59855         * modules/linebreak: Update.
59856         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
59857         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
59858         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
59859         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
59860         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
59861         * lib/unistr.h: Update.
59862         * lib/striconveh.c: Update.
59863         * modules/striconveh: Update.
59864         * lib/unistr/u8-to-u16.c: Update.
59865         * modules/unistr/u8-to-u16: Update.
59866         * lib/unistr/u8-to-u32.c: Update.
59867         * modules/unistr/u8-to-u32: Update.
59868
59869 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59870
59871         Sync from Libtool.
59872         * lib/argz.c: Do not include strings.h nor memory.h, include
59873         string.h unconditionally.  Patch by Simon Josefsson.
59874
59875 2007-01-27  Bruno Haible  <bruno@clisp.org>
59876
59877         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
59878         from gl_HEADER_STRING_H_BODY.
59879         (gl_HEADER_STRING_H_BODY): Require it.
59880         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
59881         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
59882         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
59883         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
59884         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
59885         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
59886         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
59887         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
59888         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
59889         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
59890         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
59891         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
59892         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
59893         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
59894         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
59895
59896 2007-01-27  Bruno Haible  <bruno@clisp.org>
59897
59898         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
59899         check_PROGRAMS into noinst_PROGRAMS.
59900         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
59901         check_PROGRAMS in this case.
59902         (func_import): Set for_test to false.
59903         (func_create_testdir): Set for_test to true.
59904
59905 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
59906             Bruno Haible  <bruno@clisp.org>
59907
59908         * modules/strcasestr (Files): Remove lib/strcasestr.h.
59909         (Depends-on): Add string.
59910         (Includes): Use <string.h> instead of strcasestr.h.
59911         * modules/string (Makefile.am): Also substitute the value of
59912         REPLACE_STRCASESTR.
59913         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
59914         assume strcasestr is declared in <string.h> not <strings.h>. Also
59915         set REPLACE_STRCASESTR.
59916         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
59917         REPLACE_STRCASESTR.
59918         * lib/strcasestr.h: Remove file.
59919         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
59920         * lib/string_.h (strcasestr): New declaration.
59921
59922 2007-01-27  Bruno Haible  <bruno@clisp.org>
59923
59924         * lib/string_.h: Use 'extern'.
59925
59926 2007-01-27  Jim Meyering  <jim@meyering.net>
59927
59928         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
59929         of set-but-not-used local, "q".
59930
59931         * lib/mempcpy.c: Include <config.h> before <string.h>.
59932         This fixes a compilation error on HP-UX, due to the system's
59933         "restrict"-using mempcpy prototype.
59934
59935 2007-01-26  Bruno Haible  <bruno@clisp.org>
59936
59937         Small optimization.
59938         * lib/javacomp.c: Include c-strstr.h.
59939          (is_envjavac_gcj): Use c_strstr instead of strstr.
59940         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
59941
59942 2007-01-26  Bruno Haible  <bruno@clisp.org>
59943
59944         * MODULES.html.sh (Unicode string functions): Add the new modules.
59945
59946         * modules/uniconv/u32-strconv-to-locale: New file.
59947         * lib/uniconv/u32-strconv-to-locale.c: New file.
59948
59949         * modules/uniconv/u16-strconv-to-locale: New file.
59950         * lib/uniconv/u16-strconv-to-locale.c: New file.
59951
59952         * modules/uniconv/u8-strconv-to-locale: New file.
59953         * lib/uniconv/u8-strconv-to-locale.c: New file.
59954
59955         * modules/uniconv/u32-strconv-from-locale: New file.
59956         * lib/uniconv/u32-strconv-from-locale.c: New file.
59957
59958         * modules/uniconv/u16-strconv-from-locale: New file.
59959         * lib/uniconv/u16-strconv-from-locale.c: New file.
59960
59961         * modules/uniconv/u8-strconv-from-locale: New file.
59962         * lib/uniconv/u8-strconv-from-locale.c: New file.
59963
59964         * modules/uniconv/u32-strconv-to-enc: New file.
59965         * lib/uniconv/u32-strconv-to-enc.c: New file.
59966         * modules/uniconv/u32-strconv-to-enc-tests: New file.
59967         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
59968
59969         * modules/uniconv/u16-strconv-to-enc: New file.
59970         * lib/uniconv/u16-strconv-to-enc.c: New file.
59971         * lib/uniconv/u-strconv-to-enc.h: New file.
59972         * modules/uniconv/u16-strconv-to-enc-tests: New file.
59973         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
59974
59975         * modules/uniconv/u8-strconv-to-enc: New file.
59976         * lib/uniconv/u8-strconv-to-enc.c: New file.
59977         * modules/uniconv/u8-strconv-to-enc-tests: New file.
59978         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
59979
59980         * modules/uniconv/u32-strconv-from-enc: New file.
59981         * lib/uniconv/u32-strconv-from-enc.c: New file.
59982         * modules/uniconv/u32-strconv-from-enc-tests: New file.
59983         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
59984
59985         * modules/uniconv/u16-strconv-from-enc: New file.
59986         * lib/uniconv/u16-strconv-from-enc.c: New file.
59987         * modules/uniconv/u16-strconv-from-enc-tests: New file.
59988         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
59989
59990         * modules/uniconv/u8-strconv-from-enc: New file.
59991         * lib/uniconv/u8-strconv-from-enc.c: New file.
59992         * lib/uniconv/u-strconv-from-enc.h: New file.
59993         * modules/uniconv/u8-strconv-from-enc-tests: New file.
59994         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
59995
59996         * modules/uniconv/u32-conv-from-enc: New file.
59997         * lib/uniconv/u32-conv-from-enc.c: New file.
59998         * modules/uniconv/u32-conv-from-enc-tests: New file.
59999         * tests/uniconv/test-u32-conv-from-enc.c: New file.
60000
60001         * modules/uniconv/u16-conv-from-enc: New file.
60002         * lib/uniconv/u16-conv-from-enc.c: New file.
60003         * lib/uniconv/u-conv-from-enc.h: New file.
60004         * modules/uniconv/u16-conv-from-enc-tests: New file.
60005         * tests/uniconv/test-u16-conv-from-enc.c: New file.
60006
60007         * modules/uniconv/u8-conv-from-enc: New file.
60008         * lib/uniconv/u8-conv-from-enc.c: New file.
60009         * modules/uniconv/u8-conv-from-enc-tests: New file.
60010         * tests/uniconv/test-u8-conv-from-enc.c: New file.
60011
60012         * modules/uniconv/base: New file.
60013         * lib/uniconv.h: New file.
60014
60015 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
60016
60017         * doc/gnulib-tool.texi (Initial import): Update to match current
60018         behavior with strdup module.
60019         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
60020         * lib/memmem.h: Remove; all uses removed.  This is now done
60021         by <string.h>.
60022         * lib/mempcpy.h: Likewise.
60023         * lib/memrchr.h: Likewise.
60024         * lib/stpcpy.h: Likewise.
60025         * lib/stpncpy.h: Likewise.
60026         * lib/strcase.h: Likewise.
60027         * lib/strchrnul.h: Likewise.
60028         * lib/strdup.h: Likewise.
60029         * lib/strndup.h: Likewise.
60030         * lib/strnlen.h: Likewise.
60031         * lib/strpbrk.h: Likewise.
60032         * lib/strsep.h: Likewise.
60033         * lib/strstr.h: Likewise.
60034         * lib/strtok_r.h: Likewise.
60035         * lib/string_.h: New file.
60036         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
60037         Rely on <string.h> instead.
60038         * lib/canon-host.c: Likewise.
60039         * lib/chdir-long.c: Likewise.
60040         * lib/concatpath.c: Likewise.
60041         * lib/exclude.c: Likewise.
60042         * lib/fchdir.c: Likewise.
60043         * lib/getaddrinfo.c: Likewise.
60044         * lib/getcwd.c: Likewise.
60045         * lib/getsubopt.c: Likewise.
60046         * lib/glob.c: Likewise.
60047         * lib/hard-locale.c: Likewise.
60048         * lib/iconvme.c: Likewise.
60049         * lib/javacomp.c: Likewise.
60050         * lib/mempcpy.c: Likewise.
60051         * lib/memrchr.c: Likewise.
60052         * lib/regex_internal.h: Likewise.
60053         * lib/stpncpy.c: Likewise.
60054         * lib/strcasecmp.c: Likewise.
60055         * lib/strchrnul.c: Likewise.
60056         * lib/strdup.c: Likewise.
60057         * lib/striconv.c: Likewise.
60058         * lib/striconveh.c: Likewise.
60059         * lib/striconveha.c: Likewise.
60060         * lib/strncasecmp.c: Likewise.
60061         * lib/strndup.c: Likewise.
60062         * lib/strnlen.c: Likewise.
60063         * lib/strsep.c: Likewise.
60064         * lib/strstr.c: Likewise.
60065         * lib/strtok_r.c: Likewise.
60066         * lib/userspec.c: Likewise.
60067         * lib/w32spawn.h: Likewise.
60068         * lib/xstrndup.c: Likewise.
60069         * lib/mountlist.c (strstr): Remove decl.
60070         * m4/string_h.m4: New file.
60071         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
60072         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
60073         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
60074         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
60075         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
60076         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
60077         Set REPLACE_STRCASECMP if necessary.
60078         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
60079         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
60080         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
60081         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
60082         HAVE_DECL_STRDUP if necessary.
60083         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
60084         since gl_FUNC_STRNDUP does that now.
60085         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
60086         Check for decl here...
60087         (gl_PREREQ_STRNLEN): ... not here.
60088         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
60089         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
60090         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
60091         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
60092         necessary.
60093         * modules/string: New file.
60094         * modules/memmem (Files): Remove special-purpose include file.
60095         (Depends-on): Add string.
60096         (Include): Include <string.h>, not the removed file.
60097         * modules/mempcpy: Likewise.
60098         * modules/memrchr: Likewise.
60099         * modules/stpcpy: Likewise.
60100         * modules/stpncpy: Likewise.
60101         * modules/strcase: Likewise.
60102         * modules/strchrnul: Likewise.
60103         * modules/strdup: Likewise.
60104         * modules/strndup: Likewise.
60105         * modules/strnlen: Likewise.
60106         * modules/strpbrk: Likewise.
60107         * modules/strsep: Likewise.
60108         * modules/strstr: Likewise.
60109         * modules/strtok_r: Likewise.
60110         * tests/test-dirname.c: Don't include "strdup.h", since
60111         <string.h> now suffices.
60112         * tests/test-memmem.c: Don't include "memmem.h", since
60113         <string.h> now suffices.
60114
60115 2007-01-25  Bruno Haible  <bruno@clisp.org>
60116
60117         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
60118         *resultp is 0.
60119
60120         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
60121         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
60122         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
60123         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
60124
60125         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
60126         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
60127         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
60128         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
60129         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
60130         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
60131
60132 2007-01-24  Bruno Haible  <bruno@clisp.org>
60133
60134         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
60135         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
60136         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
60137         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
60138         gl_FUNC_FTS_CORE.
60139         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
60140         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
60141         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
60142         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
60143         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
60144         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
60145         gl_FUNC_FCHOWNAT.
60146         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
60147         gl_FUNC_STRFTIME.
60148         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
60149         Reported by Ralf Wildenhues.
60150
60151 2007-01-24  Bruno Haible  <bruno@clisp.org>
60152
60153         Drop AC_REQUIRE calls that are redundant with the module dependencies.
60154         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
60155         gl_GETADDRINFO.
60156         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
60157         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
60158         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
60159
60160 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
60161
60162         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
60163         Don't use 'exit'; just return from 'main'.
60164         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
60165
60166         * lib/fnmatch_.h: Readjust white space and comments to match
60167         glibc, to avoid spurious diffs.
60168
60169 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
60170
60171         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
60172         2004-12-01 change by Jakub Jelinek, since this code won't compile
60173         if !LIBC.  Problem reported by Bob Proulx.
60174
60175 2007-01-23  Bruno Haible  <bruno@clisp.org>
60176
60177         * lib/striconveh.c: Include c-strcaseeq.h.
60178         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
60179         * modules/striconveh (Depends-on): Add c-strcaseeq.
60180
60181 2007-01-23  Bruno Haible  <bruno@clisp.org>
60182
60183         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
60184
60185         * modules/c-strcaseeq: New file.
60186         * lib/c-strcaseeq.h: New file.
60187
60188         * modules/streq: New file.
60189         * lib/streq.h: New file.
60190
60191 2007-01-23  Bruno Haible  <bruno@clisp.org>
60192
60193         * modules/striconveha-tests: New file.
60194         * tests/test-striconveha.c: New file.
60195
60196         * lib/striconveha.h: Include <stdbool.h>.
60197         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
60198         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
60199         (mem_iconveha_notranslit): Renamed from mem_iconveha.
60200         (mem_iconveha): New function.
60201         (str_iconveha_notranslit): Renamed from str_iconveha.
60202         (str_iconveha): New function.
60203         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
60204         c-strcase.
60205
60206 2007-01-23  Bruno Haible  <bruno@clisp.org>
60207
60208         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
60209         encodings without forgiving before trying any encoding with handler.
60210         (str_iconveha): Try all encodings without forgiving before trying any
60211         encoding with handler.
60212
60213 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
60214
60215         Import the following changes from libc.
60216
60217         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
60218
60219         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
60220
60221         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
60222
60223         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
60224         normal_bracket label.
60225
60226         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
60227
60228         [BZ #361]
60229         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
60230         to normal_bracket after fetching the next character.
60231
60232 2007-01-22  Bruno Haible  <bruno@clisp.org>
60233
60234         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
60235         argument.
60236         * lib/striconveh.c (iconv_carefully_1): New function.
60237         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
60238         argument.
60239         (str_cd_iconveh): Update.
60240         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
60241         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
60242         * tests/test-striconveh.c (MAGIC): New macro.
60243         (new_offsets): New function.
60244         (main): Test call with and without offsets.
60245
60246 2007-01-22  Bruno Haible  <bruno@clisp.org>
60247
60248         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
60249         * modules/sys_select (Makefile.am): Likewise.
60250         * modules/sys_socket (Makefile.am): Likewise.
60251         * modules/sys_time (Makefile.am): Likewise.
60252
60253 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
60254
60255         * modules/gettimeofday (License): Change from GPL to LGPL, since
60256         gettimeofday is a library function.
60257
60258 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
60259
60260         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
60261
60262 2007-01-21  Bruno Haible  <bruno@clisp.org>
60263
60264         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
60265
60266 2007-01-21  Bruno Haible  <bruno@clisp.org>
60267
60268         * modules/striconveha: New file.
60269         * lib/striconveha.h: New file.
60270         * lib/striconveha.c: New file.
60271         * MODULES.html.sh (Internationalization functions): Add striconveha.
60272         * lib/striconv.c (str_iconv): Optimize the case of an empty input
60273         string.
60274         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
60275
60276 2007-01-21  Bruno Haible  <bruno@clisp.org>
60277
60278         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
60279         * lib/striconveh.c (str_iconveh): Likewise.
60280
60281 2007-01-21  Bruno Haible  <bruno@clisp.org>
60282
60283         * lib/striconveh.h (mem_iconveh): New declaration.
60284         * lib/striconveh.c (mem_iconveh): New function.
60285         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
60286
60287 2007-01-21  Bruno Haible  <bruno@clisp.org>
60288
60289         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
60290
60291         * lib/striconveh.h (mem_cd_iconveh): Change specification.
60292         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
60293         original result buffer.
60294         (str_cd_iconveh): Update.
60295         * tests/test-striconveh.c (main): Update.
60296
60297         * lib/striconv.h (mem_cd_iconv): Change specification.
60298         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
60299         result buffer.
60300         (str_cd_iconv): Update.
60301         * tests/test-striconv.c (main): Update.
60302
60303 2007-01-21  Bruno Haible  <bruno@clisp.org>
60304
60305         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
60306
60307 2007-01-20  Jim Meyering  <jim@meyering.net>
60308
60309         * lib/userspec.c (parse_with_separator): If a user or group string
60310         starts with "+", skip the corresponding name-to-ID look-up, since
60311         such a look-up must fail: user and group names may not include "+".
60312
60313 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
60314
60315         * lib/poll.c: Include sys/time.h and time.h unconditionally,
60316         since we now assume the sys_time module.
60317         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
60318         check for sys/time.h; no longer needed.
60319         * modules/poll (Depends-on): Depend on sys_time.
60320
60321 2007-01-18  Bruno Haible  <bruno@clisp.org>
60322
60323         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
60324         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
60325
60326         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
60327         gettimeofday.
60328
60329         * tests/test-gettimeofday.c: Include <time.h>.
60330         (dummy): Remove variable.
60331
60332         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
60333         gl_HEADER_SYS_TIME_H.
60334         (gl_HEADER_SYS_TIME_H): New macro.
60335
60336         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
60337         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
60338         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
60339         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
60340         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
60341         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
60342         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
60343         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
60344         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
60345         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
60346         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
60347
60348         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
60349         last change; it caused a compilation error when cross-compiling to
60350         Cygwin.
60351
60352 2007-01-18  Jim Meyering  <jim@meyering.net>
60353
60354         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
60355         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
60356         than the race-prone "test -d sys || mkdir sys".
60357         (configure.ac): Use AC_PROG_MKDIR_P.
60358         * modules/sys_select: Likewise.
60359         * modules/sys_socket: Likewise.
60360         * modules/sys_time: Likewise.
60361
60362 2007-01-18  Eric Blake  <ebb9@byu.net>
60363
60364         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
60365         replace gettimeofday.
60366         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
60367         name, to avoid infinite recursion.
60368
60369 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
60370
60371         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
60372         module sys_time.
60373         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
60374         assume timespec.h defines struct timeval.
60375         * lib/settime.c: Likewise.
60376         * lib/utimens.c: Likewise.
60377         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
60378         since we now assume the gettimeofday module.
60379         * lib/tempname.c (__gen_tempname): Likewise.
60380         * lib/gettimeofday.h: Remove.
60381         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
60382         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
60383         Include <time.h>, for 'time()'.
60384         (localtime_buffer_addr): Also use this workaround if
60385         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
60386         to simplify the uses.  All uses changed.
60387         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
60388         that #undef is inside {}, and 'const' follows type name consistently.
60389         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
60390         (gettimeofday): Do not use the maximum possible value for
60391         tv->tv_usec, since that might break usages other than ls.c.
60392         Instead, we'll leave ls.c alone.  This undoes today's patch
60393         by Bruno.  Add a compile-time warning for 1s-clock resolution;
60394         we've never observed the problem but might as well keep the
60395         canary.
60396         * lib/nanosleep.c: Include timespec.h first, for interface check.
60397         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
60398         now assume the sys_time module.
60399         * lib/tempname.c: Likewise.
60400         * lib/timespec.h: Likewise.
60401         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
60402         needed.
60403         * lib/strftime.c: Likewise.
60404         * lib/timespec.h: Likewise.
60405         * lib/posixtm.c: Include posixtm.h first, for interface check.
60406         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
60407         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
60408         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
60409         * lib/sys_time_.h: New file.
60410         * lib/timespec.h (struct timespec): Use long int, not long.
60411         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
60412         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
60413         Remove obsolescent call to AC_HEADER_TIME.
60414         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
60415         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
60416         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
60417         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
60418         Likewise.
60419         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
60420         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
60421         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
60422         into the sys_time module.  Check for gettimeofday just once.
60423         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
60424         for gettimeofday signature to just check the signature.  Merely
60425         compile it, since linking doesn't test signature.  Improve test for
60426         whether gettimeofday.o is actually needed.
60427         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
60428         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
60429         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
60430         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
60431         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
60432         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
60433         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
60434         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
60435         than worrying about sys/time.h.
60436         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
60437         Don't bother worrying about TIME_WITH_SYS_TIME.
60438         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
60439         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
60440         * m4/sys_time_h.m4: New file.
60441         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
60442         Don't include sys/time.h.  Return from main rather than exiting.
60443         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
60444         all uses changed.
60445         * modules/gethrxtime (Depends-on): Add sys_time.
60446         * modules/gettime (Depends-on): Likewise.
60447         * modules/gettimeofday (Depends-on): Likewise.
60448         * modules/nanosleep (Depends-on): Likewise.
60449         * modules/settime (Depends-on): Likewise.
60450         * modules/tempname (Depends-on): Likewise.
60451         * modules/utimens (Depends-on): Likewise.
60452         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
60453         (Include): Change back to <sys/time.h>.
60454         (Maintainer): Add self.
60455         * modules/sys_time: New file.
60456         * modules/tempname (Depends-on): Add gettimeofday.
60457         * tests/test-gettimeofday.c: Include <sys/time.h>
60458         rather than gettimeofday.h.
60459
60460 2007-01-17  Bruno Haible  <bruno@clisp.org>
60461
60462         * gnulib-tool (func_get_license): Revert last patch. Instead, let
60463         the license default to GPL.
60464         (func_create_testdir): Don't complain if a module is LGPL and its
60465         tests module depends on GPLed modules.
60466
60467 2007-01-17  Bruno Haible  <bruno@clisp.org>
60468
60469         * lib/gettimeofday.c (gettimeofday): Add code for the case
60470         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
60471         maximum possible value for tv->tv_usec, rather than the minimum one.
60472
60473 2005-10-08  Martin Lambers  <marlam@marlam.de>
60474 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
60475 2007-01-16  Bruno Haible  <bruno@clisp.org>
60476
60477         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
60478         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
60479         gl_FUNC_GETTIMEOFDAY.
60480         (Include): Add gettimeofday.h.
60481         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
60482         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
60483         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
60484         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
60485         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
60486         * lib/gettimeofday.h: New file.
60487         * lib/gettimeofday.c: Include <sys/timeb.h>.
60488         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
60489         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
60490         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
60491         fall back on time().
60492
60493         * tests/test-gettimeofday.c: New file.
60494         * modules/gettimeofday-tests: New file.
60495
60496 2007-01-16  Eric Blake  <ebb9@byu.net>
60497
60498         * modules/fnmatch (Depends-on): Depend on wchar.
60499         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
60500         * m4/fnmatch.m4: Likewise.
60501         * modules/mbchar (Makefile.am): Assume <wchar.h>.
60502         * m4/mbchar.m4: Likewise.
60503         * modules/mbswidth (Depends-on): Depend on wchar.
60504         * lib/mbswidth.c: Assume <wchar.h>.
60505         * m4/mbswidth.m4: Likewise.
60506         * modules/quotearg (Depends-on): Depend on wchar.
60507         * lib/quotearg.c: Assume <wchar.h>.
60508         * m4/quotearg.m4: Likewise.
60509         * modules/regex (Depends-on): Depend on wchar.
60510         * lib/regex_internal.h: Assume <wchar.h>.
60511         * m4/regex.m4: Likewise.
60512         * modules/stdint (Depends-on): Depend on wchar.
60513         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
60514         * m4/stdint.m4: Likewise.
60515         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
60516         * modules/strftime (Depends-on): Depend on wchar.
60517         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
60518         * modules/strtol (Depends-on): Depend on wchar.
60519         * lib/strtol.c: Assume <wchar.h>.
60520         * modules/wcwidth (Depends-on): Depend on wchar.
60521         * lib/wcwidth.h: Assume <wchar.h>.
60522         * m4/wcwidth.m4: Likewise.
60523
60524 2007-01-16  Bruno Haible  <bruno@clisp.org>
60525
60526         * modules/csharpexec-script: New, created from...
60527         * modules/csharpexec: ... this.
60528
60529 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
60530
60531         * modules/javaexec-script: New, created from...
60532         * modules/javaexec: ... this.
60533
60534 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
60535
60536         * modules/poll (Dependencies): Add sys_select.
60537
60538 2007-01-15  Jim Meyering  <jim@meyering.net>
60539
60540         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
60541         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
60542         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
60543         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
60544
60545 2007-01-15  Bruno Haible  <bruno@clisp.org>
60546
60547         * modules/striconveh: New file.
60548         * lib/striconveh.h: New file.
60549         * lib/striconveh.c: New file.
60550         * MODULES.html.sh (Internationalization functions): Add striconveh.
60551
60552         * modules/striconveh-tests: New file.
60553         * tests/test-striconveh.c: New file.
60554
60555 2007-01-15  Bruno Haible  <bruno@clisp.org>
60556
60557         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
60558         not from GNU libiconv or GNU libc.
60559
60560 2007-01-15  Bruno Haible  <bruno@clisp.org>
60561
60562         * doc/gnulib-intro.texi (Copyright): Explain the different license
60563         terms for module descriptions, autoconf macros, tests, documentation.
60564
60565 2007-01-14  Bruno Haible  <bruno@clisp.org>
60566
60567         * modules/striconv-tests: New file.
60568         * tests/test-striconv.c: New file.
60569
60570 2007-01-14  Bruno Haible  <bruno@clisp.org>
60571
60572         * modules/iconv-tests: New file.
60573         * tests/test-iconv.c: New file.
60574
60575 2007-01-14  Bruno Haible  <bruno@clisp.org>
60576
60577         * gnulib-tool (func_get_license): For test modules, use the license of
60578         the main module.
60579
60580 2007-01-14  Bruno Haible  <bruno@clisp.org>
60581
60582         * modules/iconv (Include): Clarify that <iconv.h> can only be included
60583         if iconv is found to exist.
60584
60585 2007-01-14  Bruno Haible  <bruno@clisp.org>
60586
60587         * modules/c-ctype-tests: New file.
60588         * tests/test-c-ctype.c: New file.
60589
60590 2007-01-14  Bruno Haible  <bruno@clisp.org>
60591
60592         * modules/binary-io-tests: New file.
60593         * tests/test-binary-io.sh: New file.
60594         * tests/test-binary-io.c: New file.
60595
60596 2007-01-14  Bruno Haible  <bruno@clisp.org>
60597
60598         * modules/array-oset-tests: New file.
60599         * tests/test-array_oset.c: New file.
60600
60601 2007-01-14  Bruno Haible  <bruno@clisp.org>
60602
60603         * modules/array-list-tests: New file.
60604         * tests/test-array_list.c: New file.
60605
60606 2007-01-14  Bruno Haible  <bruno@clisp.org>
60607
60608         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
60609         and make.
60610         Reported by Simon Josefsson in
60611         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
60612
60613 2007-01-14  Bruno Haible  <bruno@clisp.org>
60614
60615         * modules/allocsa-tests: New file.
60616         * tests/test-allocsa.c: New file.
60617
60618 2007-01-14  Bruno Haible  <bruno@clisp.org>
60619
60620         * modules/fchdir (Depends-on): Add absolute-header.
60621         * modules/unistd (Depends-on): Likewise.
60622
60623 2006-12-30  Bruno Haible  <bruno@clisp.org>
60624
60625         * modules/fchdir: New file.
60626         * modules/unistd (Files): Add lib/unistd_.h.
60627         (Makefile.am): Generate unistd.h from unistd_.h.
60628         * lib/fchdir.c: New file.
60629         * lib/dirent_.h: New file.
60630         * lib/unistd_.h: New file.
60631         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
60632         * m4/fchdir.m4: New file.
60633         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
60634         (gl_HEADER_UNISTD): Invoke it.
60635         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
60636         function.
60637         * lib/backupfile.c (opendir, closedir): Undefine.
60638         * lib/chown.c (open, close): Undefine.
60639         * lib/clean-temp.c (open, close): Undefine.
60640         * lib/copy-file.c (open, close): Undefine.
60641         * lib/execute.c (open, close): Undefine.
60642         * lib/fsusage.c (open, close): Undefine.
60643         * lib/gc-gnulib.c (open, close): Undefine.
60644         * lib/getcwd.c (opendir, closedir): Undefine.
60645         * lib/glob.c (opendir, closedir): Undefine.
60646         * lib/javacomp.c (open, close): Undefine.
60647         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
60648         * lib/openat-proc.c (open, close): Undefine.
60649         * lib/pagealign_alloc.c (open, close): Undefine.
60650         * lib/pipe.c (open, close): Undefine.
60651         * lib/progreloc.c (open, close): Undefine.
60652         * lib/savedir.c (opendir, closedir): Undefine.
60653         * lib/utime.c (open, close): Undefine.
60654         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
60655
60656 2007-01-10  Bruno Haible  <bruno@clisp.org>
60657
60658         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
60659
60660 2007-01-12  Eric Blake  <ebb9@byu.net>
60661
60662         Provide a robust <wchar.h>.  Further simplifications are now
60663         possible in other modules, but not included here.
60664         * modules/wchar: New module.
60665         * m4/wchar.m4: New file.
60666         * lib/wchar_.h: Likewise.
60667         * modules/mbchar (Depends-on): Depend on wchar, as the first use
60668         of the new module.
60669         * MODULES.html.sh (Extended multibyte and wide character utilities):
60670         New section.
60671
60672 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
60673
60674         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
60675         to a reasonable default for memory allocation.
60676         (xreadlink): Don't allocate a huge buffer, to work around a buggy
60677         file system that reports garbage st_size values for symlinks.
60678         Problem reported by Liyang Hu.
60679
60680 2007-01-11  Simon Josefsson  <simon@josefsson.org>
60681
60682         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
60683         Emacs .#* auto-save files).
60684
60685 2007-01-11  Bruno Haible  <bruno@clisp.org>
60686
60687         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
60688         directory.
60689
60690 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
60691
60692         Use @...@ consistently in lib/wctype_.h.
60693         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
60694         on it being set to 1 or 0.
60695         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
60696         go back to AC_SUBSTing it.
60697         * modules/wctype (Makefile.am): Undo previous change.
60698
60699 2007-01-10  Eric Blake  <ebb9@byu.net>
60700
60701         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
60702         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
60703         * modules/wctype (Makefile.am): Likewise.
60704         Reported by Chris McGuire.
60705
60706 2007-01-10  Jim Meyering  <jim@meyering.net>
60707
60708         fts.c: a small readability/maintainability improvement
60709         * lib/fts.c (fts_read): Make this code slightly more readable and
60710         maintainable by hoisting the "sp->fts_cur = p" assignments to
60711         immediately follow the statements that set P.  Derived from
60712         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
60713
60714 2007-01-10  Eric Blake  <ebb9@byu.net>
60715
60716         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
60717         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
60718         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
60719         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
60720         Reported by Chris McGuire.
60721
60722 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60723
60724         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
60725         in sed script.
60726
60727 2007-01-09  Bruno Haible  <bruno@clisp.org>
60728
60729         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
60730         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
60731         variables.
60732         (func_module): Use them.
60733
60734 2007-01-09  Bruno Haible  <bruno@clisp.org>
60735
60736         * modules/unistr/base: New file.
60737         * lib/unistr.h: New file.
60738
60739         * modules/unistr/u8-to-u16: New file.
60740         * lib/unistr/u8-to-u16.c: New file.
60741
60742         * modules/unistr/u8-to-u32: New file.
60743         * lib/unistr/u8-to-u32.c: New file.
60744
60745         * modules/unistr/u16-to-u8: New file.
60746         * lib/unistr/u16-to-u8.c: New file.
60747
60748         * modules/unistr/u16-to-u32: New file.
60749         * lib/unistr/u16-to-u32.c: New file.
60750
60751         * modules/unistr/u32-to-u8: New file.
60752         * lib/unistr/u32-to-u8.c: New file.
60753
60754         * modules/unistr/u32-to-u16: New file.
60755         * lib/unistr/u32-to-u16.c: New file.
60756
60757         * modules/unistr/u8-check: New file.
60758         * modules/unistr/u16-check: New file.
60759         * modules/unistr/u32-check: New file.
60760         * lib/unistr/u8-check.c: New file.
60761         * lib/unistr/u16-check.c: New file.
60762         * lib/unistr/u32-check.c: New file.
60763
60764         * modules/unistr/u8-chr: New file.
60765         * modules/unistr/u16-chr: New file.
60766         * modules/unistr/u32-chr: New file.
60767         * lib/unistr/u8-chr.c: New file.
60768         * lib/unistr/u16-chr.c: New file.
60769         * lib/unistr/u32-chr.c: New file.
60770
60771         * modules/unistr/u8-cmp: New file.
60772         * modules/unistr/u16-cmp: New file.
60773         * modules/unistr/u32-cmp: New file.
60774         * lib/unistr/u8-cmp.c: New file.
60775         * lib/unistr/u16-cmp.c: New file.
60776         * lib/unistr/u32-cmp.c: New file.
60777
60778         * modules/unistr/u8-cpy: New file.
60779         * modules/unistr/u16-cpy: New file.
60780         * modules/unistr/u32-cpy: New file.
60781         * lib/unistr/u8-cpy.c: New file.
60782         * lib/unistr/u16-cpy.c: New file.
60783         * lib/unistr/u32-cpy.c: New file.
60784         * lib/unistr/u-cpy.h: New file.
60785
60786         * modules/unistr/u8-cpy-alloc: New file.
60787         * modules/unistr/u16-cpy-alloc: New file.
60788         * modules/unistr/u32-cpy-alloc: New file.
60789         * lib/unistr/u8-cpy-alloc.c: New file.
60790         * lib/unistr/u16-cpy-alloc.c: New file.
60791         * lib/unistr/u32-cpy-alloc.c: New file.
60792         * lib/unistr/u-cpy-alloc.h: New file.
60793
60794         * modules/unistr/u8-endswith: New file.
60795         * modules/unistr/u16-endswith: New file.
60796         * modules/unistr/u32-endswith: New file.
60797         * lib/unistr/u8-endswith.c: New file.
60798         * lib/unistr/u16-endswith.c: New file.
60799         * lib/unistr/u32-endswith.c: New file.
60800         * lib/unistr/u-endswith.h: New file.
60801
60802         * modules/unistr/u8-mblen: New file.
60803         * modules/unistr/u16-mblen: New file.
60804         * modules/unistr/u32-mblen: New file.
60805         * lib/unistr/u8-mblen.c: New file.
60806         * lib/unistr/u16-mblen.c: New file.
60807         * lib/unistr/u32-mblen.c: New file.
60808
60809         * modules/unistr/u8-mbtouc: New file.
60810         * modules/unistr/u16-mbtouc: New file.
60811         * modules/unistr/u32-mbtouc: New file.
60812         * lib/unistr/u8-mbtouc.c: New file.
60813         * lib/unistr/u16-mbtouc.c: New file.
60814         * lib/unistr/u32-mbtouc.c: New file.
60815
60816         * modules/unistr/u8-mbtouc-safe: New file.
60817         * modules/unistr/u16-mbtouc-safe: New file.
60818         * modules/unistr/u32-mbtouc-safe: New file.
60819         * lib/unistr/u8-mbtouc-safe.c: New file.
60820         * lib/unistr/u16-mbtouc-safe.c: New file.
60821         * lib/unistr/u32-mbtouc-safe.c: New file.
60822
60823         * modules/unistr/u8-move: New file.
60824         * modules/unistr/u16-move: New file.
60825         * modules/unistr/u32-move: New file.
60826         * lib/unistr/u8-move.c: New file.
60827         * lib/unistr/u16-move.c: New file.
60828         * lib/unistr/u32-move.c: New file.
60829         * lib/unistr/u-move.h: New file.
60830
60831         * modules/unistr/u8-next: New file.
60832         * modules/unistr/u16-next: New file.
60833         * modules/unistr/u32-next: New file.
60834         * lib/unistr/u8-next.c: New file.
60835         * lib/unistr/u16-next.c: New file.
60836         * lib/unistr/u32-next.c: New file.
60837
60838         * modules/unistr/u8-prev: New file.
60839         * modules/unistr/u16-prev: New file.
60840         * modules/unistr/u32-prev: New file.
60841         * lib/unistr/u8-prev.c: New file.
60842         * lib/unistr/u16-prev.c: New file.
60843         * lib/unistr/u32-prev.c: New file.
60844
60845         * modules/unistr/u8-set: New file.
60846         * modules/unistr/u16-set: New file.
60847         * modules/unistr/u32-set: New file.
60848         * lib/unistr/u8-set.c: New file.
60849         * lib/unistr/u16-set.c: New file.
60850         * lib/unistr/u32-set.c: New file.
60851         * lib/unistr/u-set.h: New file.
60852
60853         * modules/unistr/u8-startswith: New file.
60854         * modules/unistr/u16-startswith: New file.
60855         * modules/unistr/u32-startswith: New file.
60856         * lib/unistr/u8-startswith.c: New file.
60857         * lib/unistr/u16-startswith.c: New file.
60858         * lib/unistr/u32-startswith.c: New file.
60859         * lib/unistr/u-startswith.h: New file.
60860
60861         * modules/unistr/u8-stpcpy: New file.
60862         * modules/unistr/u16-stpcpy: New file.
60863         * modules/unistr/u32-stpcpy: New file.
60864         * lib/unistr/u8-stpcpy.c: New file.
60865         * lib/unistr/u16-stpcpy.c: New file.
60866         * lib/unistr/u32-stpcpy.c: New file.
60867         * lib/unistr/u-stpcpy.h: New file.
60868
60869         * modules/unistr/u8-stpncpy: New file.
60870         * modules/unistr/u16-stpncpy: New file.
60871         * modules/unistr/u32-stpncpy: New file.
60872         * lib/unistr/u8-stpncpy.c: New file.
60873         * lib/unistr/u16-stpncpy.c: New file.
60874         * lib/unistr/u32-stpncpy.c: New file.
60875         * lib/unistr/u-stpncpy.h: New file.
60876
60877         * modules/unistr/u8-strcat: New file.
60878         * modules/unistr/u16-strcat: New file.
60879         * modules/unistr/u32-strcat: New file.
60880         * lib/unistr/u8-strcat.c: New file.
60881         * lib/unistr/u16-strcat.c: New file.
60882         * lib/unistr/u32-strcat.c: New file.
60883         * lib/unistr/u-strcat.h: New file.
60884
60885         * modules/unistr/u8-strchr: New file.
60886         * modules/unistr/u16-strchr: New file.
60887         * modules/unistr/u32-strchr: New file.
60888         * lib/unistr/u8-strchr.c: New file.
60889         * lib/unistr/u16-strchr.c: New file.
60890         * lib/unistr/u32-strchr.c: New file.
60891
60892         * modules/unistr/u8-strcmp: New file.
60893         * modules/unistr/u16-strcmp: New file.
60894         * modules/unistr/u32-strcmp: New file.
60895         * lib/unistr/u8-strcmp.c: New file.
60896         * lib/unistr/u16-strcmp.c: New file.
60897         * lib/unistr/u32-strcmp.c: New file.
60898
60899         * modules/unistr/u8-strcpy: New file.
60900         * modules/unistr/u16-strcpy: New file.
60901         * modules/unistr/u32-strcpy: New file.
60902         * lib/unistr/u8-strcpy.c: New file.
60903         * lib/unistr/u16-strcpy.c: New file.
60904         * lib/unistr/u32-strcpy.c: New file.
60905         * lib/unistr/u-strcpy.h: New file.
60906
60907         * modules/unistr/u8-strcspn: New file.
60908         * modules/unistr/u16-strcspn: New file.
60909         * modules/unistr/u32-strcspn: New file.
60910         * lib/unistr/u8-strcspn.c: New file.
60911         * lib/unistr/u16-strcspn.c: New file.
60912         * lib/unistr/u32-strcspn.c: New file.
60913         * lib/unistr/u-strcspn.h: New file.
60914
60915         * modules/unistr/u8-strdup: New file.
60916         * modules/unistr/u16-strdup: New file.
60917         * modules/unistr/u32-strdup: New file.
60918         * lib/unistr/u8-strdup.c: New file.
60919         * lib/unistr/u16-strdup.c: New file.
60920         * lib/unistr/u32-strdup.c: New file.
60921         * lib/unistr/u-strdup.h: New file.
60922
60923         * modules/unistr/u8-strlen: New file.
60924         * modules/unistr/u16-strlen: New file.
60925         * modules/unistr/u32-strlen: New file.
60926         * lib/unistr/u8-strlen.c: New file.
60927         * lib/unistr/u16-strlen.c: New file.
60928         * lib/unistr/u32-strlen.c: New file.
60929         * lib/unistr/u-strlen.h: New file.
60930
60931         * modules/unistr/u8-strmblen: New file.
60932         * modules/unistr/u16-strmblen: New file.
60933         * modules/unistr/u32-strmblen: New file.
60934         * lib/unistr/u8-strmblen.c: New file.
60935         * lib/unistr/u16-strmblen.c: New file.
60936         * lib/unistr/u32-strmblen.c: New file.
60937
60938         * modules/unistr/u8-strmbtouc: New file.
60939         * modules/unistr/u16-strmbtouc: New file.
60940         * modules/unistr/u32-strmbtouc: New file.
60941         * lib/unistr/u8-strmbtouc.c: New file.
60942         * lib/unistr/u16-strmbtouc.c: New file.
60943         * lib/unistr/u32-strmbtouc.c: New file.
60944
60945         * modules/unistr/u8-strncat: New file.
60946         * modules/unistr/u16-strncat: New file.
60947         * modules/unistr/u32-strncat: New file.
60948         * lib/unistr/u8-strncat.c: New file.
60949         * lib/unistr/u16-strncat.c: New file.
60950         * lib/unistr/u32-strncat.c: New file.
60951         * lib/unistr/u-strncat.h: New file.
60952
60953         * modules/unistr/u8-strncmp: New file.
60954         * modules/unistr/u16-strncmp: New file.
60955         * modules/unistr/u32-strncmp: New file.
60956         * lib/unistr/u8-strncmp.c: New file.
60957         * lib/unistr/u16-strncmp.c: New file.
60958         * lib/unistr/u32-strncmp.c: New file.
60959
60960         * modules/unistr/u8-strncpy: New file.
60961         * modules/unistr/u16-strncpy: New file.
60962         * modules/unistr/u32-strncpy: New file.
60963         * lib/unistr/u8-strncpy.c: New file.
60964         * lib/unistr/u16-strncpy.c: New file.
60965         * lib/unistr/u32-strncpy.c: New file.
60966         * lib/unistr/u-strncpy.h: New file.
60967
60968         * modules/unistr/u8-strnlen: New file.
60969         * modules/unistr/u16-strnlen: New file.
60970         * modules/unistr/u32-strnlen: New file.
60971         * lib/unistr/u8-strnlen.c: New file.
60972         * lib/unistr/u16-strnlen.c: New file.
60973         * lib/unistr/u32-strnlen.c: New file.
60974         * lib/unistr/u-strnlen.h: New file.
60975
60976         * modules/unistr/u8-strpbrk: New file.
60977         * modules/unistr/u16-strpbrk: New file.
60978         * modules/unistr/u32-strpbrk: New file.
60979         * lib/unistr/u8-strpbrk.c: New file.
60980         * lib/unistr/u16-strpbrk.c: New file.
60981         * lib/unistr/u32-strpbrk.c: New file.
60982         * lib/unistr/u-strpbrk.h: New file.
60983
60984         * modules/unistr/u8-strrchr: New file.
60985         * modules/unistr/u16-strrchr: New file.
60986         * modules/unistr/u32-strrchr: New file.
60987         * lib/unistr/u8-strrchr.c: New file.
60988         * lib/unistr/u16-strrchr.c: New file.
60989         * lib/unistr/u32-strrchr.c: New file.
60990
60991         * modules/unistr/u8-strspn: New file.
60992         * modules/unistr/u16-strspn: New file.
60993         * modules/unistr/u32-strspn: New file.
60994         * lib/unistr/u8-strspn.c: New file.
60995         * lib/unistr/u16-strspn.c: New file.
60996         * lib/unistr/u32-strspn.c: New file.
60997         * lib/unistr/u-strspn.h: New file.
60998
60999         * modules/unistr/u8-strstr: New file.
61000         * modules/unistr/u16-strstr: New file.
61001         * modules/unistr/u32-strstr: New file.
61002         * lib/unistr/u8-strstr.c: New file.
61003         * lib/unistr/u16-strstr.c: New file.
61004         * lib/unistr/u32-strstr.c: New file.
61005         * lib/unistr/u-strstr.h: New file.
61006
61007         * modules/unistr/u8-strtok: New file.
61008         * modules/unistr/u16-strtok: New file.
61009         * modules/unistr/u32-strtok: New file.
61010         * lib/unistr/u8-strtok.c: New file.
61011         * lib/unistr/u16-strtok.c: New file.
61012         * lib/unistr/u32-strtok.c: New file.
61013         * lib/unistr/u-strtok.h: New file.
61014
61015         * modules/unistr/u8-uctomb: New file.
61016         * modules/unistr/u16-uctomb: New file.
61017         * modules/unistr/u32-uctomb: New file.
61018         * lib/unistr/u8-uctomb.c: New file.
61019         * lib/unistr/u16-uctomb.c: New file.
61020         * lib/unistr/u32-uctomb.c: New file.
61021
61022         * MODULES.html.sh (Unicode string functions): Add the new modules.
61023
61024 2007-01-08  Bruno Haible  <bruno@clisp.org>
61025
61026         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
61027         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
61028         subdirectories.
61029
61030 2007-01-08  Karl Berry  <karl@gnu.org>
61031
61032         * doc/error.texi: mention that main() fns must set program_name
61033         when progname is used.
61034
61035 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
61036
61037         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
61038         WCTYPE_H is empty, for the benefit of builds from non-distclean
61039         directories.  Problem reported by Eric Blake in
61040         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
61041
61042 2007-01-08  Bruno Haible  <bruno@clisp.org>
61043
61044         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
61045         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
61046         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
61047         PROVIDE_CANONICALIZE_FILENAME_MODE.
61048         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
61049
61050 2007-01-08  Bruno Haible  <bruno@clisp.org>
61051
61052         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
61053         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
61054         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
61055         * lib/fts.c: Likewise.
61056         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
61057
61058 2006-12-25  Bruno Haible  <bruno@clisp.org>
61059
61060         * modules/utf8-ucs4-safe: New file.
61061         * lib/utf8-ucs4-safe.h: New file.
61062         * lib/unistr/utf8-ucs4-safe.c: New file.
61063
61064         * modules/utf16-ucs4-safe: New file.
61065         * lib/utf16-ucs4-safe.h: New file.
61066         * lib/unistr/utf16-ucs4-safe.c: New file.
61067
61068         * MODULES.html.sh (Unicode string functions): Add the new modules.
61069
61070 2007-01-08  Bruno Haible  <bruno@clisp.org>
61071
61072         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
61073         (Depends-on): Add unitypes.
61074         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
61075         (u8_mbtouc_aux): Move out to separate file.
61076         (u8_mbtouc): Use ucs4_t, uint8_t types.
61077         * lib/unistr/utf8-ucs4.c: New file.
61078
61079         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
61080         (Depends-on): Add unitypes.
61081         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
61082         (u16_mbtouc_aux): Move out to separate file.
61083         (u16_mbtouc): Use ucs4_t, uint16_t types.
61084         * lib/unistr/utf16-ucs4.c: New file.
61085
61086         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
61087         (Depends-on): Add unitypes.
61088         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
61089         (u8_uctomb_aux): Move out to separate file.
61090         (u8_uctomb): Use ucs4_t, uint8_t types.
61091         * lib/unistr/ucs4-utf8.c: New file.
61092
61093         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
61094         (Depends-on): Add unitypes.
61095         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
61096         (u16_uctomb_aux): Move out to separate file.
61097         (u16_uctomb): Use ucs4_t, uint16_t types.
61098         * lib/unistr/ucs4-utf16.c: New file.
61099
61100 2006-12-25  Bruno Haible  <bruno@clisp.org>
61101
61102         * modules/unitypes: New file.
61103         * lib/unitypes.h: New file.
61104         * MODULES.html.sh (func_all_modules): New section "Unicode string
61105         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
61106         this section. Add unitypes.
61107
61108 2007-01-08  Bruno Haible  <bruno@clisp.org>
61109
61110         Avoid variable names that conflict with those from libtool.
61111         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
61112         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
61113         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
61114         library_names_spec to acl_library_names_spec, hardcode_* to
61115         acl_hardcode_*.
61116         Reported by Ralf Wildenhues.
61117
61118 2007-01-08  Bruno Haible  <bruno@clisp.org>
61119
61120         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
61121         definition.
61122         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
61123         definition.
61124         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
61125         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
61126         definition.
61127         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
61128         definition.
61129         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
61130         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
61131         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
61132         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
61133         definition.
61134         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
61135         definition.
61136         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
61137         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
61138         GC_USE_<algorithm>.
61139         * lib/gc-libgcrypt.c: Likewise.
61140         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
61141         * modules/gc-arctwo (configure.ac): Likewise.
61142         * modules/gc-des (configure.ac): Likewise.
61143         * modules/gc-hmac-md5 (configure.ac): Likewise.
61144         * modules/gc-hmac-sha1 (configure.ac): Likewise.
61145         * modules/gc-md2 (configure.ac): Likewise.
61146         * modules/gc-md4 (configure.ac): Likewise.
61147         * modules/gc-md5 (configure.ac): Likewise.
61148         * modules/gc-random (configure.ac): Likewise.
61149         * modules/gc-rijndael (configure.ac): Likewise.
61150         * modules/gc-sha1 (configure.ac): Likewise.
61151
61152 2007-01-08  Bruno Haible  <bruno@clisp.org>
61153
61154         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
61155         macro definition.
61156         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
61157         definition.
61158         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
61159         definition.
61160         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
61161         * modules/fcntl-safer (configure.ac): Likewise.
61162         * modules/fopen-safer (configure.ac): Likewise.
61163         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
61164         GNULIB_FWRITEERROR macro definition.
61165
61166 2007-01-08  Bruno Haible  <bruno@clisp.org>
61167
61168         * m4/gnulib-common.m4: New file.
61169         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
61170         (func_get_filelist): Add m4/gnulib-common.m4.
61171
61172 2007-01-08  Bruno Haible  <bruno@clisp.org>
61173
61174         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
61175         command.
61176
61177 2007-01-08  Jim Meyering  <jim@meyering.net>
61178
61179         Use a more robust test for a "can't happen" condition.
61180         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
61181         narrowed the st_size value.  Presuming the "can't happen" condition
61182         is true, that narrowing could conceivably convert an invalid st_size
61183         value into a valid one.  Instead, use a change based on Matthew
61184         Woehlke's original patch.
61185
61186         Slight readability improvement: use an assert-like macro
61187         in place of literal "abort ()" uses.
61188         * lib/fts.c (fts_assert): Define.
61189         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
61190         Use this macro instead of a bare 'abort'.
61191
61192 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
61193
61194         Don't worry about using IRIX 5.3's wctype.h broken definitions;
61195         simply work around them.
61196         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
61197         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
61198         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
61199         declaring.
61200         Don't bother to define as macros, since the standard doesn't require it.
61201         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
61202         longer worry about IRIX 5.3.
61203         (HAVE_WCTYPE_CTMP_BUG): Remove.
61204
61205 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
61206
61207         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
61208         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
61209         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
61210         Problems reported by Georg Schwarz for IRIX 5.3.
61211
61212         * gnulib-tool (autoconf_minversion): Take the maximum version number
61213         found, not the minimum.  Problem reported by James Youngman.
61214
61215 2007-01-03  Karl Berry  <karl@gnu.org>
61216
61217         * doc/error.texi: new file, explaining interaction with progname.
61218         * doc/gnulib.texi: include it.  Update copyright.
61219
61220 2007-01-03  Simon Josefsson  <simon@josefsson.org>
61221
61222         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
61223         AC_CANONICAL_HOST, to improve autobuild outputs.
61224
61225 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
61226             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
61227
61228         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
61229         sockets, server sockets, and other file descriptors.  Count errors
61230         to compute the return value.  Reorder the code a bit to be easier
61231         to follow.  Don't set event bits that were not requested (except
61232         POLLERR and POLLHUP).
61233
61234 2007-01-01  Bruno Haible  <bruno@clisp.org>
61235
61236         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
61237
61238 2007-01-03  Jim Meyering  <jim@meyering.net>
61239
61240         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
61241
61242 2007-01-02  Bruno Haible  <bruno@clisp.org>
61243
61244         * modules/settime (Include): Require timespec.h.
61245         * modules/nanosleep (Include): Likewise.
61246
61247 2007-01-01  Bruno Haible  <bruno@clisp.org>
61248
61249         * gnulib-tool (func_emit_copyright_notice): Bump year.
61250         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
61251
61252 2007-01-01  Bruno Haible  <bruno@clisp.org>
61253
61254         Improve support for OpenBSD.
61255         * build-aux/config.rpath (libname_spec): Export.
61256         (library_names_spec): New variable. Export.
61257         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
61258         library_names_spec from the config.rpath output. Locate shared library
61259         through the name pattern in library_names_spec.
61260
61261 2007-01-01  Eric Blake  <ebb9@byu.net>
61262
61263         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
61264
61265 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
61266
61267         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
61268         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
61269         assume the C locale, and avoid an "eval" that could cause trouble.
61270         Problem with SORT reported by Bob Proulx.
61271
61272         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
61273         Define.  Trivial patch from Henning Nielsen Lund, originally
61274         sent to bug-grep@gnu.org today.
61275
61276 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
61277
61278         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
61279         struct stat.  Problem reported by Henning Nielsen Lund.
61280         * lib/acl.c: Include acl.h first, to check interface.  Don't
61281         bother to include sys/types.h and sys/stat.h again.
61282
61283 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
61284
61285         Import the following change from libc; problem reported by
61286         Sven Verdoolaege.
61287
61288         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
61289
61290         [BZ #1373]
61291         * lib/argp.h: Remove __NTH for __argp_usage inline function.
61292
61293 2006-12-28  Jim Meyering  <jim@meyering.net>
61294
61295         * build-aux/announce-gen: Do not assume that the package
61296         builds any of tar.gz, tar.bz2, and .xdelta files.
61297         Suggestion from Simon Josefsson.
61298
61299 2006-12-28  Simon Josefsson  <simon@josefsson.org>
61300
61301         * modules/announce-gen: New file.
61302
61303 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
61304
61305         * lib/mbchar.h: Just include <wctype.h>; the wctype module
61306         handles its gotchas now.
61307         * lib/mbswidth.c: Likewise.
61308         * lib/wcwidth.h: Likewise.
61309         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
61310         and iswcntrl; the wctype module does this stuff now.
61311         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
61312         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
61313         * modules/mbchar (Depends-on): Add wctype.
61314         * modules/mbswidth (Depends-on): Likewise.
61315         * modules/wcwidth (Depends-on): Likewise.
61316
61317 2006-12-27  Eric Blake  <ebb9@byu.net>
61318
61319         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
61320         module uses more than what <wctype.h> is required to provide.
61321
61322 2006-12-26  Eric Blake  <ebb9@byu.net>
61323
61324         * gnulib-tool (sed_extract_prog): Avoid space-tab.
61325
61326 2006-12-26  Eric Blake  <ebb9@byu.net>
61327
61328         * modules/absolute-header: New module.
61329         * modules/fcntl (Depends-on): Depend on it.
61330         * modules/inttypes (Depends-on): Likewise.
61331         * modules/stdint (Depends-on): Likewise.
61332         * modules/sys_stat (Depends-on): Likewise.
61333         * modules/wctype (Depends-on): Likewise.
61334         * MODULES.html.sh (Support for building libraries and
61335         executables): Document it.
61336
61337 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
61338
61339         * gnulib-tool (SED): Remove, undoing previous change.
61340         The problem was that it broke coreutils on Solaris, because
61341         "sed --posix" leaked into a makefile.
61342         (sed): New alias, if 'alias' and GNU sed.
61343
61344 2006-12-24  Jim Meyering  <jim@meyering.net>
61345
61346         Work around an fchownat bug in glibc-2.4:
61347         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
61348         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
61349         in spite of the -P option.
61350         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
61351         New macros.
61352         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
61353         * modules/openat (Files): Add lib/fchownat.c.
61354         * lib/openat.c (fchownat): Don't define here.  Move to...
61355         * lib/fchownat.c: ...this new file.
61356
61357 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
61358
61359         Fix bug reported by Bruno Haible in
61360         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
61361         where quotearg.c didn't compile on Mac OS X 10.2 because it
61362         lacks <wchar.h> and wint_t.
61363         * lib/wctype_.h (__wctype_wint_t): New type.
61364         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
61365         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
61366         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
61367         Arg is now of type __wctype_wint_t, not wint_t.
61368         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
61369         substitute HAVE_WINT_T.
61370         * modules/wctype (Files): Add m4/wint_t.m4.
61371         (wctype.h): Substitute HAVE_WINT_T.
61372
61373 2006-12-23  Bruno Haible  <bruno@clisp.org>
61374
61375         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
61376
61377 2006-12-23  Bruno Haible  <bruno@clisp.org>
61378
61379         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
61380         S_ISLNK.
61381         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
61382         mingw.
61383
61384 2006-12-22  Bruno Haible  <bruno@clisp.org>
61385
61386         * lib/copy-file.c: Include acl.h.
61387         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
61388         Close the file descriptors only after being done with copy_acl.
61389         * modules/copy-file (Depends-on): Add acl.
61390
61391 2006-12-22  Bruno Haible  <bruno@clisp.org>
61392
61393         * gnulib-tool (SED): New variable.
61394         Use $SED instead of sed everywhere.
61395
61396 2006-12-22  Bruno Haible  <bruno@clisp.org>
61397
61398         * modules/no-c++: New file.
61399         * m4/no-c++.m4: New file.
61400         * MODULES.html.sh (Support for building libraries and executables):
61401         Add no-c++.
61402
61403 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
61404
61405         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
61406         Include <limits.h>, and use its INT_MAX to rewrite the
61407         j loop so that it does not overflow 'int'.  Problem reported by
61408         Ralf Wildenhues in
61409         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
61410         Play it safe by shifting left by 1 rather than multiplying by 2,
61411         as GCC is less likely to optimize this away when the value
61412         is signed (when it assumes overflow leads to undefined behavior).
61413         Also, don't assume time_t uses two's complement.
61414
61415 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
61416
61417         * MODULES.html.sh: New module wctype.
61418         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
61419         * lib/fnmatch.c: Don't bother to include <wchar.h> before
61420         <wctype.h>, since the new wctype module should fix this.
61421         * lib/quotearg.c: Include <wctype.h> unconditionally, since
61422         the wctype module should arrange for it.
61423         * lib/regex_internal.h: Likewise.
61424         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
61425         since the wctype module should handle this now.
61426         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
61427         * modules/fnmatch (Depends-on): Add wctype.
61428         * modules/quotearg (Depends-on): Likewise.
61429         * modules/regex (Depends-on): Likewise.
61430
61431 2006-12-19  Bruno Haible  <bruno@clisp.org>
61432
61433         * lib/strdup.h [C++]: Wrap definitions in extern "C".
61434         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
61435
61436 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61437
61438         * modules/savewd (Depends-on): Fix dependency on fcntl.
61439
61440 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
61441
61442         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
61443         conforms to C99, rather than relying on the user's environment
61444         setting of STDINT_H.
61445
61446 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
61447         and Eric Blake  <ebb9@byu.net>
61448
61449         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
61450         This is more consistent with the other defines here.
61451         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
61452         Port to z/OS.  Problem reported by Paul Gilmartin.
61453         Change local vars to use gl_ prefix rather than ac_.
61454         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
61455         with other defines.
61456         * modules/double-slash-root: New module.
61457         * modules/dirname (Files): Remove m4/double-slash-root.m4.
61458         (Depends-on): Add double-slash-root.
61459         * MODULES.html.sh (File system functions): Mention new module.
61460
61461 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
61462
61463         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
61464         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
61465         This is for the benefit of gzip, which doesn't do i18n.
61466
61467 2006-12-12  Jim Meyering  <jim@meyering.net>
61468
61469         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
61470         Reported by Andreas Schwab <schwab@suse.de>.
61471
61472 2006-12-12  Bruno Haible  <bruno@clisp.org>
61473
61474         Merge these changes.
61475         2006-09-05  Bruno Haible  <bruno@clisp.org>
61476         * lib/iconvme.c (iconv_string): No need to save and restore errno when
61477         iconv_alloc succeeded.
61478         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
61479         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
61480         test for " && dest " at the end - dest is always != NULL there. Call
61481         iconv with 4xNULL arguments initially, to reset the state. Call iconv
61482         with 2xNULL arguments, also to flush the state storage. Handle the
61483         IRIX iconv behaviour. Realloc the final result, to throw away unused
61484         memory.
61485
61486 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
61487
61488         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
61489         and fchmodat unconditionally, since glibc 2.4 has them.
61490         Problem reported by Arkadiusz Miskiewicz.
61491
61492 2006-12-10  Bruno Haible  <bruno@clisp.org>
61493
61494         * gnulib-tool (func_import): Show the include files only for those
61495         modules that are copied and specified.
61496         Reported by Karl Berry.
61497
61498 2006-12-08  Jim Meyering  <jim@meyering.net>
61499
61500         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
61501         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
61502
61503         * build-aux/announce-gen: Add two new options, both optional:
61504         --bootstrap-tools=TOOL_LIST
61505               a comma-separated list of tools, e.g.,
61506               autoconf,automake,bison,gnulib
61507         --gnulib-snapshot-date=DATE
61508               if gnulib is in the bootstrap tool list,
61509               then report this as the snapshot date.
61510               If not specified, use the current date/time.
61511               If you specify a date here, be sure it's UTC.
61512
61513 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61514
61515         * tests/test-argp-2.sh: Fix test to match actual output.
61516         (func_compare): Fix sed script to be portable.
61517
61518 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
61519
61520         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
61521         workaround for this case.  It is not autoconfigured now; offhand
61522         it's hard to see how to autoconfigure it.
61523
61524 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
61525
61526         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
61527         a directory that is about to be chowned.  Such a directory's
61528         initial file permissions should permit the owner only and this
61529         should not be changed until after the chown, since the group and
61530         other bits would be incorrect if they granted permission before
61531         the chown.
61532
61533         Fix porting problem for iswctype reported by Georg Schwarz in:
61534         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
61535         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
61536         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
61537         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
61538         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
61539
61540 2006-12-03  Jim Meyering  <jim@meyering.net>
61541
61542         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
61543         p->fts_statp may not yet be defined.
61544         (fts_read): Instead, set it in the caller, once p->fts_statp is
61545         sure to be defined, and corresponds to a top-level directory.
61546         This bug made du -x fail.  Here's the coreutils test case:
61547         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
61548         Reported by Mike Frysinger.
61549
61550 2006-12-01  Jim Meyering  <jim@meyering.net>
61551
61552         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
61553         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
61554         Reported by Simon Josefsson.
61555
61556 2006-11-30  Jim Meyering  <jim@meyering.net>
61557
61558         * m4/warning.m4: Use the all-permissive copyright notice
61559         recommended by RMS (rather than LGPL).
61560         * m4/vararrays.m4: Likewise.
61561         * m4/flexmember.m4: Likewise.
61562
61563 2006-11-29  Bruno Haible  <bruno@clisp.org>
61564
61565         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
61566         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
61567         using +=.
61568         Reported by Simon Josefsson <simon@josefsson.org>.
61569
61570 2006-11-28  James Youngman <jay@gnu.org>
61571
61572         * README: Advise users that they might find the bug-gnulib@gnu.org
61573         and autotools-announce@gnu.org mailing lists useful.
61574
61575 2006-11-28  Bruno Haible  <bruno@clisp.org>
61576
61577         * m4/ptrdiff_max.m4: Remove file.
61578
61579 2006-11-21  Bruno Haible  <bruno@clisp.org>
61580
61581         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
61582         _AC_COMPUTE_INT.
61583         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
61584         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
61585         _AC_COMPUTE_INT.
61586         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
61587         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
61588         _AC_COMPUTE_INT.
61589         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
61590
61591 2006-11-28  Jim Meyering  <jim@meyering.net>
61592
61593         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
61594         warning from "gcc -Wshadow" about shadowing the builtin.
61595
61596 2006-11-27  Bruno Haible  <bruno@clisp.org>
61597
61598         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
61599         _AC_COMPUTE_INT.
61600         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
61601
61602 2006-11-27  Bruno Haible  <bruno@clisp.org>
61603             Paul Eggert  <eggert@cs.ucla.edu>
61604
61605         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
61606
61607 2006-11-26  Bruno Haible  <bruno@clisp.org>
61608
61609         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
61610         noinst_LTLIBRARIES.
61611
61612 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
61613             Bruno Haible  <bruno@clisp.org>
61614
61615         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
61616         if compiling with "gcc -ansi".
61617
61618 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
61619
61620         Fix some incompatibilities with gcc -ansi -pedantic.
61621         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
61622         if compiling pedantically with GCC, unless it's C99 or later.
61623         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
61624         it mishandles gcc -ansi -pedantic as well.
61625         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
61626         if gcc -pedantic.
61627         * lib/regexec.c (check_node_accept_bytes): Don't use auto
61628         initializers for struct if -pedantic, unless it's C99 or later.
61629
61630 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
61631
61632         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
61633         Don't close an fd more than once. Identical atimes indicate
61634         success, not failure.
61635
61636 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
61637
61638         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
61639
61640 2006-11-23  Jim Meyering  <jim@meyering.net>
61641
61642         * build-aux/announce-gen: New file.  From coreutils.
61643
61644 2006-11-22  Jim Meyering  <jim@meyering.net>
61645
61646         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
61647         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
61648         (fts_read): Use a temporary to narrow the overused st_size member
61649         before using it in a switch statement.  Reported by Matthew Woehlke.
61650
61651         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
61652         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
61653
61654 2006-11-20  Bruno Haible  <bruno@clisp.org>
61655
61656         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
61657         changequote instead of pairs of brackets.
61658         Reported by Andreas Schwab <schwab@suse.de>.
61659
61660 2006-11-21  Jim Meyering  <jim@meyering.net>
61661
61662         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
61663         so as to remain compatible with older compilers.
61664         Patch from Michael Deutschmann.
61665
61666 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
61667
61668         * MODULES.html.sh (File system functions): Add openat.
61669
61670         * lib/openat.h (rpl_fstatat): New macro, if
61671         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
61672         (fstatat): Define to rpl_fstatat under the same conditions,
61673         unless COMPILING_FSTATAT.
61674         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
61675         seems to have the bug.
61676         * lib/fstatat.c: New file.
61677         * modules/openat (Files): Add it.
61678
61679 2006-11-20  Bruno Haible  <bruno@clisp.org>
61680
61681         * Makefile: New file.
61682
61683 2006-11-20  Jim Meyering  <jim@meyering.net>
61684
61685         The beginnings of syntax-related checks for gnulib.
61686         * lib/Makefile: New file.
61687         * lib/t-idcache: New script.  Ensure that the two halves of
61688         idcache.c stay in sync.
61689
61690         * lib/idcache.c: Adjust comments in user- and group- portions to
61691         be more accurate, and to be consistent with one another.
61692
61693 2006-11-20  Jim Meyering  <jim@meyering.net>
61694
61695         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
61696         continue using the flexible array member (thus, this module performs
61697         half as many malloc calls), with the addition that...
61698         (getgroup, getuser): Consistently record a non-match via an empty
61699         "name" string, and map an empty string match to a NULL return value.
61700         * modules/idcache (Depends-on): Re-add flexmember.
61701
61702         * lib/idcache.c (getuser): Remove all uses of the register keyword.
61703         (getuidbyname, getgroup, getgidbyname): Likewise.
61704
61705         Use cleaner syntax: NULL rather than 0.
61706         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
61707
61708 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
61709
61710         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
61711         It mishandled the case where the group was missing.
61712         Problem reported by Greg Schafer.
61713         * modules/idcache: Likewise.
61714
61715 2006-11-18  Jim Meyering  <jim@meyering.net>
61716
61717         * check-module (%exempt_header): Add exception for some
61718         conditionally-included headers.
61719
61720         * modules/i-ring (Depends-on): Add verify.
61721         (License): Change to LGPL.
61722
61723 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
61724
61725         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
61726         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
61727         and inttostr.h.  Use snprintf rather than uinttostr, so that
61728         LGPLed code doesn't depend on GPLed.
61729
61730 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
61731
61732         * modules/inline (License): Change from GPL to LGPL.
61733
61734 2006-11-17  Jim Meyering  <jim@meyering.net>
61735
61736         * modules/d-type (License): Switch to LGPL.
61737
61738 2006-11-15  Bruno Haible  <bruno@clisp.org>
61739
61740         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
61741
61742 2006-11-15  Eric Blake  <ebb9@byu.net>
61743
61744         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
61745         the module dependency.
61746
61747 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
61748             Bruno Haible  <bruno@clisp.org>
61749
61750         * gnulib-tool (func_create_testdir): Add license consistency check.
61751
61752 2006-11-15  Eric Blake  <ebb9@byu.net>
61753
61754         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
61755         random "(cached)" in configure output.
61756
61757 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61758
61759         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
61760         test for conforming inttypes.h is both announced and cached.
61761
61762         * MODULES.html.sh (seen_modules, seen_files): New variables.
61763         (func_module): Rewrite to use a few less gnulib-tool and sed
61764         invocations.  Avoid a couple of quadratic algorithms for ...
61765         (missed_modules, missed_files): ... these, with ...
61766         (func_append, func_tmpdir): ... these new functions, from
61767         gnulib-tool.  Analogously, install traps for cleanup.
61768
61769         * tests/test-gc.c (main): Remove unused variables.
61770         * tests/test-read-file.c: Include stdlib.h, for 'free'.
61771
61772 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
61773
61774         * modules/inttostr (License): Change to LGPL.
61775
61776 2006-11-14  Eric Blake  <ebb9@byu.net>
61777
61778         * modules/tempname (License): Change to LGPL.
61779
61780 2006-11-14  Eric Blake  <ebb9@byu.net>
61781
61782         * doc/functions.texi (Function Portability): *printf functions on
61783         Cygwin now understand all POSIX size specifiers.
61784
61785 2006-11-14  Bruno Haible  <bruno@clisp.org>
61786
61787         * modules/c-ctype (License): Change to LGPL.
61788
61789 2006-11-12  Bruno Haible  <bruno@clisp.org>
61790
61791         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
61792         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
61793         for GNOME libraries, for which the include files are installed in
61794         subdirectories of $prefix/include.
61795
61796 2006-11-12  Bruno Haible  <bruno@clisp.org>
61797
61798         * m4/lib-link.m4: Require at least autoconf-2.54.
61799         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
61800         name to underscores for the --with option.
61801
61802 2006-11-13  Bruno Haible  <bruno@clisp.org>
61803
61804         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
61805         the tests directory.
61806         Reported by Ralf Wildenhues.
61807
61808 2006-11-13  Bruno Haible  <bruno@clisp.org>
61809
61810         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
61811         (func_emit_initmacro_end): Undo the override here.
61812         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
61813         Works around the famous automake error in coreutils.
61814
61815 2006-11-13  Eric Blake  <ebb9@byu.net>
61816
61817         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
61818         element, not its node.
61819
61820 2006-11-12  Bruno Haible  <bruno@clisp.org>
61821
61822         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
61823         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
61824
61825 2006-11-12  Bruno Haible  <bruno@clisp.org>
61826
61827         * gnulib-tool: New option --local-symlink.
61828         (func_usage): Document it.
61829         (lsymbolic): New variable.
61830         (func_import, func_create_testdir): If --symlink was not specified,
61831         test whether --local-symlink was specified and the file comes from
61832         the local_gnulib_dir.
61833
61834 2006-11-12  Bruno Haible  <bruno@clisp.org>
61835
61836         * gnulib-tool (func_ln): New function.
61837         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
61838
61839 2006-11-12  Bruno Haible  <bruno@clisp.org>
61840
61841         Finish support for source files in subdirectories.
61842         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
61843         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
61844         AUTOMAKE_OPTIONS.
61845         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
61846
61847 2006-11-12  Bruno Haible  <bruno@clisp.org>
61848
61849         * gnulib-tool (func_get_automake_snippet): Synthesize also an
61850         EXTRA_lib_SOURCES augmentation.
61851         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
61852
61853 2006-11-12  Jim Meyering  <jim@meyering.net>
61854
61855         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
61856         file descriptors.  This also averts a failure on systems with
61857         native openat support when a traversed directory lacks "x" access.
61858         * lib/fts_.h: Include "i-ring.h"
61859         (struct FTS) [fts_fd_ring]: New member.
61860         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
61861         (FCHDIR): Add parentheses.
61862         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
61863         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
61864         When descending, rather than simply closing the previous
61865         fts_cwd_fd value, push that file descriptor onto the ring.
61866         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
61867         (fts_open): Initialize the new fd_ring member.
61868         (fts_close): Clear the ring.
61869         (fts_safe_changedir): When possible, use our new fd_ring to skip
61870         the diropen and fstat and dev/ino comparison that would normally
61871         accompany a virtual `chdir ("..")'.
61872
61873         * modules/fts (Depends-on): Add i-ring.
61874         * modules/i-ring: New module.
61875         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
61876         * m4/i-ring.m4: New file.
61877
61878 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61879
61880         * gnulib-tool (func_create_testdir): Fix replacement of
61881         `build-aux' in configure.ac.  Run autotools in gltests
61882         subdirectory.
61883         (func_create_testdir, func_create_megatestdir, test): There is
61884         no need for '--force' in most autotool invocations in a new
61885         tree.  Actually fail the whole test if any of the tools, or the
61886         configure or make stages fail.
61887
61888         Sync from Automake.
61889         * build-aux/gnupload: Revert last change.  Add pointer to upload
61890         instructions of the GNU Maintenance Instructions.
61891         Suggestion by Karl Berry.
61892
61893 2006-11-10  Jim Meyering  <jim@meyering.net>
61894
61895         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
61896
61897 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
61898
61899         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
61900         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
61901         (bind_textdomain_codeset) [! ENABLE_NLS]:
61902         Evaluate all the arguments.  That way, callers get compatible behavior
61903         if the arguments have side effects.  Also, it avoids some GCC
61904         diagnostics in some cases; Joel E. Denny reported problems when Bison
61905         was configured with --enable-gcc-warnigs.
61906
61907 2006-11-10  Jim Meyering  <jim@meyering.net>
61908
61909         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
61910         relevant options in CFLAGS (like -O, -fno-inline) are taken into
61911         account.
61912
61913 2006-11-10  Jim Meyering  <jim@meyering.net>
61914
61915         * modules/inline: New file/module.
61916         * modules/xalloc (Files): Remove m4/inline.m4.
61917         (Depends-on): Add inline, instead.
61918         * modules/oset: Likewise.
61919         * modules/list: Likewise.
61920
61921 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
61922
61923         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
61924         Problem reported by Matthew Woehlke.
61925
61926 2006-11-09  Bruno Haible  <bruno@clisp.org>
61927
61928         * lib/tempname.c (gen_tempname): Remove variant that invokes
61929         __gen_tempname.
61930         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
61931         __gen_tempname.
61932
61933 2006-11-08  Bruno Haible  <bruno@clisp.org>
61934
61935         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
61936         to 'yes' instead of 'cross-compiling'.
61937
61938 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
61939
61940         * lib/quotearg.h (quotearg_free): New decl.
61941         * lib/quotearg.c (quotearg_free): New function.
61942         (slot0, nslots, slotvec0, slotvec):
61943         Now file-scope so that quotearg_free can get at them.
61944
61945 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61946
61947         Sync from Automake.
61948         * build-aux/gnupload: Add missing 'gnu' to example URL.
61949         Report by Karl Berry.
61950
61951 2006-11-08  Bruno Haible  <bruno@clisp.org>
61952
61953         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
61954         Suggested by Paul Eggert.
61955
61956 2006-11-08  Jim Meyering  <jim@meyering.net>
61957
61958         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
61959         It's already included if !_LIBC.
61960         (fts_safe_changedir): Add a comment.
61961
61962 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
61963
61964         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
61965         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
61966         Matthew Woehlke.
61967
61968         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
61969         definitions up, to avoid colliding with change below.
61970         (static_inline) [HAVE_INLINE]: New macro.
61971         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
61972         Provide extern decls when !HAVE_INLINE.  Do not define unless
61973         static_inline is defined, either by us or by xmalloc.c.  Use
61974         static_inline rather than static inline.
61975         (XCALLOC): Optimize sizeof(T) = 1 case.
61976         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
61977
61978 2006-11-07  Bruno Haible  <bruno@clisp.org>
61979
61980         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
61981         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
61982         AC_C_INLINE.
61983         * modules/xalloc (Files): Add m4/inline.m4.
61984
61985 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61986
61987         * README: Fix typo.
61988         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
61989         (Miscellanous Notes): ...from this.
61990
61991 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
61992
61993         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
61994         Mention that offsetof should be used instead of sizeof.
61995         From Bruno Haible.
61996
61997 2006-11-07  Bruno Haible  <bruno@clisp.org>
61998
61999         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
62000
62001 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
62002
62003         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
62004         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
62005         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
62006         (gl_tree_add_before, gl_tree_add_after):
62007         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
62008         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
62009         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
62010         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
62011         (gl_linked_add_after, gl_linked_add_at): Likewise.
62012         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
62013         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
62014         (gl_tree_add_before, gl_tree_add_after): Likewise.
62015         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
62016         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
62017         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
62018
62019 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62020
62021         * lib/gl_oset.h: Use C comment style, not C++ comment style.
62022
62023 2006-11-06  Bruno Haible  <bruno@clisp.org>
62024
62025         * m4/inline.m4: New file.
62026         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
62027         * modules/list (Files): Add m4/inline.m4.
62028         * modules/oset (Files): Likewise.
62029
62030 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
62031
62032         * lib/idcache.c: Include <stddef.h>, for offsetof.
62033         (struct userid.name): Change from char * to a flexible array member.
62034         All uses changed.
62035         * modules/idcache (Depends-on): Add flexmember.
62036
62037         * MODULES.html.sh (Core language properties): New module flexmember.
62038         * modules/flexmember, m4/flexmember.m4: New files.
62039
62040         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
62041         inline functions that are identical with the old xnmalloc_inline,
62042         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
62043         that we can avoid some unnecessary integer multiplications and
62044         divisions in the common case where the element size is known at
62045         compile time.
62046         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
62047         needed.
62048         (xnboundedmalloc): Remove.
62049         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
62050         arguments, for consistency with rest of this header.
62051         (xcharalloc): Rewrite using XNMALLOC.
62052         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
62053         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
62054         versions have been moved to lib/xalloc.h and renamed to be the
62055         non-*_inline versions.
62056         (xmalloc, xrealloc): Implement without reference to the xnmalloc
62057         and xnrealloc functions, since those functions are now inline and
62058         now call us.
62059         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
62060         renaming described above.
62061         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
62062         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
62063         captures the dependency in AC_C_INLINE.
62064
62065         New module canonicalize-lgpl, proposed by Charles Wilson in
62066         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
62067         with a few small changes afterwards.
62068         * MODULES.html.sh (File system functions): New module
62069         canonicalize-lgpl.
62070         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
62071         and canonicalize_file_name.
62072         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
62073         * modules/canonicalize-lgpl: New files.
62074
62075 2006-11-05  Bruno Haible  <bruno@clisp.org>
62076
62077         * gnulib-tool (func_import, func_create_testdir): Create directories
62078         also for files in subdirectories of lib/.
62079
62080 2006-11-05  Bruno Haible  <bruno@clisp.org>
62081
62082         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
62083         ANSI C compliant.
62084
62085 2006-11-03  Bruno Haible  <bruno@clisp.org>
62086
62087         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
62088         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
62089         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
62090         (xnboundedmalloc): New inline function.
62091         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
62092         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
62093         xmalloc.
62094         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
62095         xmalloc.
62096         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
62097         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
62098         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
62099         xmalloc.
62100         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
62101         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
62102         xmalloc.
62103         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
62104         gl_tree_add_after): Use XMALLOC instead of xmalloc.
62105         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
62106         xmalloc.
62107         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
62108         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
62109         gl_tree_add_after): Use XMALLOC instead of xmalloc.
62110         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
62111         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
62112         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
62113         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
62114
62115 2006-11-03  Bruno Haible  <bruno@clisp.org>
62116
62117         * lib/c-ctype.h [C++]: Define functions without name mangling.
62118         * lib/fwriteerror.h [C++]: Likewise.
62119         * lib/gcd.h [C++]: Likewise.
62120         * lib/linebreak.h [C++]: Likewise.
62121
62122 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
62123
62124         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
62125         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
62126         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
62127         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
62128         Check for functions and headers just once.
62129         Check for declaration of canonicalize_file_name.
62130         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
62131
62132 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
62133
62134         * gnulib-tool (func_import): Fix typo in actioncmd.
62135
62136 2006-11-02  Bruno Haible  <bruno@clisp.org>
62137
62138         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
62139         newline sequence in the Makefile.am snippet as a space, like "make"
62140         does.
62141         Reported by Roger Persson <perrog@gmail.com>.
62142
62143 2006-11-01  Bruno Haible  <bruno@clisp.org>
62144
62145         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
62146         already declared in <string.h>.
62147         * lib/strcase.h (strncasecmp): Don't declare it if yes.
62148
62149 2006-11-01  Bruno Haible  <bruno@clisp.org>
62150
62151         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
62152         * lib/strcase.h: Include <string.h>.
62153         (strcasecmp): Define to rpl_strcasecmp here.
62154
62155 2006-11-01  Bruno Haible  <bruno@clisp.org>
62156
62157         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
62158
62159 2006-11-01  Eric Blake  <ebb9@byu.net>
62160
62161         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
62162
62163         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
62164
62165 2006-10-29  Bruno Haible  <bruno@clisp.org>
62166
62167         Make it compile in C++ mode.
62168         * lib/full-write.c (full_rw): Add a cast.
62169
62170 2006-11-01  Bruno Haible  <bruno@clisp.org>
62171
62172         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
62173         be POSIX compliant.
62174         Reported by Roger Persson <perrog@gmail.com>.
62175
62176 2006-11-01  Eric Blake  <ebb9@byu.net>
62177
62178         * lib/getopt_.h: Fix comments.
62179
62180 2006-10-31  Eric Blake  <ebb9@byu.net>
62181
62182         * modules/tmpdir (Depends-on): Add sys_stat.
62183         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
62184         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
62185         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
62186         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
62187         tempname.
62188
62189 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
62190
62191         Avoid some C++ diagnostics reported by Bruno Haible.
62192         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
62193         xmalloc.
62194         (quotearg_alloc): Use xcharalloc rather than xmalloc.
62195         (struct slotvec): Move to top level.
62196         (quotearg_n_options): Rewrite to avoid xmalloc.
62197         * lib/xalloc.h (xcharalloc): New function.
62198         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
62199         [defined __cplusplus]: Add function template that provides result
62200         type propagation.  This part of the change is from Bruno Haible.
62201
62202 2006-10-29  Bruno Haible  <bruno@clisp.org>
62203
62204         Make it compile in C++ mode.
62205         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
62206         * lib/strnlen1.c (strnlen1): Cast memchr result.
62207         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
62208         * lib/clean-temp.c (string_equals, string_hash): Add casts.
62209         (create_temp_dir): Rename local variable 'template'.
62210         (compile_csharp_using_sscli): Add cast.
62211         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
62212         * lib/findprog.c (find_in_path): Likewise.
62213         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
62214         * lib/wait-process.c (register_slave_subprocess): Likewise.
62215
62216 2006-10-22  Bruno Haible  <bruno@clisp.org>
62217
62218         * modules/tsearch: New file.
62219         * lib/tsearch.h: New file.
62220         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
62221         * m4/tsearch.m4: New file.
62222         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
62223
62224 2006-10-29  Eric Blake  <ebb9@byu.net>
62225
62226         * lib/arcfour.c: Assume config.h.
62227         * lib/arctwo.c: Likewise.
62228         * lib/base64.c: Likewise.
62229         * lib/check-version.c: Likewise.
62230         * lib/crc.c: Likewise.
62231         * lib/des.c: Likewise.
62232         * lib/gc-gnulib.c: Likewise.
62233         * lib/gc-libgcrypt.c: Likewise.
62234         * lib/gc-pbkdf2-sha1.c: Likewise.
62235         * lib/getaddrinfo.c: Likewise.
62236         * lib/getdelim.c: Likewise.
62237         * lib/getline.c: Likewise.
62238         * lib/hmac-md5.c: Likewise.
62239         * lib/hmac-sha1.c: Likewise.
62240         * lib/iconvme.c: Likewise.
62241         * lib/md2.c: Likewise.
62242         * lib/md4.c: Likewise.
62243         * lib/memxor.c: Likewise.
62244         * lib/read-file.c: Likewise.
62245         * lib/readline.c: Likewise.
62246         * lib/rijndael-alg-fst.c: Likewise.
62247         * lib/rijndael-api-fst.c: Likewise.
62248         * lib/xgetdomainname.c: Likewise.
62249
62250 2006-10-28  Eric Blake  <ebb9@byu.net>
62251
62252         * lib/xstrndup.c: Assume config.h.
62253
62254 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
62255
62256         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
62257         stat-macros.h is now for our own macros, whereas stat_h is for
62258         macros in the <sys/stat.h> name space.
62259         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
62260         (STAT_MACROS_H): Remove.
62261         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
62262         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
62263         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
62264         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
62265         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
62266         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
62267         Move these macros to ...
62268         * lib/stat_.h: here.  Don't include stat-macros.h.
62269         * lib/canonicalize.c: Don't include stat-macros.h.
62270         * lib/chown.c: Likewise.
62271         * lib/euidaccess.c: Likewise.
62272         * lib/file-type.c: Likewise.
62273         * lib/filemode.c: Likewise.
62274         * lib/glob.c: Likewise.
62275         * lib/isapipe.c: Likewise.
62276         * lib/lchown.c: Likewise.
62277         * lib/lstat.c: Likewise.
62278         * lib/mkdir-p.c: Likewise.
62279         * lib/rmdir.c: Likewise.
62280         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
62281         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
62282         unless mkdir isn't declared, to speed up 'configure'.
62283         Always create sys/stat.h, since it's unlikely any real sys/stat.h
62284         would define all the S_* symbols.
62285         * modules/canonicalize (Depends-on):
62286         Depend on sys_stat, not stat-macros.
62287         * modules/chown: Likewise.
62288         * modules/euidaccess: Likewise.
62289         * modules/filemode: Likewise.
62290         * modules/file-type: Likewise.
62291         * modules/glob: Likewise.
62292         * modules/isapipe: Likewise.
62293         * modules/lchown: Likewise.
62294         * modules/lstat: Likewise.
62295         * modules/mkancesdirs: Likewise.
62296         * modules/rmdir: Likewise.
62297         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
62298         * modules/modechange: Likewise.
62299         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
62300         (configure.ac): Remove gl_STAT_MACROS.
62301         * modules/sys_stat (Depends-on): Remove stat-macros.
62302
62303 2006-10-27  Bruno Haible  <bruno@clisp.org>
62304
62305         * m4/signed.m4: Remove file.
62306         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
62307         invocation.
62308         * modules/vasnprintf (Files): Remove m4/signed.m4.
62309
62310 2006-10-27  Bruno Haible  <bruno@clisp.org>
62311
62312         Update to GNU gettext 0.16.
62313         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
62314         m4/inttypes-h.m4, m4/signed.m4.
62315         * m4/gettext.m4: Update to GNU gettext 0.16.
62316         * m4/intl.m4: New file, from GNU gettext.
62317         * m4/intldir.m4: New file, from GNU gettext.
62318         * config/srclist.txt: Update
62319
62320 2006-10-27  Eric Blake  <ebb9@byu.net>
62321
62322         * MODULES.html.sh: Document tempname.
62323         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
62324         dependencies.
62325         (Files): Move lib/tempname.c...
62326         * modules/tempname: ...to this new module.
62327         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
62328         (gl_PREREQ_TEMPNAME): Move...
62329         * m4/tempname.m4: ...to this new file.
62330         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
62331         * modules/sys_stat (Depends-on): Add stat-macros.
62332         * lib/stat_.h (includes): Pick up stat macros.
62333         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
62334         if stat macros are broken.
62335         * lib/tempname.c (includes): No need to include "stat-macros.h".
62336         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
62337         (direxists, __path_search) [!_LIBC]: Don't compile these in
62338         gnulib; the tmpdir module covers that.
62339         * lib/tempname.h: New file.
62340
62341 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
62342
62343         * COPYING: Explain how gnulib-tool converts licence headers.
62344         Almost all wording by Eric Blake.
62345
62346 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
62347
62348         * lib/mbchar.h (is_basic_table): Make read-only.
62349         * lib/mbchar.c (is_basic_table): Likewise.
62350         Reported by John Darrington.
62351
62352 2006-10-25  Bruno Haible  <bruno@clisp.org>
62353
62354         * lib/progname.h (set_program_name): Undefine before defining.
62355
62356 2006-10-25  Bruno Haible  <bruno@clisp.org>
62357
62358         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
62359         false for non-gcc C++ compilers.
62360         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
62361
62362 2006-10-24  Bruno Haible  <bruno@clisp.org>
62363
62364         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
62365         iconv implementations like Irix iconv.
62366
62367 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
62368
62369         * modules/vararrays: New file.
62370         * m4/vararrays.m4: New file, taken from diffutils.
62371         * MODULES.html.sh: New module vararrays.
62372
62373 2006-10-24  Karl Berry  <karl@gnu.org>
62374
62375         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
62376         Don't call GNU Unix.
62377
62378 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62379
62380         * users.txt: Add Libtool.
62381
62382         Sync from Libtool:
62383
62384         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
62385
62386         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
62387         to gnulib's policy of including config.h unconditionally.
62388
62389 2006-10-24  Bruno Haible  <bruno@clisp.org>
62390
62391         * modules/wcwidth (Files): Add m4/wint_t.m4.
62392         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
62393         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
62394
62395 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
62396
62397         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
62398         to pacify GCC with some -W flags enabled.  Problem reported by
62399         Bruno Haible.
62400
62401 2006-10-24  Jim Meyering  <jim@meyering.net>
62402
62403         * MODULES.html.sh: Remove uinttostr.  It's not a module.
62404         Reported by Karl Berry.
62405
62406 2006-10-23  Bruno Haible  <bruno@clisp.org>
62407
62408         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
62409
62410 2006-10-24  Bruno Haible  <bruno@clisp.org>
62411
62412         * lib/gl_list.h: Use C comment style, not C++ comment style.
62413
62414 2006-10-23  Eric Blake  <ebb9@byu.net>
62415
62416         * lib/getaddrinfo.c (includes): Add missing include.
62417
62418 2006-10-23  Bruno Haible  <bruno@clisp.org>
62419             Paul Eggert  <eggert@cs.ucla.edu>
62420
62421         Ability to rename obstack_free.
62422         * lib/obstack.h (__obstack_free): New macro. Declare instead of
62423         obstack_free.
62424         (obstack_free): Invoke the __obstack_free macro.
62425         * lib/obstack.c (obstack_free): Use __obstack_free macro.
62426
62427 2006-10-23  Bruno Haible  <bruno@clisp.org>
62428             Paul Eggert  <eggert@cs.ucla.edu>
62429
62430         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
62431         __argc, __argv from the declaration. (They are defined as macros on
62432         mingw.)
62433
62434 2006-10-22  Bruno Haible  <bruno@clisp.org>
62435
62436         * doc/gnulib-intro.texi: New file.
62437         * doc/gnulib.texi: Include it.
62438
62439 2006-10-21  Bruno Haible  <bruno@clisp.org>
62440
62441         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
62442         "Introduction", "Miscellanous Notes", "Particular Modules".
62443
62444 2006-10-21  Bruno Haible  <bruno@clisp.org>
62445
62446         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
62447         Change mostlyclean-local rule to avoid sh syntax error from bash
62448         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
62449
62450 2006-10-23  Jim Meyering  <jim@meyering.net>
62451
62452         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
62453         in place of snprintf.
62454
62455         * modules/inttostr (Files): Add lib/uinttostr.c.
62456         * lib/uinttostr.c (inttostr): New file/function.
62457         * lib/inttostr.h (uinttostr): Declare.
62458         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
62459         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
62460         Add uinttostr.
62461         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
62462
62463 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
62464
62465         * lib/canonicalize.c (ELOOP): Define if not already defined.
62466         Problem reported by Bruno Haible in
62467         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
62468
62469 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
62470
62471         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
62472         Problem reported by Perry Smith and Ville Laurikari.
62473
62474         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
62475         uses.
62476
62477 2006-10-19  Bruno Haible  <bruno@clisp.org>
62478
62479         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
62480         for mingw.
62481
62482 2006-10-19  Bruno Haible  <bruno@clisp.org>
62483
62484         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
62485         Needed for mingw.
62486
62487 2006-10-19  Bruno Haible  <bruno@clisp.org>
62488
62489         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
62490
62491 2006-10-19  Bruno Haible  <bruno@clisp.org>
62492
62493         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
62494         it.
62495
62496 2006-10-19  Bruno Haible  <bruno@clisp.org>
62497
62498         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
62499         invocation.
62500
62501 2006-10-19  Bruno Haible  <bruno@clisp.org>
62502
62503         * gnulib-tool (func_create_testdir): Don't include ftruncate and
62504         mountlist by default.
62505
62506 2006-10-16  Bruno Haible  <bruno@clisp.org>
62507
62508         * lib/c-strstr.c: Include c-strstr.h.
62509
62510 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
62511
62512         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
62513         in a slash.
62514
62515 2006-10-18  Bruno Haible  <bruno@clisp.org>
62516
62517         * lib/lock.h [C++]: Wrap definitions in extern "C".
62518
62519 2006-10-18  Bruno Haible  <bruno@clisp.org>
62520
62521         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
62522         gl_LIBOBJS list.
62523
62524 2006-10-18  Bruno Haible  <bruno@clisp.org>
62525
62526         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
62527
62528 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
62529
62530         * lib/xstrtol.h: Include gettext.h.
62531         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
62532         Problem reported by Eric Blake.
62533         * modules/xstrtol (Depends-on): Add gettext-h.
62534
62535 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
62536
62537         * lib/strftime.c (advance): New macro.
62538         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
62539         incomplete type, so you can't add 0 to it.  Problem and patch
62540         reported by Eelco Dolstra for dietlibc.
62541
62542 2006-10-18  Jim Meyering  <jim@meyering.net>
62543
62544         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
62545         type for a local, and rename it: s/up/user_proc/.
62546
62547 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
62548
62549         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
62550         READ_UTMP_USER_PROCESS.
62551         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
62552
62553 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
62554
62555         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
62556         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
62557
62558 2006-10-17  Eric Blake  <ebb9@byu.net>
62559
62560         * lib/sigprocmask.c (sigprocmask): Fix typo.
62561
62562         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
62563
62564         * modules/clean-temp (Makefile.am): Don't add to make output...
62565         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
62566         config.h.
62567
62568 2006-10-17  Bruno Haible  <bruno@clisp.org>
62569
62570         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
62571         differently if DEFAULT_TEXT_DOMAIN is set.
62572
62573 2006-10-16  Bruno Haible  <bruno@clisp.org>
62574
62575         * lib/clean-temp.c: Include fwriteerror.h.
62576
62577 2006-10-16  Bruno Haible  <bruno@clisp.org>
62578
62579         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
62580
62581 2006-10-16  Bruno Haible  <bruno@clisp.org>
62582
62583         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
62584         * lib/sigprocmask.h: Include <sys/types.h>.
62585         (sigset_t): Use the system's definition if present.
62586
62587 2006-10-17  Eric Blake  <ebb9@byu.net>
62588
62589         * lib/xvasprintf.c (includes): Assume config.h.
62590         * lib/xasprintf.c (includes): Likewise.
62591
62592 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
62593
62594         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
62595         at least as wide as intmax_t.
62596
62597 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
62598
62599         (Imported from Automake.)
62600         * build-aux/gnupload: Update to version 1.1 of directive file.
62601
62602 2006-10-16  Eric Blake  <ebb9@byu.net>
62603
62604         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
62605         match Automake 1.10a.
62606
62607 2006-10-14  Bruno Haible  <bruno@clisp.org>
62608
62609         * modules/sigprocmask: New file.
62610         * lib/sigprocmask.h: New file.
62611         * lib/sigprocmask.c: New file.
62612         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
62613         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
62614         request sigprocmask.o.
62615         (gl_PREREQ_SIGPROCMASK): New macro.
62616         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
62617         (Depends-on): Add sigprocmask.
62618         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
62619         gt_SIGNALBLOCKING. Test for 'raise' only once.
62620         * lib/fatal-signal.c: Include sigprocmask.h.
62621         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
62622         unblock_fatal_signals): Define always.
62623         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
62624         sigprocmask.
62625
62626 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
62627
62628         Sync from Automake.
62629         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
62630         which incorrectly sets the mode of an existing destination
62631         directory.  In some cases the unpatched install-sh could do the
62632         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
62633         system.  We hope this is rare in practice, but it's clearly worth
62634         fixing.  Problem reported by Alex Unleashed in
62635         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
62636         Also, don't bother to check for -m bugs unless we're using -m;
62637         suggested by Stepan Kasal.
62638
62639 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62640
62641         Sync from Automake.
62642         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
62643         `-c' flag, so they appear at the same position as in %FASTDEP%
62644         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
62645         which ignores unknown options only after the first non-option.
62646         Bug report against M4 by Nelson H. F. Beebe.
62647
62648 2006-10-13  Jim Meyering  <jim@meyering.net>
62649
62650         Fix a bug in yesterday's change.
62651         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
62652         p->fts_statp->st_dev would be used uninitialized.
62653         Ensures that we always call fts_stat on the very first entry.
62654         Miklos Szeredi reported that find -xdev stopped working.
62655
62656 2006-10-12  Bruno Haible  <bruno@clisp.org>
62657
62658         * gnulib-tool (func_get_automake_snippet): Append an automatically
62659         computed EXTRA_DIST augmentation.
62660         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
62661         * modules/alloca-opt (Makefile.am): Likewise.
62662         * modules/allocsa (Makefile.am): Likewise.
62663         * modules/arcfour (Makefile.am): Likewise.
62664         * modules/arctwo (Makefile.am): Likewise.
62665         * modules/argmatch (Makefile.am): Likewise.
62666         * modules/argz (Makefile.am): Likewise.
62667         * modules/atexit (Makefile.am): Likewise.
62668         * modules/backupfile (Makefile.am): Likewise.
62669         * modules/byteswap (Makefile.am): Likewise.
62670         * modules/c-strtod (Makefile.am): Likewise.
62671         * modules/c-strtold (Makefile.am): Likewise.
62672         * modules/calloc (Makefile.am): Likewise.
62673         * modules/canon-host (Makefile.am): Likewise.
62674         * modules/canonicalize (Makefile.am): Likewise.
62675         * modules/chdir-long (Makefile.am): Likewise.
62676         * modules/chdir-safer (Makefile.am): Likewise.
62677         * modules/check-version (Makefile.am): Likewise.
62678         * modules/chown (Makefile.am): Likewise.
62679         * modules/cloexec (Makefile.am): Likewise.
62680         * modules/close-stream (Makefile.am): Likewise.
62681         * modules/closeout (Makefile.am): Likewise.
62682         * modules/crc (Makefile.am): Likewise.
62683         * modules/csharpexec (Makefile.am): Likewise.
62684         * modules/cycle-check (Makefile.am): Likewise.
62685         * modules/des (Makefile.am): Likewise.
62686         * modules/dev-ino (Makefile.am): Likewise.
62687         * modules/dirfd (Makefile.am): Likewise.
62688         * modules/dirname (Makefile.am): Likewise.
62689         * modules/dup2 (Makefile.am): Likewise.
62690         * modules/eealloc (Makefile.am): Likewise.
62691         * modules/error (Makefile.am): Likewise.
62692         * modules/euidaccess (Makefile.am): Likewise.
62693         * modules/exclude (Makefile.am): Likewise.
62694         * modules/exitfail (Makefile.am): Likewise.
62695         * modules/fcntl-safer (Makefile.am): Likewise.
62696         * modules/fcntl (Makefile.am): Likewise.
62697         * modules/file-type (Makefile.am): Likewise.
62698         * modules/fileblocks (Makefile.am): Likewise.
62699         * modules/filemode (Makefile.am): Likewise.
62700         * modules/filenamecat (Makefile.am): Likewise.
62701         * modules/fnmatch (Makefile.am): Likewise.
62702         * modules/fopen-safer (Makefile.am): Likewise.
62703         * modules/fpending (Makefile.am): Likewise.
62704         * modules/fprintftime (Makefile.am): Likewise.
62705         * modules/free (Makefile.am): Likewise.
62706         * modules/fsusage (Makefile.am): Likewise.
62707         * modules/ftruncate (Makefile.am): Likewise.
62708         * modules/fts (Makefile.am): Likewise.
62709         * modules/gc-arcfour (Makefile.am): Likewise.
62710         * modules/gc-des (Makefile.am): Likewise.
62711         * modules/gc-hmac-md5 (Makefile.am): Likewise.
62712         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
62713         * modules/gc-md4 (Makefile.am): Likewise.
62714         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
62715         * modules/gc-sha1 (Makefile.am): Likewise.
62716         * modules/gc (Makefile.am): Likewise.
62717         * modules/getaddrinfo (Makefile.am): Likewise.
62718         * modules/getcwd (Makefile.am): Likewise.
62719         * modules/getdelim (Makefile.am): Likewise.
62720         * modules/getdomainname (Makefile.am): Likewise.
62721         * modules/getgroups (Makefile.am): Likewise.
62722         * modules/gethostname (Makefile.am): Likewise.
62723         * modules/gethrxtime (Makefile.am): Likewise.
62724         * modules/getline (Makefile.am): Likewise.
62725         * modules/getloadavg (Makefile.am): Likewise.
62726         * modules/getlogin_r (Makefile.am): Likewise.
62727         * modules/getndelim2 (Makefile.am): Likewise.
62728         * modules/getopt (Makefile.am): Likewise.
62729         * modules/getpagesize (Makefile.am): Likewise.
62730         * modules/getpass-gnu (Makefile.am): Likewise.
62731         * modules/getpass (Makefile.am): Likewise.
62732         * modules/getsubopt (Makefile.am): Likewise.
62733         * modules/gettime (Makefile.am): Likewise.
62734         * modules/gettimeofday (Makefile.am): Likewise.
62735         * modules/getugroups (Makefile.am): Likewise.
62736         * modules/getusershell (Makefile.am): Likewise.
62737         * modules/glob (Makefile.am): Likewise.
62738         * modules/group-member (Makefile.am): Likewise.
62739         * modules/hard-locale (Makefile.am): Likewise.
62740         * modules/hash (Makefile.am): Likewise.
62741         * modules/hmac-md5 (Makefile.am): Likewise.
62742         * modules/hmac-sha1 (Makefile.am): Likewise.
62743         * modules/human (Makefile.am): Likewise.
62744         * modules/idcache (Makefile.am): Likewise.
62745         * modules/imaxabs (Makefile.am): Likewise.
62746         * modules/imaxdiv (Makefile.am): Likewise.
62747         * modules/inet_ntop (Makefile.am): Likewise.
62748         * modules/inet_pton (Makefile.am): Likewise.
62749         * modules/intprops (Makefile.am): Likewise.
62750         * modules/inttostr (Makefile.am): Likewise.
62751         * modules/inttypes (Makefile.am): Likewise.
62752         * modules/isapipe (Makefile.am): Likewise.
62753         * modules/javaversion (Makefile.am): Likewise.
62754         * modules/lchmod (Makefile.am): Likewise.
62755         * modules/lchown (Makefile.am): Likewise.
62756         * modules/localcharset (Makefile.am): Likewise.
62757         * modules/long-options (Makefile.am): Likewise.
62758         * modules/lstat (Makefile.am): Likewise.
62759         * modules/malloc (Makefile.am): Likewise.
62760         * modules/mathl (Makefile.am): Likewise.
62761         * modules/mbchar (Makefile.am): Likewise.
62762         * modules/md2 (Makefile.am): Likewise.
62763         * modules/md4 (Makefile.am): Likewise.
62764         * modules/md5 (Makefile.am): Likewise.
62765         * modules/memcasecmp (Makefile.am): Likewise.
62766         * modules/memchr (Makefile.am): Likewise.
62767         * modules/memcmp (Makefile.am): Likewise.
62768         * modules/memcoll (Makefile.am): Likewise.
62769         * modules/memcpy (Makefile.am): Likewise.
62770         * modules/memmem (Makefile.am): Likewise.
62771         * modules/memmove (Makefile.am): Likewise.
62772         * modules/mempcpy (Makefile.am): Likewise.
62773         * modules/memrchr (Makefile.am): Likewise.
62774         * modules/memset (Makefile.am): Likewise.
62775         * modules/memxor (Makefile.am): Likewise.
62776         * modules/mkancesdirs (Makefile.am): Likewise.
62777         * modules/mkdir-p (Makefile.am): Likewise.
62778         * modules/mkdir (Makefile.am): Likewise.
62779         * modules/mkdtemp (Makefile.am): Likewise.
62780         * modules/mkstemp (Makefile.am): Likewise.
62781         * modules/mktime (Makefile.am): Likewise.
62782         * modules/modechange (Makefile.am): Likewise.
62783         * modules/mountlist (Makefile.am): Likewise.
62784         * modules/nanosleep (Makefile.am): Likewise.
62785         * modules/obstack (Makefile.am): Likewise.
62786         * modules/openat (Makefile.am): Likewise.
62787         * modules/pagealign_alloc (Makefile.am): Likewise.
62788         * modules/pathmax (Makefile.am): Likewise.
62789         * modules/physmem (Makefile.am): Likewise.
62790         * modules/poll (Makefile.am): Likewise.
62791         * modules/posixtm (Makefile.am): Likewise.
62792         * modules/posixver (Makefile.am): Likewise.
62793         * modules/putenv (Makefile.am): Likewise.
62794         * modules/quote (Makefile.am): Likewise.
62795         * modules/quotearg (Makefile.am): Likewise.
62796         * modules/raise (Makefile.am): Likewise.
62797         * modules/read-file (Makefile.am): Likewise.
62798         * modules/readline (Makefile.am): Likewise.
62799         * modules/readlink (Makefile.am): Likewise.
62800         * modules/readtokens (Makefile.am): Likewise.
62801         * modules/readutmp (Makefile.am): Likewise.
62802         * modules/realloc (Makefile.am): Likewise.
62803         * modules/regex (Makefile.am): Likewise.
62804         * modules/rename-dest-slash (Makefile.am): Likewise.
62805         * modules/rename (Makefile.am): Likewise.
62806         * modules/rijndael (Makefile.am): Likewise.
62807         * modules/rmdir (Makefile.am): Likewise.
62808         * modules/rpmatch (Makefile.am): Likewise.
62809         * modules/safe-read (Makefile.am): Likewise.
62810         * modules/safe-write (Makefile.am): Likewise.
62811         * modules/same-inode (Makefile.am): Likewise.
62812         * modules/same (Makefile.am): Likewise.
62813         * modules/save-cwd (Makefile.am): Likewise.
62814         * modules/savedir (Makefile.am): Likewise.
62815         * modules/setenv (Makefile.am): Likewise.
62816         * modules/settime (Makefile.am): Likewise.
62817         * modules/sha1 (Makefile.am): Likewise.
62818         * modules/sig2str (Makefile.am): Likewise.
62819         * modules/snprintf (Makefile.am): Likewise.
62820         * modules/stat-macros (Makefile.am): Likewise.
62821         * modules/stat-time (Makefile.am): Likewise.
62822         * modules/stdbool (Makefile.am): Likewise.
62823         * modules/stdint (Makefile.am): Likewise.
62824         * modules/stdlib-safer (Makefile.am): Likewise.
62825         * modules/stpcpy (Makefile.am): Likewise.
62826         * modules/stpncpy (Makefile.am): Likewise.
62827         * modules/strcase (Makefile.am): Likewise.
62828         * modules/strcasestr (Makefile.am): Likewise.
62829         * modules/strchrnul (Makefile.am): Likewise.
62830         * modules/strcspn (Makefile.am): Likewise.
62831         * modules/strdup (Makefile.am): Likewise.
62832         * modules/strerror (Makefile.am): Likewise.
62833         * modules/strftime (Makefile.am): Likewise.
62834         * modules/strndup (Makefile.am): Likewise.
62835         * modules/strnlen (Makefile.am): Likewise.
62836         * modules/strpbrk (Makefile.am): Likewise.
62837         * modules/strsep (Makefile.am): Likewise.
62838         * modules/strstr (Makefile.am): Likewise.
62839         * modules/strtod (Makefile.am): Likewise.
62840         * modules/strtoimax (Makefile.am): Likewise.
62841         * modules/strtok_r (Makefile.am): Likewise.
62842         * modules/strtol (Makefile.am): Likewise.
62843         * modules/strtoll (Makefile.am): Likewise.
62844         * modules/strtoul (Makefile.am): Likewise.
62845         * modules/strtoull (Makefile.am): Likewise.
62846         * modules/strtoumax (Makefile.am): Likewise.
62847         * modules/strverscmp (Makefile.am): Likewise.
62848         * modules/sys_socket (Makefile.am): Likewise.
62849         * modules/sys_stat (Makefile.am): Likewise.
62850         * modules/sysexits (Makefile.am): Likewise.
62851         * modules/time_r (Makefile.am): Likewise.
62852         * modules/timegm (Makefile.am): Likewise.
62853         * modules/timespec (Makefile.am): Likewise.
62854         * modules/tmpfile-safer (Makefile.am): Likewise.
62855         * modules/trim (Makefile.am): Likewise.
62856         * modules/unistd-safer (Makefile.am): Likewise.
62857         * modules/unlinkdir (Makefile.am): Likewise.
62858         * modules/unlocked-io (Makefile.am): Likewise.
62859         * modules/userspec (Makefile.am): Likewise.
62860         * modules/utime (Makefile.am): Likewise.
62861         * modules/utimecmp (Makefile.am): Likewise.
62862         * modules/utimens (Makefile.am): Likewise.
62863         * modules/vasnprintf (Makefile.am): Likewise.
62864         * modules/vasprintf (Makefile.am): Likewise.
62865         * modules/vsnprintf (Makefile.am): Likewise.
62866         * modules/xalloc (Makefile.am): Likewise.
62867         * modules/xgetcwd (Makefile.am): Likewise.
62868         * modules/xnanosleep (Makefile.am): Likewise.
62869         * modules/xreadlink (Makefile.am): Likewise.
62870         * modules/xstrtod (Makefile.am): Likewise.
62871         * modules/xstrtol (Makefile.am): Likewise.
62872         * modules/xstrtold (Makefile.am): Likewise.
62873         * modules/yesno (Makefile.am): Likewise.
62874         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
62875
62876 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
62877
62878         * modules/error (Makefile.am): Distribute files through
62879         EXTRA_DIST, not lib_SOURCES.
62880
62881 2006-10-12  Eric Blake  <ebb9@byu.net>
62882
62883         * modules/error (Makefile.am): Distribute files in /lib.
62884         * modules/obstack (Makefile.am): Likewise.
62885
62886 2006-10-12  Bruno Haible  <bruno@clisp.org>
62887
62888         * modules/acl (Makefile.am): Distribute all files in lib/ through
62889         EXTRA_DIST.
62890         * modules/arcfour (Makefile.am): Likewise.
62891         * modules/arctwo (Makefile.am): Likewise.
62892         * modules/argmatch (Makefile.am): Likewise.
62893         * modules/argz (Makefile.am): Likewise.
62894         * modules/atexit (Makefile.am): Likewise.
62895         * modules/backupfile (Makefile.am): Likewise.
62896         * modules/c-strtod (Makefile.am): Likewise.
62897         * modules/c-strtold (Makefile.am): Likewise.
62898         * modules/calloc (Makefile.am): Likewise.
62899         * modules/canon-host (Makefile.am): Likewise.
62900         * modules/canonicalize (Makefile.am): Likewise.
62901         * modules/chdir-long (Makefile.am): Likewise.
62902         * modules/chdir-safer (Makefile.am): Likewise.
62903         * modules/check-version (Makefile.am): Likewise.
62904         * modules/chown (Makefile.am): Likewise.
62905         * modules/cloexec (Makefile.am): Likewise.
62906         * modules/close-stream (Makefile.am): Likewise.
62907         * modules/closeout (Makefile.am): Likewise.
62908         * modules/crc (Makefile.am): Likewise.
62909         * modules/cycle-check (Makefile.am): Likewise.
62910         * modules/des (Makefile.am): Likewise.
62911         * modules/dirfd (Makefile.am): Likewise.
62912         * modules/dirname (Makefile.am): Likewise.
62913         * modules/dup2 (Makefile.am): Likewise.
62914         * modules/euidaccess (Makefile.am): Likewise.
62915         * modules/exclude (Makefile.am): Likewise.
62916         * modules/exitfail (Makefile.am): Likewise.
62917         * modules/fcntl-safer (Makefile.am): Likewise.
62918         * modules/file-type (Makefile.am): Likewise.
62919         * modules/fileblocks (Makefile.am): Likewise.
62920         * modules/filemode (Makefile.am): Likewise.
62921         * modules/filenamecat (Makefile.am): Likewise.
62922         * modules/fnmatch (Makefile.am): Likewise.
62923         * modules/fopen-safer (Makefile.am): Likewise.
62924         * modules/fpending (Makefile.am): Likewise.
62925         * modules/fprintftime (Makefile.am): Likewise.
62926         * modules/free (Makefile.am): Likewise.
62927         * modules/fsusage (Makefile.am): Likewise.
62928         * modules/ftruncate (Makefile.am): Likewise.
62929         * modules/fts (Makefile.am): Likewise.
62930         * modules/gc (Makefile.am): Likewise.
62931         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
62932         * modules/getaddrinfo (Makefile.am): Likewise.
62933         * modules/getcwd (Makefile.am): Likewise.
62934         * modules/getdelim (Makefile.am): Likewise.
62935         * modules/getdomainname (Makefile.am): Likewise.
62936         * modules/getgroups (Makefile.am): Likewise.
62937         * modules/gethostname (Makefile.am): Likewise.
62938         * modules/gethrxtime (Makefile.am): Likewise.
62939         * modules/getline (Makefile.am): Likewise.
62940         * modules/getloadavg (Makefile.am): Likewise.
62941         * modules/getlogin_r (Makefile.am): Likewise.
62942         * modules/getopt (Makefile.am): Likewise.
62943         * modules/getpass (Makefile.am): Likewise.
62944         * modules/getpass-gnu (Makefile.am): Likewise.
62945         * modules/getsubopt (Makefile.am): Likewise.
62946         * modules/gettime (Makefile.am): Likewise.
62947         * modules/gettimeofday (Makefile.am): Likewise.
62948         * modules/getugroups (Makefile.am): Likewise.
62949         * modules/getusershell (Makefile.am): Likewise.
62950         * modules/glob (Makefile.am): Likewise.
62951         * modules/group-member (Makefile.am): Likewise.
62952         * modules/hard-locale (Makefile.am): Likewise.
62953         * modules/hash (Makefile.am): Likewise.
62954         * modules/hmac-md5 (Makefile.am): Likewise.
62955         * modules/hmac-sha1 (Makefile.am): Likewise.
62956         * modules/human (Makefile.am): Likewise.
62957         * modules/idcache (Makefile.am): Likewise.
62958         * modules/imaxabs (Makefile.am): Likewise.
62959         * modules/imaxdiv (Makefile.am): Likewise.
62960         * modules/inet_ntop (Makefile.am): Likewise.
62961         * modules/inet_pton (Makefile.am): Likewise.
62962         * modules/inttostr (Makefile.am): Likewise.
62963         * modules/isapipe (Makefile.am): Likewise.
62964         * modules/lchown (Makefile.am): Likewise.
62965         * modules/long-options (Makefile.am): Likewise.
62966         * modules/lstat (Makefile.am): Likewise.
62967         * modules/malloc (Makefile.am): Likewise.
62968         * modules/mathl (Makefile.am): Likewise.
62969         * modules/mbchar (Makefile.am): Likewise.
62970         * modules/md2 (Makefile.am): Likewise.
62971         * modules/md4 (Makefile.am): Likewise.
62972         * modules/md5 (Makefile.am): Likewise.
62973         * modules/memcasecmp (Makefile.am): Likewise.
62974         * modules/memchr (Makefile.am): Likewise.
62975         * modules/memcmp (Makefile.am): Likewise.
62976         * modules/memcoll (Makefile.am): Likewise.
62977         * modules/memcpy (Makefile.am): Likewise.
62978         * modules/memmem (Makefile.am): Likewise.
62979         * modules/memmove (Makefile.am): Likewise.
62980         * modules/mempcpy (Makefile.am): Likewise.
62981         * modules/memrchr (Makefile.am): Likewise.
62982         * modules/memset (Makefile.am): Likewise.
62983         * modules/memxor (Makefile.am): Likewise.
62984         * modules/mkancesdirs (Makefile.am): Likewise.
62985         * modules/mkdir (Makefile.am): Likewise.
62986         * modules/mkdir-p (Makefile.am): Likewise.
62987         * modules/mkdtemp (Makefile.am): Likewise.
62988         * modules/mkstemp (Makefile.am): Likewise.
62989         * modules/mktime (Makefile.am): Likewise.
62990         * modules/modechange (Makefile.am): Likewise.
62991         * modules/mountlist (Makefile.am): Likewise.
62992         * modules/nanosleep (Makefile.am): Likewise.
62993         * modules/openat (Makefile.am): Likewise.
62994         * modules/pagealign_alloc (Makefile.am): Likewise.
62995         * modules/physmem (Makefile.am): Likewise.
62996         * modules/poll (Makefile.am): Likewise.
62997         * modules/posixtm (Makefile.am): Likewise.
62998         * modules/posixver (Makefile.am): Likewise.
62999         * modules/putenv (Makefile.am): Likewise.
63000         * modules/quote (Makefile.am): Likewise.
63001         * modules/quotearg (Makefile.am): Likewise.
63002         * modules/raise (Makefile.am): Likewise.
63003         * modules/read-file (Makefile.am): Likewise.
63004         * modules/readline (Makefile.am): Likewise.
63005         * modules/readlink (Makefile.am): Likewise.
63006         * modules/readtokens (Makefile.am): Likewise.
63007         * modules/readutmp (Makefile.am): Likewise.
63008         * modules/realloc (Makefile.am): Likewise.
63009         * modules/regex (Makefile.am): Likewise.
63010         * modules/rename (Makefile.am): Likewise.
63011         * modules/rename-dest-slash (Makefile.am): Likewise.
63012         * modules/rijndael (Makefile.am): Likewise.
63013         * modules/rmdir (Makefile.am): Likewise.
63014         * modules/rpmatch (Makefile.am): Likewise.
63015         * modules/safe-read (Makefile.am): Likewise.
63016         * modules/safe-write (Makefile.am): Likewise.
63017         * modules/same (Makefile.am): Likewise.
63018         * modules/save-cwd (Makefile.am): Likewise.
63019         * modules/savedir (Makefile.am): Likewise.
63020         * modules/setenv (Makefile.am): Likewise.
63021         * modules/settime (Makefile.am): Likewise.
63022         * modules/sha1 (Makefile.am): Likewise.
63023         * modules/sig2str (Makefile.am): Likewise.
63024         * modules/snprintf (Makefile.am): Likewise.
63025         * modules/stdlib-safer (Makefile.am): Likewise.
63026         * modules/stpcpy (Makefile.am): Likewise.
63027         * modules/stpncpy (Makefile.am): Likewise.
63028         * modules/strcase (Makefile.am): Likewise.
63029         * modules/strcasestr (Makefile.am): Likewise.
63030         * modules/strchrnul (Makefile.am): Likewise.
63031         * modules/strcspn (Makefile.am): Likewise.
63032         * modules/strdup (Makefile.am): Likewise.
63033         * modules/strerror (Makefile.am): Likewise.
63034         * modules/strftime (Makefile.am): Likewise.
63035         * modules/strndup (Makefile.am): Likewise.
63036         * modules/strnlen (Makefile.am): Likewise.
63037         * modules/strpbrk (Makefile.am): Likewise.
63038         * modules/strsep (Makefile.am): Likewise.
63039         * modules/strstr (Makefile.am): Likewise.
63040         * modules/strtod (Makefile.am): Likewise.
63041         * modules/strtoimax (Makefile.am): Likewise.
63042         * modules/strtok_r (Makefile.am): Likewise.
63043         * modules/strtol (Makefile.am): Likewise.
63044         * modules/strtoll (Makefile.am): Likewise.
63045         * modules/strtoul (Makefile.am): Likewise.
63046         * modules/strtoull (Makefile.am): Likewise.
63047         * modules/strtoumax (Makefile.am): Likewise.
63048         * modules/strverscmp (Makefile.am): Likewise.
63049         * modules/time_r (Makefile.am): Likewise.
63050         * modules/timegm (Makefile.am): Likewise.
63051         * modules/tmpfile-safer (Makefile.am): Likewise.
63052         * modules/unistd-safer (Makefile.am): Likewise.
63053         * modules/unlinkdir (Makefile.am): Likewise.
63054         * modules/userspec (Makefile.am): Likewise.
63055         * modules/utime (Makefile.am): Likewise.
63056         * modules/utimecmp (Makefile.am): Likewise.
63057         * modules/utimens (Makefile.am): Likewise.
63058         * modules/vasnprintf (Makefile.am): Likewise.
63059         * modules/vasprintf (Makefile.am): Likewise.
63060         * modules/vsnprintf (Makefile.am): Likewise.
63061         * modules/xalloc (Makefile.am): Likewise.
63062         * modules/xgetcwd (Makefile.am): Likewise.
63063         * modules/xnanosleep (Makefile.am): Likewise.
63064         * modules/xreadlink (Makefile.am): Likewise.
63065         * modules/xstrtod (Makefile.am): Likewise.
63066         * modules/xstrtol (Makefile.am): Likewise.
63067         * modules/xstrtold (Makefile.am): Likewise.
63068         * modules/yesno (Makefile.am): Likewise.
63069
63070 2006-10-12  Jim Meyering  <jim@meyering.net>
63071
63072         * m4/getloadavg.m4: Revert the change below.
63073
63074         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
63075         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
63076         fail with a symlink, which is what coreutils' ./bootstrap now
63077         creates by default.
63078
63079 2006-10-12  Bruno Haible  <bruno@clisp.org>
63080
63081         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
63082         mingw.
63083         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
63084         MSVC and mingw explicitly.
63085
63086 2006-10-11  Simon Josefsson  <jas@extundo.com>
63087             Bruno Haible  <bruno@clisp.org>
63088
63089         Add support for multiple gnulib-tool invocations in the scope of a
63090         single configure.ac file.
63091         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
63092         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
63093         with the same contents as the _LIBADD variable.
63094         (func_emit_initmacro_start, func_emit_initmacro_end,
63095         func_emit_initmacro_done): New functions.
63096         (func_import, func_create_testdir): Invoke them. Allow the identifiers
63097         gl_LIBOBJS and gl_LTLIBOBJS.
63098
63099 2006-10-11  Bruno Haible  <bruno@clisp.org>
63100
63101         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
63102         (func_create_testdir): Don't create po/Makefile.am, don't invoke
63103         autoreconf. Instead, invoke autopoint explicitly but move back the
63104         *.m4 files from gnulib.
63105
63106 2006-10-11  Bruno Haible  <bruno@clisp.org>
63107
63108         * gnulib-tool (func_usage): Make module names after --create-testdir
63109         optional.
63110         (func_create_testdir): If no module was specified, use nearly all
63111         modules.
63112
63113 2006-10-12  Jim Meyering  <jim@meyering.net>
63114
63115         Big performance improvement for fts-based tools that use FTS_NOSTAT.
63116         Avoid spurious inode-mismatch problems on non-POSIX file systems.
63117         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
63118         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
63119         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
63120         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
63121         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
63122         (fts_set_stat_required): New function.
63123         (fts_open): Defer the calls to fts_stat, if possible or requested.
63124         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
63125         into fts_stat itself.
63126         (fts_read): Perform any required (deferred) fts_stat call.
63127         (fts_build): Likewise, for the directory we're about to open and read.
63128         In the readdir loop, carefully decide whether each entry will require
63129         an eventual call to fts_stat, using dirent.d_type info if available.
63130         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
63131         a command line argument into this function.  Update all callers.
63132         Map a return value of FTS_DOT to FTS_D for a command line argument.
63133         * modules/fts (Depends-on): Add d-type.  Alphabetize.
63134         Thanks to Miklos Szeredi for his tenacity and for the initial
63135         bug report about "find" failing on a FUSE-based file system.
63136
63137         * lib/fts.c (fts_open): Use consistent indentation.
63138
63139 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
63140
63141         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
63142         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
63143         reported by Jim Meyering.  All uses of cache variables renamed
63144         to match Autoconf's.
63145         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
63146         the other one.
63147
63148         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
63149         Fix misspelling in diagnostic.
63150
63151 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
63152
63153         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
63154         defined.  Problem reported by Matthew Woehlke.
63155
63156         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
63157         Add support for Tandem NonStop R series.
63158         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
63159         Use new macro.
63160
63161         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
63162         (has_trailing_slash): Omit size arg; all callers changed.
63163         Omit 'inline', since it doesn't help performance and we'd
63164         need to configure it.
63165         Don't count //, ///, etc. as having a trailing slash.
63166         As a side effect, this removes a C99ism reported by Matthew Woehlke.
63167         (rpl_rename_dest_slash): On failure, use rename's errno rather
63168         than (in some cases) an incorrect or junk errno.
63169         Simplify code by removing need to compute length; this does
63170         cause it to make two passes instead of one over the file name,
63171         but it's worth it.
63172
63173         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
63174         change, since Autoconf's version may no longer be appropriate now
63175         that we are using CVS Autoconf's version.  Add support for Tandem.
63176
63177 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
63178             Bruno Haible  <bruno@clisp.org>
63179
63180         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
63181         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
63182         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
63183         gl_AC_TYPE_LONG_LONG.
63184
63185         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
63186         instead of HAVE_LONG_LONG.
63187         * lib/printf-args.c (printf_fetchargs): Likewise.
63188         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
63189         * lib/vasnprintf.c (VASNPRINTF): Likewise.
63190         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
63191         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
63192         gl_AC_TYPE_LONG_LONG.
63193
63194 2006-10-11  Bruno Haible  <bruno@clisp.org>
63195
63196         * m4/longlong.m4: Add comments.
63197         * m4/ulonglong.m4: Likewise.
63198
63199 2006-10-10  Bruno Haible  <bruno@clisp.org>
63200
63201         Make it possible to #define stpcpy, strdup to aliases.
63202         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
63203         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
63204
63205 2006-10-10  Bruno Haible  <bruno@clisp.org>
63206
63207         Make it possible to #define gcd to an alias.
63208         * lib/gcd.c: Include config.h.
63209
63210 2006-10-10  Bruno Haible  <bruno@clisp.org>
63211
63212         Make it possible to #define c_isascii to an alias.
63213         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
63214         defined. Undefine the macros before defining them, to avoid gcc
63215         warnings.
63216         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
63217         define NO_C_CTYPE_MACROS early.
63218
63219 2006-10-10  Bruno Haible  <bruno@clisp.org>
63220
63221         Make it possible to #define set_program_name to an alias.
63222         * lib/progname.c: Don't undefine set_program_name; instead, undefine
63223         ENABLE_RELOCATABLE early.
63224
63225 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
63226
63227         Port to Tandem NSK OSS, which has 64-bit signed int but at most
63228         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
63229         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
63230         More generally, don't assume that 64-bit signed int is available
63231         if unsigned int is, and vice versa.
63232         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
63233         unsigned symbols, not on their signed counterparts.
63234         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
63235         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
63236         (UINT64_C, UINTMAX_C):
63237         Likewise.
63238         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
63239         unsigned counterparts.
63240         (Have_long_long, Unsigned): New macros.
63241         (Int): Renamed from INT.
63242         (strtoimax): Use the new macros.
63243         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
63244         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
63245         * modules/inttypes (inttypes.h): Substitute
63246         HAVE_UNSIGNED_LONG_LONG_INT.
63247         * modules/stdint (stdint.h): Likewise.
63248         (Files): Add m4/ulonglong.m4.
63249
63250 2006-10-10  Bruno Haible  <bruno@clisp.org>
63251
63252         Fix a gcc -Wshadow warning.
63253         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
63254         to 'bucket'.
63255         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
63256         gl_linked_indexof_from_to): Likewise.
63257         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
63258         Likewise.
63259         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
63260         Likewise.
63261         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
63262         Reported by Eric Blake.
63263
63264 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
63265
63266         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
63267         for NetBSD.  Problem reported by Bruno Haible.
63268
63269 2006-10-09  Jim Meyering  <jim@meyering.net>
63270
63271         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
63272         Patch from Bruno Haible.
63273
63274 2006-10-09  Jim Meyering  <jim@meyering.net>
63275
63276         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
63277         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
63278         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
63279
63280 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
63281
63282         Don't include <config.h> twice; this doesn't work in some cases,
63283         e.g., when config.h has "#define intmax_t long long int" and
63284         we include <config.h>, <inttypes.h>, <config.h> in that order.
63285         Problem reported by Matthew Woehlke in:
63286         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
63287         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
63288         * lib/fts-cycle.c: Don't include config.h.
63289         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
63290         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
63291         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
63292         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
63293         inttypes.h.
63294         * lib/xstrtoumax.c: Likewise.
63295         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
63296         __strtol and the like, so that this module is more like its siblings.
63297         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
63298         Remove; no longer needed now that we assume gnulib inttypes.h.
63299
63300 2006-10-08  Bruno Haible  <bruno@clisp.org>
63301
63302         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
63303         option.
63304
63305 2006-10-07  Jim Meyering  <jim@meyering.net>
63306
63307         * modules/inttypes (inttypes.h): Revert what seems to have been
63308         an inadvertent part of today's change: use "|", not "/" in the
63309         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
63310
63311 2006-10-07  Bruno Haible  <bruno@clisp.org>
63312
63313         * modules/sublist: New file.
63314
63315 2006-10-07  Bruno Haible  <bruno@clisp.org>
63316
63317         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
63318         * modules/argz (argz.h): Likewise.
63319         * modules/arpa_inet (arpa/inet.h): Likewise.
63320         * modules/byteswap (byteswap.h): Likewise.
63321         * modules/configmake (configmake.h): Likewise.
63322         * modules/fcntl (fcntl.h): Likewise.
63323         * modules/fnmatch (fnmatch.h): Likewise.
63324         * modules/getopt (getopt.h): Likewise.
63325         * modules/glob (glob.h): Likewise.
63326         * modules/inttypes (inttypes.h): Likewise.
63327         * modules/netinet_in (netinet/in.h): Likewise.
63328         * modules/poll (poll.h): Likewise.
63329         * modules/stdbool (stdbool.h): Likewise.
63330         * modules/stdint (stdint.h): Likewise.
63331         * modules/sys_select (sys/select.h): Likewise.
63332         * modules/sys_socket (sys/socket.h): Likewise.
63333         * modules/sys_stat (sys/stat.h): Likewise.
63334         * modules/sysexits (sysexits.h): Likewise.
63335         * modules/unistd (unistd.h): Likewise.
63336         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
63337         Add a "DO NOT EDIT" comment to the generated file.
63338         (func_import): Likewise for gnulib-comp.m4.
63339
63340 2006-10-07  Bruno Haible  <bruno@clisp.org>
63341
63342         * lib/gl_sublist.h: New file.
63343         * lib/gl_sublist.c: New file.
63344
63345 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
63346
63347         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
63348         name (relative to the original working directory) and the file
63349         name component (relative to the temporary working directory).  All
63350         callers changed.
63351         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
63352         * lib/mkdir-p.c (make_dir_parents): Likewise.
63353         * lib/mkdir-p.h (make_dir_parents): Likewise.
63354
63355 2006-10-06  Eric Blake  <ebb9@byu.net>
63356
63357         Define several macros for use by the clean-temp module.
63358         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
63359         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
63360         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
63361
63362         * lib/clean-temp.h (close_stream_temp): New declaration.
63363         * lib/clean-temp.c (includes): Pull in headers according to what
63364         other modules are in use.
63365         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
63366
63367 2006-10-06  Bruno Haible  <bruno@clisp.org>
63368
63369         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
63370         instead of fopen, fwriteerror.
63371
63372 2006-10-06  Bruno Haible  <bruno@clisp.org>
63373
63374         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
63375         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
63376         int.
63377         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
63378         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
63379         Return an error indicator.
63380         Suggested by Eric Blake.
63381
63382 2006-10-06  Bruno Haible  <bruno@clisp.org>
63383
63384         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
63385         Reported by Eric Blake.
63386
63387 2006-10-06  Bruno Haible  <bruno@clisp.org>
63388
63389         * modules/closeout (Description): Mention stderr too.
63390
63391 2006-10-06  Bruno Haible  <bruno@clisp.org>
63392         and Paul Eggert  <eggert@cs.ucla.edu>
63393
63394         * lib/closeout.c (close_stdout): Also close stderr.
63395         * lib/closeout.h: Update comment.
63396
63397 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
63398
63399         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
63400         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
63401         * lib/dirchownmod.c: Include lchown.h.
63402         * lib/lchown.c: Don't include files that lchown.h now includes.
63403         Don't declare chown, since lchown.h now does that.
63404         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
63405         (lchown): Define to rpl_chown if lchown is declared but
63406         does not exist.  Declare using a prototype if lchown is not
63407         declared.  Add a copyright notice.
63408         * lib/mkstemp.h: Include <unistd.h>.
63409         * lib/openat.c: Include lchown.h.
63410
63411         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
63412         we now test for that separately.
63413         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
63414         rather than O_NOFOLLOW, when testing whether it's possible to
63415         avoid a race condition reliably.
63416         * lib/savewd.c (savewd_chdir): Likewise.
63417
63418         Remove macros that are no longer needed now that stdint.h is
63419         reliable.
63420         * lib/fsusage.c (UINTMAX_MAX): Remove.
63421         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
63422         * lib/utimecmp.c (SIZE_MAX): Remove.
63423
63424         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
63425
63426         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
63427         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
63428         O_NOATIME works.
63429
63430 2006-10-05  Bruno Haible  <bruno@clisp.org>
63431
63432         * lib/gl_list.h (gl_sortedlist_search_from_to,
63433         gl_sortedlist_indexof_from_to): New declarations.
63434         (gl_list_implementation): New fields sortedlist_search_from_to,
63435         sortedlist_indexof_from_to.
63436         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
63437         inline functions.
63438         * lib/gl_list.c (gl_sortedlist_search_from_to,
63439         gl_sortedlist_indexof_from_to): New functions.
63440         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
63441         function.
63442         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
63443         (gl_array_sortedlist_search_from_to): New function.
63444         (gl_array_list_implementation): Update.
63445         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
63446         function.
63447         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
63448         (gl_carray_sortedlist_search_from_to): New function.
63449         (gl_carray_list_implementation): Update.
63450         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
63451         gl_linked_sortedlist_indexof_from_to): New functions.
63452         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
63453         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
63454         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
63455         gl_tree_sortedlist_indexof_from_to): New functions.
63456         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
63457         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
63458         Update.
63459         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
63460         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
63461         Update.
63462
63463 2006-10-05  Bruno Haible  <bruno@clisp.org>
63464
63465         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
63466         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
63467         (struct gl_list_implementation): Add fields search_from_to,
63468         indexof_from_to. Remove fields search, indexof.
63469         (gl_list_search): Use the search_from_to method.
63470         (gl_list_search_from, gl_list_search_from_to): New functions.
63471         (gl_list_indexof): Use the indexof_from_to method.
63472         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
63473         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
63474         (gl_list_search_from, gl_list_search_from_to): New functions.
63475         (gl_list_indexof): Use the indexof_from_to method.
63476         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
63477         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
63478         gl_array_indexof. Add start_index, end_index arguments.
63479         (gl_array_search_from_to): Renamed from gl_array_search. Add
63480         start_index, end_index arguments.
63481         (gl_array_remove, gl_array_list_implementation): Update.
63482         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
63483         gl_carray_indexof. Add start_index, end_index arguments.
63484         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
63485         start_index, end_index arguments.
63486         (gl_carray_remove, gl_carray_list_implementation): Update.
63487         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
63488         gl_linked_search. Add start_index, end_index arguments.
63489         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
63490         start_index, end_index arguments.
63491         (gl_linked_remove): Update.
63492         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
63493         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
63494         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
63495         field to 'size_t'.
63496         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
63497         gl_tree_search. Add start_index, end_index arguments.
63498         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
63499         start_index, end_index arguments.
63500         (gl_tree_remove): Update.
63501         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
63502         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
63503         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
63504         function.
63505         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
63506         gl_tree_search. Add start_index, end_index arguments.
63507         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
63508         start_index, end_index arguments.
63509         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
63510         Update.
63511         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
63512
63513 2006-10-05  Bruno Haible  <bruno@clisp.org>
63514
63515         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
63516
63517         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
63518         fwriteerror_temp): New declarations.
63519         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
63520         (descriptors): New variable.
63521         (cleanup): First, close the descriptors.
63522         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
63523         fclose_temp, fwriteerror_temp): New functions.
63524
63525 2006-10-04  Jim Meyering  <jim@meyering.net>
63526
63527         * lib/fts.c (fts_open): Tiny comment change.
63528
63529 2006-10-04  Bruno Haible  <bruno@clisp.org>
63530
63531         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
63532         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
63533         gl_LOCK_BODY.
63534         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
63535         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
63536         gl_LOCK_EARLY_BODY.
63537         (gl_LOCK): Require gl_LOCK_BODY.
63538
63539 2006-10-04  Bruno Haible  <bruno@clisp.org>
63540
63541         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
63542         (gl_oset_search_atleast): New declaration.
63543         (struct gl_oset_implementation): Add field 'search_atleast'.
63544         (gl_oset_search_atleast): New inline function.
63545         * lib/gl_oset.c (gl_oset_search_atleast): New function.
63546         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
63547         (gl_array_oset_implementation): Update.
63548         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
63549         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
63550         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
63551
63552 2006-10-04  Bruno Haible  <bruno@clisp.org>
63553
63554         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
63555
63556 2006-10-03  Bruno Haible  <bruno@clisp.org>
63557
63558         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
63559         from gl_avltreehash_list_implementation.
63560
63561 2006-10-03  Bruno Haible  <bruno@clisp.org>
63562
63563         * lib/gl_oset.c (gl_oset_add): Fix return type.
63564
63565 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
63566
63567         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
63568
63569 2006-10-02  Eric Blake  <ebb9@byu.net>
63570
63571         * modules/strnlen (Depends-on): Add extensions.
63572
63573 2006-10-02  Eric Blake  <ebb9@byu.net>
63574
63575         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
63576         definition in 2.60+.
63577
63578 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
63579
63580         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
63581         checks.
63582
63583 2006-10-02  Bruno Haible  <bruno@clisp.org>
63584
63585         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
63586         to the AUTOMAKE_OPTIONS.
63587         Reported by Jim Meyering.
63588
63589 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
63590
63591         Work around bug in Solaris 10 /proc file system:
63592         /proc/self/fd/NNN/.. isn't the parent directory of
63593         the directory whose file descriptor is NNN.  This needs to
63594         be worked around at run time, not compile time, since a
63595         program might be built on Solaris 8, where things work, and
63596         run on Solaris 10.
63597         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
63598         to use the following interface instead:
63599         (OPENAT_BUFFER_SIZE): New macro.
63600         (openat_proc_name): New function.
63601         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
63602         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
63603         Likewise.
63604         * lib/openat-proc.c: New file.
63605         * modules/openat (Files): Add lib/openat-proc.c.
63606         (Depends-on): Add same-inode, stdbool.
63607         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
63608
63609 2006-09-29  Bruno Haible  <bruno@clisp.org>
63610
63611         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
63612         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
63613         argument. Set stdout_closed before testing for ferror, not after.
63614         (fwriteerror, fwriteerror_no_ebadf): New functions.
63615
63616 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63617
63618         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
63619
63620 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
63621
63622         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
63623         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
63624
63625 2006-09-28  Jim Meyering  <jim@meyering.net>
63626
63627         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
63628         Include <unistd.h>.
63629
63630 2006-09-28  Bruno Haible  <bruno@clisp.org>
63631
63632         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
63633         * modules/linkedhash-list (Depends-on): Likewise.
63634         * modules/rbtreehash-list (Depends-on): Likewise.
63635
63636 2006-09-28  Bruno Haible  <bruno@clisp.org>
63637
63638         * lib/strndup.h: Simplify the redefinition of strndup.
63639         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
63640         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
63641
63642 2006-09-28  Bruno Haible  <bruno@clisp.org>
63643
63644         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
63645         * lib/gl_linkedhash_list.c: Likewise.
63646         * lib/gl_rbtreehash_list.c: Likewise.
63647
63648 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
63649
63650         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
63651         getaddrinfo.
63652
63653         * lib/__fpending.h: Don't include <stdio_ext.h> unless
63654         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
63655         it causes <stdio_ext.h> to cause a compile-time error.
63656         Problem reported by Nelson H. F. Beebe.
63657         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
63658         of HAVE_DECL___PENDING.
63659
63660         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
63661         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
63662         declaration.
63663
63664 2006-09-27  Jim Meyering  <jim@meyering.net>
63665
63666         This file could end up with a definition for a function
63667         named __strndup, rather than rpl_strndup on a system with
63668         incomplete weak_alias support.
63669         * lib/strndup.c (strndup): Rename from __strndup.
63670         Remove #defines that used to map __strndup to strndup.
63671         Don't use K&R prototypes.
63672         Remove LIBC-related code, since this file is not sync'd with glibc.
63673         * lib/strndup.h: Revamp, accordingly.
63674         * m4/strndup.m4: Modernize.
63675
63676 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
63677
63678         * modules/savewd (Depends-on): Add 'raise'.
63679         * lib/savewd.c: Include <signal.h>, for 'raise'.
63680
63681 2006-09-26  Jim Meyering  <jim@meyering.net>
63682
63683         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
63684         when we detect Darwin 8.7.0's acl_get_file bug.
63685         Rearrange to perform the new (below) run-test while $LIBS
63686         contains any acl-related library.  Set USE_ACL at the end.
63687         (gl_ACL_GET_FILE): New function.
63688
63689 2006-09-26  Eric Blake  <ebb9@byu.net>
63690
63691         * lib/verror.c: Include <config.h> unconditionally.
63692
63693 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
63694
63695         * modules/clock-time (Maintainer): Add self.
63696         * modules/getlogin_r (Depends-on): Add extensions.
63697
63698 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63699
63700         * modules/clock-time: New module.
63701         * modules/nanosleep (Depends-on): Add clock-time.
63702         * modules/gethrxtime (Depends-on): Likewise.
63703         * modules/gettime (Depends-on): Likewise.
63704         * modules/settime (Depends-on): Likewise.
63705
63706         * modules/fts-lgpl: Depend on openat.
63707         * modules/mkancesdirs: Depend on savewd.
63708         * modules/mkdir-p: Likewise.
63709
63710 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63711
63712         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
63713
63714         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
63715         `gl_have_arbitrary_file_name_length_limit' to
63716         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
63717         actually works between configure runs.
63718
63719 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63720             Bruno Haible  <bruno@clisp.org>
63721
63722         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
63723
63724 2006-09-25  Jim Meyering  <jim@meyering.net>
63725
63726         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
63727         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
63728
63729 2006-09-25  Eric Blake  <ebb9@byu.net>
63730
63731         * gnulib-tool (func_import, func_create_testdir): Fix typos in
63732         exec's in 2006-09-18 patch when shuffling fds.
63733
63734 2006-09-25  Bruno Haible  <bruno@clisp.org>
63735
63736         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
63737         Reported by Jim Meyering.
63738
63739 2006-09-24  Jim Meyering  <jim@meyering.net>
63740
63741         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
63742         compare a pointer against a literal "0".  That caused failures with
63743         at least HP-UX's hpcc.
63744
63745 2006-09-22  Simon Josefsson  <jas@extundo.com>
63746
63747         * modules/gc-sha1:
63748         * modules/gc-md4:
63749         * modules/gc-hmac-sha1:
63750         * modules/gc-hmac-md5:
63751         * modules/gc-des:
63752         * modules/gc-arcfour: Distribute more files.
63753
63754 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63755
63756         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
63757         (gl_linked_iterator_from_to): Initialize struct completely.
63758         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
63759         (gl_tree_iterator_from_to): Likewise
63760         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
63761         * lib/gl_array_list.c [lint] (gl_array_iterator)
63762         (gl_array_iterator_from_to): Likewise.
63763         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
63764         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
63765         (gl_carray_iterator_from_to): Likewise.
63766
63767         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
63768         * lib/md4.c (md4_process_block): Remove unused variable.
63769         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
63770         parentheses for clarity.
63771
63772 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63773
63774         * modules/bison-i18n (Depends-on): Add gettext.
63775
63776 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63777
63778         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
63779         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
63780         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
63781         also add missing comma that caused broken test.
63782         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
63783         stdlib.h, for `abort'.
63784         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
63785         variables.
63786         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
63787         include unistd.h if present, for `rmdir'.
63788         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
63789         variables.
63790         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
63791         in the process include standard headers for prototypes.
63792         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
63793         gets declared on GNU/Linux.
63794         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
63795         unistd.h, for `rmdir'.
63796         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
63797
63798         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
63799         always true.
63800         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
63801
63802         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
63803
63804 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63805
63806         * gnulib-tool (func_version): Create output all at once.  This
63807         may help avoid triggering unnecessary SIGPIPEs, and at any
63808         rate it doesn't hurt.
63809
63810 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63811             Bruno Haible  <bruno@clisp.org>
63812
63813         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
63814         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
63815         * m4/signed.m4 (bh_C_SIGNED): Likewise.
63816
63817         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
63818         (gl_FUNC_VASPRINTF): Invoke it.
63819
63820 2006-09-22  Bruno Haible  <bruno@clisp.org>
63821
63822         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
63823         getloadavg.c as first argument.
63824
63825 2006-09-22  Bruno Haible  <bruno@clisp.org>
63826
63827         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
63828         at the beginning of the gl_INIT macro.
63829         * modules/getloadavg (configure.ac): Pass $gl_source_base to
63830         gl_GETLOADAVG.
63831
63832 2006-09-22  Bruno Haible  <bruno@clisp.org>
63833
63834         * gnulib-tool (func_create_megatestdir): Don't include the config-h
63835         module.
63836         Suggested by Ralf Wildenhues.
63837
63838 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
63839
63840         Import this patch from libc:
63841
63842         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
63843
63844         * lib/regex_internal.c (re_string_reconstruct): Handle
63845         offset < pstr->valid_raw_len && pstr->offsets_needed case.
63846         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
63847         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
63848         re_string_context_at.
63849
63850         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
63851         now requires it.
63852         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
63853         gl_REGEX now does it for us.
63854         (gl_REGEX): Add test taken from
63855         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
63856
63857         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
63858         Check that large offsets work.  Modernize Autoconf usages.
63859         Prefer "yes" to mean a good thing rather than a bad.
63860         Don't put "#define mkstemp" in config.h, as this might interfere
63861         with standard system headers that "#define mkstemp mkstemp64".
63862
63863         * modules/mkstemp (Depends-on): Add extensions, so that
63864         mkstemp is visible on some platforms.
63865         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
63866         (Include): Change to "mkstemp.h" from <stdlib.h>.
63867         (Files): Add mkstemp.h.
63868
63869         * lib/mkstemp.h: New file, since some standard headers
63870         #define mkstemp.
63871         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
63872         Include "mkstemp.h".
63873         Make the _LIBC code resemble glibc original more,
63874         e.g., use K&R style.
63875         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
63876         (mkstemp): Remove, since mkstemp.h does this for us.
63877         * lib/stdlib--.h: Include mkstemp.h.
63878
63879         Import this patch from libc:
63880
63881         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
63882
63883         * lib/tempname.c (__gen_tempname): Change attempts_min
63884         into a macro.  Use preprocessor to decide how to initialize
63885         attempts [Coverity CID 67].
63886
63887 2006-09-20  Bruno Haible  <bruno@clisp.org>
63888
63889         * lib/mkdtemp.c: Import from libc.
63890         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
63891                 * sysdeps/posix/tempname.c (__gen_tempname): Change
63892                 attempts_min into a macro.  Use preprocessor to decide how to
63893                 initialize attempts [Coverity CID 67].
63894         2001-11-27  Paul Eggert  <eggert@twinsun.com>
63895                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
63896                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
63897
63898 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63899
63900         * gnulib-tool (func_exit): New function, to allow to pass the
63901         exit status portably through the trap.  Use everywhere.
63902         (--help, --version): Signal a write error.
63903         (trap): catch SIGPIPE, for write errors.
63904         Exit at the end of the trap, with the correct exit status.
63905
63906 2006-09-19  Karl Berry  <karl@gnu.org>
63907
63908         * doc/gnulib.texi: note about the license texinfo files.
63909
63910 2006-09-19  Eric Blake  <ebb9@byu.net>
63911
63912         * gnulib-tool: Avoid space-tab.
63913
63914 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
63915
63916         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
63917         that prevented coreutils 6.1 from building.  Problem reported
63918         by Petter Reinholdtsen.
63919
63920 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
63921
63922         * gnulib-tool (avoidlist): Fix typo that broke options like
63923         --avoid=lock that are used by coreutils bootstrap.
63924
63925 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
63926
63927         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
63928         more systematically.
63929
63930 2006-09-18  Jim Meyering  <jim@meyering.net>
63931
63932         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
63933
63934 2006-09-18  Bruno Haible  <bruno@clisp.org>
63935
63936         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
63937
63938 2006-09-18  Bruno Haible  <bruno@clisp.org>
63939
63940         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
63941         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
63942         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
63943         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
63944         * m4/gettext.m4: Require autoconf >= 2.52.
63945         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
63946         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
63947         of gl_cv_header_inttypes_h.
63948
63949 2006-09-18  Bruno Haible  <bruno@clisp.org>
63950
63951         * lib/javaversion.c: Include configmake.h.
63952
63953 2006-09-18  Bruno Haible  <bruno@clisp.org>
63954
63955         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
63956         avoid that the while loops be executed in a subshell.
63957
63958 2006-09-18  Bruno Haible  <bruno@clisp.org>
63959
63960         * MODULES.html.sh (func_module): Break long lines.
63961         Suggested by Bruce Korb <bkorb@gnu.org>.
63962
63963 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63964
63965         Speed up by a factor of 1.12.
63966         * gnulib-tool (nl): New variable.
63967         (func_import): Rewrite include directive extraction to only read each
63968         directive once.
63969
63970 2006-09-17  Bruno Haible  <bruno@clisp.org>
63971
63972         * modules/javaversion (Makefile.am): Remove DEFS setting.
63973         (Depends-on): Add configmake, for PKGDATADIR definition.
63974
63975 2006-09-17  Bruno Haible  <bruno@clisp.org>
63976
63977         * gnulib-tool (func_create_testdir): Rewrite all files at once.
63978
63979 2006-09-17  Bruno Haible  <bruno@clisp.org>
63980
63981         * gnulib-tool (func_append): New function, stolen from libtool.m4.
63982         (func_modules_transitive_closure, func_modules_add_dummy,
63983         func_modules_to_filelist, func_import, func_create_testdir,
63984         func_create_megatestdir, ...): Use it wherever possible.
63985         Suggested by Ralf Wildenhues.
63986
63987 2006-09-16  Karl Berry  <karl@gnu.org>
63988
63989         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
63990         to avoid sectioning errors.
63991         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
63992         [ifinfo]: blank line after @center-ed titles.
63993         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
63994         Spell FSF address consistently with others.
63995         (These changes approved by rms.)
63996
63997 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63998
63999         Speed up by a factor of 1.61.
64000         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
64001         already checked module names again.
64002
64003 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64004
64005         Speed up by a factor of 1.13.
64006         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
64007         for new_files, and the input to func_add_or_update.
64008
64009 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64010
64011         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
64012         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
64013
64014 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
64015
64016         * modules/mkancesdirs (Depends-on): Add fcntl.
64017         * modules/savewd: New file.
64018         * MODULES.html.sh (File system functions): Add savewd.
64019
64020         * modules/configmake (Makefile.am): Add support for the
64021         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
64022
64023 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
64024
64025         * m4/savewd.m4: New file.
64026
64027 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
64028
64029         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
64030         (dirchownmod): New arg FD.  All callers changed.
64031         Use FD rather than opening the directory ourself, as opening is
64032         now the caller's responsibility.
64033         * lib/dirchownmod.h: Likewise.
64034         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
64035         hosts that require <sys/types.h> before <sys/stat.h>.  Include
64036         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
64037         (test_dir): Remove.
64038         (mkancesdirs): Return length of prefix of FILE that has already
64039         been made, or -2 if there is a child doing the work.  Redo
64040         algorithm so that it is O(N) rather than O(N**2).  Optimize away
64041         ".", and treat ".." specially since it might stray back into
64042         already-created areas.  Use a subprocess if necessary.  New arg
64043         WD; all users changed.  MAKE_DIR function should now return 1
64044         if it creates a directory that is not readable.  Return -2 if
64045         a child process is spun off.
64046         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
64047         Adjust signature to match code.
64048         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
64049         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
64050         all users changed.
64051         * lib/savewd.c, lib/savewd.h: New files.
64052
64053 2006-09-15  Jim Meyering  <jim@meyering.net>
64054
64055         * modules/rename-dest-slash: New module.
64056         * MODULES.html.sh (posix_compat): Add it here.
64057
64058         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
64059
64060 2006-09-15  Jim Meyering  <jim@meyering.net>
64061
64062         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
64063         file.
64064
64065         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
64066
64067 2006-09-15  Jim Meyering  <jim@meyering.net>
64068
64069         * lib/rename-dest-slash.c (has_trailing_slash): Use
64070         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
64071         (rpl_rename_dest_slash): Perform the cheaper trailing slash
64072         test before testing whether SRC is a directory.
64073         Suggestions from Bruno Haible.
64074
64075         Avoid a warning about an unused variable.
64076         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
64077         into the #ifdef block where it's used.
64078
64079         * lib/rename-dest-slash.c: New file.
64080
64081 2006-09-14  Bruno Haible  <bruno@clisp.org>
64082
64083         * lib/allocsa.c: Include <config.h> unconditionally.
64084         * lib/asnprintf.c: Likewise.
64085         * lib/asprintf.c: Likewise.
64086         * lib/c-strcasecmp.c: Likewise.
64087         * lib/c-strcasestr.c: Likewise.
64088         * lib/c-strncasecmp.c: Likewise.
64089         * lib/c-strstr.c: Likewise.
64090         * lib/classpath.c: Likewise.
64091         * lib/clean-temp.c: Likewise.
64092         * lib/concatpath.c: Likewise.
64093         * lib/copy-file.c: Likewise.
64094         * lib/csharpcomp.c: Likewise.
64095         * lib/csharpexec.c: Likewise.
64096         * lib/execute.c: Likewise.
64097         * lib/fatal-signal.c: Likewise.
64098         * lib/findprog.c: Likewise.
64099         * lib/fwriteerror.c: Likewise.
64100         * lib/gl_array_list.c: Likewise.
64101         * lib/gl_array_oset.c: Likewise.
64102         * lib/gl_avltree_list.c: Likewise.
64103         * lib/gl_avltree_oset.c: Likewise.
64104         * lib/gl_avltreehash_list.c: Likewise.
64105         * lib/gl_carray_list.c: Likewise.
64106         * lib/gl_linked_list.c: Likewise.
64107         * lib/gl_linkedhash_list.c: Likewise.
64108         * lib/gl_list.c: Likewise.
64109         * lib/gl_oset.c: Likewise.
64110         * lib/gl_rbtree_list.c: Likewise.
64111         * lib/gl_rbtree_oset.c: Likewise.
64112         * lib/gl_rbtreehash_list.c: Likewise.
64113         * lib/imaxabs.c: Likewise.
64114         * lib/imaxdiv.c: Likewise.
64115         * lib/javacomp.c: Likewise.
64116         * lib/javaexec.c: Likewise.
64117         * lib/javaversion.c: Likewise.
64118         * lib/linebreak.c: Likewise.
64119         * lib/localcharset.c: Likewise.
64120         * lib/lock.c: Likewise.
64121         * lib/mbchar.c: Likewise.
64122         * lib/mbswidth.c: Likewise.
64123         * lib/mkdtemp.c: Likewise.
64124         * lib/pipe.c: Likewise.
64125         * lib/printf-args.c: Likewise.
64126         * lib/printf-parse.c: Likewise.
64127         * lib/progname.c: Likewise.
64128         * lib/progreloc.c: Likewise.
64129         * lib/readlink.c: Likewise.
64130         * lib/sh-quote.c: Likewise.
64131         * lib/stpcpy.c: Likewise.
64132         * lib/stpncpy.c: Likewise.
64133         * lib/strcasecmp.c: Likewise.
64134         * lib/strcasestr.c: Likewise.
64135         * lib/strcspn.c: Likewise.
64136         * lib/striconv.c: Likewise.
64137         * lib/strncasecmp.c: Likewise.
64138         * lib/strnlen1.c: Likewise.
64139         * lib/strstr.c: Likewise.
64140         * lib/strtok_r.c: Likewise.
64141         * lib/tls.c: Likewise.
64142         * lib/tmpdir.c: Likewise.
64143         * lib/unicodeio.c: Likewise.
64144         * lib/unsetenv.c: Likewise.
64145         * lib/vasnprintf.c: Likewise.
64146         * lib/vasprintf.c: Likewise.
64147         * lib/wait-process.c: Likewise.
64148         * lib/xallocsa.c: Likewise.
64149         * lib/xsetenv.c: Likewise.
64150         * lib/xstriconv.c: Likewise.
64151
64152 2006-09-13  Simon Josefsson  <jas@extundo.com>
64153
64154         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
64155         that internally, suggested by Ralf Wildenhues
64156         <Ralf.Wildenhues@gmx.de>.
64157
64158 2006-09-13  Simon Josefsson  <jas@extundo.com>
64159
64160         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
64161         @LIBOBJS@.
64162         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64163
64164 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
64165
64166         * lib/_fpending.c: Include <config.h> unconditionally, since we no
64167         longer worry about uses that don't define HAVE_CONFIG_H.
64168         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
64169         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
64170         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
64171         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
64172         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
64173         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
64174         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
64175         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
64176         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
64177         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
64178         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
64179         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
64180         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
64181         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
64182         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
64183         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
64184         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
64185         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
64186         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
64187         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
64188         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
64189         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
64190         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
64191         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
64192         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
64193         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
64194         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
64195         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
64196         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
64197         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
64198         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
64199         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
64200         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
64201         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
64202         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
64203         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
64204         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
64205         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
64206         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
64207         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
64208         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
64209         Likewise.
64210
64211 2006-09-13  Eric Blake  <ebb9@byu.net>
64212
64213         * lib/getopt.c: Fix typo in last commit.
64214
64215 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
64216
64217         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
64218         dgettext.
64219
64220 2006-09-12  Jim Meyering  <jim@meyering.net>
64221
64222         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
64223         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
64224         Reported by Nelson H. F. Beebe.
64225
64226 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
64227
64228         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
64229         program_invocation_name and program_invocation_short_name are
64230         initialized.
64231         * lib/argp-namefrob.h: Move declarations of program_invocation_name
64232         and program_invocation_short_name to argp.h, so they are visible
64233         to user programs.
64234         * lib/argp.h: Likewise
64235
64236 2006-09-10  Bruno Haible  <bruno@clisp.org>
64237
64238         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
64239         m4/inttypes_h.m4, m4/uintmax_t.m4.
64240
64241 2006-09-10  Bruno Haible  <bruno@clisp.org>
64242
64243         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
64244         gl_AC_TYPE_UINTMAX_T.
64245
64246 2006-09-10  Bruno Haible  <bruno@clisp.org>
64247
64248         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
64249
64250 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
64251
64252         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
64253         convention.  Text proposed by Bruno Haible.
64254         (struct argp_option): Document the use of N_() wrappers.
64255
64256         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
64257         '\v', and translate the two parts separately, instead of feeding
64258         the whole string to gettext.  This allows to exclude
64259         '\v' from the strings visible to the translator by writing doc
64260         strings as N_("..") "\v" N_("..").
64261
64262 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
64263
64264         * config/srclist.txt: Undo latest change; the bug was fixed.
64265
64266 2006-09-09  Bruno Haible  <bruno@clisp.org>
64267
64268         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
64269         assignments if building a library without libtool.
64270         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
64271         in func_emit_lib_Makefile_am.
64272         (func_import): When building a static library libfoo.a, arrange to
64273         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
64274         (func_create_testdir): Likewise.
64275         * modules/gc (configure.ac, Makefile.am): If building statically,
64276         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
64277         * modules/iconvme (configure.ac, Makefile.am): Likewise.
64278         * modules/striconv (configure.ac, Makefile.am): Likewise.
64279         Based on a suggestion by Ralf Wildenhues.
64280
64281 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
64282
64283         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
64284         Check for unistd.h too, since Autoconf doesn't assume POSIX.
64285         Also:
64286
64287         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
64288         Add year_2050_test to catch glibc bug 2821
64289         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
64290
64291         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
64292         Prefer #ifdef to #if.
64293
64294         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
64295         Return from 'main' instead of calling 'exit'.
64296
64297 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
64298
64299         * lib/mktime.c (guess_time_tm): Fix bug where mktime
64300         returned the maximum time_t value rather than (time_t) -1.
64301         Problem originally reported by William Bardwell
64302         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
64303
64304         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
64305         Moved to here ...
64306         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
64307         ... from here.
64308
64309 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
64310
64311         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
64312         2821 is fixed.
64313
64314 2006-09-08  Jim Meyering  <jim@meyering.net>
64315
64316         Don't make generated files read-only.  That would bother too many
64317         people.  However, do retain the ability to work when targets are
64318         read-only: remove the destination and temporary files before writing
64319         them (when generated via sed or echo), or by using the -f option for
64320         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
64321         * modules/alloca-opt, modules/argz, modules/arpa_inet:
64322         * modules/byteswap, modules/configmake, modules/fcntl:
64323         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
64324         * modules/localcharset, modules/netinet_in, modules/poll:
64325         * modules/stdbool, modules/stdint, modules/sys_select:
64326         * modules/sys_socket, modules/sys_stat, modules/sysexits:
64327
64328 2006-09-08  Jim Meyering  <jim@meyering.net>
64329
64330         Avoid new build failure on FreeBSD 6.0.
64331         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
64332         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
64333         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
64334
64335 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64336
64337         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
64338
64339 2006-09-07  Jim Meyering  <jim@meyering.net>
64340
64341         Fix global typo in last change: use chmod u-w, not chmod u-x.
64342         Spotted by Paul Eggert and Bruce Korb.
64343         * modules/alloca-opt, modules/argz, modules/arpa_inet:
64344         * modules/byteswap, modules/configmake, modules/fcntl:
64345         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
64346         * modules/localcharset, modules/netinet_in, modules/poll:
64347         * modules/stdbool, modules/stdint, modules/sys_select:
64348         * modules/sys_socket, modules/sys_stat, modules/sysexits:
64349
64350 2006-09-06  Jim Meyering  <jim@meyering.net>
64351
64352         Make generated files be read-only.
64353         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
64354         Ensure that each generated file is now read-only.
64355         * modules/argz: Likewise.
64356         * modules/arpa_inet: Likewise.
64357         * modules/byteswap: Likewise.
64358         * modules/configmake: Likewise.
64359         * modules/fcntl: Likewise.
64360         * modules/fnmatch: Likewise.
64361         * modules/getopt: Likewise.
64362         * modules/glob: Likewise.
64363         * modules/inttypes: Likewise.
64364         * modules/netinet_in: Likewise.
64365         * modules/poll: Likewise.
64366         * modules/stdbool: Likewise.
64367         * modules/stdint: Likewise.
64368         * modules/sys_select: Likewise.
64369         * modules/sys_socket: Likewise.
64370         * modules/sys_stat: Likewise.
64371         * modules/sysexits: Likewise.
64372         * modules/localcharset: Same as above, but continue using temporary
64373         file named "t-$@" (why different?) rather than the "$@-t" used
64374         everywhere else.
64375
64376         * modules/sysexits (Makefile.am): Replace literal occurrences
64377         of "sysexit.h" more readable, and more consistent, "$@".
64378
64379 2006-09-06  Bruno Haible  <bruno@clisp.org>
64380
64381         * modules/striconv: New file.
64382         * modules/xstriconv: New file.
64383         * MODULES.html.sh (Internationalization functions): Add striconv,
64384         xstriconv.
64385
64386 2006-09-06  Bruno Haible  <bruno@clisp.org>
64387
64388         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
64389         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
64390         not using libtool correctly.
64391
64392 2006-09-06  Bruno Haible  <bruno@clisp.org>
64393
64394         * lib/striconv.h: New file.
64395         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
64396         iconvstring.c.
64397         * lib/xstriconv.h: New file.
64398         * lib/xstriconv.c: New file.
64399
64400 2006-09-06  Bruno Haible  <bruno@clisp.org>
64401
64402         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
64403         lib_..._LDFLAGS.
64404
64405 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64406
64407         * lib/argz_.h: Sync from Libtool.
64408
64409         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
64410                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
64411
64412         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
64413
64414 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
64415
64416         * modules/trim: New file.
64417
64418 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
64419
64420         * lib/trim.h: New file.
64421         * lib/trim.c: New file.
64422
64423 2006-09-05  Bruno Haible  <bruno@clisp.org>
64424
64425         * MODULES.html.sh (String handling): Add trim.
64426
64427 2006-09-04  Karl Berry  <karl@gnu.org>
64428
64429         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
64430         until next release.
64431
64432 2006-09-03  Bruno Haible  <bruno@clisp.org>
64433
64434         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
64435         correctly.
64436
64437 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
64438
64439         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
64440         not gl_GETLOADAVG.  Omit unneeded semicolons.
64441         Problems reported by Ralf Wildenhues in
64442         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
64443         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
64444         at the end, which is the usual gnulib style.
64445
64446         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
64447         of doing all the work ourselves.
64448         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
64449         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
64450
64451 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
64452
64453         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
64454         Problem reported by Ralf Wildenhues in
64455         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
64456
64457         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
64458         HAVE_STRUCT_STATFS_F_FSTYPENAME.
64459
64460 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
64461
64462         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
64463         yesterday's patch by changing test -n to test -z.
64464
64465 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
64466
64467         * modules/getloadavg (Files): Add m4/getloadavg.m4.
64468         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
64469         the former is now obsolescent.
64470
64471         * modules/chdir-long (Depends-on): Add fcntl.
64472
64473 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
64474
64475         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
64476         obsolescent, and programs should use gnulib instead.
64477         * m4/getloadavg.m4: New file, with contents taken from Autoconf
64478         but with prefixes changed.
64479
64480 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
64481
64482         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
64483         or stdbool.h, because they might not exist while configuring.
64484
64485         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
64486         Don't include unistd.h or limits.h; not needed, since chdir-long.h
64487         does that for us.
64488         (O_DIRECTORY): Remove.
64489
64490 2006-08-31  Eric Blake  <ebb9@byu.net>
64491
64492         * gnulib-tool: Don't let emacs change spaces to TAB.
64493
64494 2006-08-31  Bruno Haible  <bruno@clisp.org>
64495
64496         * gnulib-tool: When calling func_import more than once, do it in a
64497         subshell.
64498         Reported by Eric Blake <ebb9@byu.net>.
64499
64500 2006-08-31  Bruno Haible  <bruno@clisp.org>
64501
64502         * gnulib-tool (nl): Remove variable.
64503         (sed_transform_lib_file): Use more robust test for config-h module.
64504         (func_import): Fix typo in 2006-08-25 patch.
64505
64506 2006-08-31  Bruno Haible  <bruno@clisp.org>
64507
64508         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
64509         specified, augment Makefile.am variables instead of assigning them.
64510
64511 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
64512
64513         Work around a bug in both the Linux and SunOS 64-bit kernels:
64514         nanosleep mishandles sleeps for longer than 2**31 seconds.
64515         Problem reported by Frank v Waveren in
64516         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
64517         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
64518         Check for nanosleep bug.
64519         (LIB_NANOSLEEP): Append clock_gettime library if needed.
64520
64521 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
64522
64523         Work around a bug in both the Linux and SunOS 64-bit kernels:
64524         nanosleep mishandles sleeps for longer than 2**31 seconds.
64525         Problem reported by Frank v Waveren in
64526         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
64527         * lib/nanosleep.c (BILLION): New constant.
64528         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
64529         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
64530         implementation.
64531
64532 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
64533
64534         * modules/nanosleep (Depends-on): Add gettime.
64535
64536 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
64537         and Simon Josefsson  <jas@extundo.com>
64538         and Oskar Liljeblad  <oskar@osk.mine.nu>
64539
64540         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
64541         * gnulib-tool (func_import): New license type 'unmodifiable license
64542         text'.
64543         * modules/fdl: Use it.  Longer description.
64544         * module/gpl, module/lgpl: New files.
64545
64546 2006-08-30  Jim Meyering  <jim@meyering.net>
64547
64548         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
64549         shadowing the parameter.
64550
64551 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64552
64553         Sync from Libtool:
64554
64555         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64556
64557         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
64558         sharing with gnulib.  Report by Eric Blake.
64559
64560 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
64561
64562         * modules/isapipe: New file.
64563         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
64564
64565 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
64566
64567         * modules/configmake (Makefile.am): Add a comment, and omit
64568         the CONFIGMAKE_ prefix from generated macro names.  Suggested
64569         by Bruno Haible.
64570
64571 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
64572
64573         * m4/isapipe.m4: New file.
64574
64575 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
64576
64577         * lib/isapipe.c, lib/isapipe.h: New files.
64578
64579 2006-08-29  Jim Meyering  <jim@meyering.net>
64580
64581         * modules/configmake (Makefile.am): Make configmake.h depend on
64582         Makefile.  Otherwise, a stale configmake.h could hang around.
64583
64584 2006-08-29  Eric Blake  <ebb9@byu.net>
64585
64586         * lib/error.c (error_at_line, print_errno_message): Match libc, after
64587         resolution of upstream bug 3044.
64588
64589 2006-08-29  Bruno Haible  <bruno@clisp.org>
64590
64591         * modules/localcharset (Depends-on): Add configmake.
64592         (Makefile.am): Remove setting of LIBDIR through DEFS.
64593
64594 2006-08-29  Bruno Haible  <bruno@clisp.org>
64595
64596         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
64597         defined.
64598
64599 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
64600
64601         * modules/fcntl: New file.
64602         * modules/chdir-safer (Depends-on): Add fcntl.
64603         * modules/fts: Likewise.
64604         * modules/mkdir-p: Likewise.
64605
64606         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
64607         This undoes the most recent change, since we're now addressing the
64608         problem in a different way.
64609
64610         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
64611         into output, since the output might be called Makefile.am even
64612         if $makefile_name is something different.
64613         (func_import): Use $makefile_am rather than
64614         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
64615         empty.
64616
64617         * modules/inttypes (Files): Add m4/inttypes-h.m4.
64618
64619 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
64620
64621         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
64622         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
64623         recent change to stdint.m4, since we're now addressing the problem in a
64624         different way.
64625
64626 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
64627
64628         * m4/fcntl_h.m4: New file.
64629
64630 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
64631
64632         * lib/fcntl_.h: New file.
64633         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
64634         the fcntl module.
64635         * lib/dirchownmod.c: Likewise.
64636         * lib/fts.c: Likewise.
64637
64638         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
64639         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
64640         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
64641         just before including <inttypes.h>, to avoid circular inclusion.
64642
64643 2006-08-28  Jim Meyering  <jim@meyering.net>
64644
64645         * doc/visibility.texi: Actually read and correct the grammar of the
64646         sentence affected by yesterday's change.
64647
64648 2006-08-28  Eric Blake  <ebb9@byu.net>
64649
64650         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
64651         needs wrapper.
64652
64653 2006-08-28  Eric Blake  <ebb9@byu.net>
64654
64655         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
64656
64657 2006-08-28  Eric Blake  <ebb9@byu.net>
64658
64659         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
64660
64661 2006-08-28  Bruno Haible  <bruno@clisp.org>
64662
64663         * modules/c-strstr: New file, from GNU gettext.
64664         * MODULES.html.sh (String handling): Add c-strstr.
64665
64666 2006-08-28  Bruno Haible  <bruno@clisp.org>
64667
64668         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
64669         macros.
64670         Reported by Eric Blake.
64671
64672 2006-08-28  Bruno Haible  <bruno@clisp.org>
64673
64674         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
64675         (VASNPRINTF): Return a string of length > INT_MAX without failing.
64676         * lib/vasprintf.c: Include errno.h, limits.h.
64677         (EOVERFLOW): New fallback definition.
64678         (vasprintf): Test here whether the string length is > INT_MAX.
64679         * lib/vsnprintf.c: Include errno.h, limits.h.
64680         (EOVERFLOW): New fallback definition.
64681         (vsnprintf): Fix bug when generated string was too long for the buffer.
64682         Test here whether the string length is > INT_MAX.
64683
64684 2006-08-28  Bruno Haible  <bruno@clisp.org>
64685
64686         * lib/inttypes_.h (SCNX*): Remove definitions.
64687         Reported by Eric Blake.
64688
64689 2006-08-28  Bruno Haible  <bruno@clisp.org>
64690
64691         * lib/c-strstr.h: New file, from GNU gettext.
64692         * lib/c-strstr.c: New file, from GNU gettext.
64693
64694 2006-08-28  Bruno Haible  <bruno@clisp.org>
64695
64696         * gnulib-tool: Reorder some statements.
64697
64698 2006-08-28  Bruno Haible  <bruno@clisp.org>
64699
64700         * gnulib-tool: New option --makefile-name.
64701         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
64702         $makefile_name.
64703         (func_import): Write $makefile_name to the cache file, and read it from
64704         there unless explicitly specified. Use $makefile_name as file name
64705         instead of Makefile.am. Adjust the recommendations accordingly.
64706
64707 2006-08-28  Bruno Haible  <bruno@clisp.org>
64708
64709         * gnulib-tool (func_verify_module): Check against misapplying patch.
64710
64711 2006-08-28  Bruno Haible  <bruno@clisp.org>
64712
64713         * gnulib-tool (func_relativize, func_relconcat): New functions.
64714         Give an error if --local-dir is given with --update.
64715         Remove trailing slashes from $local_gnulib_dir.
64716         (func_import): Store the relativized $local_gnulib_dir in
64717         gnulib-cache.m4, and read it from there if not specified explicitly.
64718
64719 2006-08-28  Bruno Haible  <bruno@clisp.org>
64720
64721         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
64722         is the current directory. Respect also $local_gnulib_dir.
64723
64724 2006-08-28  Bruno Haible  <bruno@clisp.org>
64725             Simon Josefsson  <jas@extundo.com>
64726
64727         BeOS portability.
64728         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
64729
64730 2006-08-27  Jim Meyering  <jim@meyering.net>
64731
64732         * doc/visibility.texi: Remove duplicate word: "pointer".
64733
64734 2006-08-26  Bruno Haible  <bruno@clisp.org>
64735
64736         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
64737         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
64738         (Makefile.am): Create inttypes.h from inttypes_.h.
64739         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
64740
64741         * modules/imaxabs: New file.
64742
64743         * modules/imaxdiv: New file.
64744
64745 2006-08-26  Bruno Haible  <bruno@clisp.org>
64746
64747         * m4/inttypes.m4: New file.
64748         * m4/_inttypes_h.m4: Remove file.
64749         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
64750         PRI_MACROS_BROKEN.
64751         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
64752
64753         * m4/imaxabs.m4: New file.
64754
64755         * m4/imaxdiv.m4: New file.
64756
64757 2006-08-26  Bruno Haible  <bruno@clisp.org>
64758
64759         * lib/inttypes_.h: New file.
64760         * lib/inttypes.h: Remove file.
64761         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
64762
64763         * lib/imaxabs.c: New file.
64764
64765         * lib/imaxdiv.c: New file.
64766
64767 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
64768
64769         New config-h module, so that "make" output needn't be cluttered
64770         by -DHAVE_CONFIG_H.
64771         * MODULES.html.sh (Support for building libraries and executables):
64772         Add config-h.
64773         * modules/config-h: New file.
64774         * gnulib-tool (nl, sed_transform_lib_file): New vars.
64775         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
64776         the config-h module is used.
64777
64778         New configmake module, so that "make" output needn't be cluttered
64779         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
64780         * MODULES.html.sh (Support for building libraries and executables):
64781         Add configmake.
64782         * modules/configmake: New file.
64783
64784 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
64785
64786         * m4/config-h.m4: New file.
64787
64788 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
64789
64790         * config/srclist.txt: Add elisp-comp.
64791
64792 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
64793
64794         * MODULES.html.sh (Support for building libraries and executables):
64795         Add elisp-comp.
64796         * build-aux/elisp-comp: New file.
64797         * modules/elisp-comp: New file.
64798
64799 2006-08-24  Bruno Haible  <bruno@clisp.org>
64800
64801         * gnulib-tool (func_create_testdir): Use non-default values of
64802         sourcebase and m4base.
64803
64804 2006-08-24  Bruno Haible  <bruno@clisp.org>
64805
64806         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
64807         HTML structure.
64808
64809 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
64810
64811         * modules/openat (Depends-on): Add lchown.
64812
64813 2006-08-23  Bruno Haible  <bruno@clisp.org>
64814
64815         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
64816         of gl_LOCK_EARLY instead of gl_LOCK.
64817
64818 2006-08-23  Bruno Haible  <bruno@clisp.org>
64819
64820         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
64821         on OSF/1 to no.
64822         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
64823
64824 2006-08-23  Bruno Haible  <bruno@clisp.org>
64825
64826         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
64827         as unusable.
64828
64829         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
64830         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
64831         (gl_LOCK): New macro.
64832
64833 2006-08-22  Simon Josefsson  <jas@extundo.com>
64834
64835         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
64836         to md5 module.
64837
64838 2006-08-22  Simon Josefsson  <jas@extundo.com>
64839
64840         * MODULES.html.sh: Add "Support for maintaining and release
64841         projects".
64842
64843         * build-aux/gnupload: New file, from coreutils.
64844
64845 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
64846
64847         Avoid the need for AC_LIBSOURCES in m4 macros.
64848         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
64849         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
64850         * modules/check-version (EXTRA_DIST): Add check-version.h.
64851         * modules/crc (EXTRA_DIST): Add crc.h.
64852         * modules/des (EXTRA_DIST): Add des.h.
64853         * modules/gc (EXTRA_DIST): Add gc.h.
64854         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
64855         * modules/getline (EXTRA_DIST): Add getline.h.
64856         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
64857         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
64858         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
64859         * modules/md2 (EXTRA_DIST): Add md2.h.
64860         * modules/md4 (EXTRA_DIST): Add md4.h.
64861         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
64862         * modules/read-file (EXTRA_DIST): Add read-file.h.
64863         * modules/readline (EXTRA_DIST): Add readline.h.
64864         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
64865         rijndael-api-fst.h.
64866
64867 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
64868
64869         * m4/rijndael.m4 (gl_ARCFOUR):
64870         * m4/arctwo.m4 (gl_ARCTWO):
64871         * m4/check-version.m4 (gl_CHECK_VERSION):
64872         * m4/crc.m4 (gl_CRC):
64873         * m4/des.m4 (gl_DES):
64874         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
64875         * m4/gc.m4 (gl_GC):
64876         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
64877         * m4/getline.m4 (gl_FUNC_GETLINE):
64878         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
64879         * m4/hmac-md5.m4 (gl_HMAC_MD5):
64880         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
64881         * m4/md2.m4 (gl_MD2):
64882         * m4/md4.m4 (gl_MD4):
64883         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
64884         * m4/read-file.m4 (gl_FUNC_READ_FILE):
64885         * m4/readline.m4 (gl_FUNC_READLINE):
64886         * m4/rijndael.m4 (gl_RIJNDAEL):
64887         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
64888         to get the necessary .h files and whatnot.
64889
64890 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
64891
64892         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
64893         gnulib rather than the other way around.
64894         * config/srclistvars.sh (COREUTILS): Remove.
64895
64896 2006-08-22  Jim Meyering  <jim@meyering.net>
64897
64898         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
64899
64900         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
64901
64902 2006-08-22  Eric Blake  <ebb9@byu.net>
64903
64904         * modules/regexprops-generic: New file.
64905         * MODULES.html.sh (Support for building documentation): List it.
64906
64907 2006-08-22  Eric Blake  <ebb9@byu.net>
64908
64909         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
64910         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
64911         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
64912         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
64913
64914 2006-08-22  Bruno Haible  <bruno@clisp.org>
64915
64916         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
64917         and lib_LTLIBRARIES like the other lib_* variables.
64918
64919 2006-08-22  Bruno Haible  <bruno@clisp.org>
64920
64921         * build-aux/x-to-1.in: New file, from GNU gettext.
64922
64923 2006-08-22  Bruno Haible  <bruno@clisp.org>
64924
64925         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
64926         <utmpx.h> exists.
64927
64928 2006-08-22  Bruno Haible  <bruno@clisp.org>
64929
64930         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
64931         <utmpx.h> exists.
64932
64933 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
64934
64935         BeOS portability.
64936         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
64937         exist.
64938         Problem reported by Bruno Haible.
64939
64940 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
64941
64942         Avoid the need for AC_LIBSOURCES in m4 macros.
64943         * modules/acl (EXTRA_DIST): Add acl.h.
64944         * modules/argmatch (Files): Add m4/argmatch.m4.
64945         (configure.ac): Add gl_ARGMATCH.
64946         (EXTRA_DIST): Renamed from lib_SOURCES, for
64947         consistency with the other modules.  Remove argmatch.c.
64948         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
64949         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
64950         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
64951         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
64952         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
64953         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
64954         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
64955         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
64956         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
64957         * modules/closeout (EXTRA_DIST): Add closeout.h.
64958         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
64959         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
64960         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
64961         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
64962         dirname.h; remove basename.c and stripslash.c.
64963         * modules/exclude (EXTRA_DIST): Add exclude.h.
64964         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
64965         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
64966         * modules/file-type (EXTRA_DIST): Add file-type.h.
64967         * modules/filemode (EXTRA_DIST): Add filemode.h.
64968         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
64969         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
64970         * modules/fpending (EXTRA_DIST): Add __fpending.h.
64971         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
64972         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
64973         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
64974         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
64975         * modules/getdate (EXTRA_DIST): Add getdate.c.
64976         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
64977         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
64978         * modules/getpass (EXTRA_DIST): Add getpass.h.
64979         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
64980         * modules/group-member (EXTRA_DIST): Add group-member.h.
64981         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
64982         * modules/hash (EXTRA_DIST): Add hash.h.
64983         * modules/human (EXTRA_DIST): Add human.h.
64984         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
64985         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
64986         * modules/lchown (EXTRA_DIST): Add lchown.h.
64987         * modules/long-options (EXTRA_DIST): Add long-options.h.
64988         * modules/lstat (EXTRA_DIST): Add lstat.h.
64989         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
64990         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
64991         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
64992         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
64993         * modules/memxor (EXTRA_DIST): Add memxor.h.
64994         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
64995         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
64996         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
64997         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
64998         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
64999         * modules/physmem (EXTRA_DIST): Add physmem.h.
65000         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
65001         * modules/posixver (EXTRA_DIST): Add posixver.h.
65002         * modules/quote (EXTRA_DIST): Add quote.h.
65003         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
65004         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
65005         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
65006         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
65007         regex_internal.h regexec.c.
65008         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
65009         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
65010         * modules/same (EXTRA_DIST): Add same.h.
65011         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
65012         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
65013         * modules/savedir (EXTRA_DIST): Add savedir.h.
65014         * modules/sha1 (EXTRA_DIST): Add sha1.h.
65015         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
65016         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
65017         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
65018         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
65019         * modules/strdup (EXTRA_DIST): Add strdup.h.
65020         * modules/strftime (EXTRA_DIST): Add strftime.h.
65021         * modules/strndup (EXTRA_DIST): Add strndup.h.
65022         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
65023         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
65024         * modules/time_r (EXTRA_DIST): Add time_r.h.
65025         * modules/timespec (EXTRA_DIST): Add timespec.h.
65026         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
65027         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
65028         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
65029         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
65030         * modules/userspec (EXTRA_DIST): Add userspec.h.
65031         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
65032         * modules/utimens (EXTRA_DIST): Add utimens.h.
65033         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
65034         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
65035         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
65036         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
65037         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
65038         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
65039         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
65040         * modules/yesno (EXTRA_DIST): Add yesno.h.
65041
65042 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
65043
65044         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
65045
65046         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
65047         * m4/dev-ino.m4, same-inode.m4: Remove.
65048
65049         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
65050         * m4/acl.m4 (AC_FUNC_ACL):
65051         * m4/backupfile.m4 (gl_BACKUPFILE):
65052         * m4/c-strtod.m4 (gl_C99_STRTOLD):
65053         * m4/canon-host.m4 (gl_CANON_HOST):
65054         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
65055         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
65056         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
65057         * m4/cloexec.m4 (gl_CLOEXEC):
65058         * m4/close-stream.m4 (gl_CLOSE_STREAM):
65059         * m4/closeout.m4 (gl_CLOSEOUT):
65060         * m4/dirfd.m4 (gl_FUNC_DIRFD):
65061         * m4/dirname.m4 (gl_DIRNAME):
65062         * m4/exclude.m4 (gl_EXCLUDE):
65063         * m4/exitfail.m4 (gl_EXITFAIL):
65064         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
65065         * m4/file-type.m4 (gl_FILE_TYPE):
65066         * m4/filemode.m4 (gl_FILEMODE):
65067         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
65068         * m4/fpending.m4 (gl_FUNC_FPENDING):
65069         * m4/fprintftime.m4 (gl_FPRINTFTIME):
65070         * m4/fts.m4 (gl_FUNC_FTS):
65071         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
65072         * m4/getdate.m4 (gl_GETDATE):
65073         * m4/gethrxtime.m4 (gl_GETHRXTIME):
65074         * m4/getpagesize.m4 (gl_GETPAGESIZE):
65075         * m4/getpass.m4 (gl_FUNC_GETPASS):
65076         * m4/gettime.m4 (gl_GETTIME):
65077         * m4/getugroups.m4 (gl_GETUGROUPS):
65078         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
65079         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
65080         * m4/hard-locale.m4 (gl_HARD_LOCALE):
65081         * m4/hash.m4 (gl_HASH):
65082         * m4/idcache.m4 (gl_IDCACHE):
65083         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
65084         * m4/lchown.m4 (gl_FUNC_LCHOWN):
65085         * m4/long-options.m4 (gl_LONG_OPTIONS):
65086         * m4/lstat.m4 (gl_FUNC_LSTAT):
65087         * m4/md5.m4 (gl_MD5):
65088         * m4/memcasecmp.m4 (gl_MEMCASECMP):
65089         * m4/memcoll.m4 (gl_MEMCOLL):
65090         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
65091         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
65092         * m4/memxor.m4 (gl_MEMXOR):
65093         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
65094         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
65095         * m4/modechange.m4 (gl_MODECHANGE):
65096         * m4/mountlist.m4 (gl_MOUNTLIST):
65097         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
65098         * m4/openat.m4 (gl_FUNC_OPENAT):
65099         * m4/pathmax.m4 (gl_PATHMAX):
65100         * m4/physmem.m4 (gl_PHYSMEM):
65101         * m4/posixtm.m4 (gl_POSIXTM):
65102         * m4/posixver.m4 (gl_POSIXVER):
65103         * m4/quote.m4 (gl_QUOTE):
65104         * m4/quotearg.m4 (gl_QUOTEARG):
65105         * m4/readtokens.m4 (gl_READTOKENS):
65106         * m4/readutmp.m4 (gl_READUTMP):
65107         * m4/regex.m4 (gl_REGEX):
65108         * m4/safe-read.m4 (gl_SAFE_READ):
65109         * m4/safe-write.m4 (gl_SAFE_WRITE):
65110         * m4/same.m4 (gl_SAME):
65111         * m4/save-cwd.m4 (gl_SAVE_CWD):
65112         * m4/savedir.m4 (gl_SAVEDIR):
65113         * m4/settime.m4 (gl_SETTIME):
65114         * m4/sha1.m4 (gl_SHA1):
65115         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
65116         * m4/stat-macros.m4 (gl_STAT_MACROS):
65117         * m4/stat-time.m4 (gl_STAT_TIME):
65118         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
65119         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
65120         * m4/strdup.m4 (gl_FUNC_STRDUP):
65121         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
65122         * m4/strndup.m4 (gl_FUNC_STRNDUP):
65123         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
65124         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
65125         * m4/time_r.m4 (gl_TIME_R):
65126         * m4/timespec.m4 (gl_TIMESPEC):
65127         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
65128         * m4/unlinkdir.m4 (gl_UNLINKDIR):
65129         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
65130         * m4/userspec.m4 (gl_USERSPEC):
65131         * m4/utimecmp.m4 (gl_UTIMECMP):
65132         * m4/utimens.m4 (gl_UTIMENS):
65133         * m4/xalloc.m4 (gl_XALLOC):
65134         * m4/xgetcwd.m4 (gl_XGETCWD):
65135         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
65136         * m4/xreadlink.m4 (gl_XREADLINK):
65137         * m4/xstrtod.m4 (gl_XSTRTOD):
65138         * m4/yesno.m4 (gl_YESNO):
65139         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
65140         to get the necessary .h files and whatnot.
65141
65142 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
65143             Bruno Haible  <bruno@clisp.org>
65144
65145         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
65146         /bin/sh understanding of '!' conditional negation.
65147
65148 2006-08-21  Jim Meyering  <jim@meyering.net>
65149
65150         * modules/openat (Depends-on): Really alphabetize.
65151
65152         * modules/acl (Depends-on): Add error and quote.
65153
65154         * check-module (find_included_lib_files): Add at-func.c to the
65155         ok-to-include-more-than-once white list.
65156
65157         * modules/openat (Depends-on): Add lstat.  Alphabetize.
65158
65159 2006-08-21  Bruno Haible  <bruno@clisp.org>
65160
65161         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
65162         Emit a pkgdata_DATA variable only if some snippets add contents to it.
65163         Reported by Martin Lambers <marlam@marlam.de>.
65164
65165 2006-08-21  Bruno Haible  <bruno@clisp.org>
65166
65167         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
65168         specify an installation location, don't emit a noinst_LIBRARIES or
65169         noinst_LTLIBRARIES assignment.
65170
65171 2006-08-21  Bruno Haible  <bruno@clisp.org>
65172
65173         BeOS portability.
65174         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
65175         BeOS has mbrtowc() but no <wctype.h>.
65176
65177 2006-08-21  Bruno Haible  <bruno@clisp.org>
65178
65179         BeOS portability.
65180         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
65181         exist.
65182
65183 2006-08-21  Bruno Haible  <bruno@clisp.org>
65184
65185         BeOS portability.
65186         * lib/mbchar.h: Include <wctype.h> only if it exists.
65187
65188 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
65189
65190         Remove files that are no longer needed by their respective modules.
65191         * m4/obstack.m4: Remove.
65192         * m4/strerror_r.m4: Remove.
65193         * m4/uint32_t.m4: Remove.
65194         * m4/uintptr_t.m4: Remove.
65195         * m4/ullong_max.m4: Remove.
65196         * m4/xstrtoimax.m4: Remove.
65197         * m4/xstrtoumax.m4: Remove.
65198
65199         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
65200         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
65201         dependencies now capture this.
65202
65203         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
65204         Do not use AC_LIBSOURCES, since gnulib modules now do this.
65205         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
65206         * m4/human.m4 (gl_HUMAN): Likewise.
65207         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
65208         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
65209
65210         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
65211
65212         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
65213         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
65214         stdint.
65215         * m4/human.m4 (gl_HUMAN): Likewise.
65216         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
65217         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
65218         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
65219         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
65220         * m4/xstrtol (gl_XSTRTOL): Likewise.
65221
65222         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
65223         AC_TYPE_LONG_LONG_INT.
65224         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
65225         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
65226         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
65227         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
65228
65229         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
65230         on stdbool.
65231
65232         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
65233         (gl_PREREQ_XSTRTOUL): Remove.
65234
65235         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
65236
65237         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
65238         mode.
65239
65240 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
65241
65242         Add and change modules to make it easier for coreutils to use
65243         gnulib-tool.
65244         * modules/backupfile (Files): Remove m4/d-ino.m4.
65245         (Depends-on): Add d-ino.
65246         * modules/cycle-check (Depends-on): Add stdint.
65247         (lib_SOURCES): Add cycle-check.h.
65248         * modules/d-ino: New module.
65249         * modules/d-type: New module.
65250         * modules/error (Files): Remove m4/strerror_r.m4.
65251         * modules/filemode (Files): Add m4/st_dm_mode.m4.
65252         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
65253         m4/inttypes_h.m4, m4/uintmax_t.m4.
65254         (Depends-on): Add stdint.
65255         (lib_SOURCES): Add fsusage.h.
65256         * modules/getcwd (Files): Remove d-ino.m4.
65257         (Depends-on): Add d-ino.
65258         * modules/getndelim2 (Depends-on): Add stdint.
65259         * modules/glob (Files): Remove m4/d-type.m4.
65260         (Depends-on): Add d-type.
65261         * modules/host-os: New module.
65262         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
65263         m4/inttypes_h.m4, m4/uintmax_t.m4.
65264         * Depends-on: Add stdint.
65265         (lib_SOURCES): Add human.h.
65266         * modules/inttostr (Files): Remove m4/intmax_t.m4,
65267         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
65268         m4/uintmax_t.m4, m4/ulonglong.m4.
65269         (Depends-on): Add stdint.
65270         (EXTRA_DIST): Add inttostr.h.
65271         * modules/lchmod: New module.
65272         * modules/link-follow: New module.
65273         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
65274         (Depends-on): Add lchmod.
65275         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
65276         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
65277         (Depends-on): Add stdint.
65278         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
65279         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
65280         (Depends-on): Add stdint.
65281         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
65282         * modules/perl: New module.
65283         * modules/regex (Depends-on): Add stdint.
65284         * modules/rmdir-errno: New module.
65285         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
65286         m4/intmax_t.m4.
65287         (Depends-on): Add stdint.
65288         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
65289         m4/uintmax_t.m4.
65290         (Depends-on): Add stdint.
65291         * modules/unlink-busy: New module.
65292         * modules/utimecmp (Depends-on): Add stdint.
65293         * modules/uptime: New module.
65294         * modules/winsz-ioctl: New module.
65295         * modules/winsz-termios: New module.
65296         * modules/xnanosleep (Depends-on): Add nanosleep.
65297         * modules/ullong_max: Remove.
65298         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
65299         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
65300         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
65301         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
65302         (Depends-on): Add inttypes.
65303         (lib_SOURCES): Add xstrtol.h.
65304         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
65305         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
65306         * MODULES.html.sh: Move 'assert' into the assert section.
65307         Move 'dummy' into the linking section.
65308         Remove ullong_max.
65309         Add section for compatibility checks for POSIX:2001 functions,
65310         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
65311         winsz-ioctl, and winsz-termios into it.
65312         Add lchmod.
65313         Add top-level Misc section and put host-os, perl, and uptime
65314         into it.
65315
65316 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
65317
65318         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
65319         now assume the stdint module.  Do not include inttypes.h.
65320         * lib/fsusage.h: Likewise.
65321         * lib/getndelim2.c: Likewise.
65322         * lib/human.h: Likewise.
65323         * lib/inttostr.h: Likewise.
65324         * lib/obstack.c: Likewise.
65325         * lib/regex_internal.h: Likewise.
65326         * lib/tempname.c: Likewise.
65327         * lib/utimecmp.c: Likewise.
65328         * lib/xstrtol.h: Likewise.
65329
65330         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
65331
65332         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
65333         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
65334         * lib/xtime.h: Likewise.
65335
65336 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
65337
65338         * modules/openat (Files): Add lib/fchmodat.c.
65339         Fixes problem reported by Jay Youngman.
65340
65341 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
65342
65343         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
65344         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
65345
65346 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
65347             Bruno Haible  <bruno@clisp.org>
65348
65349         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
65350         and is a script that invokes bison. Tighten the code. Add comments.
65351
65352 2006-08-18  Jim Meyering  <jim@meyering.net>
65353
65354         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
65355         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
65356         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
65357         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
65358
65359 2006-08-18  Bruno Haible  <bruno@clisp.org>
65360
65361         * modules/bison-i18n: New file.
65362         * MODULES.html.sh (Internationalization functions): Add it.
65363
65364 2006-08-18  Bruno Haible  <bruno@clisp.org>
65365
65366         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
65367         sys/statvfs.h. When getmntinfo was found, check its declaration and
65368         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
65369
65370 2006-08-18  Bruno Haible  <bruno@clisp.org>
65371
65372         * m4/bison-i18n.m4: New file, from bison.
65373
65374 2006-08-18  Bruno Haible  <bruno@clisp.org>
65375
65376         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
65377         (ME_DUMMY): Treat "kernfs" as a dummy.
65378         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
65379
65380 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
65381
65382         Update from coreutils.
65383
65384         2006-08-15  Jim Meyering  <jim@meyering.net>
65385
65386         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
65387
65388         2006-01-17  Jim Meyering  <jim@meyering.net>
65389
65390         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
65391
65392         2006-01-11  Jim Meyering  <jim@meyering.net>
65393
65394         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
65395         Check for the lchmod function.
65396
65397 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
65398
65399         Update from coreutils.
65400
65401         * lib/__fpending.h: Add copyright notice.
65402         * lib/fprintftime.h: Likewise.
65403         * lib/savedir.c: Use (C) in copyright notice.
65404         * lib/savedir.h: Likewise.
65405
65406         2006-08-15  Jim Meyering  <jim@meyering.net>
65407
65408         * lib/at-func.c: New file, with the logic of all emulated at-functions.
65409         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
65410         in support of the EXPECTED_ERRNO macro.
65411         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
65412         definitions.  Instead, define the appropriate symbols and include
65413         "at-func.c".
65414         * lib/mkdirat.c (mkdirat): Likewise.
65415         * lib/fchmodat.c (fchmodat): Likewise.
65416         (ENOSYS): Remove definition.
65417         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
65418         it.  Don't include "unistd--.h" -- it wasn't ever used.
65419
65420         2006-01-17  Jim Meyering  <jim@meyering.net>
65421
65422         Rewrite fts.c not to change the current working directory,
65423         by using openat, fstatat, fdopendir, etc..
65424
65425         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
65426         (HAVE_OPENAT_SUPPORT): Define.
65427         [_LIBC] (fchdir): Don't undef or define; no longer used.
65428         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
65429         Now, this `function' always succeeds, and consumes its file descriptor
65430         parameter -- so callers must not close such FDs.  Update callers.
65431         (diropen_fd, opendirat, cwd_advance_fd): New functions.
65432         (diropen): Add parameter, SP.  Adjust all callers.
65433         Implement using diropen_fd, rather than open.
65434         (fts_open): Initialize new member, fts_cwd_fd.
65435         Remove fts_rft-setting code.
65436         (fts_close): Close fts_cwd_fd, if necessary.
65437         (__opendir2): Define in terms of opendir or opendirat,
65438         depending on whether the FST_NOCHDIR flag is set.
65439         (fts_build): Since fts_safe_changedir consumes its FD, and since
65440         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
65441         and close the dup'd file descriptor upon failure.
65442         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
65443         (fts_safe_changedir): Tweak semantics to reflect that this function
65444         now calls cwd_advance_fd and hence consumes its FD argument.
65445         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
65446         [struct FTS] (fts_rft): Remove now-unused member.
65447         [struct FTS] (fts_cycle.state): Improve comment.
65448
65449         * lib/openat.c (openat_needs_fchdir): New function.
65450         * lib/openat.h (openat_needs_fchdir): Declare it.
65451
65452 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
65453
65454         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
65455         Problem and fix reported by Pádraig Brady in
65456         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
65457
65458 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
65459
65460         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
65461
65462 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
65463
65464         * lib/memcoll.c (memcoll): Optimize for the common case where the
65465         arguments are bytewise equal.
65466
65467 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
65468
65469         * doc/regexprops-generic.texi: Add a copyright notice.
65470
65471 2006-08-15  Bruno Haible  <bruno@clisp.org>
65472
65473         * modules/tmpdir (License): Change to LGPL.
65474
65475 2006-08-15  Bruno Haible  <bruno@clisp.org>
65476
65477         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
65478         module.
65479
65480 2006-08-14  Simon Josefsson  <jas@extundo.com>
65481
65482         * config/srclist.txt: Add gnupload.
65483
65484 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
65485
65486         Change copyright notice from LGPL 2 to GPL 2, since that's the
65487         standard form used in the gnulib repository.
65488         * tests/test-lock.c: Likewise.
65489         * tests/test-stdint.c: Likewise.
65490         * tests/test-tls.c: Likewise.
65491
65492         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
65493         prelude-manager.  User shorter URLs for GNU projects, without '?'.
65494         Add copyright notice.
65495
65496         * check-module: Add copyright notice.  Output a copyright
65497         notice if "--version" is specified.
65498         * modules/COPYING: New file.
65499         * tests/test-getaddrinfo.c: Add copyright notice.
65500         * tests/test-verify.c: Likewise.
65501
65502 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
65503
65504         Change copyright notice from LGPL 2 to GPL 2, since that's the
65505         standard form used in the gnulib repository.
65506         * lib/lock.c: LGPL -> GPL.
65507         * lib/lock.h: Likewise.
65508         * lib/strnlen1.c: Likewise.
65509         * lib/strnlen1.h: Likewise.
65510         * lib/tls.c: Likewise.
65511         * lib/tls.h: Likewise.
65512         * lib/tmpdir.c: Likewise.
65513
65514         * lib/TODO: Remove; this belongs only in coreutils.
65515
65516 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
65517
65518         Add copyright notices to long-enough files that lack them, since
65519         otherwise the files aren't clearly free.  Use the same notice that
65520         getdate.texi already uses.
65521         * doc/alloca-opt.texi: Add copyright notice.
65522         * doc/alloca.texi: Likewise.
65523         * doc/ctime.texi: Likewise.
65524         * doc/functions.texi: Likewise.
65525         * doc/gcd.texi: Likewise.
65526         * doc/gnulib-tool.texi: Likewise.
65527         * doc/inet_ntoa.texi: Likewise.
65528         * doc/visibility.texi: Likewise.
65529
65530         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
65531         * doc/quote.texi: Add copyright notice.
65532
65533         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
65534         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
65535         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
65536         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
65537         is now obsolete, and give a pointer to the Sun list.
65538         Add copyright notice.
65539
65540 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
65541
65542         * config/srclistvars.sh: Add copyright notice.
65543
65544 2006-08-14  Eric Blake  <ebb9@byu.net>
65545
65546         Import the following change from libc:
65547
65548         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
65549
65550         Upstream bug 2997.
65551         * lib/misc/error.c: Add space between program name and message if file
65552         name is missing.
65553
65554 2006-08-12  Karl Berry  <karl@gnu.org>
65555
65556         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
65557         remove, these originate in gnulib now.
65558
65559 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65560
65561         * doc/Makefile (standards.info standards.html standards.dvi):
65562         Also depend on make-stds.texi.
65563
65564 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
65565
65566         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
65567         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
65568
65569         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
65570         in wchar_t.  Problem reported by Eric Blake.
65571
65572         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
65573         LEN is smaller than SIZE.  Suggested by Bruno Haible.
65574         Also, help the compiler to keep LEN in a register.
65575
65576 2006-08-11  Eric Blake  <ebb9@byu.net>
65577
65578         * users.txt: Sort.  Add tar.
65579
65580 2006-08-11  Bruno Haible  <bruno@clisp.org>
65581
65582         * users.txt: New file.
65583
65584 2006-08-11  Bruno Haible  <bruno@clisp.org>
65585
65586         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
65587         before <wchar.h>. Needed for OSF/1 and BSD/OS.
65588
65589 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
65590
65591         * modules/snprintf (Depends-on): Remove minmax.
65592         (Maintainer): Add self and Bruno.
65593
65594 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
65595
65596         * lib/.cppi-disable: Add snprintf.h, socket_.h.
65597         * lib/snprintf.c: Include <errno.h> and <limits.h>.
65598         (EOVERFLOW): Define if the system does not.
65599         Do not include "minmax.h"; it wasn't used.
65600         (snprintf): Don't assume size_t promotes to an unsigned type.
65601         Fix bug when generated string was too long for the buffer: the
65602         buffer's contents are supposed to be the initial prefix of the
65603         output.  Don't assume vasnprintf returns EOVERFLOW if the size
65604         exceeds INT_MAX; do the check ourselves.
65605
65606         Import the following changes from libc:
65607
65608         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
65609
65610         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
65611         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
65612         set wc to the byte which couldn't be converted.
65613         (re_string_reconstruct): Don't clear valid_raw_len before calling
65614         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
65615         tip_context using re_string_context_at.
65616
65617         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
65618
65619         * lib/posix/regex.h: g++ still cannot handled [restrict].
65620
65621         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
65622
65623         * lib/posix/regex.h: Remove special handling for VMS.
65624
65625 2006-08-10  Jim Meyering  <jim@meyering.net>
65626
65627         * modules/same-inode: New module.
65628         * modules/dev-ino: New module.
65629         * modules/cycle-check: Depend on these modules, rather than simply
65630         including their .h files.
65631         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
65632         required via m4/cycle-check.m4.
65633         * modules/same: Depend on new same-inode module, rather than
65634         including same-inode.h.
65635         * modules/chdir-safer: New file.
65636
65637         * modules/chown (Depends-on): Add stat-macros.
65638
65639 2006-08-10  Jim Meyering  <jim@meyering.net>
65640
65641         * m4/cycle-check.m4: New file.
65642         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
65643         * m4/dev-ino.m4, m4/same-inode.m4: New files.
65644
65645 2006-08-10  Eric Blake  <ebb9@byu.net>
65646
65647         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
65648         in from original proposal.
65649
65650 2006-08-10  Eric Blake  <ebb9@byu.net>
65651         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
65652
65653         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
65654         namespace.
65655
65656 2006-08-10  Bruno Haible  <bruno@clisp.org>
65657
65658         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
65659         as well.
65660
65661 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
65662
65663         Sync from coreutils.
65664
65665         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
65666
65667         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
65668         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
65669
65670 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
65671
65672         * modules/restrict: Remove; no longer needed now that we assume
65673         Autoconf 2.59 or later.
65674         * MODULES.html.sh: Remove 'restrict'.
65675         * modules/argp (Depends-on): Remove 'restrict'.
65676         * modules/base64 (Depends-on): Likewise.
65677         * modules/gc (Depends-on): Likewise.
65678         * modules/getaddrinfo (Depends-on): Likewise.
65679         * modules/glob (Depends-on): Likewise.
65680         * modules/inet_ntop (Depends-on): Likewise.
65681         * modules/inet_pton (Depends-on): Likewise.
65682         * modules/memxor (Depends-on): Likewise.
65683         * modules/regex (Depends-on): Likewise.
65684         * modules/strtok_r (Depends-on): Likewise.
65685         * modules/time_r (Depends-on): Likewise.
65686
65687 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
65688
65689         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
65690         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
65691         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
65692         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
65693         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
65694         * m4/memxor.m4 (gl_MEMXOR): Likewise.
65695         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
65696         gl_C_RESTRICT replaced by AC_C_RESTRICT.
65697
65698         Merge from coreutils.
65699         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
65700         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
65701         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
65702         * m4/time_r.m4 (gl_TIME_R): Likewise.
65703
65704 2006-08-09  Karl Berry  <karl@gnu.org>
65705
65706         * config/srclist.txt: no more gettext-tools, per Bruno.
65707
65708 2006-08-08  Eric Blake  <ebb9@byu.net>
65709
65710         * modules/verror: New module.
65711         * MODULES.html.sh: Document it.
65712
65713 2006-08-08  Eric Blake  <ebb9@byu.net>
65714
65715         * lib/verror.h, lib/verror.c: New files.
65716
65717 2006-08-08  Eric Blake  <ebb9@byu.net>
65718
65719         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
65720         verror_at_line output complies with GNU Coding Standards even when
65721         file is NULL.
65722
65723 2006-08-07  Bruno Haible  <bruno@clisp.org>
65724
65725         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
65726         versions of AIX.
65727         Reported by Ralf Wildenhues.
65728
65729 2006-08-07  Bruno Haible  <bruno@clisp.org>
65730
65731         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
65732         in an AC_DEFUN. Needed so that the autoconf snippets can use
65733         AC_REQUIRE.
65734
65735 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65736
65737         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
65738         Initialize pkgdata_DATA.
65739         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
65740         overriding it.
65741
65742 2006-08-06  Eric Blake  <ebb9@byu.net>
65743
65744         * lib/error.h: Fold in some upstream changes from glibc.
65745         * lib/error.c: Likewise.
65746
65747 2006-08-04  Bruno Haible  <bruno@clisp.org>
65748
65749         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
65750         Make the mostlyclean-local rule depend on mostlyclean-generic.
65751         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
65752
65753 2006-07-31  Bruno Haible  <bruno@clisp.org>
65754
65755         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
65756         <stdlib.h>, <string.h>.
65757
65758 2006-07-30  Bruno Haible  <bruno@clisp.org>
65759
65760         * modules/readlink (License): Change to LGPL.
65761
65762 2006-07-30  Bruno Haible  <bruno@clisp.org>
65763
65764         * modules/javaversion (Makefile.am): Distribute javaversion.java and
65765         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
65766         set PKGDATADIR to point to it.
65767
65768 2006-07-30  Bruno Haible  <bruno@clisp.org>
65769
65770         * modules/csharpexec (configure.ac): Comment out macro invocation.
65771         * modules/javaexec (configure.ac): Likewise.
65772         * modules/javacomp-script (configure.ac): Likewise.
65773
65774         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
65775
65776 2006-07-30  Bruno Haible  <bruno@clisp.org>
65777
65778         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
65779         linked-list.
65780
65781 2006-07-30  Bruno Haible  <bruno@clisp.org>
65782
65783         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
65784
65785 2006-07-30  Bruno Haible  <bruno@clisp.org>
65786
65787         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
65788         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
65789         get removed.
65790
65791 2006-07-29  Bruno Haible  <bruno@clisp.org>
65792
65793         Make it possible for gnulib-tool to work with locally modified or
65794         augmented gnulib repositories.
65795         * gnulib-tool (func_usage): Document --local-dir option.
65796         (local_gnulib_dir): New variable.
65797         Handle --local-dir option.
65798         (func_lookup_file): New function.
65799         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
65800         (func_get_description, func_get_filelist, func_get_description,
65801         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
65802         func_get_automake_snippet, func_get_include_directive,
65803         func_get_license, func_get_maintainer): Use func_lookup_file.
65804         (func_import, func_create_testdir): Use func_lookup_file.
65805
65806 2006-07-29  Bruno Haible  <bruno@clisp.org>
65807
65808         * modules/setenv (Depends-on): Add unistd.
65809
65810 2006-07-29  Bruno Haible  <bruno@clisp.org>
65811
65812         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
65813
65814 2006-07-29  Bruno Haible  <bruno@clisp.org>
65815
65816         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
65817
65818 2006-07-29  Bruno Haible  <bruno@clisp.org>
65819
65820         * gnulib-tool (import, update): If there is no Makefile.am, look at
65821         aclocal.m4, instead of bailing out.
65822
65823 2006-07-29  Bruno Haible  <bruno@clisp.org>
65824
65825         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
65826         Categorize the options by when they are useful.
65827
65828 2006-07-29  Bruno Haible  <bruno@clisp.org>
65829
65830         * gnulib-tool (func_usage): Document option --no-libtool.
65831         Handle option --no-libtool.
65832         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
65833         for changed semantics of $libtool variable.
65834         (func_import): Likewise. If libtool is not used, show this through
65835         an option --no-libtool.
65836         (func_create_testdir): Update.
65837
65838 2006-07-29  Bruno Haible  <bruno@clisp.org>
65839
65840         * gnulib-tool (func_import): Extend error message about missing
65841         --doc-base.
65842
65843 2006-07-29  Bruno Haible  <bruno@clisp.org>
65844
65845         * gnulib-tool (func_import): Don't create the $docbase directory if
65846         there is no file to store there.
65847
65848 2006-07-29  Bruno Haible  <bruno@clisp.org>
65849
65850         * gnulib-tool (autoconf_minversion): If a --dir option is given and
65851         relevant, look for configure.ac there, not in the current directory.
65852         Also use a simple search for AC_PREREQ, not "autoconf --trace".
65853
65854 2006-07-29  Bruno Haible  <bruno@clisp.org>
65855
65856         * gnulib-tool (SORT): New variable.
65857         (func_usage): Undocument --assume-autoconf option.
65858         Remove --assume-autoconf option handling.
65859         (autoconf_minversion): Determine from the contents of configure.ac.
65860         (func_import): Remove autoconf_minversion handling.
65861         Suggested by Eric Blake.
65862
65863 2006-07-29  Bruno Haible  <bruno@clisp.org>
65864
65865         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
65866
65867 2006-07-29  Bruno Haible  <bruno@clisp.org>
65868
65869         * config/srclist.txt (*setenv.[ch]): Remove rules.
65870
65871 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65872
65873         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
65874
65875 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65876
65877         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
65878         arpa/inet.h.
65879
65880 2006-07-28  Simon Josefsson  <jas@extundo.com>
65881
65882         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
65883         * modules/inet_pton (Depends-on): Likewise.
65884
65885 2006-07-28  Simon Josefsson  <jas@extundo.com>
65886
65887         * m4/netinet_in_h.m4: New file.
65888
65889 2006-07-28  Simon Josefsson  <jas@extundo.com>
65890
65891         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
65892         #include's.
65893
65894 2006-07-28  Simon Josefsson  <jas@extundo.com>
65895
65896         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
65897         #include's.
65898
65899 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
65900
65901         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
65902         setgid on directories only if they set these bits.
65903         * lib/modechange.h: Remove obsolete comment about masks.
65904
65905 2006-07-28  Eric Blake  <ebb9@byu.net>
65906
65907         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
65908         macro expansion.
65909
65910 2006-07-28  Bruno Haible  <bruno@clisp.org>
65911
65912         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
65913
65914 2006-07-28  Bruno Haible  <bruno@clisp.org>
65915
65916         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
65917
65918 2006-07-28  Bruno Haible  <bruno@clisp.org>
65919
65920         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
65921         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
65922         Define fallbacks.
65923         Avoids link error on FreeBSD 4.x.
65924         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
65925
65926         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
65927         encoding.
65928         * lib/mbswidth.c (iswcntrl): Likewise.
65929
65930 2006-07-27  Bruno Haible  <bruno@clisp.org>
65931
65932         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
65933         test.
65934
65935 2006-07-27  Bruno Haible  <bruno@clisp.org>
65936
65937         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
65938         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
65939         defined.
65940
65941 2006-07-26  Eric Blake  <ebb9@byu.net>
65942
65943         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
65944
65945 2006-07-26  Eric Blake  <ebb9@byu.net>
65946
65947         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
65948         like mingw that lack mkstemp.
65949         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
65950         avoid compilation warning on mingw.
65951
65952 2006-07-26  Bruno Haible  <bruno@clisp.org>
65953
65954         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
65955         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
65956         INT_FAST*_MIN, INTPTR_MIN.
65957
65958 2006-07-25  Bruno Haible  <bruno@clisp.org>
65959
65960         * modules/version-etc (Depends-on): Add stdarg.
65961
65962 2006-07-25  Bruno Haible  <bruno@clisp.org>
65963
65964         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
65965         complex commands.
65966
65967 2006-07-25  Bruno Haible  <bruno@clisp.org>
65968
65969         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
65970         defined in <stdarg.h> or config.h.
65971
65972 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
65973
65974         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
65975         (gl_STDIO_SAFER): Remove.
65976
65977 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
65978
65979         * MODULES.html.sh (File stream based Input/Output):
65980         Add fopen-safer, tmpfile-safer; remove stdio-safer.
65981         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
65982         * modules/fopen-safer, modules/tmpfile-safer: New files.
65983         * modules/stdio-safer: Remove.
65984
65985 2006-07-24  Bruno Haible  <bruno@clisp.org>
65986
65987         * modules/tmpdir: New file.
65988         * MODULES.html.sh (File system functions): Add it.
65989
65990 2006-07-24  Bruno Haible  <bruno@clisp.org>
65991
65992         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
65993         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
65994
65995 2006-07-24  Bruno Haible  <bruno@clisp.org>
65996
65997         * modules/clean-temp: New file.
65998
65999 2006-07-24  Bruno Haible  <bruno@clisp.org>
66000
66001         * m4/tmpdir.m4: New file, from GNU gettext.
66002
66003 2006-07-24  Bruno Haible  <bruno@clisp.org>
66004
66005         * lib/tmpdir.h: New file, from GNU gettext.
66006         * lib/tmpdir.c: New file, from GNU gettext.
66007
66008 2006-07-24  Bruno Haible  <bruno@clisp.org>
66009
66010         * lib/clean-temp.h: New file, from GNU gettext.
66011         * lib/clean-temp.c: New file, from GNU gettext.
66012
66013 2006-07-23  Eric Blake  <ebb9@byu.net>
66014
66015         * modules/stdio-safer (Files): Add tmpfile-safer.c.
66016         (Depends-on): Add binary-io.
66017
66018 2006-07-23  Eric Blake  <ebb9@byu.net>
66019
66020         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
66021
66022 2006-07-23  Eric Blake  <ebb9@byu.net>
66023
66024         * lib/tmpfile-safer.c: New file.
66025         * lib/stdio-safer.h (fopen_safer): Add prototype.
66026         * lib/stdio--.h (tmpfile): Make safer.
66027
66028 2006-07-23  Bruno Haible  <bruno@clisp.org>
66029
66030         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
66031         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
66032         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
66033         gl_linked_remove_at): Use it.
66034
66035 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66036         and Simon Josefsson <jas@extundo.com>
66037
66038         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
66039
66040         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
66041
66042 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
66043
66044         * modules/close-stream: New file.
66045         * modules/closeout (Description): Make it clear that it exits
66046         with a diagnostic on error.
66047         (Depends-on): Add close-stream.  Remove fpending, stdbool.
66048         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
66049
66050 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
66051
66052         * m4/close-stream.m4: New file.
66053
66054 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
66055
66056         * lib/close-stream.c, lib/close-stream.h: New files.
66057
66058 2006-07-22  Bruno Haible  <bruno@clisp.org>
66059
66060         Merge from GNU gettext 0.15.
66061
66062         2006-05-01  Bruno Haible  <bruno@clisp.org>
66063
66064                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
66065
66066         2006-07-22  Bruno Haible  <bruno@clisp.org>
66067
66068                 * modules/javaversion: New file.
66069                 * MODULES.html.sh (Java): Add javaversion.
66070
66071         2006-03-12  Bruno Haible  <bruno@clisp.org>
66072
66073                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
66074
66075         2005-12-04  Bruno Haible  <bruno@clisp.org>
66076
66077                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
66078                 (untested).
66079
66080         2006-06-21  Bruno Haible  <bruno@clisp.org>
66081
66082                 Avoid warnings from recent versions of mcs.
66083                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
66084                 -o, -L, -r any more. Use options documented since mcs-1.0
66085                 instead. Similarly for -g.
66086
66087         2005-12-04  Bruno Haible  <bruno@clisp.org>
66088
66089                 * build-aux/csharpcomp.sh.in: Suffix for resources is
66090                 .resources, not .resource.
66091
66092         2005-07-09  Bruno Haible  <bruno@clisp.org>
66093
66094                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
66095                 add a .dll suffix.
66096                 Reported by Mark Junker <mjscod@gmx.de>.
66097
66098         2006-07-22  Bruno Haible  <bruno@clisp.org>
66099
66100                 * modules/gettext: Upgrade to gettext-0.15.
66101                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
66102                 m4/visibility.m4.
66103                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
66104
66105 2006-07-22  Bruno Haible  <bruno@clisp.org>
66106
66107         Merge from GNU gettext 0.15.
66108
66109         2006-03-25  Bruno Haible  <bruno@clisp.org>
66110
66111                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
66112
66113         2006-07-21  Bruno Haible  <bruno@clisp.org>
66114
66115                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
66116                 "1.1".
66117
66118         2006-05-09  Bruno Haible  <bruno@clisp.org>
66119
66120                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
66121                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
66122                 for the conftestver execution.
66123
66124         2006-05-01  Bruno Haible  <bruno@clisp.org>
66125
66126                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
66127                 optional target-version argument. Verify that the compiler
66128                 groks source of the specified source-version, or add -source
66129                 option as necessary. Verify that the compiler produces
66130                 bytecode in the specified target-version, or add -target and
66131                 -source options as necessary. Make the result of the test
66132                 available as variable CONF_JAVAC. Also log error output in
66133                 config.log.
66134
66135         2006-03-11  Bruno Haible  <bruno@clisp.org>
66136
66137                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
66138
66139         2006-05-09  Bruno Haible  <bruno@clisp.org>
66140
66141                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
66142                 CLASSPATH_SEPARATOR to a semicolon.
66143
66144         2006-03-12  Bruno Haible  <bruno@clisp.org>
66145
66146                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
66147                 available as variable CONF_JAVA, for subsequent autoconf
66148                 tests. Also log error output in config.log.
66149
66150         2006-07-19  Bruno Haible  <bruno@clisp.org>
66151
66152                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
66153                 that getline works on glibc2 systems. Needed to avoid trouble
66154                 in relocatable.c.
66155                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
66156
66157         2005-12-04  Bruno Haible  <bruno@clisp.org>
66158
66159                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
66160                 launcher (untested).
66161
66162         2005-12-04  Bruno Haible  <bruno@clisp.org>
66163
66164                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
66165
66166         2006-07-22  Bruno Haible  <bruno@clisp.org>
66167
66168                 * gettext.m4: Update from GNU gettext-0.15.
66169                 * nls.m4: Likewise.
66170                 * po.m4: Likewise.
66171                 * inttypes-pri.m4: Likewise.
66172                 * inttypes-h.m4: Renamed from inttypes.m4.
66173                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
66174
66175 2006-07-22  Bruno Haible  <bruno@clisp.org>
66176
66177         Merge from GNU gettext 0.15.
66178
66179         2005-07-05  Bruno Haible  <bruno@clisp.org>
66180
66181                 * printf-args.c (printf_fetchargs): Work around broken
66182                 definition of wint_t on mingw.
66183
66184         2005-02-12  Bruno Haible  <bruno@clisp.org>
66185
66186                 * xallocsa.h: Add extern "C" for C++.
66187
66188         2006-05-17  Bruno Haible  <bruno@clisp.org>
66189
66190                 Cygwin portability.
66191                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
66192
66193         2006-04-30  Bruno Haible  <bruno@clisp.org>
66194
66195                 * progreloc.c: Include <mach-o/dyld.h> if available.
66196                 (find_executable): Use _NSGetExecutablePath when possible.
66197
66198         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
66199
66200                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
66201                 function.
66202
66203         2005-12-29  Bruno Haible  <bruno@clisp.org>
66204
66205                 * progreloc.c (set_program_name_and_installdir): Fix
66206                 compilation error.
66207
66208         2005-12-04  Bruno Haible  <bruno@clisp.org>
66209
66210                 Cygwin portability.
66211                 * progreloc.c: Include <windows.h> also on Cygwin.
66212                 (find_executable): Add support for Cygwin.
66213                 (set_program_name_and_installdir): Handle also platforms with
66214                 nonempty EXEEXT.
66215
66216         2006-07-11  Bruno Haible  <bruno@clisp.org>
66217
66218                 * javacomp.c: Fix a comment.
66219                 Reported by Jim Meyering.
66220
66221         2006-04-30  Bruno Haible  <bruno@clisp.org>
66222
66223                 * javacomp.h (compile_java_class): Add source_version,
66224                 target_version arguments.
66225                 * javacomp.c: Rewritten to choose only a compiler that
66226                 respects the specified source_version and target_version.
66227
66228         2006-06-27  Bruno Haible  <bruno@clisp.org>
66229
66230                 Assume correct S_ISDIR macro.
66231                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
66232
66233         2006-07-22  Bruno Haible  <bruno@clisp.org>
66234
66235                 * javaversion.h: New file, from GNU gettext.
66236                 * javaversion.c: New file, from GNU gettext.
66237                 * javaversion.java: New file, from GNU gettext.
66238                 * javaversion.class: New file, from GNU gettext.
66239
66240         2006-05-17  Bruno Haible  <bruno@clisp.org>
66241
66242                 Cygwin portability.
66243                 * javaexec.c (execute_java_class): Test for jview program
66244                 also on Cygwin.
66245
66246         2006-04-09  Bruno Haible  <bruno@clisp.org>
66247
66248                 * fatal-signal.c: Don't include string.h.
66249                 (at_fatal_signal): Use a copying loop instead of memcpy.
66250
66251         2005-12-04  Bruno Haible  <bruno@clisp.org>
66252
66253                 * csharpexec.c: Add support for 'clix' launcher (untested).
66254                 (execute_csharp_using_sscli): New function.
66255                 (execute_csharp_program): Call it.
66256
66257         2006-06-21  Bruno Haible  <bruno@clisp.org>
66258
66259                 Avoid warnings from recent versions of mcs.
66260                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
66261                 -o, -L, -r any more. Use options documented since mcs-1.0
66262                 instead. Similarly for -g.
66263
66264         2005-07-09  Bruno Haible  <bruno@clisp.org>
66265
66266                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
66267                 add a .dll suffix.
66268                 Reported by Mark Junker <mjscod@gmx.de>.
66269
66270         2006-06-17  Bruno Haible  <bruno@clisp.org>
66271
66272                 * config.charset: Update for NetBSD 3.0.
66273
66274         2006-05-17  Bruno Haible  <bruno@clisp.org>
66275
66276                 Cygwin portability.
66277                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
66278
66279         2006-05-16  Bruno Haible  <bruno@clisp.org>
66280
66281                 * localcharset.c [CYGWIN]: Include <windows.h>.
66282                 (get_charset_aliases): For Cygwin, return the same CPxxx
66283                 aliases list as under WIN32.
66284                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
66285                 the environment variables. Fall back to GetACP().
66286
66287         2006-04-05  Bruno Haible  <bruno@clisp.org>
66288
66289                 * config.charset: Update Juan Manuel Guerrero's address.
66290
66291         2005-02-12  Bruno Haible  <bruno@clisp.org>
66292
66293                 * allocsa.h: Add extern "C" for C++.
66294
66295         2005-02-10  Bruno Haible  <bruno@clisp.org>
66296
66297                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
66298                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
66299
66300         2006-07-22  Bruno Haible  <bruno@clisp.org>
66301
66302                 * gettext.h: Update to GNU gettext-0.15.
66303
66304 2006-07-22  Bruno Haible  <bruno@clisp.org>
66305
66306         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
66307         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
66308         lib-prefix.m4, longdouble.m4, ssize_t.m4.
66309
66310 2006-07-21  Eric Blake  <ebb9@byu.net>
66311
66312         * modules/stdlib-safer: New file.
66313         * MODULES.html.sh (File stream based Input/Output): Add
66314         stdlib-safer.
66315
66316 2006-07-21  Eric Blake  <ebb9@byu.net>
66317
66318         * lib/stdlib-safer.h: New file from coreutils, required by
66319         stdlib--.h.
66320
66321 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
66322
66323         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
66324
66325 2006-07-20  Bruno Haible  <bruno@clisp.org>
66326
66327         * gnulib-tool: Recognize new option --assume-autoconf.
66328         (autoconf_minversion): New variable.
66329         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
66330
66331 2006-07-20  Bruno Haible  <bruno@clisp.org>
66332
66333         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
66334
66335 2006-07-19  Derek R. Price  <derek@ximbiot.com>
66336
66337         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
66338         Reindent and repaginate.
66339
66340 2006-07-19  Derek Price  <derek@ximbiot.com>
66341
66342         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
66343         Correct grammar.
66344
66345 2006-07-17  Bruno Haible  <bruno@clisp.org>
66346
66347         * modules/list: New file.
66348         * modules/array-list: New file.
66349         * modules/carray-list, modules/carray-list-tests: New files.
66350         * modules/linked-list, modules/linked-list-tests: New files.
66351         * modules/avltree-list, modules/avltree-list-tests: New files.
66352         * modules/rbtree-list, modules/rbtree-list-tests: New files.
66353         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
66354         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
66355         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
66356         * modules/oset: New file.
66357         * modules/array-oset: New file.
66358         * modules/avltree-oset, modules/avltree-oset-tests: New files.
66359         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
66360         * tests/test-carray_list.c: New file.
66361         * tests/test-linked_list.c: New file.
66362         * tests/test-avltree_list.c: New file.
66363         * tests/test-rbtree_list.c: New file.
66364         * tests/test-linkedhash_list.c: New file.
66365         * tests/test-avltreehash_list.c: New file.
66366         * tests/test-rbtreehash_list.c: New file.
66367         * tests/test-avltree_oset.c: New file.
66368         * tests/test-rbtree_oset.c: New file.
66369         * MODULES.html.sh (Container data structures): New section.
66370
66371 2006-07-17  Bruno Haible  <bruno@clisp.org>
66372
66373         * m4/gl_list.m4: New file.
66374
66375 2006-07-17  Bruno Haible  <bruno@clisp.org>
66376
66377         * lib/gl_list.h: New file.
66378         * lib/gl_list.c: New file.
66379         * lib/gl_array_list.h: New file.
66380         * lib/gl_array_list.c: New file.
66381         * lib/gl_carray_list.h: New file.
66382         * lib/gl_carray_list.c: New file.
66383         * lib/gl_linked_list.h: New file.
66384         * lib/gl_linked_list.c: New file.
66385         * lib/gl_anylinked_list1.h: New file.
66386         * lib/gl_anylinked_list2.h: New file.
66387         * lib/gl_avltree_list.h: New file.
66388         * lib/gl_avltree_list.c: New file.
66389         * lib/gl_anyavltree_list1.h: New file.
66390         * lib/gl_anyavltree_list2.h: New file.
66391         * lib/gl_rbtree_list.h: New file.
66392         * lib/gl_rbtree_list.c: New file.
66393         * lib/gl_anyrbtree_list1.h: New file.
66394         * lib/gl_anyrbtree_list2.h: New file.
66395         * lib/gl_anytree_list1.h: New file.
66396         * lib/gl_anytree_list2.h: New file.
66397         * lib/gl_linkedhash_list.h: New file.
66398         * lib/gl_linkedhash_list.c: New file.
66399         * lib/gl_anyhash_list1.h: New file.
66400         * lib/gl_anyhash_list2.h: New file.
66401         * lib/gl_avltreehash_list.h: New file.
66402         * lib/gl_avltreehash_list.c: New file.
66403         * lib/gl_rbtreehash_list.h: New file.
66404         * lib/gl_rbtreehash_list.c: New file.
66405         * lib/gl_anytreehash_list1.h: New file.
66406         * lib/gl_anytreehash_list2.h: New file.
66407
66408         * lib/gl_oset.h: New file.
66409         * lib/gl_oset.c: New file.
66410         * lib/gl_array_oset.h: New file.
66411         * lib/gl_array_oset.c: New file.
66412         * lib/gl_avltree_oset.h: New file.
66413         * lib/gl_avltree_oset.c: New file.
66414         * lib/gl_rbtree_oset.h: New file.
66415         * lib/gl_rbtree_oset.c: New file.
66416         * lib/gl_anytree_oset.h: New file.
66417
66418 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
66419
66420         * m4/mkancesdirs.m4: New file.
66421         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
66422         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
66423         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
66424         it.
66425
66426 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
66427
66428         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
66429         * lib/mkancesdirs.h: New files.
66430         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
66431         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
66432         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
66433         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
66434         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
66435         callers changed.  Revamp internals significantly, by not
66436         attempting to create directories that are temporarily more
66437         permissive than the final results.  Do not attempt to use
66438         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
66439         This removes some race conditions, fixes some bugs, and simplifies
66440         things.  Use new dirchownmod function to do owner and mode changes.
66441         * lib/mkdir-p.h: Likewise.
66442         * lib/modechange.c (octal_to_mode): New function.
66443         (struct mode_change): New member mentioned.
66444         (make_node_op_equals): New arg mentioned.  All callers changed.
66445         (mode_compile): Keep track of which mode bits the user has explicitly
66446         mentioned.
66447         (mode_adjust): New arg DIR, so that we implement the X op correctly.
66448         New arg PMODE_BITS, to keep track of which mode bits the user
66449         mentioned; it treats S_ISUID and S_ISGID speciall.
66450         All callers changed.
66451         * lib/modechange.h: Likewise.
66452
66453 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
66454
66455         * MODULES.html.sh: Add mkancestors.
66456         * modules/mkancesdirs: New module.
66457         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
66458         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
66459         The chdir-safer and afs files are now orphans; I'll remove them
66460         unless someone speaks up.
66461         Add lib/dirchownmod.c, lib/dirchownmod.h.
66462         (Depends-on): Remove alloca, chown, save-cwd, dirname.
66463         Add lchown, mkancesdirs.
66464         (Maintainer): Add self.
66465
66466 2006-07-15  Karl Berry  <karl@gnu.org>
66467
66468         * gnulib-tool: help message wording/arrangement.
66469
66470 2006-07-14  Simon Josefsson  <jas@extundo.com>
66471
66472         * doc/gnulib.texi (Libtool and Windows): New section.
66473
66474 2006-07-12  Simon Josefsson  <jas@extundo.com>
66475
66476         * modules/gendocs (License): Fix license, approved by Karl.
66477
66478 2006-07-12  Eric Blake  <ebb9@byu.net>
66479
66480         * MODULES.html.sh: Add gendocs.
66481
66482 2006-07-11  Eric Blake  <ebb9@byu.net>
66483
66484         * modules/fdl: New module, to install doc/fdl.texi.
66485         * MODULES.html.sh: Add new section for documentation modules.
66486         * gnulib-tool: Avoid space-tab.
66487         (--doc-base): New option, to manage files from doc.
66488
66489 2006-07-11  Eric Blake  <ebb9@byu.net>
66490
66491         * m4/absolute-header.m4: Fix comments to match recent change.
66492
66493 2006-07-11  Eric Blake  <ebb9@byu.net>
66494
66495         * gnulib-tool: List --doc-base before --tests-base.
66496
66497 2006-07-11  Derek R. Price  <derek@ximbiot.com>
66498
66499         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
66500
66501 2006-07-11  Bruno Haible  <bruno@clisp.org>
66502
66503         * README: Mention where to put documentation.
66504
66505 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66506
66507         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
66508
66509 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
66510
66511         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
66512         to stdint.m4.
66513
66514 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
66515
66516         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
66517         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
66518         "no/such/file/stdint.h" when there is no such file, so that
66519         the resulting C code can be parsed by dodgy compilers.
66520         Problems reported by Bob Proulx.
66521
66522 2006-07-10  Derek R. Price  <derek@ximbiot.com>
66523
66524         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
66525         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
66526         macros into the GNU _D_EXACT_NAMLEN.
66527         * lib/savedir.c:  Likewise.
66528         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
66529
66530 2006-07-10  Derek R. Price  <derek@ximbiot.com>
66531         and Paul Eggert  <eggert@cs.ucla.edu>
66532
66533         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
66534         * m4/savedir.m4:
66535         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
66536         macros into the GNU _D_EXACT_NAMLEN.
66537
66538 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
66539
66540         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
66541         around the absolute name, to work around a problem with the HP-UX
66542         11.23 native C compiler, reported by Bob Proulx.
66543
66544 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
66545
66546         * doc/maintain.texi, make-stds.texi: Sync from
66547         <http://savannah.gnu.org/projects/gnustandards>.
66548
66549 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
66550
66551         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
66552
66553 2006-07-09  Jim Meyering  <jim@meyering.net>
66554
66555         * m4/glob.m4: Remove a doubled word in a comment.
66556
66557 2006-07-09  Jim Meyering  <jim@meyering.net>
66558
66559         * lib/argp-pv.c: Remove a doubled word in a comment.
66560         * lib/check-version.c (check_version): Likewise.
66561         * lib/javacomp.c (compile_java_class): Likewise.
66562
66563 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
66564
66565         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
66566         for the benefit of people using Autoconf 2.60.  If you want to
66567         support older Autoconf versions you can copy m4/onceonly_2_57.m4
66568         (or m4/onceonly.m4, if pre-2.57) manually.
66569
66570 2006-07-08  Jim Meyering  <jim@meyering.net>
66571
66572         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
66573         comment.
66574         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
66575         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
66576         comment.
66577
66578 2006-07-08  Jim Meyering  <jim@meyering.net>
66579
66580         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
66581
66582 2006-07-07  Simon Josefsson  <jas@extundo.com>
66583
66584         * tests/test-crc.c: Change expected crc value, the test vector
66585         were probably computed using the old broken crc.c?
66586
66587 2006-07-06  Simon Josefsson  <jas@extundo.com>
66588
66589         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
66590         now the canonical place for the M4 file).
66591
66592         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
66593         from the sys_socket dependency now.
66594
66595         * modules/inet_pton (Files): Ditto.
66596
66597         * modules/inet_ntop (Files): Ditto.
66598
66599 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
66600
66601         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
66602         not gl_PREREQ_GETUSERSHELL.
66603
66604 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66605
66606         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
66607         with only one argument, for Autoconf 2.60.
66608         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
66609         expand to nothing, so add a shell command to avoid syntax error.
66610         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
66611
66612 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66613
66614         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
66615
66616 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
66617
66618         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
66619         no longer needed.  Check for isblank decl.
66620         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
66621         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
66622         of existence.
66623
66624 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
66625
66626         * lib/getloadavg.c: Use __VMS, not VMS.
66627         * lib/getopt.c: Likewise.
66628         * lib/getpagesize.h: Likewise.
66629         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
66630         and probably does not work.
66631
66632 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
66633
66634         * lib/.cppi-disable: Add wcwidth.
66635         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
66636         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
66637         (ISGRAPH): Remove.  All uses changed to isgraph.
66638         (FOLD) [!defined _LIBC]: Remove special case.
66639         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
66640         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
66641         HAVE_ISBLANK.
66642         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
66643         case.
66644
66645 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
66646
66647         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
66648         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
66649         brackets.  Other minor changes to suppress some compiler
66650         warnings.
66651
66652 2006-07-06  Derek R. Price  <derek@ximbiot.com>
66653         and Paul Eggert  <eggert@cs.ucla.edu>
66654
66655         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
66656         of invoking obsolescent AC_HEADER_DIRENT macro.
66657         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
66658         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
66659         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
66660         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
66661         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
66662         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
66663         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
66664         * m4/readdir.m4: Remove; no longer needed.
66665
66666 2006-07-06  Derek R. Price  <derek@ximbiot.com>
66667         and Paul Eggert  <eggert@cs.ucla.edu>
66668
66669         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
66670         Don't worry about this obsolete case any more.
66671         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
66672         directories.
66673         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
66674         worry about this obsolete case any more.
66675         * lib/fts.c: Likewise.
66676         * lib/getcwd.c: Likewise.
66677         * lib/glob.h: Likewise.
66678         * lib/savedir.c: Likewise.
66679
66680 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
66681
66682         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
66683         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
66684         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
66685         needed.
66686         All uses removed.
66687         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
66688         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
66689         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
66690         needed.
66691         * m4/getdate.m4 (gl_GETDATE): Likewise.
66692         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
66693         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
66694         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
66695         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
66696         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
66697         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
66698         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
66699         needed.
66700
66701 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
66702
66703         * lib/memcasecmp.c: Include <limits.h>.
66704         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
66705         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
66706         Don't assume isdigit succeeds only on '0' through '9'.
66707
66708 2006-07-05  Eric Blake  <ebb9@byu.net>
66709
66710         * modules/getaddrinfo (Depends-on): Add snprintf.
66711
66712 2006-07-05  Eric Blake  <ebb9@byu.net>
66713
66714         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
66715         to avoid 'header present but could not be compiled' on cygwin.
66716
66717 2006-07-05  Eric Blake  <ebb9@byu.net>
66718
66719         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
66720         missing from netdb.h.
66721         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
66722
66723 2006-07-05  Derek R. Price  <derek@ximbiot.com>
66724
66725         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
66726         no longer needed.
66727         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
66728         * m4/getdate.m4 (gl_GETDATE): Likewise.
66729         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
66730         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
66731         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
66732         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
66733         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
66734
66735 2006-07-05  Derek R. Price  <derek@ximbiot.com>
66736
66737         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
66738         All uses of is_space replaced by isspace.
66739         * lib/exit.h: Don't talk about STDC_HEADERS.
66740         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
66741         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
66742         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
66743         replaced by isprint etc.
66744         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
66745         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
66746         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
66747         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
66748         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
66749         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
66750
66751 2006-07-05  Bruno Haible  <bruno@clisp.org>
66752
66753         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
66754         the function exists, before testing against AIX.
66755         Reported by Martin Lambers <marlam@marlam.de>.
66756
66757 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
66758
66759         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
66760         From Mark D. Baushke.
66761
66762 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
66763
66764         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
66765         to the absolute name, not just one, to bypass Sun C 5.8's
66766         "warning: #include of /usr/include/... may be non-portable".
66767
66768 2006-07-04  Eric Blake  <ebb9@byu.net>
66769
66770         * modules/dirname-tests: New test module.
66771         * tests/test-dirname.c: New file, replacing dirname.c
66772         TEST_DIRNAME section that was recently deleted.
66773
66774 2006-07-04  Bruno Haible  <bruno@clisp.org>
66775
66776         Assume ANSI C header files and <ctype.h> functions.
66777         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
66778         (mbsnwidth): Use isprint, iscntrl instead.
66779
66780 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
66781
66782         Merge from coreutils.
66783         * MODULES.html.sh: Add xstrtold.
66784         * modules/xstrtold: New file.
66785         * modules/cycle-check (Files): Add lib/same-inode.h.
66786         * modules/dirname (Files): Add m4/double-slash-root.m4.
66787         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
66788         * modules/mkdir-p (Files): Add lib/same-inode.h.
66789         * modules/same (Files): Add lib/same-inode.h.
66790
66791 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
66792
66793         * m4/absolute-header.m4: Renamed from full-header-path.m4.
66794         This is to keep the terminology clean; POSIX talks about
66795         "absolute pathnames", not "full pathnames", but the GNU
66796         Coding Standards say to use "path" for something else;
66797         so use "absolute" to keep both sides happy.
66798         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
66799         Set gl_absolute_header, not gl_full_header_path.
66800         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
66801         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
66802         All uses changed.
66803
66804         Merge from coreutils.
66805
66806         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
66807
66808         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
66809         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
66810         want to require the building of c-strtod.o.
66811         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
66812         needs -lm directly.
66813         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
66814
66815         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
66816
66817         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
66818         --as-needed option if available.  Problem reported by Albert Chin in
66819         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
66820         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
66821         cc merely issues a bunch of annoying warnings for --as-needed
66822         (this problem was reported by Bob Proulx).  Also, try linking with
66823         -lm to detect a bug in binutils 2.16 (this problem was reported
66824         by Ralf Wildenhues).
66825
66826         2006-06-18  Jim Meyering  <jim@meyering.net>
66827
66828         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
66829         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
66830         macro.
66831         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
66832         also check for glibc-2.4's abort-inducing bug.
66833
66834         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
66835         Low-probability clean-up should be to use rmdir to get rid of
66836         the just-created directory, not unlink.
66837
66838         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
66839         configure fail, and request a bug report to inform us about it.
66840         Add a comment that, barring reports to the contrary, in 2007 we'll
66841         assume ftruncate is universally available.
66842
66843         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
66844
66845         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
66846
66847         2006-03-12  Jim Meyering  <jim@meyering.net>
66848
66849         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
66850         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
66851         * m4/same.m4 (gl_SAME): Likewise.
66852         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
66853
66854         2006-03-11  Eric Blake  <ebb9@byu.net>
66855
66856         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
66857         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
66858         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
66859         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
66860
66861 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
66862
66863         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
66864         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
66865         reported by Mark D. Baushke, one in
66866         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
66867
66868         Merge from coreutils.
66869
66870         * lib/.cppi-disable: Add stdint_.h.
66871         * lib/.cvsignore: Add stdint.h.
66872
66873         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
66874
66875         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
66876         both double and long double versions.
66877         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
66878         * lib/xstrtold.c: New file.
66879         * lib/xstrtod.h (xstrtold): New decl.
66880
66881         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
66882
66883         * lib/filemode.c (setst): Remove.
66884         (strmode): Rewrite to avoid setst.  This makes the code shorter,
66885         (arguably) clearer, and the generated code is a bit smaller on my
66886         Debian GNU/Linux stable x86 host.
66887
66888         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
66889
66890         * lib/filemode.c: Include "filemode.h" first, to test the interface.
66891         Assume that filemode.h includes sys/types.h and sys/stat.h.
66892         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
66893         (ftypelet): Reorder to put common cases first, for efficiency.
66894         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
66895         to do 'M'.
66896         (strmode): Renamed from mode_string, and now stores 12 bytes instead
66897         of 10, for compatibility with FreeBSD.  All callers changed.
66898         (filemodestring): Now stores 12 bytes instead of 10, and sets file
66899         types that can't be deduced solely from st_mode.  First arg is now a
66900         const pointer.
66901         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
66902         (strmode): Renamed from mode_string.
66903         (filemodestring): New decl.
66904         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
66905         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
66906         needed.
66907         (S_ISPORT, S_ISWHT): New macros, if not already defined.
66908
66909         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
66910
66911         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
66912         fsusage.h now does that.  Include fsusage.h first, to test interface.
66913         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
66914         at most one method (the old code could have generated decls that
66915         didn't conform to C89, not that this was ever exercised).
66916         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
66917
66918         2006-03-19  Jim Meyering  <jim@meyering.net>
66919
66920         Work even in a chroot where d_ino values for entries in "/"
66921         don't match the stat.st_ino values for the same names.
66922         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
66923         number, iterate through all entries again, using lstat instead.
66924         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
66925         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
66926
66927         * lib/getcwd.c (__getcwd): Clarify a comment.
66928         Use memcpy in place of a call to strcpy.
66929
66930         2006-03-12  Jim Meyering  <jim@meyering.net>
66931
66932         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
66933         matches that of the current directory (which we're about to chdir ".."
66934         out of), then save the dev-ino of the parent, instead.
66935
66936         * lib/same-inode.h (SAME_INODE): New file/macro.
66937         * lib/chdir-safer.c (SAME_INODE): Remove definition.
66938         Include "same-inode.h", instead.
66939         * lib/same.c: Likewise.
66940         * lib/cycle-check.h: Include "same-inode.h".
66941         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
66942         * lib/cycle-check.c (SAME_INODE): Remove definition.
66943         * lib/root-dev-ino.h: Include "same-inode.h".
66944
66945         2006-03-11  Eric Blake  <ebb9@byu.net>
66946
66947         * lib/same.c (same_name): s/base_name/last_component/
66948         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
66949         * lib/filenamecat.c (file_name_concat): Likewise.
66950
66951         2006-03-11  Eric Blake  <ebb9@byu.net>,
66952                     Paul Eggert  <eggert@cs.ucla.edu>
66953
66954         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
66955         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
66956         drive prefix.
66957         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
66958         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
66959         (last_component): New method.
66960         * lib/dirname.c (dir_len): Determine when drive letters need a
66961         subsequent slash.  Preserve // when it is special.
66962         (dir_name): Don't append dot when drive letter is absolute.
66963         [TEST_DIRNAME]: Move into a full-blown gnulib test.
66964         * lib/basename.c (base_name): New semantics - malloc the result.
66965         Preserve // when it is special.  Preserve relative files that look
66966         like drive letters.
66967         (base_len): Preserve // when it is special.
66968         (last_component): New method, similar to old base_name semantics.
66969         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
66970         base_name.  Strip redundant slashes from ///.
66971
66972 2006-07-03  Jim Meyering  <jim@meyering.net>
66973
66974         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
66975         macro is used before the first cycle_check call.
66976
66977 2006-07-03  Eric Blake  <ebb9@byu.net>
66978
66979         * modules/dirname (Depends-on): Add xstrndup.
66980
66981 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
66982
66983         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
66984         test cases, so that config.log is a bit easier to follow.
66985
66986 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
66987
66988         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
66989         both are 64 bits, since this seems to be the tradition, and this
66990         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
66991         we ever run into a host that prefers long long to long in this
66992         case, we'll need another configure-time test.  Problem reported by
66993         Jim Meyering.
66994
66995 2006-07-02  Eric Blake  <ebb9@byu.net>
66996
66997         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
66998
66999 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
67000
67001         * modules/inttypes (Depends-on): No longer depends on stdint.
67002         * modules/stdint (Description): Say more about assumptions.
67003         Say that the fast types might differ.  Say macros are used.
67004         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
67005         (Makefile.am): Revise list of substituted symbols to match
67006         new stdint.m4.
67007         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
67008         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
67009         * tests/test-stdint.c (verify_same_types)
67010         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
67011         the code conforms to C99/C89.
67012         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
67013         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
67014
67015 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
67016
67017         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
67018         but fix a bug, by requiring at least 64 bits.
67019         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
67020         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
67021         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
67022         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
67023
67024         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
67025         changes.  Make 2.59 a prerequisite.  Check and substitute for
67026         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
67027         inttypes.h.  Do not use special include files; just use the
67028         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
67029         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
67030         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
67031         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
67032         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
67033         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
67034         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
67035         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
67036         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
67037         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
67038         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
67039         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
67040         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
67041         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
67042         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
67043         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
67044         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
67045         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
67046         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
67047         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
67048         WINT_MAX.  Check for C99 conformance more strictly, by detecting
67049         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
67050         not check for things that C99 does not require, e.g., int8_t.  If
67051         a test isn't needed unless <stdint.h> isn't working, and is
67052         unlikely to be needed for any other reason, then don't do it
67053         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
67054         size_t, since we assume C89 freestanding at least.  Do not check
67055         for sig_atomic_t, wchar_t, or wint_t, since the code now does
67056         the right thing even if the types are not defined.  Instead use:
67057         (gl_STDINT_TYPE_PROPERTIES): New macro.
67058         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
67059         testing whether <sys/types.h> clashes, as Autoconf does this for
67060         us now.  All uses removed.
67061         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
67062         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
67063         (gl_CHECK_TYPE_SAME):
67064         Remove; no longer needed.
67065         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
67066         exists, since we'll return 0 anyway in that case.
67067         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
67068
67069 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
67070
67071         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
67072         possible collision with system files.
67073         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
67074         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
67075         WCHAR_MIN and WCHAR_MAX in this case.
67076         (<stddef.h>): Do not include; no longer needed.
67077         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
67078         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
67079         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
67080         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
67081         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
67082         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
67083         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
67084         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
67085         !defined(__c99))]: Include in this case too, since it's harmless
67086         now.
67087         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
67088         dangerous to do so.
67089         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
67090         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
67091         (_STDINT_MIN, _STDINT_MAX): New macros.
67092         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
67093         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
67094         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
67095         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
67096         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
67097         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
67098         macros, not typedefs; this simplifies things quite a bit.
67099         Use long int for all types narrower than int64_t.
67100         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
67101         Define in terms of long long int or int64_t or long int,
67102         not int64_t or int32_t.  This saves some compile-time testing.
67103         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
67104         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
67105         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
67106         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
67107         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
67108         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
67109         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
67110         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
67111         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
67112         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
67113         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
67114         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
67115         undef any previous version and define our own version, for
67116         simplicity and consistency with the new macros for types.
67117         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
67118         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
67119         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
67120         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
67121         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
67122         @WINT_T_SUFFIX@ to keep things simple here.
67123         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
67124         Simplify by assuming typical 8/16/32/64 host, since we're
67125         already doing that elsewhere anyway.
67126         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
67127         and assume long long int is 64 bits if available.  This
67128         speeds up 'configure'.
67129
67130 2006-07-01  Eric Blake  <ebb9@byu.net>
67131
67132         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
67133         Reported by Andreas Buening.
67134
67135 2006-07-01  Eric Blake  <ebb9@byu.net>
67136
67137         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
67138
67139 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
67140
67141         * lib/getaddrinfo.c: fixed typo
67142
67143 2006-06-29  Jim Meyering  <jim@meyering.net>
67144
67145         * modules/strftime (Maintainer): Add my name, since with the
67146         FPRINTFTIME changes strftime.c has forked from glibc.
67147
67148 2006-06-29  Eric Blake  <ebb9@byu.net>
67149
67150         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
67151
67152 2006-06-29  Eric Blake  <ebb9@byu.net>
67153
67154         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
67155
67156 2006-06-29  Eric Blake  <ebb9@byu.net>
67157
67158         * lib/stat_.h: New file.
67159
67160 2006-06-29  Eric Blake  <ebb9@byu.net>
67161
67162         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
67163         unused static function.
67164
67165 2006-06-29  Eric Blake  <ebb9@byu.net>
67166
67167         * doc/functions.texi (Function Portability): Document missing lstat
67168         on mingw.
67169
67170 2006-06-29  Eric Blake  <ebb9@byu.net>
67171
67172         * MODULES.html.sh: Add sys_stat.
67173         * modules/sys_stat: New module.
67174         * modules/mkstemp (Depends-on): Add sys_stat.
67175
67176 2006-06-29  Derek R. Price  <derek@ximbiot.com>
67177
67178         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
67179
67180 2006-06-29  Derek R. Price  <derek@ximbiot.com>
67181
67182         * m4/c-bs-a.m4: Removed.
67183
67184 2006-06-29  Derek R. Price  <derek@ximbiot.com>
67185
67186         * lib/strftime.c: Assume strftime() exists.
67187
67188 2006-06-29  Derek Price  <derek@ximbiot.com>
67189
67190         * modules/c-bs-a: Removed - \a is C89.
67191         * MODULES.html.sh: Remove c-bs-a.
67192
67193 2006-06-29  Bruno Haible  <bruno@clisp.org>
67194
67195         * modules/wcwidth (License): Change to LGPL.
67196
67197 2006-06-28  Simon Josefsson  <jas@extundo.com>
67198
67199         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
67200         on _WIN32.
67201
67202         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
67203         getnameinfo.
67204
67205 2006-06-28  Simon Josefsson  <jas@extundo.com>
67206
67207         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
67208
67209 2006-06-28  Simon Josefsson  <jas@extundo.com>
67210
67211         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
67212         functions there.  It will succeed on Windows XP, but on Windows
67213         2000 and (presumably) earlier, it will fail, and use the internal
67214         re-implementation.
67215         (use_win32_p): New function.
67216         (getaddrinfo): Use strtoul on servname, to support numeric ports.
67217         Support AI_NUMERICSERV to disable getservbyname.
67218         (getnameinfo): New function, only supports
67219         NI_NUMERICHOST|NI_NUMERICSERV for now.
67220
67221         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
67222         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
67223         getnameinfo.
67224
67225 2006-06-28  Eric Blake  <ebb9@byu.net>
67226
67227         * modules/wcwidth: New file.
67228         * modules/mbchar (Depends-on): Add wcwidth.
67229         * modules/mbswidth (Depends-on): Add wcwidth.
67230         * MODULES.html.sh: Add wcwidth.
67231
67232 2006-06-28  Eric Blake  <ebb9@byu.net>
67233
67234         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
67235         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
67236
67237 2006-06-28  Eric Blake  <ebb9@byu.net>
67238
67239         * lib/xvasprintf.h: Fix comments.
67240
67241 2006-06-28  Eric Blake  <ebb9@byu.net>
67242
67243         * lib/mbchar.h (wcwidth): Include wcwidth.h.
67244         * lib/mbswidth.c (wcwidth): Move from here...
67245         * lib/wcwidth.h: ...to this new file.
67246
67247 2006-06-28  Derek R. Price  <derek@ximbiot.com>
67248
67249         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
67250
67251         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
67252         it's obsolete.
67253         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
67254
67255 2006-06-28  Derek R. Price  <derek@ximbiot.com>
67256
67257         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
67258         Autoconf 2.60 says this stuff was obsolete.
67259
67260 2006-06-28  Bruno Haible  <bruno@clisp.org>
67261
67262         * modules/wcwidth (Files): Add m4/wchar_t.m4.
67263
67264 2006-06-28  Bruno Haible  <bruno@clisp.org>
67265
67266         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
67267         gt_TYPE_WCHAR_T.
67268
67269 2006-06-28  Bruno Haible  <bruno@clisp.org>
67270
67271         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
67272         declaration for wcwidth.
67273         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
67274
67275 2006-06-28  Bruno Haible  <bruno@clisp.org>
67276
67277         * lib/mkdtemp.c [MINGW]: Include <io.h>.
67278         (mkdir): Define using _mkdir.
67279
67280 2006-06-28  Bruno Haible  <bruno@clisp.org>
67281
67282         * lib/getaddrinfo.h: Fix POSIX URL.
67283         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
67284         _WIN32.
67285         (use_win32_p): Make static.
67286         (getaddrinfo): Reject service name if it is empty or does not consist
67287         solely of decimal digits, or if its value is > 65535.
67288         (getnameinfo): Remove useless casts.
67289
67290 2006-06-27  Simon Josefsson  <jas@extundo.com>
67291
67292         * modules/sys_select: New file, suggested by Bruno Haible, Paul
67293         Eggert and Martin Lambers.
67294
67295 2006-06-27  Simon Josefsson  <jas@extundo.com>
67296
67297         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
67298         Eggert and Martin Lambers.
67299
67300 2006-06-27  Bruno Haible  <bruno@clisp.org>
67301
67302         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
67303         result to 0, not to empty.
67304         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
67305
67306 2006-06-27  Bruno Haible  <bruno@clisp.org>
67307
67308         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
67309
67310 2006-06-26  Simon Josefsson  <jas@extundo.com>
67311
67312         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
67313         present.
67314
67315 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
67316
67317         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
67318         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
67319         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
67320
67321 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
67322
67323         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
67324
67325 2006-06-26  Bruno Haible  <bruno@clisp.org>
67326
67327         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
67328
67329 2006-06-26  Bruno Haible  <bruno@clisp.org>
67330
67331         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
67332
67333 2006-06-26  Bruno Haible  <bruno@clisp.org>
67334
67335         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
67336         SGI C compiler in pre-C99 mode.
67337         Suggested by Mark D. Baushke and Larry Jones.
67338
67339 2006-06-26  Bruno Haible  <bruno@clisp.org>
67340
67341         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
67342         WCHAR_MAX.
67343         Reported by Mark D. Baushke and Larry Jones.
67344
67345 2006-06-26  Bruno Haible  <bruno@clisp.org>
67346
67347         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
67348         in pre-C99 mode.
67349         Suggested by Mark D. Baushke and Larry Jones.
67350
67351 2006-06-23  Simon Josefsson  <jas@extundo.com>
67352             Bruno Haible  <bruno@clisp.org>
67353
67354         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
67355         Emit mostlyclean-local rule.
67356         (func_emit_tests_Makefile_am): Likewise.
67357         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
67358
67359 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
67360
67361         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
67362
67363 2006-06-23  Bruno Haible  <bruno@clisp.org>
67364
67365         * tests/test-stdint.c: Update to match ISO C 99 Technical
67366         Corrigendum 1.
67367
67368 2006-06-23  Bruno Haible  <bruno@clisp.org>
67369
67370         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
67371
67372 2006-06-23  Bruno Haible  <bruno@clisp.org>
67373
67374         * lib/stdint_.h: Treat IRIX like OpenBSD.
67375
67376 2006-06-23  Bruno Haible  <bruno@clisp.org>
67377
67378         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
67379         ISO C 99 Technical Corrigendum 1.
67380
67381 2006-06-22  Simon Josefsson  <jas@extundo.com>
67382
67383         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
67384         MinGW.
67385
67386 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
67387
67388         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
67389         needed.  Some compiler complained about some of them.  Problem reported
67390         by Larry Jones in
67391         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
67392
67393 2006-06-21  Simon Josefsson  <jas@extundo.com>
67394
67395         * tests/test-getaddrinfo.c: New file.
67396
67397         * modules/getaddrinfo-tests: New file.
67398
67399         * MODULES.html.sh: Add inet_pton.
67400
67401         * modules/inet_pton: New file.
67402
67403 2006-06-21  Simon Josefsson  <jas@extundo.com>
67404
67405         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
67406         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
67407         of using the (limited) gnulib implementation on Windows XP.
67408
67409         * m4/inet_pton.m4: New file.
67410
67411 2006-06-21  Simon Josefsson  <jas@extundo.com>
67412
67413         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
67414         variable.
67415
67416         * lib/socket_.h: Don't define WINVER.
67417
67418         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
67419         slightly modified to work in gnulib.
67420
67421 2006-06-21  Simon Josefsson  <jas@extundo.com>
67422
67423         * doc/gnulib.texi (Windows sockets): Add.
67424
67425 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
67426
67427         * lib/read-file.c (fread_file): Start with buffer allocation of
67428         0 bytes rather than 1 byte; this simplifies the code.
67429         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
67430         code to free buffer and save/restore errno.
67431         (internal_read_file): Remove unused local.
67432
67433 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
67434
67435         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
67436         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
67437         Problem reported by Denis Excoffier in
67438         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
67439
67440 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67441
67442         * modules/sys_socket, modules/socklen: Include sys/types since
67443         FreeBSD 4.x's sys/socket.h needs it.
67444
67445 2006-06-19  Simon Josefsson  <jas@extundo.com>
67446
67447         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
67448
67449 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
67450
67451         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
67452
67453 2006-06-19  Bruno Haible  <bruno@clisp.org>
67454
67455         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
67456         and FULL_PATH_INTTYPES_H in angle brackets.
67457         Reported by Mark D. Baushke <mdb@gnu.org>.
67458
67459 2006-06-17  Eric Blake  <ebb9@byu.net>
67460
67461         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
67462         errno.
67463
67464 2006-06-17  Bruno Haible  <bruno@clisp.org>
67465
67466         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
67467         <sys/inttypes.h>.
67468
67469 2006-06-17  Bruno Haible  <bruno@clisp.org>
67470
67471         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
67472         whether errno is declared. Assume <errno.h> declares errno.
67473
67474 2006-06-17  Bruno Haible  <bruno@clisp.org>
67475
67476         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
67477
67478 2006-06-17  Bruno Haible  <bruno@clisp.org>
67479
67480         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
67481         problem on Solaris 2.5.1.
67482
67483 2006-06-16  Eric Blake  <ebb9@byu.net>
67484
67485         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
67486         * lib/unicodeio.c [!defined errno]: Likewise.
67487         * lib/strtol.c [!defined errno]: Likewise.
67488         * lib/strtod.c [!defined errno]: Likewise.
67489
67490 2006-06-15  Eric Blake  <ebb9@byu.net>
67491
67492         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
67493
67494 2006-06-15  Eric Blake  <ebb9@byu.net>
67495
67496         * config/srclist.txt (ssize_t.m4): Lose sync.
67497
67498 2006-06-15  Bruno Haible  <bruno@clisp.org>
67499
67500         * modules/stdint (Files): Include m4/full-header-path.m4,
67501         m4/size_max.m4, m4/wchar_t.m4.
67502         (Makefile.am): Many more substitutions.
67503         * modules/stdint-tests: New file.
67504         * tests/test-stdint.c: New file.
67505
67506 2006-06-15  Bruno Haible  <bruno@clisp.org>
67507
67508         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
67509         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
67510         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
67511         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
67512         gl_CHECK_TYPE_SAME): New macros.
67513
67514 2006-06-15  Bruno Haible  <bruno@clisp.org>
67515
67516         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
67517
67518 2006-06-15  Bruno Haible  <bruno@clisp.org>
67519
67520         * lib/stdint_.h: Rewritten to be fully auto-configured.
67521         Fixes bug on HP-UX/IA64.
67522
67523 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
67524
67525         * lib/getdate.y (__attribute__): Don't define if already defined.
67526         Problem reported by Larry Jones.
67527         * lib/utimens.c (__attribute__): Likewise.
67528
67529 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
67530
67531         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
67532         reported by Andreas Schwab.
67533
67534 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67535             Bruno Haible  <bruno@clisp.org>
67536
67537         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
67538         check for the declaration of strnlen and a run test that exposes the
67539         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
67540         rpl_strndup.
67541
67542 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67543             Bruno Haible  <bruno@clisp.org>
67544
67545         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
67546
67547 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67548
67549         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
67550         compile test, for Tru64 4.0D.
67551
67552 2006-05-28  Karl Berry  <karl@gnu.org>
67553
67554         * config/srclist.txt (printf-args.c): lose sync.
67555
67556 2006-05-26  Martin Lambers  <marlam@marlam.de>
67557
67558         * lib/getpass.c: Updates the test for the native W32 API, and adds
67559         missing includes, thus fixing compilation warnings.
67560
67561 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
67562
67563         * lib/exclude.c (exclude_fnmatch): New function.
67564         (excluded_file_name): Call exclude_fnmatch.
67565         * lib/exclude.h (excluded_file_name): New prototype
67566
67567 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
67568
67569         * lib/tempname.c (small_open, large_open): New macros.
67570         (__open, __open64) [!_LIBC]: Remove.
67571         (__gen_tempname): Use small_open and large_open instead of __open
67572         and __open64.  This fixes a portability bug on HP-UX 11.11i
67573         reported by Simon Wing-Tang in
67574         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
67575
67576 2006-05-24  Bruno Haible  <bruno@clisp.org>
67577
67578         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
67579         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
67580         Reported by Thorsten Maerz <torte@netztorte.de> via
67581         Aaron Stone <aaron@serendipity.cx>.
67582
67583 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
67584
67585         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
67586         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
67587         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
67588         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
67589         not really conditional on the cache.
67590         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
67591
67592 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
67593
67594         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
67595         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
67596         (my_usleep): Don't mishandle maximum value.
67597
67598 2006-05-19  Jim Meyering  <jim@meyering.net>
67599
67600         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
67601
67602 2006-05-17  Bruno Haible  <bruno@clisp.org>
67603
67604         Cygwin portability.
67605         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
67606
67607 2006-05-17  Bruno Haible  <bruno@clisp.org>
67608
67609         * lib/stdint_.h: Fix recognition of Cygwin.
67610
67611 2006-05-15  Bruno Haible  <bruno@clisp.org>
67612
67613         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
67614         on libtool patch by Ralf Wildenhues.
67615
67616 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
67617
67618         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
67619         test for C99 conformance; (bool) 0.5 is an integer constant
67620         expression, but (bool) -0.5 is not.  Problem reported by Fedor
67621         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
67622
67623 2006-05-11  Simon Josefsson  <jas@extundo.com>
67624
67625         * m4/xvasprintf.m4: Fix obvious typo.
67626
67627 2006-05-11  Jim Meyering  <jim@meyering.net>
67628
67629         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
67630         James Lemley.
67631
67632 2006-05-10  Simon Josefsson  <jas@extundo.com>
67633
67634         * lib/md4.c: Typo fix, update copyright years.
67635         (K1, K2): Don't use L because it turn computations into 64-bit on
67636         64-bit platforms.
67637
67638 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
67639
67640         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
67641         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
67642         unwanted sign propagation, e.g., on hosts with 64-bit int.
67643         There still are some problems with reeelly weird theoretical hosts
67644         (e.g., 33-bit int) but it's not worth worrying about now.
67645         * lib/sha1.c (rol): Likewise.
67646         (K1, K2, K3, K4): Remove unnecessary L suffix.
67647
67648 2006-05-10  Bruno Haible  <bruno@clisp.org>
67649
67650         * lib/des.c: Cast to avoid warnings.
67651
67652 2006-05-09  Bruno Haible  <bruno@clisp.org>
67653
67654         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
67655         (Depends-on): Depend also on xsize, stdarg.
67656         (configure.ac): Add gl_XVASPRINTF.
67657
67658 2006-05-09  Bruno Haible  <bruno@clisp.org>
67659
67660         * m4/xvasprintf.m4: New file.
67661
67662 2006-05-09  Bruno Haible  <bruno@clisp.org>
67663
67664         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
67665         (EOVERFLOW): Define fallback value.
67666         (xstrcat): New function.
67667         (xvasprintf): Recognize the special case of a string concatenation.
67668
67669 2006-05-08  Eric Blake  <ebb9@byu.net>
67670
67671         * gnulib-tool (func_version): Base copyright year on CVS date.
67672         (func_emit_copyright_notice): New function.
67673         (func_emit_lib_Makefile_am): Use it.
67674         (func_emit_tests_Makefile_am): Likewise.
67675         (func_import): Likewise.
67676
67677 2006-05-08  Bruno Haible  <bruno@clisp.org>
67678
67679         * modules/stdarg: New file.
67680         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
67681
67682 2006-05-08  Bruno Haible  <bruno@clisp.org>
67683
67684         * m4/stdarg.m4: New file, from GNU gettext.
67685
67686 2006-05-08  Bruno Haible  <bruno@clisp.org>
67687
67688         * config/srclist.txt (build-aux/config.rpath): different from latest
67689         release.
67690
67691 2006-05-08  Bruno Haible  <bruno@clisp.org>
67692
67693         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
67694
67695 2006-05-05  Jim Meyering  <jim@meyering.net>
67696
67697         * m4/warning.m4: New file, derived from bison's file by the same name.
67698
67699 2006-05-03  Bruno Haible  <bruno@clisp.org>
67700
67701         * lib/stdint_.h: Shorter URL.
67702         * lib/inttypes.h: Likewise.
67703
67704 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
67705
67706         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
67707
67708 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
67709
67710         * lib/verify.h: Document the internals better.  Most of this change
67711         was written by Bruno Haible.
67712
67713 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
67714
67715         * doc/verify.texi: New file, partly based on a proposal by
67716         Bruno Haible.
67717
67718 2006-05-02  Bruno Haible  <bruno@clisp.org>
67719
67720         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
67721         test from here...
67722         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
67723
67724 2006-04-29  Bruno Haible  <bruno@clisp.org>
67725
67726         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
67727         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
67728
67729 2006-04-29  Bruno Haible  <bruno@clisp.org>
67730
67731         * gnulib-tool: Make --update option actually work.
67732
67733 2006-04-29  Bruno Haible  <bruno@clisp.org>
67734
67735         * doc/gcd.texi: New file.
67736         * doc/gnulib.texi: Include it.
67737
67738 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
67739
67740         * lib/getdate.y (get_date): When adding relative date, start with the
67741         initial time, not with the result of the first mktime call.
67742
67743 2006-04-25  Bruno Haible  <bruno@clisp.org>
67744
67745         * gnulib-tool (func_import): Output the include directives in three
67746         blocks, sorted separately.
67747         Reported by Ben Pfaff <blp@cs.stanford.edu>.
67748
67749 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
67750
67751         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
67752         to define main with arguments, for C++.  Reported by Eric Blake.
67753         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
67754         Prefer 'int main ()' to 'int main (void)', for C++.
67755         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
67756         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
67757         for 'main', for C99 and C++.
67758
67759 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
67760
67761         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
67762         Don't assume that exit status -1 is valid.
67763         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
67764         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
67765         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
67766         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
67767         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
67768         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
67769         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
67770         functions can be used without declaring them, or that you can
67771         exit with status -1.
67772         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
67773
67774 2006-04-24  Karl Berry  <karl@gnu.org>
67775
67776         * config/srclist.txt (longdouble.m4): sync lost.
67777
67778 2006-04-24  Eric Blake  <ebb9@byu.net>
67779
67780         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
67781
67782 2006-04-24  Bruno Haible  <bruno@clisp.org>
67783
67784         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
67785         poll() implementation in AIX.
67786         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
67787
67788 2006-04-24  Bruno Haible  <bruno@clisp.org>
67789
67790         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
67791         assigned exactly once.
67792
67793 2006-04-23  Claudio Fontana  <claudio@gnu.org>
67794             Bruno Haible  <bruno@clisp.org>
67795
67796         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
67797         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
67798         for AM_CPPFLAGS.
67799
67800 2006-04-23  Bruno Haible  <bruno@clisp.org>
67801
67802         * modules/copy-file: Depend on unistd.
67803         * modules/execute: Likewise.
67804         * modules/fatal-signal: Likewise.
67805         * modules/findprog: Likewise.
67806         * modules/mkdtemp : Likewise.
67807         * modules/pipe: Likewise.
67808         * modules/wait-process: Likewise.
67809
67810 2006-04-23  Bruno Haible  <bruno@clisp.org>
67811
67812         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
67813         condition was already detected.
67814         Reported by Ben Pfaff <blp@cs.stanford.edu>.
67815
67816 2006-04-23  Bruno Haible  <bruno@clisp.org>
67817
67818         * lib/copy-file.c: Include <unistd.h> unconditionally.
67819         * lib/execute.c: Likewise.
67820         * lib/fatal-signal.c: Likewise.
67821         * lib/findprog.c: Likewise.
67822         * lib/mkdtemp.c: Likewise.
67823         * lib/pipe.h: Likewise.
67824         * lib/pipe.c: Likewise.
67825         * lib/wait-process.h: Likewise.
67826
67827 2006-04-23  Bruno Haible  <bruno@clisp.org>
67828
67829         * gnulib-tool (func_usage): Fix --import description. Document
67830         --update.
67831         (func_import): Create temporary file in a temporary directory, if
67832         --dry-run is specified. Silence errors from 'grep' when there are no
67833         m4 files in $m4dir.
67834         (func_create_testdir): Silence errors from 'grep' when there are no
67835         m4 files in $m4dir.
67836         Reported by Karl Berry <karl@freefriends.org>.
67837
67838 2006-04-20  Bruno Haible  <bruno@clisp.org>
67839
67840         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
67841         one argument, so that the code will be portable to Autoconf 2.60.
67842         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
67843         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
67844         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
67845
67846 2006-04-19  Derek Price  <derek@ximbiot.com>
67847             Eric Blake  <ebb9@byu.net>
67848
67849         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
67850         rather than "/full/path.h".  Update comment to match.  Shorten &
67851         generalize m4_translit call via AS_TR_CPP.
67852
67853 2006-04-19  Derek Price  <derek@ximbiot.com>
67854             Eric Blake  <ebb9@byu.net>
67855
67856         * lib/inttypes.h: Correct grammar in comment.
67857
67858 2006-04-18  Derek Price  <derek@ximbiot.com>
67859             Paul Eggert  <eggert@cs.ucla.edu>
67860
67861         * modules/inttypes: New file.
67862         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
67863
67864 2006-04-18  Derek Price  <derek@ximbiot.com>
67865             Paul Eggert  <eggert@cs.ucla.edu>
67866
67867         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
67868         New files.
67869
67870 2006-04-18  Derek Price  <derek@ximbiot.com>
67871             Paul Eggert  <eggert@cs.ucla.edu>
67872
67873         * lib/inttypes.h: New file.
67874         * lib/strtoimax.c: Assume <inttypes.h>.
67875
67876 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
67877
67878         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
67879         isn't mounted.  Problem reported by Kir Kolyshkin.
67880
67881 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
67882
67883         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
67884         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
67885         Derek R. Price.
67886         * lib/regex.h (RE_DUP_MAX): Update comment to match current
67887         implementation.
67888
67889 2006-04-12  Eric Blake  <ebb9@byu.net>
67890
67891         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
67892         is now done automatically by the corresponding Autoconf macro.
67893
67894 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
67895
67896         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
67897         time_r.h.
67898
67899 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
67900
67901         Merge regex changes from libc, removing some of our
67902         POSIX-conformance changes that were rejected and redoing them in a
67903         less-intrusive way.
67904
67905         * lib/regcomp.c (re_compile_internal, init_dfa):
67906         Length arg is now size_t, not Idx.  All uses changed.
67907         (peek_token): Forward decl now says internal_function.
67908         (__re_error_msgid, __re_error_msgid_idx):
67909         Now static rather than extern with attribute_hidden.
67910         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
67911         For some reason libc prefers K&R style defns for external functions.
67912         (regerror) [!defined _LIBC]: Likewise.
67913         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
67914         (seek_collating_symbol_entry, lookup_collation_sequence_value):
67915         (build_range_exp, build_collating_symbol):
67916         Use K&R-style defn.
67917         (re_compile_fastmap): Use '\0' to memset, not 0.
67918         (utf8_sb_map): Make the calculations more obvious.
67919         (init_dfa, parse_bracket_exp, build_charclass_op):
67920         Call calloc and cast result, as glibc does.
67921         (init_word_char, fetch_token, peek_token, peek_token_bracket):
67922         (build_range_exp, build_collating_symbol):
67923         Now internal functions.
67924
67925         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
67926
67927         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
67928         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
67929         Don't depend on VMS; depend on __VMS instead, for POSIX
67930         namespace cleanness.
67931         (regoff_t): Define to ssize_t, not long int.
67932
67933         Remove the REG_ macros named below.  Instead, make the old names
67934         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
67935         __USE_GNU_REGEX.
67936         (REG_BACKSLASH_ESCAPE_IN_LISTS):
67937         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
67938         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
67939         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
67940         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
67941         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
67942         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
67943         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
67944         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
67945         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
67946         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
67947         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
67948         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
67949         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
67950         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
67951         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
67952         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
67953         (REG_NREGS):
67954         Remove.  All uses replaced by the old RE_* names.
67955         (RE_BACKSLASH_ESCAPE_IN_LISTS):
67956         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
67957         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
67958         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
67959         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
67960         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
67961         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
67962         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
67963         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
67964         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
67965         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
67966         Don't bother having these macros be independent of each others'
67967         values, since they no longer exist in the POSIX name space.
67968
67969         Rename the following member names back to their old names,
67970         unless !__USE_GNU_REGEX.  All uses changed back.
67971         (buffer): Renamed from re_buffer.
67972         (allocated): Renamed from re_allocated.
67973         (used): Renamed from re_used.
67974         (syntax): Renamed from re_syntax.
67975         (fastmap): Renamed from re_fastmap.
67976         (translate): Renamed from re_translate.
67977         (can_be_null): Renamed from re_can_be_null.
67978         (regs_allocated): Renamed from re_regs_allocated.
67979         (fastmap_accurate): Renamed from re_fastmap_accurate.
67980         (no_sub): Renamed from re_no_sub.
67981         (not_bol): Renamed from re_not_bol.
67982         (not_eol): Renamed from re_not_eol.
67983         (newline_anchor): Renamed from re_newline_anchor.
67984         (num_regs): Renamed from rm_num_regs.
67985         (start): Renamed from rm_start.
67986         (end): Renamed from rm_end.
67987
67988         (free_state): Move up a bit.
67989
67990         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
67991         #define to be empty.
67992         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
67993         when that is what is intended.
67994         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
67995         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
67996         (MAX): New macro.
67997         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
67998         All uses changed back to re_malloc, etc.  It's now the caller's
67999         responsibility to check for overflow; all callers changed.
68000         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
68001         (re_x2nrealloc): Remove.
68002         (free_state): Remove decl.
68003
68004         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
68005         (re_set_registers, re_exec):
68006         Use K&R-style defn.
68007
68008         2006-01-31  Roland McGrath  <roland@redhat.com>
68009
68010         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
68011         Reported by Mike Frysinger <vapier@gentoo.org>.
68012
68013         2006-01-15  Andreas Jaeger  <aj@suse.de>
68014
68015         [BZ #1950]
68016         * lib/regex_internal.c (re_string_reconstruct): Adjust for
68017         build_wcs_upper_buffer change.
68018         (build_wcs_upper_buffer): Change return type.
68019
68020         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
68021
68022         * lib/regex_internal.h: Include <stdint.h> if available.
68023
68024         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
68025
68026         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
68027
68028         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
68029
68030         * lib/regcomp.c: Adjust for changed secondary hash function.
68031
68032         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
68033
68034         * lib/regex.h: Pretty printing.
68035         Clean up namespace a bit.
68036
68037         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
68038
68039         * lib/regexec.c (update_cur_sifted_state, check_arrival,
68040         check_arrival_add_next_nodes): Avoid using uninitialized variable.
68041
68042         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
68043                     Ulrich Drepper  <drepper@redhat.com>
68044
68045         [BZ #1302]
68046         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
68047         changed.
68048         (bitset_word_t): Renamed from bitset_word.  All uses changed.
68049
68050         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
68051
68052         [BZ #281]
68053         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
68054         * lib/regcomp.c: Remove unnecessary uses of
68055         unsigned RE_TRANSLATE_TYPE.
68056         * lib/regex_internal.h: Likewise.
68057         * lib/regex_internal.c: Likewise.
68058         * lib/regexec.c: Likewise.
68059         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
68060
68061         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
68062
68063         * lib/regexec.c (find_recover_state): Remove unnecessary
68064         initialization.
68065         (transit_state_bkref): Make DFA a const pointer.
68066         (get_subexp): Likewise.
68067         (check_arrival): Likewise.
68068         (update_cur_sifted_state): Likewise.
68069         (re_search_internal): Likewise.
68070         (prune_impossible_nodes): Likewise.
68071         (acquire_init_state_context): Likewise.
68072         (proceed_next_node): Likewise.
68073         (set_regs): Likewise.
68074         (free_fail_stack_return): Likewise.
68075         (check_arrival_expand_ecl): Mark DFA parameter as const.
68076         (check_arrival_expand_ecl_sub): Likewise.
68077         (check_subexp_limits): Likewise.
68078         (sub_epsilon_src_nodes):  Likewise.
68079         (add_epsilon_src_nodes):  Likewise.
68080         (merge_state_array): Likewise.
68081         (update_regs): Likewise.
68082         (build_trtable): Likewise.
68083         (sift_states_backward): Mark MCTX parameter as const.
68084         (build_sifted_states): Likewise.
68085         (update_cur_sifted_state): Likewise.
68086         (sift_states_mkref): Likewise.
68087         (check_arrival_expand_ecl): Mark eclosure as const.
68088         (check_dst_limits_calc_pos_1): Likewise.
68089         * lib/regex_internal.h (re_match_context_t): Make dfa a const
68090         pointer.
68091
68092         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
68093
68094         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
68095         (transit_state_sb): Likewise.
68096         (transit_state_mb): Likewise.
68097         (sift_states_iter_mb): Likewise.
68098         (check_arrival_add_next_nodes): Likewise.
68099         (check_node_accept_bytes): Change first parameter to pointer-to-const.
68100         [_LIBC] (re_search_2_stub): Use mempcpy.
68101
68102         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
68103         mbrtowc for very simple UTF-8 case.
68104
68105         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
68106         a pointer-to-const.
68107         (re_acquire_state_context): Likewise.
68108         * lib/regex_internal.h: Adjust prototypes.
68109
68110         * lib/regex.c: Prevent using C++ compilers.
68111
68112         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
68113         (re_acquire_state_context): Likewise.
68114
68115 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
68116
68117         * modules/regex (Depends-on): Add ssize_t.
68118
68119 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
68120
68121         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
68122         translation table.
68123
68124 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
68125
68126         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
68127
68128 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
68129             Bruno Haible  <bruno@clisp.org>
68130
68131         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
68132         <sys/types.h> and <inttypes.h>.
68133
68134 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68135
68136         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
68137         `__error_t_defined', so argp.h will not typedef the former.
68138
68139 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
68140
68141         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
68142         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
68143         glibc names.  Even if glibc is changed to conform to POSIX, the
68144         traditional names will be available anyway, since regex depends on
68145         the extensions module.  Also, fix a longstanding typo in the
68146         implementation of Spencer ERE test #75 from grep 2.3.  Problems
68147         reported by Emanuele Giaquinta.  Also, change sense of cached
68148         variable, so that the message makes sense.
68149
68150 2006-03-24  Simon Josefsson  <jas@extundo.com>
68151
68152         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
68153         including some doc fixes.
68154         (base64_encode_alloc): Fix +1 bug on allocation failures.
68155
68156 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68157
68158         * lib/base64.c (base64_encode): Do not read past end of array with
68159         unsanitized input on systems with CHAR_BIT > 8.
68160
68161 2006-03-24  Eric Blake  <ebb9@byu.net>
68162
68163         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
68164
68165 2006-03-22  Karl Berry  <karl@gnu.org>
68166
68167         * config/srclist.txt (*setenv.[ch]): get from coreutils.
68168         * config/srclistvars.sh (COREUTILS): new var.
68169
68170 2006-03-17  Jim Meyering  <jim@meyering.net>
68171
68172         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
68173         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
68174
68175 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
68176
68177         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
68178         no longer needs it.  Instead, check that regoff_t is as least
68179         as wide as ptrdiff_t.
68180
68181         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
68182         so that our regex.h stays compatible with the installed regex.
68183         This is helpful for installers who configure --without-included-regex.
68184         Problem reported by Emanuele Giaquinta.
68185
68186 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
68187
68188         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
68189         Typedef to long int, not to off_, as POSIX will likely change
68190         in that direction.
68191
68192 2006-03-15  Eric Blake  <ebb9@byu.net>
68193
68194         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
68195
68196 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
68197
68198         * lib/argp-help.c (validate_uparams): Fix typo
68199         * lib/argp-parse.c (argp_default_options): Consistently begin help
68200         messages with a lowercase letter.
68201
68202 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
68203
68204         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
68205         overrun buffers and shouldn't be used (much as gets shouldn't be
68206         used).
68207         * lib/time_r.c (asctime_r, ctime_r): Likewise.
68208
68209 2006-03-08  Simon Josefsson  <jas@extundo.com>
68210
68211         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
68212         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68213
68214 2006-03-08  Simon Josefsson  <jas@extundo.com>
68215
68216         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
68217         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68218
68219 2006-03-08  Simon Josefsson  <jas@extundo.com>
68220
68221         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
68222         signal that configure disabled the device.
68223
68224 2006-03-08  Simon Josefsson  <jas@extundo.com>
68225
68226         * build-aux/maint.mk: Fix refresh-po, to handle no translated
68227         languages.
68228
68229 2006-03-07  Simon Josefsson  <jas@extundo.com>
68230
68231         * modules/getopt (Depends-on): Add unistd.
68232
68233         * modules/unistd: New file.
68234
68235 2006-03-07  Simon Josefsson  <jas@extundo.com>
68236
68237         * modules/gc-random: New file.
68238
68239 2006-03-07  Simon Josefsson  <jas@extundo.com>
68240
68241         * m4/unistd_h.m4: New file.
68242
68243 2006-03-07  Simon Josefsson  <jas@extundo.com>
68244
68245         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
68246         test to be side-effect free by storing the result in the cache
68247         variable gl_cv_lib_readline, and moving the assignment of
68248         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
68249         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68250
68251 2006-03-07  Simon Josefsson  <jas@extundo.com>
68252
68253         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
68254         error on missing devices (the functions will return an error).
68255
68256         * m4/gc.m4: Move random stuff to gc-random.m4
68257
68258 2006-03-07  Simon Josefsson  <jas@extundo.com>
68259
68260         * lib/unistd_.h: New file.
68261
68262 2006-03-07  Simon Josefsson  <jas@extundo.com>
68263
68264         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
68265
68266 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
68267
68268         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
68269         Problem reported by Juan Manuel Guerrero.
68270
68271 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
68272
68273         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
68274         the unistd module.
68275         * lib/getlogin_r.c: Likewise.
68276         * lib/getlogin_r.h: Likewise.
68277         * lib/glob.c: Likewise.
68278         * lib/pagealign_alloc.c: Likewise.
68279         * lib/unistd_.h: Remove; no longer needed.
68280
68281 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
68282
68283         * MODULES.html.sh (Support for systems lacking POSIX:2001):
68284         Add unistd.
68285         * modules/c-stack (Depends-on): Add unistd.
68286         * modules/getlogin_r: Likewise.
68287         * modules/glob: Likewise.
68288         * modules/pagealign_alloc: Likewise.
68289         * modules/unistd (Files): Remove lib/unistd_.h.
68290         (EXTRA_DIST): Remove.
68291         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
68292         need unistd_.h.
68293         (MOSTLYCLEANFILES): Remove unistd.h-t.
68294
68295 2006-03-03  Simon Josefsson  <jas@extundo.com>
68296
68297         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
68298
68299 2006-03-03  Simon Josefsson  <jas@extundo.com>
68300
68301         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
68302         libidn and bison.
68303
68304 2006-03-03  Simon Josefsson  <jas@extundo.com>
68305
68306         * build-aux/maint.mk: Add indent target.
68307
68308 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
68309
68310         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
68311         our replacement poll.h in any case, to avoid a differing
68312         declaration from a system header.  Seen on AIX.
68313
68314 2006-03-01  Simon Josefsson  <jas@extundo.com>
68315
68316         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
68317         <kasal@ucw.cz>.
68318
68319 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
68320
68321         * modules/gettime (Depends-on): Add extensions module.
68322         * modules/nanosleep (Depends-on): Likewise.
68323         * modules/settime (Depends-on): Likewise.
68324
68325 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
68326
68327         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
68328         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
68329         pedantically.
68330         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
68331         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
68332
68333         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
68334         not "==".  Reported by Ralf Wildenhues.
68335
68336 2006-03-01  Karl Berry  <karl@gnu.org>
68337
68338         * doc/Copyright/request-*: new files, synced from gnuorg.
68339
68340 2006-03-01  Karl Berry  <karl@gnu.org>
68341
68342         * config/srclist.txt (Copyright/*): new entries.
68343
68344 2006-02-28  Simon Josefsson  <jas@extundo.com>
68345
68346         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
68347
68348 2006-02-27  Simon Josefsson  <jas@extundo.com>
68349
68350         * lib/base64.h: Indent #define's.  From Jim Meyering
68351         <jim@meyering.net>.
68352
68353 2006-02-27  Jim Meyering  <jim@meyering.net>
68354
68355         Revert the change of 2006-02-24, so these files can continue
68356         to be sync'd from gettext.
68357         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
68358         of `config.h'.
68359
68360 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
68361
68362         * modules/intprops: New file.
68363         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
68364         Add intprops.
68365         * modules/getloadavg (Files): Remove lib/intprops.h.
68366         (Depends-on): Add intprops.
68367         * modules/human: Likewise.
68368         * modules/inttostr: Likewise.
68369         * modules/openat: Likewise.
68370         * modules/sig2str: Likewise.
68371         * modules/userspec: Likewise.
68372         * modules/utimecmp: Likewise.
68373         * modules/xnanosleep: Likewise.
68374         * modules/xstrtol: Likewise.
68375
68376 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
68377
68378         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
68379         * modules/lock-tests (TESTS): Use $(EXEEXT).
68380         * modules/tls-tests: Likewise.
68381         * modules/argp-tests: Likewise.
68382         (check_PROGRAMS): New var, replacing...
68383         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
68384
68385 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68386
68387         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
68388         `config.h'.
68389
68390 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
68391
68392         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
68393
68394 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68395
68396         Sync from coreutils.
68397         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
68398         gl_CHDIR_SAFER.
68399
68400 2006-02-22  Jim Meyering  <jim@meyering.net>
68401
68402         Sync from coreutils.
68403         * m4/chdir-safer.m4: New file.
68404
68405 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
68406
68407         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
68408         AT_FDCWD exceeds INT_MAX.
68409         * lib/openat.h (AT_FDCWD): Likewise.
68410
68411 2006-02-17  Eric Blake  <address@hidden>
68412
68413         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
68414
68415 2006-02-16  Simon Josefsson  <jas@extundo.com>
68416
68417         * modules/getaddrinfo (Depends-on): Add sys_socket.
68418
68419 2006-02-15  Simon Josefsson  <jas@extundo.com>
68420
68421         * build-aux/maint.mk: Add dsyntax-check rule.
68422
68423 2006-02-15  Eric Blake  <ebb9@byu.net>
68424
68425         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
68426         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
68427         'present but cannot compile' warnings on cygwin.
68428         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
68429         use ws2tcpip.h if sys/socket.h works.
68430         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
68431         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
68432
68433 2006-02-14  Simon Josefsson  <jas@extundo.com>
68434
68435         * modules/maintainer-makefile (Files): Rename.
68436
68437         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
68438         and (the local) Makefile.cfg to maint-cfg.mk.
68439
68440         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
68441         to the latter.
68442
68443         * modules/maintainer-makefile: New module.
68444
68445         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
68446         severaly stripped to make it possible to build it up from scratch
68447         with reliable tests.
68448
68449         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
68450         fixes to permit overriding the default actions when configure and
68451         makefile are not available.
68452
68453 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
68454
68455         Sync from coreutils.
68456         * modules/lstat (Depends-on): Don't depend on xalloc.
68457         (License): Change from GPL to LGPL, since this is now simply a
68458         replacement for a libc function.
68459
68460 2006-02-14  Jim Meyering  <jim@meyering.net>
68461
68462         Sync from coreutils.
68463
68464         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
68465         failure on deficient systems, and simplify gnulib lgpl dependencies.
68466         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
68467         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
68468
68469         * lib/xalloc-die.c: Remove unused definition of N_.
68470
68471 2006-02-14  Jim Meyering  <jim@meyering.net>
68472
68473         Sync from coreutils.
68474         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
68475         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
68476         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
68477         double-quote uses of that variable, to accommodate the rare case in
68478         which getmntent is available in none of the libraries checked.  This
68479         happens at least on FreeBSD 5.0.
68480
68481 2006-02-13  Simon Josefsson  <jas@extundo.com>
68482
68483         * gnulib-tool (Usage): Fix --import, from
68484         karl@freefriends.org (Karl Berry).
68485
68486 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
68487
68488         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
68489
68490 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
68491
68492         * lib/argp-namefrob.h: Restore changes accidentally lost during the
68493         "autoupdate" on 2005-12-12.
68494
68495 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
68496
68497         * modules/closeout (Depends-on): Remove atexit.
68498
68499 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
68500
68501         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
68502         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
68503
68504 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
68505
68506         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
68507         __EXTENSIONS__ if this causes compilation to fail.  Problem
68508         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
68509         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
68510
68511 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
68512
68513         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
68514         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
68515         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
68516         All uses changed.
68517
68518 2006-01-26  Simon Josefsson  <jas@extundo.com>
68519
68520         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
68521         prototype is visible on mingw32.
68522
68523         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
68524         for mingw32.
68525
68526         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
68527         mingw32).
68528
68529 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
68530
68531         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
68532         attempt to open for write; this always fails, at least on POSIX
68533         hosts.  This reinstates the 2006-01-09 change, which was
68534         inadvertently removed.
68535
68536 2006-01-26  Bruno Haible  <bruno@clisp.org>
68537
68538         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
68539         Reported by Paul Eggert.
68540
68541 2006-01-26  Bruno Haible  <bruno@clisp.org>
68542             Paul Eggert  <eggert@cs.ucla.edu>
68543
68544         * lib/stdbool_.h (_Bool)
68545         [(! (defined __cplusplus || defined __BEOS__)
68546           && !defined __GNUC__
68547           && !(defined __HP_cc || defined __xlc__
68548                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
68549                || defined __sgi))]:
68550         #define to signed char in these cases too; this simplifies
68551         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
68552         etc., separately) and makes it more conservative.
68553
68554 2006-01-25  Simon Josefsson  <jas@extundo.com>
68555
68556         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
68557         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
68558         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
68559
68560 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
68561
68562         * lib/argp-namefrob.h: Bugfix. Remove stray #
68563
68564 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
68565
68566         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
68567         so that we test the test.
68568         Check for yet another HP-UX cc bug involving *bool |= bool.
68569
68570 2006-01-25  Karl Berry  <karl@gnu.org>
68571
68572         * config/srclist.txt (vasnprintf.c): sync lost.
68573
68574 2006-01-25  Jim Meyering  <jim@meyering.net>
68575
68576         Sync from the stable (b5) branch of coreutils:
68577
68578         * lib/fts.c (fts_children): Don't let close() clobber errno from
68579         failed fchdir().
68580
68581         * lib/fts.c (fts_stat): When following a symlink-to-directory,
68582         don't necessarily interpret stat-fails+lstat-succeeds as indicating
68583         a dangling symlink.  That can also happen at least for ELOOP.
68584         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
68585         FYI, this bug predates the inclusion of fts.c in coreutils.
68586
68587         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
68588         in their own block, so pre-c99 compilers don't object.
68589
68590         Avoid the double-free (first in fts_read, second in fts_close) that
68591         would occur when an `active' directory is made inaccessible (e.g.,
68592         via chmod a-x) during a traversal.
68593         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
68594         before returning.  Reproduce this failure by
68595         mkdir -p a/b; cd a; chmod a-x . b
68596         Reported by Stavros Passas.
68597
68598 2006-01-25  Jim Meyering  <jim@meyering.net>
68599
68600         * lib/fileblocks.c: Remove more useless parentheses.
68601         * lib/readutmp.h: Likewise.
68602
68603 2006-01-25  Bruno Haible  <bruno@clisp.org>
68604
68605         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
68606         warnings.
68607         Reported by Paul Eggert.
68608
68609 2006-01-25  Bruno Haible  <bruno@clisp.org>
68610
68611         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
68612         rid of a trap command. For Solaris sh.
68613         Reported by Mark D. Baushke <mdb@gnu.org>.
68614
68615 2006-01-24  Simon Josefsson  <jas@extundo.com>
68616
68617         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
68618         Bruno.
68619
68620 2006-01-24  Karl Berry  <karl@gnu.org>
68621
68622         * config/srclist.txt (argp-namefrob.h): sync lost.
68623
68624 2006-01-24  Jim Meyering  <jim@meyering.net>
68625
68626         * modules/openat (Files): Add lib/intprops.h.
68627         From Mark D. Baushke.
68628
68629 2006-01-24  Jim Meyering  <jim@meyering.net>
68630
68631         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
68632         Reported by Mark D. Baushke.
68633
68634 2006-01-24  Jim Meyering  <jim@meyering.net>
68635
68636         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
68637
68638 2006-01-24  Bruno Haible  <bruno@clisp.org>
68639
68640         * modules/strnlen (Maintainer): Change from glibc to all.
68641
68642 2006-01-24  Bruno Haible  <bruno@clisp.org>
68643
68644         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
68645         Patch by Paul Eggert.
68646
68647 2006-01-24  Bruno Haible  <bruno@clisp.org>
68648
68649         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
68650         already has it.
68651         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
68652         2005-11-26.
68653
68654         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
68655         'signed char' to avoid problems with the built-in _Bool type.
68656         Reported by Paul Eggert on 2005-11-26.
68657
68658 2006-01-24  Bruno Haible  <bruno@clisp.org>
68659
68660         * gnulib-tool (func_import): Avoid constructing complicated sed
68661         expressions inside backquote.
68662         Report and solution by Mark D. Baushke <mdb@gnu.org>.
68663
68664 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
68665
68666         These changes imported from libc.
68667         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
68668         test and two separate function calls.
68669         * lib/strndup.c (__strndup): Add libc_hidden_def.
68670
68671 2006-01-23  Simon Josefsson  <jas@extundo.com>
68672
68673         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
68674         Remove the test_*_SOURCES variable: automake infers it by default.
68675         * modules/tls-tests: Likewise.
68676
68677 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
68678
68679         Work around porting bugs reported by Dieter in
68680         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
68681         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
68682         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
68683         Include "getopt.h" first, to check interface.
68684         (getenv): Declare only if defined HAVE_DECL_GETENV &&
68685         !HAVE_DECL_GETENV.
68686         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
68687         (__strndup): Revert to K&R-style function dfns, the glibc style.
68688         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
68689         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
68690         Include strnlen.h first, to get prototype properly.
68691         (strnlen): Renamed from __strnlen.
68692         Remove weak alias.
68693
68694 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
68695
68696         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
68697
68698 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
68699
68700         * config/srclist.txt: Adjust to reflect glibc reorganization.
68701         This affects only comments.
68702
68703 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
68704
68705          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
68706          Reported by Bruce Korb <bkorb@gnu.org>.
68707
68708 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
68709
68710         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
68711         to pacify gcc -Wswitch-default.
68712
68713 2006-01-22  Bruno Haible  <bruno@clisp.org>
68714
68715         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
68716         temporary buffer for sprintf, take into account the precision also
68717         for 'd', 'i', 'u', 'o', 'x', 'X'.
68718
68719 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
68720
68721         * modules/argp-tests: New module
68722         * tests/test-argp.c: New file
68723         * tests/test-argp-2.sh: New file
68724
68725 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
68726
68727         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
68728         (__argp_base_name): Removed
68729         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
68730         typo.
68731         (__argp_base_name): Provide macro definition or extern declaration
68732         depending on the configuration
68733
68734 2006-01-20  Simon Josefsson  <jas@extundo.com>
68735
68736         * modules/inet_ntop (Depends-on): Depend on sys_socket.
68737
68738 2006-01-20  Simon Josefsson  <jas@extundo.com>
68739
68740         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
68741
68742 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
68743
68744         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
68745         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
68746         Suggested by Bruno Haible.
68747
68748 2006-01-20  Karl Berry  <karl@gnu.org>
68749
68750         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
68751         until changes propagate, I guess.
68752
68753 2006-01-19  Simon Josefsson  <jas@extundo.com>
68754
68755         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
68756
68757 2006-01-19  Simon Josefsson  <jas@extundo.com>
68758
68759         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
68760
68761 2006-01-19  Simon Josefsson  <jas@extundo.com>
68762
68763         * gnulib-tool: Set check_PROGRAMS.
68764
68765         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
68766         modules/des-tests, modules/gc-arcfour-tests,
68767         modules/gc-arctwo-tests, modules/gc-des-tests,
68768         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
68769         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
68770         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
68771         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
68772         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
68773         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
68774         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
68775         test_*_SOURCES.
68776
68777 2006-01-18  Simon Josefsson  <jas@extundo.com>
68778
68779         * modules/socklen (Depends-on): Depend on sys_socket.
68780
68781 2006-01-18  Simon Josefsson  <jas@extundo.com>
68782
68783         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
68784         modules/des-tests, modules/gc-arcfour-tests,
68785         modules/gc-arctwo-tests, modules/gc-des-tests,
68786         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
68787         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
68788         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
68789         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
68790         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
68791         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
68792         $(EXEEXT) to automake TESTS variable, for mingw32.
68793
68794 2006-01-17  Simon Josefsson  <jas@extundo.com>
68795
68796         * modules/socklen (Include): Need sys/socket.h.
68797
68798 2006-01-17  Bruno Haible  <bruno@clisp.org>
68799
68800         * modules/ssize_t (Include): Add <sys/types.h>.
68801
68802 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
68803
68804         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
68805         it's not portable and it doesn't work with cross-compiles.
68806         Problem reported by Bruno Haible.  Fix missing-$ typo in
68807         'test "gl_cv_ignore_unused_libraries" ...' that prevented
68808         -zignore from being used with Sun's C compiler.
68809
68810 2006-01-12  Simon Josefsson  <jas@extundo.com>
68811
68812         * lib/base64.c: Fix warning, reported by Bruno Haible
68813         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
68814
68815 2006-01-12  Bruno Haible  <bruno@clisp.org>
68816
68817         * modules/ldd: New file.
68818         * build-aux/ldd.sh.in: New file.
68819         * MODULES.html.sh (Support for building libraries and executables): Add
68820         ldd.
68821
68822 2006-01-12  Bruno Haible  <bruno@clisp.org>
68823
68824         * m4/ldd.m4: New file.
68825
68826 2006-01-12  Bruno Haible  <bruno@clisp.org>
68827
68828         * gnulib-tool (func_import, func_create_testdir): Don't go into an
68829         endless loop while replacing $auxdir with build-aux.
68830
68831 2006-01-11  Simon Josefsson  <jas@extundo.com>
68832
68833         * lib/stdint_.h (SIZE_MAX): Add missing (.
68834
68835 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
68836
68837         Sync from coreutils.
68838         * lib/md5.c: Fix commentary typos.
68839         (alignof, UNALIGNED_P): No need for a GCC-specific version.
68840         * lib/md5.h (__attribute__): Remove; unused.
68841         * lib/sha1.c: Fix commentary to match md5 better.
68842         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
68843         so that we don't need to worry about alignment.  All uses changed.
68844         This merges the 2005-10-28 md5 change into sha1.
68845
68846 2006-01-11  Jim Meyering  <jim@meyering.net>
68847
68848         Sync from coreutils.
68849         * lib/md5.c (OP): Fix spacing.
68850
68851 2006-01-11  Bruno Haible  <bruno@clisp.org>
68852
68853         Ensure automatic ordering between gl_LOCK and gl_ARGP.
68854         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
68855         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
68856
68857 2006-01-11  Bruno Haible  <bruno@clisp.org>
68858
68859         Ensure automatic ordering between gl_LOCK and gl_ARGP.
68860         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
68861         the "early" section as well.
68862
68863 2006-01-11  Bruno Haible  <bruno@clisp.org>
68864
68865         Avoid "ar: no archive members specified" error on MacOS X.
68866         * gnulib-tool (func_modules_add_dummy): New function.
68867         (func_import, func_create_testdir): Invoke it.
68868
68869 2006-01-11  Bruno Haible  <bruno@clisp.org>
68870
68871         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
68872         with $auxdir in AC_CONFIG_FILES statements.
68873
68874 2006-01-11  Bruno Haible  <bruno@clisp.org>
68875
68876         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
68877         Initialize also noinst_HEADERS to empty.
68878
68879 2006-01-11  Bruno Haible  <bruno@clisp.org>
68880
68881         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
68882         variables.
68883         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
68884         autoreconf.
68885
68886 2006-01-11  Bruno Haible  <bruno@clisp.org>
68887
68888         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
68889         overridable by the user.
68890         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68891
68892 2006-01-10  Simon Josefsson  <jas@extundo.com>
68893
68894         * modules/sys_socket: New file.
68895
68896 2006-01-10  Simon Josefsson  <jas@extundo.com>
68897
68898         * m4/sys_socket_h.m4: New file.
68899
68900 2006-01-10  Simon Josefsson  <jas@extundo.com>
68901
68902         * lib/socket_.h: New file.
68903
68904 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
68905
68906         * modules/readutmp (Maintainer): Add myself.
68907
68908 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
68909
68910         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
68911         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
68912         People who are still concerned with buggy memcmp implementations
68913         can invoke gl_FUNC_MEMCMP themselves.
68914
68915 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
68916
68917         * lib/regex_internal.h (BITSET_WORD_BITS):
68918         Work around a bug in 64-bit PGC (before version 6.1-2), where the
68919         preprocessor mishandles large unsigned values as if they were signed.
68920         Problem reported by Claudio Fontana in
68921         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
68922
68923 2006-01-10  Jim Meyering  <jim@meyering.net>
68924
68925         Avoid the double-free (first in fts_read, second in fts_close) that
68926         would occur when an `active' directory is made inaccessible (e.g.,
68927         via chmod a-x) during a traversal.
68928         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
68929         before returning.  Reproduce this failure by
68930         mkdir -p a/b; cd a; chmod a-x . b
68931         Reported by Stavros Passas.
68932
68933         Sync from coreutils.
68934         * lib/sha1.c: Tweak grammar in a comment.
68935
68936 2006-01-10  Jim Meyering  <jim@meyering.net>
68937
68938         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
68939         Patch by Joerg Sonnenberger.
68940
68941 2006-01-10  Bruno Haible  <bruno@clisp.org>
68942
68943         * modules/readutmp: Depend on module free.
68944         * modules/strtok_r: Depend on module restrict.
68945
68946 2006-01-10  Bruno Haible  <bruno@clisp.org>
68947
68948         * modules/gettext (configure.ac): Add an invocation of
68949         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
68950
68951 2006-01-10  Bruno Haible  <bruno@clisp.org>
68952
68953         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
68954         Reported by Werner Lemberg <wl@gnu.org>.
68955
68956 2006-01-10  Bruno Haible  <bruno@clisp.org>
68957
68958         * lib/localcharset.c: Update from GNU gettext.
68959
68960 2006-01-10  Bruno Haible  <bruno@clisp.org>
68961
68962         * lib/argp.h (__const): Remove macro. Use const instead.
68963         * lib/argp-fmtstream.h (__const): Likewise.
68964         * lib/glob_.h (__const): Remove macro.
68965         * lib/glob-libc.h: Use const instead of __const.
68966
68967 2006-01-10  Bruno Haible  <bruno@clisp.org>
68968
68969         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
68970         variable.
68971         Needed to avoid an automake error regarding the 'gettext' module.
68972
68973 2006-01-09  Simon Josefsson  <jas@extundo.com>
68974
68975         * modules/inet_ntop (Depends-on): Add restrict.
68976
68977 2006-01-09  Simon Josefsson  <jas@extundo.com>
68978
68979         * modules/gc-rijndael-tests (License): Put under LGPL.
68980
68981         * modules/gc-des-tests (License): Likewise.
68982
68983         * modules/gc-arcfour-tests (License): Likewise.
68984
68985         * modules/gc-arctwo-tests (License): Likewise.
68986
68987         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
68988
68989         * modules/gc-hmac-sha1-tests (Files): Likewise.
68990
68991         * modules/gc-hmac-md5-tests (License): Likewise.
68992
68993         * modules/gc-sha1-tests (License): Likewise.
68994
68995         * modules/gc-md5-tests (License): Likewise.
68996
68997         * modules/gc-md4-tests (License): Likewise.
68998
68999         * modules/gc-md2-tests (License): Likewise.
69000
69001         * modules/gc-tests (License): Likewise.
69002
69003         * modules/des-tests (License): Likewise.
69004
69005         * modules/md4-tests (License): Likewise.
69006
69007         * modules/md2-tests (License): Likewise.
69008
69009 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
69010
69011         Sync from coreutils:
69012
69013         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
69014         * modules/lib-ignore: New file.
69015         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
69016         chdir-safer.m4, lchmod.m4.
69017         * modules/openat: Add mkdirat.c, openat-priv.h.
69018
69019 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
69020
69021         Sync from coreutils.
69022         * m4/lib-ignore.m4: New file.
69023         * m4/lchmod.m4: New file.
69024
69025 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
69026
69027         Sync from coreutils.
69028         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
69029         for write access: POSIX says that must fail.
69030         * lib/fts.c (diropen): Likewise.
69031         * lib/save-cwd.c (save_cwd): Likewise.
69032         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
69033         well, for minor improvements on hosts that lack O_DIRECTORY.
69034         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
69035         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
69036         Fall back on chown if open failed with EACCES.
69037
69038         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
69039         Report an error at compile-time if only a 1-second nominal clock
69040         resolution is found.
69041
69042         * lib/lchmod.h: New file.
69043         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
69044         (make_dir_parents): Use lchown rather than chown, and
69045         lchmod rather than chmod.
69046
69047         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
69048         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
69049         "proc" reported by n0dalus.
69050
69051         * lib/mountlist.c: Include <limits.h>.
69052         (dev_from_mount_options)
69053         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
69054         New function.  It no longer assumes "dev=" has the System V meaning
69055         on Linux (since it doesn't).  It also parses "dev=" more carefully.
69056         (read_file_system_list)
69057         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
69058         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
69059         dev= in that case.
69060
69061         * lib/posixtm.h (PDS_PRE_2000): New macro.
69062         * lib/posixtm.c (year): Arg is now syntax_bits rather than
69063         allow_century.  All usages changed.  Reject dates outside the range
69064         1969-1999 if PDS_PRE_2000 is used.
69065
69066 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
69067
69068         Sync from coreutils.
69069         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
69070         (Time of day items): Mention the possibility of leap seconds.
69071         Problem reported by Dr. David Alan Gilbert.
69072
69073 2006-01-09  Jim Meyering  <jim@meyering.net>
69074
69075         Sync from coreutils.
69076
69077         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
69078
69079         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
69080
69081         * lib/modechange.c (mode_compile): Reject an invalid mode string
69082         that starts with an octal digit.  From Andreas Gruenbacher.
69083
69084         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
69085         and dup to open_safer and dup_safer, respectively.
69086         (openat_permissive): Fix typo in comment.
69087
69088         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
69089         "gettext.h"; either no longer needed or are guaranteed by openat.h.
69090         (_): Remove; no longer needed.
69091         (openat): Renamed from rpl_openat; no need for rpl_openat
69092         since openat.h renames openat for us.
69093         Replace most of the body with a call to openat_permissive,
69094         to avoid duplicate code.
69095         Port to (probably hypothetical) environments were mode_t is
69096         wider than int.
69097         (openat_permissive): Require mode arg, so that we can check
69098         types better.  Put it just after flags.  Change cwd failure
69099         indicator from pointer-to-bool to pointer-to-errno-value.
69100         All callers changed.
69101         Invoke openat_save_fail and/or openat_restore_fail if
69102         cwd_errno is null, so that openat can call us.
69103         (openat_permissive, fdopendir, fstatat, unlinkat):
69104         Simplify errno handling to avoid some duplicate code,
69105         as it's OK to set errno on success.
69106         * lib/openat.h: Revamp code so that function macros depend on
69107         __OPENAT_PREFIX only, not also on AT_FDCWD.
69108         (openat_ro): Remove.  Caller changed to use openat_permissive.
69109         (openat_permissive): Now a macro, if not a function.
69110         (openat_restore_fail, openat_save_fail): Now always functions,
69111         since mkdirat needs them even if __OPENAT_PREFIX is defined.
69112
69113         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
69114         and openat.c.
69115         * lib/mkdirat.c: Include openat-priv.h.
69116         Remove definitions of macros defined therein.
69117         * lib/openat.c: Likewise.
69118
69119         * lib/mkdirat.c (mkdirat): New file and function.
69120         * lib/openat.h (mkdirat): Declare.
69121
69122         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
69123
69124         * lib/openat.h (openat_permissive): Declare.
69125         (openat_ro): Define.
69126
69127         * lib/openat.c (EXPECTED_ERRNO): New macro.
69128         (openat_permissive): New function -- used in remove.c rewrite.
69129         (all functions): Set errno just before returning, only if there
69130         was an actual failure.
69131         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
69132
69133         Emulate openat-family functions using Linux's procfs, if possible.
69134         Idea and some code based on Ulrich Drepper's glibc changes.
69135
69136         * lib/openat.c: (BUILD_PROC_NAME): New macro.
69137         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
69138         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
69139         before falling back on save_cwd and restore_cwd.
69140         (fdopendir, fstatat, unlinkat): Likewise.
69141
69142         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
69143         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
69144
69145         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
69146         as second argument to va_arg.  Otherwise, some versions of gcc
69147         warn that `if this code is reached, the program will abort'.
69148
69149 2006-01-09  Jim Meyering  <jim@meyering.net>
69150
69151         Sync from coreutils.
69152         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
69153         Require openat-priv.h.
69154
69155 2006-01-09  Bruno Haible  <bruno@clisp.org>
69156
69157         * modules/strnlen (Include): Use strnlen.h.
69158
69159 2006-01-09  Bruno Haible  <bruno@clisp.org>
69160
69161         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
69162
69163 2006-01-09  Bruno Haible  <bruno@clisp.org>
69164
69165         * lib/sysexit_.h (EX_OK): New macro.
69166         Suggested by Martin Lambers <marlam@marlam.de>.
69167
69168 2006-01-09  Bruno Haible  <bruno@clisp.org>
69169
69170         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
69171         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
69172
69173 2006-01-09  Bruno Haible  <bruno@clisp.org>
69174
69175         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
69176         numbers.
69177
69178 2006-01-09  Bruno Haible  <bruno@clisp.org>
69179
69180         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
69181         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
69182         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
69183         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
69184
69185 2006-01-09  Bruno Haible  <bruno@clisp.org>
69186
69187         * build-aux/javacomp.sh.in: New file, moved from lib/.
69188         * modules/javacomp-script (Files): Update.
69189         (configure.ac): Add AC_CONFIG_FILES invocation.
69190         (EXTRA_DIST): Remove variable.
69191
69192         * build-aux/javaexec.sh.in: New file, moved from lib/.
69193         * modules/javaexec (Files): Update.
69194         (configure.ac): Add AC_CONFIG_FILES invocation.
69195         (EXTRA_DIST): Remove javaexec.sh.in.
69196
69197         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
69198         * modules/csharpcomp-script (Files): Update.
69199         (configure.ac): Add AC_CONFIG_FILES invocation.
69200         (EXTRA_DIST): Remove variable.
69201
69202         * build-aux/csharpexec.sh.in: New file, moved from lib/.
69203         * modules/csharpexec (Files): Update.
69204         (configure.ac): Add AC_CONFIG_FILES invocation.
69205         (EXTRA_DIST): Remove csharpexec.sh.in.
69206
69207 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
69208
69209         Sync from coreutils.
69210
69211         Add POSIX ACL support
69212         * lib/acl.h (copy_acl, set_acl): Add declarations.
69213         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
69214         systems other than Linux.
69215         (chmod_or_fchmod): New function: use fchmod when possible,
69216         and chmod otherwise.
69217         (file_has_acl): Add a POSIX ACL implementation, with a
69218         Linux-specific subcase.
69219         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
69220         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
69221         acls are unsupported.
69222         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
69223         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
69224         are unsupported.
69225
69226 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
69227
69228         Sync from coreutils.
69229         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
69230
69231 2006-01-07  Bruno Haible  <bruno@clisp.org>
69232
69233         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
69234         gl_EARLY.
69235
69236 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
69237
69238         * lib/strftime.c (tzname): Don't declare if it is already #defined.
69239         Problem reported for Mingw by Mark Junker.
69240
69241 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
69242
69243         * README: Gnulib normally doesn't generate a tarball.
69244
69245 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
69246
69247         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
69248         long int, not int, for nanosecond counts, so that people who are
69249         used to POSIX struct timespec won't be surprised.  Reported by Jim
69250         Meyering.
69251
69252 2005-12-28  Bruno Haible  <bruno@clisp.org>
69253
69254         * build-aux/config.rpath: Update from GNU gettext.
69255
69256 2005-12-16  Jim Meyering  <jim@meyering.net>
69257
69258         * modules/fprintftime: New module.
69259         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
69260
69261 2005-12-16  Jim Meyering  <jim@meyering.net>
69262
69263         * m4/fprintftime.m4: New file.
69264
69265 2005-12-16  Jim Meyering  <jim@meyering.net>
69266
69267         * lib/fprintftime.c, lib/fprintftime.h: New files.
69268
69269 2005-12-15  Simon Josefsson  <jas@extundo.com>
69270
69271         * modules/socklen (configure.ac): Fix M4 macro name, to align with
69272         new m4/socklen.m4.
69273
69274 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
69275
69276         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
69277         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
69278
69279 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
69280
69281         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
69282         * lib/argp-help.c (fill_in_uparams): Check if the constructed
69283         struct uparams is valid. Fall back to the default values if it is
69284         not.
69285
69286 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
69287
69288         * modules/argp (Files): Add argp-pin.c
69289         (Depends-on): dirname
69290         (lib_SOURCES): Add argp-pin.c
69291
69292 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
69293
69294         * m4/argp.m4:  Check if program_invocation_name and
69295         program_invocation_short_name are declared and define appropriate
69296         macros if they are not.
69297
69298 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
69299
69300         * lib/argp-help.c (__argp_base_name): New function
69301         (__argp_short_program_name): Rewrite using __argp_base_name
69302         * lib/argp-namefrob.h: Define program_invocation_name and
69303         program_invocation_short_name if requested
69304         (__argp_base_name): Add prototype
69305         * lib/argp-parse.c (argp_def): Use gettext wrappers
69306         (argp_default_parser): Use __argp_base_name
69307         * lib/argp-pin.c: New file. Defines program_invocation_name and
69308         program_invocation_short_name on systems that lack them.
69309
69310 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
69311
69312         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
69313         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
69314         porting problem reported by Georg Schwarz in
69315         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
69316
69317 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
69318
69319         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
69320         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
69321         porting problem reported by Georg Schwarz in
69322         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
69323
69324 2005-12-05  Bruno Haible  <bruno@clisp.org>
69325
69326         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
69327         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
69328         Reported by Mark Junker <mjscod@gmx.de>.
69329
69330 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
69331
69332         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
69333         Use implementation from Albert Chin, with some
69334         comments/corrections by Stepan Kasal and myself.
69335
69336 2005-12-02  Bruno Haible  <bruno@clisp.org>
69337
69338         * gnulib-tool (func_import): Accept GPLed build tool modules when
69339         --lgpl is given.
69340         * modules/csharpcomp-script: New file.
69341         * modules/csharpcomp: Depend on it.
69342         * modules/javacomp-script: New file.
69343         * modules/javacomp: Depend on it.
69344         Suggested by Simon Josefsson.
69345
69346 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
69347
69348         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
69349         statement, to work around an HP-UX 10.20 compiler bug reported by
69350         Peter O'Gorman.
69351
69352 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
69353
69354         * modules/savedir (Depends-on): Add openat.
69355
69356 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
69357
69358         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
69359         (uintmax_t) [defined uintmax_t]: Do not declare.
69360         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
69361         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
69362         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
69363         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
69364         sake of portability to weird hosts that C allows (though we don't
69365         know of any practical examples).
69366
69367         * lib/savedir.h (fdsavedir): New decl.
69368         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
69369         contains most of the former guts of savedir.
69370         (savedir): Use savedirstream.
69371         Include "openat.h".
69372
69373 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
69374
69375         * modules/obstack (Files): Add m4/ulonglong.m4.
69376         Problem reported by Davide Angelocola.
69377
69378 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
69379
69380         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
69381         coreutils no longer futzes with rounding modes.
69382
69383 2005-11-14  Jim Meyering  <jim@meyering.net>
69384
69385         * lib/mkstemp-safer.c: Include <config.h>, required for possible
69386         replacement of mkstemp.
69387
69388 2005-11-10  Simon Josefsson  <jas@extundo.com>
69389
69390         * lib/readline.c: Remove EOL.
69391
69392 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
69393
69394         * modules/gethrxtime (Depends-on): Add gettime.
69395
69396 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
69397
69398         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
69399         or gettimeofday; no longer needed.
69400
69401 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
69402
69403         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
69404         time business.
69405         (gethrxtime) [! (HAVE_NANOUPTIME
69406         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
69407         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
69408         our own approximation.
69409
69410 2005-11-08  Eric Blake  <ebb9@byu.net>
69411
69412         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
69413
69414 2005-11-08  Eric Blake  <ebb9@byu.net>
69415
69416         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
69417
69418 2005-11-04  Bruno Haible  <bruno@clisp.org>
69419
69420         * gnulib-tool: Implement --update mode.
69421
69422 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
69423
69424         Fix porting problem reported by Theodoros V. Kalamatianos.
69425         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
69426         Don't assume that futimes failing means we must fail.
69427
69428 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
69429
69430         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
69431         variables to suggest the intended function of the PATH_MAX check.
69432
69433 2005-10-30  Kean Johnston  <jkj@sco.com>
69434
69435         Trivial changes to support SCO systems.
69436         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
69437         as PATH_MAX.
69438         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
69439         where __ptr is null when no I/O is pending.
69440
69441 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
69442
69443         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
69444         leave errno alone.  Problem reported by Dmitry V. Levin.
69445
69446 2005-10-28  Simon Josefsson  <jas@extundo.com>
69447
69448         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
69449         Test more.
69450
69451         * tests/test-gc-md2.c, tests/test-md2.c: New files.
69452
69453         * modules/md2, modules/md2-tests: New files.
69454
69455 2005-10-28  Simon Josefsson  <jas@extundo.com>
69456
69457         * m4/inet_ntop.m4: More tests.
69458
69459         * m4/gc-md2.m4, md2.m4: New file.
69460
69461 2005-10-28  Simon Josefsson  <jas@extundo.com>
69462
69463         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
69464         "restrict" keywords, as per POSIX.  Protect the function
69465         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
69466         Don't use K&R prototypes.  Check the sprintf return values.
69467         Re-define EAFNOSUPPORT if not present.  Indent.
69468
69469         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
69470         suggested by Bruno Haible <bruno@clisp.org>.
69471
69472         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
69473
69474         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
69475
69476         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
69477         libgcrypt).
69478
69479         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
69480
69481         * lib/md2.h, lib/md2.c: New files.
69482
69483 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
69484
69485         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
69486         errno alone.  Problem reported by Frederic Jolliton.
69487
69488 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
69489
69490         * modules/verify (License): Change from GPL to LGPL.  This is a
69491         tiny module and there are apparently near-equivalents that are
69492         under the BSD license.
69493
69494 2005-10-24  Simon Josefsson  <jas@extundo.com>
69495
69496         * modules/sha1: Relicense to LGPL.
69497
69498 2005-10-24  Simon Josefsson  <jas@extundo.com>
69499
69500         * lib/md4.h: Shrink buffer size, now that we changed the type.
69501
69502 2005-10-23  Simon Josefsson  <jas@extundo.com>
69503
69504         * gnulib-tool (func_import): Fix --tests-base.
69505
69506 2005-10-22  Simon Josefsson  <jas@extundo.com>
69507
69508         * modules/arcfour (Depends-on): Need stdint.
69509
69510 2005-10-22  Simon Josefsson  <jas@extundo.com>
69511
69512         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
69513         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
69514
69515 2005-10-22  Simon Josefsson  <jas@extundo.com>
69516
69517         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
69518         suggested by Bruno Haible <bruno@clisp.org>.
69519
69520 2005-10-22  Simon Josefsson  <jas@extundo.com>
69521
69522         * lib/crc.h: Include stddef.h, for size_t.
69523
69524 2005-10-22  Simon Josefsson  <jas@extundo.com>
69525
69526         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
69527         arcfour_context struct (simplify test vector testing in GNU
69528         Shishi).
69529
69530 2005-10-21  Simon Josefsson  <jas@extundo.com>
69531
69532         * modules/des, modules/des-tests: New files.
69533
69534         * modules/gc-des, modules/gc-des-tests: New files.
69535
69536         * tests/test-des.c, tests/test-gc-des.c: New file.
69537
69538 2005-10-21  Simon Josefsson  <jas@extundo.com>
69539
69540         * modules/arctwo, modules/arctwo-tests: New files.
69541
69542         * tests/test-arctwo.c: New file.
69543
69544         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
69545
69546         * tests/test-gc-arctwo.c: New file.
69547
69548 2005-10-21  Simon Josefsson  <jas@extundo.com>
69549
69550         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
69551         Bruno Haible <bruno@clisp.org>.
69552
69553         * m4/gc-des.m4: New file.
69554
69555 2005-10-21  Simon Josefsson  <jas@extundo.com>
69556
69557         * m4/arctwo.m4: New file.
69558
69559         * m4/gc-arctwo.m4: New file.
69560
69561 2005-10-21  Simon Josefsson  <jas@extundo.com>
69562
69563         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
69564         block.
69565
69566 2005-10-21  Simon Josefsson  <jas@extundo.com>
69567
69568         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
69569         <bruno@clisp.org>.
69570
69571         * lib/hmac-sha1.c (hmac_sha1): Likewise.
69572
69573         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
69574         Bruno Haible <bruno@clisp.org>.
69575
69576         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
69577         <bruno@clisp.org>.
69578
69579 2005-10-21  Simon Josefsson  <jas@extundo.com>
69580
69581         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
69582
69583 2005-10-21  Simon Josefsson  <jas@extundo.com>
69584
69585         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
69586
69587 2005-10-21  Simon Josefsson  <jas@extundo.com>
69588
69589         * lib/des.h, lib/des.c: New files.
69590
69591         * lib/gc-gnulib.c: Support DES.c
69592
69593 2005-10-21  Simon Josefsson  <jas@extundo.com>
69594
69595         * lib/arctwo.h, lib/arctwo.c: New files.
69596
69597         * lib/gc-gnulib.c: Support ARCTWO.
69598
69599 2005-10-21  Simon Josefsson  <jas@extundo.com>
69600
69601         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
69602         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69603
69604 2005-10-21  Simon Josefsson  <jas@extundo.com>
69605
69606         * gnulib-tool (func_import, func_create_testdir): Define automake
69607         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
69608         Makefile.am snippet),
69609         suggested by Bruno Haible <bruno@clisp.org>.
69610
69611         * modules/gc (Makefile.am): Use it.
69612
69613 2005-10-21  Bruno Haible  <bruno@clisp.org>
69614
69615         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
69616         patch.
69617
69618 2005-10-19  Simon Josefsson  <jas@extundo.com>
69619
69620         * tests/test-gc-rijndael.c: New file.
69621
69622         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
69623
69624 2005-10-19  Simon Josefsson  <jas@extundo.com>
69625
69626         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
69627         interface too.
69628
69629 2005-10-19  Simon Josefsson  <jas@extundo.com>
69630
69631         * tests/test-gc-arcfour.c: New file.
69632
69633         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
69634
69635 2005-10-19  Simon Josefsson  <jas@extundo.com>
69636
69637         * modules/gc-md4, modules/gc-md4-tests: New file.
69638
69639         * tests/test-gc-md4.c: New file.
69640
69641 2005-10-19  Simon Josefsson  <jas@extundo.com>
69642
69643         * m4/gc-md4.m4: New file.
69644
69645 2005-10-19  Simon Josefsson  <jas@extundo.com>
69646
69647         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
69648         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
69649         <kasal@ucw.cz>.
69650
69651 2005-10-19  Simon Josefsson  <jas@extundo.com>
69652
69653         * m4/gc-arcfour.m4: New file.
69654
69655         * m4/gc-rijndael.m4: New file.
69656
69657 2005-10-19  Simon Josefsson  <jas@extundo.com>
69658
69659         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
69660
69661 2005-10-19  Simon Josefsson  <jas@extundo.com>
69662
69663         * lib/gc-gnulib.c: Support ARCFOUR.
69664
69665 2005-10-19  Simon Josefsson  <jas@extundo.com>
69666
69667         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
69668         support.
69669
69670         * lib/gc.h: Add ECB enum type.
69671
69672         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
69673
69674 2005-10-18  Simon Josefsson  <jas@extundo.com>
69675
69676         * tests/test-md5.c: New file.
69677
69678         * modules/md5-tests: New file.
69679
69680 2005-10-18  Simon Josefsson  <jas@extundo.com>
69681
69682         * tests/test-md4.c: New file.
69683
69684         * modules/md4, modules/md4-tests: New files.
69685
69686 2005-10-18  Simon Josefsson  <jas@extundo.com>
69687
69688         * m4/md4.m4: New file.
69689
69690 2005-10-18  Simon Josefsson  <jas@extundo.com>
69691
69692         * lib/md4.h, lib/md4.c: New files, based on md5.?.
69693
69694 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
69695
69696         * gnulib-tool (func_create_testdir): Omit the second check whether
69697         BUILT_SOURCES in nonempty.
69698
69699 2005-10-17  Simon Josefsson  <jas@extundo.com>
69700
69701         * tests/test-rijndael.c: New file.
69702
69703 2005-10-17  Simon Josefsson  <jas@extundo.com>
69704
69705         * modules/sha1: Depend on stdint instead of md5.
69706
69707         * modules/md5: Depend on stdint, remove uint32_t.
69708
69709 2005-10-17  Simon Josefsson  <jas@extundo.com>
69710
69711         * modules/gc-sha1-tests: New file.
69712
69713         * tests/test-gc-sha1.c: New file.
69714
69715 2005-10-17  Simon Josefsson  <jas@extundo.com>
69716
69717         * m4/md5.m4: Remove call to uint32_t.m4.
69718
69719 2005-10-17  Simon Josefsson  <jas@extundo.com>
69720
69721         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
69722
69723         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
69724         md5.h.
69725
69726         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
69727
69728         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
69729
69730 2005-10-17  Simon Josefsson  <jas@extundo.com>
69731
69732         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
69733
69734 2005-10-17  Simon Josefsson  <jas@extundo.com>
69735
69736         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
69737
69738 2005-10-17  Simon Josefsson  <jas@extundo.com>
69739
69740         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
69741
69742         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
69743
69744 2005-10-17  Bruno Haible  <bruno@clisp.org>
69745
69746         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
69747         that it can also be used in a test.
69748
69749 2005-10-16  Bruno Haible  <bruno@clisp.org>
69750
69751         * gnulib-tool (func_emit_tests_Makefile_am): Also define
69752         TESTS_ENVIRONMENT, so that individual tests can augment it.
69753
69754         * gnulib-tool (func_create_testdir): Use an intermediate target for
69755         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
69756         macros, like $(ALLOCA_H), which cannot be passed through the command
69757         line.
69758
69759 2005-10-15  Simon Josefsson  <jas@extundo.com>
69760
69761         * modules/rijndael-tests: New file.
69762
69763         * modules/rijndael: New file.
69764
69765 2005-10-15  Simon Josefsson  <jas@extundo.com>
69766
69767         * m4/rijndael.m4: New file.
69768
69769 2005-10-15  Simon Josefsson  <jas@extundo.com>
69770
69771         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
69772
69773         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
69774
69775 2005-10-14  Simon Josefsson  <jas@extundo.com>
69776
69777         * tests/test-arcfour.c: New file.
69778
69779         * modules/arcfour, modules/arcfour-tests: New files.
69780
69781 2005-10-14  Simon Josefsson  <jas@extundo.com>
69782
69783         * m4/arcfour.m4: New file.
69784
69785 2005-10-14  Simon Josefsson  <jas@extundo.com>
69786
69787         * lib/arcfour.h, lib/arcfour.c: New files.
69788
69789 2005-10-14  Roland McGrath  <roland@redhat.com>
69790
69791         Import from libc.  [BZ #1331]
69792         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
69793         macro argument.
69794         Reported by Matej Vela <vela@debian.org>.
69795
69796 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
69797
69798         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
69799         include <wchar.h>; no longer needed.
69800
69801 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
69802
69803         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
69804
69805 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
69806         and  Ulrich Drepper  <drepper@redhat.com>
69807
69808         Import from libc.
69809         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
69810         instead of inline stream orientation test and two separate
69811         function calls.  Pay no attention to USE_IN_LIBIO.
69812
69813 2005-10-13  Simon Josefsson  <jas@extundo.com>
69814
69815         * modules/gc-hmac-md5-tests: New file.
69816
69817         * tests/test-gc-hmac-sha1.c: New file.
69818
69819         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
69820
69821         * modules/gc-hmac-md5-tests: New file.
69822
69823         * tests/test-gc-md5.c: New file.
69824
69825         * modules/gc-md5-tests: New file.
69826
69827 2005-10-13  Simon Josefsson  <jas@extundo.com>
69828
69829         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
69830         Move memory allocation outside of loop.
69831
69832 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
69833
69834         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
69835         intermediate directory is in a read-only file system.  Problem
69836         reported by Eric Blake.
69837
69838 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
69839
69840         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
69841
69842 2005-10-12  Simon Josefsson  <jas@extundo.com>
69843
69844         * tests/test-hmac-sha1.c: New file.
69845
69846         * modules/hmac-sha1-tests: New file.
69847
69848         * modules/hmac-sha1: New file.
69849
69850 2005-10-12  Simon Josefsson  <jas@extundo.com>
69851
69852         * modules/gc-sha1: New file.
69853
69854 2005-10-12  Simon Josefsson  <jas@extundo.com>
69855
69856         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
69857
69858         * tests/test-gc-pbkdf2-sha1.c: New file.
69859
69860 2005-10-12  Simon Josefsson  <jas@extundo.com>
69861
69862         * modules/gc-md5, modules/gc-hmac-md5: New files.
69863
69864         * modules/gc (Files): Remove md5, memxor and hmac files.
69865
69866 2005-10-12  Simon Josefsson  <jas@extundo.com>
69867
69868         * m4/gc-pbkdf2-sha1.m4: New file.
69869
69870         * m4/gc-hmac-sha1.m4: New file.
69871
69872         * m4/gc-sha1: New file.
69873
69874         * m4/hmac-sha1.m4: New file.
69875
69876 2005-10-12  Simon Josefsson  <jas@extundo.com>
69877
69878         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
69879
69880         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
69881
69882 2005-10-12  Simon Josefsson  <jas@extundo.com>
69883
69884         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
69885         suggested by Bruno Haible <bruno@clisp.org>.
69886
69887 2005-10-12  Simon Josefsson  <jas@extundo.com>
69888
69889         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
69890
69891 2005-10-12  Simon Josefsson  <jas@extundo.com>
69892
69893         * lib/gc-pbkdf2-sha1.c: New file.
69894
69895         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
69896
69897 2005-10-12  Simon Josefsson  <jas@extundo.com>
69898
69899         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
69900
69901         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
69902
69903 2005-10-12  Simon Josefsson  <jas@extundo.com>
69904
69905         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
69906         GC_USE_HMAC_MD5, respectively.
69907
69908         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
69909         (gc_md5): Fix typo.
69910
69911         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
69912
69913         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
69914
69915         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
69916
69917 2005-10-12  Bruno Haible  <bruno@clisp.org>
69918
69919         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
69920         Reported by Stepan Kasal <kasal@ucw.cz>.
69921
69922 2005-10-11  Simon Josefsson  <jas@extundo.com>
69923
69924         * tests/test-crc.c: New file.
69925
69926         * modules/crc, modules/crc-tests: New files.
69927
69928 2005-10-11  Simon Josefsson  <jas@extundo.com>
69929
69930         * m4/crc.m4: New file.
69931
69932 2005-10-11  Simon Josefsson  <jas@extundo.com>
69933
69934         * lib/gc.h: Add gc_hash and gc_hash_buffer.
69935
69936         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
69937
69938         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
69939
69940 2005-10-11  Simon Josefsson  <jas@extundo.com>
69941
69942         * lib/crc.h, lib/crc.c: New files.
69943
69944         * lib/gc.h (gc_hash_buffer): Add doc.
69945
69946 2005-10-11  Bruno Haible  <bruno@clisp.org>
69947
69948         * modules/c-strcasestr: New file.
69949         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
69950
69951 2005-10-11  Bruno Haible  <bruno@clisp.org>
69952
69953         * modules/c-strcase: New file.
69954         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
69955
69956 2005-10-11  Bruno Haible  <bruno@clisp.org>
69957
69958         * lib/strcasecmp.c: Include limits.h.
69959         (strcasecmp): Avoid integer overflow on exotic platforms.
69960         * lib/strncasecmp.c: Include limits.h.
69961         (strncasecmp): Avoid integer overflow on exotic platforms.
69962         Reported by Paul Eggert.
69963
69964 2005-10-11  Bruno Haible  <bruno@clisp.org>
69965
69966         * lib/c-strcasestr.h: New file, from GNU gettext.
69967         * lib/c-strcasestr.c: New file, from GNU gettext.
69968
69969 2005-10-11  Bruno Haible  <bruno@clisp.org>
69970
69971         * lib/c-strcase.h: New file, from GNU gettext.
69972         * lib/c-strcasecmp.c: New file, from GNU gettext.
69973         * lib/c-strncasecmp.c: New file, from GNU gettext.
69974
69975 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
69976
69977         * modules/mempcpy (License): GPL -> LGPL.
69978         * modules/strchrnul (License): Likewise.
69979         * modules/sysexits (License): Likewise.
69980
69981 2005-10-08  Simon Josefsson  <jas@extundo.com>
69982
69983         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
69984
69985 2005-10-07  Simon Josefsson  <jas@extundo.com>
69986
69987         * m4/memxor.m4: Remove gl_C_RESTRICT call.
69988
69989 2005-10-06  Simon Josefsson  <jas@extundo.com>
69990
69991         * tests/test-hmac-md5.c: New file.
69992
69993         * modules/hmac-md5-tests: New file.
69994
69995         * modules/hmac-md5: New file.
69996
69997 2005-10-06  Simon Josefsson  <jas@extundo.com>
69998
69999         * m4/hmac-md5.m4: New file.
70000
70001         * m4/memxor.m4: Require gl_C_RESTRICT.
70002
70003 2005-10-06  Simon Josefsson  <jas@extundo.com>
70004
70005         * lib/memxor.c (memxor): Avoid casts and warnings.
70006
70007 2005-10-06  Simon Josefsson  <jas@extundo.com>
70008
70009         * lib/hmac-md5.c: New file.
70010
70011         * lib/hmac.h: New file.
70012
70013 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
70014
70015         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
70016         promotes to int, not unsigned int, to catch the AIX 5.3
70017         compiler bug.
70018
70019 2005-10-05  Simon Josefsson  <jas@extundo.com>
70020
70021         * modules/memxor: New file.
70022
70023         * modules/iconv (Files): Move config.rpath to havelib, it is used
70024         there.
70025
70026         * modules/havelib (Files): Add config.rpath.
70027
70028 2005-10-05  Simon Josefsson  <jas@extundo.com>
70029
70030         * m4/memxor.m4: New file.
70031
70032 2005-10-05  Simon Josefsson  <jas@extundo.com>
70033
70034         * lib/memxor.c (memxor): Fix compiler error.
70035
70036         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
70037         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
70038
70039         * lib/memxor.h, lib/memxor.c: New files.
70040
70041         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
70042         we assume all systems have it, suggested by Jim Meyering
70043         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
70044         any systems lack sys/socket.h; mingw32 is known to lack it, but we
70045         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
70046         same reasons.
70047
70048 2005-10-05  Simon Josefsson  <jas@extundo.com>
70049
70050         * config/srclist.txt: Add glibc bug 1423 for md5.h.
70051
70052 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
70053
70054         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
70055         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
70056         needed, since the source code now assumes these .h files.
70057
70058 2005-10-05  Derek Price  <derek@ximbiot.com>
70059
70060         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
70061
70062 2005-10-05  Bruno Haible  <bruno@clisp.org>
70063
70064         * modules/stdint (License): Change to LGPL.
70065
70066 2005-10-04  Simon Josefsson  <jas@extundo.com>
70067
70068         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
70069         D. Baushke" <mdb@gnu.org>.
70070
70071 2005-10-04  Bruno Haible  <bruno@clisp.org>
70072
70073         * lib/verify.h (verify_true): Provide alternative definition for C++.
70074
70075 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
70076
70077         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
70078         (SSIZE_MAX): New macro, if not already defined.
70079         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
70080         than 2 GiB.
70081
70082 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
70083
70084         Sync from coreutils.
70085         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
70086         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
70087         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
70088         ULLONG_MAX doesn't work with 2.7.2.1.
70089
70090 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
70091
70092         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
70093         From Ben Pfaff.
70094
70095         * modules/exclude (Depends-on): Depend on verify.
70096         * modules/strtoimax (Depends-on): Likewise.
70097         * modules/utimecmp (Depends-on): Likewise.
70098
70099 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
70100
70101         * lib/exclude.c: Include verify.h.
70102         (verify): Remove.  All callers changed to use verify.h's version.
70103         * lib/strtoimax.c: Likewise.
70104         * lib/utimecmp.c: Likewis.e
70105
70106         Sync from coreutils.
70107         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
70108         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
70109         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
70110         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
70111         bother returning ENOSYS if settimeofday or stime fails; just let
70112         them return whatever errno they want to return.
70113         * lib/utimens.c: Include unistd.h, for dup2.
70114         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
70115         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
70116
70117 2005-10-02  Jim Meyering  <jim@meyering.net>
70118
70119         Sync from coreutils.
70120         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
70121         from glibc-2.2.5 that fails for read-only files.
70122
70123 2005-10-02  Jim Meyering  <jim@meyering.net>
70124
70125         Sync from coreutils.
70126         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
70127         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
70128         `#if HAVE_CONFIG_H'.
70129         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
70130         Remove AT_FDCWD test.
70131         Do not consume the fd unless successful.
70132         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
70133         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
70134         block, so that we don't even try to compile it if settimeofday is
70135         available.  This works around a compilation failure on OSF1 V5.1,
70136         due to stime requiring a `long int*' while tv_sec is `int'.
70137
70138 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
70139
70140         Sync from coreutils.
70141         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
70142         against `yes', rather than just testing for nonempty.
70143
70144 2005-10-01  Simon Josefsson  <jas@extundo.com>
70145
70146         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
70147         and Darwin.
70148
70149         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
70150         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
70151         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
70152         freeaddrinfo and gai_strerror are declared by the POSIX headers.
70153         Check if struct addrinfo is declared.
70154
70155 2005-10-01  Simon Josefsson  <jas@extundo.com>
70156
70157         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
70158         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
70159         AI_* and EAI_* definitions.  Protect function declarations.
70160
70161 2005-10-01  Jim Meyering  <jim@meyering.net>
70162
70163         Sync from coreutils.
70164
70165         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
70166         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
70167         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
70168         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
70169         in the inet and nsl libraries.  Required on Solaris 5.7.
70170
70171 2005-10-01  Jim Meyering  <jim@meyering.net>
70172
70173         Sync from coreutils.
70174         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
70175         in the inet and nsl libraries.  Required on Solaris 5.7.
70176
70177 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
70178
70179         * lib/getdelim.c (getdelim): Remove unused variables.
70180
70181 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
70182
70183         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
70184         so that the code works even with ancient cpp.  Portability problem
70185         with GCC 2.7.2.1 reported by Thomas M.Ott.
70186
70187 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
70188
70189         * modules/regex (Depends-on): Add strcase.
70190
70191         * modules/gethostname (Licence): Change from GPL to LGPL, since
70192         gethostname.c is a trivial implementation of a standard library
70193         function.
70194         * modules/poll (License): Change from GPL to LGPL, since it's
70195         derived from LGPL code.
70196
70197 2005-09-27  Jim Meyering  <jim@meyering.net>
70198
70199         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
70200         HAVE_CONFIG_H.
70201
70202         * lib/intprops.h (signed_type_or_expr__): Define.
70203         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
70204         for unsigned types.
70205
70206 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
70207
70208         * lib/verify.h (verify_expr): Remove, replacing with:
70209         (verify_true): New macro that returns true instead of void.
70210         (verify_type__): Remove.
70211         (verify): Use verify_true rather than verify_type__.
70212
70213 2005-09-26  Bruno Haible  <bruno@clisp.org>
70214
70215         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
70216         is necessary.
70217         (lib_SOURCES): Remove mbchar.c.
70218         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
70219         (Files): Add m4/mbrtowc.m4.
70220         * modules/mbiter: Likewise.
70221         * modules/mbuiter: Likewise.
70222
70223 2005-09-26  Bruno Haible  <bruno@clisp.org>
70224
70225         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
70226         compile mbchar.c if they are not both present.
70227         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
70228         * m4/mbiter.m4 (gl_MBITER): Likewise.
70229         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
70230         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
70231         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
70232
70233 2005-09-25  Jim Meyering  <jim@meyering.net>
70234
70235         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
70236         also uses socklen_t.
70237
70238 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
70239
70240         * lib/utimens.c (ENOSYS): Define if not already defined.
70241         (futimens): Support having a null PATH if the file descriptor
70242         is nonnegative.
70243
70244         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
70245         Remove.
70246         (__attribute): Define to empty unless GCC 3.1 or later.
70247         This works around a core dump on OpenBSD 3.4, which has GCC
70248         2.95.3, which dumps core when given __attribute__(()).  It also
70249         simplifies other tests, since we really don't want to bother with
70250         worrying about which ancient version of GCC supported what.
70251         Original problem reported by Yoann Vandoorselaere, with part of
70252         the fix suggested by Derek Price.
70253
70254 2005-09-24  Jim Meyering  <jim@meyering.net>
70255
70256         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
70257         so we can once again use a positive bitfield width of 1 -- now we
70258         don't have to explain why we were using a bitfield width of 2.
70259
70260 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
70261
70262         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
70263         and similarly for the other external symbols.  Problem reported
70264         by James Gallager.
70265
70266         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
70267         bug reported by Jim Meyering.
70268
70269         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
70270         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
70271         not needed, since socklen is a prerequisite module.
70272
70273 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
70274
70275         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
70276         Problem reported by Eric Blake.
70277         (getaddrinfo): Initialize se so that it's not garbage.
70278         Redo internal storage allocation so that it doesn't make unportable
70279         assumptions about alignment.
70280         Fix a memory leak.
70281
70282         * lib/utimens.c (futimens): Use futimesat if available.
70283         Prefer it to futimes since it doesn't have the futimes bug.
70284
70285         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
70286         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
70287         Instead, declare a function that returns a pointer to an array,
70288         and use verify_type__ to declare the size of the array.
70289         Problem and germ of a solution reported by Bruno Haible.
70290         (verify_type__): Use 2, not 1, for bitfield size, to avoid
70291         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
70292
70293 2005-09-23  Jim Meyering  <jim@meyering.net>
70294
70295         Sync from coreutils.
70296         Correct build failure (socklen_t not defined) on at least
70297         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
70298         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
70299
70300 2005-09-23  Jim Meyering  <jim@meyering.net>
70301
70302         * modules/getaddrinfo (Depends-on): Add socklen.
70303
70304 2005-09-23  Bruno Haible  <bruno@clisp.org>
70305
70306         * tests/test-verify.c: New file.
70307
70308 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
70309
70310         Sync from coreutils.
70311
70312         * modules/argmatch (Depends-on): Add verify.
70313         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
70314         unistd-safer.
70315         * modules/save-cwd (Depends-on): Likewise.
70316
70317         * modules/openat (Files): Add lib/openat-die.c.
70318         (Depends-on): Remove error, exitfail.
70319         Add dirname.
70320
70321         * modules/verify: New file.
70322         * MODULES.html.sh (Diagnostics <assert.h>): New section,
70323         with "verify" module.
70324
70325 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
70326
70327         Sync from coreutils.
70328
70329         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
70330         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
70331         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
70332         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
70333         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
70334         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
70335         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
70336         Don't bother checking for string.h, stdlib.h, unistd.h.
70337         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
70338         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
70339         module's job.
70340         * m4/jm-macros.m4 (gl_MACROS): Likewise.
70341         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
70342
70343         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
70344         (gl_GETDATE): Use it.
70345
70346         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
70347
70348 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
70349
70350         Sync from coreutils.
70351
70352         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
70353         stat-time.h.
70354         * lib/argmatch.h: Include verify.h
70355         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
70356         (ARGMATCH_ASSERT): Remove; unused.
70357         * lib/canonicalize.c: Assume STDC_HEADERS.
70358         * lib/exclude.c: Include "strcase.h".
70359         * lib/regex_internal.h [!defined _LIBC]: Likewise.
70360         * lib/getusershell.c: Include stdio--.h rather than stdio.h
70361         and stdio-safer.h.
70362         (getusershell): Call fopen, not fopen_safer.
70363         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
70364         Do not include unistd-safer.h.
70365         (save_cwd): Don't call fd_safer; no longer needed
70366         now that we include fcntl--.h.
70367
70368         * lib/getdate.y (relative_time): New type.
70369         (RELATIVE_TIME_0): New constant.
70370         (parser_control): Use relative_time instead of doing it ourselves.
70371         (%union): Add new relative_time rel member.
70372         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
70373         Now typeless.
70374         (relunit, relunit_snumber): Now of type rel.
70375         (zone, rel, relunit, get_date): Adjust to above changes.
70376
70377         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
70378         Do not include unistd-safer.h.
70379         (getloadavg): Don't call fd_safer; no longer needed
70380         now that we include fcntl--.h.
70381
70382         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
70383         (make_dir_parents): Treat ENOSYS like EEXIST.
70384
70385         Improve quality of diagnostics on restore_cwd failure.
70386         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
70387         (make_dir_parents): Last arg is now int * (for errno), not bool *.
70388         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
70389         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
70390         each time through the loop.  Do not diagnose restore_cwd failure;
70391         that is the caller's job (and perhaps the caller does not care).
70392
70393         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
70394         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
70395         If the file already exists but is not a directory, don't bother
70396         to try to make its parents.
70397         Close potential file descriptor leak if we can't chdir("/") (!).
70398         Don't always return true if chdir($PWD) fails; return true only
70399         if the requested action was done successfully (except for the
70400         chdir($PWD)).
70401         Don't log final directory unless we actually made it.
70402         Refactor to avoid duplicate code to fix up permissions.
70403         Don't attempt to fix up parent permissions if chdir($PWD) fails.
70404
70405         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
70406         to make it a bit faster and (I hope) clearer.
70407         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
70408         Fix bug in formats like %2N.
70409
70410         * lib/verify.h: New file.
70411
70412 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
70413
70414         Sync from coreutils.
70415         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
70416
70417 2005-09-22  Jim Meyering  <jim@meyering.net>
70418
70419         Sync from coreutils.
70420
70421         * m4/lstat.m4 (gl_FUNC_LSTAT):
70422         Use AC_LIBSOURCES to require lstat.c and lstat.h.
70423         Remove obsolete comment.
70424         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
70425         * m4/xstrtod.m4: Likewise.
70426
70427         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
70428
70429 2005-09-22  Jim Meyering  <jim@meyering.net>
70430
70431         Sync from coreutils.
70432
70433         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
70434
70435         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
70436         the .tm_year member, since otherwise gcc-4.0 would now warn about
70437         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
70438
70439         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
70440         order to avoid an unsuppressible warning from gcc on 64-bit systems.
70441
70442         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
70443         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
70444         when run in a time zone for which daylight savings time is in effect
70445         for the starting date.
70446
70447         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
70448         stop us from restricting permissions of just-created absolute-named
70449         directories.
70450         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
70451         to restore initial working directory.
70452         * lib/mkdir-p.c (make_dir_parents): New parameter:
70453         different_working_dir, to tell caller if/when we change the working
70454         directory and are unable to return to the initial one.
70455         * lib/mkdir-p.h (make_dir_parents): Update prototype.
70456         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
70457         `return false'.  This fixes a bug introduced on 2004-07-30.
70458
70459         * lib/openat.c (fdopendir): Be sure to close the supplied
70460         file descriptor before returning.  This makes our replacement
70461         implementation a little closer to Solaris's, where fdopendir
70462         ties the file descriptor to the returned DIR* pointer.
70463         * lib/openat.c (unlinkat): New function.
70464         * lib/openat.h (unlinkat): Add prototype.
70465         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
70466         (openat_restore_fail): Rename from openat_restore_die.
70467         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
70468
70469         Provide an alternative to exiting immediately upon save_cwd or
70470         restore_cwd failure.  Now, an application can arrange e.g.,
70471         to perform a longjump in that case.
70472         * lib/openat.c: Include dirname.h.
70473         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
70474         (rpl_openat, fdopendir, fstatat): Call openat_save_die
70475         and openat_restore_die rather than calling error directly.
70476         Don't include "error.h" or "exitfail.h"; they're no longer needed.
70477
70478         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
70479         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
70480         define.
70481
70482         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
70483         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
70484                             int utc, int nanoseconds);
70485         Background:
70486         date should not have to allocate a megabyte of virtual memory to
70487         handle a format argument like +%1048575T.  When implemented with
70488         strftime, it must allocate such a buffer, use strftime to fill it
70489         in, print it, then free it.
70490         With fprintftime, it simply prints everything and exits.
70491         With no need for memory allocation, that's one fewer way to fail.
70492         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
70493         optional field width, not before, so we accept %9:z, not %:9z.
70494         (my_strftime): Be sure to use L_('x') for literals.
70495
70496         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
70497         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
70498         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
70499         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
70500         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
70501         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
70502         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
70503         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
70504         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
70505         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
70506         * lib/xgethostname.c, lib/xreadlink.c:
70507         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
70508
70509         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
70510         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
70511         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
70512         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
70513         and don't include <sys/file.h>).
70514
70515 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
70516
70517         Sync from coreutils.
70518
70519         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
70520         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
70521         [!LDAV_DONE]: Avoid unused variable warning.
70522
70523 2005-09-21  Bruno Haible  <bruno@clisp.org>
70524
70525         * lib/unicodeio.h (unicode_to_mb): New declaration.
70526
70527 2005-09-20  Derek Price  <derek@ximbiot.com>
70528
70529         * lib/getaddrinfo.c: Don't include <netdb.h> included from
70530         getaddrinfo.h.
70531
70532 2005-09-20  Bruno Haible  <bruno@clisp.org>
70533
70534         * gnulib-tool: Remove trailing slashes from the values specified for
70535         --source-base, --m4-base, --tests-base, --aux-dir.
70536         Suggested by Simon Josefsson <jas@extundo.com>.
70537
70538 2005-09-20  Bruno Haible  <bruno@clisp.org>
70539
70540         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
70541         func_modules_to_filelist, func_import, func_create_testdir): Make all
70542         sorting results locale-independent, so that gnulib-cache.m4 doesn't
70543         change when gnulib-tool is invoked in a different locale.
70544
70545 2005-09-19  Simon Josefsson  <jas@extundo.com>
70546
70547         * m4/socklen.m4: Fix typo.
70548
70549 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70550
70551         Use a consistent style for including <config.h>.
70552         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
70553         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
70554         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
70555         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
70556         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
70557         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
70558         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
70559         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
70560         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
70561         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
70562         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
70563         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
70564         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
70565         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
70566         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
70567         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
70568         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
70569         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
70570         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
70571         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
70572         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
70573         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
70574         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
70575         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
70576         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
70577         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
70578         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
70579         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
70580         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
70581         lib/xstrtoumax.c, lib/yesno.c:
70582         Standardize inclusion of config.h.
70583         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
70584         lib/inttostr.h:  Removed inclusion of config.h from header files.
70585         * lib/inttostr.c:  Adjusted in-tree users.
70586         * lib/timespec.h: Remove superfluous warning to include config.h.
70587         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
70588         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
70589         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
70590         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
70591         config.h with HAVE_CONFIG_H.
70592
70593 2005-09-19  Jim Meyering  <jim@meyering.net>
70594
70595         * modules/pathmax (License): Change to LGPL.
70596
70597 2005-09-19  Derek Price  <derek@ximbiot.com>
70598
70599         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
70600
70601 2005-09-19  Bruno Haible  <bruno@clisp.org>
70602
70603         * gnulib-tool (import): Provide default for --tests-base.
70604
70605 2005-09-19  Bruno Haible  <bruno@clisp.org>
70606
70607         * doc/quote.texi: New file, extracted from gnulib.texi.
70608         * doc/ctime.texi: New file, extracted from gnulib.texi.
70609         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
70610         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
70611         * doc/gnulib.texi: Include them.
70612
70613 2005-09-18  Bruno Haible  <bruno@clisp.org>
70614
70615         Portability fix.
70616         * gnulib-tool (func_readlink): New function.
70617         (func_ln_if_changed): Use it.
70618
70619 2005-09-18  Bruno Haible  <bruno@clisp.org>
70620
70621         * gnulib-tool: Support --with-tests also with --import.
70622         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
70623         (func_import): Use variables $testsbase and $inctests. Emit a
70624         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
70625         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
70626         SUBDIRS += $testsdir.
70627         (func_create_testdir): Update.
70628
70629 2005-09-18  Bruno Haible  <bruno@clisp.org>
70630
70631         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
70632         instead of $dry_run.
70633         (func_cp_if_changed, func_mv_if_changed): Remove functions.
70634         (func_ln_if_changed): Don't handle dry-run here.
70635         (func_import): In dry-run mode, detect more precisely which actions
70636         would be performed, and don't use "...ing" verbs.
70637
70638 2005-09-18  Bruno Haible  <bruno@clisp.org>
70639
70640         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
70641         (func_import): Use join on two temporary files instead of three nested
70642         loops, in order to determine which files are new or old.
70643
70644 2005-09-18  Bruno Haible  <bruno@clisp.org>
70645
70646         * gnulib-tool (func_import): Comment out code that spits out the
70647         new files with --dry-run.
70648
70649 2005-09-18  Bruno Haible  <bruno@clisp.org>
70650
70651         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
70652
70653 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
70654
70655         * lib/stat-time.h: New file.
70656         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
70657         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
70658         in a different way.
70659         (timespec_cmp): New function.
70660         * lib/utimecmp.c: Include stat-time.h.
70661         (SYSCALL_RESOLUTION): Depend on whether various struct stat
70662         members exist, not on the obsolescent ST_MTIM_NSEC.
70663         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
70664
70665 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
70666
70667         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
70668
70669 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
70670
70671         * MODULES.html.sh (File system functions): Add stat-time.
70672         * modules/stat-time: New file.
70673         * modules/timespec (Files): Remove m4/st_mtim.m4; this
70674         is now done in a different way, by the stat-time module.
70675         * modules/utimecmp (Depends-on): Add stat-time.
70676
70677 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
70678
70679         * m4/st_mtim.m4: Remove.  Superseded by...
70680         * m4/stat-time.m4: New file.
70681         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
70682         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
70683
70684 2005-09-15  Derek Price  <derek@ximbiot.com>
70685
70686         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
70687
70688 2005-09-15  Derek Price  <derek@ximbiot.com>
70689
70690         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
70691         * lib/regex_internal.c: Ditto, using this...
70692         (__GNUC_PREREQ): ...new macro.
70693         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
70694         using...
70695         (__GNUC_PREREQ): ...this new macro.
70696
70697         * lib/strstr.h: Include string.h. Define strstr as a macro here.
70698
70699 2005-09-15  Derek Price  <derek@ximbiot.com>
70700             Paul Eggert  <eggert@cs.ucla.edu>
70701
70702         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
70703         changes, consolidating in...
70704         * lib/regex_internal.h: ...this file.
70705
70706 2005-09-13  Jim Meyering  <jim@meyering.net>
70707
70708         * lib/canon-host.c: Filter through gnu indent and reword comments
70709         slightly.
70710         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
70711
70712 2005-09-13  Derek Price  <derek@ximbiot.com>
70713
70714         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
70715         failure.
70716         Reported by Jim Meyering  <jim@meyering.net>.
70717
70718 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
70719
70720         * lib/base64.c: Typo.
70721         (base64_encode): Put b64str in initialized data section.
70722
70723 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
70724
70725         Merge glibc and coreutils changes into gnulib, plus a few
70726         extra fixes.
70727         * lib/md5.c: Use #error rather than a string.
70728         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
70729         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
70730         (__attribute__): Define to empty for non recent-GCC.
70731         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
70732         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
70733         Renamed from their non-__ counterparts, with new macros replacing
70734         them if not _LIBC.  Add __THROW attribute.
70735         (rol): Remove.
70736         (struct md5_ctx): Align buffer if using GCC.
70737         * lib/sha1.h (struct sha1_ctx): Likewise.
70738         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
70739         The old name was backwards.
70740         (NOTSWAP): Remove; not used.
70741         (rol): New macro, moved here from md5.h.
70742         (sha1_process_block): Remove a FIXME that doesn't make sense.
70743
70744 2005-09-12  Derek Price  <derek@ximbiot.com>
70745
70746         Return usable errors from canon-host.
70747         * lib/canon-host.h: New file.
70748         * lib/canon-host.c (canon_host): Wrap...
70749         (canon_host_r): ...this new function, which now relies exclusively on
70750         getaddrinfo.
70751         (ch_strerror): New function.
70752         (last_cherror): New global.
70753         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
70754         interface.
70755         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
70756         void *.
70757         (freeaddrinfo): Free ai->ai_canonname when set.
70758
70759 2005-09-12  Derek Price  <derek@ximbiot.com>
70760
70761         Make canon-host require getaddrinfo.
70762         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
70763         AC_LIBSOURCE canon-host.h.  Call...
70764         (gl_PREREQ_CANON_HOST): ...this new function, which requires
70765         gl_GETADDRINFO.
70766         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
70767
70768 2005-09-12  Derek Price  <derek@ximbiot.com>
70769
70770         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
70771         LGPL.
70772         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
70773
70774 2005-09-12  Derek Price  <derek@ximbiot.com>
70775
70776         * lib/gai_strerror.c: Include config.h when available.  Include
70777         getaddrinfo.h before other headers to test interface.
70778         Reported by Larry Jones <lawrence.jones@ugs.com>.
70779
70780 2005-09-12  Derek Price  <derek@ximbiot.com>
70781             Paul Eggert  <eggert@cs.ucla.edu>
70782
70783         * modules/glob (Files): Add glob-libc.h.
70784
70785 2005-09-12  Derek Price  <derek@ximbiot.com>
70786             Paul Eggert  <eggert@cs.ucla.edu>
70787
70788         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
70789         glob_.h, glob-libc.h.
70790         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
70791
70792 2005-09-12  Derek Price  <derek@ximbiot.com>
70793             Paul Eggert  <eggert@cs.ucla.edu>
70794
70795         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
70796         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
70797         protecting things that should be done only in gnulib contexts.
70798         * lib/glob_.h: New file, containing only the glob things needed for
70799         gnulib.
70800         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
70801         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
70802         (glob, globfree, glob_pattern_p): Now defined simply in terms of
70803         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
70804         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
70805         and to respect the namespace rules better.
70806
70807 2005-09-08  Simon Josefsson  <jas@extundo.com>
70808
70809         * modules/socklen: New file.
70810
70811 2005-09-08  Simon Josefsson  <jas@extundo.com>
70812
70813         * m4/socklen.m4: New file.
70814
70815 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
70816
70817         * modules/utimens (Files): Add m4/utimbuf.m4, since
70818         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
70819         Reported by Sergey Poznyakoff.
70820
70821 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
70822
70823         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
70824         definitions, since that's the preferred style in glibc.
70825         Fix a minor spacing issue, and update copyright notice to match
70826         glibc's.
70827
70828 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
70829
70830         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
70831
70832 2005-09-06  Simon Josefsson  <jas@extundo.com>
70833
70834         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
70835         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
70836
70837 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
70838
70839         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
70840         warning.
70841
70842 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
70843
70844         * config/srclist.txt: Add glibc bug 1302.
70845
70846 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
70847
70848         Change bitset word type from unsigned int to unsigned long int,
70849         as this has better performance on typical 64-bit hosts.
70850         Port bitset code to hosts with unusual word sizes.
70851         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
70852         (build_collating_symbol):
70853         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
70854         argument is a bitset.  This is merely a style issue, but it makes
70855         it clearer that an entire array is expected.
70856         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
70857         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
70858         Port to the case where bitset_word is not the same as unsigned int.
70859         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
70860         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
70861         Likewise.
70862         * lib/regexec.c (check_dst_limits_calc_pos_1,
70863         check_subexp_matching_top):
70864         (build_trtable, group_nodes_into_DFAstates):
70865         Likewise.
70866         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
70867         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
70868         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
70869         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
70870         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
70871         * lib/regcomp.c (optimize_subexps, lower_subexp):
70872         Work even if bitset_word has holes in its bitwise representation.
70873         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
70874         * lib/regexec.c (check_dst_limits_calc_pos_1,
70875         check_subexp_matching_top):
70876         Likewise.
70877         * lib/regex_internal.c (re_string_reconstruct):
70878         Don't assume UCHAR_MAX == 255.
70879         * lib/regex_internal.h (bitset_set_all): Likewise.
70880         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
70881         All uses changed.
70882         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
70883         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
70884         All uses changed.
70885         (BITSET_WORD_MAX): New macro.
70886         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
70887         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
70888         (bitset_empty, bitset_copy):
70889         Prefer sizeof (bitset) to multiplying it out ourselves.
70890         (bitset_not_merge): Remove; unused.
70891         (bitset_contain): Return bool, not unsigned int with one bit on.
70892         All callers changed.
70893         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
70894         alignment than re_node_set; do this by defining a new internal
70895         type struct dests_alloc and using it to allocate memory.
70896
70897 2005-09-05  Bruno Haible  <bruno@clisp.org>
70898
70899         * gnulib-tool (func_import): Fix comparison in handling of symbolic
70900         links.
70901
70902 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
70903
70904         * modules/size_max (Makefile.am): Add size_max.h
70905
70906 2005-09-04  Derek Price  <derek@ximbiot.com>
70907
70908         * gnulib-tool (func_import): Fix reversed $symbolic logic.
70909
70910 2005-09-03  Simon Josefsson  <jas@extundo.com>
70911
70912         * gnulib-tool: Fix typo.
70913
70914 2005-09-03  Simon Josefsson  <jas@extundo.com>
70915
70916         * config/srclist.txt: Add glibc bug 1293.
70917
70918 2005-09-03  Derek Price  <derek@ximbiot.com>
70919
70920         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
70921         From Larry Jones <lawrence.jones@ugs.com>.
70922
70923 2005-09-02  Simon Josefsson  <jas@extundo.com>
70924
70925         * modules/socklen: New file.
70926
70927 2005-09-02  Simon Josefsson  <jas@extundo.com>
70928
70929         * modules/havelib: New module.
70930
70931         * modules/gettext, modules/iconv, modules/lock, modules/readline:
70932         Use havelib.
70933
70934 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
70935
70936         Check for arithmetic overflow when calculating sizes, to prevent
70937         some buffer-overflow issues.  These patches are conservative, in the
70938         sense that when I couldn't determine whether an overflow was possible,
70939         I inserted a run-time check.
70940         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
70941         macros.
70942         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
70943         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
70944         (re_xnrealloc, re_x2nrealloc): New inline functions.
70945         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
70946         parse_bracket_exp):
70947         (build_equiv_class, build_charclass): Check for arithmetic overflow
70948         in size expression calculations.
70949         * lib/regex_internal.c (re_string_realloc_buffers):
70950         (build_wcs_upper_buffer, re_node_set_add_intersect):
70951         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
70952         (re_dfa_add_node, register_state): Likewise.
70953         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
70954         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
70955         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
70956         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
70957
70958 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
70959
70960         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
70961         m4/ulonglong.m4.  Problem reported by Martin Lambers.
70962
70963 2005-09-02  Bruno Haible  <bruno@clisp.org>
70964
70965         Support for lib vs. lib64 distinction on biarch platforms.
70966         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
70967         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
70968         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
70969
70970 2005-09-02  Bruno Haible  <bruno@clisp.org>
70971
70972         * gnulib-tool (import): In the other first-use case, provide defaults
70973         as well.
70974
70975 2005-09-02  Bruno Haible  <bruno@clisp.org>
70976
70977         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
70978         patches not yet found in the latest gettext release.
70979
70980 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
70981
70982         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
70983         to avoid a collision with bits/local_lim.h in glibc.
70984         All uses changed.  Problem reported by Dmitry V. Levin in
70985         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
70986
70987         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
70988         bugs in int versus size_t comparisons.
70989         (re_string_context_at): Fix bug where the code assumed that
70990         Idx is signed.
70991
70992         Use bool where appropriate.
70993         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
70994         All callers changed.
70995         (calc_eclosure_iter): Likewise, for ROOT arg.
70996         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
70997         (build_charclass_op): Likewise, for NON_MATCH arg.
70998         * lib/regex_internal.c (re_string_allocate, re_string_construct):
70999         (re_string_construct_common): Likewise, for ICASE arg.
71000         * lib/regexec.c (re_search_2_stub, re_search_stub):
71001         Likewise, for RET_LEN arg.
71002         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
71003         (set_regs): Likewise, for FL_BACKTRACK arg.
71004         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
71005         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
71006         (calc_eclosure_iter, parse_bracket_exp):
71007         Use bool for internal variables that are booleans.
71008         * lib/regexec.c (re_search_internal, check_matching,
71009         proceed_next_node):
71010         (set_regs, build_sifted_states, sift_states_bkref):
71011         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
71012         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
71013         (find_collation_sequence_value):
71014         Likewise.
71015         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
71016         (re_node_set_compare):
71017         Return bool, not int. All callers changed.
71018         * lib/regexec.c (check_halt_node_context, check_dst_limits):
71019         (build_trtable, check_node_accept): Likewise.
71020         * lib/regex_internal.h: Include stdbool.h.
71021
71022         Fix bugs uncovered when converting to bool.
71023         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
71024         failure instead of charging ahead blindly.
71025         * lib/regex_internal.c (register_state): Likewise.
71026         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
71027         for freeing internal storage.
71028         (group_nodes_into_DFA_states): Use unsigned int, not int, for
71029         bitset pieces used as boolean, to avoid undefined behavior
71030         on hosts that do int overflow checking.
71031
71032 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
71033
71034         * config/srclist.txt: Add glibc bugs 1285-1287.
71035
71036 2005-09-01  Jim Meyering  <jim@meyering.net>
71037
71038         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
71039         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
71040         Require gl_STAT_MACROS, too.
71041
71042 2005-09-01  Bruno Haible  <bruno@clisp.org>
71043
71044         * gnulib-tool (import): In the first-use case, provide defaults.
71045
71046 2005-09-01  Bruno Haible  <bruno@clisp.org>
71047
71048         * gnulib-tool (func_import): Remove the .tmp files.
71049
71050 2005-09-01  Bruno Haible  <bruno@clisp.org>
71051
71052         * gnulib-tool (func_import): Fix handling of symbolic links.
71053
71054 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
71055
71056         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
71057         old glibc regex code mishandles strings longer than 2**31 bytes.
71058         This patch fixes this when the regex code is used in gnulib
71059         (i.e., outside glibc).
71060
71061         This patch should not affect the use of the regex code inside
71062         glibc.  No doubt this problem also needs to be handled for glibc
71063         as well, but the result will be an incompatible change to the
71064         glibc ABI, and the old ABI will have to be supported too.  That
71065         can be the the subject for another patch.
71066
71067         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
71068         governing whether the rest of this patch is active.  By default,
71069         the macro is disabled and the patch has no effect.
71070         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
71071         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
71072         (struct re_pattern_buffer, re_search, re_search_2, re_match):
71073         (re_match_2, re_set_registers): Use the new types.
71074         * lib/regex_internal.h (Idx, re_hashval_t): New types.
71075         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
71076         New macros.
71077         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
71078         (re_string_context_at, bin_tree_t, re_dfastate_t):
71079         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
71080         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
71081         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
71082         (re_string_char_size_at, re_string_wchar_at):
71083         (re_string_elem_size_at):
71084         Use the new types and macros to port to 64-bit hosts.
71085         Use unsigned types for internal values, so that the code
71086         mostly works even for arrays larger than SSIZE_MAX.
71087         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
71088         (search_duplicated_node, calc_eclosure_iter, fetch_number):
71089         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
71090         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
71091         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
71092         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
71093         (calc_inveclosure, parse_dup_op, build_range_exp):
71094         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
71095         (fetch_number, create_token_tree, mark_opt_subexp):
71096         Likewise.
71097         * lib/regex_internal.c (re_string_construct_common,
71098         create_ci_newstate):
71099         (create_cd_newstate, re_string_allocate, re_string_construct):
71100         (re_string_realloc_buffers, build_wcs_upper_buffer):
71101         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
71102         (re_string_reconstruct, re_string_peek_byte_case):
71103         (re_string_fetch_byte_case, re_string_context_at):
71104         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
71105         (re_node_set_init_copy, re_node_set_add_intersect):
71106         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
71107         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
71108         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
71109         (re_acquire_state, re_acquire_state_context, register_state):
71110         Likewise.
71111         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
71112         search_cur_bkref_entry):
71113         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
71114         (re_search_internal, re_search_2_stub, re_search_stub)
71115         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
71116         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
71117         (update_cur_sifted_state, check_dst_limits):
71118         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
71119         (check_subexp_limits, sift_states_bkref, merge_state_array):
71120         (check_subexp_matching_top, get_subexp, get_subexp_sub):
71121         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
71122         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
71123         (expand_bkref_cache, check_node_accept_bytes):
71124         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
71125         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
71126         (acquire_init_state_context, check_halt_node_context):
71127         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
71128         (sift_states_backward, clean_state_log_if_needed):
71129         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
71130         (find_recover_state, transit_state_sb, transit_state_mb):
71131         (transit_state_bkref, build_trtable, match_ctx_clean):
71132         Likewise.
71133         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
71134         to work around an assumption that REG_MISSING is negative.
71135
71136         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
71137         (seek_collating_symbol_entry) [defined _LIBC]:
71138         (lookup_collation_sequence_value) [defined _LIBC]:
71139         (build_range_exp, build_collating_symbol) [defined _LIBC]:
71140         Use prototypes rather than old-style function definitions.
71141         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
71142         (transit_state_sb) [0]:
71143         (find_collation_sequence_value) [defined _LIBC]: Likewise.
71144
71145         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
71146         rm_eo.
71147
71148         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
71149         (optimize_subexps, lower_subexp):
71150         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
71151         since the signed shift might overflow.  Use 1u<<31 instead.
71152         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
71153         Likewise.
71154         * lib/regexec.c (check_dst_limits_calc_pos_1,
71155         check_subexp_matching_top): Likewise.
71156
71157         * lib/regcomp.c (optimize_subexps, lower_subexp):
71158         Use CHAR_BIT rather than 8, for clarity.
71159         * lib/regexec.c (check_dst_limits_calc_pos_1):
71160         (check_subexp_matching_top): Likewise.
71161         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
71162         have to worry about portability issues when shifting it left.
71163         Remove no-longer-needed test for table_size > 0.
71164         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
71165         in a word, as the resulting behavior is undefined.
71166         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
71167         in one case, a <= should have been an <, and in another case the
71168         whole test was missing.
71169         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
71170         the standard name CHAR_BIT.
71171         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
71172         this is not true on one's complement and signed-magnitude hosts.
71173
71174         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
71175         next_last_offset.
71176         (struct re_dfa_t): Remove unused member states_alloc.
71177         * lib/regcomp.c (init_dfa): Don't initialize unused members.
71178
71179 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
71180
71181         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
71182         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
71183         and large-file glibc and in 32-bit large-file Solaris.
71184
71185 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
71186
71187         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
71188         lengths fit in regoff_t; this isn't true if regoff_t is the same
71189         width as size_t.
71190         * lib/regex.c (re_search_internal): 5th arg is LAST_START
71191         (= START + RANGE) instead of RANGE.  This avoids overflow
71192         problems when regoff_t is the same width as size_t.
71193         All callers changed.
71194         (re_search_2_stub): Check for overflow when adding the
71195         sizes of the two strings.
71196         (re_search_stub): Check for overflow when adding START
71197         to RANGE; if it occurs, substitute the extreme value.
71198
71199 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
71200
71201         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
71202
71203 2005-08-31  Jim Meyering  <jim@meyering.net>
71204
71205         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
71206         a pointer-to-const.
71207         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
71208         (register_state): Likewise.
71209         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
71210         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
71211         (group_nodes_into_DFAstates): Likewise.
71212
71213 2005-08-31  Jim Meyering  <jim@meyering.net>
71214
71215         * check-module: Add a FIXME comment.
71216
71217 2005-08-31  Eric Blake  <ebb9@byu.net>
71218
71219         * modules/unistd-safer (Files): Add unistd--.h.
71220         * modules/stdio-safer (Files): Add stdio--.h.
71221
71222 2005-08-31  Derek Price  <derek@ximbiot.com>
71223
71224         * lib/getdelim.c (getdelim): Return EOF on EOF.
71225         Reported by Larry Jones <lawrence.jones@ugs.com>.
71226
71227 2005-08-31  Bruno Haible  <bruno@clisp.org>
71228
71229         Avoid unnecessary diffs in the generated lib/Makefile.am.
71230         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
71231         the generated files.
71232         (func_import): Don't set cmd.
71233
71234 2005-08-31  Bruno Haible  <bruno@clisp.org>
71235
71236         * lib/strstr.c: Include <stddef.h>, for NULL.
71237         * lib/strcasestr.c: Likewise.
71238         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
71239
71240 2005-08-31  Bruno Haible  <bruno@clisp.org>
71241
71242         * gnulib-tool: New option --macro-prefix.
71243         (func_import): Use macro_prefix.
71244         (import): Handle option --macro-prefix.
71245
71246 2005-08-31  Bruno Haible  <bruno@clisp.org>
71247
71248         * gnulib-tool (import): Rename most ac_* variables to cached_*.
71249         Also use new variables cached_lgpl, cached_libtool.
71250
71251 2005-08-31  Bruno Haible  <bruno@clisp.org>
71252
71253         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
71254         always instantiating them.
71255
71256 2005-08-31  Bruno Haible  <bruno@clisp.org>
71257
71258         * gnulib-tool (func_import): Read the previous cached settings
71259         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
71260         earlier added by gnulib but are now dropped. Warn when a gnulib file
71261         overwrites a non-gnulib file.
71262
71263 2005-08-31  Bruno Haible  <bruno@clisp.org>
71264
71265         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
71266         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
71267         projects that don't keep autogenerated files in CVS. Put into
71268         actioncmd only the specified modules, not the transitive closure.
71269
71270 2005-08-31  Bruno Haible  <bruno@clisp.org>
71271
71272         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
71273         Create directories that shall be filled.
71274         (import): Don't look for gl_* macros in configure.ac. Recurse across
71275         all directories containing a gnulib-cache.m4 files, if meaningful.
71276
71277 2005-08-31  Bruno Haible  <bruno@clisp.org>
71278
71279         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
71280         (import): Set seen_libtool when we see gl_LIBTOOL.
71281
71282 2005-08-31  Bruno Haible  <bruno@clisp.org>
71283
71284         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
71285         declaration macro definitions from generated gnulib.m4.
71286
71287 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
71288
71289         * lib/iconvme.h: Add prototype for iconv_alloc.
71290
71291 2005-08-29  Simon Josefsson  <jas@extundo.com>
71292
71293         * lib/iconvme.c: Fix errno.
71294
71295 2005-08-29  Bruno Haible  <bruno@clisp.org>
71296
71297         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
71298         that it works when the directory contains spaces.
71299
71300 2005-08-29  Bruno Haible  <bruno@clisp.org>
71301
71302         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
71303
71304 2005-08-29  Bruno Haible  <bruno@clisp.org>
71305
71306         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
71307         Emit more advice.
71308
71309 2005-08-29  Bruno Haible  <bruno@clisp.org>
71310         and Stepan Kasal  <kasal@ucw.cz>
71311
71312         * check-module: If more parameters are given, check each of them
71313         separately; add more exceptions, as noted by Jim Meyering.
71314         (check_module): New procedure.
71315         (%exempt_header): Now contains all exceptions.
71316
71317 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
71318
71319         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
71320
71321 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
71322
71323         * lib/iconvme.c: Split iconv_string into iconv_alloc.
71324
71325 2005-08-28  Bruno Haible  <bruno@clisp.org>
71326
71327         * m4/gnulib-tool.m4: New file.
71328
71329 2005-08-27  Jim Meyering  <jim@meyering.net>
71330
71331         * modules/unistd-safer (Files): Add pipe-safer.c.
71332         * modules/fcntl-safer (Files): Add creat-safer.c.
71333
71334 2005-08-27  Jim Meyering  <jim@meyering.net>
71335
71336         * m4/stdlib-safer.m4: New file.  From coreutils.
71337         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
71338         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
71339         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
71340         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
71341         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
71342
71343 2005-08-27  Jim Meyering  <jim@meyering.net>
71344
71345         * lib/fopen-safer.c: Merge minor changes from coreutils.
71346         * lib/dup-safer.c: Likewise.
71347         * lib/fd-safer.c: Likewise.
71348
71349         Merge from coreutils.
71350         * lib/stdio--.h: New file.
71351         * lib/stdlib--.h: New file.
71352         * lib/mkstemp-safer.c: New file.
71353
71354         GNU tar needs these.
71355         * lib/pipe-safer.c: New file.
71356         * lib/creat-safer.c: New file.
71357         * lib/fcntl--.h (creat): Define to creat_safer.
71358         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
71359         * lib/unistd--.h (pipe): Define to pipe_safer.
71360         * lib/unistd-safer.h: Declare pipe_safer.
71361
71362 2005-08-26  Simon Josefsson  <jas@extundo.com>
71363
71364         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
71365         Haible <bruno@clisp.org>.
71366
71367 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
71368
71369         * lib/regex_internal.h: Remove all references to
71370         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
71371         or better.
71372         (bitset_not, bitset_merge, bitset_not_merge):
71373         (bitset_mask, re_string_allocate, re_string_construct):
71374         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
71375         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
71376         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
71377         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
71378         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
71379         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
71380         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
71381         (re_acquire_state_context):
71382         Remove unnecessary forward decls.
71383         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
71384         Put __attribute at function definition,
71385         now that the function decl has been removed.
71386         * lib/regex_internal.c (re_string_peek_byte_case):
71387         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
71388         Likewise.
71389
71390 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
71391
71392         * m4/regex.m4: Add AC_PREREQ(2.50).
71393         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
71394
71395 2005-08-25  Simon Josefsson  <jas@extundo.com>
71396
71397         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
71398         __fsetlocking.
71399
71400 2005-08-25  Simon Josefsson  <jas@extundo.com>
71401
71402         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
71403         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
71404         GLIBC specific code.
71405
71406 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
71407
71408         Make regex safe for g++.  This fixes one real bug (an "err"
71409         that should have been "*err").  g++ problem reported by
71410         Sam Steingold.
71411         * lib/regex_internal.h (re_calloc): New macro, consistent with
71412         re_malloc etc.  All callers of calloc changed to use re_calloc.
71413         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
71414         not int.  All callers changed.
71415         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
71416         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
71417         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
71418         (find_recover_state): Change "err" to "*err"; this fixes what
71419         appears to be a real bug.
71420         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
71421         versus int.
71422
71423 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
71424
71425         * modules/regex (Depends-on): Add malloc, since the code
71426         assumes that !malloc(0) means failure.
71427
71428 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
71429
71430         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
71431
71432         alloca modernization/simplification for regex.
71433         * lib/regex.c: Remove portability cruft for alloca.  This no longer
71434         needs to be at the start of the file, and can be moved into
71435         regex_internal.h and simplified.
71436         * lib/regex_internal.h: Include <alloca.h>.
71437         (__libc_use_alloca) [!defined _LIBC]: New macro.
71438         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
71439         now works outside glibc.
71440
71441 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
71442
71443         * config/srclist.txt: Add glibc bugs 1241, 1245.
71444
71445 2005-08-25  Jim Meyering  <jim@meyering.net>
71446
71447         * lib/open-safer.c: Include <config.h>.
71448         Otherwise, we'd lose LARGEFILE support in any file using
71449         e.g. "fcntl--.h"
71450
71451 2005-08-25  Bruno Haible  <bruno@clisp.org>
71452
71453         * m4/minmax.m4: Require autoconf 2.52.
71454         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
71455         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
71456         alternatives of translit over the alphabet.
71457         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
71458
71459 2005-08-24  Simon Josefsson  <jas@extundo.com>
71460
71461         * tests/test-getpass.c: New file.
71462
71463 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
71464
71465         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
71466         for GNU regex features.
71467
71468 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
71469
71470         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
71471         * lib/regex.h (regerror): Likewise.
71472
71473         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
71474         requires this.  (The code never needed it.)
71475
71476         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
71477         All uses of recently-renamed identifiers changed to use the new,
71478         POSIX-compliant names.  The code will build and run just fine
71479         without these changes, but it's better to eat our own dog food
71480         and use the standard-conforming names.
71481
71482         * lib/regex.h: Fix a multitude of POSIX name space violations.
71483         These changes have an effect only for programs that define
71484         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
71485         do not change anything for programs compiled in the normal way.
71486         Also, there is no effect on the ABI.
71487
71488         (_REGEX_SOURCE): New macro.
71489         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
71490         defined and _GNU_SOURCE is not; this fixes a name space violation.
71491
71492         Rename the following macros to obey POSIX requirements.
71493         The old names are still visible as macros if _REGEX_SOURCE is defined.
71494         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
71495         RE_BACKSLASH_ESCAPE_IN_LISTS.
71496         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
71497         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
71498         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
71499         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
71500         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
71501         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
71502         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
71503         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
71504         (REG_INTERVALS): renamed from RE_INTERVALS.
71505         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
71506         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
71507         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
71508         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
71509         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
71510         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
71511         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
71512         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
71513         RE_UNMATCHED_RIGHT_PAREN_ORD.
71514         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
71515         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
71516         (REG_DEBUG): renamed from RE_DEBUG.
71517         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
71518         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
71519         unusual, since we can't clash with the POSIX REG_ICASE.
71520         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
71521         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
71522         (REG_NO_SUB): renamed from RE_NO_SUB.
71523         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
71524         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
71525         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
71526         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
71527         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
71528         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
71529         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
71530         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
71531         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
71532         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
71533         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
71534         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
71535         RE_SYNTAX_POSIX_MINIMAL_BASIC.
71536         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
71537         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
71538         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
71539         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
71540         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
71541         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
71542         (REG_FIXED): Renamed from REGS_FIXED.
71543         (REG_NREGS): Renamed from RE_NREGS.
71544
71545         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
71546         of other REG_* macros, since POSIX says the user is allowed to
71547         #undef these macros selectively.
71548
71549         (reg_errcode_t): Update comment stating what other tables need
71550         to be consistent.
71551
71552         Rename the following enum values to obey POSIX requirements.
71553         The old names are still visible as macros.
71554         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
71555         is not defined, since GNU is supposed to be a superset of POSIX as
71556         much as possible, and since we want reg_errcode_t to be a signed
71557         type for implementation consistency.
71558         (_REG_NOERROR): Renamed from REG_NOERROR.
71559         (_REG_NOMATCH): Renamed from REG_NOMATCH.
71560         (_REG_BADPAT): Renamed from REG_BADPAT.
71561         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
71562         (_REG_ECTYPE): Renamed from REG_ECTYPE.
71563         (_REG_EESCAPE): Renamed from REG_EESCAPE.
71564         (_REG_ESUBREG): Renamed from REG_ESUBREG.
71565         (_REG_EBRACK): Renamed from REG_EBRACK.
71566         (_REG_EPAREN): Renamed from REG_EPAREN.
71567         (_REG_EBRACE): Renamed from REG_EBRACE.
71568         (_REG_BADBR): Renamed from REG_BADBR.
71569         (_REG_ERANGE): Renamed from REG_ERANGE.
71570         (_REG_ESPACE): Renamed from REG_ESPACE.
71571         (_REG_BADRPT): Renamed from REG_BADRPT.
71572         (_REG_EEND): Renamed from REG_EEND.
71573         (_REG_ESIZE): Renamed from REG_ESIZE.
71574         (_REG_ERPAREN): Renamed from REG_ERPAREN.
71575         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
71576         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
71577         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
71578         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
71579
71580         (_REG_RE_NAME, _REG_RM_NAME): New macros.
71581         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
71582         changed.  But support the old name if the new one is not defined
71583         and if _REGEX_SOURCE.
71584
71585         Change the following member names in struct re_pattern_buffer.
71586         The old names are still supported if !_REGEX_SOURCE.
71587         The new names are always supported, regardless of _REGEX_SOURCE.
71588         (re_buffer): Renamed from buffer.
71589         (re_allocated): Renamed from allocated.
71590         (re_used): Renamed from used.
71591         (re_syntax): Renamed from syntax.
71592         (re_fastmap): Renamed from fastmap.
71593         (re_translate): Renamed from translate.
71594         (re_can_be_null): Renamed from can_be_null.
71595         (re_regs_allocated): Renamed from regs_allocated.
71596         (re_fastmap_accurate): Renamed from fastmap_accurate.
71597         (re_no_sub): Renamed from no_sub.
71598         (re_not_bol): Renamed from not_bol.
71599         (re_not_eol): Renamed from not_eol.
71600         (re_newline_anchor): Renamed from newline_anchor.
71601
71602         Change the following member names in struct re_registers.
71603         The old names are still supported if !_REGEX_SOURCE.
71604         The new names are always supported, regardless of _REGEX_SOURCE.
71605         (rm_num_regs): Renamed from num_regs.
71606         (rm_start): Renamed from start.
71607         (rm_end): Renamed from end.
71608
71609         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
71610         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
71611         Prepend __ to parameter names.
71612
71613         Undo yesterday's changes.
71614
71615 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
71616
71617         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
71618         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
71619         lib/regex.c.
71620
71621 2005-08-24  Jim Meyering  <jim@meyering.net>
71622
71623         Sync from coreutils.
71624         * m4/fcntl-safer.m4: New file.
71625
71626         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
71627         and object files for this module.
71628
71629 2005-08-24  Jim Meyering  <jim@meyering.net>
71630
71631         Sync from coreutils.
71632         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
71633
71634 2005-08-24  Jim Meyering  <jim@meyering.net>
71635
71636         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
71637         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
71638
71639 2005-08-24  Jim Meyering  <jim@meyering.net>
71640
71641         * modules/fcntl-safer: New module.
71642         * modules/fts (Depends-on): Add fcntl-safer.
71643         * MODULES.html.sh (File descriptor based Input/Output):
71644         Add fcntl-safer.
71645
71646 2005-08-24  Bruno Haible  <bruno@clisp.org>
71647
71648         Support for unit test modules.
71649         * modules/README: Mention tests modules.
71650         * modules/TEMPLATE-TESTS: New file.
71651         * gnulib-tool: New options --extract-tests-module, --with-tests and
71652         --tests-base (unused for the moment).
71653         (testsbase, inctests): New variables.
71654         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
71655         (func_verify_module): Exclude TEMPLATE-TESTS.
71656         (func_verify_nontests_module, func_verify_tests_module): New functions.
71657         (func_get_dependencies): Add implicit dependency for tests modules.
71658         (func_get_tests_module): New function.
71659         (func_modules_transitive_closure): When --with-tests was specified,
71660         include the unit tests as well, unless explicitly avoided.
71661         (func_emit_lib_Makefile_am): Ignore the tests modules here.
71662         (func_emit_tests_Makefile_am): New function.
71663         (func_create_testdir): When --with-tests was specified, emit a
71664         tests/ directory.
71665         * MODULES.html.sh (Future developments): Update.
71666
71667 2005-08-24  Bruno Haible  <bruno@clisp.org>
71668
71669         * modules/tls-tests: New file.
71670         * tests/test-tls.c: New file, from GNU gettext.
71671
71672 2005-08-24  Bruno Haible  <bruno@clisp.org>
71673
71674         * modules/lock-tests: New file.
71675         * tests/test-lock.c: New file, from GNU gettext.
71676
71677 2005-08-24  Bruno Haible  <bruno@clisp.org>
71678
71679         * lib/lock.h: Add multiple inclusion guard.
71680         * lib/tls.h: Add multiple inclusion guard.
71681
71682 2005-08-24  Bruno Haible  <bruno@clisp.org>
71683
71684         * gnulib-tool: Add support for the --aux-dir option to
71685         --create-testdir, --create-megatestdir, --test, --megatest.
71686         (func_create_testdir, func_create_megatestdir): Optionally emit a
71687         AC_CONFIG_AUX_DIR directive.
71688         (create-testdir, create-megatestdir, test, megatest): Provide a
71689         default value for $auxdir.
71690
71691 2005-08-24  Bruno Haible  <bruno@clisp.org>
71692
71693         * gnulib-tool (import): Use compound statement instead of subshell
71694         where possible.
71695
71696 2005-08-24  Bruno Haible  <bruno@clisp.org>
71697
71698         * gnulib-tool (import): Change --aux-dir default to "build-aux".
71699
71700 2005-08-24  Bruno Haible  <bruno@clisp.org>
71701
71702         * gnulib-tool (func_version): Update.
71703
71704 2005-08-24  Bruno Haible  <bruno@clisp.org>
71705
71706         * gnulib-tool (func_import, func_create_testdir,
71707         func_create_megatestdir): Quote all autoconf macro arguments.
71708
71709 2005-08-24  Bruno Haible  <bruno@clisp.org>
71710
71711         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
71712         option --force, because --force causes the aclocal.m4 of each
71713         subdirectory to be newer than the corresponding config.h.in.
71714
71715 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
71716
71717         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
71718         All contents moved to gl_REGEX.
71719         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
71720         assume that it does.
71721
71722 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
71723
71724         * lib/regex.h (REG_NOSYS)
71725         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
71726         Define, since POSIX requires it as of 2001.
71727         (_REG_ENOSYS)
71728         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
71729         New private symbol, used to keep the enum signed in all cases.
71730         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
71731         Youngman in
71732         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
71733
71734         * lib/regex_internal.c (re_string_skip_chars, register_state):
71735         (calc_state_hash):
71736         Remove forward decls; no longer needed now that we use prototypes.
71737         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
71738         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
71739         (clean_state_log_if_needed): Likewise.
71740
71741 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
71742
71743         * config/srclist.txt: Add glibc bugs 1231-1233.
71744
71745 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
71746
71747         Fix problems reported by Sam Steingold in
71748         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
71749         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
71750         assumed that reg_errcode_t is a signed type, which is not
71751         necessarily true if _XOPEN_SOURCE is not defined.
71752         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
71753         since some compilers warn about it otherwise.
71754
71755 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
71756
71757         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
71758         (init_word_char, create_initial_state, duplicate_node_closure):
71759         (fetch_token, peek_token_bracket, build_range_exp):
71760         (build_collating_symbol): Remove forward decls; no longer needed
71761         now that we use prototypes.
71762
71763         * lib/regcomp.c:
71764         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
71765         (re_compile_fastmap_iter, regcomp, regerror, regfree):
71766         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
71767         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
71768         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
71769         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
71770         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
71771         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
71772         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
71773         (build_range_exp, build_collating_symbol, parse_bracket_exp):
71774         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
71775         (build_charclass, build_charclass_op, fetch_number, create_tree):
71776         (create_token_tree, mark_opt_subexp, duplicate_tree):
71777         Use prototypes rather than old-style definitions.
71778
71779         * lib/regex_internal.c:
71780         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
71781         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
71782         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
71783         (re_string_reconstruct, re_string_peek_byte_case):
71784         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
71785         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
71786         (re_node_set_init_copy, re_node_set_add_intersect):
71787         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
71788         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
71789         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
71790         (re_acquire_state, re_acquire_state_context, register_state):
71791         (create_ci_newstate, create_cd_newstate, free_state):
71792         Likewise.
71793         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
71794         re_search_2):
71795         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
71796         (re_search_internal, prune_impossible_nodes):
71797         (acquire_init_state_context, check_matching, static):
71798         (check_halt_node_context, check_halt_state_context, proceed_next_node):
71799         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
71800         (update_regs, sift_states_backward, build_sifted_states):
71801         (clean_state_log_if_needed, merge_state_array):
71802         (update_cur_sifted_state, add_epsilon_src_nodes):
71803         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
71804         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
71805         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
71806         (find_recover_state, check_subexp_matching_top, transit_state_mb):
71807         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
71808         (check_arrival, check_arrival_add_next_nodes):
71809         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
71810         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
71811         (check_node_accept_bytes, check_node_accept, extend_buffers):
71812         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
71813         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
71814         (sift_ctx_init):
71815         Likewise.
71816
71817         * lib/regex_internal.h:
71818         (re_string_allocate, re_string_construct, re_string_reconstruct):
71819         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
71820         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
71821         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
71822         (re_string_context_at, re_string_peek_byte_case):
71823         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
71824         is defined, since we now use prototypes always.
71825
71826         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
71827         C89 or better.  All uses removed.
71828
71829 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
71830
71831         * config/srclist.txt: Add glibc bugs 1220-1227.
71832
71833 2005-08-20  Jim Meyering  <jim@meyering.net>
71834
71835         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
71836         of unused local, dfa.
71837
71838 2005-08-20  Bruno Haible  <bruno@clisp.org>
71839
71840         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
71841
71842 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
71843
71844         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
71845         (re_node_set_insert_last, re_dfa_add_node):
71846         Rename local variables to avoid GCC shadowing warnings.
71847
71848 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
71849
71850         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
71851         [defined lint]: Suppress bogus uninitialized-variable warnings.
71852
71853         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
71854         and let the caller return REG_ESPACE if out of space.  This
71855         removes an uninitialied-variable warning with GCC 4.0.1, and also
71856         avoids taking the address of a local variable.  All callers
71857         changed.
71858
71859 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
71860
71861         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
71862         $LIBCSRC/posix/regexec.c.
71863         Add glibc bug 1217 for regcomp.c.
71864
71865 2005-08-19  Jim Meyering  <jim@meyering.net>
71866
71867         * lib/regexec.c (proceed_next_node): Redo local variables to
71868         avoid GCC shadowing warnings.
71869
71870 2005-08-18  Bruno Haible  <bruno@clisp.org>
71871
71872         * lib/strstr.c (strstr): Fix return value in multibyte case.
71873         * lib/strcasestr.c (strcasestr): Likewise.
71874
71875 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
71876
71877         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
71878
71879 2005-08-17  Jim Meyering  <jim@meyering.net>
71880
71881         Make the %s format (seconds since the epoch) work for a negative
71882         number and when used with a zero-padded field width, e.g. %015s.
71883
71884         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
71885         label so that it precedes the code to set `digits'.  Otherwise,
71886         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
71887         print `00-22'.  Now, it prints `-0022', as it should.
71888
71889 2005-08-17  Bruno Haible  <bruno@clisp.org>
71890
71891         * modules/strstr (Files): Add m4/mbrtowc.m4.
71892         (Depends-on): Add mbuiter.
71893
71894 2005-08-17  Bruno Haible  <bruno@clisp.org>
71895
71896         * modules/strcasestr: New file.
71897         * MODULES.html.sh (String handling, based on ANSI C 89): Add
71898         strcasestr.
71899
71900 2005-08-17  Bruno Haible  <bruno@clisp.org>
71901
71902         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
71903
71904 2005-08-17  Bruno Haible  <bruno@clisp.org>
71905
71906         * modules/mbuiter: New file.
71907         * MODULES.html.sh (Extended multibyte and wide character utilities):
71908         Add mbuiter.
71909
71910 2005-08-17  Bruno Haible  <bruno@clisp.org>
71911
71912         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
71913         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
71914
71915 2005-08-17  Bruno Haible  <bruno@clisp.org>
71916
71917         * m4/strcasestr.m4: New file.
71918
71919 2005-08-17  Bruno Haible  <bruno@clisp.org>
71920
71921         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
71922         * lib/strstr.c: Completely rewritten, with multibyte locale support.
71923
71924 2005-08-17  Bruno Haible  <bruno@clisp.org>
71925
71926         * lib/strcasestr.h: New file.
71927         * lib/strcasestr.c: New file.
71928
71929 2005-08-17  Bruno Haible  <bruno@clisp.org>
71930
71931         * lib/strcasecmp.c: Use mbuiter.h.
71932
71933 2005-08-17  Bruno Haible  <bruno@clisp.org>
71934
71935         * lib/mbuiter.h: New file.
71936
71937 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
71938
71939         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
71940         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
71941         and gl_GETOPT are both invoked via different paths (as happens
71942         with GNU tar CVS because it uses both argp and getopt), the former
71943         wins.
71944
71945 2005-08-16  Bruno Haible  <bruno@clisp.org>
71946
71947         * modules/tls: New file.
71948         * MODULES.html.sh (Multithreading): Add tls.
71949
71950 2005-08-16  Bruno Haible  <bruno@clisp.org>
71951
71952         * modules/strnlen1: New file.
71953         * MODULES.html.sh (String handling): Add strnlen1.
71954
71955 2005-08-16  Bruno Haible  <bruno@clisp.org>
71956
71957         * modules/strcase (Files): Add m4/mbrtowc.m4.
71958         (Depends-on): Add strnlen1, mbchar.
71959
71960 2005-08-16  Bruno Haible  <bruno@clisp.org>
71961
71962         * modules/mbiter: New file.
71963         * MODULES.html.sh (Extended multibyte and wide character utilities):
71964         Add mbiter.
71965
71966 2005-08-16  Bruno Haible  <bruno@clisp.org>
71967
71968         * modules/mbfile: New file.
71969         * MODULES.html.sh (Extended multibyte and wide character utilities):
71970         Add mbfile.
71971
71972 2005-08-16  Bruno Haible  <bruno@clisp.org>
71973
71974         * modules/mbchar: New file.
71975         * MODULES.html.sh (Extended multibyte and wide character utilities):
71976         New section.
71977
71978 2005-08-16  Bruno Haible  <bruno@clisp.org>
71979
71980         * m4/tls.m4: New file, from GNU gettext.
71981
71982 2005-08-16  Bruno Haible  <bruno@clisp.org>
71983
71984         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
71985         always.
71986         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
71987
71988 2005-08-16  Bruno Haible  <bruno@clisp.org>
71989
71990         * m4/mbiter.m4: New file.
71991
71992 2005-08-16  Bruno Haible  <bruno@clisp.org>
71993
71994         * m4/mbfile.m4: New file.
71995
71996 2005-08-16  Bruno Haible  <bruno@clisp.org>
71997
71998         * m4/mbchar.m4: New file.
71999
72000 2005-08-16  Bruno Haible  <bruno@clisp.org>
72001
72002         * lib/tls.h: New file, from GNU gettext.
72003         * lib/tls.c: New file, from GNU gettext.
72004
72005 2005-08-16  Bruno Haible  <bruno@clisp.org>
72006
72007         * lib/strnlen1.h: New file.
72008         * lib/strnlen1.c: New file.
72009
72010 2005-08-16  Bruno Haible  <bruno@clisp.org>
72011
72012         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
72013         (mbi_init): Update.
72014         (mbi_avail, mbi_advance): Let the iteration end before the terminating
72015         NUL byte, not after it.
72016
72017 2005-08-16  Bruno Haible  <bruno@clisp.org>
72018
72019         * lib/strcase.h (strcasecmp): Add note in comments.
72020         * lib/strncasecmp.c: Use code from strcasecmp.c.
72021         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
72022         (strcasecmp): Work correctly in multibyte locales.
72023
72024 2005-08-16  Bruno Haible  <bruno@clisp.org>
72025
72026         * lib/mbiter.h: New file.
72027
72028 2005-08-16  Bruno Haible  <bruno@clisp.org>
72029
72030         * lib/mbfile.h: New file.
72031
72032 2005-08-16  Bruno Haible  <bruno@clisp.org>
72033
72034         * lib/mbchar.h: New file.
72035         * lib/mbchar.c: New file.
72036
72037 2005-08-16  Bruno Haible  <bruno@clisp.org>
72038
72039         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
72040         the valid ones. Makes the comparison operations transitive:
72041         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
72042         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
72043
72044 2005-08-15  Simon Josefsson  <jas@extundo.com>
72045
72046         * modules/ssize_t (License): Change to 'unlimited'.
72047
72048         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
72049
72050 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
72051
72052         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
72053         Add comments for each pending glibc patch.
72054
72055 2005-08-15  Bruno Haible  <bruno@clisp.org>
72056
72057         * lib/regex.h (__restrict_arr): Don't define to __restrict if
72058         __cplusplus is defined.
72059
72060 2005-08-14  Jim Meyering  <jim@meyering.net>
72061
72062         Sync from coreutils.
72063
72064         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
72065         Use the hash-table-based cycle-detection code not just when
72066         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
72067         Reported by James Youngman in
72068         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
72069         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
72070         FTS_TIGHT_CYCLE_CHECK.
72071         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
72072         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
72073         once again.
72074         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
72075         * lib/fts.c (fd_safer): Remove decl.
72076         Include fcntl--.h rather than unistd-safer.h
72077         (fts_safe_changedir): Don't call fd_safer; no longer needed
72078         now that we include fcntl--.h.
72079
72080 2005-08-12  Simon Josefsson  <jas@extundo.com>
72081
72082         * modules/getndelim2: Use ssize_t module.
72083         * modules/getnline: Likewise.
72084         * modules/safe-read: Likewise.
72085         * modules/xreadlink: Likewise.
72086
72087         * modules/ssize_t: New file.
72088
72089 2005-08-12  Simon Josefsson  <jas@extundo.com>
72090
72091         * m4/readline.m4: Look for termcap, curses or ncurses if required.
72092
72093 2005-08-12  Simon Josefsson  <jas@extundo.com>
72094
72095         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
72096         ssize_t.
72097
72098 2005-08-12  Simon Josefsson  <jas@extundo.com>
72099
72100         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
72101         readline, getdelim and check_version.
72102         (Support for systems lacking ISO C 99: Sizes of integer types):
72103         Add size_max.
72104
72105 2005-08-12  Bruno Haible  <bruno@clisp.org>
72106
72107         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
72108
72109 2005-08-11  Simon Josefsson  <jas@extundo.com>
72110
72111         * modules/readline: New file.
72112
72113         * modules/strnlen (Files): Add strnlen.h.
72114
72115 2005-08-11  Simon Josefsson  <jas@extundo.com>
72116
72117         * m4/readline.m4: New file.
72118
72119 2005-08-11  Simon Josefsson  <jas@extundo.com>
72120
72121         * lib/readline.h, readline.c: New file.
72122
72123 2005-08-11  Simon Josefsson  <jas@extundo.com>
72124
72125         * doc/gnulib.texi (Initial import, Finishing touches): Mention
72126         gl_AVOID.
72127
72128 2005-08-11  Bruno Haible  <bruno@clisp.org>
72129
72130         * lib/strnlen.h (strnlen): Change parameter name to match comment.
72131
72132 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
72133
72134         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
72135
72136 2005-08-10  Simon Josefsson  <jas@extundo.com>
72137
72138         * tests/test-iconvme.c: New file.
72139
72140 2005-08-10  Simon Josefsson  <jas@extundo.com>
72141
72142         * m4/strnlen.m4: New file.
72143
72144         * m4/strndup.m4: Don't check for strnlen declaration, done in
72145         strnlen.m4.
72146
72147 2005-08-10  Simon Josefsson  <jas@extundo.com>
72148
72149         * lib/strndup.c: Use strnlen.h.
72150
72151         * lib/strnlen.h: New file.
72152
72153 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
72154
72155         * README: Typos.
72156
72157 2005-08-02  Simon Josefsson  <jas@extundo.com>
72158
72159         * modules/readline: New file.
72160
72161 2005-08-02  Simon Josefsson  <jas@extundo.com>
72162
72163         * modules/getdelim: New file.
72164
72165         * modules/getline: Rewrite, don't use getndelim2.
72166
72167 2005-08-02  Simon Josefsson  <jas@extundo.com>
72168
72169         * m4/getline.m4: Separate out getdelim stuff into separate module.
72170
72171         * m4/getdelim.m4: New file.
72172
72173 2005-08-02  Simon Josefsson  <jas@extundo.com>
72174
72175         * lib/getline.h, getline.c: Rewrite.
72176
72177         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
72178
72179 2005-07-31  Bruno Haible  <bruno@clisp.org>
72180
72181         * lib/lock.h (gl_lock_initializer): New macro.
72182         (gl_lock_define_initialized): Use it.
72183         (gl_rwlock_initializer): New macro.
72184         (gl_rwlock_define_initialized): Use it.
72185         (gl_recursive_lock_initializer): New macro.
72186         (gl_recursive_lock_define_initialized): Use it.
72187
72188 2005-07-30  Karl Berry  <karl@gnu.org>
72189
72190         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
72191         Report from Ben Pfaff, regarding getopt.
72192
72193 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
72194
72195         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
72196         normal way.
72197         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
72198         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
72199         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
72200         (gl_GETOPT): Use the new macros.  Most of the implementation
72201         is moved to the new macros.  This is for programs like Emacs
72202         that don't want all the functionality of gl_GETOPT.
72203
72204 2005-07-26  Bruno Haible  <bruno@clisp.org>
72205
72206         * m4/lock.m4: Update from GNU gettext.
72207
72208 2005-07-26  Bruno Haible  <bruno@clisp.org>
72209
72210         * lib/lock.h: Update from GNU gettext.
72211         * lib/lock.c: Update from GNU gettext.
72212
72213 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
72214
72215         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
72216         obsolescent AC_TRY_RUN.  Include the default includes files, for
72217         'exit'.
72218
72219 2005-07-24  Bruno Haible  <bruno@clisp.org>
72220
72221         * modules/visibility: New file.
72222         * MODULES.html.sh (Misc): Add visibility.
72223
72224 2005-07-24  Bruno Haible  <bruno@clisp.org>
72225
72226         * m4/visibility.m4: New file.
72227
72228 2005-07-24  Bruno Haible  <bruno@clisp.org>
72229
72230         * doc/visibility.texi: New file.
72231
72232 2005-07-22  Bruno Haible  <bruno@clisp.org>
72233
72234         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
72235         $(ALLOCA_H), redundant through BUILT_SOURCES.
72236         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
72237         redundant through BUILT_SOURCES.
72238         * modules/byteswap (Makefile.am): Remove explicit dependency on
72239         $(BYTESWAP_H), redundant through BUILT_SOURCES.
72240         * modules/fnmatch (Makefile.am): Remove explicit dependency on
72241         $(FNMATCH_H), redundant through BUILT_SOURCES.
72242         * modules/getopt (Makefile.am): Remove explicit dependency on
72243         $(GETOPT_H), redundant through BUILT_SOURCES.
72244         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
72245         redundant through BUILT_SOURCES.
72246         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
72247         redundant through BUILT_SOURCES.
72248         * modules/stdbool (Makefile.am): Remove explicit dependency on
72249         $(STDBOOL_H), redundant through BUILT_SOURCES.
72250         * modules/stdint (Makefile.am): Remove explicit dependency on
72251         $(STDINT_H), redundant through BUILT_SOURCES.
72252         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
72253         Remove explicit dependency on $(SYSEXITS_H).
72254         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
72255
72256 2005-07-18  Simon Josefsson  <jas@extundo.com>
72257
72258         * lib/check-version.c (check_version): Accept identical versions too.
72259
72260 2005-07-18  Bruno Haible  <bruno@clisp.org>
72261
72262         * modules/lock: New file.
72263         * MODULES.html.sh (Multithreading): New section.
72264
72265 2005-07-18  Bruno Haible  <bruno@clisp.org>
72266
72267         * m4/lock.m4: New file, from GNU gettext.
72268
72269 2005-07-18  Bruno Haible  <bruno@clisp.org>
72270
72271         * lib/lock.h: New file, from GNU gettext.
72272         * lib/lock.c: New file, from GNU gettext.
72273
72274 2005-07-18  Bruno Haible  <bruno@clisp.org>
72275
72276         * lib/lock.h (gl_once_t): New type.
72277         (gl_once_define, gl_once): New macros.
72278         * lib/lock.c (fresh_once): New variable.
72279         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
72280         functions.
72281
72282 2005-07-16  Simon Josefsson  <jas@extundo.com>
72283
72284         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
72285         workaround, suggested by Bruno.
72286
72287 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
72288
72289         * modules/xalloc (Depends-on): Add xalloc-die.
72290         * modules/xvasprintf (Depends-on): Add xalloc-die.
72291
72292 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
72293
72294         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
72295         with a minor change.
72296
72297 2005-07-15  Bruno Haible  <bruno@clisp.org>
72298
72299         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
72300         When using lib/poll.c, define poll as rpl_poll.
72301
72302 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
72303
72304         * modules/argp (Depends-on): Remove unlocked-io.
72305
72306 2005-07-14  Derek Price  <derek@ximbiot.com>
72307
72308         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
72309         for glob symlink bug.
72310
72311 2005-07-14  Bruno Haible  <bruno@clisp.org>
72312
72313         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
72314         Instead, test for *_unlocked function declarations directly.
72315
72316 2005-07-11  Simon Josefsson  <jas@extundo.com>
72317
72318         * modules/size_max: New file.
72319
72320         * modules/xsize: Depend on size_max module for size_max.m4.
72321
72322 2005-07-11  Simon Josefsson  <jas@extundo.com>
72323
72324         * lib/size_max.h: New file.
72325
72326 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
72327
72328         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
72329         copyright symbol and the year.
72330         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
72331         (version_etc_va): Use parameterized copyright notice.
72332         Reword to conform to the current GNU coding standards.
72333
72334 2005-07-11  Karl Berry  <karl@gnu.org>
72335
72336         * doc/gnulib.texi (Quoting): new node.
72337         (Initial import): more info, from Patrice.
72338
72339 2005-07-11  Bruno Haible  <bruno@clisp.org>
72340
72341         * gnulib-tool (func_usage): Document option --avoid.
72342         (Command line options): Handle --avoid.
72343         (func_acceptable): New function.
72344         (func_modules_transitive_closure): Use it.
72345
72346 2005-07-11  Bruno Haible  <bruno@clisp.org>
72347
72348         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
72349         Reported by Jim Meyering.
72350
72351 2005-07-10  Bruno Haible  <bruno@clisp.org>
72352
72353         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
72354         Needed when size_t is smaller than 'unsigned int'.
72355         Reported by Paul Eggert.
72356
72357 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
72358
72359         * modules/argp (Depends-on): Add unlocked-io
72360
72361 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
72362
72363         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
72364         block of defines.
72365
72366 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
72367
72368         * config/srclist.txt: Comment out regcomp.c, since we have a porting
72369         fix now.
72370
72371 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
72372         and Paul Eggert  <eggert@cs.ucla.edu>
72373
72374         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
72375         in wint_t, not wchar_t.  Remove now-unnecessary cast.
72376
72377 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
72378
72379         * modules/regex (Files): Add lib/regex_internal.c,
72380         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
72381         (Depends-on): Add extensions.
72382         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
72383
72384 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
72385
72386         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
72387         pathconf.
72388         * m4/same.m4 (gl_SAME): Likewise.
72389         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
72390
72391         * m4/regex.m4: Adjust to new libc regex implementation.
72392         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
72393         all the .c and .h parts of (the new) regex.
72394         Quote the m4 stuff better.
72395         Check for RE_ICASE bug of old gnulib.
72396         Check for REG_STARTEND of recent libc.
72397         Rename local variables from jm_* to gl_*.
72398         Quote operand of "test -f".
72399         Say "recent enough" version of libc, not "version 2".
72400         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
72401         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
72402         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
72403         Remove check for btowc, isascii.
72404         Require AM_LANGINFO_CODESET.
72405
72406 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
72407
72408         * lib/regex.c, regex.h: Sync from libc.
72409         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
72410         * lib/regexec.c:
72411         New files, synced from libc, except that regex_internal.h
72412         currently has a small porting fix.
72413
72414 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
72415
72416         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
72417         regex_internal.c, regexec.c.
72418         Add regex_internal.h too, but as a comment, since the libc version
72419         is currently broken in gnulib mode.
72420
72421 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
72422
72423         Support programs like Emacs that use gnulib but not gettext.
72424         * MODULES.html.sh (Internationalization functions): Add gettext-h.
72425         * modules/gettext-h: New file.
72426         * modules/gettext (Files): Remove lib/gettext.h.
72427         (Depends-on): Add gettext-h.
72428         (Makefile.am): Remove lib_SOURCES.
72429         * modules/argmatch, modules/c-stack, modules/closeout:
72430         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
72431         * modules/execute, modules/file-type, modules/getaddrinfo:
72432         * modules/getopt, modules/human, modules/javacomp:
72433         * modules/javaexec, modules/mkdir-p, modules/obstack:
72434         * modules/openat, modules/pagealign_alloc, modules/pipe:
72435         * modules/quotearg, modules/regex, modules/rpmatch:
72436         * modules/unicodeio, modules/userspec, modules/version-etc:
72437         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
72438         * modules/xsetenv:
72439         Depend on gettext-h, not gettext.
72440
72441 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
72442
72443         * gnulib-tool (func_import): Add support for 'public domain' license.
72444         * modules/alloca, modules/atexit, modules/memmove:
72445         Now public domain, not GPL.
72446         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
72447         * modules/realloc, modules/strerror, modules/strtod:
72448         Now LGPL, not GPL.
72449
72450 2005-07-05  Bruno Haible  <bruno@clisp.org>
72451
72452         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
72453         autoconf CVS. Needed for mingw.
72454
72455 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
72456
72457         Remove the dependency of the strftime module on the tzset module.
72458         * modules/strftime (Depends-on): Remove dependency on tzset.
72459
72460 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
72461
72462         Remove the dependency of the strftime module on the tzset module.
72463         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
72464         gl_FUNC_TZSET_CLOBBER.
72465
72466 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
72467
72468         Remove the dependency of the strftime module on the tzset module.
72469         * lib/strftime.c (my_strftime)
72470         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
72471         Copy the input structure, to work around some of the bug with
72472         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
72473         Solaris releases, you should also use the tzset module, but we won't
72474         require it as a dependency any more since we don't want LGPLed code
72475         to depend on GPLed code.
72476
72477 2005-07-02  Jim Meyering  <jim@meyering.net>
72478
72479         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
72480         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
72481         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
72482         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
72483
72484 2005-07-02  Jim Meyering  <jim@meyering.net>
72485
72486         * lib/backupfile.c (backup_args): Change a `0' to NULL.
72487
72488 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
72489
72490         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
72491         declares only 'struct timespec;' (!).
72492
72493 2005-07-01  Jim Meyering  <jim@meyering.net>
72494
72495         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
72496         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
72497         * lib/save-cwd.c, tempname.c:
72498         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
72499         and don't include <sys/file.h>).
72500
72501 2005-06-29  Jim Meyering  <jim@meyering.net>
72502
72503         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
72504         type name.  Use the variable name instead.
72505         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
72506         Likewise.
72507
72508 2005-06-28  Simon Josefsson  <jas@extundo.com>
72509
72510         * modules/check-version (Files): Add check-version.m4.
72511
72512 2005-06-28  Simon Josefsson  <jas@extundo.com>
72513
72514         * m4/check-version.m4: New file, suggested by Jim Meyering
72515         <jim@meyering.net>.
72516
72517 2005-06-28  Simon Josefsson  <jas@extundo.com>
72518
72519         * lib/check-version.h, lib/check-version.c: New files.
72520
72521 2005-06-28  Simon Josefsson  <jas@extundo.com>
72522
72523         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
72524         collision with global variable.  Better indentation.  Don't
72525         increment buffer pointer beyond buffer end.  Based on comments
72526         from Paul Eggert <eggert@cs.ucla.edu>.
72527
72528         * lib/base64.h: Indent.
72529
72530 2005-06-28  Simon Josefsson  <jas@extundo.com>
72531
72532         * doc/gnulib.texi (Library version handling): New section.
72533
72534 2005-06-28  Jim Meyering  <jim@meyering.net>
72535
72536         * check-module (find_included_lib_files): Hard-code another
72537         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
72538         but modules/fts-lgpl (correctly) does not list those files.
72539
72540         * modules/canonicalize (Files): Add lib/pathmax.h.
72541
72542 2005-06-25  Simon Josefsson  <jas@extundo.com>
72543
72544         * modules/check-version: New file.
72545
72546 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
72547
72548         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
72549         initializer of struct addrinfo, as an indication that we don't
72550         care how many members the structure has.
72551
72552 2005-06-24  Derek Price  <derek@ximbiot.com>
72553         and Bruno Haible  <bruno@clisp.org>
72554
72555         Remove stat module & update lstat.
72556         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
72557         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
72558         * m4/stat.m4: Remove this file.
72559
72560 2005-06-24  Derek Price  <derek@ximbiot.com>
72561         and Bruno Haible  <bruno@clisp.org>
72562
72563         Remove stat module & update lstat.
72564         * lib/stat.c: Remove this file...
72565         (slash_aware_lstat): ...moving this content and its support...
72566         * lib/lstat.c (rpl_lstat): ...into here.
72567         * lib/lstat.h: New file.
72568
72569 2005-06-24  Derek Price  <derek@ximbiot.com>
72570         and Bruno Haible  <bruno@clisp.org>
72571
72572         Remove stat module & update lstat.
72573         * config/srclist.txt (libc sources): Remove stat.
72574
72575 2005-06-24  Derek Price  <derek@ximbiot.com>
72576         and Bruno Haible  <bruno@clisp.org>
72577
72578         Remove stat module & update lstat.
72579         * MODULES.html.sh (stat): Remove.
72580         * MODULES.html: Regenerated.
72581         * modules/lstat (Description): Correct function name.
72582         (Files): Add "lstat.h".
72583         (Depends-on): Remove stat, add xalloc, stat-macros.
72584         * modules/stat: Remove this file.
72585         (Include): Add "lstat.h", remove <sys/stat.h>.
72586
72587 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
72588
72589         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
72590         (ranged_convert): Don't save conversion in a temporary struct.
72591         This causes a warning with GCC 4.0.0, and anyway in the typical
72592         case it's not worth the extra 100 bytes or so of code.
72593         (ranged_convert, __mktime_internal): When calling a function via a
72594         pointer P, use P () rather than (*P) (), as we now assume C89 or
72595         better.
72596
72597 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
72598
72599         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
72600         "who -r" failed to give output.  Problem reported by Tim Waugh.
72601
72602         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
72603         (xcalloc): Use it to avoid needless tests.
72604         Problem reported by Jim Meyering.
72605
72606 2005-06-20  Derek Price  <derek@ximbiot.com>
72607
72608         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
72609         unnecessary for Autoconfs > 2.59c.
72610
72611 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
72612
72613         * lib/argp.h (__option_is_short): Check upper limit of
72614         __key. Isprint() requires its argument to have the value
72615         of an unsigned char or EOF.
72616
72617 2005-06-16  Jim Meyering  <jim@meyering.net>
72618
72619         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
72620         when either N or S is zero.
72621
72622 2005-06-16  Derek Price  <derek@ximbiot.com>
72623
72624         * m4/bison.m4: Declare YACC & YFLAGS precious.
72625
72626 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
72627
72628         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
72629         multibyte string or pattern, fall back on unibyte matching.
72630         Problem reported by James Youngman.
72631
72632 2005-06-08  Bruno Haible  <bruno@clisp.org>
72633
72634         * modules/csharpcomp: New file.
72635         * MODULES.html.sh (C#): Add csharpcomp.
72636
72637 2005-06-08  Bruno Haible  <bruno@clisp.org>
72638
72639         * m4/csharpcomp.m4: New file, from GNU gettext.
72640
72641 2005-06-08  Bruno Haible  <bruno@clisp.org>
72642
72643         * lib/csharpcomp.h: New file, from GNU gettext.
72644         * lib/csharpcomp.c: New file, from GNU gettext.
72645         * lib/csharpcomp.sh.in: New file, from GNU gettext.
72646
72647 2005-06-08  Bruno Haible  <bruno@clisp.org>
72648
72649         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
72650         warning on mingw.
72651
72652 2005-06-07  Derek Price  <derek@ximbiot.com>
72653
72654         Sync from CVS.
72655         * lib/glob_.h: Indent nested #ifdef.
72656
72657 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
72658
72659         Sync from coreutils.
72660         Use "file name" when talking about file names, instead of "filename"
72661         or "path", as per the GNU coding standards.
72662         * lib/mkdir-p.c: Renamed from makepath.c.
72663         (make_dir_parents): Renamed from make_path.  All callers changed.
72664         * lib/mkdir-p.h: Likewise.  All includers changed.
72665         * lib/filenamecat.c: Renamed from path-concat.c.
72666         (file_name_concat): Renamed from path_concat.  All callers changed.
72667         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
72668         * lib/filenamecat.h: Likewise.  All includers changed.
72669         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
72670         in comments or local variable names.
72671         * lib/basename.c: Likewise.
72672         * lib/canonicalize.c, canonicalize.h: Likewise.
72673         * lib/dirname.c, dirname.h: Likewise.
72674         * lib/euidaccess.c: Likewise.
72675         * lib/exclude.c: Likewise
72676         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
72677         * lib/fsusage.c, fsuage.h: Likewise.
72678         * lib/fts.c, fts_.h: Likewise.
72679         * lib/getcwd.c: Likewise.
72680         * lib/getloadavg.c: Likewise.
72681         * lib/mkstemp.c: Likewise.
72682         * lib/mountlist.c, mountlist.h: Likewise.
72683         * lib/openat.c, openat.h: Likewise.
72684         * lib/readlink-stub.c: Likewise.
72685         * lib/readutmp.c, readutmp.h: Likewise.
72686         * lib/rename.c: Likewise.
72687         * lib/rmdir.c: Likewise.
72688         * lib/same.c: Likewise.
72689         * lib/savedir.c: Likewise.
72690         * lib/stripslash.c: Likewise.
72691         * lib/tempname.c: Likewise.
72692         * lib/xreadlink.c: Likewise.
72693         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
72694         All uses changed.
72695         * lib/exclude.h: Likewise.
72696
72697         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
72698         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
72699         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
72700         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
72701         * lib/pathmax.h: Include <limits.h> unconditionally, since other
72702         files have been getting away with it for years (MORE/BSD 4.3
72703         is extinct now).
72704         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
72705         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
72706
72707         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
72708         Define to 256, not 255, as per modern POSIX.
72709
72710 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
72711
72712         Sync from coreutils.
72713         Use "file name" when talking about file names, instead of "filename"
72714         or "path", as per the GNU coding standards.
72715         * MODULES.html.sh: mkdir-p renamed from makepath.
72716         filenamecat renamed from path-concat.
72717         * modules/filenamecat: Renamed from modules/path-concat.
72718         (Files): filenamecat.h and filenamecat.c renamed from
72719         path-concat.h and path-concat.c.
72720         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
72721         (Include): filenamecat.h, not path-concat.h.
72722         * modules/mkdir-p: Renamed from modules/makepath.
72723         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
72724         makepath.c.
72725         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
72726         (Include): mkdir-p.h, not makepath.h.
72727
72728 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
72729
72730         Sync from coreutils.
72731         * m4/mkdir-p.m4: Renamed from makepath.m4.
72732         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
72733         Rename files from makepath.c to mkdir-p.c, and from
72734         makepath.h to mkdir-p.h.
72735         * m4/filenamecat.m4: Renamed from path-concat.m4.
72736         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
72737         Rename files from path-concat.c to filenamecat.c,
72738         and from path-concat.h to filenamecat.h.
72739         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
72740         "file name" in local variables or comments.
72741         * m4/rename.m4: Likewise.
72742
72743 2005-06-01  Bruno Haible  <bruno@clisp.org>
72744
72745         * modules/csharpexec: New file.
72746         * MODULES.html.sh (C#): New section.
72747
72748 2005-06-01  Bruno Haible  <bruno@clisp.org>
72749
72750         * m4/csharp.m4: New file, from GNU gettext.
72751         * m4/csharpexec.m4: New file, from GNU gettext.
72752
72753 2005-06-01  Bruno Haible  <bruno@clisp.org>
72754
72755         * lib/csharpexec.h: New file, from GNU gettext.
72756         * lib/csharpexec.c: New file, from GNU gettext.
72757         * lib/csharpexec.sh.in: New file, from GNU gettext.
72758
72759 2005-05-31  Derek Price  <derek@ximbiot.com>
72760             Paul Eggert  <eggert@cs.ucla.edu>
72761
72762         Sync from cvs.
72763         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
72764
72765 2005-05-31  Derek Price  <derek@ximbiot.com>
72766             Paul Eggert  <eggert@cs.ucla.edu>
72767
72768         Sync from cvs.
72769         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
72770
72771 2005-05-29  Derek Price  <derek@ximbiot.com>
72772
72773         * config/srclist.txt (glob_.h, glob.c): Add these files.
72774
72775 2005-05-29  Derek Price  <derek@ximbiot.com>
72776
72777         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
72778         * modules/glob: New file.
72779         * modules/getlogin_r: Add link to POSIX spec in description.
72780
72781 2005-05-29  Derek Price  <derek@ximbiot.com>
72782             Paul Eggert  <eggert@cs.ucla.edu>
72783
72784         * m4/glob.m4: New file.
72785
72786 2005-05-29  Derek Price  <derek@ximbiot.com>
72787             Paul Eggert  <eggert@cs.ucla.edu>
72788
72789         * lib/glob_.h, lib/glob.c: New files.
72790
72791 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
72792
72793         * modules/fts (Files): Remove m4/inttypes-pri.m4.
72794         * modules/fts-lgpl (Depends-on): Remove gettext.
72795
72796 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
72797
72798         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
72799         and don't require gt_INTTYPES_PRI.
72800
72801 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
72802
72803         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
72804
72805         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
72806         the configuration hassle isn't worth it.
72807         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
72808         (LONGEST_MODIFIER, PRIuMAX): Remove.
72809
72810 2005-05-27  Bruno Haible  <bruno@clisp.org>
72811
72812         * lib/getlogin_r.h: Remove second include of <stddef.h>.
72813
72814 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
72815
72816         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
72817         _POSIX_PTHREAD_SEMANTICS for Solaris.
72818
72819 2005-05-25  Derek Price  <derek@ximbiot.com>
72820
72821         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
72822
72823 2005-05-25  Derek Price  <derek@ximbiot.com>
72824             Paul Eggert  <eggert@cs.ucla.edu>
72825
72826         * modules/getlogin_r, m4/getlogin_r.m4: New files.
72827         * lib/getlogin_r.c, getlogin_r.h: New files.
72828
72829 2005-05-25  Bruno Haible  <bruno@clisp.org>
72830             Derek Price  <derek@ximbiot.com>
72831
72832         * lib/getlogin_r.h: Simplify API documentation.
72833
72834 2005-05-23  Derek Price  <derek@ximbiot.com>
72835
72836         * modules/minmax (Files): Add m4/minmax.m4.
72837         (configure.ac): Add gl_MINMAX.
72838
72839 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
72840
72841         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
72842         so that unistd-safer.h (GPL'ed code) need not be included.
72843
72844 2005-05-22  Bruno Haible  <bruno@clisp.org>
72845
72846         * m4/minmax.m4: New file.
72847         Based on a patch by Derek Price <derek@ximbiot.com>.
72848
72849 2005-05-22  Bruno Haible  <bruno@clisp.org>
72850
72851         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
72852         (INT64_MIN): Fix definition.
72853         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
72854
72855         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
72856         NEED_SIGNED_INT_TYPES.
72857
72858         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
72859         HAVE_SYSTEM_INTTYPES.
72860
72861 2005-05-22  Bruno Haible  <bruno@clisp.org>
72862
72863         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
72864         Also include <sys/param.h> if it defines MIN, MAX.
72865         Based on a patch by Derek Price <derek@ximbiot.com>.
72866
72867 2005-05-21  Jim Meyering  <jim@meyering.net>
72868
72869         * modules/fts (Files): Add m4/inttypes-pri.m4.
72870         (Depends-on): Add lstat and remove gettext.  Alphabetize.
72871
72872 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
72873
72874         New fts module.
72875         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
72876         (setup_dir, free_dir): New functions.
72877         (enter_dir, leave_dir): Define trivial
72878         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
72879         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
72880         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
72881         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
72882         Move to fts-cycle.c.
72883         (fts_open): Use setup_dir.
72884         (fts_close): Use free_dir.
72885         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
72886         This adds a label and some gotos, but the alternatives were messier.
72887         Check for memory allocation failure when entering a dir.
72888         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
72889         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
72890         (FTS): New member fts_cycle, that is a union that contains the
72891         old active_dir_ht and cycle_state.  All uses changed to mention
72892         fts_cycle.ht and fts_cycle.state.
72893         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
72894         fts.c, with the following changes:
72895         (setup_dir, free_dir): New functions.
72896         (enter_dir): Now returns bool.  Return true if successful, false
72897         if memory exhausted.  All callers changed.
72898         Do not bother partly cleaning up on
72899         memory allocation failure; that is free_dir's job.
72900         However, free ad if hash_insert fails, to avoid memory leak.
72901         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
72902         fts->fts_options to see which union member to use.
72903
72904 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
72905
72906         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
72907         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
72908
72909 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
72910
72911         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
72912
72913 2005-05-20  Jim Meyering  <jim@meyering.net>
72914
72915         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
72916         Now a macro, to pacify GCC.
72917
72918 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
72919
72920         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
72921         of -1.
72922
72923 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
72924
72925         * lib/chown.c (rpl_chown): Return -1 on failure.
72926
72927 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
72928
72929         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
72930         Don't check for stddef.h.
72931         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
72932         don't use its results.
72933         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
72934         since we include them unconditionally.  Don't require
72935         AM_STDBOOL_H, since stdbool is a prerequisite.
72936         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
72937         since we assume C89 or better.
72938         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
72939         as we don't use their results.
72940         Don't check for fchdir, memmove, memset, strrchr, as we use
72941         them unconditionally.
72942         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
72943         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
72944
72945 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
72946
72947         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
72948         Include <stddef.h> unconditionally, since we assume C89 now.
72949         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
72950         * lib/fts.c: Include fts_.h first, to check interface.
72951         Do not include intprops.h; no longer needed.
72952         Include cycle-check.h and hash.h, since fts_.h no longer does.
72953         Remove unnecessary casts of closedir to void.
72954         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
72955         decide whether to decrement nlinks.
72956         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
72957         (FTS): Use struct hash_table * instead of Hash_table, so that
72958         we no longer need to include hash.h here.
72959
72960 2005-05-18  Jim Meyering  <jim@meyering.net>
72961
72962         * modules/dirfd (License): Change to LGPL.  Most of the code
72963         is already in the public domain.
72964
72965 2005-05-18  Jim Meyering  <jim@meyering.net>
72966
72967         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
72968         Reported by Yoann Vandoorselaere.
72969
72970 2005-05-17  Jim Meyering  <jim@meyering.net>
72971
72972         * m4/fts.m4: New file, from coreutils.
72973
72974 2005-05-17  Jim Meyering  <jim@meyering.net>
72975
72976         * lib/fts.c, lib/fts_.h: New files, from coreutils.
72977
72978 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
72979
72980         Sync from coreutils.
72981         * m4/unlinkdir.m4: New file.
72982
72983 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
72984
72985         Sync from coreutils.
72986         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
72987         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
72988         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
72989         White space changes only.
72990         * lib/makepath.c (make_path): Port to hosts where leading "//" is
72991         special.
72992         * lib/yesno.c: Include getline.h, not ctype.h.
72993         (yesno): Don't remove leading white space; POSIX doesn't allow it.
72994         Use getline to remove arbitrary restriction on response length.
72995
72996 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
72997
72998         * config/srclist-update: Spell out "Street" in FSF postal
72999         mail address; this is the style the FSF seems to prefer.
73000
73001         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
73002         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
73003         this updates FSF postal mail address.
73004
73005         Sync from coreutils.
73006         * modules/unlinkdir: New file.
73007         * modules/yesno (Depends-on): Add getline.
73008         * MODULES.html.sh (File system functions): Add unlinkdir.
73009
73010 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
73011
73012         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
73013         lib/strsep.h:
73014         Change the initial comment to refer to GPL, not LGPL.
73015         gnulib-tool will change it to LGPL as needed.
73016
73017         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
73018         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
73019         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
73020         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
73021         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
73022         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
73023         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
73024         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
73025         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
73026         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
73027         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
73028         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
73029         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
73030         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
73031         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
73032         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
73033         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
73034         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
73035         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
73036         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
73037         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
73038         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
73039         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
73040         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
73041         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
73042         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
73043         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
73044         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
73045         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
73046         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
73047         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
73048         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
73049         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
73050         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
73051         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
73052         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
73053         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
73054         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
73055         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
73056         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
73057         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
73058         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
73059         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
73060         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
73061         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
73062         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
73063         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
73064         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
73065         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
73066         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
73067         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
73068         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
73069         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
73070         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
73071         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
73072         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
73073         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
73074         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
73075         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
73076         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
73077         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
73078         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
73079         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
73080         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
73081         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
73082         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
73083         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
73084         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
73085         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
73086         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
73087         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
73088         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
73089         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
73090         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
73091         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
73092         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
73093         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
73094         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
73095         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
73096         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
73097         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
73098         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
73099         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
73100         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
73101         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
73102         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
73103         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
73104         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
73105         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
73106         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
73107         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
73108         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
73109         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
73110         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
73111         lib/yesno.c, lib/yesno.h:
73112         Update FSF postal mail address.
73113
73114 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
73115
73116         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
73117         tests/test-memmem.c, tests/test-stpncpy.c:
73118         Update FSF postal mail address.
73119
73120 2005-05-13  Bruno Haible  <bruno@clisp.org>
73121
73122         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
73123         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
73124         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
73125         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
73126         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
73127         Add support for 64-bit integers in the MSVC compiler.
73128
73129 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
73130
73131         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
73132
73133 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
73134
73135         * gnulib-tool (func_import): Sort and uniquify recommended includes.
73136
73137 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
73138
73139         * doc/getdate.texi (General date syntax): Don't say that date
73140         date --iso-8601=ns generates acceptable dates; it doesn't yet.
73141         Problem reported by Nic Ferrier.
73142
73143 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73144
73145         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
73146         specified in ai_socktype. Fix invalid ai_protocol
73147         check. ai_protocol is usually set to 0 or depending on
73148         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
73149         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
73150         ai_socktype / ai_protocol in the returned addrinfo structure.
73151
73152 2005-05-10  Simon Josefsson  <jas@extundo.com>
73153
73154         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
73155         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
73156
73157 2005-05-10  Karl Berry  <karl@gnu.org>
73158
73159         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
73160         (from http://www.gnu.org/licenses).
73161         * doc/COPYING.LIB: also rename to COPYING.LESSER.
73162         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
73163         fdl.texi suffices.
73164
73165 2005-05-10  Karl Berry  <karl@gnu.org>
73166
73167         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
73168         (COPYING.DOC): remove.
73169
73170         * config/srclist-update: new FSF address.
73171
73172 2005-05-10  Derek Price  <derek@ximbiot.com>
73173
73174         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
73175         possible.
73176
73177 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73178             Bruno Haible  <bruno@clisp.org>
73179
73180         * modules/inet_ntop: New file.
73181         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
73182         inet_ntop.
73183
73184 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73185             Bruno Haible  <bruno@clisp.org>
73186
73187         * m4/inet_ntop.m4: New file.
73188
73189 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73190             Bruno Haible  <bruno@clisp.org>
73191
73192         * lib/inet_ntop.h: New file.
73193         * lib/inet_ntop.c: New file, from glibc with modifications.
73194
73195 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
73196
73197         * modules/time_r (License): Change to LGPL.
73198         * modules/extensions (License): Change to LGPL.  Actually,
73199         the license is more permissive than that, but currently gnulib-tool
73200         doesn't know how to handle more-permissive licenses.
73201
73202         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
73203         Problem reported by Dave Love.
73204
73205 2005-05-08  Jim Meyering  <jim@meyering.net>
73206
73207         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
73208         blank.
73209
73210 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
73211
73212         * modules/argmatch (Depends-on): Add stdbool.
73213         * modules/backupfile (Depends-on): Likewise.
73214         * modules/chdir-long (Depends-on): Likewise.
73215         * modules/closeout (Depends-on): Likewise.
73216         * modules/cycle-check (Depends-on): Likewise.
73217         * modules/dirname (Depends-on): Likewise.
73218         * modules/fnmatch (Depends-on): Likewise.
73219         * modules/fsusage (Depends-on): Likewise.
73220         * modules/fwriteerror (Depends-on): Likewise.
73221         * modules/getcwd (Depends-on): Likewise.
73222         * modules/getloadavg (Depends-on): Likewise.
73223         * modules/hard-locale (Depends-on): Likewise.
73224         * modules/makepath (Depends-on): Likewise.
73225         * modules/mountlist (Depends-on): Likewise.
73226         * modules/nanosleep (Depends-on): Likewise.
73227         * modules/posixtm (Depends-on): Likewise.
73228         * modules/quotearg (Depends-on): Likewise.
73229         * modules/readtokens (Depends-on): Likewise.
73230         * modules/readtokens0 (Depends-on): Likewise.
73231         * modules/readutmp (Depends-on): Likewise.
73232         * modules/save-cwd (Depends-on): Likewise.
73233         * modules/strftime (Depends-on): Likewise.
73234         * modules/userspec (Depends-on): Likewise.
73235         * modules/utimecmp (Depends-on): Likewise.
73236         * modules/xgetcwd (Depends-on): Likewise.
73237         * modules/xnanosleep (Depends-on): Likewise.
73238         * modules/xstrtod (Depends-on): Likewise.
73239         * modules/yesno (Depends-on): Likewise.
73240
73241 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
73242
73243         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
73244         needless checks.
73245
73246 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
73247
73248         Merge from coreutils.  Among other things,
73249         add bulletproofing for cases where stdin, stdout, or stderr are closed.
73250         * lib/fd-safer.c: New file.
73251         * lib/fcntl-safer.h, open-safer.c: Remove.
73252         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
73253         * lib/dup-safer.c: Include unistd-safer.h first.
73254         Don't include errno.h.
73255         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
73256         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
73257         * lib/file-type.c: Rely on file-type.h change.
73258         * lib/getloadavg.c: Include unistd-safer.h.
73259         (getloadavg): Use safer open.
73260         * lib/getusershell.c: Include "stdio-safer.h".
73261         (getusershell): Use safer fopen.
73262         * lib/long-options.c (long_options): Use NULL rather than 0.
73263         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
73264         'free'.
73265         * lib/modechange.c: Likewise.
73266         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
73267         (MODE_DONE): New constant.
73268         (struct mode_change): Remove 'next' member.
73269         (make_node_op_equals): New function; like the old one of the
73270         same name, except it allocates an array.
73271         (mode_compile, mode_create_from_ref): Use it.
73272         (mode_compile): Allocate result as an array, not a linked list.
73273         Parse octal string ourself, so that we catch mistakes like "+0".
73274         (mode_adjust): Arg is an array, not a linked list.
73275         * lib/modechange.c: Include stat-macros.h, xalloc.h.
73276         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
73277         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
73278         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
73279         Remove.  This is now stat-macros.h's job.
73280         (talloc): Remove.  All callers replaced by xalloc, so that
73281         our invokers don't have to worry about reporting memory failures.
73282         (make_node_op_equals): Remove.
73283         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
73284         New constants.
73285         (struct mode_change): Moved here from modechange.h.
73286         (mode_append_entry): Remove.
73287         (mode_compile): Remove MASKED_OPS arg, since it encouraged
73288         apps to have incorrect behavior.  Use simpler algorithm for head
73289         and tail.  Don't futz with umask; that's now the job of mode_adjust.
73290         Detect more invalid usages rather than having somewhat-random behavior.
73291         Don't insert an "a=" action, as that leads to incorrect behavior.
73292         (mode_compile, mode_create_from_ref): Return NULL on error instead
73293         of an enum, since now there's only one way to have an error.  All
73294         callers changed.
73295         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
73296         at the correct time.  Simplify calculation of "+u" and its ilk.
73297         Don't mishandle "+X".
73298         (mode_free): Remove "register" and localize decls.
73299         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
73300         (struct mode_change): Move to modechange.c; callers don't
73301         need to see this stuff.
73302         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
73303         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
73304         (mode_change, mode_adjust): Reflect the new signatures noted above.
73305         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
73306         that might redefine system include files.
73307         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
73308         (my_usleep): Use NULL rather than (void *) 0.
73309         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
73310         Use siginterrupt to specify that system calls should be interrupted.
73311         (rpl_nanosleep): Move initialization of suspended closer to call of
73312         my_usleep.
73313         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
73314         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
73315         (desirable_utmp_entry): New function.
73316         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
73317         using x2nrealloc, to simplify logic.
73318         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
73319         size calculation.  Do not assume utmp file is a regular file.
73320         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
73321         (READ_UTMP_CHECK_PIDS): New constant.
73322         * lib/save-cwd.c: Include unistd-safer.h.
73323         (save_cwd): Use fd_safer.
73324         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
73325         [!_LIBC] Include "stat-macros.h" instead.
73326         * lib/unistd-safer.h (fd_safer): New decl.
73327
73328 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
73329
73330         * modules/getloadavg (Depends-on): Add unistd-safer.
73331         * modules/getusershell (Depends-on): Add stdio-safer.
73332         * modules/lstat (Depends-on): Remove xalloc.
73333         * modules/mkstemp (Depends-on): Add stat-macros.
73334         * modules/modechange (Depends-on): Remove xstrtol.
73335         Add stat-macros, xalloc.
73336         * modules/save-cwd (Depends-on): Add unistd-safer.
73337         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
73338         * modules/unistd-safer (Files): Add lib/fd-safer.c
73339         (Makefile.am): Remove lib_SOURCES.
73340
73341         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
73342         Remove fcntl-safer; unistd-safer supersedes it.
73343
73344 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
73345
73346         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
73347         AC_HEADER_STAT.
73348         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
73349         (gl_PREREQ_CHOWN): Remove.
73350         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
73351         it.  Don't require AC_HEADER_STAT.
73352         (gl_PREREQ_LSTAT): Remove.
73353         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
73354         Don't require AC_HEADER_STAT.
73355         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
73356         (gl_PREREQ_RMDIR): Remove.
73357         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
73358         mention stat-macros.h or AC_HEADER_STAT, since we'll make
73359         the stat-macros module a prerequisite.
73360         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
73361         * m4/filemode.m4 (gl_FILEMODE): Likewise.
73362         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
73363         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
73364         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
73365         variable names.
73366         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
73367         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
73368         variable prefixes.
73369         * m4/fcntl-safer.m4: Remove.
73370         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
73371         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
73372         Invoke gl_PREREQ_FD_SAFER.
73373         (gl_PREREQ_FD_SAFER): New macro.
73374         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
73375         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
73376         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
73377         Remove duplicate call to AC_LIBOBJ(readutmp).
73378         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
73379
73380         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
73381         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
73382
73383 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
73384
73385         * MODULES.html.sh (Misc): Add byteswap.
73386
73387 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
73388
73389         * modules/getcwd (Depends-on): Add extensions.
73390         * modules/openat (Depends-on): Likewise.
73391
73392 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
73393
73394         * modules/byteswap: New file.
73395
73396 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
73397
73398         * m4/byteswap.m4: New file.
73399
73400 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
73401
73402         * lib/byteswap_.h: New file.
73403
73404 2005-04-25  Karl Berry  <karl@gnu.org>
73405
73406         * m4/gettext.m4: Update from GNU gettext 0.14.4.
73407
73408 2005-04-25  Albert Chin  <china@thewrittenword.com>
73409
73410         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
73411         Toolkit C bug.
73412
73413 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
73414
73415         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
73416         (func_ln_if_changed): Remove forcibly for no error message
73417         in case file does not exist.
73418
73419 2005-04-19  Simon Josefsson  <jas@extundo.com>
73420
73421         * gnulib-tool (Options): Make --symlink mean --symbolic.
73422
73423 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
73424
73425         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
73426
73427 2005-04-16  Simon Josefsson  <jas@extundo.com>
73428
73429         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
73430
73431 2005-04-15  Simon Josefsson  <jas@extundo.com>
73432
73433         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
73434
73435 2005-04-15  Simon Josefsson  <jas@extundo.com>
73436
73437         * gnulib-tool: Rename --symlink to --symbolic.
73438
73439 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
73440
73441         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
73442         symbolic links to files instead of copying/moving.  Add --aux-dir,
73443         specifying directory relative --dir where auxiliary build tools
73444         are placed.
73445
73446 2005-04-14  Bruno Haible  <bruno@clisp.org>
73447
73448         * modules/allocsa (License): Change to LGPL.
73449         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
73450
73451 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
73452
73453         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
73454         that "UTC +1 second" continues to work.  Problem reported
73455         by Dmitry V. Levin.
73456         (relunit_snumber): New rule.
73457         (relunit): Use it.
73458
73459 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
73460
73461         * lib/getdate.y (universal_time_zone_table): New constant.
73462         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
73463         universal_time_zone_table.
73464         (lookup_zone): Prefer universal_time_zone_table to
73465         local_time_zone_table, so that "GMT" time stamps are allowed in
73466         London during the summer.  Problem reported by Ian Abbott.
73467
73468 2005-04-12  Jim Meyering  <jim@meyering.net>
73469
73470         * lib/human.c (humblock): Set *options even when returning due to
73471         xstrtoumax conversion failure.  Thanks to a used-uninitialized
73472         warning from gcc-4.
73473
73474 2005-04-09  Jim Meyering  <jim@meyering.net>
73475
73476         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
73477         -Wuninitialized: initialize tm0.tm_year.
73478
73479 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
73480
73481         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
73482         count, since there's no maximum.  All uses changed.
73483         Add member dsts_seen.
73484         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
73485         not being INT_MAX.
73486         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
73487         Use pc_rels_seen to decide whther a date is absolute.
73488
73489         * lib/getdate.y (number): Don't overwrite year.
73490         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
73491         check.
73492
73493 2005-04-02  Simon Josefsson  <jas@extundo.com>
73494
73495         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
73496         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
73497
73498 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
73499
73500         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
73501         where no absolute path name can be longer than PATH_MAX.
73502
73503 2005-03-27  Jim Meyering  <jim@meyering.net>
73504
73505         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
73506
73507 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
73508
73509         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
73510         "one's complement" -> "ones' complement" in comment, as per Knuth.
73511         "value of type" -> "type or expression" in comment.
73512         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
73513
73514 2005-03-26  Jim Meyering  <jim@meyering.net>
73515
73516         Comment nits.
73517         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
73518         Correct typos: s/or/of/.
73519
73520 2005-03-26  Jim Meyering  <jim@meyering.net>
73521
73522         * modules/check-include-files: Move to ../ and rename to...
73523         * check-module: ...this.
73524
73525 2005-03-25  Jim Meyering  <jim@meyering.net>
73526
73527         * modules/xvasprintf (Files): Add xalloc.h.
73528
73529 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
73530
73531         * modules/gettext (Files): config/config.rpath ->
73532         build-aux/config.rpath
73533         * modules/iconv (Files): Likewise.
73534         Problem reported by Oskar Liljeblad.
73535
73536 2005-03-23  Jim Meyering  <jim@meyering.net>
73537
73538         * modules/check-include-files: New script to check for
73539         missing dependencies, multiple includes, etc.
73540
73541         * modules/c-strtold (Depends-on): Add xalloc.
73542         * modules/c-strtod (Depends-on): Add xalloc.
73543         * modules/hash (Depends-on): Add xalloc.
73544         (Files): Remove lib/xalloc.h.
73545
73546         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
73547         * modules/userspec (Files): Add lib/inttostr.h.
73548
73549 2005-03-23  Jim Meyering  <jim@meyering.net>
73550
73551         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
73552
73553 2005-03-22  Jim Meyering  <jim@meyering.net>
73554
73555         * modules/stat-macros: New module.
73556         * modules/canonicalize, modules/euidaccess, modules/file-type,
73557         * modules/filemode, modules/lchown, modules/makepath,
73558         * modules/rmdir, modules/stat: Depend on new stat-macros module
73559         rather than listing lib/stat-macros.h manually.
73560         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
73561
73562 2005-03-22  Jim Meyering  <jim@meyering.net>
73563
73564         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
73565
73566 2005-03-22  Bruno Haible  <bruno@clisp.org>
73567
73568         * config/srclist.txt: Replace target directory 'config' with
73569         'build-aux'.
73570         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
73571         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
73572         ../build-aux/.
73573
73574 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
73575
73576         * modules/chdir-long (Depends-on): Add mempcpy.
73577
73578         * modules/acl, modules/backupfile, modules/c-strtod,
73579         modules/c-strtold, modules/canon-host, modules/canonicalize,
73580         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
73581         modules/exclude, modules/exitfail, modules/file-type,
73582         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
73583         modules/getdate, modules/getline, modules/getpagesize,
73584         modules/getpass, modules/getugroups, modules/group-member,
73585         modules/hard-locale, modules/hash, modules/human, modules/idcache,
73586         modules/inttostr, modules/long-options, modules/makepath,
73587         modules/md5, modules/memcasecmp, modules/memcoll,
73588         modules/modechange, modules/mountlist, modules/path-concat,
73589         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
73590         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
73591         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
73592         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
73593         modules/strftime, modules/strndup, modules/strverscmp,
73594         modules/timespec, modules/unlocked-io, modules/userspec,
73595         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
73596         modules/yesno:
73597         Remove lib_SOURCES line from Makefile.am section, as this is now
73598         done automatically by the corresponding Autoconf macro.
73599
73600 2005-03-21  Jim Meyering  <jim@meyering.net>
73601
73602         Changes imported from coreutils.
73603
73604         * lib/cycle-check.c: Don't include xalloc.h.
73605
73606         * lib/path-concat.c: Don't include assert.h.
73607         (path_concat): Remove assertion that would have triggered
73608         for ABASE starting with more than one slash.
73609         Reported by Andreas Schwab.
73610
73611         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
73612         properly when ABASE is an absolute file name.
73613         Correct the description of this function.
73614         Include <assert.h>.
73615         Add an assertion and a test driver.
73616         This fixes a bug introduced on 2004-07-02.
73617         Andreas Schwab reported the resulting failure of cp --parents:
73618         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
73619
73620 2005-03-21  Jim Meyering  <jim@meyering.net>
73621
73622         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
73623         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
73624
73625 2005-03-21  Jim Meyering  <jim@meyering.net>
73626         and  Paul Eggert  <eggert@cs.ucla.edu>
73627
73628         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
73629         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
73630         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
73631         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
73632         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
73633         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
73634         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
73635         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
73636         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
73637         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
73638         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
73639         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
73640         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
73641         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
73642         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
73643         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
73644         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
73645         for these modules.
73646
73647 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
73648
73649         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
73650         (which shouldn't happen), generate nothing instead of returning 0
73651         immediately, so that nstrftime (NULL, ...) doesn't return 0.
73652
73653 2005-03-16  Bruno Haible  <bruno@clisp.org>
73654
73655         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
73656         HAVE_LONGLONG_64BIT.
73657
73658 2005-03-16  Bruno Haible  <bruno@clisp.org>
73659
73660         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
73661         HAVE_LONGLONG_64BIT.
73662
73663 2005-03-16  Bruno Haible  <bruno@clisp.org>
73664
73665         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
73666         HAVE_LONGLONG_64BIT.
73667
73668 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
73669
73670         * lib/strftime.c (my_strftime): Prepend space to format so that we can
73671         reliably distinguish strftime failure from empty output on POSIX
73672         hosts.
73673
73674 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
73675
73676         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
73677         (iconv_string): Don't guess a size-zero buffer, as that might cause
73678         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
73679         result would be 'too large', where 'too large' is (heuristically)
73680         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
73681         overflow concerns.  This will prevent some unwanted malloc failures
73682         when the inputs are very large.
73683
73684 2005-03-15  Karl Berry  <karl@gnu.org>
73685
73686         * config/srclist.txt (config.rpath): from gettext.
73687         * config/config.rpath: update.
73688
73689 2005-03-15  Bruno Haible  <bruno@clisp.org>
73690
73691         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
73692         to 'negate'.
73693
73694         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
73695         variable.
73696
73697         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
73698         results.
73699
73700 2005-03-14  Simon Josefsson  <jas@extundo.com>
73701
73702         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
73703         <fx@gnu.org>.
73704
73705 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
73706
73707         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
73708         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
73709         intprops.h.
73710         * lib/strtol.c: Likewise.
73711
73712 2005-03-14  Jim Meyering  <jim@meyering.net>
73713
73714         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
73715         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
73716         to be nonzero so that we (and caller) can detect the difference
73717         between a valid zero-length expansion and an error return, even
73718         when the underlying strftime fails before writing anything into
73719         that location.
73720
73721 2005-03-14  Bruno Haible  <bruno@clisp.org>
73722
73723         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
73724         Update from GNU gettext 0.14.3.
73725
73726 2005-03-10  Jim Meyering  <jim@meyering.net>
73727
73728         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
73729
73730 2005-03-10  Jim Meyering  <jim@meyering.net>
73731
73732         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
73733         so that this module works on systems without fchdir.
73734
73735 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
73736
73737         Factor int-properties macros into a single file, except for
73738         glibc-related files.
73739         * lib/intprops.h: New file.
73740         * lib/getloadavg.c: Include it instead of limits.h.
73741         (INT_STRLEN_BOUND): Remove.
73742         * lib/human.c: Include intprops.h.
73743         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
73744         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
73745         302/1000.
73746         * lib/inttostr.h: Include intprops.h instead of limits.h.
73747         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
73748         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
73749         for consistency with intprops.h.
73750         (time_t_is_integer, twos_complement_arithmetic): Use them.
73751         * lib/sig2str.h: Include <signal.h>, intprops.h.
73752         (INT_STRLEN_BOUND): Remove.
73753         * lib/strftime.c (TYPE_SIGNED): Remove.
73754         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
73755         * lib/strtol.c: Adjust comments to match intprops.h.
73756         * lib/userspec.c: Include intprops.h.
73757         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
73758         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
73759         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
73760         instead of rolling our own expressions.
73761         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
73762
73763         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
73764         instead of int.
73765         (my_strftime): Do not mishandle years close to INT_MAX, by doing
73766         the right thing even if adding 1900 would overflow.  Similarly
73767         for tm_mon + 1 and tm_yday + 1.
73768         Make %Y always equivalent to %C%y, and similarly for %G and %g.
73769         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
73770         (DO_SIGNED_NUMBER): New macro.
73771         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
73772
73773 2005-03-07  Bruno Haible  <bruno@clisp.org>
73774
73775         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
73776
73777 2005-03-07  Bruno Haible  <bruno@clisp.org>
73778
73779         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
73780
73781 2005-03-04  Derek R. Price  <derek@ximbiot.com>
73782
73783         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
73784         (func_import): Only replace files via --import when they have actually
73785         changed.
73786
73787 2005-03-03  Derek R. Price  <derek@ximbiot.com>
73788
73789         * m4/mmap-anon.m4: New file.
73790         * m4/pagealign_alloc.m4: New file.
73791
73792 2005-03-03  Derek R. Price  <derek@ximbiot.com>
73793             Bruno Haible  <bruno@clisp.org>
73794
73795         * modules/pagealign_alloc: New file.
73796         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
73797
73798 2005-03-03  Derek R. Price  <derek@ximbiot.com>
73799             Bruno Haible  <bruno@clisp.org>
73800
73801         * lib/pagealign_alloc.h: New file.
73802         * lib/pagealign_alloc.c: New file.
73803
73804 2005-03-03  Bruno Haible  <bruno@clisp.org>
73805
73806         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
73807         Use an all-permissive copyright notice, recommended by RMS.
73808
73809 2005-03-02  Bruno Haible  <bruno@clisp.org>
73810
73811         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
73812         of AIX, the replacement has to be done only after <string.h> is
73813         included, therefore not in config.h. stpncpy.h does the replacement,
73814         and stpncpy.c uses it.
73815
73816 2005-03-02  Bruno Haible  <bruno@clisp.org>
73817
73818         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
73819         stpncpy.c uses it.
73820
73821 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
73822
73823         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
73824         The workaround isn't strictly needed for POSIX conformance, and
73825         it's too much of a pain to configure and maintain.  We'll ask
73826         people to fix their kernels instead.
73827         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
73828         (NANOSLEEP_BUG_WORKAROUND): Remove.
73829         (xnanosleep): Remove the workaround.
73830
73831 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
73832
73833         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
73834         Reported by Derek Price.
73835         (Include): Add "timespec.h".
73836
73837         * modules/xnanosleep (Depends-on): Remove gethrxtime.
73838
73839 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
73840
73841         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
73842         to detect nanosleep bug.
73843
73844 2005-03-01  Bruno Haible  <bruno@clisp.org>
73845
73846         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
73847
73848 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
73849
73850         * modules/gethrxtime: New file.
73851         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
73852         (Depends-on): Add gethrxtime.
73853         (configure.ac): Add gl_XNANOSLEEP.
73854         (Makefile.am): Remove lib_SOURCES line.
73855
73856 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
73857
73858         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
73859         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
73860
73861 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
73862
73863         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
73864         * lib/timespec.h (gettime): Return void, since it always
73865         succeeds now.  All uses changed.
73866         * lib/gettime.c (gettime): Likewise.
73867         [HAVE_NANOTIME]: Prefer nanotime.
73868         Assume gettimeofday succeeds, as POSIX requires.
73869         Assime time () succeeds, since other code already does.
73870         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
73871         (timespec_subtract): Remove.
73872         (NANOSLEEP_BUG_WORKAROUND): New constant.
73873         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
73874         things considerably.  Use it only on GNU/Linux hosts, since the
73875         workaround shouldn't be needed elsewhere.
73876
73877 2005-02-24  Bruno Haible  <bruno@clisp.org>
73878
73879         * modules/gettext (Files): Add m4/glibc2.m4.
73880
73881 2005-02-24  Bruno Haible  <bruno@clisp.org>
73882
73883         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
73884         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
73885         * m4/progtest.m4:
73886         Update from GNU gettext 0.14.2.
73887         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
73888
73889 2005-02-24  Bruno Haible  <bruno@clisp.org>
73890
73891         * lib/localcharset.c: Update from GNU gettext 0.14.2.
73892         * lib/config.charset: Update from GNU gettext 0.14.2.
73893
73894 2005-02-24  Bruno Haible  <bruno@clisp.org>
73895
73896         * lib/gettext.h: Update from GNU gettext 0.14.2.
73897
73898 2005-02-23  Simon Josefsson  <jas@extundo.com>
73899
73900         * m4/iconvme.m4: New file.
73901
73902 2005-02-23  Jim Meyering  <jim@meyering.net>
73903
73904         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
73905         change.
73906         Thanks to Bruno Haible for catching it.
73907
73908 2005-02-22  Simon Josefsson  <jas@extundo.com>
73909
73910         * modules/iconvme: New file.
73911
73912         * MODULES.html.sh: Add iconvme.
73913
73914 2005-02-22  Simon Josefsson  <jas@extundo.com>
73915
73916         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
73917
73918 2005-02-22  Simon Josefsson  <jas@extundo.com>
73919
73920         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
73921
73922 2005-02-22  Jim Meyering  <jim@meyering.net>
73923
73924         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
73925         s/ifndef/ifdef/.
73926
73927 2005-02-20  Neil Conway  <neilc@samurai.com>
73928
73929         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
73930         returned by OSX/Darwin if the specified buffer is not large
73931         enough for the hostname.
73932
73933 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
73934
73935         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
73936         pass it to _help, otherwise the latter coredumps trying to
73937         dereference state.root_argp.
73938
73939 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
73940
73941         * modules/chdir-long (Depends-on): Add memrchr.
73942         * modules/memrchr (Files): Add lib/memrchr.h.
73943         (Include): "memrchr.h".
73944
73945 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
73946
73947         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
73948
73949 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
73950
73951         * lib/memrchr.h: New file.
73952         * lib/chdir-long.c: Include it.
73953         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
73954         Don't bother including stddef.h.
73955
73956 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
73957
73958         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
73959         inclusion.
73960         Include <sys/types.h>, for dev_t.
73961         (ME_DUMMY, ME_REMOTE): Move from here....
73962         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
73963         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
73964         Dmitry V. Levin.
73965         Include mountlist.h first, to test the interface.
73966
73967 2005-01-29  Bruno Haible  <bruno@clisp.org>
73968
73969         * lib/progname.c (program_name): Initialize.
73970         Needed when linking statically on MacOS X.
73971
73972 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
73973
73974         Sync from coreutils.
73975         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
73976         (Depends-on): Add c-strtod.
73977         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
73978
73979 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
73980
73981         Sync from coreutils.
73982         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
73983
73984         Remove files that are specific to coreutils.
73985         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
73986
73987 2005-01-28  Bruno Haible  <bruno@clisp.org>
73988
73989         * modules/javacomp: New file.
73990         * MODULES.html.sh (Java): Add javacomp.
73991
73992 2005-01-28  Bruno Haible  <bruno@clisp.org>
73993
73994         * m4/javacomp.m4: New file, from GNU gettext.
73995
73996 2005-01-28  Bruno Haible  <bruno@clisp.org>
73997
73998         * lib/javacomp.sh.in: New file, from GNU gettext.
73999         * lib/javacomp.h: New file, from GNU gettext.
74000         * lib/javacomp.c: New file, from GNU gettext.
74001
74002 2005-01-26  Simon Josefsson  <jas@extundo.com>
74003
74004         * lib/gai_strerror.c: Use GPL in header.
74005
74006 2005-01-26  Bruno Haible  <bruno@clisp.org>
74007
74008         * modules/javaexec: New file.
74009         * MODULES.html.sh (Java): Add javaexec.
74010
74011 2005-01-26  Bruno Haible  <bruno@clisp.org>
74012
74013         * m4/javaexec.m4: New file, from GNU gettext.
74014
74015 2005-01-26  Bruno Haible  <bruno@clisp.org>
74016
74017         * lib/javaexec.sh.in: New file, from GNU gettext.
74018         * lib/javaexec.h: New file, from GNU gettext.
74019         * lib/javaexec.c: New file, from GNU gettext.
74020
74021 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74022
74023         * modules/lchown (Depends-on): Remove lchown.h
74024
74025 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74026
74027         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
74028         must be defined if the header file was not found, in order
74029         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
74030
74031 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74032
74033         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
74034         initializers for struct pentry_state.
74035         (__argp_error): Check return value of __asprintf
74036         (__argp_failure): Translate error message
74037
74038         * lib/argp-parse.c: Removed braces around the expansion of N_()
74039
74040 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
74041
74042         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
74043         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
74044         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
74045         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
74046         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
74047         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
74048         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
74049         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
74050         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
74051         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
74052         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
74053         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
74054         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
74055         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
74056         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
74057         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
74058         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
74059         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
74060         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
74061         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
74062         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
74063         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
74064         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
74065         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
74066         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
74067         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
74068         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
74069         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
74070         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
74071         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
74072         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
74073         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
74074         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
74075         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
74076         xstrtol.m4, xstrtoumax.m4, yesno.m4:
74077         Use an all-permissive copyright notice, recommended by RMS.
74078
74079 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
74080
74081         * modules/chdir-long (Depends-on): Remove mempcpy.
74082
74083 2005-01-21  Jim Meyering  <jim@meyering.net>
74084
74085         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
74086         same value as for Solaris 9.
74087
74088         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
74089         component length.  This included changing the parameter to be
74090         of type `char *' rather than `char const *'.
74091         * lib/chdir-long.h (chdir_long): Update prototype.
74092
74093         * lib/openat.c (fdopendir, fstatat): New functions.
74094         * lib/openat.h: Include headers required for use of DIR and struct
74095         stat.
74096         [AT_SYMLINK_NOFOLLOW]: Define.
74097         (fdopendir, fstatat): Add prototypes.
74098
74099 2005-01-21  Bruno Haible  <bruno@clisp.org>
74100
74101         * modules/classpath: New file.
74102         * MODULES.html.sh (Java): Add classpath.
74103
74104 2005-01-21  Bruno Haible  <bruno@clisp.org>
74105
74106         * lib/classpath.h: New file, from GNU gettext.
74107         * lib/classpath.c: New file, from GNU gettext.
74108
74109 2005-01-20  Simon Josefsson  <jas@extundo.com>
74110
74111         * modules/version-etc-fsf: New file.
74112
74113 2005-01-20  Simon Josefsson  <jas@extundo.com>
74114
74115         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
74116         * lib/version-etc.c: Remove version_etc_copyright.
74117         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
74118         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
74119
74120 2005-01-20  Simon Josefsson  <jas@extundo.com>
74121
74122         * lib/base64.h (isbase64): Add.
74123
74124         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
74125         using a unsigned prototype, don't inline.
74126         (base64_decode): Use it.
74127
74128 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
74129
74130         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
74131         it.
74132
74133 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
74134
74135         * lib/save-cwd.c (save_cwd): Remove code to support the case
74136         where fchdir is missing or flaky.
74137
74138 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
74139
74140         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
74141
74142 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
74143
74144         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
74145         AC_LIBSOURCES now does this.
74146         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
74147         with new ullong_max module.
74148
74149 2005-01-19  Bruno Haible  <bruno@clisp.org>
74150
74151         * modules/sh-quote: New file.
74152         * MODULES.html.sh (Executing programs): Add sh-quote.
74153
74154 2005-01-19  Bruno Haible  <bruno@clisp.org>
74155
74156         * lib/sh-quote.h: New file, from GNU gettext.
74157         * lib/sh-quote.c: New file, from GNU gettext.
74158
74159 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
74160
74161         Merge from coreutils.
74162         * m4/ullong_max.m4: New file.
74163         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
74164         (gl_MACROS): Assume localeconv exists.
74165
74166 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
74167
74168         Merge changes from coreutils, as described below in several
74169         changelogs dated today.
74170
74171         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
74172         (O_DIRECTORY): Remove; not needed here, since "." must be
74173         a directory.  All uses removed.
74174         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
74175         universal on Suns, and we also need to test for IRIX.
74176         Revamp code to use 'if' rather than '#if'.
74177         Avoid unnecessary comparison of cwd->desc to 0.
74178
74179         * lib/utimens.c (futimens): Robustify the previous patch, by checking
74180         for known valid error numbers rather than observed invalid ones.
74181
74182 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
74183
74184         * modules/ullong_max: New file.
74185
74186         * modules/chdir-long, modules/openat: New files.
74187         * modules/save-cwd (Depends-on): Depend on chdir-long.
74188         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
74189
74190 2005-01-18  Jim Meyering  <jim@meyering.net>
74191
74192         Merge from coreutils.
74193         * m4/chdir-long.m4, m4/openat.m4: New files.
74194         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
74195         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
74196         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
74197         is sane and DOES follow symlinks.  Besides, testing 20 different
74198         systems found no broken chown implementations.
74199         Prompted by a change in rsync's copy of this macro.
74200         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
74201
74202         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
74203
74204         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
74205         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
74206         NULL-means-set-to-current-time semantics.
74207         Remove temporary file immediately, rather than waiting
74208         for configure's at-exit trap code to do it.
74209
74210 2005-01-18  Jim Meyering  <jim@meyering.net>
74211
74212         * lib/version-etc.c (version_etc_copyright): Update copyright date.
74213
74214         * lib/utimens.c (futimens): Account for the fact that futimes
74215         can also fail with errno == ENOSYS or errno == ENOENT.
74216         Patch from Dmitry V. Levin.
74217
74218         Change the name of the robust chdir function from chdir to chdir_long.
74219         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
74220         (restore_cwd): Use chdir_long, not chdir.
74221         * lib/chdir-long.c: Renamed from chdir.c.
74222         * lib/chdir-long.h: Renamed from chdir.h.
74223         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
74224         Hurd.
74225
74226 2005-01-18  Bruno Haible  <bruno@clisp.org>
74227
74228         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
74229         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
74230         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
74231         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
74232         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
74233         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
74234         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
74235         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
74236         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
74237         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
74238         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
74239         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
74240         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
74241         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
74242         Use an all-permissive copyright notice, recommended by RMS.
74243
74244 2005-01-18  Bob Proulx  <bob@proulx.com>
74245
74246         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
74247         simplify offsetof() macro construct to avoid compile failure with
74248         native HP-UX 11.0 ANSI C compiler.
74249
74250 2005-01-17  Bruno Haible  <bruno@clisp.org>
74251
74252         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
74253         redundant because stpncpy.m4 takes care of it.
74254
74255 2005-01-17  Bruno Haible  <bruno@clisp.org>
74256
74257         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
74258
74259 2005-01-17  Bruno Haible  <bruno@clisp.org>
74260
74261         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
74262         used.
74263
74264 2005-01-17  Bruno Haible  <bruno@clisp.org>
74265
74266         * lib/fwriteerror.h (fwriteerror): Change specification to include
74267         fclose.
74268         * lib/fwriteerror.c: Include <stdbool.h>.
74269         (fwriteerror): At the end, close the file stream. Record whether
74270         stdout was already closed.
74271
74272 2005-01-17  Bruno Haible  <bruno@clisp.org>
74273
74274         * lib/execute.c (environ): Declare if needed.
74275         * lib/pipe.c (environ): Likewise.
74276         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
74277
74278 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74279
74280         * modules/argp: Depend on vsnprintf
74281
74282 2005-01-10  Jim Meyering  <jim@meyering.net>
74283
74284         * modules/closeout (Depends-on): Add atexit.
74285
74286 2005-01-06  Bruno Haible  <bruno@clisp.org>
74287
74288         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
74289
74290 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
74291
74292         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
74293         definitions to be after all include files, to avoid collisions.
74294         Problem reported by Bob Proulx.
74295
74296 2005-01-04  Jim Meyering  <jim@meyering.net>
74297
74298         Changes imported from coreutils.
74299         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
74300         as the mkstemp template, use a temporary directory and an
74301         8.3-friendly template to avoid trouble on systems like DJGPP.
74302         Reported by Juan M. Guerrero via Stepan Kasal.
74303         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
74304         close. Remove the temporary directory right away, rather than waiting
74305         for configure's at-exit trap code to do it.
74306         Suggestion from Stepan Kasal.
74307
74308 2005-01-01  Simon Josefsson  <jas@extundo.com>
74309
74310         * gnulib-tool: Print #include directives when --import'ing.
74311
74312 2004-12-28  Simon Josefsson  <jas@extundo.com>
74313
74314         * tests/test-base64.c: Include required header files.  Remove
74315         unused variables.
74316
74317 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
74318
74319         * modules/error (Depends-on): Remove gettext.
74320
74321 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
74322
74323         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
74324         not needed.  This removes a dependency on the gettext module.
74325         [defined _LIBC]: Do not include <libintl.h>; not needed.
74326
74327 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
74328
74329         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
74330         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
74331
74332 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
74333
74334         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
74335         HAVE_DECL_STRTOLD.
74336
74337 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
74338
74339         * modules/getdate (Depends-on): Remove alloca-opt.
74340
74341 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
74342
74343         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
74344
74345 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
74346
74347         * lib/argp-parse.c: Include <stddef.h>.
74348         (alignof, alignto): New macros.
74349         (parser_init): Don't assume that void * is aligned sufficiently
74350         for struct option.
74351
74352         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
74353         need to extend the stack.
74354         (YYINITDEPTH): New macro, so that the initial stack isn't overly
74355         large.
74356
74357 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74358
74359         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
74360
74361 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
74362
74363         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
74364         (2004-10-24) change.  Apparently this was a false alarm.
74365
74366         * modules/getdate: Depend on alloca-opt, not alloca.
74367
74368 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
74369
74370         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
74371         Remove now-obsolete comment about AIX.
74372         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
74373         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
74374         (YYMAXDEPTH): New macro.
74375
74376 2004-12-18  Simon Josefsson  <jas@extundo.com>
74377
74378         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
74379
74380 2004-12-18  Bruno Haible  <bruno@clisp.org>
74381
74382         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
74383
74384 2004-12-18  Bruno Haible  <bruno@clisp.org>
74385
74386         * lib/fatal-signal.c (fatal_signals): Make non-const.
74387         (init_fatal_signals): New function.
74388         (uninstall_handlers, install_handlers): Ignore signals that were set to
74389         SIG_IGN.
74390         (at_fatal_signal): Call init_fatal_signals.
74391         (init_fatal_signal_set): Likewise. Ignore signals that were set to
74392         SIG_IGN.
74393         Reported by Paul Eggert.
74394
74395 2004-12-18  Bruno Haible  <bruno@clisp.org>
74396
74397         * doc/alloca.texi: New file.
74398         * doc/alloca-opt.texi: New file.
74399
74400 2004-12-17  Jim Meyering  <jim@meyering.net>
74401
74402         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
74403         Otherwise, install-sh could exit with improper exit status when
74404         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
74405
74406 2004-12-16  Simon Josefsson  <jas@extundo.com>
74407
74408         * tests/test-base64.c: Add license.
74409
74410 2004-12-15  Stepan Kasal  <address@hidden>
74411
74412         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
74413
74414 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
74415
74416         * modules/getcwd (Files): Add m4/d-ino.m4.
74417         Suggested by Mark D. Baushke.
74418
74419 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
74420
74421         * lib/getdate.y (textint): New member "negative".
74422         (time_zone_hhmm): New function.
74423         Expect 14 shift-reduce conflicts, not 13.
74424         (o_colon_minutes): New rule.
74425         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
74426         (yylex): Set the "negative" member of signed numbers.
74427
74428 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
74429
74430         * doc/getdate.texi (Time of day items, Time zone items):
74431         Describe new formats +00:00, UTC+00:00.
74432
74433 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
74434
74435         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
74436         spurious "-l"s.  Problem reported by Stepan Kasal.
74437
74438 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
74439
74440         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
74441         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
74442
74443 2004-12-04  Simon Josefsson  <jas@extundo.com>
74444
74445         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
74446         Vandoorselaere <yoann@prelude-ids.org>.
74447
74448 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
74449
74450         Changes imported from coreutils.
74451         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
74452         exist.
74453         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
74454
74455 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
74456
74457         Changes imported from coreutils.
74458         * lib/hard-locale.c: Assume <locale.h> exists.
74459         Include "strdup.h".
74460         (GLIBC_VERSION): New macro.
74461         (hard_locale): Assume setlocale exists.
74462         Rewrite to avoid #ifdef.
74463         Use strdup rather than malloc + strcpy.
74464         * lib/human.c: Assume <locale.h> exists.
74465         (human_readable): Assume localeconv exists.
74466
74467 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
74468
74469         * modules/hard-locale (Depends-on): Add strdup.
74470
74471 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
74472
74473         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
74474         convert T2, not T.  (Imported from libc.)
74475
74476 2004-11-30  Simon Josefsson  <jas@extundo.com>
74477
74478         * modules/restrict (License): Change to LGPL.
74479
74480 2004-11-30  Simon Josefsson  <jas@extundo.com>
74481
74482         * m4/restrict.m4: Add copyright and copying conditions.
74483
74484 2004-11-30  Simon Josefsson  <jas@extundo.com>
74485
74486         * m4/base64.m4: New file.
74487
74488 2004-11-30  Simon Josefsson  <jas@extundo.com>
74489
74490         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
74491         base64.
74492
74493         * tests/test-base64.c: New file.
74494
74495         * modules/base64: New file.
74496
74497 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
74498
74499         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
74500         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
74501
74502         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
74503
74504 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
74505
74506         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
74507         (__getcwd.c): Don't restore errno; glibc doesn't.
74508         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
74509         first, falling back to our code only if its results look suspicious.
74510         Ensure that the resulting buffer is only as large as necessary.
74511
74512         * lib/readutmp.c: Include readutmp.h first.
74513         Include <errno.h>, since readutmp.h no longer does that.
74514         * lib/readutmp.h: Don't include <errno.h>,
74515         <sys/param.h>, <time.h>; not needed to establish interface.
74516         (errno): Remove decl.
74517         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
74518         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
74519         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
74520
74521 2004-11-28  Simon Josefsson  <jas@extundo.com>
74522
74523         * lib/base64.h, base64.c: New file.
74524
74525 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
74526
74527         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
74528
74529 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
74530
74531         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
74532         (Depends-on): Remove pathmax, same.  Add mempcpy.
74533         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
74534         (Makefile.am): Append getcwd.h to lib_SOURCES.
74535         (Include): Add getcwd.h.
74536         (Maintainer): Change from Jim Meyering to "all, glibc",
74537         since getdate now uses intended-for-glibc code.
74538         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
74539         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
74540
74541 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
74542
74543         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
74544         HP's ANSI C compiler.
74545         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
74546         Declaring int functions causes warnings on some modern systems and
74547         shouldn't be needed to compile on ancient ones.
74548         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
74549         defined.
74550
74551         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
74552         with the following changes.
74553         (__set_errno): Parenthesize properly.
74554         Include <stdbool.h>.
74555         (MIN, MAX, MATCHING_INO): New macros.
74556         (__getcwd): Define with prototype, not K&R form.
74557         Use heuristics to allocate default buffer on stack if possible.
74558         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
74559         behavior, and to avoid the PATH_MAX limit when computing
74560         ../../../../...
74561         Use MATCHING_INO to compare inode number to file.
74562         Check for arithmetic overflow in size calculations.
74563         Fix bug in reallocation of dot array that caused getcwd to fail
74564         on directories nested deeper than 75.
74565         Be more careful about saving errno on error.
74566         Do not use realloc; use only free+malloc, as this is a bit
74567         more flexible and avoids a needless copy operation.
74568         Do not inspect st_dev and st_ino for symbolic links; POSIX
74569         doesn't specify the latter.
74570         Check for closedir errors.
74571         Avoid needless casts.
74572         Use "#ifdef weak_alias" around weak_alias, to be like other
74573         glibc code.
74574         The following changes to getcwd.c have effect only when used in
74575         gnulib; they have no effect inside glibc proper.
74576         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
74577         as alloca isn't used.
74578         (alloca, __alloca): Likewise.
74579         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
74580         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
74581         unconditionally, as gnulib assumes C89 or better.
74582         Do not include <sys/param.h>.
74583         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
74584         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
74585         better.
74586         (NULL) [!defined NULL]: Remove; we assume C89 or better.
74587         Include <dirent.h> in a way that is compatible with modern Autoconf.
74588         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
74589         New macros, if not already defined.
74590         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
74591         Use "_LIBC", not "defined _LIBC", for consistency.
74592         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
74593         a mempcpy module.
74594         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
74595         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
74596         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
74597         credit only to Jim Meyering and adjust the copyright dates.
74598         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
74599         <stdlib.h>, <unistd.h>, "pathmax.h".
74600         Instead, include "xgetcwd.h" (first) and "getcwd.h".
74601         (INITIAL_BUFFER_SIZE): Remove.
74602         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
74603
74604 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
74605
74606         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
74607         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
74608         Use the _ONCE methods, for efficiency.
74609         Check for fcntl.h.  In test program, include <errno.h>
74610         and <fcntl.h> if available.  Remove old K&R cruft from
74611         test program.  Check for common errors in GNU/Linux,
74612         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
74613         don't do AC_LIBOBJ, as that's getcwd.m4's job.
74614         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
74615         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
74616         name accordingly.
74617         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
74618         accommodate new getcwd.c.
74619         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
74620         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
74621         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
74622         that's all we need now.
74623
74624 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74625
74626         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
74627         argp-parse.c depends on getopt internals, that means we should
74628         always use our getopt, to be on the safe side.
74629         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
74630         order not to spoil the result of an eventual previous invocation
74631         of gl_GETOPT_SUBSTITUTE.
74632
74633 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74634
74635         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
74636         redefinition warnings. To avoid them, include the defines
74637         in `#if !defined __need_getopt ... #endif'. The only place
74638         where __getopt_argv_const is used is in definitions
74639         of getopt_long and getopt_long_only below, which are as well
74640         protected by `#ifndef __need_getopt'.
74641         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
74642         __need_getopt after including <stdio.h> and <unistd.h> These
74643         headers might have defined it.
74644
74645 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
74646
74647         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
74648
74649 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
74650
74651         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
74652         (futimens): New function, which uses futimes if available.
74653         (futimens, utimens): Support timespec==NULL, with same semantics
74654         as utime and utimens.
74655         * lib/utimens.h (futimens): New decl.
74656
74657 2004-11-23  Jim Meyering  <jim@meyering.net>
74658
74659         * lib/getopt_.h: Remove trailing blanks.
74660
74661 2004-11-23  Jim Meyering  <jim@meyering.net>
74662
74663         * lib/__fpending.c: Add comment.
74664
74665 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
74666
74667         * modules/canonicalize (Depends-on): Add xreadlink.
74668         Problem reported by James Youngman.
74669
74670 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
74671
74672         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
74673         New macros.
74674         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
74675         optopt): Use them instead of invoking ## directly; otherwise, the
74676         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
74677
74678 2004-11-19  Bruno Haible  <bruno@clisp.org>
74679
74680         * lib/strtok_r.c: Move comments from here...
74681         * lib/strtok_r.h: ... to here.
74682
74683 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
74684
74685         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
74686         implementations that mishandle size_t overflow.
74687
74688 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
74689
74690         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
74691         might fail.  Problem reported by Yoann Vandoorselaere.
74692         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
74693         implementations that mishandle size_t overflow.
74694
74695 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
74696
74697         * modules/canon-host (Depends-on): Add strdup.
74698
74699 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
74700
74701         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
74702
74703 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
74704
74705         * lib/canon-host.c: Include "strdup.h".
74706         (canon_host): Use getaddrinfo if available, so that IPv6 works.
74707         Use strdup instead of malloc/strcpy to duplicate strings.
74708
74709         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
74710         (human_space_before_unit): New constant.
74711         * lib/human.c (human_readable): Support it.
74712
74713         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
74714         (xgetcwd): Set errno correctly when failing.
74715         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
74716         the failure is actually due to a PATH_MAX problem.
74717
74718         Further getopt changes to make it more likely that glibc will
74719         buy the changes back.
74720         * lib/getopt.c (POSIXLY_CORRECT): New constant.
74721         (getopt): Use it, so to preserve glibc semantic
74722         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
74723         when compiling for libc.
74724         * lib/getopt_.h (__getopt_argv_const): Bring it back.
74725         (getopt_long, getopt_long_only): Use it.
74726
74727         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
74728         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
74729         (getopt): Argv is now char * const *, as per standard.
74730         (_getopt_internal_r, _getopt_internal): Argv is now char **,
74731         not char *__getopt_argv_const *.
74732         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
74733         _getopt_long_only_r): Likewise.
74734         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
74735         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
74736         _getopt_long_r, _getopt_long_only_r): Likewise.
74737         * lib/getopt_.h (__getopt_argv_const): Remove.
74738         (getopt): Argv is now char * const *, as per standard.
74739
74740         * lib/getdate.y (tORDINAL): New token.
74741         (day, relunit): Allow it for relative times.
74742         (relative_time_table): Use tORDINAL for ordinals.
74743
74744 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
74745
74746         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
74747         Document that "second" isn't allowed as an ordinal number.
74748
74749 2004-11-16  Jim Meyering  <jim@meyering.net>
74750
74751         * modules/closeout (Depends-on): Add fpending.
74752
74753 2004-11-15  Jim Meyering  <jim@meyering.net>
74754
74755         * lib/closeout.c: Include "__fpending.h" once again.
74756         Include <stdbool.h>.
74757         (close_stdout): Don't fail just because stdout was closed initially,
74758         since some programs don't write to stdout in the normal course of
74759         operation (other than --version and --help), and we don't want this
74760         function to make e.g. `touch file >&-' fail.
74761         But do fail if it was closed and someone has tried to write to it.
74762         E.g., `printf foo >&-' must fail.
74763
74764 2004-11-13  Jim Meyering  <jim@meyering.net>
74765
74766         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
74767
74768 2004-11-12  Simon Josefsson  <jas@extundo.com>
74769
74770         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
74771         small doc fix is still pending.
74772
74773 2004-11-11  Simon Josefsson  <jas@extundo.com>
74774
74775         * modules/strtok_r: New file.
74776
74777         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
74778         strtok_r.
74779
74780 2004-11-11  Simon Josefsson  <jas@extundo.com>
74781
74782         * m4/strtok_r.m4: New file.
74783
74784         * m4/getopt.m4: Replace opterr.
74785
74786 2004-11-11  Simon Josefsson  <jas@extundo.com>
74787
74788         * lib/strtok_r.h, strtok_r.c: New file.
74789
74790 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
74791
74792         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
74793         of replacing opterr, getopt, etc.  This should handle the
74794         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
74795
74796 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
74797
74798         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
74799         we can stop lying to compilers about the constness of argv when we
74800         are compiled outside glibc.
74801         (getopt, getopt_long, getopt_long_only): Use it.
74802         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
74803         _getopt_internal, getopt): Likewise.
74804         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
74805         _getopt_long_only_r): Likewise.
74806         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
74807         _getopt_long_r, _getopt_long_only_r): Likewise.
74808
74809         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
74810         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
74811         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
74812         the other external symbols.
74813         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
74814         declaration, since the above renaming now works around collisions.
74815
74816 2004-11-11  Jim Meyering  <jim@meyering.net>
74817
74818         * lib/linebreak.c: Remove trailing blanks.
74819         * lib/alloca_.h: Likewise.
74820         * lib/acosl.c: Likewise.
74821         * lib/euidaccess.c: Likewise.
74822         * lib/allocsa.h: Likewise.
74823
74824 2004-11-10  Simon Josefsson  <jas@extundo.com>
74825
74826         * m4/getaddrinfo.m4: New file.
74827
74828 2004-11-10  Simon Josefsson  <jas@extundo.com>
74829
74830         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
74831
74832 2004-11-10  Simon Josefsson  <jas@extundo.com>
74833
74834         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
74835         getaddrinfo.
74836
74837         * modules/getaddrinfo: New file.
74838
74839 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
74840
74841         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
74842
74843 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
74844
74845         * lib/mktime.c (SHR): New macro, which is a portable
74846         substitute for >> that should work even on Crays.
74847         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
74848         Problem reported by Mark D. Baushke in
74849         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
74850         * lib/getdate.y (SHR): Likewise.
74851         (tm_diff): Use it.
74852         * lib/strftime.c (SHR): Likewise.
74853         (tm_diff): Use it.
74854         * lib/quotearg.c (struct quoting_options): Use unsigned int for
74855         quote_these_too, so that right shifts are well defined.  All uses
74856         changed.
74857
74858 2004-11-10  Jim Meyering  <jim@meyering.net>
74859
74860         Ensure that no close failure goes unreported.
74861         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
74862         return early when it seems there's nothing to flush.
74863         Don't include __fpending.h.
74864
74865 2004-11-10  Jim Meyering  <jim@meyering.net>
74866
74867         * modules/closeout (Depends-on): Remove fpending.
74868
74869 2004-11-10  Jim Meyering  <jim@meyering.net>
74870
74871         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
74872
74873 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
74874
74875         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
74876         gl_FUNC_STRFTIME.
74877         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
74878         and AC_REQUIRE when possible, to avoid duplicate checks.
74879         Check for <wchar.h>.
74880
74881 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
74882
74883         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
74884
74885 2004-11-09  Bruno Haible  <bruno@clisp.org>
74886
74887         * m4/sockpfaf.m4: New file.
74888
74889 2004-11-05  Bruno Haible  <bruno@clisp.org>
74890
74891         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
74892         Reported by Mark D. Baushke <mdb@cvshome.org>.
74893
74894 2004-11-04  Bruno Haible  <bruno@clisp.org>
74895
74896         2004-09-11  Bruno Haible  <bruno@clisp.org>
74897                 * allocsa.valgrind: New file.
74898         2004-02-06  Bruno Haible  <bruno@clisp.org>
74899                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
74900                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
74901                 Reported by Christopher Seip <chris.seip@hp.com>.
74902
74903 2004-11-04  Bruno Haible  <bruno@clisp.org>
74904
74905         * modules/allocsa (Files): Add lib/allocsa.valgrind.
74906         (Makefile.am): Distribute it.
74907
74908 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
74909
74910         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
74911         with errno == ERANGE if the buffer is too small.
74912         Problem reported by Mark D. Baushke.
74913
74914 2004-11-03  Albert Chin  <china@thewrittenword.com>
74915             Paul Eggert  <eggert@cs.ucla.edu>
74916
74917         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
74918         equivalent, substitute $ac_type for equivalent type rather than
74919         blindly using uint32_t *always* which won't work if uint32_t is not
74920         available.  Define _UINT32_T to work around typedef of uint32_t if
74921         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
74922         2.5.1.
74923
74924 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
74925
74926         * m4/jm-macros.m4: Sync from coreutils.
74927         (gl_MACROS): Check for mbrlen, for pathchk.
74928         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
74929
74930 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
74931
74932         * lib/xreadlink.c (MAXSIZE): New macro.
74933         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
74934         size does not exceed MAXSIZE.  Avoid cast.
74935         As suggested by Mark D. Baushke in
74936         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
74937         if readlink fails with buffer size just under MAXSIZE, try again
74938         with MAXSIZE.
74939
74940 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
74941
74942         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
74943
74944 2004-11-02  Derek R. Price  <derek@ximbiot.com>
74945         and  Paul Eggert  <eggert@cs.ucla.edu>
74946
74947         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
74948         (get_date): Overparenthesize to avoid GCC warning.
74949
74950 2004-11-02  Bruno Haible  <bruno@clisp.org>
74951
74952         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
74953         returns void.
74954
74955 2004-11-02  Bruno Haible  <bruno@clisp.org>
74956
74957         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
74958         function returns void.
74959
74960 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
74961
74962         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
74963         fflush_unlocked, flockfile, funlockfile, funlockfile,
74964         fputs_unlocked, putc_unlocked.
74965
74966 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
74967
74968         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
74969         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
74970         already declared.
74971
74972 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
74973
74974         * modules/getdate (Files): Add doc/getdate.texi.
74975         (Depends-on): Add setenv, xalloc.
74976
74977 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
74978
74979         * lib/getdate.y: Add support for TZ="foo" within a date string.
74980         Fix some bugs near time_t boundaries.  Reject dates with
74981         out-of-range components, e.g., "Sept 31".
74982         Include <stdlib.h>, "setenv.h", "xalloc.h".
74983         (ISDIGIT_LOCALE): Remove; unused.
74984         Note that the TZ and time functions used here are not reentrant.
74985         (mktime_ok, get_tz): New functions.
74986         (TZBUFSIZE): New constant.
74987         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
74988         This requires that we sometimes generate our own TZ="XXX..." setting.
74989
74990 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
74991
74992         * doc/getdate.texi: New file, from coreutils with modifications for
74993         the new TZ parsing.
74994
74995 2004-10-27  Derek R. Price  <derek@ximbiot.com>
74996
74997         * lib/mktime.c (not_equal_tm): Remove redundant check.
74998
74999 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
75000
75001         * modules/regex (lib_SOURCES): Add regex.c.
75002         Reported by James Youngman in
75003         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
75004
75005 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
75006
75007         * lib/getdate.y: Use Bison 1.875 features, and some minor
75008         code cleanups.  This change does not affect semantics.
75009         Don't include <stdlib.h>; no longer needed.
75010         Don't include unlocked-io.h; only the "#if TEST" code uses
75011         stdio, and performance isn't crucial there.
75012         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
75013         Bison 1.875 features as described below.
75014         All uses of "PC." replaced by "pc->".
75015         (YYSTYPE): Add a forward declaration.
75016         (yylex, yyerror): Use full prototypes in forward decls.
75017         Use "%pure-parser" rather than obsolescent "%pure_parser".
75018         Use %parse-param and %lex-param instead of obsolescent
75019         YYPARSE_PARAM and YYLEX_PARAM.
75020         (meridian_table, month_and_day_table, time_units_table,
75021         relative_time_table, time_zone_table, military_table,
75022         lookup_zone, lookup_word, get_date):
75023         Use NULL instead of 0 where appropriate.
75024         (to_hour): Avoid abort (), to avoid a dependency on
75025         stdlib.h.
75026         (yyerror, yylex): Now accepts parser_control * arg.
75027         (main) [TEST]: Use '\0' rather than 0 for char.
75028
75029 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
75030
75031         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
75032
75033 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
75034
75035         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
75036         It's now the caller's responsibility to handle the case where
75037         !HAVE_GETPAGESIZE && !defined getpagesize.
75038
75039         * lib/mktime.c (leapyear): Arg is long int, not int.
75040
75041 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
75042
75043         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
75044
75045 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
75046
75047         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
75048         missing.  Problem reported by James Youngman.
75049
75050 2004-10-16  Simon Josefsson  <jas@extundo.com>
75051
75052         * gnulib-tool: Fix comments.  Fix parse problem.
75053         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
75054
75055 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
75056
75057         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
75058         implementation of getopt_long.  Problem reported by Alexander Taler in:
75059         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
75060
75061 2004-10-15  Bruno Haible  <bruno@clisp.org>
75062
75063         * gnulib-tool: Untabify. Initialize supplied_libname.
75064         (func_usage): More homogenous output.
75065         (func_modules_transitive_closure, func_modules_to_filelist,
75066         func_emit_lib_Makefile_am): New functions.
75067         (func_import): New function, extracted from big case statement. Use
75068         func_get_license, func_modules_transitive_closure,
75069         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
75070         opt_lgpl. Don't use test -a, as it's not portable.
75071         (func_create_testdir): Use func_modules_transitive_closure,
75072         func_modules_to_filelist, func_emit_lib_Makefile_am.
75073
75074 2004-10-15  Bruno Haible  <bruno@clisp.org>
75075
75076         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
75077
75078 2004-10-15  Bruno Haible  <bruno@clisp.org>
75079
75080         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
75081         the portions belonging to each module.
75082         Suggested by Derek Robert Price <derek@ximbiot.com>.
75083
75084 2004-10-12  Simon Josefsson  <jas@extundo.com>
75085
75086         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
75087         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
75088         to real functions.
75089
75090 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
75091
75092         * modules/vsnprintf: New file.
75093
75094 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
75095
75096         * m4/vsnprintf.m4: New file.
75097
75098 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
75099
75100         * lib/vsnprintf.h: New file.
75101         * lib/vsnprintf.c: New file.
75102
75103 2004-10-11  Bruno Haible  <bruno@clisp.org>
75104
75105         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
75106         vsnprintf.
75107
75108 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
75109
75110         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
75111
75112 2004-10-07  Bruno Haible  <bruno@clisp.org>
75113
75114         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
75115         fits into the provided buffer.
75116
75117 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
75118
75119         * lib/diacrit.c, diacrit.h: Add GPL notice.
75120
75121         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
75122         notice.
75123         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
75124         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
75125         This avoids a potential constant-folding bug.
75126
75127 2004-10-05  Bruno Haible  <bruno@clisp.org>
75128
75129         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
75130         for the declaration of strsep.
75131
75132 2004-10-05  Bruno Haible  <bruno@clisp.org>
75133
75134         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
75135
75136 2004-10-04  Simon Josefsson  <jas@extundo.com>
75137
75138         * modules/memmem: New file.
75139         * tests/test-memmem.c: New file.
75140         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
75141
75142 2004-10-04  Simon Josefsson  <jas@extundo.com>
75143
75144         * m4/memmem.m4: New file.
75145
75146 2004-10-04  Simon Josefsson  <jas@extundo.com>
75147
75148         * lib/memmem.h: New file.
75149         * lib/memmem.c: New file, taken from glibc.
75150
75151 2004-10-04  Simon Josefsson  <jas@extundo.com>
75152
75153         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
75154         '#ifdef USE_UNLOCKED_IO'.
75155
75156 2004-10-04  Simon Josefsson  <jas@extundo.com>
75157
75158         * config/srclist.txt: Add memmem from glibc.
75159
75160 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
75161
75162         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
75163
75164         * modules/argmatch, modules/argp, modules/closeout, modules/error,
75165         modules/exclude, modules/getdate, modules/getline,
75166         modules/getndelim2, modules/getpass, modules/getpass-gnu,
75167         modules/getusershell, modules/linebuffer, modules/md5,
75168         modules/mountlist, modules/posixtm, modules/readtokens,
75169         modules/readutmp, modules/regex, modules/sha1,
75170         modules/version-etc, modules/yesno:
75171         Remove dependency on unlocked-io.
75172
75173 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
75174
75175         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
75176
75177         * m4/unlocked-io.m4: Add copyright notice.
75178         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
75179
75180 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
75181
75182         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
75183         * lib/xmalloc.c (xmemdup): Likewise.
75184         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
75185         XFREE): Remove these long-obsolescent macros.
75186         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
75187         * lib/xstrdup.c: Remove.
75188
75189         * lib/regex.c (re_comp): Cast gettext return value to char *,
75190         Problem reported by Martin Neitzel via Mark D. Baushke.
75191
75192 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
75193
75194         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
75195         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
75196         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
75197         regex.c, sha1.c, version-etc.c, yesno.c:
75198         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
75199         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
75200         the includer's responsibility.
75201
75202         Sync from coreutils.
75203
75204         * lib/modechange.c (mode_compile): Don't decrement a pointer that
75205         points to the start of a string, as the C Standard says the
75206         resulting behavior is undefined.
75207
75208         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
75209         simple -> simple_backups, numbered_existing ->
75210         numbered_existing_backups, numbered -> numbered_backups
75211         to avoid shadowing problems.  All uses changed.
75212         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
75213         * lib/backupfile.c (check_extension, numbered_backup):
75214         Rename locals to avoid shadowing 'basename'.
75215         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
75216         once.
75217
75218         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
75219         * lib/.cvsignore: Add getopt.h.
75220
75221 2004-10-04  Bruno Haible  <bruno@clisp.org>
75222
75223         * modules/README: New file.
75224         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
75225         not a module.
75226
75227 2004-10-02  Jim Meyering  <jim@meyering.net>
75228
75229         * lib/dirfd.h, getpagesize.h: Add copyright notice.
75230
75231 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
75232
75233         * modules/strsep: New file.
75234
75235 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
75236
75237         * m4/strsep.m4: New file.
75238
75239 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
75240
75241         * lib/strsep.h: New file.
75242         * lib/strsep.c: New file.
75243
75244 2004-10-01  Simon Josefsson  <jas@extundo.com>
75245
75246         * lib/snprintf.c (snprintf): Handle size==0.
75247
75248 2004-10-01  Simon Josefsson  <jas@extundo.com>
75249             Bruno Haible  <bruno@clisp.org>
75250
75251         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
75252         (snprintf): Declare 'args'.
75253
75254 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
75255
75256         * lib/snprintf.c: Remove comments as to why each header is needed.
75257
75258 2004-10-01  Bruno Haible  <bruno@clisp.org>
75259
75260         * MODULES.html.sh: Add strsep.
75261
75262 2004-09-30  Simon Josefsson  <jas@extundo.com>
75263
75264         * modules/snprintf: New file.
75265
75266 2004-09-30  Simon Josefsson  <jas@extundo.com>
75267
75268         * m4/snprintf.m4: New file.
75269
75270 2004-09-30  Simon Josefsson  <jas@extundo.com>
75271
75272         * lib/snprintf.h, lib/snprintf.c: New files.
75273
75274 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
75275
75276         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
75277         (hol_entry_help): Never translate an empty string.
75278         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
75279         * lib/argp.h (OPTION_NO_TRANS): New option.
75280
75281 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
75282
75283         * modules/argp (Maintainer): Replace Simon Josefsson
75284         by Sergey Poznyakoff.
75285
75286 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
75287
75288         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
75289         changes merged back into glibc.
75290
75291 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
75292
75293         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
75294
75295 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
75296
75297         * lib/xvasprintf.c: Include xalloc.h.
75298         (xvasprintf): Use xalloc_die, not xmalloc_die.
75299
75300 2004-09-29  Bruno Haible  <bruno@clisp.org>
75301
75302         * modules/alloca-opt: New file, derived from modules/alloca.
75303         * modules/allocsa: Depend on alloca-opt instead of alloca.
75304         * modules/setenv: Likewise.
75305         * modules/vasnprintf: Likewise.
75306         * MODULES.html.sh: Add alloca-opt.
75307
75308 2004-09-28  Simon Josefsson  <jas@extundo.com>
75309
75310         * gnulib-tool: New parameter --lgpl, to asseert that modules are
75311         LGPL, and to replace license template from GPL to LGPL.
75312
75313 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
75314
75315         * modules/dummy: Change license to LGPL.
75316
75317 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
75318
75319         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
75320
75321 2004-09-24  Simon Josefsson  <jas@extundo.com>
75322
75323         * modules/minmax (License): Change from GPL to LGPL.
75324
75325 2004-09-23  Simon Josefsson  <jas@extundo.com>
75326
75327         * gnulib-tool (--import): Typo.
75328
75329 2004-09-23  Simon Josefsson  <jas@extundo.com>
75330
75331         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
75332
75333 2004-09-22  Bruno Haible  <bruno@clisp.org>
75334
75335         * modules/*: Add 'License' field.
75336         * gnulib-tool: Accept --extract-license option.
75337         (func_get_license): New function.
75338
75339 2004-09-21  Bruno Haible  <bruno@clisp.org>
75340
75341         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
75342         Reported by Simon Josefsson.
75343
75344 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
75345
75346         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
75347         gl_AC_TYPE_LONG_LONG.
75348
75349 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
75350
75351         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
75352
75353 2004-09-18  Simon Josefsson  <jas@extundo.com>
75354         and  Paul Eggert  <eggert@cs.ucla.edu>
75355
75356         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
75357         calls with autoreconf.  Define GL_LIB.
75358
75359 2004-09-14  Karl Berry  <karl@gnu.org>
75360
75361         * config/srclist.txt: unsync setenv.c, sigh.
75362
75363 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
75364
75365         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
75366         Problem reported by Bruno Haible in:
75367         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
75368
75369 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
75370
75371         * config/srclist.txt: Comment out argp-pvh.c.
75372
75373 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
75374
75375         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
75376         in case some system header has #define'd it.  Problem reported by
75377         Soeren D. Schulze in
75378         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
75379
75380 2004-09-09  Karl Berry  <karl@gnu.org>
75381
75382         * regex.[ch]: delete from the root.  These were supposed to be
75383                 synced with emacs cvs, but this has not happened for about
75384                 a year, and anyway nothing else uses emacs regex.[ch].
75385                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
75386                 lib/regex[.ch] is untouched.
75387
75388 2004-09-09  Bruno Haible  <bruno@clisp.org>
75389
75390         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
75391
75392 2004-09-09  Bruno Haible  <bruno@clisp.org>
75393
75394         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
75395         modifications.
75396         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
75397
75398 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
75399
75400         * modules/xvasprintf: New file.
75401         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
75402
75403 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
75404
75405         * lib/xvasprintf.h: New file.
75406         * lib/xvasprintf.c: New file.
75407         * lib/xasprintf.c: New file.
75408
75409 2004-09-08  Bruno Haible  <bruno@clisp.org>
75410
75411         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
75412
75413 2004-09-08  Bruno Haible  <bruno@clisp.org>
75414
75415         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
75416         length is > INT_MAX.
75417         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
75418         more.
75419
75420 2004-09-08  Bruno Haible  <bruno@clisp.org>
75421
75422         * lib/stdint_.h: New file, taken from GNU clisp.
75423
75424 2004-09-08  Bruno Haible  <bruno@clisp.org>
75425             Oskar Liljeblad  <oskar@osk.mine.nu>
75426
75427         * modules/stdint: New file.
75428         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
75429
75430 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
75431
75432         Import from coreutils.
75433         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
75434         strings on unbounded length.  alloca's performance benefits aren't
75435         that important here.
75436         (V_STRDUP): Remove.
75437         (parse_with_separator): New function, with most of the internals
75438         of the old parse_user_spec.  Allow user to omit both user and group,
75439         for compatibility with FreeBSD.
75440         Clone only the user name, not the entire spec.
75441         Do not set *uid, *gid unless entirely successful.
75442         Avoid memory leak in some failing cases.
75443         Fix regression for USER.GROUP reported by Dmitry V. Levin in
75444         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
75445         (parse_user_spec): Rewrite to use parse_with_separator.
75446
75447 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
75448
75449         * modules/userspec: Don't depend on alloca.
75450
75451 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
75452
75453         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
75454
75455 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
75456
75457         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
75458         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
75459         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
75460
75461 2004-08-16  Simon Josefsson  <jas@extundo.com>
75462
75463         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
75464         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
75465         Add --dry-run for --import.
75466         Let user provided command line parameters override configure.ac
75467         settings.
75468
75469 2004-08-12  Simon Josefsson  <jas@extundo.com>
75470
75471         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
75472         as discussed with Paul Eggert in threads rooted at
75473         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
75474         and
75475         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
75476         Before, the test was empty, and relied on ELIDE_CODE in source
75477         code.)
75478         (gl_PREREQ_GETOPT): New macro.
75479         (gl_GETOPT): Use them.
75480
75481 2004-08-12  Simon Josefsson  <jas@extundo.com>
75482
75483         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
75484         * lib/getopt_.h: Renamed from getopt.h.
75485
75486 2004-08-12  Simon Josefsson  <jas@extundo.com>
75487
75488         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
75489         Change default library name from libfoo to libgnu.
75490         Now, if you have a configure.ac that says:
75491                 gl_SOURCE_BASE(gl)
75492                 gl_M4_BASE(gl/m4)
75493                 gl_MODULES(error getopt etcetera)
75494                 gl_INIT
75495         you can import all you need by running:
75496                 ../gnulib/gnulib-tool --import
75497
75498         * modules/getopt (Files): Rename getopt.h to getopt_.h.
75499         (Makefile.am): Rewrite, use logic from argz.
75500         (Include): Use <getopt.h> instead of "getopt.h".
75501
75502 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
75503
75504         * modules/argp (Files): Add m4/unlocked-io.m4.
75505         (Depends-on): Add extensions.
75506
75507 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
75508
75509         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
75510         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
75511         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
75512         Check for program_invocation_name, program_invocation_short_name,
75513         flockfile, funlockfile, features.h, _getopt_long_only_r.
75514
75515 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
75516
75517         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
75518         its complicated substitute.
75519         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
75520         and program_invocation_name.
75521         (__argp_basename) [!_LIBC]: Remove; the only use was
75522         replaced by its body.
75523         (__argp_short_program_name): Change condition from
75524         !defined __argp_short_program_name to
75525         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
75526         to match argp-namefrob.h.
75527         (__argp_failure): Don't assume strerror_r returns char *.
75528         * lib/argp-parse.c (N_): Define unconditionally.
75529         (argp_default_options): Fill out initializers with 0 to avoid
75530         gcc warnings.
75531
75532 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
75533
75534         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
75535         getopt1.c.
75536
75537 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
75538
75539         Merge from coreutils.
75540
75541         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
75542
75543         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
75544         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
75545
75546 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
75547
75548         Merge from coreutils.
75549
75550         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
75551         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
75552         for Reliant Unix 5.43.
75553
75554         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
75555         (union fooround): Use uintmax_t, not long int.
75556         The rest is a merge from libc:
75557         [defined _LIBC]: Include <shlib-compat.h>.
75558         (_obstack) [defined _LIBC]: Remove after 2.3.4.
75559
75560         * lib/settime.c (settime): Recode to avoid warning with
75561         Sun Forte C 6U2.
75562
75563         * lib/strverscmp.c: Convert to UTF-8.
75564
75565 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
75566
75567         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
75568         m4/uintmax_t.m4.
75569
75570 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
75571
75572         * modules/xalloc-die: New file.
75573         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
75574
75575         * modules/md5 (Files): Add m4/uint32_t.m4.
75576         * modules/sha1: Renamed from modules/sha.
75577         (Files):
75578         Rename lib/sha.h to lib/sha1.h.
75579         Rename lib/sha.c to lib/sha1.c.
75580         Rename m4/sha.m4 to m4/sha1.m4.
75581         (lib_SOURCES): Likewise.
75582         (configure.ac): Rename gl_SHA to gl_SHA1.
75583         (Include): sha.h -> sha1.h.
75584
75585 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
75586
75587         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
75588         * m4/sha1.m4: Renamed from sha.m4.
75589         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
75590
75591 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
75592
75593         * lib/obstack.h (obstack_empty_p):
75594         Don't assume that chunk->contents is suitably aligned.
75595         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
75596         Likewise. Problem reported by Benno in
75597         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
75598
75599         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
75600         readable.  This could be improved further but it'd take some work.
75601
75602 2004-08-08  Simon Josefsson  <jas@extundo.com>
75603
75604         * modules/xgethostname (Depends-on): Remove exit and error (not
75605         used).
75606
75607         * modules/getpass-gnu: Add getpass.h.
75608         (Depends-on): Add stdbool.
75609         * modules/getpass: Add getpass.h.
75610
75611 2004-08-08  Simon Josefsson  <jas@extundo.com>
75612
75613         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
75614         Check getpass declaration.
75615
75616 2004-08-08  Simon Josefsson  <jas@extundo.com>
75617
75618         * lib/xgethostname.c: Don't include error.h (not used).
75619
75620         * lib/getpass.h: Add.
75621         * lib/getpass.c: Include getpass.h first.
75622
75623 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
75624
75625         * lib/xalloc-die.c: New file.
75626         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
75627         All uses removed.
75628         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
75629         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
75630         xalloc-die.c.
75631         (_, N_, xalloc_die): Move to xalloc-die.c.
75632         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
75633         so that we needn't mess with xalloc_msg_memory_exhausted.
75634
75635         * lib/sha1.h: Renamed from sha.h.
75636         (SHA1_H): Renamed from _SHA_H.
75637         (sha1_ctx): Renamed from sha_ctx.
75638         (sha1_init_ctx): Renamed from sha_init_ctx.
75639         (sha1_process_block): Renamed from sha_process_block.
75640         (sha1_process_bytes): Renamed from sha_process_bytes.
75641         (sha1_finish_ctx): Renamed from sha_finish_ctx.
75642         (sha1_read_ctx): Renamed from sha_read_ctx.
75643         (sha1_stream): Renamed from sha_stream.
75644         (sha1_buffer): Renamed from sha_buffer.
75645         * lib/sha1.c: Likewise; renamed from sha.c.
75646         Do not include <sys/types.h>.
75647         Include <stddef.h> rather than <stdlib.h>.
75648
75649 2004-08-08  Bruno Haible  <bruno@clisp.org>
75650
75651         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
75652         FILESYSTEM_PREFIX_LEN.
75653         * lib/progreloc.c: Likewise.
75654         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
75655
75656 2004-08-06  Simon Josefsson  <jas@extundo.com>
75657
75658         * modules/progname (Depends-on): Don't depend on stdbool.
75659
75660 2004-08-06  Simon Josefsson  <jas@extundo.com>
75661
75662         * modules/getsubopt: New file.
75663         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
75664         getsubopt.
75665
75666 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
75667
75668         More merge from coreutils.
75669
75670         * m4/utimens.m4, m4/utimecmp.m4: New files.
75671         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
75672         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
75673         prereq.m4, sha.m4: Import changes from coreutils.
75674
75675 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
75676
75677         More merge from coreutils.
75678         * modules/raise, modules/readtokens0, modules/utimens:
75679         * modules/utimecmp, module/xnanosleep: New files.
75680         * modules/strftime: Add lib/strftime.h.
75681         Change include from <time.h> to "strftime.h".
75682         * modules/yesno: Add lib/yesno.h.
75683         * modules/backupfile: Remove lib/addext.c.
75684         * modules/euidaccess: Add stat-macros.h.
75685         * modules/canonicalize, modules/euidaccess,
75686         modules/filemode, modules/lchown, modules/makepath,
75687         modules/rmdir, modules/stat: Likewise.
75688
75689 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
75690
75691         Merge from tar.
75692         * lib/argp-help.c (make_hol, hol_append): Don't assume that
75693         SIZE_MAX is a valid preprocessor constant.
75694         (__argp_basename): Change from "#ifndef _LIBC"
75695         to "#ifndef __argp_short_program_name", so that
75696         we don't compile these functions for tar.
75697
75698         More merges from coreutils.
75699         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
75700         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
75701         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
75702         * lib/addext.c: Remove; no longer needed.
75703         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
75704         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
75705         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
75706         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
75707         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
75708         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
75709         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
75710         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
75711         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
75712         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
75713         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
75714         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
75715         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
75716         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
75717         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
75718         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
75719         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
75720         Import changes from coreutils.
75721
75722 2004-08-05  Simon Josefsson  <jas@extundo.com>
75723
75724         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
75725
75726 2004-08-05  Simon Josefsson  <jas@extundo.com>
75727
75728         * m4/getsubopt.m4: New file.
75729
75730 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
75731
75732         Merge from coreutils.
75733
75734         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
75735         * m4/getcwd-path-max.m4: New files.
75736
75737         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
75738         FILESYSTEM_PREFIX_LEN ->
75739         FILE_SYSTEM_PREFIX_LEN.
75740         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
75741         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
75742         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
75743         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
75744
75745         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
75746         prerequisite modules now handle the DOS stuff.
75747         Don't check for unistd.h.
75748
75749 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
75750
75751         Merge from coreutils.
75752
75753         * lib/.gdb-history: Remove; this doesn't belong here.
75754
75755         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
75756         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
75757         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
75758         * lib/getcwd.c: New files.
75759
75760         * lib/dirname.h: Include <stdbool.h>.
75761         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
75762         for consistency with POSIX terminology.  All uses changed.
75763         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
75764         (strip_trailing_slashes): Use bool for booleans.
75765         * lib/stripslash.c (strip_trailing_slashes): Likewise.
75766
75767         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
75768         sometimes returns a positive errno value even when it succeeds.
75769         (print_errno_message) [!LIBC]: Fall back on strerror if
75770         __strerror_r fails.
75771
75772         * lib/path-concat.c (mempcpy): Don't define if a system header defines
75773         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
75774         (longest_relative_suffix): New function.
75775         (path_concat): Use it.  Assume first argument is not NULL.
75776         Port to DOS.  Omit redundant separators.
75777         Report an error instead of returning NULL.
75778         Use mempcpy instead of memcpy.
75779         (xpath_concat): Remove: not declared or used.
75780
75781         * lib/same.h: Include <stdbool.h>
75782         (same_name): Return bool, not int.
75783         * lib/same.c (same_name): Likewise.
75784         (errno): Don't declare; we assume C89 or better now.
75785
75786         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
75787         if not already defined.
75788
75789         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
75790         * lib/dup-safer.c (errno): Likewise.
75791
75792 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
75793
75794         Merge from coreutils.
75795         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
75796         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
75797         * modules/path-concat: Don't depend on strdup.
75798
75799 2004-08-03  Simon Josefsson  <jas@extundo.com>
75800
75801         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
75802         * lib/progname.h: Don't include stdbool.h.
75803
75804 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
75805
75806         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
75807         * MODULES.html.sh (func_all_modules): Remove fatal.
75808
75809 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
75810
75811         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
75812
75813 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
75814
75815         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
75816         working.
75817
75818 2004-08-02  Simon Josefsson  <jas@extundo.com>
75819
75820         * lib/getsubopt.h: New file, with comments from Bruno Haible.
75821         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
75822         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
75823
75824 2004-08-01  Simon Josefsson  <jas@extundo.com>
75825
75826         * lib/xgetdomainname.c: Include stdlib.h, for free().
75827
75828 2004-07-19  Bruno Haible  <bruno@clisp.org>
75829
75830         * MODULES.html.sh (func_all_modules): Add dummy.
75831
75832 2004-07-16  Simon Josefsson  <jas@extundo.com>
75833
75834         * modules/dummy: New file.
75835
75836 2004-07-16  Simon Josefsson  <jas@extundo.com>
75837
75838         * lib/dummy.c: New file.
75839
75840 2004-07-16  Bruno Haible  <bruno@clisp.org>
75841
75842         * lib/backupfile.h: Add extern "C" for C++.
75843         * lib/closeout.h: Likewise.
75844         * lib/copy-file.h: Likewise.
75845         * lib/findprog.h: Likewise.
75846         * lib/full-write.h: Likewise.
75847         * lib/pathname.h: Likewise.
75848         * lib/progname.h: Likewise.
75849         * lib/stpcpy.h: Likewise.
75850         * lib/stpncpy.h: Likewise.
75851         * lib/strcase.h: Likewise.
75852         * lib/strstr.h: Likewise.
75853         * lib/xalloc.h: Likewise.
75854
75855         * lib/mbswidth.h: Add extern "C" for C++.
75856         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
75857
75858 2004-07-13  Robert Millan  <robertmh@gnu.org>
75859
75860         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
75861
75862 2004-07-09  Simon Josefsson  <jas@extundo.com>
75863
75864         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
75865         failed without this.)
75866
75867 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
75868
75869         * modules/chown (Files): Add lib/fchown-stub.c, since
75870         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
75871
75872 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
75873
75874         * lib/fchown-stub.c: New file.
75875
75876 2004-06-24  Jim Meyering  <jim@meyering.net>
75877
75878         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
75879
75880 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
75881
75882         * modules/argz: Omit "#include".
75883
75884         * MODULES.html.sh (func_all_modules): Add calloc, to match
75885         2004-06-01 addition of calloc module.
75886
75887 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
75888
75889         * m4/argz.m4: New file, which is autoupdated from libtool.
75890
75891 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
75892
75893         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
75894         libtool.
75895
75896 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
75897
75898         * config/srclist-update: Don't insist on "USA." before the
75899         close-comment, as libtool omits the period and puts the */ on a
75900         separate line.
75901         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
75902         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
75903
75904 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
75905
75906         * modules/argz: New file.
75907         * MODULES.html.sh (func_all_modules): Add argz.
75908
75909 2004-06-12  Jim Meyering  <jim@meyering.net>
75910         and  Paul Eggert  <eggert@cs.ucla.edu>
75911
75912         * modules/hash (Files): Add lib/xalloc.h.
75913         * modules/pipe (Depends-on): Add wait-process.
75914         * modules/stat (Depends-on): Add xalloc.
75915         * modules/userspec (Files): Add lib/userspec.h.
75916         * modules/xstrto
75917
75918         Upgrade from gettext-0.13.
75919         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
75920         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
75921         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
75922
75923 2004-06-10  Jim Meyering  <jim@meyering.net>
75924
75925         * lib/calloc.c: New file.
75926
75927 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
75928
75929         * lib/getdate.y (yylex): Allow space between sign and number.
75930         Problem reported by Dan Jacobson.
75931
75932 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
75933
75934         Merge from coreutils CVS.
75935
75936         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
75937         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
75938         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
75939         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
75940         xstrtol.m4: Fix copyright date and/or serial number.
75941
75942         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
75943         See if we need an fchown replacement.
75944         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
75945         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
75946         and use the replacement function if we detect either defect.
75947
75948         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
75949         gl_UTIMECMP.
75950
75951 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
75952         and  Jim Meyering  <jim@meyering.net>
75953
75954         Merge from coreutils CVS.
75955
75956         * lib/stat-macros.h: New file, with contents from file-type.h
75957         and coreutils' system.h.
75958         * lib/file-type.c: Include "stat-macros.h".
75959         * lib/file-type.h (file_type): Move all macro definitions to new file,
75960         stat-macros.h.
75961
75962         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
75963         Wrap old code with this conditional.
75964         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
75965         function that does not dereference symlinks.
75966         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
75967
75968         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
75969         dependency problems.
75970         (xreadlink): Accept new arg SIZE, for efficiency.
75971         All decls and uses changed.
75972         * lib/xreadlink.h: Include <stddef.h>, for size_t.
75973
75974         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
75975         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
75976
75977         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
75978         sysexits.h.
75979
75980 2004-06-01  Jim Meyering  <jim@meyering.net>
75981
75982         * m4/calloc.m4: New file.
75983
75984 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
75985
75986         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
75987         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
75988         Also, fix a typo in a diagnostic.
75989
75990 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
75991
75992         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
75993         or AC_FUNC_REALLOC.
75994
75995 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
75996
75997         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
75998         macros to be defined.
75999         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
76000         the allocator returns NULL because the requested size is zero.
76001
76002 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
76003
76004         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
76005         var.  Add comment explaining why libc still defines it.  This
76006         merges the following patch from glibc:
76007         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
76008
76009 2004-05-20  Andreas Schwab  <schwab@suse.de>
76010
76011         * m4/free.m4: Replace free if it not known to work, not the other
76012         way round.
76013
76014 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
76015
76016         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
76017         present in glibc since revision 1.1 of this file.
76018         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
76019         obstack_alignment_mask, obstack_alloc, obstack_base,
76020         obstack_blank, obstack_blank_fast, obstack_chunk_size,
76021         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
76022         obstack_grow0, obstack_init, obstack_int_grow,
76023         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
76024         obstack_next_free, obstack_object_size, obstack_ptr_grow,
76025         obstack_ptr_grow_fast, obstack_room): Remove declarations of
76026         nonexistent functions.
76027
76028 2004-05-18  Karl Berry  <karl@gnu.org>
76029
76030         * config/srclist.txt: break link for vasnprintf.c.
76031
76032 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
76033
76034         Port obstack to the AS/400, where pointers are 16 bytes wide and
76035         you cannot cast an integer to a valid pointer.  This patch is
76036         currently waiting to be integrated into glibc; see
76037         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
76038
76039         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
76040         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
76041         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
76042         (struct obstack): temp member is now a union of a pointer and
76043         an integer, instead of an integer.  All integer uses changed.
76044         This does not affect the physical layout of struct obstack,
76045         except on hosts (like the AS/400) where the size or alignment of
76046         void * is greater than that of ptrdiff_t.
76047         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
76048         __STDC__)]: Store temporary in pointer member of union, not
76049         integer member.
76050         * lib/obstack.c: Include <stddef.h>, for offsetof.
76051         (struct fooalign): Remove; it doesn't need a name.
76052         (union fooround): Change double to long double, and add void *.
76053         (DEFAULT_ALIGNMENT): Use offsetof to compute.
76054         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
76055         not a macro.  Hence the values are always int; so remove all
76056         casts-to-int in uses.
76057
76058 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
76059
76060         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
76061         we can get this patch merged into glibc.
76062
76063 2004-05-17  Derek R. Price  <derek@ximbiot.com>
76064             Paul Eggert  <eggert@cs.ucla.edu>
76065
76066         * m4/argp: Depend on alloca.
76067
76068 2004-05-17  Derek R. Price  <derek@ximbiot.com>
76069             Paul Eggert  <eggert@cs.ucla.edu>
76070
76071         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
76072         freecoding.
76073
76074 2004-05-17  Bruno Haible  <bruno@clisp.org>
76075
76076         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
76077         precision that consists of a '.' followed by an empty digit string.
76078         Patch by Tor Lillqvist <tml@iki.fi>.
76079
76080 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
76081
76082         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
76083         for backward compatibility with older code.  We need our own
76084         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
76085         it under some other name, and our alloca.h will define it.
76086
76087 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
76088             Derek Price  <derek@ximbiot.com>
76089
76090         * lib/alloca.c: Include <alloca.h>, to get our interface.
76091         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
76092         include <alloca.h> first.  Use C89 prototype for alloca; this
76093         requires including <stddef.h> for size_t.  Use extern "C" if C++.
76094         Use #elif for simplicity, since we can assume C89 now.
76095         Don't try to source the system alloca.h since it will not be found
76096         and to prevent recursively including its replacement.
76097         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
76098         * lib/regex.c: Likewise.
76099
76100 2004-05-16  Derek Price  <derek@ximbiot.com>
76101             Paul Eggert  <eggert@cs.ucla.edu>
76102
76103         getline cleanup.  This changes the getndelim2 API: both order of
76104         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
76105         no delimiter).
76106
76107         * lib/getline.c: Don't include stddef.h or stdio.h, since our
76108         interface does that.
76109         (getline): Always use getdelim, so that we don't have two
76110         copies of this code.
76111         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
76112         if available.
76113         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
76114         (GETNDELIM2_MAXIMUM): New macro.
76115         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
76116         instead of the old practice of delim2==0.  All callers changed.
76117         Return -1 on overflow, instead of returning junk.
76118         Do not set *linesize unless allocation succeeds.
76119         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
76120         that we include sys/types.h.
76121         * lib/getnline.h: Likewise.
76122         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
76123         (getndelim2): Reorder arguments.
76124         * lib/getnline.c (getnline, getndelim):
76125         Don't discard the NMAX argument.
76126         (getnline): Invoke getndelim, to avoid code duplication.
76127         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
76128         of (size_t) -1 by callers of the getnline family.
76129
76130 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
76131
76132         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
76133         Check for gettimeofday.
76134         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
76135         Check for settimeofday, stime.
76136
76137 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
76138
76139         * lib/nanosleep.c (suspended): Change its type from int to
76140         sig_atomic_t volatile.
76141         (first_call): Make it private to rpl_nanosleep, and have it
76142         be zero initially as that's a bit faster.
76143         (my_usleep): Round up fractional times instead of truncating them,
76144         as this is the usual meaning for 'sleep'.
76145
76146         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
76147         doesn't work.
76148         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
76149         (ENOSYS): Define if not defined.
76150         (settime): Fall back on stime if it exists and settimeofday fails.
76151         But don't bother with fallbacks if a method fails with errno == EPERM.
76152
76153 2004-05-11  Jim Meyering  <jim@meyering.net>
76154
76155         Prior to this change, the save_cwd caller required read access to the
76156         current directory on most systems (ones with the fchdir function).
76157
76158         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
76159         fails, try write-only, and finally, resort to using xgetcwd.
76160
76161 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
76162
76163         * lib/obstack.c, obstack.h: Import changes from libc.
76164
76165 2004-04-28  Bruno Haible  <bruno@clisp.org>
76166
76167         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
76168         also implicitly appends .exe to executables.
76169         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
76170         accepts Windows pathnames.
76171         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
76172         Treat Cygwin like Windows, since it now accepts Windows pathnames.
76173         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
76174         Treat Cygwin like Windows, since it now accepts Windows pathnames.
76175         Reported by Derek Robert Price <derek@ximbiot.com>.
76176
76177 2004-04-21  Karl Berry  <karl@gnu.org>
76178
76179         * config/srclist.txt (localcharset.c): break sync.
76180
76181 2004-04-20  Paul Eggert  <eggert@twinsun.com>
76182
76183         * m4/host-os.m4: Add a copyright notice.
76184
76185 2004-04-20  Jim Meyering  <jim@meyering.net>
76186
76187         Change UTILS_ to gl_ in AC_DEFINE'd names.
76188         Change utils_- and jm_-prefixed variables, too.
76189         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
76190         UTILS_FUNC_MKDIR_TRAILING_SLASH.
76191         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
76192
76193         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
76194         Don't emit trailing blanks.
76195         Also rename jm_-prefixed variables to have gl_ prefix.
76196
76197         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
76198         Also rename jm_-prefixed variables to have gl_ prefix.
76199
76200         * m4/jm-macros.m4: Reflect the renamings.
76201         * m4/prereq.m4: Likewise.
76202
76203 2004-04-20  Jim Meyering  <jim@meyering.net>
76204
76205         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
76206         memory.
76207
76208 2004-04-20  Jim Meyering  <jim@meyering.net>
76209             Bruno Haible  <bruno@clisp.org>
76210
76211         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
76212         memory when realloc fails.
76213
76214 2004-04-19  Jim Meyering  <jim@meyering.net>
76215
76216         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
76217         now that readutmp.c may call `free (0)'.
76218
76219 2004-04-19  Bruno Haible  <bruno@clisp.org>
76220
76221         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
76222         * m4/inttypes_h.m4: Likewise.
76223         * m4/stdint_h.m4: Likewise.
76224         * m4/intmax_t.m4: Likewise.
76225         * m4/uintmax_t.m4: Likewise.
76226
76227 2004-04-18  Jim Meyering  <jim@meyering.net>
76228
76229         * m4/prereq.m4: Don't forbid jm_ prefix.
76230
76231         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
76232         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
76233         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
76234         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
76235         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
76236         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
76237         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
76238         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
76239         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
76240         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
76241         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
76242         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
76243         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
76244         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
76245         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
76246         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
76247         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
76248         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
76249         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
76250
76251 2004-04-18  Jim Meyering  <jim@meyering.net>
76252
76253         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
76254         failure, don't leak memory and do call END_UTMP_ENT.
76255
76256 2004-04-16  Jim Meyering  <jim@meyering.net>
76257
76258         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
76259         coreutils' stat program.
76260         (gl_PREREQ): Don't require jm_PREREQ_STAT.
76261
76262 2004-04-11  Paul Eggert  <eggert@twinsun.com>
76263
76264         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
76265         C89.
76266         (CHAR_BIT): Remove, since we assume C89.
76267         Include <stdint.h> if available, as per current Autoconf CVS advice.
76268
76269 2004-03-31  Jim Meyering  <jim@meyering.net>
76270
76271         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
76272         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
76273         * m4/xalloc.m4: Likewise.
76274
76275 2004-03-30  Paul Eggert  <eggert@twinsun.com>
76276
76277         Merge from coreutils.
76278
76279         * m4/inttostr.m4: New file.
76280         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
76281         Require AM_STDBOOL_H and gl_TIMESPEC instead.
76282         Require gl_CLOCK_TIME.
76283         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
76284
76285 2004-03-30  Paul Eggert  <eggert@twinsun.com>
76286
76287         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
76288         not bool, to be more consistent with Unix conventions.
76289         Suggested by Bruno Haible.
76290
76291         Merge from coreutils.
76292
76293         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
76294         * lib/umaxtostr.c: New files.
76295
76296         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
76297         the usual <time.h> dance.
76298         (get_date): Change signature to support fractional time stamps.
76299         All callers changed.
76300         * lib/getdate.y: Include "getdate.h" first, as we can now
76301         assume C89 and don't need to worry about 'const'.
76302         Similarly, include "unlocked-io.h" near start, not in middle.
76303         Include <limits.h>.
76304         (textint.value): Use long int rather than int.
76305         (textint.digits): Use size_t rather than int.
76306         (BILLION, LOG10_BILLION): New constants.
76307         (parser_control): New member rel_ns.  Members day_ordinal,
76308         time_zone, month, day, hour, minutes, rel_year, rel_month,
76309         rel_day, rel_hour, rel_minutes, rel_seconds
76310         are now long int, not int.  Member seconds is now struct timespec,
76311         not int.  New member timespec_seen.  Members dates_seen, days_seen,
76312         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
76313         not int.
76314         (%union.intval): Now long int, not int.
76315         New member timespec.
76316         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
76317         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
76318         (spec): Now is a timespec or an item list.
76319         (timespec, items): New nonterminals.
76320         (time, rel, relunit, number, get_date):
76321         Add support for fractional seconds.
76322         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
76323         (gmtime, localtime, mktime): Remove decls; not needed with C89.
76324         (to_hour): First arg is now long int, not int.
76325         (to_year): Returns long int, not int.
76326         Don't treat year -70 like 70.
76327         (tm_diff): Returns long int, not int.
76328         (lookup_word): Use bool instead of int when appropriate.
76329         (yylex): Use size_t for count, not int.
76330         Detect overflow when parsing large integer constants.
76331         Add support for fractions.
76332         (get_date): Make pointers 'const' if possible.
76333         Use more-portable code to detect integer overflow.
76334         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
76335         Don't use ctime; it's not reliable if the year has >4 digits.
76336
76337         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
76338         This is for compatibility with BSD.
76339
76340         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
76341         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
76342         From coreutils' system.h.
76343
76344         * lib/userspec.c: Don't include "posixver.h".
76345         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
76346         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
76347         compatible extension.  Simplify code by removing a boolean int
76348         that was always nonzero if a string was nonnull.
76349
76350 2004-03-30  Jim Meyering  <jim@meyering.net>
76351
76352         Merge from coreutils.
76353
76354         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
76355         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
76356         on some systems one must include <grp.h> before it.
76357         Reported by Christian Krackowizer.
76358
76359 2004-03-30  Jim Meyering  <jim@meyering.net>
76360
76361         Merge from coreutils.
76362
76363         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
76364
76365         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
76366         an empty input stream.
76367
76368         * lib/readtokens.c: Include <stdbool.h>.
76369         (readtoken): Use `size_t' rather than int/long.
76370         All callers adjusted.
76371         Use `bool' rather than `int' where appropriate.
76372         Use memset rather than an explicit loop.
76373         Use x2nrealloc rather than xrealloc.
76374         Allow the use of `\0' as a delimiter.
76375         (readtokens): Likewise.
76376         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
76377
76378 2004-03-30  Jim Meyering  <jim@meyering.net>
76379
76380         * m4/realloc.m4: Remove file, since now it does no more than
76381         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
76382         the `configure.ac' section of module/realloc.
76383         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
76384
76385 2004-03-30  Bruno Haible  <bruno@clisp.org>
76386
76387         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
76388         nonnull.
76389
76390 2004-03-29  Paul Eggert  <eggert@twinsun.com>
76391
76392         Merge changes to getloadavg.c from coreutils and Emacs.
76393
76394         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
76395         Define to an expression, not to the empty string.
76396         Include cloexec.h and xalloc.h.
76397         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
76398         Use set_cloexec_flag rather than rolling our own.
76399         * lib/cloexec.c, lib/cloexec.h: New files.
76400
76401 2004-03-29  Paul Eggert  <eggert@twinsun.com>
76402
76403         * m4/cloexec.m4: New file.
76404
76405 2004-03-18  Paul Eggert  <eggert@twinsun.com>
76406
76407         * lib/getopt.h: Sync with libc CVS.
76408
76409 2004-03-18  Paul Eggert  <eggert@twinsun.com>
76410             Bruno Haible  <bruno@clisp.org>
76411
76412         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
76413         mbswidth.
76414
76415 2004-03-18  Paul Eggert  <eggert@twinsun.com>
76416             Bruno Haible  <bruno@clisp.org>
76417
76418         * lib/mbswidth.h: Include <wchar.h> only if
76419         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
76420         <wchar.h>.
76421         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
76422
76423 2004-03-09  Paul Eggert  <eggert@twinsun.com>
76424
76425         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
76426         Sync with libc CVS.
76427         * lib/getopt_int.h: New file, also synced from libc.
76428
76429 2004-03-09  Paul Eggert  <eggert@twinsun.com>
76430
76431         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
76432         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
76433         Bring back getopt.c, getopt.h, getopt1.c.
76434
76435 2004-03-07  Paul Eggert  <eggert@twinsun.com>
76436
76437         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
76438         All uses changed.  Check for sa_sigaction member; this fixes
76439         a bug first reported by Jason Andrade in
76440         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
76441
76442 2004-03-07  Paul Eggert  <eggert@twinsun.com>
76443
76444         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
76445         '#if' expressions.  Unlike the code it replaces, it does not
76446         depend on (defined _SC_PAGESIZE).  However, it does depend on
76447         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
76448         first reported by Jason Andrade in
76449         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
76450
76451 2004-02-25  Simon Josefsson  <jas@extundo.com>
76452
76453         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
76454
76455 2004-02-25  Simon Josefsson  <jas@extundo.com>
76456
76457         * lib/strdup.h: New file.
76458         * lib/strdup.c: Include it.
76459         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
76460         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
76461
76462 2004-02-23  Karl Berry  <karl@gnu.org>
76463
76464         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
76465         (from fencepost.gnu.org:/gd/gnuorg).
76466
76467 2004-02-23  Karl Berry  <karl@gnu.org>
76468
76469         * config/srclistvars.sh (GNUORG) [karl]: redefine.
76470         * config/srclist.txt: add maintain/standards documents.
76471
76472 2004-02-18  Bruno Haible  <bruno@clisp.org>
76473
76474         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
76475         Reported by Derek Robert Price <derek@ximbiot.com>.
76476
76477 2004-02-16  Karl Berry  <karl@gnu.org>
76478
76479         * config/mkinstalldirs, install-sh: update from automake.
76480
76481 2004-02-06  Karl Berry  <karl@gnu.org>
76482
76483         * m4/po.m4: update from gettext 0.14.1.
76484
76485 2004-02-06  Karl Berry  <karl@gnu.org>
76486
76487         * lib/config.charset: update from gettext 0.14.1.
76488
76489 2004-02-05  Paul Eggert  <eggert@twinsun.com>
76490
76491         Add comments and code, prompted by suggestions from Bruno Haible
76492         for sh-quote.
76493         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
76494         describing the enum quoting_style values.
76495         * lib/quotearg.c (quotearg_alloc): New function.
76496         (quotearg_buffer_restyled): Treat lone { and } as special.
76497         Treat = as special.  Work around bug with older shells
76498         that "see" a '\' that is really the 2nd byte of a multibyte char.
76499         Quote empty string with shell_quoting_style.
76500
76501 2004-02-03  Bruno Haible  <bruno@clisp.org>
76502
76503         * m4/pipe.m4: New file, from GNU gettext.
76504
76505 2004-02-03  Bruno Haible  <bruno@clisp.org>
76506
76507         * lib/pipe.h: New file, from GNU gettext.
76508         * lib/pipe.c: New file, from GNU gettext.
76509
76510 2004-01-27  Bruno Haible  <bruno@clisp.org>
76511
76512         * m4/execute.m4: New file, from GNU gettext.
76513
76514 2004-01-27  Bruno Haible  <bruno@clisp.org>
76515
76516         * lib/execute.h: New file, from GNU gettext.
76517         * lib/execute.c: New file, from GNU gettext.
76518         * lib/w32spawn.h: New file, from GNU gettext.
76519
76520 2004-01-24  Paul Eggert  <eggert@twinsun.com>
76521
76522         Merge from diffutils.
76523
76524         * lib/file-type.c (file_type): Add typed memory objects.
76525         * lib/file-type.h (S_TYPEISTMO): New macro.
76526
76527         * lib/c-stack.h (c_stack_action): Remove argv argument.
76528         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
76529         (die): Don't calculate message unless segv_action returns.
76530         (get_stack_location, min_address_from_argv, max_address_from_argv,
76531         volatile stack_base, volatile_stack_size): Remove.
76532         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
76533         that every segmentation violation is a stack overflow.  (Ouch!)
76534         See Debian bug 136249 (still outstanding) for more info about why
76535         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
76536
76537 2004-01-24  Paul Eggert  <eggert@twinsun.com>
76538
76539         Exit-status fix from coreutils.
76540
76541         Use exit_failure consistently in place of EXIT_FAILURE,
76542         so that program exit statuses are consistent on failure.
76543
76544         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
76545         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
76546         * lib/argmatch.h: Comment fix to match the above.
76547         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
76548         Now a macro referring to exit_failure, instead of a separate
76549         variable.  Include "exitfail.h" to get it.
76550         * lib/xstrtol.h: Include "exitfail.h".
76551         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
76552
76553         * lib/long-options.c (parse_long_options): Use prototype
76554         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
76555         for clarity.
76556
76557 2004-01-21  Jim Meyering  <jim@meyering.net>
76558
76559         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
76560         so as not to conflict with a different-sized __mktime_internal
76561         function in GNU libc.
76562         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
76563         Problem building statically-linked `ls' reported by Michael Brunnbauer.
76564
76565 2004-01-20  Karl Berry  <karl@gnu.org>
76566
76567         * config/config.guess: update from config.
76568
76569         * config/srclistvars.sh: GNUWWWLICENSES for karl.
76570
76571 2004-01-20  Bruno Haible  <bruno@clisp.org>
76572
76573         Safer stack allocation.
76574         * lib/setenv.c: Include allocsa.h.
76575         (alloca): Remove fallback definition.
76576         (freea): Remove macro.
76577         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
76578         instead of freea.
76579
76580 2004-01-20  Bruno Haible  <bruno@clisp.org>
76581
76582         * m4/eealloc.m4: New file, from GNU gettext.
76583
76584 2004-01-20  Bruno Haible  <bruno@clisp.org>
76585
76586         * m4/allocsa.m4: New file, from GNU gettext.
76587
76588 2004-01-20  Bruno Haible  <bruno@clisp.org>
76589
76590         * lib/xallocsa.h: New file, from GNU gettext.
76591         * lib/xallocsa.c: New file, from GNU gettext.
76592
76593 2004-01-20  Bruno Haible  <bruno@clisp.org>
76594
76595         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
76596
76597 2004-01-20  Bruno Haible  <bruno@clisp.org>
76598
76599         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
76600         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
76601         specially.
76602
76603 2004-01-20  Bruno Haible  <bruno@clisp.org>
76604
76605         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
76606         patch.
76607
76608 2004-01-20  Bruno Haible  <bruno@clisp.org>
76609
76610         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
76611
76612 2004-01-20  Bruno Haible  <bruno@clisp.org>
76613
76614         * lib/eealloc.h: New file.
76615
76616 2004-01-20  Bruno Haible  <bruno@clisp.org>
76617
76618         * lib/binary-io.h: Avoid warnings on Cygwin.
76619
76620 2004-01-20  Bruno Haible  <bruno@clisp.org>
76621
76622         * lib/allocsa.h: New file, from GNU gettext.
76623         * lib/allocsa.c: New file, from GNU gettext.
76624
76625 2004-01-18  Karl Berry  <karl@gnu.org>
76626
76627         * doc/gpl.texi, doc/lgpl.texi: new files.
76628
76629 2004-01-18  Karl Berry  <karl@gnu.org>
76630
76631         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
76632         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
76633
76634 2004-01-15  Paul Eggert  <eggert@twinsun.com>
76635
76636         Merge from coreutils.
76637
76638         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
76639         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
76640         (gl_DEFAULT_POSIX2_VERSION): Move
76641         the documentation from 'configure' into 'config.hin',
76642         so that 'configure --help' isn't burdened by it and
76643         we don't have to worry about its formatting there.
76644         Reword the documentation so that it's more succinct
76645         and can be run together into a single paragraph.
76646         * m4/same.m4 (gl_SAME): Check for pathconf.
76647
76648 2004-01-15  Paul Eggert  <eggert@twinsun.com>
76649
76650         Merge from coreutils.
76651
76652         * lib/posixver.c: Include posixver.h.
76653
76654         * lib/same.c: Include <stdbool.h>, <limits.h>.
76655         (_POSIX_NAME_MAX): Define if not defined.
76656         (MIN): New macro.
76657         (same_name): If file names are silently truncated, report
76658         that the file names are the same if they are the same after
76659         the silent truncation.
76660
76661         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
76662         conversion function.
76663         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
76664         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
76665         longer needed.
76666
76667 2004-01-15  Jim Meyering  <jim@meyering.net>
76668
76669         Merge from coreutils.
76670
76671         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
76672         if no library is required.
76673         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
76674         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
76675         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
76676         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
76677         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
76678         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
76679         value, $ac_cv_search_crypt, if it's "none required".
76680         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
76681         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
76682         not gl_FUNC_GETLOADAVG.
76683         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
76684         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
76685
76686 2004-01-15  Jim Meyering  <jim@meyering.net>
76687
76688         Merge from coreutils.
76689
76690         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
76691         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
76692         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
76693
76694         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
76695         optional configure-time default.
76696
76697         * lib/version-etc.c (version_etc_copyright): Update copyright date.
76698
76699         * lib/xreadlink.c (xreadlink): Correct outdated comment.
76700
76701 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
76702
76703         Merge from coreutils.
76704
76705         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
76706         value, $ac_cv_search_nanosleep, if it's "none required".
76707
76708 2004-01-14  Paul Eggert  <eggert@twinsun.com>
76709
76710         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
76711         with like-named macro in fnmatch.c.
76712         (EXT): Use an internal constant instead.
76713
76714         Merge fnmatch patches from glibc.
76715         * lib/fnmatch.c (mbsinit): Remove define.
76716         Add libc_hidden_ver (__fnmatch, fnmatch).
76717         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
76718         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
76719
76720 2004-01-14  Karl Berry  <karl@gnu.org>
76721
76722         * config/install-sh: update from automake.
76723
76724 2004-01-13  Karl Berry  <karl@gnu.org>
76725
76726         * config/install-sh: update from automake.
76727
76728 2004-01-09  Karl Berry  <karl@gnu.org>
76729
76730         * config/install-sh: update from automake.
76731
76732 2004-01-05  Karl Berry  <karl@gnu.org>
76733
76734         * config/config.{sub,guess}: update from config.
76735
76736 2003-12-31  Karl Berry  <karl@gnu.org>
76737
76738         * config/depcomp: update from automake.
76739
76740 2003-12-14  Karl Berry  <karl@gnu.org>
76741
76742         * lib/config.charset: update from gettext-runtime.
76743
76744 2003-12-03  Paul Eggert  <eggert@twinsun.com>
76745
76746         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
76747         Bug reported by Alfred M. Szmidt.
76748
76749 2003-12-03  Bruno Haible  <bruno@clisp.org>
76750
76751         * m4/gettext.m4: Upgrade from gettext-0.13.
76752         * m4/po.m4: Upgrade from gettext-0.13.
76753         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
76754         * m4/intmax.m4: New file, from gettext-0.13.
76755         * m4/printf-posix.m4: New file, from gettext-0.13.
76756
76757 2003-11-29  Karl Berry  <karl@gnu.org>
76758
76759         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
76760
76761 2003-11-25  Paul Eggert  <eggert@twinsun.com>
76762             Bruno Haible  <bruno@clisp.org>
76763
76764         * lib/printf-parse.h: Don't include sys/types.h.
76765         (ARG_NONE): New macro.
76766         (char_directive): Change type of *arg_index fields to size_t.
76767         * lib/printf-parse.c: Don't include sys/types.h.
76768         (SSIZE_MAX): Remove macro.
76769         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
76770         Remove unnecessary overflow check.
76771         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
76772         fields.
76773
76774 2003-11-25  Bruno Haible  <bruno@clisp.org>
76775
76776         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
76777
76778 2003-11-25  Bruno Haible  <bruno@clisp.org>
76779
76780         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
76781         gt_TYPE_SSIZE_T.
76782
76783 2003-11-24  Paul Eggert  <eggert@twinsun.com>
76784
76785         * modules/alloca: Remove dependency on xalloc.
76786
76787 2003-11-24  Paul Eggert  <eggert@twinsun.com>
76788
76789         * lib/alloca.c: Remove dependency on xalloc module.
76790         (xalloc_die): Remove.
76791         (memory_full) [!defined emacs]: New macro.
76792         [!defined emacs]: Don't include xalloc.h.
76793         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
76794         address arithmetic overflows.  Change datatypes a bit to avoid
76795         unnecessary casts.
76796
76797 2003-11-22  Jim Meyering  <jim@meyering.net>
76798
76799         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
76800         s/size/size_t/.
76801
76802 2003-11-21  Karl Berry  <karl@gnu.org>
76803
76804         * config/config.{sub,guess}: update from config.
76805
76806 2003-11-18  Karl Berry  <karl@gnu.org>
76807
76808         * config/config.{sub,guess}: update from config.
76809
76810         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
76811
76812 2003-11-17  Paul Eggert  <eggert@twinsun.com>
76813
76814         * README: Mention that S+T cannot overflow if S is the size of
76815         an existing object and T is sufficiently small.
76816
76817 2003-11-17  Jim Meyering  <jim@meyering.net>
76818
76819         On systems without utime and without a utimes function capable of
76820         dealing with a NULL struct utimbuf* argument, this utime replacement
76821         could -- in unusual circumstances -- leak a file descriptor.
76822         * lib/utime.c: Include <unistd.h> and <errno.h>.
76823         (utime_null): Be sure to close `fd' and to preserve errno.
76824         Reported by Geoff Collyer via Arnold Robbins.
76825
76826 2003-11-17  Bruno Haible  <bruno@clisp.org>
76827
76828         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
76829         (Depends-on): Add xsize.
76830
76831 2003-11-17  Bruno Haible  <bruno@clisp.org>
76832
76833         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
76834
76835 2003-11-17  Bruno Haible  <bruno@clisp.org>
76836
76837         * lib/vasnprintf.c (alloca): Remove fallback definition.
76838         (freea): Remove definition.
76839         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
76840         Reported by Paul Eggert.
76841
76842 2003-11-16  Paul Eggert  <eggert@twinsun.com>
76843             Bruno Haible  <bruno@clisp.org>
76844
76845         Protect against address arithmetic overflow.
76846         * lib/printf-args.h: Include stddef.h.
76847         (arguments): Change type of field 'count' to size_t.
76848         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
76849         'unsigned int' where appropriate.
76850         * lib/printf-parse.h: Include sys/types.h.
76851         (char_directive): Change type of *arg_index fields to ssize_t.
76852         (char_directives): Change type of fields 'count', max_*_length to
76853         size_t.
76854         * lib/printf-parse.c: Include sys/types.h and xsize.h.
76855         (SSIZE_MAX): Define fallback value.
76856         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
76857         instead of 'int' where appropriate. Check a_allocated, d_allocated
76858         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
76859         * lib/vasnprintf.c: Include xsize.h.
76860         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
76861         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
76862         overflow. Avoid wraparound when converting a width or precision from
76863         decimal to binary.
76864
76865 2003-11-16  Bruno Haible  <bruno@clisp.org>
76866
76867         Update from GNU gettext.
76868         * lib/printf-parse.c: Generalize to it can be compiled for wide
76869         strings.
76870         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
76871         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
76872         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
76873         SNPRINTF): New macros.
76874         Don't include <alloca.h> if the file is used inside libintl.
76875         (local_wcslen): New function, for Solaris 2.5.1.
76876         (VASNPRINTF): Use it instead of wcslen.
76877
76878 2003-11-16  Bruno Haible  <bruno@clisp.org>
76879
76880         * lib/xsize.h (xmax): New function.
76881         (xsum, xsum3, xsum4): Declare as "pure" functions.
76882
76883 2003-11-12  Paul Eggert  <eggert@twinsun.com>
76884
76885         * modules/xalloc (Files): Undo latest change, since xalloc.h
76886         no longer needs SIZE_MAX or PTRDIFF_MAX.
76887
76888 2003-11-12  Paul Eggert  <eggert@twinsun.com>
76889
76890         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
76891         gl_PTRDIFF_MAX.
76892
76893 2003-11-12  Paul Eggert  <eggert@twinsun.com>
76894
76895         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
76896         "return", to pacify some unknown compiler.  Problem reported
76897         by Joerg Schilling.
76898
76899 2003-11-12  Paul Eggert  <eggert@twinsun.com>
76900
76901         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
76902         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
76903         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
76904         heuristic is just as accurate as far as we know, and it removes a
76905         dependency on size_max.m4 and ptrdiff_max.m4.
76906
76907 2003-11-11  Bruno Haible  <bruno@clisp.org>
76908
76909         * modules/xsize (Files): Add m4/size_max.m4.
76910         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
76911
76912 2003-11-11  Bruno Haible  <bruno@clisp.org>
76913
76914         * m4/size_max.m4: New file.
76915         * m4/ptrdiff_max.m4: New file.
76916         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
76917         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
76918         (gl_XALLOC): Invoke it.
76919
76920 2003-11-11  Bruno Haible  <bruno@clisp.org>
76921
76922         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
76923         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
76924         defined.
76925
76926 2003-11-10  Paul Eggert  <eggert@twinsun.com>
76927
76928         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
76929         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
76930         rejected some allocations of exactly SIZE_MAX - 2 bytes.
76931         From Bruno Haible.
76932         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
76933         not (size_t) -1, since it's defined here.
76934
76935 2003-11-09  Karl Berry  <karl@gnu.org>
76936
76937         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
76938
76939 2003-11-06  Paul Eggert  <eggert@twinsun.com>
76940
76941         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
76942         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
76943         Reject sizes of exactly SIZE_MAX bytes.
76944         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
76945         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
76946
76947 2003-11-05  Bruno Haible  <bruno@clisp.org>
76948
76949         * lib/xsize.h: Include limits.h, to avoid a possible collision with
76950         SIZE_MAX defined in <limits.h> on Solaris.
76951
76952 2003-11-04  Jim Meyering  <jim@meyering.net>
76953
76954         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
76955         variable names, rather than @VAR@.
76956         * modules/poll: Likewise.
76957
76958 2003-11-04  Bruno Haible  <bruno@clisp.org>
76959
76960         * modules/xsize: New file.
76961         * modules/linebreak: Depend on xsize.
76962         * MODULES.html.sh (func_all_modules): Add xsize.
76963
76964 2003-11-04  Bruno Haible  <bruno@clisp.org>
76965
76966         * m4/xsize.m4: New file.
76967
76968 2003-11-04  Bruno Haible  <bruno@clisp.org>
76969
76970         * lib/xsize.h: New file.
76971         * lib/linebreak.c: Include xsize.h.
76972         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
76973         argument for overflow.
76974         Suggested by Paul Eggert.
76975
76976 2003-11-03  Karl Berry  <karl@gnu.org>
76977
76978         * config/config.{guess,sub}: update from config.
76979
76980 2003-11-03  Jim Meyering  <jim@meyering.net>
76981
76982         * modules/userspec (lib_SOURCES): Add userspec.h.
76983         (Include): Add "userspec.h".
76984         Improve description.
76985
76986 2003-11-03  Jim Meyering  <jim@meyering.net>
76987
76988         * lib/userspec.c: Include "userspec.h".
76989         * lib/userspec.h: New file.
76990
76991 2003-11-03  Bruno Haible  <bruno@clisp.org>
76992
76993         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
76994
76995 2003-11-03  Bruno Haible  <bruno@clisp.org>
76996
76997         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
76998         available, to avoid (extremely rare) race condition.
76999         Suggested by Paul Eggert.
77000
77001 2003-11-02  Karl Berry  <karl@gnu.org>
77002
77003         * config/srclist.txt (vasprintf.c): sync broken, sigh.
77004
77005 2003-10-31  Paul Eggert  <eggert@twinsun.com>
77006
77007         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
77008         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
77009         (read_filesystem_list): Set and use me_type_malloced.
77010         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
77011         whatever the type happens to be), for brevity and consistency.
77012         Check for size calculation overflow on Alphas running OSF/1.
77013
77014 2003-10-31  Jim Meyering  <jim@meyering.net>
77015
77016         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
77017
77018         * lib/linebuffer.c: Include <string.h> for declaration of memset.
77019
77020 2003-10-30  Paul Eggert  <eggert@twinsun.com>
77021             Bruno Haible  <bruno@clisp.org>
77022
77023         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
77024         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
77025
77026 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
77027
77028         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
77029         netbsd*-gnu*.  Suggested by Robert Millan.
77030
77031 2003-10-29  Paul Eggert  <eggert@twinsun.com>
77032
77033         * modules/group-member: Depend on stdbool.
77034
77035 2003-10-29  Paul Eggert  <eggert@twinsun.com>
77036
77037         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
77038
77039 2003-10-29  Paul Eggert  <eggert@twinsun.com>
77040
77041         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
77042         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
77043         after the 'gnu' in these cases.  This fixes some bugs in the
77044         previous change, and is based on suggestions by Robert Millan.
77045
77046 2003-10-29  Paul Eggert  <eggert@twinsun.com>
77047
77048         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
77049         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
77050         no longer needed.
77051         * lib/quotearg.c (quotearg_n_options): Use it.
77052         * lib/group-member.c: Include <stdbool.h>.
77053         (free_group_info): Arg is now const *; don't free arg.
77054         (get_group_info): Now returns bool and accepts struct group_info *,
77055         rather than returning a malloc'ed struct group_info *.
77056         All uses changed.  Check for overflow in internal size calculation.
77057
77058         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
77059         rather than xmalloc/xrealloc.
77060         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
77061         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
77062         conformance bug: the old code used a pointer after freeing the
77063         storage that it addressed.
77064         * lib/hash.c (hash_initialize): Simplify the code by using
77065         xalloc_oversized rather than doing it by hand.
77066         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
77067         the buffer preserved.  Use free and xmalloc instead.
77068         * lib/quotearg.c (quotearg_n_options): Likewise.
77069         Use a simpler test for size overflow.  Don't use xalloc_oversized
77070         because unsigned int might be wider than size_t (!); this suggests
77071         that we should switch from unsigned int to size_t for slot numbers.
77072
77073 2003-10-28  Paul Eggert  <eggert@twinsun.com>
77074
77075         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
77076         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
77077         NetBSD kernels.  Requested by Richard Stallman.
77078
77079 2003-10-27  Paul Eggert  <eggert@twinsun.com>
77080
77081         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
77082         to allocate the returned structure.  Do not allocate a subarray,
77083         as x2nrealloc will do that.
77084         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
77085         instead of xnrealloc.
77086         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
77087
77088 2003-10-27  Bruno Haible  <bruno@clisp.org>
77089
77090         * lib/stdbool_.h: Better support for BeOS.
77091
77092 2003-10-26  Paul Eggert  <eggert@twinsun.com>
77093
77094         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
77095         now uses inline.
77096
77097 2003-10-26  Paul Eggert  <eggert@twinsun.com>
77098
77099         * lib/xalloc.h (xalloc_oversized): New static inline function, for
77100         callers that want to do their own size-overflow checking.  Include
77101         <stdbool.h>, since xalloc_oversized returns bool.
77102         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
77103         to use xalloc_oversized.
77104
77105         Add two functions x2realloc, x2nrealloc, for programs that grow
77106         arrays dynamically by doubling their sizes.
77107         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
77108         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
77109         New functions.
77110
77111         Port to C99 semantics for 'inline' of external functions.
77112         Bug reported by Bruno Haible.
77113         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
77114         with the old contents of xnmalloc.
77115         (xnmalloc, xmalloc): Use it.
77116         (xnrealloc_inline): New static inline function,
77117         with the old contents of xnrealloc.
77118         (xnrealloc, xrealloc): Use it.
77119
77120         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
77121         that.
77122
77123 2003-10-26  Karl Berry  <karl@gnu.org>
77124
77125         * config/srclist.txt (COPYING.DOC): no longer available from
77126         /gd/gnuorg; don't know where the ultimate source is.
77127
77128 2003-10-25  Paul Eggert  <eggert@twinsun.com>
77129
77130         Fix several address-calculation bugs in the hash modules,
77131         plus some minor code cleanup.
77132
77133         * lib/hash.h: Include <stdbool.h>, for bool.
77134         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
77135         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
77136         hash_get_n_entries, hash_get_max_bucket_length,
77137         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
77138         hash_rehash): Use size_t rather than unsigned.
77139         * lib/hash.c (struct hash_table, hash_get_n_buckets,
77140         hash_get_n_buckets_used, hash_get_n_entries,
77141         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
77142         hash_get_entries, hash_do_for_each, hash_string, is_prime,
77143         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
77144         Likewise.
77145         (SIZE_MAX): Define if not defined.
77146         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
77147         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
77148         hash_print):
77149         Use const * when possible.
77150         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
77151         (check_tuning): Fix bug: if tuning parameters were very close to
77152         0 or 1, rounding errors could have caused subscript violations.
77153         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
77154         (hash_initialize): Add 'fail:' label
77155         to free table and return NULL, and use it to simplify code.
77156         Use calloc rather than clearing the storage ourself.
77157         (hash_initialize, hash_rehash): Check for arithmetic overflow in
77158         buffer size calculations.
77159         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
77160         Include <stddef.h>, for size_t.
77161         * lib/hash-pjw.c (hash_pjw): Likewise.
77162         Switch to method described by Bruno Haible.
77163         Include <limits.h>, for CHAR_BIT.
77164         (SIZE_BITS): New macro.
77165
77166 2003-10-23  Paul Eggert  <eggert@twinsun.com>
77167
77168         * m4/getline.m4 (AM_FUNC_GETLINE):
77169         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
77170         hosts.  Problem reported by Derek Robert Price in
77171         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
77172         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
77173         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
77174
77175 2003-10-21  Paul Eggert  <eggert@twinsun.com>
77176
77177         * lib/getndelim2.c (getndelim2): When size calculation overflows,
77178         ceiling the allocation at NMAX bytes rather than silently
77179         discarding input bytes before NMAX is reached.  This makes
77180         a difference only if NMAX exceeds SIZE_MAX / 2.
77181
77182         * lib/obstack.c: Merge from glibc.
77183         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
77184         Add libc_hidden_def (_obstack_newchunk).
77185         (_obstack_free) [! defined _LIBC]: Remove.
77186         [defined _LIBC]: Make a strong alias from obstack_free, rather than
77187         a clone of the function body.
77188         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
77189         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
77190
77191         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
77192         glibc.
77193         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
77194         arg to memcpy.
77195
77196         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
77197         (obstack_ptr_grow_fast, obstack_int_grow_fast):
77198         Don't use lvalue casts, as GCC plans to remove support for them
77199         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
77200         was also present in the non-GCC version, indicating that this
77201         code had always been buggy and had never been widely used.
77202         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
77203         Use the fast variant of each macro, rather than copying the
77204         definiens of the fast variant; that way, we'll be more likely to
77205         catch future bugs in the fast variants.
77206
77207 2003-10-20  Bruno Haible  <bruno@clisp.org>
77208
77209         * modules/wait-process: New file.
77210         * MODULES.html.sh (func_all_modules): Add wait-process.
77211
77212 2003-10-20  Bruno Haible  <bruno@clisp.org>
77213
77214         * m4/wait-process.m4: New file.
77215
77216 2003-10-20  Bruno Haible  <bruno@clisp.org>
77217
77218         * lib/wait-process.h: New file, from GNU gettext.
77219         * lib/wait-process.c: New file, from GNU gettext.
77220
77221 2003-10-19  Jim Meyering  <jim@meyering.net>
77222
77223         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
77224         HPUX 10.20.
77225
77226 2003-10-18  Karl Berry  <karl@gnu.org>
77227
77228         * config/config.guess: update from config.
77229
77230 2003-10-16  Paul Eggert  <eggert@twinsun.com>
77231
77232         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
77233         (getgroups): First arg is int, not size_t.
77234         Don't let 'free' mangle errno.
77235
77236 2003-10-16  Paul Eggert  <eggert@twinsun.com>
77237
77238         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
77239
77240 2003-10-16  Karl Berry  <karl@gnu.org>
77241
77242         * config/config.{guess,sub}: update from config.
77243
77244 2003-10-16  Jim Meyering  <jim@meyering.net>
77245
77246         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
77247         memcpy.
77248
77249 2003-10-15  Paul Eggert  <eggert@twinsun.com>
77250
77251         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
77252         (SIZE_MAX): Remove.
77253         (new_exclude, add_exclude_file): Initial size no longer needs to
77254         be a power of 2.
77255         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
77256         our own address arithmetic overflow checking.
77257
77258         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
77259         (fnmatch): Do not alloca more than 2000 wide characters;
77260         instead, use malloc for large buffers.
77261         Check for address arithmetic overflow, and return -1
77262         with errno set to ENOMEM in that case.
77263         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
77264         (NEW_PATTERN): Do not alloca more than 8000 bytes;
77265         instead, return -1.  Check for address arithmetic overflow.
77266
77267 2003-10-14  Paul Eggert  <eggert@twinsun.com>
77268
77269         Handle invalid suffixes and overflow independently, so that
77270         callers can treat them independently as needed.  Fix some bugs in
77271         suffix handling, e.g., "100k@" was not diagnosed as an invalid
77272         suffix for a human-readable blocksize.  The major caller-visible
77273         change is the addition of a new
77274         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
77275         that both overflow and suffix chars were found.
77276
77277         * lib/human.c (humblock): Don't check separately for invalid suffix
77278         char; that is xstrtoumax's job (now that its bug is fixed).
77279         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
77280         INTMAX_MAX]: New macros.
77281         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
77282         TYPE_MAXIMUM): New macros.
77283         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
77284         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
77285         if overflow occurs, as it's what __strtol does and it's more useful
77286         in practice.
77287         (__xstrtol): If __strtol reports some error other than ERANGE,
77288         reflect it to the caller as LONGINT_INVALID.  If it reports
77289         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
77290         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
77291         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
77292         value.
77293         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
77294         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
77295         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
77296         [defined UINTMAX_MAX]: New macros.
77297
77298 2003-10-14  Bruno Haible  <bruno@clisp.org>
77299
77300         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
77301
77302 2003-10-14  Bruno Haible  <bruno@clisp.org>
77303
77304         * m4/sig_atomic_t: New file, from GNU gettext.
77305         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
77306
77307 2003-10-14  Bruno Haible  <bruno@clisp.org>
77308
77309         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
77310         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
77311         Also use volatile where needed.
77312
77313 2003-10-12  Paul Eggert  <eggert@twinsun.com>
77314
77315         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
77316         Change maintainer from Bruno Haible to 'all'.
77317
77318 2003-10-12  Paul Eggert  <eggert@twinsun.com>
77319
77320         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
77321
77322 2003-10-12  Paul Eggert  <eggert@twinsun.com>
77323
77324         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
77325         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
77326         and define in terms of the other primitives.
77327         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
77328         (SIZE_MAX): Define if not already defined.
77329         (array_size_overflow): New function.
77330         (xalloc_die): Abort instead of exiting if 'error' returns.
77331         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
77332         (xmalloc, xrealloc): Use them.
77333         (xcalloc): Check for address arithmetic overflow.
77334         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
77335         a bit faster than strcpy.
77336
77337 2003-10-10  Simon Josefsson  <jas@extundo.com>
77338
77339         * modules/argp (Depends-on): Add restrict and strcase.
77340
77341 2003-10-10  Simon Josefsson  <jas@extundo.com>
77342
77343         * m4/argp.m4: Add AC_C_INLINE.
77344
77345 2003-10-08  Paul Eggert  <eggert@twinsun.com>
77346
77347         Merge getpass from libc, plus a few fixes.
77348
77349         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
77350         Include <stdbool.h>.
77351         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
77352         __fsetlocking to empty.
77353         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
77354         do include <bits/libc-lock.h>.
77355         Do not include <fcntl.h>; not needed.
77356         [_LIBC]: Include <wchar.h>.
77357         (NOTCANCEL_MODE): New macro.
77358         (flockfile, funlockfile) [_LIBC]: New macros.
77359         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
77360         [!_LIBC]: New macros.
77361         (call_fclose): New function.
77362         (getpass): Use it.  Save tty stream separately; this simplifies the
77363         code and makes it more reliable if stdin happens to equal stdout.
77364         Invoke __fsetlocking on tty.
77365         Handle thread cancellation if needed.
77366         Namespace cleanup (use __tcgetattr, __getline).
77367         Use bool for Booleans.
77368         [USE_IN_LIBIO]: Handle wide streams.
77369         [!_LIBC]: Unconditionally do the fseek, since we don't know what
77370         stream might go where.
77371
77372         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
77373         doesn't have to include <stdio.h> before us.
77374         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
77375         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
77376         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
77377         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
77378         if not declared, so that we can use getpass.c code from libc without
77379         rewriting it.
77380         (flockfile, ftrylockfile, funlockfile): New macros.
77381
77382 2003-10-08  Paul Eggert  <eggert@twinsun.com>
77383
77384         * modules/getpass: Depend on stdbool.
77385
77386 2003-10-08  Paul Eggert  <eggert@twinsun.com>
77387
77388         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
77389
77390 2003-10-07  Karl Berry  <karl@gnu.org>
77391
77392         * config/config.{guess,sub}: update from config.
77393
77394 2003-10-06  Jim Meyering  <jim@meyering.net>
77395             Bruno Haible  <bruno@clisp.org>
77396
77397         This lets translators provide better translations for the
77398         "Written by ..." part of --version output.
77399         * lib/version-etc.h: Include stdarg.h.
77400         (version_etc_copyright): Declare as readonly.
77401         (version_etc): Make this function variadic with a NULL-terminated list
77402         of author name strings.
77403         (version_etc_va): New declaration.
77404         * lib/version-etc.c: Include stdarg.h, stdlib.h.
77405         (version_etc_copyright): Declare as readonly.
77406         (version_etc_va): New function. Provide a different translatable string
77407         for each possible number of authors < 10. Abbreviate when there are 10
77408         authors or more.
77409         (version_etc): Make this function variadic. Call version_etc_va.
77410         Suggestion from Gary V. Vaughan.
77411
77412         * lib/long-options.h (parse_long_options): Change prototype: the
77413         authors string is moved to the end and becomes variadic.
77414         * lib/long-options.c: Include stdarg.h.
77415         (parse_long_options): Make this function variadic, too.
77416         Call version_etc_va, not version_etc.
77417
77418 2003-10-06  Bruno Haible  <bruno@clisp.org>
77419
77420         * modules/version-etc-2: Remove file.
77421         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
77422
77423 2003-10-06  Bruno Haible  <bruno@clisp.org>
77424
77425         * modules/fatal-signal: New file.
77426         * MODULES.html.sh (func_all_modules): Add fatal-signal.
77427
77428 2003-10-06  Bruno Haible  <bruno@clisp.org>
77429
77430         * m4/fatal-signal.m4: New file.
77431         * m4/signalblocking.m4: New file, from GNU gettext.
77432
77433 2003-10-06  Bruno Haible  <bruno@clisp.org>
77434
77435         * lib/version-etc-2.h: Remove file.
77436         * lib/version-etc-2.c: Remove file.
77437
77438 2003-10-06  Bruno Haible  <bruno@clisp.org>
77439
77440         * lib/fatal-signal.h: New file, from GNU gettext.
77441         * lib/fatal-signal.c: New file, from GNU gettext.
77442
77443 2003-10-05  Paul Eggert  <eggert@twinsun.com>
77444
77445         * README: Rework advice for preventing empty .o files.
77446         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
77447         not <sys/types.h>.
77448
77449 2003-10-04  Karl Berry  <karl@gnu.org>
77450
77451         * lib/argp*: update from libc.
77452
77453 2003-10-04  Karl Berry  <karl@gnu.org>
77454
77455         * config/config.{guess,sub}: update from config.
77456
77457 2003-10-02  Bruno Haible  <bruno@clisp.org>
77458
77459         * modules/lchown (Include): Add lchown.h.
77460         * modules/time_r (Include): Use "..." syntax.
77461         * modules/xgetdomainname (Include): Add xgetdomainname.h.
77462
77463 2003-10-01  Simon Josefsson  <jas@extundo.com>
77464
77465         * MODULES.html.sh (func_all_modules): Move gethostname from section
77466         'based on' to section 'lacking' POSIX:2001.
77467
77468 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
77469
77470         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
77471         to output mode on the same stream.
77472
77473 2003-09-29  Paul Eggert  <eggert@twinsun.com>
77474
77475         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
77476         Fix arg typo in previous patch.
77477
77478 2003-09-28  Jim Meyering  <jim@meyering.net>
77479
77480         * lib/error.c: Correct cpp indentation.
77481
77482 2003-09-27  Paul Eggert  <eggert@twinsun.com>
77483
77484         * modules/free: New file.
77485
77486 2003-09-27  Paul Eggert  <eggert@twinsun.com>
77487
77488         * m4/free.m4: New file.
77489
77490 2003-09-27  Paul Eggert  <eggert@twinsun.com>
77491
77492         * lib/minmax.h (MIN, MAX)
77493         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
77494         Omit the special code that used __typeof__, since we worry that
77495         it could be more trouble than it's worth.  See:
77496         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
77497         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
77498
77499         * lib/free.c: New file.
77500
77501 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
77502
77503         Trivial fixes to Makefile.am parts of module listings.
77504         * modules/strstr: Append strstr.h to lib_SOURCES.
77505         * modules/strcase: Likewise, for strcase.h.
77506
77507 2003-09-27  Karl Berry  <karl@gnu.org>
77508
77509         * config/mkinstalldirs: update from automake.
77510
77511 2003-09-26  Paul Eggert  <eggert@twinsun.com>
77512
77513         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
77514         (error_tail): Do not loop, reallocating temporary buffer, since
77515         the output cannot contain more wide characters than the input
77516         contains bytes, the size must be big enough already.  This avoids
77517         one potential size overflow calculation.  Check for size overflow
77518         when calculating temporary buffer size.  Free temporary buffer
77519         when done, if it was allocated with malloc; this plugs a memory
77520         leak.  Remove casts from void * to pointers, that are no longer
77521         needed now that we're assuming C89 or better.
77522
77523         Merge error changes from glibc.
77524
77525         * lib/error.c, error.h: Update copyright notice header to match glibc.
77526         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
77527         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
77528         Disable cancellation while printing error.
77529         * lib/error.h: Prepend __ to parameter names.
77530
77531 2003-09-26  Jim Meyering  <jim@meyering.net>
77532
77533         * lib/error.c (error_tail): Move some declarations
77534         into inner scope where the local variables are used.
77535
77536 2003-09-26  Bruno Haible  <bruno@clisp.org>
77537
77538         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
77539         stpncpy().
77540         Don't define stpncpy through config.h; it's now done through stpncpy.h.
77541
77542 2003-09-26  Bruno Haible  <bruno@clisp.org>
77543
77544         * lib/stpncpy.h (gnu_stpncpy): New declaration.
77545         (stpncpy): Define as alias for gnu_stpncpy.
77546         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
77547
77548 2003-09-25  Simon Josefsson  <jas@extundo.com>
77549
77550         * lib/xgetdomainname.h: New file.
77551         * lib/xgetdomainname.c: New file.
77552
77553 2003-09-25  Simon Josefsson  <jas@extundo.com>
77554             Bruno Haible  <bruno@clisp.org>
77555
77556         * modules/getdomainname: New file.
77557         * modules/xgetdomainname: New file.
77558         * MODULES.html.sh (func_all_modules): Add getdomainname,
77559         xgetdomainname.
77560
77561 2003-09-25  Simon Josefsson  <jas@extundo.com>
77562             Bruno Haible  <bruno@clisp.org>
77563
77564         * m4/getdomainname.m4: New file.
77565
77566 2003-09-25  Simon Josefsson  <jas@extundo.com>
77567             Bruno Haible  <bruno@clisp.org>
77568
77569         * lib/getdomainname.h: New file.
77570         * lib/getdomainname.c: New file.
77571
77572 2003-09-25  Karl Berry  <karl@gnu.org>
77573
77574         * lib/argp-fmtstream.c, argp-help.c: update from libc.
77575
77576 2003-09-25  Karl Berry  <karl@gnu.org>
77577
77578         * config/install-sh: update from automake.
77579
77580 2003-09-25  Bruno Haible  <bruno@clisp.org>
77581
77582         * modules/version-etc-2: New file, from modules/version-etc with
77583         modifications.
77584         * MODULES.html.sh (func_all_modules): Add version-etc-2.
77585
77586 2003-09-25  Bruno Haible  <bruno@clisp.org>
77587
77588         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
77589         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
77590
77591 2003-09-24  Simon Josefsson  <jas@extundo.com>
77592
77593         * modules/xgethostname: Add xgethostname.h.
77594
77595 2003-09-24  Paul Eggert  <eggert@twinsun.com>
77596
77597         * lib/linebuffer.c (freebuffer): Don't free the argument, just
77598         the buffer associated with the argument.  Bug reported by
77599         Simon Josefsson.
77600
77601 2003-09-24  Paul Eggert  <eggert@twinsun.com>
77602
77603         * README: Document assumptions that 'int' is at least 32 bits
77604         wide, that integer arithmetic is 2's complement without overflow,
77605         that there are no holes in integer values, that adding sizes of
77606         two nonoverlapping objects can't overflow, and that all-bits-zero
77607         yields scalar zero.  Fix spelling and capitalization typos.
77608
77609 2003-09-19  Karl Berry  <karl@gnu.org>
77610
77611         * lib/argp.h: update from libc.
77612
77613 2003-09-17  Paul Eggert  <eggert@twinsun.com>
77614
77615         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
77616         to avoid spurious warnings like "AC_RUN_IFELSE was called before
77617         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
77618
77619 2003-09-17  Paul Eggert  <eggert@twinsun.com>
77620
77621         * gnulib-tool: Use "test -h", not "test -L", for portability
77622         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
77623         (tags_regexp): Remove, since \| doesn't conform to POSIX.
77624         (sed_extract_prog): Issue s commands one-by-one, rather than
77625         using \| in one s command.
77626
77627 2003-09-16  Paul Eggert  <eggert@twinsun.com>
77628
77629         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
77630         input error, instead of returning NULL the next time we are called
77631         (and therefore losing track of errno).
77632
77633 2003-09-16  Bruno Haible  <bruno@clisp.org>
77634
77635         * gnulib-tool (func_create_testdir): Warn about duplicated
77636         dependencies.
77637
77638 2003-09-15  Paul Eggert  <eggert@twinsun.com>
77639
77640         * modules/argmatch, modules/fatal, modules/obstack,
77641         modules/xalloc, modules/xgethostname: Sort dependencies by
77642         importance, not alphabetically.
77643
77644 2003-09-15  Paul Eggert  <eggert@twinsun.com>
77645
77646         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
77647         fails, so that the caller gets the proper errno.
77648
77649         * lib/readutmp.c (read_utmp): Likewise.
77650         Check for fstat error.  Close stream and free storage
77651         when failing.
77652
77653 2003-09-14  Karl Berry  <karl@gnu.org>
77654
77655         * config/srclist.txt (strdup.c): disable for c89 changes.
77656
77657 2003-09-14  Jim Meyering  <jim@meyering.net>
77658
77659         * lib/getloadavg.c: Correct cpp indentation.
77660         * lib/strdup.c: Likewise.
77661         * lib/vasnprintf.c: Likewise.
77662
77663 2003-09-14  Bruno Haible  <bruno@clisp.org>
77664
77665         * modules/fwriteerror: New file.
77666         * MODULES.html.sh (func_all_modules): Add fwriteerror.
77667
77668 2003-09-14  Bruno Haible  <bruno@clisp.org>
77669
77670         * lib/fwriteerror.h: New file.
77671         * lib/fwriteerror.c: New file.
77672
77673 2003-09-12  Paul Eggert  <eggert@twinsun.com>
77674
77675         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
77676         modules/xgethostname, modules/xalloc: Depend on exit.
77677
77678 2003-09-12  Paul Eggert  <eggert@twinsun.com>
77679
77680         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
77681
77682         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
77683         and AC_MINIX, too, so that their extensions are available.
77684
77685         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
77686         This macro has been superseded by gl_BACKUPFILE.
77687
77688         More patches to assume C89 or better.
77689
77690         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
77691
77692         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
77693         unconditionally.
77694         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
77695         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
77696         Include <string.h>, <stdlib.h> unconditionally.
77697         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
77698         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
77699         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
77700         headers or for string.h.
77701         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
77702         or strtoul.
77703
77704         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
77705         headers.
77706         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
77707         * m4/userspec.m4 (gl_USERSPEC): Likewise.
77708         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
77709         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
77710         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
77711         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
77712         memcpy, memset.
77713         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
77714         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
77715         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
77716         strtol.
77717         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
77718         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
77719         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
77720         strtoul.
77721
77722 2003-09-12  Paul Eggert  <eggert@twinsun.com>
77723
77724         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
77725         * lib/obstack.c [!defined _LIBC]: Likewise.
77726         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
77727         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
77728         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
77729
77730         More changes to assume C89 or better.
77731
77732         * lib/error.c (error_tail): Assume vprintf.
77733
77734         * lib/argmatch.c (getenv): Remove decl.
77735         * lib/progreloc.c (get_full_program_name): Define via prototype.
77736         * lib/setenv.c (clearenv): Likewise.
77737         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
77738         needed.
77739         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
77740         (malloc, memcpy): Remove decls.
77741         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
77742         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
77743         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
77744         (memcpy): Remove macro.
77745         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
77746         (__P): Remove.  All uses removed.
77747         (PTR): Remove.  All uses changed to void *.
77748         (CHAR_BIT, NULL): Remove.
77749         (spaces, zeros, memset_space, memset_zero)
77750         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
77751         Remove.
77752         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
77753         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
77754         Define with prototype.
77755         Remove now-unnecessary prototype decl.
77756         (extra_args_spec): Assume ANSI C.  All uses changed.
77757         (extra_args_spec_iso): Remove.
77758         (my_strftime, emacs_strftimeu): Define via prototype.
77759         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
77760         unconditionally.
77761         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
77762         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
77763         (strtoul, strtol): Remove decls.
77764         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
77765         LONG_MAX): Remove.
77766         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
77767         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
77768         (LOCALE_PARAM_PROTO): New macro.
77769         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
77770         (INTERNAL (strtol), strtol): Define with a prototype.
77771         (PARAMS): Remove.  All uses removed.
77772         * lib/tempname.c: Include <string.h> unconditionally.
77773         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
77774         * lib/xgethostname.c (main): Define with a prototype.
77775         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
77776         Include <stdlib.h> unconditionally.
77777         (calloc, malloc, realloc, free): Remove decls.
77778         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
77779         Include <stdlib.h> unconditionally.  Sort include file names.
77780         (strtod): Remove.
77781         (xstrtod): Define with a prototype.
77782         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
77783         (strtol, strtoul): Remove decls.
77784
77785 2003-09-11  Paul Eggert  <eggert@twinsun.com>
77786
77787         More patches to assume C89 or better.
77788         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
77789         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
77790         string.h, memchr, STDC_HEADERS.
77791
77792 2003-09-11  Paul Eggert  <eggert@twinsun.com>
77793
77794         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
77795         Include <stdlib.h>, <string.h> unconditionally.
77796         Remove now-unnecessary cast to char *.
77797         * lib/strnlen.c: Include <string.h> unconditionally.
77798         * lib/yesno.c (yesno): Define with a prototype.
77799
77800 2003-09-11  Bruno Haible  <bruno@clisp.org>
77801
77802         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
77803
77804 2003-09-10  Jim Meyering  <jim@meyering.net>
77805
77806         * lib/error.c: Correct indentation of cpp directives.
77807
77808 2003-09-10  Bruno Haible  <bruno@clisp.org>
77809
77810         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
77811         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
77812         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
77813         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
77814         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
77815         <stdlib.h> and <string.h> checks.
77816         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
77817         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
77818
77819 2003-09-10  Bruno Haible  <bruno@clisp.org>
77820
77821         * lib/strcspn.c: Include <string.h> unconditionally.
77822         * lib/strpbrk.c: Include <string.h> unconditionally.
77823         * lib/strstr.c: Include <string.h> unconditionally.
77824         * lib/unicodeio.c: Include <string.h> unconditionally.
77825         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
77826         * lib/unsetenv.c: Likewise.
77827         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
77828         * lib/yesno.c: Include <stdlib.h> unconditionally.
77829         (rpmatch): Add prototype.
77830
77831 2003-09-09  Paul Eggert  <eggert@twinsun.com>
77832
77833         More patches to assume C89 or better.
77834         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
77835         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
77836         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
77837         or for string.h.
77838         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
77839         stdlib.h.
77840         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
77841         C headers.
77842         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
77843         string.h.
77844         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
77845         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
77846         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
77847         or for string.h.
77848         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
77849         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
77850         C headers.
77851         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
77852         memcpy.
77853         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
77854         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
77855         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
77856         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
77857         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
77858         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
77859         string.h, free.
77860         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
77861         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
77862         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
77863         C headers, or for string.h.
77864         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
77865         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
77866         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
77867         headers, memory.h, stdlib.h, string.h, strings.h.
77868         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
77869         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
77870         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
77871         strchr.
77872         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
77873         headers, memory.h, string.h.
77874         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
77875         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
77876         free.
77877         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
77878         headers.
77879         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
77880         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
77881         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
77882         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
77883         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
77884
77885 2003-09-09  Paul Eggert  <eggert@twinsun.com>
77886
77887         More K&R removal.
77888
77889         * lib/acosl.c (main): Use a prototype.
77890         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
77891         tanl.c: Likewise.
77892
77893         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
77894
77895         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
77896         (getopt, etopt_long, getopt_long_only, _getopt_internal)
77897         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
77898         with a prototype.
77899         * lib/getopt.c (const): Remove macro.
77900         Include <string.h> unconditionally.
77901         (my_index): Remove; all uses changed to strchr.
77902         (strlen): Remove decl.
77903         (exchange): Remove forward decl; no longer needed.
77904         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
77905         Define with prototype.
77906         * lib/getopt1.c (const): Remove macro.
77907         (getopt_long, getopt_long_only, main): Define with prototype.
77908
77909         * lib/getugroups.c: Include <string.h> unconditionally.
77910
77911         * lib/getusershell.c: Include <stdlib.h> unconditionally.
77912         (getusershell, setusershell, endusershell, readname, main):
77913         Define with prototypes.
77914
77915         * lib/group-member.c: Include group-member.h first.
77916         Include <stdlib.h> unconditionally.
77917
77918         * lib/hard-locale.c: Include hard-locale.h first.
77919         Include <stdlib.h>, <string.h> unconditionally.
77920
77921         * lib/hash.c (free, malloc): Remove decls.
77922         Include <stdlib.h> unconditionally.
77923
77924         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
77925         (getenv): Do not declare.
77926
77927         * lib/idcache.c: Include <string.h> unconditionally.
77928
77929         * lib/long-options.c: Include long-options.h first, to test interface.
77930         Include <stdlib.h> unconditionally.
77931
77932         * lib/makepath.c: Include makepath.h first, to test interface.
77933         Include <stdlib.h> and <string.h> unconditionally.
77934
77935         * lib/linebuffer.c: Include <stdlib.h>.
77936         (free): Remove decl.
77937
77938         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
77939         stddef.h. rpl_malloc returns void *, not char *.
77940         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
77941         prototype.
77942
77943         * lib/md5.h: Include <limits.h> unconditionally.
77944         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
77945         (__P): Remove; all uses removed.
77946         * lib/md5.c: Include "md5.h" first.
77947         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
77948         md5_buffer, md5_process_bytes, md5_process_block):
77949         Define with prototypes.
77950         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
77951         * lib/sha.c: Include "sha.h" first.
77952         Include <stdlib.h>, <string.h> unconditionally.
77953
77954         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
77955         * lib/memcmp.c (__ptr_t): Likewise.
77956         * lib/memrchr.c (__ptr_t): Likewise.
77957         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
77958         Include <string.h> unconditionally.
77959         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
77960         * lib/memchr.c: Include <stdlib.h> unconditionally.
77961         * lib/memchr.c (LONG_MAX): Remove.
77962         * lib/memrchr.c (LONG_MAX): Likewise.
77963         * lib/memchr.c (__memchr): Define via a prototype.
77964         * lib/memrchr.c (__memrchr): Likewise.
77965         * lib/memcmp.c (__P): Remove, and remove all uses.
77966         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
77967         Remove forward decls; no longer needed.
77968         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
77969         Use types required by C89 in prototype.
77970
77971         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
77972         * lib/savedir.c: Likewise.
77973         * lib/mkdir.c (free): Remove decl.
77974         * lib/rmdir.c (rmdir): Define with a prototype.
77975         * lib/savedir.c: Include savedir.h first, to test interface.
77976
77977         * lib/mktime.c (STDC_HEADERS): Remove.
77978         Include <stdlib.h>, <string.h> unconditionally.
77979
77980         * lib/modechange.c: Include <stdlib.h> unconditionally.
77981         (malloc): Remove decl.
77982
77983         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
77984         (free): Remove decl.
77985
77986         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
77987         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
77988         (This type really should be intptr_t, but that's a C99ism.)
77989         (_obstack_memcpy): Remove: all uses changed to memcpy.
77990         Include <string.h> unconditionally.
77991         (struct obstack): Assume __STDC__ for types of members
77992         chunkfun, freefun, extra_arg.
77993         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
77994         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
77995         obstack_begin, obstack_specify_allocation,
77996         obstack_specify_allocation_with_arg, obstack_chunkfun,
77997         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
77998         Remove unprototyped decls and the macros that use them.
77999         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
78000         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
78001         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
78002         (defined __STDC__ && __STDC__)]:
78003         Remove nonprototyped code.
78004         Include <stdlib.h> unconditionally.
78005         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
78006         _obstack_allocated_p, _obstack_free, obstack_free,
78007         _obstack_memory_used, print_and_abort):
78008         Define using prototypes.
78009         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
78010         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
78011         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
78012         obstack_next_free, obstack_object_size, obstack_room) [0]:
78013         Remove unused, unprototyped code.
78014
78015         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
78016
78017         * lib/physmem.c (physmem_total, physmem_available, main): Define
78018         with prototypes.
78019
78020         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
78021         (main): Define with a prototype.
78022
78023         * lib/posixver.c (getenv): Remove decl.
78024
78025         * lib/putenv.c (malloc): Returns void *, not char *.
78026         Include <string.h> unconditionally.
78027         (strchr, memcpy, NULL): Do not define.
78028
78029         * lib/readtokens.c: Include readtokens.h first, to test interface.
78030         Include <stdlib.h>, <string.h> unconditionally.
78031         (init_tokenbuffer): Define with a prototype.
78032
78033         * lib/regex.c (PARAMS): Remove.  All uses removed.
78034         All uses of _RE_ARGS removed, too.
78035         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
78036         unconditionally.
78037         (bzero): Assume memset exists.
78038         (memcmp, memcpy, NULL): Remove.
78039         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
78040         char, or assignments to local vars of type signed char.
78041         (init_syntax_once, PREFIX(extract_number_and_incr),
78042         PREFIX(print_partial_compiled_pattern),
78043         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
78044         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
78045         PREFIX(regex_grow_registers), PREFIX(regex_compile),
78046         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
78047         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
78048         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
78049         wcs_compile_range, byte_compile_range, truncate_wchar,
78050         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
78051         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
78052         count_mbs_length, wcs_re_match_2_internal,
78053         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
78054         PREFIX(alt_match_null_string_p),
78055         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
78056         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
78057         regfree, PREFIX(extract_number)): Define with prototype.  Remove
78058         now-unnecessary declaration, if any.
78059         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
78060         regcomp, regexec):
78061         Remove now-unnecessary casts among pointer types.
78062         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
78063
78064         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
78065         (free): Remove decl.
78066
78067         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
78068
78069         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
78070         (free): Remove decl.
78071
78072         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
78073         * lib/xgetcwd.c: Likewise.
78074
78075         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
78076         (free): Remove decl.
78077
78078         * lib/strchrnul.c (strchrnul): Define with a prototype.
78079         Fix bug: c_in was not converted to char before searching.
78080
78081         The following changes are not K&R related:
78082
78083         * lib/group-member.h: Include <sys/types.h>, so that this file is
78084         self-contained.
78085         * lib/makepath.h: Likewise.
78086
78087         * lib/getusershell.c (readname, default_index, line_size, readname):
78088         Use size_t, not int, for sizes.
78089         (readname): If the size overflows, report an error instead of
78090         looping forever.
78091
78092 2003-09-09  Paul Eggert  <eggert@twinsun.com>
78093
78094         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
78095         libc.
78096
78097 2003-09-09  Paul Eggert  <eggert@twinsun.com>
78098
78099         * README: New section: portability guidelines.
78100
78101 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
78102
78103         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
78104         C89 spec.
78105
78106 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
78107
78108         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
78109
78110 2003-09-08  Paul Eggert  <eggert@twinsun.com>
78111
78112         Assume C89 or better; remove K&R cruft.
78113         A few of these changes were first proposed by Derek Robert Price
78114         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
78115
78116         * lib/addext.c: Include <string.h> unconditionally.
78117         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
78118         Don't declare getenv or malloc.
78119
78120         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
78121         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
78122         (NULL): Remove.
78123         (find_stack_direction, alloca): Use prototypes.
78124
78125         * lib/atexit.c (atexit): Define using a prototype.
78126
78127         * lib/basename.c, dirname.c, stripslash.c:
78128         Include <string.h> unconditionally.
78129
78130         * lib/bcopy.c: Include <stddef.h>.
78131         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
78132
78133         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
78134
78135         * lib/error.h (error, error_at_line, error_print_progname)
78136         [! (defined (__STDC__) && __STDC__)]: Remove decls.
78137         * lib/error.c: Include error.h first, to check interface.
78138         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
78139         (VA_START): Remove; all uses changeed to va_start.
78140         (exit, strerror): Remove decls.
78141         (error_print_progname): Prototype uncondionally.
78142         Don't include <errno.h>; no longer needed.
78143         (private_strerror): Remove.
78144         (error_tail): Always define.
78145         (error, error_at_line): Assume C89 or better; always use prototypes.
78146         * lib/fatal.c: Include "fatal.h" first, to test interface.
78147         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
78148         (VA_START): Remove; all uses changed to va_start.
78149         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
78150         this case.
78151         (exit): Remove decl.
78152         (fatal): Prototype unconditionally.  Assume va_start works.
78153         Abort at end, to pacify gcc.
78154
78155         * lib/euidaccess.c (main): Define with a prototype.
78156
78157         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
78158
78159         * lib/exitfail.c: Include <stdlib.h> unconditionally.
78160
78161         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
78162         prototypes.
78163         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
78164         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
78165         (getenv): Remove decl.
78166         (fnmatch): Define using a prototype.
78167         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
78168         (FCT): Define using a prototype.
78169
78170         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
78171
78172         * lib/gethostname.c: Include <stddef.h>.
78173         (gethostname): Define with prototype.  Length is size_t, not int.
78174
78175 2003-09-08  Paul Eggert  <eggert@twinsun.com>
78176
78177         Assume C89 or better; remove K&R cruft.
78178         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
78179         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
78180         string.h, getenv, malloc.
78181         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
78182         headers.
78183         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
78184         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
78185         do not check for strerror.
78186         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
78187         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
78188         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
78189         do not check for doprnt or vprintf.
78190         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
78191         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
78192
78193 2003-09-08  Paul Eggert  <eggert@twinsun.com>
78194
78195         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
78196         getversion.c should have been removed then, but was accidentally
78197         preserved.
78198
78199         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
78200         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
78201
78202 2003-09-08  Karl Berry  <karl@gnu.org>
78203
78204         * config/config.sub, config.guess, srclistvars.sh: update from savannah
78205                 config, forget about prep.
78206
78207         * config/depcomp, missing: update from automake.
78208
78209 2003-09-07  Paul Eggert  <eggert@twinsun.com>
78210
78211         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
78212         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
78213
78214 2003-09-07  Paul Eggert  <eggert@twinsun.com>
78215
78216         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
78217         copy_tm_result.  Bug reported by Simon Josefsson in
78218         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
78219
78220 2003-09-06  Paul Eggert  <eggert@twinsun.com>
78221
78222         * m4/time_r.m4: New file.
78223         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
78224         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
78225         is. Check for timegm declaration.
78226         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
78227         Do not check for gmtime_r.
78228         Replace mktime if __mktime_internal does not exist and if mktime
78229         hasn't been replaced already.
78230
78231 2003-09-06  Paul Eggert  <eggert@twinsun.com>
78232
78233         * lib/time_r.c, lib/time_r.h: New files.
78234
78235         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
78236         __localtime_r.
78237         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
78238         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
78239
78240         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
78241         __gmtime_r.
78242         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
78243         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
78244         Include <time_r.h>.
78245
78246         * lib/timegm.c: Switch to glibc implementation, with the following
78247         changes:
78248         [defined HAVE_CONFIG_H]: Include <config.h>.
78249         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
78250         (__mktime_internal) [!defined _LIBC]: New decl.
78251         (__gmtime_r) [!defined _LIBC]: New macro and function.
78252         (timegm): Use a prototype, since gnulib assumes C89.
78253         Do not bother declaring tmp to be const, as it's not really usefu.
78254         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
78255         (timegm): Declare only if HAVE_DECL_TIMEGM.
78256
78257 2003-09-06  Paul Eggert  <eggert@twinsun.com>
78258
78259         * MODULES.html.sh (func_all_modules): Add time_r.
78260         * modules/time_r: New file.
78261         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
78262         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
78263
78264 2003-09-03  Paul Eggert  <eggert@twinsun.com>
78265
78266         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
78267         Bug reported by Lute Kamstra in
78268         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
78269
78270         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
78271         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
78272         course with correspondingly smaller numbers for tomorrow and
78273         yesterday.  From Tadayoshi Funaba.  Originally installed into
78274         sh-utils on 1999-08-07, but the patch got lost (I guess during the
78275         coreutils merge?).
78276
78277 2003-08-31  Simon Josefsson  <jas@extundo.com>
78278
78279         * modules/timegm: New file.
78280         * MODULES.html.sh (func_all_modules): Add timegm.
78281
78282 2003-08-31  Simon Josefsson  <jas@extundo.com>
78283
78284         * m4/timegm.m4: New file.
78285
78286 2003-08-31  Simon Josefsson  <jas@extundo.com>
78287
78288         * lib/timegm.h: New file.
78289         * lib/timegm.c: New file.  Based on
78290         wget-1.8.2/src/http.c:mktime_from_utc.
78291
78292 2003-08-31  Karl Berry  <karl@gnu.org>
78293
78294         * lib/argp.h: update from libc.
78295
78296 2003-08-28  Bruno Haible  <bruno@clisp.org>
78297
78298         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
78299         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
78300         followed by '#define fnmatch fnmatch_posix' gives an error.
78301
78302 2003-08-28  Bruno Haible  <bruno@clisp.org>
78303
78304         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
78305         warning on QNX, which defines O_BINARY to 000000.
78306
78307 2003-08-27  Jim Meyering  <jim@meyering.net>
78308
78309         * m4/mkstemp.m4: Require that the system mkstemp be able to create
78310         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
78311         would fail after 32.  Reported by Danny Levinson.  Details here:
78312         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
78313
78314 2003-08-24  Bruno Haible  <bruno@clisp.org>
78315
78316         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
78317         MSVC7 <stdio.h> is included later.
78318
78319 2003-08-22  Simon Josefsson  <jas@extundo.com>
78320
78321         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
78322
78323 2003-08-20  Karl Berry  <karl@gnu.org>
78324
78325         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
78326
78327 2003-08-20  Bruno Haible  <bruno@clisp.org>
78328
78329         * modules/progname: New file.
78330         * MODULES.html.sh (func_all_modules): Add progname.
78331
78332 2003-08-20  Bruno Haible  <bruno@clisp.org>
78333
78334         * lib/progname.h: New file, from GNU gettext.
78335         * lib/progname.c: New file, from GNU gettext.
78336         * lib/progreloc.c: New file, from GNU gettext.
78337
78338 2003-08-19  Jim Meyering  <jim@meyering.net>
78339
78340         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
78341         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
78342
78343 2003-08-19  Bruno Haible  <bruno@clisp.org>
78344
78345         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
78346         more.
78347
78348 2003-08-19  Bruno Haible  <bruno@clisp.org>
78349
78350         * lib/xstrdup.c: Assume <string.h> exists.
78351
78352 2003-08-18  Paul Eggert  <eggert@twinsun.com>
78353
78354         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
78355         in makefile rules.
78356
78357 2003-08-18  Jim Meyering  <jim@meyering.net>
78358
78359         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
78360         * m4/lib-ld.m4: Likewise.
78361
78362 2003-08-18  Jim Meyering  <jim@meyering.net>
78363
78364         * lib/setenv.h: Indent nested cpp directive.
78365         * lib/vasnprintf.c: Remove trailing blanks.
78366
78367 2003-08-17  Simon Josefsson  <jas@extundo.com>
78368
78369         * modules/xstrndup: New file.
78370         * MODULES.html.sh (func_all_modules): Add xstrndup.
78371
78372 2003-08-17  Simon Josefsson  <jas@extundo.com>
78373
78374         * modules/argp: Fix autoconf macro name. Add more dependencies.
78375
78376 2003-08-17  Simon Josefsson  <jas@extundo.com>
78377
78378         * m4/xstrndup.m4: New file.
78379
78380 2003-08-17  Simon Josefsson  <jas@extundo.com>
78381
78382         * m4/argp.m4: New file.
78383
78384 2003-08-17  Simon Josefsson  <jas@extundo.com>
78385             Bruno Haible  <bruno@clisp.org>
78386
78387         * lib/xstrndup.h: New file.
78388         * lib/xstrndup.c: New file.
78389
78390 2003-08-17  Bruno Haible  <bruno@clisp.org>
78391
78392         * modules/strndup (Files, Include): Add lib/strndup.h.
78393
78394 2003-08-17  Bruno Haible  <bruno@clisp.org>
78395
78396         * modules/euidaccess (Files): Add lib/euidaccess.h.
78397
78398 2003-08-17  Bruno Haible  <bruno@clisp.org>
78399
78400         * lib/strndup.h: New file.
78401
78402 2003-08-17  Bruno Haible  <bruno@clisp.org>
78403
78404         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
78405         like AC_GNU_SOURCE.
78406         * modules/extensions (configure.ac): Comment out the invocation of
78407         gl_USE_SYSTEM_EXTENSIONS.
78408
78409 2003-08-16  Paul Eggert  <eggert@twinsun.com>
78410
78411         Merges from coreutils, etc.
78412         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
78413         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
78414         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
78415         fixing a typo.
78416         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
78417         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
78418
78419 2003-08-16  Paul Eggert  <eggert@twinsun.com>
78420
78421         Document merge from coreutils.
78422         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
78423         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
78424         * modules/utime: Add m4/utimes-null.m4.
78425
78426 2003-08-16  Paul Eggert  <eggert@twinsun.com>
78427
78428         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
78429         space, undoing this 2003-08-12 change:
78430         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
78431
78432 2003-08-16  Paul Eggert  <eggert@twinsun.com>
78433
78434         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
78435         strtoul.c from libc, undoing this 2003-08-12 change:
78436         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
78437
78438 2003-08-16  Jim Meyering  <jim@meyering.net>
78439
78440         Merges from coreutils.
78441         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
78442         prefix.  Adjust cache variables similarly.  Create 500 rather than
78443         just 300 files, to exercise bug on Darwin6.5, too.
78444         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
78445         $missing_dir.
78446         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
78447         AM_SYS_POSIX_TERMIOS.
78448         Reported by mkc@mathdogs.com.
78449         Also change use of $am_cv_sys_posix_termios
78450         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
78451         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
78452         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
78453         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
78454         in /proc/mounts until it finds one with matching device number.  This
78455         is unnecessary when the FILE argument *is* a mount point.  No stat call
78456         is necessary in that case.  So, disable the statvfs-testing code on
78457         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
78458         as RedHat bug# 84846.
78459         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
78460         to 1MB, so as not to render systems with no stack size limit (e.g.,
78461         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
78462         Include <unistd.h>.  On some systems,
78463         it is required for the definition of _SC_PAGESIZE.
78464
78465 2003-08-16  Jim Meyering  <jim@meyering.net>
78466
78467         Merge from coreutils.
78468         * lib/xstrtoimax.c: #else #if -> #elif.
78469         * lib/xstrtoumax.c: Likewise.
78470
78471 2003-08-16  Jim Meyering  <jim@meyering.net>
78472
78473         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
78474         * m4/utimes.m4: Removed.
78475         * m4/utimes-null.m4: Renamed from utimes.m4.
78476
78477         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
78478         to 1MB, so as not to render systems with no stack size limit (e.g.,
78479         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
78480         Include <unistd.h>.  On some systems,
78481         it is required for the definition of _SC_PAGESIZE.
78482
78483 2003-08-16  Jim Meyering  <jim@meyering.net>
78484         and Paul Eggert  <eggert@cs.ucla.edu>
78485
78486         Merges from coreutils, etc.
78487
78488         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
78489         using the latest version from cvs.  This avoids problems with #line
78490         directives using a vendor (Sun) compiler.
78491         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
78492         Don't set GETGROUPS_LIB here; now it's
78493         done via getgroups.m4's wrapper function.
78494         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
78495         rather than just in sh-util/configure.in, so that the
78496         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
78497         same.
78498         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
78499         AC_FUNC_GETLOADAVG where to find getloadavg.c.
78500         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
78501         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
78502         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
78503         Remove code that is now done by the newly-required macros.
78504         Append $(EXEEXT) to DF_PROG.
78505         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
78506         Do not invoke or require the following here,
78507         since prereq.m4 or some gnulib .m4 now does this for us:
78508         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
78509         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
78510         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
78511         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
78512         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
78513         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
78514         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
78515         AC_FUNC_OBSTACK.
78516         Do not replace the following functions, as this is now the job
78517         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
78518         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
78519         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
78520         atexit getpass, strdup, getpagesize.
78521         Replace 'raise'.
78522         Do not check for the following functions, as this is now the job
78523         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
78524         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
78525         setregid.
78526         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
78527         Check for sys/sysctl.h.
78528         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
78529         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
78530         of checking for ssize_t ourselves.
78531
78532         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
78533         Require every macro that gnulib/modules/* suggests for us.
78534         (jm_PREREQ_ADDEXT): New macro.
78535         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
78536         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
78537
78538         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
78539         (gl_PHYSMEM): Use it.
78540         Also check for `table' function.
78541         Check for new headers and functions.
78542         Add check for sys/sysmp.h.
78543         With suggestions from Kaveh Ghazi.
78544         Ignore headers that are present but cannot be compiled.  This
78545         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
78546         C 5.4.
78547
78548 2003-08-15  Paul Eggert  <eggert@twinsun.com>
78549
78550         Document merge from coreutils.
78551         * modules/userspec: Depend on posixver.
78552         * modules/strftime: Depend on tzset.
78553
78554 2003-08-15  Paul Eggert  <eggert@twinsun.com>
78555
78556         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
78557         rather than tab, after '#' in shell-script copyright notices.
78558         Suggested by Bruno Haible.
78559
78560 2003-08-15  Paul Eggert  <eggert@twinsun.com>
78561
78562         * config/srclist-update: Use three spaces, rather than tab, after '#'
78563         in shell-script copyright notices.  Suggested by Bruno Haible.
78564         Remove unnecessary parenthesization in regular expression.
78565
78566 2003-08-15  Jim Meyering  <jim@meyering.net>
78567
78568         Merge from coreutils.
78569         * lib/xgethostname.c: Include <stdlib.h>.
78570         (xghostname): Don't exit for anything other than memory-related
78571         failure; just return NULL.
78572         * lib/userspec.c: Include "posixver.h".
78573         (parse_user_spec): Accept `.' as a separator only
78574         in pre-POSIX-200112 mode.
78575         * lib/strtoimax.c: Use #elif rather than #else #if.
78576         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
78577         Remove function, now that we can rely on a working tzset function.
78578         [!_LIBC]: Ensure that the required autoconf test has been run.
78579         [!defined _NL_CURRENT && HAVE_STRFTIME]:
78580         Use underlying_strftime for %r.
78581         * lib/sha.c: Merge in some clean-up and optimization changes from
78582         glibc.
78583         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
78584         Ensure that it is a multiple of 64.
78585         Rearrange loop exit tests so as to avoid performing an
78586         additional fread after encountering an error or EOF.
78587         * lib/realloc.c: Update copyright date.
78588
78589 2003-08-15  Jim Meyering  <jim@meyering.net>
78590         and Paul Eggert  <eggert@twinsun.com>
78591
78592         Merge from coreutils.
78593         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
78594         member but strut utmpx does not.  Needed for AIX 4.3.3.
78595         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
78596
78597 2003-08-15  Jim Meyering  <jim@meyering.net>
78598         and Paul Eggert  <eggert@cs.ucla.edu>
78599
78600         Merges from coreutils, etc.
78601         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
78602         Require gl_FUNC_TZSET_CLOBBER.
78603         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
78604         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
78605         members.
78606
78607 2003-08-14  Paul Eggert  <eggert@twinsun.com>
78608
78609         Help the merge from coreutils.
78610         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
78611         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
78612         * m4/tzset.m4: Use it too.
78613
78614 2003-08-14  Paul Eggert  <eggert@twinsun.com>
78615
78616         * modules/tzset: New file.
78617
78618 2003-08-14  Jim Meyering  <jim@meyering.net>
78619
78620         Merges from coreutils.
78621         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
78622         variable names, rather than @FNMATCH_H@.
78623         * modules/alloca: Likewise for $(ALLOCA_H).
78624
78625         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
78626         the three copies of the literal target, `fnmatch.h'.
78627         * modules/alloca (alloca.h): Likewise.
78628
78629 2003-08-14  Jim Meyering  <jim@meyering.net>
78630
78631         Merge from coreutils.
78632         * m4/tzset.m4: New file.
78633         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
78634         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
78635         otherwise, AIX 5.1 systems would end up using the latter.
78636         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
78637         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
78638         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
78639         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
78640
78641 2003-08-14  Jim Meyering  <jim@meyering.net>
78642
78643         Merge from coreutils.
78644         * lib/obstack.h: Whitespace changes.
78645         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
78646         and xcalloc return values.
78647         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
78648         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
78649         hang on OSF/1 5.1 for DIR on both local and remote file systems.
78650         Reported by (and fix confirmed by) Nelson H. F. Beebe.
78651         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
78652         error from mntctl.
78653         Use mntctl's return value to drive the entry-processing loop, since
78654         we can't rely on the value of the vmt_length member in the last
78655         entry.  On some systems doing so could result in exhausting
78656         virtual memory.  Based in part on a patch from Mike Jetzer.
78657
78658 2003-08-14  Jim Meyering  <jim@meyering.net>
78659         and Paul Eggert  <eggert@twinsun.com>
78660
78661         Merges from coreutils, plus other fixes.
78662         * lib/physmem.c: Merge in portability changes from gcc/libiberty
78663         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
78664         for credits and details.  Thanks to Kaveh Ghazi for helping
78665         to keep these files in sync.
78666         (ARRAY_SIZE): Define it.
78667         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
78668         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
78669         (memcasecmp): Don't assume size_t fits in unsigned int.
78670         Remove casts and duplicate code.
78671         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
78672         (memcpy): Remove definition.
78673         Merge in some clean-up and optimization changes from glibc.
78674         [BLOCKSIZE]: Move definition to top of file.
78675         Ensure that it is a multiple of 64.
78676         Rearrange loop exit tests so as to avoid performing an
78677         additional fread after encountering an error or EOF.
78678         * lib/md5.h (md5_uintptr): Define.
78679         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
78680         return to the initial working directory.  Preserve errno
78681         for caller.
78682         * lib/idcache.c: Include "xalloc.h".
78683         (xmalloc, xrealloc): Remove decls.
78684         (getuser): Remove casts no longer required in C89.
78685         * lib/human.c: Include stdio.h, for sprintf.
78686         * lib/group-member.c: Include "xalloc.h".
78687         (xmalloc, xrealloc): Remove decls.
78688         (get_group_info): Remove casts no longer required in C89.
78689         * lib/getusershell.c (readname): Remove casts no longer required in
78690         C89.
78691         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
78692         * lib/getline.c: Whitespace fix, from coreutils.
78693
78694 2003-08-13  Paul Eggert  <eggert@twinsun.com>
78695
78696         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
78697         Check for isascii.
78698
78699         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
78700         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
78701         Undo previous (whitespace-only) change.
78702
78703 2003-08-13  Paul Eggert  <eggert@twinsun.com>
78704
78705         * lib/exclude.c: Include <ctype.h>
78706         (IN_CTYPE_DOMAIN): New macro.
78707         (is_space): New fn.
78708         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
78709         and empty lines.
78710
78711         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
78712         Undo previous (whitespace-only) change.
78713
78714 2003-08-13  Paul Eggert  <eggert@twinsun.com>
78715
78716         * config/srclist-update: Change update back to the old behavior,
78717         leaving whitespace alone.  Use one 'sed' command rather than a
78718         pipeline.
78719         (fixlicense): Now a variable, not a function.
78720         (remove_trailing_blanks): Remove.
78721         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
78722         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
78723         Undo previous (whitespace-only) change.
78724
78725 2003-08-12  Paul Eggert  <eggert@twinsun.com>
78726
78727         Merge from coreutils.
78728         * modules/euidaccess: Add lib_SOURCES, include for new
78729         file euidaccess.h
78730
78731 2003-08-12  Paul Eggert  <eggert@twinsun.com>
78732
78733         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
78734         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
78735         Normalize leading white space and remove trailing white space.
78736
78737         Merge from coreutils
78738         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
78739
78740         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
78741         0.12.1.  These files are now being upgraded automatically by
78742         ../config/srclist-update.
78743
78744 2003-08-12  Paul Eggert  <eggert@twinsun.com>
78745
78746         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
78747         Normalize leading white space and remove trailing white space.
78748         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
78749         notice, as per ../config/srclist-update.
78750
78751         Merge from coreutils.
78752         * lib/euidaccess.h: New file.
78753         * lib/euidaccess.c: Include it.
78754         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
78755         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
78756         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
78757
78758 2003-08-12  Paul Eggert  <eggert@twinsun.com>
78759
78760         * config/srclist-update: Add copyright notice.
78761         (remove_id_lines, remove_trailing_blanks): New constants.
78762         (fixfile): Use them to normalize spacing a bit in copied files.
78763         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
78764         Normalize leading white space and remove trailing white space.
78765
78766         * config/texinfo.tex: Sync with texinfo.
78767
78768         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
78769         strtoul.c from libc, to merge coreutils whitespace changes.
78770
78771         * config/srclist.txt: Get the following m4 files from gettext:
78772         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
78773         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
78774         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
78775         wint_t.m4.
78776
78777 2003-08-12  Karl Berry  <karl@gnu.org>
78778
78779         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
78780         been made.
78781
78782 2003-08-11  Paul Eggert  <eggert@twinsun.com>
78783
78784         * modules/gnu-source, m4/gnu-source.m4:
78785         Remove; we're assuming Autoconf 2.54 or later now.
78786         Suggested by Bruno Haible.
78787         * MODULES.html.sh (func_all_modules): Remove gnu-source.
78788
78789 2003-08-11  Bruno Haible  <bruno@clisp.org>
78790
78791         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
78792
78793 2003-08-11  Bruno Haible  <bruno@clisp.org>
78794
78795         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
78796         (vasnprintf): Use it instead of wcslen.
78797
78798 2003-08-11  Bruno Haible  <bruno@clisp.org>
78799
78800         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
78801         value to ensure that _Bool promotes to int. Use #define for _Bool when
78802         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
78803
78804 2003-08-10  Karl Berry  <karl@gnu.org>
78805
78806         * lib/regex.h: update from libc (whitespace fix).
78807
78808 2003-08-09  Paul Eggert  <eggert@twinsun.com>
78809
78810         Merge some files from coreutils.  These changes were
78811         originally made by Jim Meyering.
78812         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
78813         many older Unixes require this.
78814         * lib/alloca.c (alloca): Remove cast to argument of free;
78815         no longer needed in C89.
78816         * lib/alloca_.h, regex.h: Fix white space to match
78817         what GNU indent does.
78818
78819 2003-08-09  Paul Eggert  <eggert@twinsun.com>
78820
78821         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
78822         apparently Emacs's Unicode mode got confused before my 2003-08-05
78823         checkin.
78824
78825 2003-08-08  Paul Eggert  <eggert@twinsun.com>
78826
78827         * m4/extensions.m4: New file.
78828         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
78829         Require gl_USE_SYSTEM_EXTENSIONS.
78830         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
78831         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
78832
78833 2003-08-08  Paul Eggert  <eggert@twinsun.com>
78834
78835         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
78836         * modules/extensions, modules/gnu-source: New files.
78837         * modules/timespec, modules/unlocked-io: Depend on extensions.
78838
78839 2003-08-07  Paul Eggert  <eggert@twinsun.com>
78840
78841         * modules/restrict: New file.
78842         * MODULES.html.sh (func_all_modules): Add restrict.
78843         * modules/regex: Depend on restrict.
78844
78845 2003-08-07  Paul Eggert  <eggert@twinsun.com>
78846
78847         * m4/restrict.m4: New file.
78848         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
78849
78850 2003-08-07  Bruno Haible  <bruno@clisp.org>
78851
78852         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
78853         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
78854
78855 2003-08-07  Bruno Haible  <bruno@clisp.org>
78856
78857         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
78858         makes the module 'getndelim2' compatible with the module 'getline'.
78859
78860 2003-08-05  Paul Eggert  <eggert@twinsun.com>
78861
78862         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
78863         byte with "\201" to avoid glitches when editing that source file
78864         with multi-gnome-terminal.
78865
78866 2003-08-05  Paul Eggert  <eggert@twinsun.com>
78867
78868         * lib/bumpalloc.h: Remove.
78869
78870 2003-08-05  Paul Eggert  <eggert@twinsun.com>
78871
78872         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
78873         * modules/bumpalloc: Remove.
78874
78875 2003-08-04  Paul Eggert  <eggert@twinsun.com>
78876
78877         * lib/getloadavg.c: Change copyright notice and spacing to conform to
78878         GNU coding style.
78879
78880         Merge from coreutils.
78881         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
78882         1. From glibc.
78883         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
78884         from Karl Berry, implemented by Jim Meyering.
78885         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
78886         from Dmitry V. Levin.
78887         Remove anachronistic cast of xrealloc.
78888         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
78889         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
78890         type. Otherwise, it wouldn't compile with at least /bin/cc on
78891         ymp-cray-unicos9.0.2.X.
78892         Combine two mostly-identical uses of alloca into one.
78893         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
78894
78895 2003-08-04  Dave Love  <d.love@dl.ac.uk>
78896
78897         [From Emacs.]
78898
78899         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
78900         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
78901         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
78902         obsolete NLIST_NAME_UNION.
78903         [__GNU__]: Undef BSD and FSCALE.
78904         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
78905
78906 2003-08-03  Paul Eggert  <eggert@twinsun.com>
78907
78908         * lib/stdbool_.h (_Bool): Make it signed char, instead of
78909         an enum type, so that it's guaranteed to promote to int.  See:
78910         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
78911
78912 2003-08-03  Karl Berry  <karl@gnu.org>
78913
78914         * config/depcomp: update from automake.
78915
78916 2003-07-31  Paul Eggert  <eggert@twinsun.com>
78917
78918         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
78919         (strerror): Don't assume that a printable int fits in 14 bytes.
78920
78921 2003-07-31  Bruno Haible  <bruno@clisp.org>
78922
78923         * modules/getpass-gnu: New file.
78924         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
78925
78926 2003-07-31  Bruno Haible  <bruno@clisp.org>
78927
78928         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
78929
78930 2003-07-24  Karl Berry  <karl@gnu.org>
78931
78932         * config/missing: update from automake.
78933
78934 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
78935             Bruno Haible  <bruno@clisp.org>
78936
78937         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
78938         * lib/getline.c (getline, getdelim): Likewise.
78939         Remove _GNU_SOURCE define; now it's defined in config.h through
78940         m4/getline.m4.
78941
78942 2003-07-23  Karl Berry  <karl@gnu.org>
78943
78944         * config/config.sub: update from prep.
78945
78946 2003-07-22  Paul Eggert  <eggert@twinsun.com>
78947
78948         * modules/xalloc (Depends-on): Add exitfail.
78949         * modules/xmemcoll: Likewise.
78950
78951 2003-07-22  Paul Eggert  <eggert@twinsun.com>
78952
78953         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
78954         over-parenthesization in macros.
78955
78956         Sync with coreutils.
78957
78958         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
78959         required by C99.
78960
78961         Use `exit_failure' for xalloc and xmemcoll instead of their own
78962         private exit-failure variables.
78963         * lib/xalloc.h (xalloc_exit_failure): Remove.
78964         * lib/xmalloc.c: Likewise.  Include exitfail.h.
78965         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
78966         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
78967         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
78968         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
78969
78970 2003-07-20  Jim Meyering  <jim@meyering.net>
78971
78972         * modules/closeout (Depends-on): Add exitfail.
78973         Suggestion from Bruno Haible.
78974
78975 2003-07-19  Karl Berry  <karl@gnu.org>
78976
78977         * config/config.sub: update from prep.
78978
78979 2003-07-18  Paul Eggert  <eggert@twinsun.com>
78980
78981         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
78982         Remove.
78983         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
78984         to test that it can stand by itself.  Include "exitfail.h".
78985         Clients should set exit_failure instead.
78986         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
78987
78988 2003-07-18  Bruno Haible  <bruno@clisp.org>
78989
78990         * modules/getndelim2: New file.
78991         * modules/getline: Share files with module getndelim2.
78992         * modules/getnline: Depend on getndelim2 instead of sharing files with
78993         it. Add getnline.c to lib_SOURCES.
78994         * MODULES.html.sh (func_all_modules): Add getndelim2.
78995
78996 2003-07-18  Bruno Haible  <bruno@clisp.org>
78997
78998         * m4/getndelim2.m4: New file.
78999         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
79000         invoke gl_PREREQ_GETNDELIM2.
79001         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
79002         gl_PREREQ_GETNDELIM2.
79003         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
79004         gl_GETNDELIM2.
79005
79006 2003-07-18  Bruno Haible  <bruno@clisp.org>
79007
79008         * lib/getndelim2.h: New file.
79009         * lib/getndelim2.c: Make into a module of its own. Include config.h,
79010         getndelim2.h.
79011         (getndelim2): Make non-static. Change return type to ssize_t.
79012         * lib/getline.h: Change argument names.
79013         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
79014         * lib/getnline.c: Include getndelim2.h.
79015
79016 2003-07-18  Andreas Schwab  <schwab@suse.de>
79017
79018         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
79019
79020 2003-07-17  Karl Berry  <karl@gnu.org>
79021
79022         * config/config.sub: update from prep.
79023
79024 2003-07-17  Bruno Haible  <bruno@clisp.org>
79025
79026         * modules/getnline: New file.
79027         * modules/getline: Add lib/getndelim2.c to source file list.
79028         * MODULES.html.sh (func_all_modules): Add getnline.
79029
79030 2003-07-17  Bruno Haible  <bruno@clisp.org>
79031
79032         * m4/getnline.m4: New file.
79033
79034 2003-07-17  Bruno Haible  <bruno@clisp.org>
79035
79036         * m4/Makefile.am.in: Remove file.
79037         * m4/Makefile.am: Remove file.
79038         * m4/Makefile.in: Remove file.
79039
79040 2003-07-17  Bruno Haible  <bruno@clisp.org>
79041
79042         * lib/getnline.h: New file.
79043         * lib/getnline.c: New file.
79044         * lib/getndelim2.c: New file, extracted from getline.c.
79045         (getndelim2): Renamed from getdelim2, with added nmax argument.
79046         * lib/getline.c: Include getndelim2.c.
79047         (getdelim2): Moved out to getndelim2.c.
79048         (getline, getdelim): Update.
79049
79050 2003-07-17  Bruno Haible  <bruno@clisp.org>
79051
79052         * lib/Makefile.am: Remove file.
79053         * lib/Makefile.in: Remove file.
79054
79055 2003-07-17  Bruno Haible  <bruno@clisp.org>
79056
79057         * configure.in: Remove file.
79058         * Makefile.in: Remove file.
79059
79060 2003-07-17  Bruno Haible  <bruno@clisp.org>
79061
79062         * MODULES.html.sh: Put the </BODY> right before </HTML>.
79063
79064 2003-07-16  Karl Berry  <karl@gnu.org>
79065
79066         * config/srclist-update: was running fixlicense twice, which caused
79067                 texinfo.tex to be nullified for some reason.  Simplify,
79068                 $gplsrc is no longer needed as far as I can see?
79069
79070 2003-07-16  Jim Meyering  <jim@meyering.net>
79071
79072         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
79073
79074 2003-07-15  Paul Eggert  <eggert@twinsun.com>
79075
79076         * config/srclist.txt: Get the following files from gettext-runtime/intl
79077         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
79078         ref-del.sin.  From Bruno Haible.
79079         * config/srclist-update (fixfile): Change grep pattern again, since the
79080         previous fix didn't work (there was another trailing $).  Use
79081         '[$]' to escape the $s.
79082
79083 2003-07-15  Karl Berry  <karl@gnu.org>
79084
79085         * lib/vasnprintf.c: update from gettext.
79086
79087 2003-07-15  Karl Berry  <karl@gnu.org>
79088
79089         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
79090         gets expanded when surrounded by '$'.
79091
79092 2003-07-15  Jim Meyering  <jim@meyering.net>
79093
79094         * modules/save-cwd: Don't depend on error.  From Derek Price.
79095
79096 2003-07-15  Jim Meyering  <jim@meyering.net>
79097
79098         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
79099
79100 2003-07-14  Simon Josefsson  <jas@extundo.com>
79101
79102         * modules/mempcpy: New file.
79103         * MODULES.html.sh (func_all_modules): Add mempcpy.
79104
79105 2003-07-14  Simon Josefsson  <jas@extundo.com>
79106
79107         * m4/mempcpy.m4: New file.
79108
79109 2003-07-14  Simon Josefsson  <jas@extundo.com>
79110
79111         * lib/mempcpy.h: New file.
79112         * lib/mempcpy.c: New file.
79113
79114 2003-07-14  Paul Eggert  <eggert@twinsun.com>
79115
79116         * modules/getdate, modules/posixtm: Depend on mktime.
79117
79118 2003-07-14  Paul Eggert  <eggert@twinsun.com>
79119
79120         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
79121         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
79122         unicodeio.c, unicodeio.h, unlocked-io.h:
79123         Switch from LGPL to GPL.
79124
79125 2003-07-14  Paul Eggert  <eggert@twinsun.com>
79126
79127         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
79128         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
79129         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
79130         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
79131         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
79132         updated automatically by ../config/srclist-update.  This changes
79133         their license from LPGL to GPL.
79134
79135 2003-07-14  Paul Eggert  <eggert@twinsun.com>
79136
79137         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
79138         assumed to refer to the root of the most recent stable gettext version.
79139         * config/srclistvars.sh: Add defaults for eggert.
79140         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
79141         Match "This program" as well as "The program".  This is needed
79142         for gettext.
79143
79144 2003-07-14  Jim Meyering  <jim@meyering.net>
79145
79146         Don't emit diagnostics.  Let callers do that.
79147         * lib/save-cwd.c: Don't include "error.h".
79148         (save_cwd): Don't call error.  Ensure that errno is valid
79149         when returning nonzero.
79150
79151         * lib/save-cwd.h (restore_cwd): Update prototype.
79152         * lib/save-cwd.c (restore_cwd): Remove two parameters.
79153         Simplify.  Don't call error upon failure.  Let callers do that.
79154         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
79155         when auditing is enabled.  But don't bother updating the #if.
79156
79157 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
79158
79159         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
79160         it breaks C++ compilation.
79161         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
79162
79163 2003-07-10  Simon Josefsson  <jas@extundo.com>
79164
79165         * modules/strchrnul (Makefile.am): Add strchrnul.h.
79166
79167 2003-07-10  Jim Meyering  <jim@meyering.net>
79168
79169         * m4/clock_time.m4: Remove trailing blank.
79170         * m4/intmax_t.m4: Likewise.
79171
79172 2003-07-10  Jim Meyering  <jim@meyering.net>
79173
79174         * lib/vasnprintf.c: Remove trailing blanks.
79175         Make cpp indentation consistent.
79176
79177 2003-07-09  Paul Eggert  <eggert@twinsun.com>
79178
79179         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
79180         posixver.c, strftime.c, strnlen.c, strverscmp.c:
79181         Switch from LGPL to GPL.
79182
79183 2003-07-09  Paul Eggert  <eggert@twinsun.com>
79184
79185         * config/srclist.txt: Sort sublists.  Add
79186         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
79187         that differ from gnulib for one reason or another; we'd like this list
79188         to be smaller but for now let's document what we have.
79189
79190 2003-07-08  Paul Eggert  <eggert@twinsun.com>
79191
79192         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
79193         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
79194         and sweeter "eval x=$x".
79195         * config/srclist.txt: Get lib/argp* from glibc.
79196
79197 2003-07-07  Paul Eggert  <eggert@twinsun.com>
79198
79199         * lib/mktime.c: Fix some boundary cases and remove need for floating
79200         point.
79201
79202         Issue a compile-time diagnostic if time_t is floating point, or if
79203         two's complement arithmetic is not in effect, or if arithmetic
79204         right shift does not propagate the sign.  These assumptions were
79205         all in the original code but they weren't checked.
79206
79207         (TIME_T_MIDPOINT, verify): New macros.
79208         (__isleap): Remove; it has integer overflow problems.
79209         (leapyear): New function, without those problems.
79210         (ydhms_tm_diff): Remove; splitting into two parts.
79211         (ydhms_diff): New function, containing the arithmetic part of
79212         the old ydhms_tm_diff function.  Issue a compile-time
79213         diagnostic if we are not using C99 integer division.
79214         Avoid casts when possible.
79215         (guess_time_tm): New function, containing the checking part of
79216         the old ydhms_tm_diff function.  Return the new value, rather than
79217         the difference between it and the old.  Accept a new argument T
79218         so that *T specifies the old value.  Check for overflow in the result.
79219
79220         (__mktime_internal): Use a time_t offset, not a long int offset.
79221         This undoes the 2003-06-04 change, which is no longer needed now
79222         that we have better overflow checking.
79223         (localtime_offset): Likewise.
79224
79225         (__mktime_internal): Avoid harmful overflow on hosts where time_t
79226         and long are 64-bit but int is only 32-bit.
79227         (ydhms_diff): Use long int to store year1 and yday1.
79228         Issue a compile-time diagnostic if long int is not wide enough.
79229
79230         (__mktime_internal): Use long int to store adjusted year and yday.
79231         Use plain C rather than preprocessor commands, if that doesn't
79232         affect efficiency.
79233         Check for overflow (and try to repair) after each probe
79234         rather than checking only at the very end.  This avoids some bugs
79235         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
79236         does not equal GMT offset at maximum time).
79237         Use integer to check for overflow rather than floating point; this
79238         is more portable to non-IEEE hosts, and is a tad faster.
79239         When we detect that we are oscillating between two values,
79240         don't check whether tm_isdst has the requested value, since
79241         we already know the answer.  When tm_isdst has the wrong value,
79242         use a different heuristic to find the right one, based on the
79243         extreme values actually observed in practice in tz2003a,
79244         rather than the (overly optimistic) "previous 3 calendar quarters".
79245
79246         (not_equal_tm, print_tm, check_result): Use "const T" rather than
79247         "T const" to accommodate glibc style.
79248         (check_result): Use less-confusing report format.  "long" -> "long int.
79249         (main): Likewise.
79250         Don't loop if the iteration overflows time_t.
79251         Allow a negative step in the iteration.
79252
79253 2003-07-06  Karl Berry  <karl@gnu.org>
79254
79255         * config/depcomp: update from automake.
79256         * config/config.sub: update from prep.
79257
79258 2003-07-03  Karl Berry  <karl@gnu.org>
79259
79260         * config/config.guess: update from prep.
79261
79262 2003-07-01  Paul Eggert  <eggert@twinsun.com>
79263
79264         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
79265         xreadlink.c now includes it unconditionally.
79266
79267 2003-07-01  Paul Eggert  <eggert@twinsun.com>
79268
79269         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
79270         having it depend on HAVE_SYS_TYPES_H.
79271
79272 2003-07-01  Bruno Haible  <bruno@clisp.org>
79273
79274         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
79275         <sys/types.h> should be sufficient.
79276         Reported by Paul Eggert.
79277
79278 2003-06-26  Karl Berry  <karl@gnu.org>
79279
79280         * config/depcomp: update from automake.
79281
79282 2003-06-26  Bruno Haible  <bruno@clisp.org>
79283
79284         * modules/human: Depend on module stdbool.
79285
79286 2003-06-25  Bruno Haible  <bruno@clisp.org>
79287
79288         * modules/readlink: New file.
79289         * modules/xreadlink: Depend on it.
79290         * MODULES.html.sh (func_all_modules): Add readlink.
79291
79292 2003-06-25  Bruno Haible  <bruno@clisp.org>
79293
79294         * m4/readlink.m4: New file.
79295
79296 2003-06-25  Bruno Haible  <bruno@clisp.org>
79297
79298         * lib/readlink.c: New file.
79299
79300 2003-06-22  Karl Berry  <karl@gnu.org>
79301
79302         * config/srclist.txt: update mkinstalldirs from automake.
79303         * config/mkinstalldirs: update.
79304
79305 2003-06-22  Bruno Haible  <bruno@clisp.org>
79306
79307         Portability to mingw32.
79308         * m4/ssize_t.m4: New file, from GNU gettext.
79309         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
79310         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
79311
79312 2003-06-22  Bruno Haible  <bruno@clisp.org>
79313
79314         * modules/safe-read: Add m4/ssize_t.m4.
79315         * modules/xreadlink: Add m4/ssize_t.m4.
79316
79317 2003-06-20  Bruno Haible  <bruno@clisp.org>
79318
79319         Assume C89, so PARAMS isn't needed.
79320         * lib/unicodeio.h (PARAMS): Remove.
79321         * lib/unicodeio.c: Don't use PARAMS.
79322
79323 2003-06-18  Karl Berry  <karl@gnu.org>
79324
79325         * config/config.{guess,sub}: update from prep.
79326
79327 2003-06-18  Jim Meyering  <jim@meyering.net>
79328
79329         Merge changes from coreutils.
79330         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
79331         Remove explicit declarations of xmalloc and realloc.
79332         Include xalloc.h.
79333         (read_utmp): Remove anachronistic cast of xmalloc.
79334
79335 2003-06-17  Paul Eggert  <eggert@twinsun.com>
79336
79337         Assume C89, so PARAMS isn't needed.
79338         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
79339         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
79340         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
79341         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
79342         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
79343         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
79344         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
79345         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
79346         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
79347         lib/xstrtod.h, lib/xstrtol.h: Likewise.
79348         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
79349         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
79350         no longer needed. Anyway, config.h should always be included before any
79351         other file.
79352
79353 2003-06-11  Simon Josefsson  <jas@extundo.com>
79354
79355         * modules/sysexits: New file.
79356         * MODULES.html.sh (func_all_modules): Add sysexits.
79357
79358 2003-06-11  Simon Josefsson  <jas@extundo.com>
79359
79360         * lib/sysexit_.h: New file.
79361
79362 2003-06-11  Derek Price  <derek@ximbiot.com>
79363
79364         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
79365         necessary.
79366
79367 2003-06-11  Bruno Haible  <bruno@clisp.org>
79368
79369         * m4/sysexits.m4: New file.
79370
79371 2003-06-10  Simon Josefsson  <jas@extundo.com>
79372
79373         * lib/argp.h: New file, from glibc.
79374         * lib/argp-ba.c: New file, from glibc.
79375         * lib/argp-eexst.c: New file, from glibc.
79376         * lib/argp-fmtstream.c: New file, from glibc.
79377         * lib/argp-fmtstream.h: New file, from glibc.
79378         * lib/argp-fs-xinl.c: New file, from glibc.
79379         * lib/argp-help.c: New file, from glibc.
79380         * lib/argp-namefrob.h: New file, from glibc.
79381         * lib/argp-parse.c: New file, from glibc.
79382         * lib/argp-pv.c: New file, from glibc.
79383         * lib/argp-pvh.c: New file, from glibc.
79384         * lib/argp-xinl.c: New file, from glibc.
79385
79386 2003-06-10  Simon Josefsson  <jas@extundo.com>
79387
79388         * modules/strchrnul: New file.
79389
79390 2003-06-10  Simon Josefsson  <jas@extundo.com>
79391
79392         * modules/argp: New file.
79393
79394 2003-06-10  Simon Josefsson  <jas@extundo.com>
79395
79396         * m4/strchrnul.m4: New file.
79397
79398 2003-06-10  Simon Josefsson  <jas@extundo.com>
79399
79400         * lib/strchrnul.h: New file.
79401         * lib/strchrnul.c: New file.
79402
79403 2003-06-10  Bruno Haible  <bruno@clisp.org>
79404
79405         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
79406
79407 2003-06-07  Karl Berry  <karl@gnu.org>
79408
79409         * config/config.{guess,sub}: update from prep.
79410
79411 2003-06-07  Jim Meyering  <jim@meyering.net>
79412
79413         * modules/strtod: Use $(...) notation, not @...@ for
79414         AC_REPLACE'd variables.
79415         * modules/localcharset: Likewise.
79416
79417 2003-06-07  Jim Meyering  <jim@meyering.net>
79418
79419         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
79420         in place of my name in the copyright comment.
79421         Remove definition and uses of __P.
79422
79423         From coreutils.
79424         * lib/stat.c: Don't declare xmalloc explicitly.
79425         Instead, include "xalloc.h".
79426         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
79427         xrealloc, and xcalloc return values.
79428         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
79429         Improve comment.
79430         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
79431
79432 2003-06-07  Bruno Haible  <bruno@clisp.org>
79433
79434         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
79435         avoid AC_CONFIG_LINKS.
79436         * modules/fnmatch (Makefile.am): Use explicit creation rule for
79437         fnmatch.h, to avoid AC_CONFIG_LINKS.
79438         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
79439
79440 2003-06-07  Bruno Haible  <bruno@clisp.org>
79441
79442         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
79443         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
79444         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
79445         directory.
79446         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
79447         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
79448         directory.
79449
79450 2003-06-06  Jim Meyering  <jim@meyering.net>
79451
79452         Merge from coreutils.
79453         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
79454         Consolidate declarations and initializations of *_base* locals.
79455
79456         Merge from coreutils.
79457         This avoids a core dump on systems without GNU putenv,
79458         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
79459         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
79460         (unsetenv): New static function, from GNU libc.
79461         (rpl_putenv): Use it.
79462
79463         * lib/modechange.c: Remove trailing blanks.
79464
79465         Merge from coreutils.
79466         * lib/fsusage.c: Remove declaration of statfs.
79467         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
79468
79469         * lib/posixtm.c: Include <stdbool.h> unconditionally.
79470
79471 2003-06-06  Jim Meyering  <jim@meyering.net>
79472
79473         * lib/stdbool_.h: Renamed from stdbool.h.in.
79474
79475 2003-06-06  Jim Meyering  <jim@meyering.net>
79476             Bruno Haible  <bruno@clisp.org>
79477
79478         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
79479         Adjust Makefile.am snippet not to redirect directly to target.
79480         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
79481
79482 2003-06-05  Paul Eggert  <eggert@twinsun.com>
79483
79484         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
79485         mismatch, look in future quarters as well as past.  This fixes a
79486         bug when processing fall-backwards gaps immediately after a long
79487         period of daylight-saving time.
79488
79489         * lib/mktime.c: Assume freestanding C89 or better.
79490         (HAVE_LIMITS_H): Remove.  Assume it's 1.
79491         (__P): Remove; not used.
79492         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
79493         (mktime, not_equal_tm, print_tm, check_result,
79494         main): Use prototypes.  Use const * where appropriate.
79495         (main): Fix typo in testing code that uncovered by above changes.
79496         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
79497
79498 2003-06-04  Paul Eggert  <eggert@twinsun.com>
79499
79500         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
79501         locale.h, localeconv.  This merges changes from coreutils.
79502
79503         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
79504         It can be removed after the next Autoconf is released.
79505         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
79506         needed.
79507
79508 2003-06-04  Paul Eggert  <eggert@twinsun.com>
79509
79510         * lib/mktime.c: Fix Debian bug 177940
79511         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
79512         (localtime_offset): Now long int, not time_t, because we want it
79513         to be guaranteed to be signed.  All uses changed.
79514         (__mktime_internal): If overflow would occur when adding offset,
79515         don't add it.
79516
79517         Merge 'human' changes from coreutils.  Rewrite to support
79518         locale-specific notations like thousands separators.
79519         * lib/human.c: Simplify authorship notice.
79520         Include human.h immediately after config.h.
79521         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
79522         <limits.h>: Do not include, since human.h does.
79523         (SIZE_MAX, UINTMAX_MAX): New macros.
79524         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
79525         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
79526         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
79527         (power_letter): Renamed from suffixes.
79528         (generate_suffix_backwards): Remove.
79529         (adjust_value): Now takes int style (because of human.h changes)
79530         and long double value (for greater precision on some platforms).
79531         (group_number): New function.
79532         (human_readable): Use it.  Use integer options, not enum.
79533         Put the options before the sizes in the arg list.
79534         Support all the new options.
79535         The old human_readable function has been removed;
79536         use inttostr.h instead.
79537         (human_readable, default_block_size, humblock):
79538         Use uintmax_t, not int, for block sizes.
79539         (human_readable_inexact, block_size_types): Remove.
79540         (block_size_opts): New constant.
79541         (human_options): Renamed from human_block_size, with new signature
79542         that allows block sizes up to UINTMAX_MAX.  All callers changed.
79543         * lib/human.h: Add copyright and authorship notice.
79544         Include <limits.h> and <stdbool.h> unconditionally.
79545         (PARAMS): Remove.  All uses removed.
79546         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
79547         (enum human_inexact_style): Remove tag; now a nameless enum.
79548         (human_floor, human_ceiling, human_round_to_even): Now have
79549         values 2, 0, 1 rather than -1, 1, 0.
79550         (human_group_digits, human_suppress_point_zero, human_autoscale,
79551         human_base_1024, human_SI, human_B): New constants.
79552         (human_readable_inexact, human_block_size): Remove.
79553         (human_readable): Size args are now uintmax_t, not int.
79554         (human_options): New decl.
79555
79556         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
79557         unnecessary now that we assume C89 or better.  This change
79558         imported from coreutils.
79559
79560         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
79561         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
79562         in the 2003-05-30 sync from glibc.
79563
79564         .h files should stand alone, but we shouldn't include <sys/types.h>
79565         if we can get away with just <stddef.h>.
79566
79567         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
79568         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
79569         rather than <sys/types.h>, as we merely need size_t.
79570         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
79571         to get size_t.
79572         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
79573         Include <stdio.h>, to get FILE.
79574         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
79575         memcasecmp.h has included <stddef.h> and all we need is size_t.
79576         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
79577         our interface, instead of including <sys/types.h>
79578
79579 2003-06-04  Paul Eggert  <eggert@twinsun.com>
79580
79581         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
79582         now, as glibc mktime is buggy on non-glibc systems.
79583
79584 2003-06-03  Karl Berry  <karl@gnu.org>
79585
79586         * config/config.sub: update from prep.
79587
79588 2003-06-02  Paul Eggert  <eggert@twinsun.com>
79589
79590         [from coreutils]
79591         Fix some minor time-related bugs with POSIX time arguments.
79592         Some valid time stamps were being rejected (notably -1, and
79593         time stamps before 1900 on 64-bit hosts).  And some invalid
79594         time stamps were being accepted, e.g. September 31.
79595
79596         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
79597         that we can return (time_t) -1 successfully.
79598         * lib/posixtm.c: Likewise.
79599         [HAVE_STDBOOL_H]: Include <stdbool.h>.
79600         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
79601         (t): Remove static var.
79602         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
79603         of static var.  All uses changed.
79604         (year): Do not reject years before 1900; they can occur with
79605         64-bit time_t.
79606         (posix_time_parse): Do not check for out-of-range components;
79607         that is now the caller's responsibility, since our checks were
79608         only approximations.
79609         (posixtime): Use mktime to check for out-of-range components,
79610         since it knows them exactly.
79611         If mktime returns (time_t) -1, check whether an error actually occurred
79612         by invoking localtime on -1.
79613         (main) [TEST_POSIXTIME]: Check for input data errors, and report
79614         posixtime failures better.
79615         Improve the test data (in comments only).
79616
79617 2003-06-02  Karl Berry  <karl@gnu.org>
79618
79619         * config/mkinstalldirs (version): new variable.
79620         (--version): new option.
79621         (usage): improve message.
79622
79623 2003-05-30  Karl Berry  <karl@gnu.org>
79624
79625         * lib/mktime.c: update from libc.
79626
79627 2003-05-30  Bruno Haible  <bruno@clisp.org>
79628
79629         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
79630         * config/config.rpath: Upgrade to gettext-0.12.1.
79631
79632 2003-05-30  Bruno Haible  <bruno@clisp.org>
79633
79634         * m4/gettext.m4: Upgrade to gettext-0.12.1.
79635         * m4/nls.m4: New file, from gettext-0.12.1.
79636         * m4/po.m4: New file, from gettext-0.12.1.
79637         * m4/progtest.m4: Upgrade to gettext-0.12.1.
79638
79639 2003-05-30  Bruno Haible  <bruno@clisp.org>
79640
79641         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
79642         * lib/localcharset.h: Likewise.
79643         * lib/localcharset.c: Likewise.
79644
79645 2003-05-29  Karl Berry  <karl@gnu.org>
79646
79647         * config/config.rpath: update from gettext.
79648
79649 2003-05-28  Paul Eggert  <eggert@twinsun.com>
79650
79651         Assume the headers required for C89 freestanding compilers.
79652         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
79653         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
79654         * m4/human.m4 (gl_HUMAN): Likewise.
79655         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
79656         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
79657         * m4/userspec.m4 (gl_USERSPEC): Likewise.
79658         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
79659         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
79660         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
79661
79662 2003-05-28  Paul Eggert  <eggert@twinsun.com>
79663
79664         Assume the headers required for C89 freestanding compilers.
79665         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
79666         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
79667         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
79668         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
79669         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
79670         define, since <limits.h> is guaranteed to do that.
79671         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
79672         * lib/exclude.c: Include <stdbool.h> unconditionally.
79673         * lib/tempname.c: Include <stddef.h> unconditionally.
79674         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
79675         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
79676         <stddef.h> does that.
79677         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
79678         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
79679         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
79680         needed.
79681         * lib/xstrtol.c: Likewise.
79682         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
79683         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
79684
79685         * lib/addext.c (addext): Use assignment rather than cast, to avoid
79686         warnings on some platforms.
79687
79688         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
79689         arbitrarily.
79690
79691 2003-05-26  Jim Meyering  <jim@meyering.net>
79692
79693         Merge in a change from coreutils:
79694         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
79695         that is guaranteed to be `no'.  Use `no_such_member' to indicate
79696         that condition, rather than `-1' which is slightly misleading.
79697         Change the name of the cache variable to have the gl_ prefix.
79698         Prompted by a patch from Richard Dawe for DJGPP.
79699
79700 2003-05-24  Karl Berry  <karl@gnu.org>
79701
79702         * config/config.guess: update from prep.
79703
79704 2003-05-22  Karl Berry  <karl@gnu.org>
79705
79706         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
79707
79708 2003-05-20  Karl Berry  <karl@gnu.org>
79709
79710         * config/config.guess: update from prep.
79711
79712 2003-05-18  Karl Berry  <karl@gnu.org>
79713
79714         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
79715         might actually be set by the user.
79716
79717         * config/depcomp, install-sh, mdate-sh: update from automake.
79718
79719 2003-05-17  Bruno Haible  <bruno@clisp.org>
79720
79721         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
79722         invalid expansion for AC_EGREP_CPP.
79723         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
79724         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
79725         Suggested by Akim Demaille <akim@epita.fr> in
79726         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
79727
79728 2003-05-12  Jim Meyering  <jim@meyering.net>
79729
79730         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
79731         the space-padded-by-default conversion specifiers, %e, %k, %l.
79732
79733 2003-05-12  Bruno Haible  <bruno@clisp.org>
79734
79735         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
79736         the string is longer than 4 KB.
79737
79738 2003-05-11  Karl Berry  <karl@gnu.org>
79739
79740         * config/config.{guess,sub}: update from prep.
79741
79742 2003-05-09  Bruno Haible  <bruno@clisp.org>
79743
79744         * modules/error: Add m4/strerror_r.m4 to file list.
79745
79746 2003-05-03  Bruno Haible  <bruno@clisp.org>
79747
79748         Upgrade to Unicode-4.0.
79749         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
79750         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
79751         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
79752         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
79753         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
79754         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
79755         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
79756         Change width of U+E0100..U+E01EF from 1 to 0.
79757
79758 2003-04-25  Jim Meyering  <jim@meyering.net>
79759
79760         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
79761         of type size_t, not int.
79762
79763 2003-04-25  Bruno Haible  <bruno@clisp.org>
79764
79765         * lib/copy-file.c: Include <stddef.h>, for size_t.
79766
79767 2003-04-21  Paul Eggert  <eggert@twinsun.com>
79768
79769         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
79770         code which expansion is under static control.  Patch imported from
79771         Akim Demaille's patch to Bison; see
79772         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
79773
79774 2003-04-14  Bruno Haible  <bruno@clisp.org>
79775
79776         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
79777
79778 2003-04-11  Jim Meyering  <jim@meyering.net>
79779
79780         Merge changes from Coreutils.
79781
79782         2003-03-22  Jim Meyering  <jim@meyering.net>
79783
79784         * lib/strftime.c (widen): Cast alloca return value to proper type.
79785
79786         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
79787
79788         From GNU libc.
79789         * lib/strftime.c (my_strftime): Handle very large width
79790         specifications for numeric values correctly.  Improve checks for
79791         overflow.
79792
79793         2003-01-19  Jim Meyering  <jim@meyering.net>
79794
79795         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
79796         definitions.
79797         (nl_get_alt_digit) [! defined my_strftime]: Define.
79798         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
79799         _nl_get_alt_digit and _nl_get_walt_digit.
79800
79801         * lib/strftime.c (my_strftime): Merge in locale-related changes from
79802         libc. These changes have no effect outside of _LIBC.
79803
79804 2003-04-10  Bruno Haible  <bruno@clisp.org>
79805
79806         * modules/findprog: New file.
79807         * MODULES.html.sh (func_all_modules): Add it.
79808
79809 2003-04-10  Bruno Haible  <bruno@clisp.org>
79810
79811         * m4/findprog.m4: New file.
79812         * m4/eaccess.m4: New file.
79813
79814 2003-04-10  Bruno Haible  <bruno@clisp.org>
79815
79816         * lib/findprog.h: New file, from GNU gettext.
79817         * lib/findprog.c: New file, from GNU gettext.
79818
79819 2003-04-05  Jim Meyering  <jim@meyering.net>
79820
79821         Merge changes from Coreutils.
79822
79823         * lib/exclude.h (PARAMS): Remove definition and uses.
79824         * lib/exclude.c: Remove uses of `PARAMS'.
79825
79826         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
79827         Add test-cases for DOS filenames. Declare program_name.
79828         (main): Set up program_name.  Patch by Rich Dawe.
79829
79830         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
79831         error from mntctl.
79832         Use mntctl's return value to drive the entry-processing loop, since
79833         we can't rely on the value of the vmt_length member in the last
79834         entry.  On some systems doing so could result in exhausting
79835         virtual memory.  Based in part on a patch from Mike Jetzer.
79836
79837 2003-04-04  Bruno Haible  <bruno@clisp.org>
79838
79839         * modules/linebreak: New file.
79840         * MODULES.html.sh (func_all_modules): Add it.
79841
79842 2003-04-04  Bruno Haible  <bruno@clisp.org>
79843
79844         * m4/linebreak.m4: New file.
79845
79846 2003-04-04  Bruno Haible  <bruno@clisp.org>
79847
79848         * lib/linebreak.h: New file, from GNU gettext.
79849         * lib/linebreak.c: New file, from GNU gettext with slight
79850         modifications.
79851         * lib/lbrkprop.h: New file, from GNU gettext.
79852
79853 2003-04-03  Bruno Haible  <bruno@clisp.org>
79854
79855         * modules/utf8-ucs4: New file.
79856         * modules/utf16-ucs4: New file.
79857         * modules/ucs4-utf8: New file.
79858         * modules/ucs4-utf16: New file.
79859         * MODULES.html.sh (func_all_modules): Add them.
79860
79861 2003-04-03  Bruno Haible  <bruno@clisp.org>
79862
79863         * m4/utf-ucs4.m4: New file.
79864         * m4/ucs4-utf.m4: New file.
79865
79866 2003-04-03  Bruno Haible  <bruno@clisp.org>
79867
79868         * lib/utf8-ucs4.h: New file, from GNU gettext.
79869         * lib/utf16-ucs4.h: New file, from GNU gettext.
79870         * lib/ucs4-utf8.h: New file, from GNU gettext.
79871         * lib/ucs4-utf16.h: New file, from GNU gettext.
79872
79873 2003-04-02  Bruno Haible  <bruno@clisp.org>
79874
79875         * modules/binary-io: New file.
79876         * MODULES.html.sh (func_all_modules): Add it.
79877
79878 2003-04-02  Bruno Haible  <bruno@clisp.org>
79879
79880         * lib/binary-io.h: New file, from GNU gettext.
79881
79882 2003-04-01  Bruno Haible  <bruno@clisp.org>
79883
79884         * modules/pathname: New file.
79885         * MODULES.html.sh (func_all_modules): Add it.
79886
79887 2003-04-01  Bruno Haible  <bruno@clisp.org>
79888
79889         * lib/pathname.h: New file, from GNU gettext.
79890         * lib/concatpath.c: New file, from GNU gettext.
79891
79892 2003-03-30  Bruno Haible  <bruno@clisp.org>
79893
79894         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
79895
79896 2003-03-30  Bruno Haible  <bruno@clisp.org>
79897
79898         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
79899         function chown() doesn't exist.
79900
79901 2003-03-28  Bruno Haible  <bruno@clisp.org>
79902
79903         * modules/copy-file: New file.
79904         * MODULES.html.sh (func_all_modules): Add it.
79905
79906 2003-03-28  Bruno Haible  <bruno@clisp.org>
79907
79908         * m4/copy-file.m4: New file.
79909
79910 2003-03-28  Bruno Haible  <bruno@clisp.org>
79911
79912         * lib/copy-file.h: New file, from GNU gettext.
79913         * lib/copy-file.c: New file, from GNU gettext.
79914
79915 2003-03-18  Jim Meyering  <jim@meyering.net>
79916
79917         * lib/quote.c (quote_n): Fix typo in comment.
79918
79919 2003-03-18  Bruno Haible  <bruno@clisp.org>
79920
79921         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
79922         checking.
79923         * m4/onceonly_2_57.m4: Likewise.
79924
79925 2003-03-17  Bruno Haible  <bruno@clisp.org>
79926
79927         * m4/onceonly.m4: Require autoconf 2.54 or newer.
79928         (m4_quote): Remove macro.
79929         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
79930
79931 2003-03-14  Jim Meyering  <jim@meyering.net>
79932
79933         Merge changes from Coreutils.
79934         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
79935         to be const, in order to avoid warnings.
79936         (obstack_room): Likewise.
79937         (obstack_empty_p): Likewise.
79938
79939 2003-03-14  Bruno Haible  <bruno@clisp.org>
79940
79941         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
79942         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
79943
79944 2003-03-13  Paul Eggert  <eggert@twinsun.com>
79945
79946         Merge changes from Bison.
79947         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
79948         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
79949         when compiling Bison 1.875's `bitset bset = obstack_alloc
79950         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
79951         * lib/hash.c: Include <stdbool.h> unconditionally.
79952
79953 2003-03-13  Paul Eggert  <eggert@twinsun.com>
79954
79955         * m4/onceonly.m4 (m4_quote): New macro.
79956         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
79957         Quote AC_FOREACH variable-expansions properly.
79958
79959 2003-03-13  Paul Eggert  <eggert@twinsun.com>
79960
79961         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
79962
79963 2003-03-09  Paul Eggert  <eggert@twinsun.com>
79964
79965         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
79966         Reported by Bruce Becker; see:
79967         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
79968
79969 2003-03-03  Paul Eggert  <eggert@twinsun.com>
79970             Bruno Haible  <bruno@clisp.org>
79971
79972         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
79973         Reported by John Hughes, see
79974         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
79975
79976 2003-02-20  Bruno Haible  <bruno@clisp.org>
79977
79978         * MODULES.html.sh (func_all_modules): Add poll.
79979
79980 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
79981
79982         * modules/poll: New file.
79983
79984 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
79985
79986         * lib/poll_.h: New file.
79987         * lib/poll.c: New file.
79988
79989 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
79990
79991         * m4/poll.m4: New file.
79992
79993 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
79994
79995         * modules/mathl: New file.
79996
79997 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
79998
79999         * lib/mathl.h: New file.
80000         * lib/acosl.c: New file.
80001         * lib/asinl.c: New file.
80002         * lib/atanl.c: New file.
80003         * lib/ceill.c: New file.
80004         * lib/cosl.c: New file.
80005         * lib/expl.c: New file.
80006         * lib/floorl.c: New file.
80007         * lib/frexpl.c: New file.
80008         * lib/ldexpl.c: New file.
80009         * lib/logl.c: New file.
80010         * lib/sincosl.c: New file.
80011         * lib/sinl.c: New file.
80012         * lib/sqrtl.c: New file.
80013         * lib/tanl.c: New file.
80014         * lib/trigl.c: New file.
80015         * lib/trigl.h: New file.
80016
80017 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
80018
80019         * m4/mathl.m4: New file.
80020
80021 2003-02-18  Bruno Haible  <bruno@clisp.org>
80022
80023         * MODULES.html.sh (func_all_modules): Add mathl.
80024
80025 2003-02-17  Bruno Haible  <bruno@clisp.org>
80026
80027         * modules/mkdtemp: New module.
80028         * MODULES.html.sh (func_all_modules): Add it.
80029
80030 2003-02-17  Bruno Haible  <bruno@clisp.org>
80031
80032         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
80033
80034 2003-02-17  Bruno Haible  <bruno@clisp.org>
80035
80036         * lib/mkdtemp.h: New file, from GNU gettext.
80037         * lib/mkdtemp.c: New file, from GNU gettext.
80038
80039 2003-02-02  Jim Meyering  <jim@meyering.net>
80040
80041         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
80042         e.g. glibc-2.2.93.
80043
80044 2003-01-31  Bruno Haible  <bruno@clisp.org>
80045
80046         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
80047         'rpl_rename'.
80048         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
80049         'rpl_strnlen'.
80050         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
80051         'rpl_strtod'.
80052         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
80053         'rpl_utime'.
80054
80055 2003-01-31  Bruno Haible  <bruno@clisp.org>
80056
80057         * lib/rename.c: #undef rename before defining rpl_rename.
80058         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
80059
80060 2003-01-30  Bruno Haible  <bruno@clisp.org>
80061
80062         * modules/vasnprintf, modules/vasprintf: New modules.
80063         * MODULES.html.sh (func_all_modules): Add them.
80064
80065 2003-01-30  Bruno Haible  <bruno@clisp.org>
80066
80067         * m4/signed.m4: New file, from GNU gettext.
80068         * m4/longdouble.m4: New file, from GNU gettext.
80069         * m4/wchar_t.m4: New file, from GNU gettext.
80070         * m4/wint_t.m4: New file, from GNU gettext.
80071         * m4/vasnprintf.m4: New file.
80072         * m4/vasprintf.m4: New file.
80073
80074 2003-01-30  Bruno Haible  <bruno@clisp.org>
80075
80076         * lib/printf-args.h: New file, from GNU gettext.
80077         * lib/printf-args.c: New file, from GNU gettext.
80078         * lib/printf-parse.h: New file, from GNU gettext.
80079         * lib/printf-parse.c: New file, from GNU gettext.
80080         * lib/vasnprintf.h: New file, from GNU gettext.
80081         * lib/vasnprintf.c: New file, from GNU gettext.
80082         * lib/asnprintf.c: New file, from GNU gettext.
80083         * lib/vasprintf.h: New file, from GNU gettext with modifications.
80084         * lib/vasprintf.c: New file, from GNU gettext.
80085         * lib/asprintf.c: New file, from GNU gettext.
80086
80087 2003-01-29  Bruno Haible  <bruno@clisp.org>
80088
80089         * modules/stpncpy: New module.
80090         * MODULES.html.sh (func_all_modules): Add it.
80091
80092 2003-01-29  Bruno Haible  <bruno@clisp.org>
80093
80094         * m4/stpncpy.m4: New file.
80095
80096 2003-01-29  Bruno Haible  <bruno@clisp.org>
80097
80098         * lib/stpncpy.h: New file, from GNU gettext with modifications.
80099         * lib/stpncpy.c: New file, from GNU gettext with modifications.
80100
80101 2003-01-28  Bruno Haible  <bruno@clisp.org>
80102
80103         * modules/c-ctype: New module.
80104         * MODULES.html.sh (func_all_modules): Add it.
80105
80106 2003-01-28  Bruno Haible  <bruno@clisp.org>
80107
80108         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
80109         Paul Eggert.
80110         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
80111         Paul Eggert.
80112
80113 2003-01-27  Bruno Haible  <bruno@clisp.org>
80114
80115         * modules/xsetenv: New module.
80116         * MODULES.html.sh (func_all_modules): Add it.
80117
80118 2003-01-27  Bruno Haible  <bruno@clisp.org>
80119
80120         * lib/xsetenv.h: New file, from GNU gettext.
80121         * lib/xsetenv.c: New file, from GNU gettext.
80122
80123 2003-01-23  Jim Meyering  <jim@meyering.net>
80124
80125         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
80126         from working on systems without dirfd (at least Irix and OSF1/Tru64).
80127
80128 2003-01-23  Bruno Haible  <bruno@clisp.org>
80129
80130         * modules/minmax: New module.
80131         * MODULES.html.sh (func_all_modules): Add it.
80132
80133 2003-01-23  Bruno Haible  <bruno@clisp.org>
80134
80135         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
80136         Eggert.
80137
80138 2003-01-22  Bruno Haible  <bruno@clisp.org>
80139
80140         * modules/exit: New module.
80141         * MODULES.html.sh (func_all_modules): Add it.
80142
80143 2003-01-22  Bruno Haible  <bruno@clisp.org>
80144
80145         * lib/exit.h: New file, from GNU gettext.
80146
80147 2003-01-19  Bruno Haible  <bruno@clisp.org>
80148
80149         * gnulib-tool: Recognize option --extract-maintainer.
80150         (func_get_maintainer): New function.
80151         * modules/*: Add Maintainer entry.
80152
80153 2003-01-16  Jim Meyering  <jim@meyering.net>
80154
80155         * m4/regex.m4: The `regex' struct is both input and output.
80156         Initialize it before each use.  Patch by Tim Waugh.
80157
80158 2003-01-16  Bruno Haible  <bruno@clisp.org>
80159
80160         * MODULES.html.sh: Add a table of contents. Add the module name as
80161         leftmost column. Add hyperlinks.
80162
80163 2003-01-15  Bruno Haible  <bruno@clisp.org>
80164
80165         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
80166
80167 2003-01-15  Bruno Haible  <bruno@clisp.org>
80168
80169         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
80170         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
80171         suffix.
80172
80173 2003-01-15  Bruno Haible  <bruno@clisp.org>
80174
80175         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
80176
80177 2003-01-15  Bruno Haible  <bruno@clisp.org>
80178
80179         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
80180         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
80181
80182 2003-01-14  Jim Meyering  <jim@meyering.net>
80183
80184         * lib/same.c (same_name): Tweak a comment.
80185
80186 2003-01-14  Bruno Haible  <bruno@clisp.org>
80187
80188         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
80189         when a string comparison is sufficient.
80190
80191 2003-01-14  Bruno Haible  <bruno@clisp.org>
80192
80193         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
80194         'unsigned int'.
80195
80196 2003-01-14  Bruno Haible  <bruno@clisp.org>
80197
80198         * lib/hash-pjw.c: Add comment about low quality of this function.
80199
80200 2003-01-13  Bruno Haible  <bruno@clisp.org>
80201
80202         * modules/stpcpy: Distribute lib/stpcpy.h.
80203         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
80204
80205 2003-01-13  Bruno Haible  <bruno@clisp.org>
80206
80207         * modules/*: Add a description.
80208         * modules/strpbrk: Fix Makefile.am snippet.
80209         * modules/strtoimax: Fix dependencies.
80210         * modules/strtoumax: Likewise.
80211
80212 2003-01-13  Bruno Haible  <bruno@clisp.org>
80213
80214         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
80215         * modules/alloca (Makefile.am): All object files depend on alloca.h.
80216         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
80217
80218 2003-01-13  Bruno Haible  <bruno@clisp.org>
80219
80220         * gnulib-tool (func_create_testdir): Store config/* files in the main
80221         directory.
80222         * config.rpath: Move to ...
80223         * config/config.rpath: ... here.
80224         * modules/gettext: Contains config/config.rpath, not config.rpath.
80225         * modules/iconv: Likewise.
80226
80227 2003-01-12  Paul Eggert  <eggert@twinsun.com>
80228
80229         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
80230         to avoid collisions with libcurses and libreadline.
80231
80232         * m4/getstr.m4: Remove.
80233         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
80234
80235 2003-01-12  Paul Eggert  <eggert@twinsun.com>
80236
80237         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
80238         to avoid collisions with libcurses and libreadline.
80239
80240         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
80241         * lib/getstr.h, getstr.c: Remove.
80242         * lib/getline.c: Include "getline.h", to check interface.
80243         Move body of old getstr.c here: this defines MIN_CHUNK and
80244         declares getdelim2, which is renamed from getstr.
80245         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
80246
80247         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
80248         All uses changed.
80249         * lib/linebuffer.h: Likewise.
80250         (readline): Remove backward-compatibility macro.
80251
80252 2003-01-12  Paul Eggert  <eggert@twinsun.com>
80253
80254         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
80255         to avoid collisions with libcurses and libreadline.
80256         * getstr: Remove.
80257         * MODULES.html.sh: Remove getstr.
80258         * modules/getline: Depend on unlocked-io, not getstr.
80259
80260 2003-01-12  Jim Meyering  <jim@meyering.net>
80261
80262         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
80263
80264 2003-01-10  Bruno Haible  <bruno@clisp.org>
80265
80266         * modules/alloca: Change Makefile.am requirements. Simplify Include
80267         requirements. Add lib/alloca_.h to file list.
80268
80269 2003-01-10  Bruno Haible  <bruno@clisp.org>
80270
80271         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
80272
80273 2003-01-10  Bruno Haible  <bruno@clisp.org>
80274
80275         * lib/alloca_.h: New file.
80276         * lib/getdate.y: Unconditionally include alloca.h.
80277         * lib/makepath.c: Likewise.
80278         * lib/setenv.c: Likewise.
80279         * lib/userspec.c: Likewise.
80280
80281 2003-01-09  Karl Berry  <karl@gnu.org>
80282
80283         * MODULES.html.sh: include `dirname $0` in PATH, to find
80284         gnulib-tool.
80285
80286 2003-01-09  Bruno Haible  <bruno@clisp.org>
80287
80288         * modules/stdbool: Change configure.ac, Makefile.am requirements.
80289         Simplify Include requirements. Add lib/stdbool.h.in to file list.
80290
80291 2003-01-09  Bruno Haible  <bruno@clisp.org>
80292
80293         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
80294
80295 2003-01-09  Bruno Haible  <bruno@clisp.org>
80296
80297         * lib/stdbool.h.in: New file.
80298
80299 2003-01-09  Bruno Haible  <bruno@clisp.org>
80300
80301         * gnulib-tool (func_all_modules): Ignore files ending in ~.
80302         * MODULES.html.sh: Likewise.
80303
80304 2003-01-08  Jim Meyering  <jim@meyering.net>
80305
80306         * lib/full-write.c: Undefine and define-away `const' after inclusion
80307         of errno.h, not before.  Suggestion from Bruno Haible.
80308
80309 2003-01-08  Bruno Haible  <bruno@clisp.org>
80310
80311         * modules/full-read: Depend on full-write.
80312
80313 2003-01-08  Bruno Haible  <bruno@clisp.org>
80314
80315         * lib/safe-read.c: Include specification header first, to ensure its
80316         selfcontainedness.
80317         * lib/full-write.c: Likewise.
80318
80319 2003-01-07  Jim Meyering  <jim@meyering.net>
80320
80321         * lib/full-write.c: Rework so that it may serve to define full_read,
80322         too.
80323         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
80324
80325 2003-01-07  Bruno Haible  <bruno@clisp.org>
80326
80327         * lib/strtoimax.c: Include <stdint.h> as an alternative to
80328         <inttypes.h>.
80329         * lib/xstrtol.h: Likewise.
80330         * lib/xstrtoimax.c: Likewise.
80331         * lib/xstrtoumax.c: Likewise.
80332         * lib/human.h: Likewise.
80333
80334         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
80335         on systems that have <inttypes.h> but not <stdint.h>.
80336
80337 2003-01-07  Bruno Haible  <bruno@clisp.org>
80338
80339         * MODULES.html.sh: Add copyright notice.
80340         (missed_files): Omit CVS directory entries.
80341         (func_module): Make it work with sed-3.02.
80342         * MODULES.txt: Remove file.
80343
80344 2003-01-06  Jim Meyering  <jim@meyering.net>
80345
80346         * lib/version-etc.c: Update year in translatable copyright string.
80347
80348 2003-01-03  Karl Berry  <karl@gnu.org>
80349
80350         * config/config.{guess,sub}: update from prep.
80351
80352 2003-01-02  Karl Berry  <karl@gnu.org>
80353
80354         * doc/COPYING.DOC: belatedly updated to 1.2.
80355
80356 2003-01-01  Karl Berry  <karl@gnu.org>
80357
80358         * gnulib-tool (func_verify_module): report module name $module in
80359         error message, not $1.
80360         * gnulib-tool (create-testdir): don't complain if destdir couldn't
80361         be created, only if it doesn't exist.
80362         * gnulib-tool (last_checkin_date): don't expand the $Date here.
80363
80364 2002-12-31  Paul Eggert  <eggert@twinsun.com>
80365
80366         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
80367
80368 2002-12-31  Paul Eggert  <eggert@twinsun.com>
80369
80370         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
80371         memcmp if strcoll doesn't work.
80372
80373 2002-12-31  Bruno Haible  <bruno@clisp.org>
80374
80375         * lib/utime.c (utime_null): No need to call ftruncate if the file was
80376         nonempty.
80377
80378 2002-12-31  Bruno Haible  <bruno@clisp.org>
80379
80380         * lib/memcoll.c (STRCOLL): New macro.
80381         (memcoll): Use it.
80382
80383 2002-12-31  Bruno Haible  <bruno@clisp.org>
80384
80385         * lib/localcharset.h: New file.
80386         * lib/localcharset.c: Include it.
80387         * lib/unicodeio.c: Likewise.
80388
80389 2002-12-31  Bruno Haible  <bruno@clisp.org>
80390
80391         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
80392         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
80393
80394 2002-12-31  Bruno Haible  <bruno@clisp.org>
80395
80396         * lib/getline.h: Include <stddef.h>, for size_t.
80397
80398         * lib/unicodeio.h: Include <stddef.h>, for size_t.
80399         * lib/unicodeio.c: Don't include <stddef.h>.
80400
80401 2002-12-31  Bruno Haible  <bruno@clisp.org>
80402
80403         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
80404         HAVE_TM_ZONE.
80405
80406 2002-12-24  Karl Berry  <karl@gnu.org>
80407
80408         * config/config.guess: update from prep.
80409
80410 2002-12-24  Bruno Haible  <bruno@clisp.org>
80411
80412         General infrasructure.
80413         * m4/README: Rewritten.
80414         * m4/onceonly.m4: New file.
80415         * m4/onceonly_2_57.m4: New file.
80416
80417         Module atexit.
80418         * m4/atexit.m4: New file.
80419
80420         Module strtod.
80421         * m4/strtod.m4: New file.
80422
80423         Module strtol.
80424         * m4/strtol.m4: New file.
80425
80426         Module strtoul.
80427         * m4/strtoul.m4: New file.
80428
80429         Module memchr.
80430         * m4/memchr.m4: New file.
80431
80432         Module memcmp.
80433         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
80434         (jm_FUNC_MEMCMP): Invoke it.
80435
80436         Module memcpy.
80437         * m4/memcpy.m4: New file.
80438
80439         Module memmove.
80440         * m4/memmove.m4: New file.
80441
80442         Module memset.
80443         * m4/memset.m4: New file.
80444
80445         Module strcspn.
80446         * m4/strcspn.m4: New file.
80447
80448         Module strpbrk.
80449         * m4/strpbrk.m4: New file.
80450
80451         Module strstr.
80452         * m4/strstr.m4: New file.
80453
80454         Module strerror.
80455         * m4/strerror.m4: New file.
80456
80457         Module mktime.
80458         * m4/mktime.m4: Renamed from jm-mktime.m4.
80459         (gl_PREREQ_MKTIME): New macro.
80460         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
80461
80462         Module malloc.
80463         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
80464         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
80465         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
80466
80467         Module realloc.
80468         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
80469         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
80470         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
80471
80472         Module strftime.
80473         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
80474         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
80475         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
80476         gl_TM_GMTOFF.
80477         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
80478
80479         Module xalloc.
80480         * m4/xalloc.m4: New file.
80481
80482         Module alloca.
80483         * m4/alloca.m4: New file.
80484
80485         Module putenv.
80486         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
80487         (jm_FUNC_PUTENV): Invoke it.
80488
80489         Module setenv.
80490         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
80491         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
80492         when invoked twice.
80493         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
80494         gt_FUNC_SETENV.
80495
80496         Module memrchr.
80497         * m4/memrchr.m4: New file.
80498
80499         Module stpcpy.
80500         * m4/stpcpy.m4: New file.
80501
80502         Module strcase.
80503         * m4/strcase.m4: New file.
80504
80505         Module strdup.
80506         * m4/strdup.m4: New file.
80507
80508         Module strnlen.
80509         * m4/strnlen.m4: New file.
80510
80511         Module strndup.
80512         * m4/strndup.m4: New file.
80513
80514         Module xstrtod.
80515         * m4/xstrtod.m4: New file.
80516
80517         Module xstrtol.
80518         * m4/xstrtol.m4: New file.
80519
80520         Module getdate.
80521         * m4/getdate.m4: New file.
80522
80523         Module unlocked-io.
80524         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
80525         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
80526         * m4/jm-glibc-io.m4n: Remove file.
80527
80528         Module long-options.
80529         * m4/long-options.m4: New file.
80530
80531         Module md5.
80532         * m4/md5.m4: New file.
80533
80534         Module sha.
80535         * m4/sha.m4: New file.
80536
80537         Module getstr.
80538         * m4/getstr.m4: New file.
80539
80540         Module getline.
80541         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
80542         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
80543         <sys/types.h>, for size_t. Use the function name gnu_getline, not
80544         simply getline. Infoke gl_PREREQ_GETLINE.
80545
80546         Module obstack.
80547         * m4/obstack.m4: New file.
80548
80549         Module hash.
80550         * m4/hash.m4: New file.
80551
80552         Module readtokens.
80553         * m4/readtokens.m4: New file.
80554
80555         Module strverscmp.
80556         * m4/strverscmp.m4: New file.
80557
80558         Module stdbool.
80559         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
80560         OSF/1.
80561
80562         Module strtoll.
80563         * m4/strtoll.m4: New file.
80564
80565         Module strtoull.
80566         * m4/strtoull.m4: New file.
80567
80568         Module strtoimax.
80569         * m4/strtoimax.m4: New file.
80570
80571         Module strtoumax.
80572         * m4/strtoumax.m4: New file.
80573
80574         Module xstrtoimax.
80575         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
80576         jm_AC_PREREQ_XSTRTOIMAX.
80577         Moved the strtol prerequisites to strtol.m4.
80578         Moved the strtoll prerequisites to strtoll.m4.
80579         Moved the strtoimax prerequisites to strtoimax.m4.
80580
80581         Module xstrtoumax.
80582         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
80583         jm_AC_PREREQ_XSTRTOUMAX.
80584         Moved the strtoul prerequisites to strtoul.m4.
80585         Moved the strtoull prerequisites to strtoull.m4.
80586         Moved the strtoumax prerequisites to strtoumax.m4.
80587
80588         Module chown.
80589         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
80590         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
80591
80592         Module dup2.
80593         * m4/dup2.m4: New file.
80594
80595         Module ftruncate.
80596         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
80597         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
80598
80599         Module getgroups.
80600         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
80601         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
80602
80603         Module gettimeofday.
80604         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
80605         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
80606         gl_PREREQ_GETTIMEOFDAY.
80607
80608         Module mkdir.
80609         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
80610         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
80611
80612         Module mkstemp.
80613         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
80614         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
80615         jm_AC_TYPE_UINTMAX_T.
80616         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
80617
80618         Module stat.
80619         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
80620         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
80621
80622         Module lstat.
80623         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
80624         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
80625
80626         Module timespec.
80627         * m4/timespec.m4 (gl_TIMESPEC): New macro.
80628         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
80629         * m4/st_mtim.m4: Indentation.
80630
80631         Module nanosleep.
80632         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
80633         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
80634         gl_PREREQ_NANOSLEEP.
80635
80636         Module regex.
80637         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
80638         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
80639         (gl_REGEX): New macro.
80640
80641         Module rename.
80642         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
80643         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
80644
80645         Module rmdir.
80646         * m4/rmdir.m4: New file.
80647
80648         Module utime.
80649         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
80650         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
80651         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
80652
80653         Module dirname.
80654         * m4/dirname.m4: New file.
80655
80656         Module getopt.
80657         * m4/getopt.m4: New file.
80658
80659         Module unistd-safer.
80660         * m4/unistd-safer.m4: New file.
80661
80662         Module fnmatch.
80663         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
80664         declaration.
80665         (gl_PREREQ_FNMATCH_EXTRA): New macro.
80666         (gl_FUNC_FNMATCH_POSIX): New macro.
80667         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
80668         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
80669         simply fnmatch.
80670
80671         Module exclude.
80672         * m4/exclude.m4: New file.
80673
80674         Module human.
80675         * m4/human.m4: New file.
80676
80677         Module acl.
80678         * m4/acl.m4: Nop.
80679
80680         Module backupfile.
80681         * m4/backupfile.m4: New file.
80682         * m4/d-ino.m4: Indentation.
80683
80684         Module fsusage.
80685         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
80686         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
80687         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
80688
80689         Module dirfd.
80690         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
80691         requirements.
80692
80693         Module euidaccess.
80694         * m4/euidaccess.m4: New file.
80695
80696         Module file-type.
80697         * m4/file-type.m4: New file.
80698
80699         Module fileblocks.
80700         * m4/fileblocks.m4: New file.
80701
80702         Module filemode.
80703         * m4/filemode.m4: New file.
80704
80705         Module isdir.
80706         * m4/isdir.m4: New file.
80707
80708         Module lchown.
80709         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
80710         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
80711
80712         Module makepath.
80713         * m4/makepath.m4: New file.
80714
80715         Module modechange.
80716         * m4/modechange.m4: New file.
80717
80718         Module mountlist.
80719         * m4/mountlist.m4: New file.
80720         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
80721         Indentation.
80722
80723         Module path-concat.
80724         * m4/path-concat.m4: New file.
80725
80726         Module pathmax.
80727         * m4/pathmax.m4: New file.
80728
80729         Module same.
80730         * m4/same.m4: New file.
80731
80732         Module save-cwd.
80733         * m4/save-cwd.m4: New file.
80734
80735         Module savedir.
80736         * m4/savedir.m4: New file.
80737
80738         Module xgetcwd.
80739         * m4/xgetcwd.m4: New file.
80740         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
80741
80742         Module xreadlink.
80743         * m4/xreadlink.m4: New file.
80744
80745         Module safe-read.
80746         * m4/safe-read.m4: New file.
80747
80748         Module safe-write.
80749         * m4/safe-write.m4: New file.
80750
80751         Module closeout.
80752         * m4/closeout.m4: New file.
80753
80754         Module stdio-safer.
80755         * m4/stdio-safer.m4: New file.
80756
80757         Module getpass.
80758         * m4/getpass.m4: New file.
80759
80760         Module getugroups.
80761         * m4/getugroups.m4: New file.
80762
80763         Module group-member.
80764         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
80765         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
80766
80767         Module idcache.
80768         * m4/idcache.m4: New file.
80769
80770         Module userspec.
80771         * m4/userspec.m4: New file.
80772
80773         Module gettime.
80774         * m4/clock_time.m4: New file.
80775         * m4/gettime.m4: New file.
80776
80777         Module settime.
80778         * m4/settime.m4: New file.
80779
80780         Module posixtm.
80781         * m4/posixtm.m4: New file.
80782
80783         Module gethostname.
80784         * m4/gethostname.m4: New file.
80785
80786         Module canon-host.
80787         * m4/canon-host.m4: New file.
80788
80789         Module gettext.
80790         * m4/codeset.m4: New file, from gettext-0.11.5.
80791         * m4/gettext.m4: New file, from gettext-0.11.5.
80792         * m4/glibc21.m4: New file, from gettext-0.11.5.
80793         * m4/iconv.m4: New file, from gettext-0.11.5.
80794         * m4/intdiv0.m4: New file, from gettext-0.11.5.
80795         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
80796         * m4/inttypes.m4: New file, from gettext-0.11.5.
80797         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
80798         * m4/isc-posix.m4: New file, from gettext-0.11.5.
80799         * m4/lcmessage.m4: New file, from gettext-0.11.5.
80800         * m4/lib-ld.m4: New file, from gettext-0.11.5.
80801         * m4/lib-link.m4: New file, from gettext-0.11.5.
80802         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
80803         * m4/progtest.m4: New file, from gettext-0.11.5.
80804         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
80805         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
80806         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
80807
80808         Module localcharset.
80809         * m4/localcharset.m4: New file.
80810
80811         Module hard-locale.
80812         * m4/hard-locale.m4: New file.
80813
80814         Module mbswidth.
80815         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
80816         onceonly macros.
80817         * m4/mbrtowc.m4: Add comment.
80818
80819         Module memcasecmp.
80820         * m4/memcasecmp.m4: New file.
80821
80822         Module memcoll.
80823         * m4/memcoll.m4: New file.
80824
80825         Module unicodeio.
80826         * m4/unicodeio.m4: New file.
80827
80828         Module rpmatch.
80829         * m4/rpmatch.m4: New file.
80830
80831         Module yesno.
80832         * m4/yesno.m4: New file.
80833
80834         Module exitfail.
80835         * m4/exitfail.m4: New file.
80836
80837         Module c-stack.
80838         * m4/c-stack.m4 (gl_C_STACK): New macro.
80839         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
80840
80841         Module error.
80842         * m4/error.m4 (gl_ERROR): New macro.
80843         (jm_PREREQ_ERROR): Use onceonly macros.
80844
80845         Module fatal.
80846         * m4/fatal.m4: New file.
80847
80848         Module getloadavg.
80849         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
80850         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
80851
80852         Module getpagesize.
80853         * m4/getpagesize.m4: New file.
80854
80855         Module getusershell.
80856         * m4/getusershell.m4: New file.
80857
80858         Module physmem.
80859         * m4/physmem.m4: New file.
80860
80861         Module posixver.
80862         * m4/posixver.m4: New file.
80863
80864         Module quotearg.
80865         * m4/quotearg.m4: New file.
80866
80867         Module quote.
80868         * m4/quote.m4: New file.
80869
80870         Module readutmp.
80871         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
80872
80873         Module sig2str.
80874         * m4/sig2str.m4: New file.
80875
80876         Other.
80877         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
80878         ulonglong.m4.
80879         * m4/intmax_t.m4: New file.
80880         * m4/d-type.m4: Indentation.
80881         * m4/jm-macros.m4: Update.
80882         * m4/prereq.m4 (jm_PREREQ): Update.
80883         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
80884         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
80885         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
80886         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
80887         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
80888         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
80889         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
80890         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
80891         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
80892         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
80893         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
80894         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
80895         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
80896         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
80897         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
80898         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
80899         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
80900         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
80901         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
80902
80903 2002-12-24  Bruno Haible  <bruno@clisp.org>
80904
80905         * MODULES.txt: Update according to m4/ changes.
80906
80907         Module gettext.
80908         * config.rpath: New file, from gettext-0.11.5.
80909
80910         * modules/*: New module descriptions.
80911         * gnulib-tool: New file.
80912         * MODULES.html.sh: New file.
80913
80914 2002-12-21  Karl Berry  <karl@gnu.org>
80915
80916         * doc/fdl.texi: update to version 1.2.
80917
80918 2002-12-19  Karl Berry  <karl@gnu.org>
80919
80920         * config/config.guess: update from prep.
80921
80922 2002-12-18  Bruno Haible  <bruno@clisp.org>
80923
80924         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
80925         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
80926
80927 2002-12-17  Bruno Haible  <bruno@clisp.org>
80928
80929         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
80930         stdlib.h, string.h.
80931
80932 2002-12-17  Bruno Haible  <bruno@clisp.org>
80933
80934         * lib/canon-host.c (strdup): Remove unused declaration.
80935
80936         * lib/fsusage.c: Include full_read.h.
80937         (get_fs_usage): Use full_read instead of safe_read.
80938
80939         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
80940
80941 2002-12-12  Karl Berry  <karl@gnu.org>
80942
80943         * config/config.guess: update from prep.
80944
80945 2002-12-11  Bruno Haible  <bruno@clisp.org>
80946
80947         * m4/setenv.m4: New file, from gettext-0.11.5.
80948
80949 2002-12-11  Bruno Haible  <bruno@clisp.org>
80950
80951         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
80952         not unsetenv().
80953         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
80954         modifications:
80955
80956         2002-12-11  Bruno Haible  <bruno@clisp.org>
80957
80958                 * setenv.c (alloca): Fall back to malloc.
80959                 (freea): New macro.
80960                 (setenv): Use freea() to free memory allocated with alloca().
80961
80962         2002-11-13  Bruno Haible  <bruno@clisp.org>
80963
80964                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
80965                 function declarations.
80966                 * unsetenv.c (unsetenv): Likewise.
80967
80968         2002-03-04  Bruno Haible  <bruno@clisp.org>
80969
80970                 Portability to AIX 4.3.3.
80971                 * unsetenv.c: New file, extracted from setenv.c.
80972                 * setenv.c: Move the unsetenv() function to unsetenv.c.
80973
80974         2001-12-20  Bruno Haible  <bruno@clisp.org>
80975
80976                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
80977                 use malloc instead. For SunOS 4.
80978
80979         2001-12-11  Bruno Haible  <bruno@clisp.org>
80980
80981                 * setenv.c: Declare alloca.
80982                 (compar_fn_t): New typedef.
80983                 (KNOWN_VALUE, STORE_VALUE): Use it.
80984
80985         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
80986         setenv.h.
80987
80988 2002-12-10  Paul Eggert  <eggert@twinsun.com>
80989
80990         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
80991         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
80992         Choose values that are less likely to collide with system fnmatch
80993         options.
80994         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
80995         defined (e.g., a pure POSIX system).
80996         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
80997         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
80998
80999 2002-12-06  Paul Eggert  <eggert@twinsun.com>
81000
81001         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
81002         a pain in practice to deal with generated m4 files.  This change
81003         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
81004
81005         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
81006         and jm-glibc-io.m4, as they are no longer a special case.
81007         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
81008         kludge and the auto-generation stuff.  Check only whether the
81009         functions are declared, not whether they exist, since older hosts
81010         that don't declare the functions can't use the optimization anyway.
81011
81012 2002-12-06  Jim Meyering  <jim@meyering.net>
81013
81014         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
81015
81016         Merge in changes from libc's misc/error.c, in preparation
81017         for the merge of gnulib's changes back into libc.
81018
81019         * lib/error.c (_): Define only if not already defined.
81020         Move definition to follow all #include directives.
81021         Include unlocked-io.h only if !_LIBC.
81022         [_LIBC]: Include <libio/libioP.h>.
81023         [USE_IN_LIBIO]: Include <libio/iolibio.h>
81024         (fflush): Tweak definition to use INTUSE.
81025         (putc): Define.
81026
81027 2002-12-05  Paul Eggert  <eggert@twinsun.com>
81028
81029         * lib/alloca.c [defined emacs]: Include "lisp.h".
81030         (xalloc_die) [defined emacs]: New macro.
81031         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
81032         [! defined emacs]: Include <xalloc.h>.
81033         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
81034         (pointer): Typedef to POINTER_TYPE *.
81035         (malloc): Remove decl; we now always use xmalloc.
81036         (alloca): Use old-style definition, since Emacs needs this.
81037         Check for arithmetic overflow when computing combined size.
81038
81039 2002-12-04  Paul Eggert  <eggert@twinsun.com>
81040
81041         Do not generate unlocked-io.h automatically, since it's easier to
81042         maintain it by hand.
81043
81044         * lib/unlocked-io.h: New file, from GNU diffutils,
81045         but with proper copyright notice and attribution.
81046         * lib/gen-uio: Remove.
81047         * lib/Makefile.am: Add copyright notice.
81048         (libfetish_a_SOURCES): Add unlocked-io.h.
81049         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
81050         (DISTCLEANFILES, io_functions): Remove macros.
81051         (EXTRA_DIST): Remove gen_uio.
81052         (unlocked-io.h): Remove rule.
81053
81054 2002-12-04  Jim Meyering  <jim@meyering.net>
81055
81056         Reflect the fact that stat.c and lstat.c are no longer generated.
81057         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
81058         (DISTCLEANFILES): Likewise.
81059         (EXTRA_DIST): Likewise.
81060         (all_local): Don't depend on stat.c or lstat.c.
81061         (stat.c, lstat.c): Remove rules.
81062         (EXTRA_DIST): Remove xstat.in.
81063
81064         * lib/xstat.in: Remove file.  Contents moved into stat.c.
81065         * lib/stat.c: New file.  Contents mostly from xstat.in.
81066         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
81067         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
81068
81069         * lib/safe-read.c: Rework so that it may serve to define safe_write,
81070         too.
81071         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
81072
81073 2002-12-03  Jim Meyering  <jim@meyering.net>
81074
81075         * lib/safe-read.c, safe-write.c: Change variable names and comments,
81076         but not semantics, to minimize the differences between these two files.
81077         (safe_read): Change comment to mention SAFE_READ_ERROR.
81078
81079         * lib/safe-read.c (IS_EINTR): Define.
81080         (safe_read): Use IS_EINTR in place of in-function cpp directives.
81081
81082 2002-12-02  Jim Meyering  <jim@meyering.net>
81083
81084         * lib/safe-read.c (EINTR): Define.
81085         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
81086         (INT_MAX): Provide fallback.
81087         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
81088
81089         * lib/safe-read.h (SAFE_READ_ERROR): Define.
81090
81091 2002-12-02  Bruno Haible  <bruno@clisp.org>
81092
81093         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
81094         Define, taken from safe-read.c.
81095         (INT_MAX): Provide fallback.
81096         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
81097         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
81098
81099         * lib/safe-read.c (EINTR): Remove definition.
81100         (safe_read): Don't use EINTR if it is absent.
81101
81102 2002-12-01  Jim Meyering  <jim@meyering.net>
81103
81104         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
81105         zero.
81106         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
81107
81108 2002-11-27  Paul Eggert  <eggert@twinsun.com>
81109
81110         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
81111         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
81112         with `if (! (value < limit)) abort ();', for readability.
81113
81114 2002-11-26  Karl Berry  <karl@gnu.org>
81115
81116         * lib/strdup.c: copy from libc again, with jim's ok.
81117         * lib/.cppi-disable: re-add strdup.c
81118
81119 2002-11-25  Karl Berry  <karl@gnu.org>
81120
81121         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
81122         instead of "strtol.c".
81123
81124 2002-11-25  Karl Berry  <karl@gnu.org>
81125
81126         * config/install-sh: update from automake for variable quoting, $0 in
81127         error msgs, etc.
81128
81129         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
81130         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
81131         entry.
81132
81133 2002-11-25  Jim Meyering  <jim@meyering.net>
81134
81135         * lib/mktime.c: Sync from libc, now that it has the latest fix.
81136
81137 2002-11-24  Karl Berry  <karl@gnu.org>
81138
81139         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
81140         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
81141
81142 2002-11-24  Jim Meyering  <jim@meyering.net>
81143
81144         Update from coreutils:
81145
81146         * lib/mktime.c: Merge in changes from libc.
81147
81148         Avoid a link-time failure on some Linux systems.
81149         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
81150         (otherwise).
81151         (__mon_yday): Declare with the STATIC attribute.
81152         (__mktime_internal): Likewise.
81153         Based on a report from Greg Schafer.
81154
81155 2002-11-23  Jim Meyering  <jim@meyering.net>
81156
81157         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
81158         Use `unsigned', not `int', as type of index.
81159
81160         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
81161
81162         * lib/fsusage.c: Remove unneeded parentheses around operands of
81163         `defined'.
81164
81165 2002-11-22  Paul Eggert  <eggert@twinsun.com>
81166
81167         * lib/quotearg.h: Allow multiple inclusion by surrounding with
81168         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
81169         so that we can be included first.
81170         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
81171         * lib/quotearg.c: Include quotearg.h immediately after config.h.
81172         No need to include stddef.h or sys/types.h any more.
81173         Surround local include files with "", not "<>".
81174         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
81175         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
81176         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
81177         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
81178         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
81179         (ISPRINT): Remove; no longer needed now that we assume C89.
81180
81181         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
81182         Preserve errno.
81183
81184         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
81185         quotearg_char): Use SIZE_MAX rather than
81186         (size_t) -1 when we are talking about "infinity".
81187
81188         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
81189
81190 2002-11-22  Paul Eggert  <eggert@twinsun.com>
81191
81192         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
81193         hint that one should use `if (! x) abort ();' rather than `assert
81194         (x);', and anyway it's one less thing to worry about configuring.
81195         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
81196         hash_rehash, hash_insert): Use abort rather than assert.
81197
81198 2002-11-22  Bruno Haible  <bruno@clisp.org>
81199
81200         * lib/safe-read.h: Assume C89. Add comments.
81201         (safe_read): Change return type to size_t.
81202         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
81203         byte counts > SSIZE_MAX correctly.
81204         * lib/safe-write.h: New file.
81205         * lib/safe-write.c: New file.
81206         * lib/full-read.h: New file.
81207         * lib/full-read.c: New file.
81208         * lib/full-write.h: Assume C89. Add comments.
81209         * lib/full-write.c: Include safe-write.h.
81210         (full_write): Rewritten to use safe_write.
81211         Suggested by Jim Meyering and Paul Eggert.
81212
81213 2002-11-21  Jim Meyering  <jim@meyering.net>
81214
81215         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
81216
81217         Merge in changes from the coreutils.
81218
81219         2002-09-25  Paul Eggert  <eggert@twinsun.com>
81220         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
81221         <stdint.h>.
81222         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
81223         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
81224         int.  Work more efficiently if X is the same width as uintmax_t.
81225         Do not compare X to -1, to avoid bogus compiler warning.
81226         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
81227         Don't assume that f_frsize and f_bsize are the same type.
81228
81229         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
81230         warning on FreeBSD.
81231
81232         * lib/makepath.c (make_path): Restore umask *before* creating the final
81233         component.
81234         (make_path): Minor reformatting.
81235
81236         * lib/xmalloc.c: Adjust to work with new autoconf macros,
81237         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
81238         HAVE_MALLOC/HAVE_REALLOC.
81239
81240         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
81241         dummy ones.  At least on GNU/Linux systems, `auto' means something
81242         else.
81243         From Michael Stone.
81244
81245 2002-11-21  Bruno Haible  <bruno@clisp.org>
81246
81247         Remove case insensitive option matching.
81248         * lib/argmatch.h (argcasematch): Remove declaration.
81249         (ARGCASEMATCH): Remove macro.
81250         (__xargmatch_internal): Remove case_sensitive argument.
81251         (XARGMATCH): Update.
81252         (XARGCASEMATCH): Remove macro.
81253         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
81254         case_sensitive argument.
81255         (argcasematch): Remove function.
81256         (__xargmatch_internal): Remove case_sensitive argument.
81257         (main): Use XARGMATCH instead of XARGCASEMATCH.
81258
81259         * lib/xmalloc.c: Change compile-time error message. Add comment about
81260         required autoconf version.
81261
81262 2002-11-20  Paul Eggert  <eggert@twinsun.com>
81263
81264         Merge argmatch cleanups from Bison.  Assume C89.
81265
81266         * lib/argmatch.c: Include config.h here, not in argmatch.h.
81267         Include stdlib.h, for EXIT_FAILURE.
81268         Always include <string.h>, since we assume C89.
81269         (EXIT_FAILURE): Remove pre-C89 bug workaround.
81270         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
81271         Include <stddef.h> instead, since it's all we need for size_t.
81272         (PARAMS): Remove.  All uses removed.
81273         (ARRAY_CARDINALITY): Do not bother to #undef.
81274         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
81275         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
81276         Remove unnecessary parentheses.
81277         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
81278         Insert necessary parentheses.
81279         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
81280         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
81281
81282 2002-11-19  Bruno Haible  <bruno@clisp.org>
81283
81284         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
81285         * lib/mbswidth.h: Include <stddef.h>, for size_t.
81286
81287         * lib/mbswidth.h (PARAMS): Remove macro.
81288         (mbswidth, mbsnwidth): Use ANSI C function declarations.
81289         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
81290
81291         * lib/gcd.h (PARAMS): Remove macro.
81292         (gcd): Use ANSI C function declarations.
81293         * lib/gcd.c (gcd): Likewise.
81294
81295 2002-11-15  Bruno Haible  <bruno@clisp.org>
81296
81297         * lib/strcspn.c: Include <stddef.h>.
81298         (strcspn): Use ANSI C function declaration. Change return type to
81299         size_t. Use NULL.
81300         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
81301         (strpbrk): Use NULL.
81302         * lib/strpbrk.h (PARAMS): Remove macro.
81303         (strpbrk): Use ANSI C function declaration.
81304         * lib/strstr.c: Don't include <sys/types.h>.
81305         * lib/strstr.h (PARAMS): Remove macro.
81306         (strstr): Use ANSI C function declarations.
81307
81308 2002-11-14  Karl Berry  <karl@gnu.org>
81309
81310         * config/mkinstalldirs: `do' on separate line, instead of
81311         `for var; do'.
81312
81313 2002-11-06  Bruno Haible  <bruno@clisp.org>
81314
81315         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
81316         * lib/gcd.c (gcd): Likewise.
81317
81318 2002-11-05  Bruno Haible  <bruno@clisp.org>
81319
81320         * lib/gcd.h: New file, from gettext-0.11.5.
81321         * lib/gcd.c: New file, from gettext-0.11.5.
81322
81323 2002-11-05  Bruno Haible  <bruno@clisp.org>
81324
81325         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
81326         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
81327         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
81328         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
81329
81330         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
81331         <libintl.h>.
81332         * lib/makepath.c: Include gettext.h instead of <locale.h> and
81333         <libintl.h>.
81334
81335         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
81336         * lib/human.c: Include gettext.h instead of <libintl.h>.
81337         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
81338         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
81339         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
81340         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
81341         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
81342         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
81343         (textdomain): Remove definition.
81344         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
81345
81346         * lib/long-options.c: Remove include of <libintl.h> and definition of
81347         _.
81348         * lib/same.c: Remove include of <libintl.h> and definition of _.
81349
81350 2002-11-04  Owen Taylor  <otaylor@redhat.com>
81351
81352         * lib/config.charset: A few additions for Solaris.
81353
81354 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
81355
81356         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
81357         * lib/localcharset.c (locale_charset): Declare as extern "C".
81358
81359 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
81360
81361         * lib/config.charset: msdos in uk_UA uses CP1125.
81362
81363 2002-11-04  Bruno Haible  <bruno@clisp.org>
81364
81365         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
81366         * lib/strcase.h: New file, from GNU gettext-0.11.5.
81367         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
81368         * lib/strstr.h: New file, from GNU gettext-0.11.5.
81369         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
81370
81371 2002-11-04  Bruno Haible  <bruno@clisp.org>
81372
81373         * lib/localcharset.c (locale_charset): Don't return an empty string.
81374
81375 2002-11-04  Bruno Haible  <bruno@clisp.org>
81376
81377         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
81378         aliases.
81379
81380 2002-11-04  Bruno Haible  <bruno@clisp.org>
81381
81382         * lib/config.charset: Update for newest glibc. Add canonical names
81383         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
81384
81385 2002-11-04  Bruno Haible  <bruno@clisp.org>
81386
81387         * lib/config.charset: Add support for NetBSD.
81388
81389 2002-11-04  Bruno Haible  <bruno@clisp.org>
81390
81391         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
81392
81393 2002-11-01  Bruno Haible  <bruno@clisp.org>
81394
81395         * configure.in: Add AC_CONFIG_AUX_DIR call.
81396         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
81397         test/Makefile.
81398         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
81399
81400 2002-09-28  Karl Berry  <karl@gnu.org>
81401
81402         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
81403         installed automake until the next release, since changes have been
81404         made.
81405
81406 2002-09-25  Karl Berry  <karl@gnu.org>
81407
81408         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
81409         * lib/getopt*: copy from libc/posix.
81410         * lib/gettext.h: copy from gettext.
81411         * lib/.cppi-disable: add strdup.c, gettext.h.
81412
81413 2002-09-25  Karl Berry  <karl@gnu.org>
81414
81415         * config/srclist.txt: enable gettext.h check.
81416         * config/config.{guess,sub}: update from prep.
81417         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
81418                 from automake 1.6.3.
81419         See srclist*.
81420
81421 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
81422
81423         * regex.c (PATFETCH): Remove the translating fetch.
81424         (PATFETCH_RAW): Rename to PATFETCH.
81425         (set_image_of_range): New fun.
81426         (SET_RANGE_TABLE_WORK_AREA): Use it.
81427         (regex_compile): Don't translate the pattern chars so eagerly.
81428         Only do it when inserting an `exactn' bytecode or when handling
81429         a char-range.
81430         (mutually_exclusive_p): Avoid empty statement.
81431
81432 2002-07-06  Jim Meyering  <meyering@lucent.com>
81433
81434         * m4/README: Don't mention Makefile.am.in.
81435         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
81436
81437 2002-07-01  Jim Meyering  <meyering@lucent.com>
81438
81439         * lib/c-stack.c: Include sys/time.h.
81440         From Volker Borchert.
81441
81442 2002-06-26  Paul Eggert  <eggert@twinsun.com>
81443
81444         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
81445
81446 2002-06-26  Paul Eggert  <eggert@twinsun.com>
81447
81448         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
81449         New macro.  Use it uniformly instead of
81450         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
81451         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
81452         reported by Vin Shelton.
81453
81454 2002-06-22  Paul Eggert  <eggert@twinsun.com>
81455
81456         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
81457         Do not assume SA_SIGINFO behavior.
81458         Bug reported by Jim Meyering on NetBSD 1.5.2.
81459
81460 2002-06-22  Jim Meyering  <meyering@lucent.com>
81461
81462         * m4/c-stack.m4: New file, from diffutils-2.8.2.
81463         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
81464
81465         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
81466         now that configure.ac uses AC_GNU_SOURCE.
81467         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
81468         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
81469
81470         Update to latest tools.  Suggestions from Paul Eggert.
81471         * m4/stdbool.m4: New file, from diffutils-2.8.2.
81472         * m4/gnu-source.m4: Update from diffutils-2.8.2.
81473         * m4/fnmatch.m4: Likewise.
81474         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
81475         to AC_HEADER_STDBOOL
81476
81477 2002-06-22  Jim Meyering  <meyering@lucent.com>
81478
81479         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
81480         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
81481
81482 2002-06-22  Jim Meyering  <meyering@lucent.com>
81483
81484         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
81485
81486         * lib/exitfail.c, exitfail.h: Likewise.
81487         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
81488
81489         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
81490         of fnmatch.h.
81491         (EXTRA_DIST): Add fnmatch_loop.c.
81492         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
81493
81494         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
81495         * lib/fnmatch.c: Update from diffutils-2.8.2.
81496         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
81497         * lib/fnmatch.h: Remove file.
81498
81499 2002-06-21  Jim Meyering  <meyering@lucent.com>
81500
81501         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
81502         * m4/mbrtowc.m4: Likewise.
81503
81504         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
81505         * m4/mbswidth.m4: Reflect name change:
81506         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
81507         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
81508
81509         * m4/lib-link.m4: Update from gettext-0.11.2.
81510         * m4/gettext.m4: Likewise.
81511
81512         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
81513         From Alfred M. Szmidt.
81514
81515 2002-06-18  Paul Eggert  <eggert@twinsun.com>
81516
81517         * lib/file-type.h: Report an error if neither S_ISREG nor
81518         S_IFREG is defined, instead of using a test specific to glibc
81519         2.2.  This should be safe, since POSIX requires S_ISREG and
81520         Unix Version 7 had S_IFREG.  We don't need to check for
81521         <sys/types.h> since we don't use any symbols that it defines.
81522
81523 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
81524
81525         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
81526         $@-t, so that each temporary file name is unique and valid in the first
81527         8 characters, for operation under DOS.
81528
81529 2002-06-15  Paul Eggert  <eggert@twinsun.com>
81530
81531         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
81532
81533 2002-06-15  Jim Meyering  <meyering@lucent.com>
81534
81535         Work even with DJGPP 2.03, which lacks support for symlinks.
81536         From Richard Dawe.
81537         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
81538         is defined.
81539         * lib/lchown.c (S_ISLNK): Likewise.
81540
81541 2002-06-15  Jim Meyering  <meyering@lucent.com>
81542
81543         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
81544         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
81545         have been included before this file.
81546
81547 2002-06-14  Jim Meyering  <meyering@lucent.com>
81548
81549         * lib/file-type.h: Use the version from diffutils-2.8.2.
81550         * lib/file-type.c: Likewise.
81551
81552 2002-06-07  Jim Meyering  <meyering@lucent.com>
81553
81554         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
81555         They're needed at least for NetBSD 1.5.2.
81556         ($statxfs_includes): Include those same headers.
81557         ($statxfs_includes): Include sys/vfs.h if available.
81558         ($statxfs_includes): Likewise for sys/statvfs.h.
81559         Check for the following members in both structs statfs and statvfs:
81560         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
81561
81562 2002-06-01  Jim Meyering  <meyering@lucent.com>
81563
81564         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
81565         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
81566
81567 2002-05-28  Jim Meyering  <meyering@lucent.com>
81568
81569         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
81570         Reported by Volker Borchert.
81571
81572 2002-05-27  Jim Meyering  <meyering@lucent.com>
81573
81574         Fix a problem seen only on nonconforming systems whereby ls.c's
81575         use of localtime, and then of gettimeofday would cause trouble:
81576         the localtime call used to initialize rpl_gettimeofday's save
81577         mechanism would clobber ls's current local time information so
81578         that in any long listing the first file would always be listed
81579         with date 1970-01-01.  Analysis by Volker Borchert.
81580
81581         * lib/gettimeofday.c (localtime): Undefine.
81582         (rpl_localtime): New function.
81583
81584 2002-05-27  Jim Meyering  <meyering@lucent.com>
81585
81586         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
81587         localtime.
81588
81589         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
81590         use the replacement function; it wouldn't resolve at link time.
81591         Reported by Volker Borchert.
81592
81593 2002-05-22  Jim Meyering  <meyering@lucent.com>
81594
81595         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
81596         file-type.h.
81597         * lib/file-type.h: New file.
81598         * lib/file-type.c (file_type): New file/function.  Extracted from
81599         diffutils.
81600
81601 2002-04-30  Jim Meyering  <meyering@lucent.com>
81602
81603         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
81604
81605 2002-04-29  Paul Eggert  <eggert@twinsun.com>
81606
81607         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
81608
81609 2002-04-29  Paul Eggert  <eggert@twinsun.com>
81610
81611         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
81612         Do not check for alloca.h (no longer used) or stdbool.h (was never
81613         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
81614
81615 2002-04-29  Paul Eggert  <eggert@twinsun.com>
81616
81617         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
81618
81619 2002-04-29  Jim Meyering  <meyering@lucent.com>
81620
81621         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
81622         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
81623         Use AC_FUNC_STRNLEN here instead.
81624
81625         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
81626         With autoconf-2.53a, it's part of AC_PROG_CC.
81627
81628 2002-04-28  Paul Eggert  <eggert@twinsun.com>
81629
81630         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
81631         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
81632
81633 2002-04-28  Paul Eggert  <eggert@twinsun.com>
81634
81635         * lib/sig2str.h, lib/sig2str.c: New files.
81636         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
81637
81638 2002-04-28  Paul Eggert  <eggert@twinsun.com>
81639
81640         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
81641         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
81642         of 127, since 64 is the largest conceivable number for ancient
81643         nonstandard hosts.
81644         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
81645
81646 2002-04-28  Jim Meyering  <meyering@lucent.com>
81647
81648         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
81649
81650 2002-04-24  Jim Meyering  <meyering@lucent.com>
81651
81652         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
81653         (jm_PREREQ): Use it.
81654
81655         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
81656         mach/mach.h fcntl.h.
81657         Check for this function: setlocale.
81658
81659 2002-04-24  Jim Meyering  <meyering@lucent.com>
81660
81661         * lib/gettext.h: New file, from Gettext.
81662         * lib/Makefile.am (INCLUDES): Remove -I../intl.
81663         (libfetish_a_SOURCES): Add gettext.h.
81664
81665 2002-04-16  Jim Meyering  <meyering@lucent.com>
81666
81667         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
81668         ut_pid, ut_id, ut_exit.
81669
81670 2002-04-16  Jim Meyering  <meyering@lucent.com>
81671
81672         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
81673         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
81674         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
81675
81676 2002-04-12  Jim Meyering  <meyering@lucent.com>
81677
81678         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
81679         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
81680         existence of the getmntinfo function.  Needed for Darwin 5.3.
81681
81682         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
81683         This is necessary at least on Darwin 5.3.
81684
81685         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
81686         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
81687         strnlen.o in the library, and that makes some versions of ranlib
81688         object.
81689
81690 2002-04-12  Jim Meyering  <meyering@lucent.com>
81691
81692         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
81693
81694 2002-04-09  Jim Meyering  <meyering@lucent.com>
81695
81696         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
81697         to be more precise.  Rather than saying we're checking whether the
81698         function `works', say what we're testing.
81699         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
81700         Reported by Bruno Haible.
81701
81702 2002-03-10  Jim Meyering  <meyering@lucent.com>
81703
81704         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
81705         Suggestion from Santiago Vila.
81706
81707 2002-03-08  Jim Meyering  <meyering@lucent.com>
81708
81709         * lib/rename.c: Mention that this wrapper is needed also on
81710         mips-dec-ultrix4.4 systems.
81711
81712 2002-03-02  Jim Meyering  <meyering@lucent.com>
81713
81714         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
81715         not HAVE_CLOCK_SETTIME.
81716
81717 2002-02-27  Paul Eggert  <eggert@twinsun.com>
81718
81719         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
81720         Check for clock_settime.
81721
81722 2002-02-27  Paul Eggert  <eggert@twinsun.com>
81723
81724         * lib/nanosleep.h: Rename to....
81725         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
81726
81727         * lib/gettime.c: New file.
81728         * lib/settime.c: New file.
81729         * lib/stime.c: Remove.
81730
81731         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
81732         timespec.h.  Remove nanosleep.h.
81733
81734 2002-02-25  Paul Eggert  <eggert@twinsun.com>
81735
81736         * m4/acl.m4: New file.
81737         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
81738         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
81739
81740 2002-02-25  Paul Eggert  <eggert@twinsun.com>
81741
81742         * lib/acl.c, lib/acl.h: New files.
81743         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
81744
81745 2002-02-24  Jim Meyering  <meyering@lucent.com>
81746
81747         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
81748         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
81749         cause trouble.  Reported by Nelson Beebe.
81750
81751 2002-02-23  Paul Eggert  <eggert@twinsun.com>
81752
81753         * lib/path-concat.c (xpath_concat): Reorder code to pacify
81754         compilers that don't know that xalloc_die never returns.
81755
81756 2002-02-20  Jim Meyering  <meyering@lucent.com>
81757
81758         * lib/getdate.c: Regenerate using bison-1.33.
81759
81760 2002-02-17  Jim Meyering  <meyering@lucent.com>
81761
81762         * config/config.guess (main): Don't use `head -1'; it's no longer
81763         portable. Use `sed 1q' instead.
81764
81765 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
81766
81767         * m4/codeset.m4: Upgrade to gettext-0.11.
81768         * m4/gettext.m4: Upgrade to gettext-0.11.
81769         * m4/glibc21.m4: Upgrade to gettext-0.11.
81770         * m4/iconv.m4: Upgrade to gettext-0.11.
81771         * m4/isc-posix.m4: Upgrade to gettext-0.11.
81772         * m4/lcmessage.m4: Upgrade to gettext-0.11.
81773         * m4/lib-ld.m4: New file, from gettext-0.11.
81774         * m4/lib-link.m4: New file, from gettext-0.11.
81775         * m4/lib-prefix.m4: New file, from gettext-0.11.
81776         * m4/progtest.m4: Upgrade to gettext-0.11.
81777
81778 2002-02-15  Paul Eggert  <eggert@twinsun.com>
81779
81780         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
81781         (jm_PREREQ): Use it.
81782
81783 2002-02-15  Paul Eggert  <eggert@twinsun.com>
81784
81785         * lib/posixver.c, lib/posixver.h: New files.
81786         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
81787
81788 2002-02-02  Paul Eggert  <eggert@twinsun.com>
81789             Bruno Haible  <bruno@clisp.org>
81790
81791         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
81792         (fwrite_success_callback): New declaration.
81793         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
81794         print_unicode_char. Call failure callback instead of error.
81795         (fwrite_success_callback): New function.
81796         (exit_failure_callback): New function.
81797         (fallback_failure_callback): New function.
81798         (print_unicode_char): Call unicode_to_mb.
81799
81800 2002-01-26  Jim Meyering  <meyering@lucent.com>
81801
81802         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
81803         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
81804
81805 2002-01-26  Jim Meyering  <meyering@lucent.com>
81806
81807         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
81808
81809 2002-01-22  Paul Eggert  <eggert@twinsun.com>
81810
81811         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
81812
81813 2002-01-22  Jim Meyering  <meyering@lucent.com>
81814
81815         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
81816         Otherwise, some versions of automake would omit the rule that makes
81817         Makefile from Makefile.in.
81818
81819 2002-01-21  Paul Eggert  <eggert@twinsun.com>
81820
81821         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
81822         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
81823         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
81824         (memcoll): Set errno to zero if there is no error.
81825
81826         * lib/quotearg.c (quotearg_buffer_restyled):
81827         Fix bug with quoting buffers containing NUL when backslashing escapes.
81828         This bug was exposed by the other changes in this patch.
81829         (quotearg_n_options): New arg ARGSIZE.
81830         All callers changed.
81831         (quoting_options_from_style): New function.
81832         (quotearg_n_style): Use it.
81833         (quotearg_n_style_mem): New function.
81834
81835         * lib/quotearg.h (quotearg_n_style_mem): New function.
81836
81837 2002-01-19  Jim Meyering  <meyering@lucent.com>
81838
81839         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
81840         Remove useless quotes: DF_PROG="df".
81841         * m4/strnlen.m4: New file.
81842
81843 2002-01-16  Paul Eggert  <eggert@twinsun.com>
81844
81845         * lib/backupfile.c (ISDIGIT): Comment fix.
81846         * lib/getdate.y (ISDIGIT): Likewise.
81847         * lib/posixtm.c (ISDIGIT, year): Likewise.
81848         * lib/strverscmp.c (ISDIGIT): Likewise.
81849         * lib/userspec.c (ISDIGIT): Likewise.
81850
81851 2002-01-16  Jim Meyering  <meyering@lucent.com>
81852
81853         * lib/getdate.y: Add three semicolons, each just before a closing
81854         brace. Bison (as of version 1.31) no longer papers over that mistake.
81855
81856 2002-01-05  Jim Meyering  <meyering@lucent.com>
81857
81858         * lib/version-etc.c (version_etc_copyright): Update copyright year.
81859
81860 2001-12-19  Paul Eggert  <eggert@twinsun.com>
81861
81862         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
81863         not silently exit merely because the output buffer happens to
81864         have nothing pending.
81865
81866 2001-12-18  Paul Eggert  <eggert@twinsun.com>
81867
81868         See the big note in ../ChangeLog.
81869         * lib/human.c (suffixes): Prefer K to k for 1024.
81870         (generate_suffix_backwards): New function.
81871         (human_readable_inexact): Use it.
81872         * lib/xstrtol.c (__xstrtol): If there is no number but there
81873         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
81874         Accept 'K' as well as 'k'.
81875
81876 2001-12-15  Jim Meyering  <meyering@lucent.com>
81877
81878         * lib/regex.h (__restrict_arr): Update from libc.
81879
81880         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
81881         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
81882         (STREQ): Define.
81883
81884 2001-12-14  Jim Meyering  <meyering@lucent.com>
81885
81886         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
81887         Suggestion from Bruno Haible.
81888
81889 2001-12-10  Jim Meyering  <meyering@lucent.com>
81890
81891         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
81892         xrealloc, Instead, include "xalloc.h".
81893         (initbuffer): Don't cast xmalloc return value to char*.
81894         (readline): Reword comment.
81895         Don't cast xrealloc return value to char*
81896         Return NULL, not 0.
81897
81898 2001-12-09  Jim Meyering  <meyering@lucent.com>
81899
81900         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
81901         about `signed and unsigned type in conditional expression'.
81902         * lib/posixtm.c (posix_time_parse): Likewise.
81903
81904         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
81905
81906         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
81907         to avoid a pedantic warning.
81908
81909         * lib/getstr.c: Don't include assert.h.
81910         (getstr): Remove warning-evoking assertions.
81911         Return -1 if offset parameter is out of bounds.
81912         Change the type of a local from int to size_t.
81913
81914         * lib/strftime.c (my_strftime_localtime_r): Include this function
81915         definition in the `#if ! HAVE_TM_GMTOFF' block.
81916
81917         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
81918         Include xalloc.h instead.
81919
81920 2001-12-02  Jim Meyering  <meyering@lucent.com>
81921
81922         * lib/tempname.c: Don't declare getenv, thus reverting the change of
81923         2001-11-18.  It's no longer necessary, now that stdlib.h is always
81924         included.
81925
81926         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
81927         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
81928
81929 2001-11-30  Akim Demaille  <akim@epita.fr>
81930
81931         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
81932         before being defined.
81933
81934 2001-11-27  Paul Eggert  <eggert@twinsun.com>
81935
81936         * lib/quotearg.h (quotearg_n, quotearg_n_style):
81937         First arg is int, not unsigned.
81938         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
81939         (SIZE_MAX, UINT_MAX): New macros.
81940         (quotearg_n_options): Abort if N is negative.
81941         Avoid overflow check on hosts where size_t is 64 bits and int
81942         is 32 bits, as overflow is impossible there.
81943         Fix off-by-one typo that caused unnecessary reallocation.
81944
81945 2001-11-27  Jim Meyering  <meyering@lucent.com>
81946
81947         * lib/tempname.c: Merge with version from libc.
81948         * lib/regex.c: Likewise.
81949
81950         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
81951         systems for which STDC_HEADERS is 0, it was not included, resulting in
81952         a warning about an integer-to-pointer conversion problem with getenv.
81953         Reported by Volker Borchert.
81954
81955 2001-11-26  Jim Meyering  <meyering@lucent.com>
81956
81957         * lib/gtod.h: Remove file.
81958         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
81959         * lib/gettimeofday.c: Don't include gtod.h.
81960         (GTOD_init): Remove function.
81961         (rpl_gettimeofday): Do its job here instead, rather than aborting.
81962         Suggestion from Volker Borchert.
81963
81964 2001-11-23  Jim Meyering  <meyering@lucent.com>
81965
81966         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
81967         it.
81968         * lib/hash.c (struct hash_table): Define it here instead.
81969
81970 2001-11-22  Jim Meyering  <meyering@lucent.com>
81971
81972         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
81973
81974 2001-11-20  Jim Meyering  <meyering@lucent.com>
81975
81976         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
81977         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
81978
81979 2001-11-19  Jim Meyering  <meyering@lucent.com>
81980
81981         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
81982         directory.  Use "conftestXXXXXX" as the template.
81983         Suggestion from Paul Eggert.
81984
81985         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
81986         immediately, so the test doesn't mistakenly hit the max-open-files
81987         limit.
81988
81989 2001-11-18  Paul Eggert  <eggert@twinsun.com>
81990
81991         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
81992         (TEMPORARIES): New macro.
81993         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
81994         removes an artificial limitation (e.g. HP-UX 10.20, where
81995         TMP_MAX is 17576).
81996
81997 2001-11-18  Jim Meyering  <meyering@lucent.com>
81998
81999         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
82000
82001 2001-11-18  Jim Meyering  <meyering@lucent.com>
82002
82003         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
82004         on SunOS 4.
82005
82006         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
82007         files will be created before anything else.
82008
82009 2001-11-17  Paul Eggert  <eggert@twinsun.com>
82010
82011         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
82012         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
82013
82014 2001-11-17  Jim Meyering  <meyering@lucent.com>
82015
82016         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
82017         Prompted by a report from Bob Proulx.
82018
82019         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
82020         Instead, require UTILS_FUNC_MKSTEMP.
82021
82022 2001-11-17  Jim Meyering  <meyering@lucent.com>
82023
82024         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
82025         Now, that's done as part of AC_FUNC_STRTOD.
82026
82027 2001-11-17  Jim Meyering  <meyering@lucent.com>
82028
82029         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
82030         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
82031         rather than group writable.  Patch by Juan F. Codagnone.
82032
82033         * lib/readtokens.c: Remove explicit declarations of xmalloc and
82034         xrealloc, Instead, include "xalloc.h".
82035
82036         * lib/mountlist.c: Include unlocked-io.h after all system headers.
82037         Remove explicit declarations of xmalloc, xrealloc,
82038         and xstrdup.  Instead, include "xalloc.h".
82039
82040         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
82041         unlocked-io.h.
82042         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
82043         Likewise.
82044         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
82045
82046         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
82047         Reported by Padraig Brady.
82048
82049         * lib/mkstemp.c: #undef mkstemp.
82050         Include config.h.
82051         (rpl_mkstemp): Rename from mkstemp.
82052         Protoize.
82053
82054 2001-11-16  Jim Meyering  <meyering@lucent.com>
82055
82056         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
82057         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
82058         determine the amount of total physical memory, use pstat_getstatic.
82059         HPUX-11 doesn't define _SC_PHYS_PAGES.
82060         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
82061         If sysconf couldn't be used to determine the amount of available
82062         physical memory, use both pstat_getstatic and pstat_getdynamic.
82063         Based on a patch from Bob Proulx.
82064
82065 2001-11-10  Jim Meyering  <meyering@lucent.com>
82066
82067         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
82068         (jm_PREREQ): Use it.
82069
82070 2001-11-09  Jim Meyering  <meyering@lucent.com>
82071
82072         * m4/jm-macros.m4: Require autoconf-2.52f.
82073         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
82074         Use these AC_-prefixed names, not the AM_-prefixed ones.
82075
82076         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
82077
82078 2001-11-05  Jim Meyering  <meyering@lucent.com>
82079
82080         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
82081
82082 2001-11-04  Jim Meyering  <meyering@lucent.com>
82083
82084         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
82085         $DEFS.
82086
82087 2001-11-03  Jim Meyering  <meyering@lucent.com>
82088
82089         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
82090         of AC_DEFUN.
82091
82092         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
82093         know the name of the variable in the macro definition.
82094
82095 2001-11-03  Jim Meyering  <meyering@lucent.com>
82096
82097         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
82098         in argmatch_to_argument call.
82099
82100         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
82101         argument.
82102
82103         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
82104         e.g., a fault due to an attempt to free a NULL pointer.
82105
82106 2001-11-01  Jim Meyering  <meyering@lucent.com>
82107
82108         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
82109         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
82110
82111 2001-11-01  Jim Meyering  <meyering@lucent.com>
82112
82113         * lib/dirfd.c, lib/dirfd.h: New files.
82114         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
82115
82116         * lib/hash.c (hash_print) [TESTING]: Clean up.
82117
82118 2001-10-22  Paul Eggert  <eggert@twinsun.com>
82119
82120         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
82121         to avoid a warning if -Wall.
82122
82123 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
82124
82125         * README: New file
82126         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
82127         (per RMS's instructions, this is now the canonical source)
82128         * lgpl/, gpl/: New directories.
82129
82130 2001-10-21  Paul Eggert  <eggert@twinsun.com>
82131
82132         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
82133
82134 2001-10-21  Jim Meyering  <meyering@lucent.com>
82135
82136         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
82137         this code would end up calling gettext even in packages built
82138         with --disable-nls.
82139         * lib/getopt.c (_): Likewise.
82140         * lib/regex.c (_): Likewise.
82141
82142 2001-10-20  Paul Eggert  <eggert@twinsun.com>
82143
82144         * m4/error.m4 (jm_PREREQ_ERROR):
82145         Do not invoke AC_CHECK_FUNCS with strerror_r, as
82146         AC_FUNC_STRERROR_R does that.
82147         Check for strerror declaration.
82148
82149         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
82150         are supposed to have them these days.
82151         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
82152         Merge changes from latest Autoconf CVS.
82153         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
82154         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
82155         POSIX decided to standardize on the int flavor of strerror_r.
82156
82157 2001-10-20  Paul Eggert  <eggert@twinsun.com>
82158
82159         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
82160         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
82161         Use strerror_r that is only a macro, even if it is not a function.
82162         (strerror): Check for HAVE_DECL_STRERROR before declaring.
82163         (private_strerror): Use prototypes, not old-style function definition.
82164         (print_errno_message): New function.
82165         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
82166         char*-flavored one.
82167         (error_tail, error, error_at_line): Use it.
82168
82169 2001-10-11  Jim Meyering  <meyering@lucent.com>
82170
82171         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
82172         and quote_n (1, ... to avoid clobbering a buffer.
82173
82174 2001-10-05  Jim Meyering  <meyering@lucent.com>
82175
82176         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
82177         hash-pjw.h.
82178         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
82179         * lib/hash-pjw.h: New file.
82180
82181 2001-09-30  Jim Meyering  <meyering@lucent.com>
82182
82183         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
82184         `struct fsstat' has the `f_fstypename' member.
82185         Use that to define FS_TYPE, which is now used to make
82186         the getfsstat link test tighter.
82187
82188 2001-09-30  Jim Meyering  <meyering@lucent.com>
82189
82190         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
82191         Include <sys/ucred.h>, for Apple Darwin.
82192         Include sys/mount.h and sys/fs_types.h only if available.
82193         (FS_TYPE): Define.
82194         (read_filesystem_list): Use FS_TYPE.
82195
82196 2001-09-29  Paul Eggert  <eggert@twinsun.com>
82197
82198         * lib/exclude.c (excluded_filename): 0 -> false, since it's
82199         a boolean context.
82200
82201 2001-09-29  Jim Meyering  <meyering@lucent.com>
82202
82203         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
82204         [one-argument getmntent function]): Include stdio.h before mntent.h.
82205         SunOS 4.1.x needs it for the declaration of `FILE'.
82206         Patch by Volker Borchert.
82207
82208         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
82209         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
82210         sys/fs_types.h, and make the link-test for getfsstat guard #include
82211         directives with appropriate #if HAVE_*_H tests so that we can
82212         detect getfsstat on Apple Darwin1.3.7 systems.
82213         Reported by Nelson Beebe.
82214         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
82215
82216 2001-09-28  Paul Eggert  <eggert@twinsun.com>
82217
82218         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
82219         #defines strtoimax.  Also treat the other strto* functions
82220         like strtoimax.
82221
82222         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
82223         Check for strtoul and strtoumax,
82224         as those declarations are made even in the signed case.
82225         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
82226         Likewise, for strtol and strtoimax.
82227
82228 2001-09-28  Paul Eggert  <eggert@twinsun.com>
82229
82230         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
82231         #defines strtoimax.  Also treat the other strto* functions
82232         like strtoimax.
82233
82234         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
82235         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
82236         (strtoimax, strtoumax): Do not declare if already defined as a macro.
82237
82238 2001-09-26  Jim Meyering  <meyering@lucent.com>
82239
82240         Most macros in unlocked-io.h had the wrong number of arguments.
82241         * lib/gen-uio: New script.
82242         (USE_UNLOCKED_IO): Define to 1 if not already defined.
82243         * lib/unlocked-io.hin: Remove file.
82244         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
82245         rather than trying to embed it here.
82246         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
82247         Reported by Padraig Brady.
82248
82249 2001-09-25  Volker Borchert  <bt@teknon.de>
82250
82251         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
82252         `result'.
82253
82254 2001-09-24  Jim Meyering  <meyering@lucent.com>
82255
82256         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
82257
82258 2001-09-23  Jim Meyering  <meyering@lucent.com>
82259
82260         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
82261         instead of the mere test for existence of mntent.h.  The latter
82262         would get a false-positive on AIX 3.4 systems.
82263         In the outer getmntent if-block, don't die if neither of the getmntent
82264         tests succeeds.  Instead, just fall through and continue with the
82265         remaining tests.
82266
82267 2001-09-23  Jim Meyering  <meyering@lucent.com>
82268
82269         * lib/mountlist.c: Remove useless parentheses in #if directives.
82270         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
82271         the deprecated MOUNTED symbol is no longer defined in mntent.h.
82272
82273 2001-09-22  Jim Meyering  <meyering@lucent.com>
82274
82275         * m4/gettext.m4: New file.  From gettext.
82276         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
82277         * m4/progtest.m4: Likewise
82278         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
82279         * m4/glibc21.m4: Likewise.
82280
82281         * m4/libintl.m4: Remove.  No longer used.
82282
82283 2001-09-22  Jim Meyering  <meyering@lucent.com>
82284
82285         * lib/localcharset.c: Update from latest gettext.
82286         * lib/config.charset: Likewise.
82287
82288 2001-09-20  Jim Meyering  <meyering@lucent.com>
82289
82290         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
82291         strtoimax.
82292         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
82293         strtoumax.
82294
82295 2001-09-20  Jim Meyering  <meyering@lucent.com>
82296
82297         * lib/xstrtol.c (strtoimax): Guard declaration with
82298         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
82299         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
82300         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
82301         (strtoumax): Likewise, for completeness (it wasn't necessary).
82302
82303 2001-09-17  Paul Eggert  <eggert@twinsun.com>
82304
82305         * lib/strtoimax.c (HAVE_LONG_LONG):
82306         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
82307         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
82308         to work around bug in IBM C compiler.
82309
82310 2001-09-17  Jim Meyering  <meyering@lucent.com>
82311
82312         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
82313         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
82314         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
82315         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
82316         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
82317         whenever the right hand side need not be expanded by the shell.
82318
82319 2001-09-16  Paul Eggert  <eggert@twinsun.com>
82320
82321         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
82322         library.  It's not correct, as some older glibcs are buggy.
82323         fnmatch wasn't fixed until glibc 2.2.
82324
82325         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
82326         special shell magic here.
82327
82328 2001-09-16  Jim Meyering  <meyering@lucent.com>
82329
82330         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
82331         * m4/jm-macros.m4: Require it.
82332
82333 2001-09-16  Jim Meyering  <meyering@lucent.com>
82334
82335         * lib/mkdir.c: New file.
82336
82337 2001-09-15  Jim Meyering  <meyering@lucent.com>
82338
82339         * m4/jm-macros.m4: Check for help2man.
82340
82341 2001-09-11  Jim Meyering  <meyering@lucent.com>
82342
82343         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
82344         The body, by Paul Eggert, was moved here from configure.in.
82345         * m4/jm-macros.m4: Require UTILS_HOST_OS.
82346
82347 2001-09-04  Paul Eggert  <eggert@twinsun.com>
82348
82349         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
82350         (jm_PREREQ): Use it.
82351
82352 2001-09-04  Paul Eggert  <eggert@twinsun.com>
82353
82354         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
82355         Use ssize_t, not int, to store result of readlink.
82356         Check for ssize_t overflow as well as size_t overflow,
82357         as POSIX says the result of readlink is implementation-defined
82358         when ssize_t overflows.
82359         Remove unnecessary cast to char*.
82360         Use free+malloc instead of realloc, as the storage doesn't need
82361         to be preserved and it's clearer and can be more efficient that way.
82362         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
82363         * lib/xreadlink.h (xreadlink): Update prototype.
82364
82365 2001-09-04  Paul Eggert  <eggert@twinsun.com>
82366
82367         * lib/xgetcwd.c: Revert some of the previous change; intead,
82368         fix the HAVE_GETCWD_NULL code to behave more like the
82369         !HAVE_GETCWD_NULL code used to.
82370
82371         Include "xalloc.h".
82372         (xgetcwd): Do not return NULL when memory is exhausted; instead,
82373         invoke xalloc_die.
82374
82375 2001-09-03  Paul Eggert  <eggert@twinsun.com>
82376
82377         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
82378         sys/param.h, as pathmax.h includes them.
82379
82380 2001-09-03  Paul Eggert  <eggert@twinsun.com>
82381
82382         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
82383         (jm_PREREQ_XGETCWD): New macro.
82384
82385         * m4/getcwd.m4: New file.
82386
82387 2001-09-03  Paul Eggert  <eggert@twinsun.com>
82388
82389         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
82390         like the HAVE_GETCWD_NULL code.
82391         Include pathmax.h if not HAVE_GETCWD.
82392         Do not include xalloc.h.
82393         (INITIAL_BUFFER_SIZE): New symbol.
82394         Do not use xmalloc / xrealloc, since the caller is responsible for
82395         handling errors.  Preserve errno around `free' during failure.
82396         Do not overrun buffer when using getwd.
82397
82398 2001-09-03  Paul Eggert  <eggert@twinsun.com>
82399
82400         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
82401         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
82402         getcwd (NULL, 0).
82403
82404 2001-09-03  Paul Eggert  <eggert@twinsun.com>
82405
82406         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
82407         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
82408         spotted by Jim Meyering.
82409
82410 2001-09-03  Jim Meyering  <meyering@lucent.com>
82411
82412         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
82413         failure.
82414
82415 2001-09-02  Jim Meyering  <meyering@lucent.com>
82416
82417         * lib/error.c: Update from GNU libc.
82418
82419 2001-09-01  Jim Meyering  <meyering@lucent.com>
82420
82421         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
82422         Used by df.
82423
82424 2001-09-01  Jim Meyering  <meyering@lucent.com>
82425
82426         * lib/xreadlink.c: New file.
82427         * lib/xreadlink.h: New file.
82428         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
82429         xreadlink.h.
82430
82431         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
82432         doesn't conflict with sparc Solaris 7's definition in
82433         /usr/include/sys/int_types.h.
82434
82435         * lib/exclude.c: Use `""', not `<>' to #include non-system header
82436         files.
82437         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
82438         and strncasecmp as r-values.  Unixware didn't have declarations.
82439
82440 2001-08-31  Paul Eggert  <eggert@twinsun.com>
82441
82442         * lib/xstrtol.h: Add copyright notice.
82443         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
82444         LONGINT_INVALID_SUFFIX_CHAR.
82445
82446 2001-08-31  Paul Eggert  <eggert@twinsun.com>
82447
82448         * lib/xstrtol.c (strtoimax): New decl.
82449
82450 2001-08-31  Paul Eggert  <eggert@twinsun.com>
82451
82452         * lib/xgetcwd.c: Don't include pathmax.h.
82453         Include stdlib.h and unistd.h if available.
82454         Include xalloc.h.
82455         (xmalloc, xstrdup, free): Remove decls.
82456         (xgetcwd): Don't assume sizes fit in unsigned.
82457         Check for overflow when computing sizes.
82458         Simplify reallocation code.
82459
82460 2001-08-31  Paul Eggert  <eggert@twinsun.com>
82461
82462         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
82463         a directory's st_size can have an arbitrary value, so the old
82464         usage could waste an arbitrary amount of memory.  All uses
82465         changed.
82466         * lib/savedir.h: Update prototype.
82467
82468 2001-08-31  Paul Eggert  <eggert@twinsun.com>
82469
82470         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
82471
82472         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
82473         old strtoimax.c.
82474
82475         Also, make the following further changes to make this file's
82476         configuration more similar to that of strtol.c:
82477         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
82478         (strtoumax, uintmax_t, strtoull, strtol): Remove.
82479         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
82480         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
82481         changed to signed values.
82482
82483         And make the following changes as well:
82484         Fix copyright notice, as 1999 was missing.
82485         (verify): New macro.
82486         (strtoimax): Check sizes at compile-time, not run-time.
82487         Prefer strtol to strtoll if both work.
82488         (main): Remove; it was not that useful and was a pain to maintain.
82489
82490         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
82491
82492 2001-08-31  Jim Meyering  <meyering@lucent.com>
82493
82494         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
82495         Use an initial, malloc'd, buffer of length 128 rather than
82496         a statically allocated one of length 1024.
82497
82498 2001-08-30  Paul Eggert  <eggert@twinsun.com>
82499
82500         Simplify code, partly by assuming autoconf 2.52 semantics.
82501
82502         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
82503
82504         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
82505         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
82506         All uses removed.
82507         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
82508         Move AC_REQUIRE to next-to-top level, to avoid confusion.
82509         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
82510         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
82511         jm_AC_HEADER_INTTYPES_H.
82512         * m4/jm-macros.m4 (jm_MACROS): Likewise.
82513
82514         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
82515
82516         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
82517         Quote first arg of AC_DEFUN.
82518         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
82519         since they are needed to parse the include file even if we need
82520         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
82521         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
82522         but with opposite signedness.
82523
82524 2001-08-30  Paul Eggert  <eggert@twinsun.com>
82525
82526         Merge 'exclude' changes from tar 1.13.22.
82527         This fixes one or two unlikely storage allocation overflow bugs,
82528         but doesn't change user-visible behavior otherwise.
82529
82530 2001-08-30  Paul Eggert  <eggert@twinsun.com>
82531
82532         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
82533         (jm_PREREQ_EXCLUDE): New macro.
82534
82535 2001-08-30  Paul Eggert  <eggert@twinsun.com>
82536
82537         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
82538         tm to be declared.
82539
82540 2001-08-30  Paul Eggert  <eggert@twinsun.com>
82541
82542         * lib/hash.c: Remove '2001' from copyright notice.
82543
82544 2001-08-30  Paul Eggert  <eggert@twinsun.com>
82545
82546         * lib/full-write.h: New file.
82547         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
82548         * lib/full-write.c: Correct credits, as cccp.c no longer
82549         exists and anyway it was so heavily changed from the old cccp
82550         code as to be unrecognizable.  Include full-write.h.
82551         (full_write): Return size_t, with short writes meaning failure.
82552         All callers changed.  This fixes a bug with large buffers
82553         on 64-bit hosts.
82554         * lib/utime.c: Include full-write.h.
82555
82556 2001-08-30  Paul Eggert  <eggert@twinsun.com>
82557
82558         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
82559         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
82560         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
82561         Include if available.
82562         (<xalloc.h>): Include
82563         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
82564         (verify): New macro.  Use it to verify that EXCLUDE macros do not
82565         collide with FNM macros.
82566         (struct patopts): New struct.
82567         (struct exclude): Use it, as exclude patterns now come with options.
82568         (new_exclude): Support above changes.
82569         (new_exclude, add_exclude_file):
82570         Initial size must now be a power of two to simplify overflow checking.
82571         (free_exclude, fnmatch_no_wildcards): New function.
82572         (excluded_filename): No longer requires options arg, as the options
82573         are determined by add_exclude.  Now returns bool, not int.
82574         (excluded_filename, add_exclude):
82575         Add support for the fancy new exclusion options.
82576         (add_exclude, add_exclude_file): Now takes int options arg.
82577         Check for arithmetic overflow when computing sizes.
82578         (add_exclude_file): xrealloc might modify errno, so don't
82579         realloc until after errno might be used.
82580
82581         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
82582         New macros.
82583         (free_exclude): New decl.
82584         (add_exclude, add_exclude_file): Now takes int options arg.
82585         (excluded_filename): No longer requires options arg, as the options
82586         are determined by add_exclude.  Now returns bool, not int.
82587
82588 2001-08-30  Paul Eggert  <eggert@twinsun.com>
82589
82590         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
82591
82592 2001-08-27  Jim Meyering  <meyering@lucent.com>
82593
82594         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
82595
82596         * lib/version-etc.c (N_): Remove definition.
82597         Revert most of last change.
82598         Instead, simply don't mark the `Copyright...' string for translation.
82599         Based on advice from Paul Eggert.
82600
82601         * lib/strtoxmax.c: Tweak comment.
82602
82603 2001-08-26  Jim Meyering  <meyering@lucent.com>
82604
82605         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
82606
82607         * m4/xstrtoimax.m4: New file.
82608         * m4/xstrtoumax.m4: Add comments explaining why we
82609         AC_REPLACE_FUNCS(strtol).
82610
82611 2001-08-26  Jim Meyering  <meyering@lucent.com>
82612
82613         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
82614         of copyright with `%s' so translators don't get an untranslated
82615         message in 2002.
82616         (COPYRIGHT_YEAR): Define.
82617         (version_etc): Use fprintf rather than fputs.
82618         Suggestion from Ulrich Drepper.
82619
82620         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
82621
82622         * lib/strtoll.c: New file, from GNU libc.
82623         * lib/xstrtoimax.c: New file.
82624
82625         * lib/xstrtol.h: Add xstrtoimax.
82626         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
82627         * lib/strtoimax.c: New file.  Likewise, but first define
82628         STRTOUXMAX_SIGNED.
82629
82630         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
82631         ...
82632         * lib/strtoxmax.c: ... then renamed to this.
82633
82634 2001-08-18  Paul Eggert  <eggert@twinsun.com>
82635
82636         * m4/inttypes.m4: Add AC_PREREQ(2.13).
82637         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
82638         (jm_AC_TYPE_INTMAX_T): New macro.
82639         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
82640
82641         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
82642
82643         * m4/longlong.m4: Renamed from ulonglong.m4.
82644         * m4/inttypes.m4: Renamed from inttypes_h.m4.
82645         * m4/uintmax_t.m4: Removed.
82646
82647 2001-08-13  Paul Eggert  <eggert@twinsun.com>
82648
82649         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
82650         Port to Solaris 8, where 'sed' requires a space after the 'r'
82651         command, and where sh dislikes "$/".  Clean up the spacing a bit.
82652         Redirect output to $tmp just once.
82653
82654 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
82655
82656         * lib/addext.c (<errno.h>): Include.
82657         (errno): Declare if not defined.
82658         (addext): Work correctly when pathconf returns -1 and leaves
82659         errno alone because there is no limit.  Also, work even if
82660         pathconf returns a value greater than SIZE_MAX.
82661
82662 2001-08-12  Jim Meyering  <meyering@lucent.com>
82663
82664         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
82665         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
82666         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
82667         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
82668         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
82669         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
82670         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
82671         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
82672         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
82673         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
82674         utime.m4, utimes.m4, xstrtoumax.m4:
82675         Quote the first argument in each use of AC_DEFUN.
82676
82677 2001-08-12  Jim Meyering  <meyering@lucent.com>
82678
82679         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
82680         Simply `return getcwd (NULL, 0);'.
82681         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
82682         Use 1300 as initial value for length, not PATH_MAX.
82683
82684         * lib/pathmax.h: Clean up cpp syntax.
82685
82686 2001-08-12  Jim Meyering  <meyering@lucent.com>
82687
82688         * lib/gettimeofday.c: New file.
82689         * lib/gtod.h: New file.
82690         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
82691
82692 2001-08-05  Jim Meyering  <meyering@lucent.com>
82693
82694         * m4/jm-macros.m4: Require autoconf-2.52.
82695
82696 2001-08-04  Jim Meyering  <meyering@lucent.com>
82697
82698         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
82699         stmt, to get in sync with glibc.
82700
82701 2001-08-03  Paul Eggert  <eggert@twinsun.com>
82702
82703         The following changes are from gettext 0.10.39 as maintained by
82704         Bruno Haible.
82705
82706         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
82707         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
82708         with inverted sense.  All uses changed.
82709
82710         * lib/mbswidth.c: Don't include <limits.h>.
82711         Include <stdlib.h> and <string.h> unconditionally.
82712         (iswcntrl, mbsinit, ISCNTRL): New macros.
82713         (mbsnwidth): Use K&R style function declarations.
82714         Don't bother checking for MB_LEN_MAX == 1, since the compiler
82715         can optimize it when MB_CUR_MAX == 1.
82716         The width of control characters is zero, not 1.
82717
82718 2001-08-03  Paul Eggert  <eggert@twinsun.com>
82719
82720         The following changes are from gettext 0.10.39 as maintained by
82721         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
82722
82723         * m4/codeset.m4: Upgrade to serial AM1.
82724         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
82725         all uses changed.  Quote first arg of AC_DEFUN.
82726         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
82727
82728         * m4/iconv.m4: Upgrade to serial AM2.
82729         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
82730         Add --with-libconv-prefix.
82731         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
82732         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
82733         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
82734         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
82735         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
82736
82737         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
82738         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
82739         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
82740         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
82741         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
82742         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
82743         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
82744         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
82745         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
82746
82747         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
82748         string.h any more.
82749
82750         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
82751         not the default value.
82752
82753         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
82754         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
82755         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
82756         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
82757         Also check for iswcntrl, used for wcwidth fallback.
82758         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
82759         to Autoconf 2.13.
82760
82761 2001-08-03  Jim Meyering  <meyering@lucent.com>
82762
82763         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
82764         as it was in the original.  Reported by Paul Eggert.
82765
82766 2001-07-16  Jim Meyering  <meyering@lucent.com>
82767
82768         * m4/gettimeofday.m4: New file.
82769         Prompted by a report from Bernhard Baehr.
82770
82771 2001-07-15  Jim Meyering  <meyering@lucent.com>
82772
82773         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
82774         stuff. Now it's in ../Makefile.cfg.
82775
82776 2001-07-15  Jim Meyering  <meyering@lucent.com>
82777
82778         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
82779         (BUILT_SOURCES): Add unlocked-io.h.
82780         (io_functions): Define.
82781         (unlocked-io.h): New rule.
82782         (DISTCLEANFILES): Add unlocked-io.h.
82783         (all-local): Depend on unlocked-io.h, to ensure it is created.
82784
82785         * lib/unlocked-io.hin: New file
82786
82787         * lib/regex.c: Update from glibc.
82788
82789 2001-07-05  Jim Meyering  <meyering@lucent.com>
82790
82791         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
82792         recommendation.
82793         (libfetish_a_SOURCES): Put all .h files here instead.
82794         Remove a thus-exposed (better checks in automake) duplicate and
82795         two unnecessary .h files.
82796
82797 2001-07-04  Jim Meyering  <meyering@lucent.com>
82798
82799         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
82800         that generates jm-glibc-io.m4 so that it doesn't trigger any make
82801         distcheck failure.
82802
82803 2001-07-02  Jim Meyering  <meyering@lucent.com>
82804
82805         The following changes were prompted by suggestions from Bruno Haible.
82806
82807         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
82808         is now generated.
82809         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
82810         definition of EXTRA_DIST.
82811         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
82812         ensure that the generated file is created/updated whenever the list
82813         of $(unlocked_functions) is changed.
82814         (jm-glibc-io.m4): New rule.
82815         (unlocked-io.h): New rule -- currently unused.
82816
82817 2001-06-24  Jim Meyering  <meyering@lucent.com>
82818
82819         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
82820         unmatched right bracket, rather than kludging it with an extra,
82821         falsely-matching quote in a comment.  Patch by Akim Demaille.
82822
82823 2001-06-11  Jim Meyering  <meyering@lucent.com>
82824
82825         * lib/regex.c: Update from GNU libc.
82826
82827 2001-05-27  Jim Meyering  <meyering@lucent.com>
82828
82829         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
82830         Check for ut_type in struct utmp.
82831
82832 2001-05-27  Jim Meyering  <meyering@lucent.com>
82833
82834         * lib/readutmp.h (UT_TYPE): Define.
82835
82836 2001-05-24  Jim Meyering  <meyering@lucent.com>
82837
82838         * lib/argmatch.c: Include "quote.h".
82839         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
82840         quote function.  Reported by Göran Uddeborg.
82841
82842 2001-05-22  Jim Meyering  <meyering@lucent.com>
82843
82844         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
82845         now that we use the package-supplied version unconditionally.
82846         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
82847
82848 2001-05-21  Jim Meyering  <meyering@lucent.com>
82849
82850         * m4/regex.m4: Change a couple backticks to single quotes to avoid
82851         shell syntax errors.
82852
82853 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
82854
82855         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
82856
82857 2001-05-20  Paul Eggert  <eggert@twinsun.com>
82858
82859         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
82860         Don't bother to check library strftime, since
82861         we'll be using our own my_strftime function anyway.
82862         Define my_strftime instead of strftime.
82863
82864 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
82865
82866         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
82867         which is not yet declared.
82868
82869 2001-05-15  Jim Meyering  <meyering@lucent.com>
82870
82871         * m4/regex.m4: Use proper quoting so brackets appear in the test
82872         program.
82873         Reported by, and with help from, Bruno Haible.
82874
82875 2001-05-13  Jim Meyering  <meyering@lucent.com>
82876
82877         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
82878         undefined.
82879
82880 2001-05-11  Paul Eggert  <eggert@twinsun.com>
82881
82882         dirname code cleanup.  base_name now behaves more compatibly
82883         with POSIX basename when given file names that have trailing
82884         slashes, and similarly for dir_name.  Add new primitives
82885         base_len and dir_len.  Put the directory-name-related decls
82886         into dirname.h.
82887
82888         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
82889         * lib/backupfile.c (base_name): Likewise.
82890         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
82891         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
82892         * lib/makepath.c (strip_trailing_slashes): Likewise.
82893         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
82894         ISSLASH): Likewise.
82895         * lib/rename.c (strip_trailing_slashes): Likewise.
82896         * lib/same.c (base_name): Likewise.
82897         * lib/stripslash.c (ISSLASH): Likewise.
82898
82899         * lib/addext.c: Include <dirname.h> after size_t is defined.
82900         * lib/backupfile.c: Likewise.
82901
82902         * lib/addext.c (addext): Use base_len to trim redundant
82903         trailing slashes instead of doing it ourselves.
82904         But do not trim the last slash if it is not redundant.
82905
82906         * lib/backupfile.c (find_backup_file_name,
82907         max_backup_version): Use base_len instead of rolling it ourselves.
82908         Handle the case of "" and (on DOS) "C:" correctly.
82909
82910         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
82911         needed. Include <string.h>, <dirname.h>.
82912         (base_name): Allow file names ending in slashes, other than names
82913         that are all slashes.  In this case, return the basename followed
82914         by the slashes.  This is more general, and can be used in places
82915         where the original base_name purposely had an assertion failure.
82916         (base_len): New function.
82917
82918         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
82919         Do not include <assert.h>; no longer needed.
82920         Include xalloc.h.
82921         (memrchr): Remove decl.
82922         (dir_name_r): Remove.
82923         (dir_len): Renamed from dirlen.  All callers changed.
82924         Rewrite in terms of base_name, for simplicity and consistency.
82925         (dir_name): Never return NULL.  All callers changed.
82926         Do not include <stdlib.h> in test program; no longer needed.
82927         return 0; is fine for test program.
82928
82929         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
82930         New macros.
82931         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
82932
82933         * lib/path-concat.c (path_concat): Use base_len to compute
82934         base length, not strlen; this means we cannot rely on memcpy
82935         to null-terminate.
82936
82937         * lib/same.c (STREQ): Remove.
82938         (same_name): Handle the case where the basename ends in trailing '/'.
82939
82940         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
82941         a slash was stripped.  Do not strip the last slash after a
82942         file system prefix.
82943
82944 2001-05-11  Paul Eggert  <eggert@twinsun.com>
82945
82946         * lib/Makefile.am (libfetish_a_SOURCES):
82947         Add strftime.c, since we now compile it on all hosts.
82948
82949         * lib/strftime.c (my_strftime):
82950         Define to nstrftime if emacs, but only if my_strftime is not defined.
82951         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
82952         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
82953         Add one more extra argument: a nanoseconds value.
82954         All uses changed.
82955         (ns): New macro.
82956         (my_strftime function): Add %N format.
82957         (emacs_strftimeu): Renamed from emacs_strftime,
82958         with extra ut argument.
82959
82960 2001-05-09  Paul Eggert  <eggert@twinsun.com>
82961
82962         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
82963
82964 2001-04-21  Jim Meyering  <meyering@lucent.com>
82965
82966         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
82967         doesn't interfere.
82968
82969 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
82970
82971         * m4/ftruncate.m4: Check for chsize.
82972         Link with ftruncate.o unconditionally if ftruncate is missing.
82973         This was required when cross-compiling to i586-mingw32msvc.
82974
82975 2001-04-08  Jim Meyering  <meyering@lucent.com>
82976
82977         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
82978         recomputed; that's necessary when the offset spans a DST transition.
82979         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
82980
82981 2001-04-02  Jim Meyering  <meyering@lucent.com>
82982
82983         * lib/regex.h, regex.c: Update from GNU libc.
82984
82985 2001-03-24  Jim Meyering  <meyering@lucent.com>
82986
82987         * m4/jm-macros.m4: Require autoconf-2.49d.
82988
82989 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
82990
82991         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
82992
82993 2001-03-19  Paul Eggert  <eggert@twinsun.com>
82994
82995         * lib/version-etc.c (version_etc_copyright): Update to 2001.
82996
82997 2001-03-17  Jim Meyering  <meyering@lucent.com>
82998
82999         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
83000         now that the version in autoconf is equivalent.
83001         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
83002
83003         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
83004         Suggestion from Akim Demaille.
83005
83006         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
83007         (jm_PREREQ_TEMPNAME): New function.
83008
83009 2001-03-16  Paul Eggert  <eggert@twinsun.com>
83010
83011         * lib/tempname.c (uint64_t): Define to uintmax_t if
83012         not defined, and if UINT64_MAX is not defined.
83013         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
83014         Reported by John David Anglin.
83015
83016 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
83017
83018         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
83019         resolve alias if codeset is empty.
83020         * lib/config.charset (BeOS): Use wildcard syntax.
83021
83022 2001-03-13  Jim Meyering  <meyering@lucent.com>
83023
83024         * lib/path-concat.c (path_concat)
83025         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
83026         concatenating e.g., `C:' and `foo'.
83027         From Bruno Haible.
83028
83029 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
83030
83031         * lib/localcharset.c (locale_charset): Don't use
83032         setlocale(LC_CTYPE,NULL). Don't return NULL.
83033         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
83034
83035 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
83036
83037         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
83038         support for DOS/DJGPP.
83039
83040 2001-03-01  Paul Eggert  <eggert@twinsun.com>
83041
83042         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
83043         lacks mkstemp.  Compile our own tempname.c if we compile our own
83044         mkstemp.c, as mkstemp relies on tempname.
83045
83046 2001-03-01  Jim Meyering  <meyering@lucent.com>
83047
83048         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
83049         AH_VERBATIM really does output its argument verbatim.
83050
83051 2001-02-28  Paul Eggert  <eggert@twinsun.com>
83052
83053         * lib/Makefile.am (libfetish_a_SOURCES):
83054         Add dup-safer.c, fopen-safer.c.
83055         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
83056
83057         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
83058         * lib/unistd-safer.h: New files.
83059
83060 2001-02-25  Paul Eggert  <eggert@twinsun.com>
83061
83062         The mkstemp replacement is taken from glibc 2.2.2, with some
83063         portability fixes for use outside glibc, as follows:
83064
83065         * lib/tempname.c (struct_stat64): New macro.
83066         (direxists, __gen_tempname): Use it.
83067         This avoids a portability problem with Solaris 8.
83068
83069         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
83070         (<stddef.h>, <stdint.h>, <string.h>):
83071         Include only if STDC_HEADERS || _LIBC.
83072         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
83073         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
83074         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
83075         (__set_errno): Define this macro if <errno.h> doesn't.
83076         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
83077         Define these macros if <stdio.h> doesn't.
83078         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
83079         Define these macros if <sys/stat.h>
83080         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
83081         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
83082         __xstat64): Define if not _LIBC.
83083         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
83084         (__gen_tempname): Invoke gettimeofday only if
83085         HAVE_GETTIMEOFDAY || _LIBC;
83086         otherwise, fall back on plain "time".
83087         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
83088
83089         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
83090
83091         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
83092
83093 2001-02-18  Paul Eggert  <eggert@twinsun.com>
83094
83095         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
83096
83097 2001-02-17  Paul Eggert  <eggert@twinsun.com>
83098
83099         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
83100         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
83101         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
83102         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
83103
83104 2001-02-17  Paul Eggert  <eggert@twinsun.com>
83105
83106         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
83107         Remove workaround macros for hosts that have mbrtowc but not
83108         mbstate_t, as we now insist on proper declarations for both
83109         before using mbrtowc.
83110
83111 2001-02-17  Jim Meyering  <meyering@lucent.com>
83112
83113         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
83114         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
83115         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
83116         UnixWare 7.1.1.
83117
83118         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
83119         rather than AC_CACHE_VAL.
83120
83121 2001-02-17  Jim Meyering  <meyering@lucent.com>
83122
83123         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
83124         around included file name.
83125
83126         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
83127
83128         * lib/strftime.c: Update from GNU libc (the only changes were to
83129         comments).
83130
83131 2001-02-17  Jim Meyering  <meyering@lucent.com>
83132
83133         * lib/regex.c: Update from libc.
83134
83135 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
83136
83137         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
83138         clash.
83139
83140 2001-02-16  Paul Eggert  <eggert@twinsun.com>
83141
83142         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
83143         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
83144         Reported by Mark Hounschell via Paul Eggert.
83145
83146 2001-02-07  Jim Meyering  <meyering@lucent.com>
83147
83148         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
83149
83150 2001-02-05  Jim Meyering  <meyering@lucent.com>
83151
83152         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
83153         it includes the patch required for `large file' support with at least
83154         HP-UX's 10.20 /bin/cc.
83155
83156 2001-02-03  Jim Meyering  <meyering@lucent.com>
83157
83158         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
83159         AS_IF, now that it works once again (mysteriously).
83160         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
83161
83162 2001-01-30  Jim Meyering  <meyering@lucent.com>
83163
83164         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
83165         * m4/chown.m4: Rename conftestchown to conftest.chown.
83166         * m4/rename.m4: s/conftestdir/conftest.d1/ and
83167         s/conftestdir2/conftest.d2/.
83168         * m4/utimes.m4: s/conftestdata/conftest.data/
83169         Inspired by Pavel Roskin's change in autoconf.
83170
83171 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
83172
83173         * lib/config.charset: Update for FreeBSD 4.2.
83174
83175 2001-01-27  Jim Meyering  <meyering@lucent.com>
83176
83177         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
83178         a use of AS_IF.
83179         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
83180
83181 2001-01-26  Jim Meyering  <meyering@lucent.com>
83182
83183         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
83184         quotearg.c includes it.
83185
83186 2001-01-26  Jim Meyering  <meyering@lucent.com>
83187
83188         * lib/quotearg.c: Include stddef.h.
83189         * lib/quote.c: Include stddef.h.
83190         Reported by Axel Kittenberger.
83191
83192         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
83193         line in double quotes so that it evokes a better diagnostic.
83194         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
83195         Reported by Axel Kittenberger.
83196
83197 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
83198
83199         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
83200         as if it was a `charset'.
83201
83202 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
83203
83204         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
83205         has const.
83206
83207 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
83208
83209         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
83210         to avoid a warning.  Add back 'const' to inptr.
83211
83212 2001-01-20  Jim Meyering  <meyering@lucent.com>
83213
83214         Be sure that headers are checked before used in code compiled
83215         for the type checks.
83216         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
83217         In place of that, invoke jm_CHECK_ALL_TYPES.
83218         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
83219         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
83220         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
83221         The check for ssize_t was mistakenly run before the test for unistd.h.
83222
83223         The configure-time check for stdbool.h was missing.
83224         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
83225         (jm_PREREQ_HASH): New function.
83226
83227 2001-01-17  Jim Meyering  <meyering@lucent.com>
83228
83229         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
83230         for autoconf-2.49c.
83231         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
83232
83233 2001-01-16  Jim Meyering  <meyering@lucent.com>
83234
83235         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
83236         From Bruno Haible.
83237
83238 2001-01-14  Jim Meyering  <meyering@lucent.com>
83239
83240         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
83241         foo and bar.  Create conftestdir/ in the script, not in the C code.
83242         Remove directories in the script, not in the C code.
83243         Remove conftestdir{,2} before trying to create the directory.
83244         Make the entire configure script fail if the mkdir fails.
83245
83246 2001-01-14  Jim Meyering  <meyering@lucent.com>
83247
83248         * lib/rename.c: New file.  From Volker Borchert.
83249         Include stdlib.h, string.h or strings.h, and xalloc.h.
83250         Use strip_trailing_slashes rather than open-coding it.
83251
83252 2001-01-03  Paul Eggert  <eggert@twinsun.com>
83253
83254         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
83255
83256 2001-01-03  Jim Meyering  <meyering@lucent.com>
83257
83258         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
83259         of local `inptr' to avoid warning with some system declarations of
83260         iconv.
83261
83262 2001-01-02  Volker Borchert  <bt@teknon.de>
83263
83264         * m4/rename.m4: New file.
83265         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
83266
83267 2001-01-01  Jim Meyering  <meyering@lucent.com>
83268
83269         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
83270         even on systems with utmpx.h.  It's necessary for the declaration of
83271         utmp's ut_user member.  Reported by Andreas Jaeger.
83272
83273         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
83274         available. They are required for the declarations of getgrgid and
83275         getpwuid resp.
83276         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
83277         Reported by Andreas Jaeger.
83278
83279 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
83280
83281         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
83282         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
83283         so `make install' also works in VPATH builds.
83284
83285 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
83286
83287         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
83288         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
83289         can be used in subdirectories.
83290
83291 2000-12-29  Paul Eggert  <eggert@twinsun.com>
83292
83293         * lib/modechange.c: Do not assume that mode_t uses the
83294         traditional octal encoding.  E.g. "chmod 1 FOO" should set
83295         the other-execute bit of FOO even if S_IXOTH != 1.
83296
83297         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
83298         WOTH, XOTH, ALLM): New macros.
83299         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
83300          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
83301         Use them.
83302         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
83303         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
83304         (mode_compile):
83305         No need to use uintmax_t; unsigned long is long enough.
83306         Don't bother to get suffix since we don't use it.
83307
83308 2000-12-26  Jim Meyering  <meyering@lucent.com>
83309
83310         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
83311         better with autoheader.
83312
83313 2000-12-24  Jim Meyering  <meyering@lucent.com>
83314
83315         * lib/hash.c (is_prime): Return explicit boolean values.
83316         (hash_get_first): Return NULL to appease Irix5.6's 89.
83317         Reported by Nelson Beebe.
83318
83319 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
83320
83321         * lib/localcharset.c (locale_charset): Add support for Win32.
83322
83323 2000-12-18  Paul Eggert  <eggert@twinsun.com>
83324
83325         * lib/physmem.h, lib/physmem.c: New files.
83326
83327         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
83328         (noinst_HEADERS): Add physmem.h.
83329
83330         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
83331         't' for compatibility with Solaris 8 sort.
83332
83333 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
83334
83335         * lib/config.charset: Add support for BeOS.
83336
83337 2000-12-17  Jim Meyering  <meyering@lucent.com>
83338
83339         * m4/dos.m4 (jm_AC_DOS): New file and macro.
83340         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
83341
83342 2000-12-16  Jim Meyering  <meyering@lucent.com>
83343
83344         This bug had a serious impact on chown: `chown N:M FILE' (for integer
83345         N and M) would have treated it like `chown N:N FILE'.
83346
83347         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
83348
83349 2000-12-16  Jim Meyering  <meyering@lucent.com>
83350
83351         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
83352         SHELLS_FILE to a file name that's useful on djgpp systems.
83353         Include stdlib.h.
83354         (ADDITIONAL_DEFAULT_SHELLS): Define.
83355         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
83356         Based mostly on a patch from Prashant TR.
83357
83358 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
83359
83360         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
83361         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
83362         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
83363
83364 2000-12-08  Andreas Schwab  <schwab@suse.de>
83365
83366         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
83367         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
83368
83369 2000-12-07  Jim Meyering  <meyering@lucent.com>
83370
83371         * lib/stripslash.c (ISSLASH): Define.
83372         (strip_trailing_slashes): Use ISSLASH rather than comparing against
83373         `/'.
83374         From Prashant TR.
83375
83376         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
83377         (dir_name_r): Declare this function as static.
83378         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
83379         manifest itself on a name containing a mix of slashes and
83380         backslashes.
83381         Make this function work with names starting with a DOS-style
83382         drive letter and colon prefix.
83383         (dir_name): Append `.' if necessary.
83384         Based mostly on patches from Prashant TR and Eli Zaretskii.
83385
83386         * lib/dirname.h (dir_name_r): Remove prototype.
83387
83388 2000-12-06  Paul Eggert  <eggert@twinsun.com>
83389
83390         * m4/off_t-format.m4: Remove this file.
83391         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
83392
83393 2000-12-06  Jim Meyering  <meyering@lucent.com>
83394
83395         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
83396         replacement strtoull, we may well need the replacement strtoul, too.
83397         Check for declarations of strtoul and strtoull.
83398         Check for strtol.  Mainly as a cue to cause automake to include
83399         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
83400         Check for limits.h -- strtol.c needs it.
83401
83402 2000-12-05  Jim Meyering  <meyering@lucent.com>
83403
83404         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
83405
83406 2000-12-04  Jim Meyering  <meyering@lucent.com>
83407
83408         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
83409         Also include memory.h, stdlib.h, unistd.h if appropriate.
83410         Reported by Andreas Jaeger (conflicting declaration of malloc).
83411
83412 2000-12-02  Jim Meyering  <meyering@lucent.com>
83413
83414         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
83415         * m4/jm-macros.m4 (jm_MACROS): require it.
83416
83417 2000-12-02  Jim Meyering  <meyering@lucent.com>
83418
83419         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
83420
83421 2000-12-01  Paul Eggert  <eggert@twinsun.com>
83422
83423         * lib/memrchr.c: Include <config.h> before any system include file.
83424
83425 2000-11-30  Jim Meyering  <meyering@lucent.com>
83426
83427         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
83428
83429 2000-11-30  Jim Meyering  <meyering@lucent.com>
83430
83431         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
83432
83433 2000-11-29  Paul Eggert  <eggert@twinsun.com>
83434
83435         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
83436
83437 2000-11-26  Jim Meyering  <meyering@lucent.com>
83438
83439         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
83440
83441 2000-11-22  Paul Eggert  <eggert@twinsun.com>
83442
83443         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
83444         size of (size_t) -1; it's not portable.
83445
83446 2000-11-17  Jim Meyering  <meyering@lucent.com>
83447
83448         * lib/strstr.c: Update from GNU libc.
83449
83450 2000-11-17  Akim Demaille  <akim@epita.fr>
83451
83452         * lib/obstack.h: Formatting changes.
83453         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
83454         prevent type checking.
83455         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
83456         cast the value to (void *): assigning a `foo *' to a `void *'
83457         variable is valid.
83458         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
83459
83460 2000-11-16  Jim Meyering  <meyering@lucent.com>
83461
83462         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
83463
83464 2000-11-11  Jim Meyering  <meyering@lucent.com>
83465
83466         * lib/error.c: Add a couple #includes, merging from GNU libc version.
83467
83468 2000-11-10  Jim Meyering  <meyering@lucent.com>
83469
83470         * lib/obstack.h: Update from GNU libc.
83471         * lib/obstack.c: Likewise.
83472
83473 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
83474
83475         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
83476
83477 2000-11-06  Paul Eggert  <eggert@twinsun.com>
83478
83479         * lib/getusershell.c (setusershell): Use rewind rather than
83480         fseek/fseeko, to avoid configuration hassles with fseeko.
83481         Don't bother opening SHELLS_FILE if shellstream is NULL;
83482         it's not necessary.
83483
83484 2000-11-05  Jim Meyering  <meyering@lucent.com>
83485
83486         * lib/makepath.h (make_dir): Declare.
83487         * lib/makepath.c (make_dir): Remove `static' attribute.
83488         Tweak a comment.
83489
83490 2000-11-04  Jim Meyering  <meyering@lucent.com>
83491
83492         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
83493
83494 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
83495
83496         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
83497         last one in a bucket, advance to the next bucket.
83498
83499 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
83500
83501         * lib/fnmatch.c: Do not comment out all the code if we are using
83502         the GNU C library, because in some cases we are replacing buggy
83503         code in the GNU C library itself.
83504
83505 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
83506
83507         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
83508         (regex_compile): Catch bogus \(\1\).
83509
83510 2000-10-30  Paul Eggert  <eggert@twinsun.com>
83511
83512         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
83513         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
83514         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
83515
83516 2000-10-30  Paul Eggert  <eggert@twinsun.com>
83517
83518         * lib/error.h, getline.h, modechange.h:
83519         Remove "2000" from Copyright line, as the file hasn't been
83520         changed this year other than in the copyright notice.
83521
83522         * lib/xalloc.h: Add "2000" to Copyright line, as this file
83523         was changed this year.
83524
83525 2000-10-29  Jim Meyering  <meyering@lucent.com>
83526
83527         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
83528         renaming.
83529         * m4/ls-mntd-fs.m4: Likewise
83530
83531 2000-10-29  Jim Meyering  <meyering@lucent.com>
83532
83533         * lib/xstat.in: Fix grammar in comment.
83534
83535 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
83536
83537         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
83538         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
83539         doesn't define __restrict_arr.
83540
83541 2000-10-28  Jim Meyering  <meyering@lucent.com>
83542
83543         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
83544         (jm_PREREQ_MEMCHR): New function.
83545
83546 2000-10-28  Jim Meyering  <meyering@lucent.com>
83547
83548         * lib/memchr.c: Update from libc.
83549         Adjust for portability:
83550         [HAVE_STDLIB_H]: Include stdlib.h.
83551         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
83552         Undef __memchr, too.
83553         [!weak_alias]: Define __memchr to memchr.
83554
83555         * lib/regex.c: Update from libc.
83556         * lib/regex.h: Likewise.
83557         * lib/getopt1.c: Likewise.
83558         * lib/memcmp.c: Likewise.
83559
83560         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
83561         Avoid using fseek, when possible -- it's broken by design.
83562         Patch by Ulrich Drepper.
83563
83564 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
83565
83566         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
83567         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
83568         Giving in to popular pressure to shut up the compiler with casts.
83569
83570 2000-10-26  Jim Meyering  <meyering@lucent.com>
83571
83572         * lib/strftime.c: Update from libc.
83573
83574 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
83575
83576         * regex.c: More `unsigned char' -> `re_char' changes.
83577         Also change several `int' into `re_wchar_t'.
83578         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
83579         (PUSH_FAILURE_POINTER): Don't cast any more.
83580         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
83581         We want GCC to complain, since this piece of code makes
83582         re_match non-reentrant, which *should* be fixed.
83583         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
83584         (EXTEND_BUFFER): Use RETALLOC.
83585         (SET_LIST_BIT): Don't cast.
83586         (re_wchar_t): New type.
83587         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
83588         that those two functions will always properly return.
83589         (IMMEDIATE_QUIT_CHECK): Cast to void.
83590         (analyse_first): Use recursion rather than an explicit stack.
83591         (re_compile_fastmap): Can't fail anymore.
83592         (re_search_2): Don't check re_compile_fastmap for failure.
83593         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
83594         Now also sets the new value (passed in a new argument).
83595         (re_match_2_internal): Use it.
83596         Also, use a new var `reg' of type size_t when looping through regs
83597         rather than reuse the inappropriate `mcnt'.
83598
83599 2000-10-25  Jim Meyering  <meyering@lucent.com>
83600
83601         * lib/obstack.c: Update from libc.
83602
83603 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
83604
83605         * regex.c (regex_compile): Change the way of handling a range from
83606         a char less than 256 to a char not less than 256.
83607
83608 2000-10-24  Andrew Innes  <andrewi@gnu.org>
83609
83610         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
83611         NT-Emacs only.
83612         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
83613         so that re_search functions only quit when callers expect them to.
83614
83615 2000-10-23  Jim Meyering  <meyering@lucent.com>
83616
83617         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
83618         wrong.  That set_locale call must not have any side effects.
83619         From Paul Eggert.
83620
83621 2000-10-22  Jim Meyering  <meyering@lucent.com>
83622
83623         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
83624         [CYCLIC]: Remove now-unused definition.
83625
83626         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
83627         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
83628         Suggestion from Ulrich Drepper.
83629
83630 2000-10-21  Jim Meyering  <meyering@lucent.com>
83631
83632         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
83633         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
83634         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
83635
83636 2000-10-21  Jim Meyering  <meyering@lucent.com>
83637
83638         * lib/dirname.c (memrchr): Declare if necessary.
83639         (dir_name): Remove the restriction that there be no
83640         trailing slashes.  Now, this code skips past them, effectively
83641         ignoring them.
83642         [TEST_DIRNAME] (main): New unit tests.
83643
83644         * lib/memrchr.c: New file from GNU libc.
83645         Undef __memrchr, too.
83646         [!weak_alias]: Define __memrchr to memrchr.
83647         Guard weak_alias use with `#ifdef weak_alias'.
83648
83649 2000-10-21  Jim Meyering  <meyering@lucent.com>
83650
83651         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
83652         (dir_name): Use dir_name_r.
83653         * lib/dirname.h (dir_name_r): Declare it.
83654
83655 2000-10-17  Jim Meyering  <meyering@lucent.com>
83656
83657         * lib/quote.h (PARAMS): Define and use.
83658         Reported by Akim Demaille.
83659
83660         * lib/getopt.c: Update from libc.
83661
83662 2000-10-16  Jim Meyering  <meyering@lucent.com>
83663
83664         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
83665         setlocale.
83666         From Jan Fedak.
83667
83668 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
83669
83670         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
83671
83672 2000-09-25  Jim Meyering  <meyering@lucent.com>
83673
83674         * lib/md5.h (rol): Define (from GnuPG).
83675
83676         * lib/sha.c: Give credit (GnuPG) where due.
83677         (M): Use rol rather than open-coding it.
83678         Add a FIXME comment.
83679
83680 2000-09-21  Jim Meyering  <meyering@lucent.com>
83681
83682         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
83683         Reported by Michael Stone.
83684
83685 2000-09-20  Jim Meyering  <meyering@lucent.com>
83686
83687         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
83688         (noinst_HEADERS): Add sha.h.
83689         Based on code from Scott G. Miller and from GnuPG.
83690
83691 2000-09-18  Jim Meyering  <meyering@lucent.com>
83692
83693         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
83694         LIBS. Otherwise, everyone ends up linking with -lelf for some
83695         configurations.
83696         Reported by Mike Stone.
83697
83698 2000-09-15  Jim Meyering  <meyering@lucent.com>
83699
83700         * lib/regex.c: Update from libc.
83701
83702 2000-09-10  Jim Meyering  <meyering@lucent.com>
83703
83704         * lib/getopt.c (_getopt_internal): Update from glibc.
83705
83706 2000-09-09  Jim Meyering  <meyering@lucent.com>
83707
83708         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
83709         think it should be used as a general replacement for isascii.
83710         * lib/fnmatch.c: Likewise.
83711         * lib/mbswidth.c: Likewise
83712         * lib/regex.c: Likewise.
83713
83714         Don't use atoi.
83715         * lib/userspec.c: Include sys/param.h and limits.h.
83716         Include xstrtol.h.
83717         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
83718         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
83719         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
83720         UID, GID.  Check range.
83721
83722 2000-09-06  Jim Meyering  <meyering@lucent.com>
83723
83724         * lib/getopt.c (_getopt_internal): Update from glibc.
83725
83726 2000-08-30  Jim Meyering  <meyering@lucent.com>
83727
83728         * lib/strftime.c: Merge in changes from GNU libc.
83729
83730 2000-08-26  Jim Meyering  <meyering@lucent.com>
83731
83732         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
83733         * m4/fpending.m4: New file.
83734
83735 2000-08-26  Jim Meyering  <meyering@lucent.com>
83736
83737         * lib/closeout.c: Include "__fpending.h".
83738         (close_stdout_status): Return right away if there's nothing to flush.
83739
83740         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
83741         * lib/__fpending.c: New file.
83742         * lib/__fpending.h: New file.
83743
83744 2000-08-20  Jim Meyering  <meyering@lucent.com>
83745
83746         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
83747         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
83748         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
83749
83750 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
83751
83752         Improve fileutils installation on systems where running
83753         programs (like install) can't be unlinked.
83754         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
83755         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
83756
83757 2000-08-07  Paul Eggert  <eggert@twinsun.com>
83758
83759         Standardize on "memory exhausted" instead of "Memory exhausted"
83760         or "virtual memory exhausted".
83761         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
83762         "virtual memory exhausted".
83763         * lib/same.c (same_name): Invoke xalloc_die instead of printing
83764         our own message.
83765         * lib/userspec.c (parse_user_spec): Likewise.
83766         * lib/bumpalloc.h: comment fix
83767         * lib/same.c, userspec.c: Include xalloc.h.
83768
83769         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
83770         not char *const and pointing to a constant array.
83771         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
83772         (xrealloc): Comment fix.
83773
83774         * lib/userspec.c (parse_user_spec):
83775         Don't translate a message until just before returning,
83776         to avoid unnecessary translation.
83777
83778 2000-08-07  Jim Meyering  <meyering@lucent.com>
83779
83780         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
83781         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
83782         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
83783         getgroups.c, gethostname.c, getopt.h, group-member.c,
83784         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
83785         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
83786         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
83787         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
83788         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
83789         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
83790         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
83791         yesno.c: Back out Copyright date changes for each file with no change
83792         this year.  This eases coordination with other programs using the same
83793         source code modules.  From Paul Eggert.
83794
83795 2000-08-06  Paul Eggert  <eggert@twinsun.com>
83796
83797         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
83798         not char, for compatibility with glibc 2.1.3 strftime.c.
83799
83800 2000-08-03  Greg McGary  <greg@mcgary.org>
83801
83802         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
83803         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
83804         (EXTEND_BUFFER): Use them.
83805
83806 2000-08-01  Jim Meyering  <meyering@lucent.com>
83807
83808         * lib/dirname.c (ISSLASH): Define.
83809         (BACKSLASH_IS_PATH_SEPARATOR): Define.
83810         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
83811         both `\' and `/' may be use as path separators.
83812         Based on a patch from Prashant TR.
83813
83814 2000-07-31  Paul Eggert  <eggert@twinsun.com>
83815
83816         * lib/quotearg.c (quotearg_n_options): Don't make the initial
83817         slot vector a constant, since it might get modified.
83818
83819 2000-07-31  Jim Meyering  <meyering@lucent.com>
83820
83821         * lib/xmalloc.c: Use `virtual memory exhausted', not
83822         `Memory exhausted'.
83823         * lib/obstack.c (print_and_abort): Likewise.
83824
83825 2000-07-30  Paul Eggert  <eggert@twinsun.com>
83826
83827         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
83828         buffer, so that the caller can always quote one small
83829         component of a "memory exhausted" message in slot 0.
83830         From a suggestion by Jim Meyering.
83831
83832 2000-07-30  Jim Meyering  <meyering@lucent.com>
83833
83834         * lib/makepath.c (make_path): Quote the other instance, too.
83835
83836         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
83837         (STATIC_BUF_SIZE): Define.
83838         (quotearg_n_options): Use only statically allocated storage when
83839         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
83840         than STATIC_BUF_SIZE.
83841
83842 2000-07-29  Jim Meyering  <meyering@lucent.com>
83843
83844         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
83845         * lib/dirname.c (dir_name): Likewise.
83846
83847         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
83848         `/'.
83849
83850         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
83851         (dir_name): Assert that there are no trailing slashes.
83852
83853 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
83854
83855         * lib/mbswidth.h (mbswidth): Add a flags argument.
83856         (mbswidth): New declaration.
83857         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
83858         * lib/mbswidth.c (mbswidth): Add a flags argument.
83859         (mbsnwidth): New function.
83860
83861 2000-07-24  Jim Meyering  <meyering@lucent.com>
83862
83863         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
83864
83865 2000-07-23  Paul Eggert  <eggert@twinsun.com>
83866
83867         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
83868
83869 2000-07-23  Paul Eggert  <eggert@twinsun.com>
83870
83871         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
83872         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
83873         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
83874         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
83875         invoke multibyte primitives.
83876
83877 2000-07-23  Paul Eggert  <eggert@twinsun.com>
83878
83879         * lib/quotearg.c:
83880         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
83881         so that mbstate_t is always defined.
83882
83883         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
83884         be 1 in at least one GCC installation, and this configuration
83885         error is likely to be common.  Ignoring MB_LEN_MAX hurts
83886         performance on hosts that have mbrtowc but have only unibyte
83887         locales, but I assume these hosts are rare.
83888
83889 2000-07-23  Paul Eggert  <eggert@twinsun.com>
83890
83891         * lib/mbswidth.c (_XOPEN_SOURCE):
83892         Don't define; this causes problems on Solaris 7.
83893         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
83894
83895 2000-07-23  Jim Meyering  <meyering@lucent.com>
83896
83897         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
83898         too: getgrgid, getpwuid, getuid.
83899
83900 2000-07-23  Jim Meyering  <meyering@lucent.com>
83901
83902         * lib/basename.c (base_name): Add an assertion.
83903
83904 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
83905
83906         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
83907         shadow its mbsinit function.
83908
83909 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
83910
83911         * lib/mbswidth.h: New file.
83912         * lib/mbswidth.c: New file.
83913         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
83914         (noinst_HEADERS): Add mbswidth.h.
83915
83916 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
83917
83918         * lib/config.charset: Add support for FreeBSD. Improve support for
83919         HP-UX and IRIX 6.
83920
83921 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
83922
83923         * m4/mbswidth.m4: New file.
83924         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
83925
83926 2000-07-15  Jim Meyering  <meyering@lucent.com>
83927
83928         * lib/makepath.c: Include quote.h.
83929         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
83930         corresponding argument in a `quote (...)' call.
83931         Give better diagnostics.
83932
83933         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
83934         (noinst_HEADERS): Add quote.h.
83935
83936         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
83937         from tar's src/misc.c.
83938         * lib/quote.h: New file.  Prototypes for same.
83939
83940 2000-07-14  Paul Eggert  <eggert@twinsun.com>
83941
83942         From a suggestion by Bruno Haible.
83943         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
83944         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
83945         to decide whether to define the BeOS workaround macro;
83946         this adjusts to the change to AC_MBSTATE_T.
83947
83948 2000-07-14  Jim Meyering  <meyering@lucent.com>
83949
83950         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
83951         jm_AC_TYPE_UINTMAX_T.
83952
83953 2000-07-13  Paul Eggert  <eggert@twinsun.com>
83954
83955         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
83956
83957         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
83958         quotearg_buffer_restyled): Add support for
83959         clocale_quoting_style.  Undo previous change to
83960         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
83961         and "{RIGHT QUOTATION MARK}" msgids.
83962
83963 2000-07-10  Paul Eggert  <eggert@twinsun.com>
83964
83965         From a suggestion by Bruno Haible.
83966         * m4/mbstate_t.m4 (AC_MBSTATE_T):
83967         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
83968         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
83969         and mbstate_t, to a single-part test that simply defines mbstate_t.
83970         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
83971         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
83972
83973 2000-07-10  Jim Meyering  <meyering@lucent.com>
83974
83975         * m4/strerror_r.m4: Mirror the correction made in autoconf.
83976
83977         * m4/gnu-source.m4: Output to confdefs.h directly.
83978         Suggestion from Akim Demaille.
83979
83980 2000-07-09  Paul Eggert  <eggert@twinsun.com>
83981
83982         The old behavior of quoting `like this' doesn't look good with
83983         newer, ISO-style fonts.  See:
83984         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
83985
83986         Instead, quote "like this" by default.  Let the translator
83987         tailor the locale-specific quoting behavior by providing
83988         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
83989
83990         * lib/quotearg.c (N_): New macro.
83991         (gettext_default): New function.
83992         (quotearg_buffer_restyled): Use
83993         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
83994         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
83995
83996 2000-07-09  Jim Meyering  <meyering@lucent.com>
83997
83998         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
83999         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
84000
84001         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
84002         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
84003
84004 2000-07-09  Jim Meyering  <meyering@lucent.com>
84005
84006         * lib/Most files: Update copyright dates to include 2000.
84007
84008 2000-07-08  Jim Meyering  <meyering@lucent.com>
84009
84010         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
84011         if not defined.
84012         (xgethostname): Remove now-unnecessary #ifdef.
84013         Move declaration of `err' into loop where it's used.
84014
84015 2000-07-05  Paul Eggert  <eggert@twinsun.com>
84016         and Bruno Haible  <haible@clisp.cons.org>
84017
84018         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
84019         only if the test for an object-type mbstate_t fails.  This
84020         prevents us from mistakenly reporting that mbstate_t is a
84021         system object type after we "#define mbstate_t int" to work
84022         around its lack.
84023
84024 2000-07-05  Paul Eggert  <eggert@twinsun.com>
84025         and Bruno Haible  <haible@clisp.cons.org>
84026
84027         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
84028
84029 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
84030
84031         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
84032         to strerror_r.
84033         Include <ctype.h> for use of isalpha.
84034
84035 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
84036
84037         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
84038         by allocating a larger buffer. Test the gethostname return value for
84039         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
84040         returns an error and ENAMETOOLONG isn't defined.
84041
84042 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
84043
84044         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
84045         dimension.
84046
84047 2000-07-04  Jim Meyering  <meyering@lucent.com>
84048
84049         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
84050         of the deprecated AC_CHECKING.
84051
84052 2000-07-04  Jim Meyering  <meyering@lucent.com>
84053
84054         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
84055         Reported by Bruno Haible.
84056
84057 2000-07-04  Jim Meyering  <meyering@lucent.com>
84058
84059         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
84060         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
84061         lacks mbrtowc.
84062
84063 2000-07-03  Paul Eggert  <eggert@twinsun.com>
84064
84065         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
84066         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
84067
84068 2000-07-03  Paul Eggert  <eggert@twinsun.com>
84069         and Bruno Haible  <haible@clisp.cons.org>
84070
84071         * lib/quotearg.c (mbrtowc):
84072         Assign to *pwc, and return 1 only if result is nonzero.
84073         (iswprint): Use ISPRINT when substituting our own mbrtowc.
84074
84075 2000-07-03  Jim Meyering  <meyering@lucent.com>
84076
84077         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
84078
84079 2000-07-03  Jim Meyering  <meyering@lucent.com>
84080
84081         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
84082         This is necessary to get a definition of e.g., UTMP_FILE on
84083         HP-UX 10.20.
84084         From Bob Proulx.
84085
84086 2000-07-02  Jim Meyering  <meyering@lucent.com>
84087
84088         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
84089
84090         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
84091         AC_LIBOBJ(function_name).
84092         * m4/chown.m4: Likewise.
84093         * m4/fnmatch.m4: Likewise.
84094         * m4/ftruncate.m4: Likewise.
84095         * m4/getgroups.m4: Likewise.
84096         * m4/getline.m4: Likewise.
84097         * m4/group-member.m4: Likewise.
84098         * m4/jm-macros.m4: Likewise.
84099         * m4/lstat.m4: Likewise.
84100         * m4/malloc.m4: Likewise.
84101         * m4/memcmp.m4: Likewise.
84102         * m4/nanosleep.m4: Likewise.
84103         * m4/putenv.m4: Likewise.
84104         * m4/realloc.m4: Likewise.
84105         * m4/regex.m4: Likewise.
84106         * m4/stat.m4: Likewise.
84107         * m4/strftime.m4: Likewise.
84108
84109 2000-07-02  Jim Meyering  <meyering@lucent.com>
84110
84111         * lib/quotearg.c (mbstate_t): Don't define here.
84112
84113 2000-07-02  Jim Meyering  <meyering@lucent.com>
84114
84115         * lib/nanosleep.c (SIGCONT): Define if not already defined.
84116
84117 2000-07-01  Jim Meyering  <meyering@lucent.com>
84118
84119         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
84120
84121 2000-07-01  Jim Meyering  <meyering@lucent.com>
84122
84123         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
84124         problem.
84125
84126 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
84127
84128         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
84129         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
84130
84131 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
84132
84133         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
84134         per change in ../m4/ls-mntd-fs.m4.
84135         (read_filesystem_list): Ignore symbolic links.
84136
84137 2000-06-29  Jim Meyering  <meyering@lucent.com>
84138
84139         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
84140         for declaration of strcmp.
84141
84142         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
84143
84144         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
84145         Avoid warning by casting result to `char *' to remove `const'.
84146
84147 2000-06-28  Jim Meyering  <meyering@lucent.com>
84148
84149         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
84150         included by quotearg.c, for which we perform this test.  From
84151         Bruno Haible.
84152
84153 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
84154
84155         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
84156         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
84157         <utmpx.h> exists, put readutmp.o into LIBOBJS.
84158
84159 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
84160
84161         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
84162
84163 2000-06-26  Paul Eggert  <eggert@twinsun.com>
84164
84165         savedir now sets errno on failure and invokes xmalloc to get memory.
84166         Fix a couple of other minor bugs while we're at it.
84167
84168         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
84169         (NAMLEN): Remove macro.
84170         (malloc, realloc): Remove decls.
84171         (stpcpy): Likewise.
84172         ("xalloc.h"): Include.
84173         (NAME_SIZE_DEFAULT): New macro.
84174         (savedir): Use xmalloc / xrealloc to allocate memory.
84175         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
84176         Skip "" directory entries.
84177         Use strlen to calculate directory entry length, since the old method
84178         is rarely used these days and isn't worth supporting.
84179         Don't use a pointer after freeing it.
84180         Check for integer overflow when calculating allocation size.
84181         Use memcpy to copy entries, instead of stpcpy.
84182         Set errno properly when returning NULL.
84183         Check for readdir error.
84184
84185 2000-06-26  Jim Meyering  <meyering@lucent.com>
84186
84187         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
84188
84189 2000-06-25  Jim Meyering  <meyering@lucent.com>
84190
84191         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
84192         Linux header bug when _XOPEN_SOURCE is defined to 500.
84193
84194 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
84195
84196         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
84197         deficiency.
84198
84199 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
84200
84201         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
84202         Include xalloc.h.
84203         Don't include <stdlib.h>.  Don't declare malloc, realloc.
84204
84205 2000-06-24  Jim Meyering  <meyering@lucent.com>
84206
84207         * m4/strerror_r.m4: Revive this file -- to try out an experimental
84208         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
84209         for which strerror does return char*, but which lacks a conveniently
84210         accessible declaration of the function.  If the compile-test says
84211         strerror_r doesn't work, then resort to a `run'-test that works on
84212         BeOS and segfaults on DEC Unix.
84213
84214 2000-06-24  Jim Meyering  <meyering@lucent.com>
84215
84216         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
84217
84218 2000-06-23  Paul Eggert  <eggert@twinsun.com>
84219
84220         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
84221         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
84222
84223 2000-06-23  Paul Eggert  <eggert@twinsun.com>
84224
84225         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
84226         (mbrtowc, mbstate_t): Define substitutes if
84227         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
84228         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
84229         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
84230
84231 2000-06-23  Jim Meyering  <meyering@lucent.com>
84232
84233         * m4/afs.m4: Add missing AC_MSG_RESULT.
84234         Reported by Bruno Haible.
84235
84236         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
84237         Suggestion from Bruno Haible.
84238
84239 2000-06-23  Jim Meyering  <meyering@lucent.com>
84240
84241         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
84242
84243 2000-06-21  Jim Meyering  <meyering@lucent.com>
84244
84245         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
84246
84247 2000-06-21  Jim Meyering  <meyering@lucent.com>
84248
84249         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
84250         (noinst_HEADERS): Add getstr.h.
84251
84252         * lib/getline.c (getstr): Move into a separate file.
84253         * lib/getstr.c (getstr): New file, extracted from getline.c, with
84254         the following changes: new parameter, delim2; both delim[12]
84255         parameters have type `int', not `char'.  The latter would lose
84256         with 8-bit delimiters.
84257         * lib/getstr.h: New file.
84258
84259 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
84260
84261         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
84262         than 1024, return a memory chunk of least possible size, instead
84263         of size PATH_MAX + 2. In the loop, increment the size proportionally.
84264         Use free/xmalloc instead of xrealloc to avoid copying for very long
84265         paths.
84266
84267 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
84268
84269         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
84270         the empty string.
84271
84272 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
84273
84274         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
84275         address, not strdup.  Include <stdlib.h> and don't declare free().
84276
84277 2000-06-19  Jim Meyering  <meyering@lucent.com>
84278
84279         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
84280
84281 2000-06-18  Jim Meyering  <meyering@lucent.com>
84282
84283         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
84284
84285         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
84286         `checking whether...' message to be consistent with that of the
84287         lstat test.
84288
84289 2000-06-18  Jim Meyering  <meyering@lucent.com>
84290
84291         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
84292         Besides, these days every porting target provides a mkdir function.
84293
84294         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
84295         needed. (this snippet comes from src/system.h).
84296
84297 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
84298
84299         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
84300
84301 2000-06-15  Paul Eggert  <eggert@twinsun.com>
84302
84303         * lib/human.c (adjust_value): New function.
84304         (human_readable_inexact): Apply rounding style even when
84305         printing approximate values.
84306
84307 2000-06-14  Paul Eggert  <eggert@twinsun.com>
84308
84309         * lib/human.c (human_readable_inexact): Allow an input block
84310         size that is not a multiple of the output block size, and vice versa.
84311         Reported by Piergiorgio Sartor.
84312
84313 2000-06-14  Paul Eggert  <eggert@twinsun.com>
84314
84315         * lib/getdate.y (get_date): Apply relative times after time
84316         zone indicator, not before.  Reported by Todd A. Jacobs.
84317
84318 2000-06-13  Jim Meyering  <meyering@lucent.com>
84319
84320         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
84321
84322         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
84323
84324 2000-06-12  Paul Eggert  <eggert@twinsun.com>
84325
84326         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
84327
84328 2000-06-12  Jim Meyering  <meyering@lucent.com>
84329
84330         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
84331         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
84332         optional argument.
84333         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
84334         the optional argument, `lib'.
84335
84336 2000-06-08  Jim Meyering  <meyering@lucent.com>
84337
84338         * m4/largefile.m4: Remove file (now that it's part of autoconf).
84339
84340 2000-06-04  Paul Eggert  <eggert@twinsun.com>
84341
84342         Rewrite largefile configuration so that we don't need to run
84343         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
84344         AC_CANONICAL_HOST in configure.in -- jmm]
84345
84346         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
84347         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
84348         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
84349         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
84350         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
84351         All uses changed.
84352         Instead of inspecting the output of getconf, try to compile the
84353         test program without and with the macro definition.
84354         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
84355         for getconf.  Instead, check for the needed flags by compiling
84356         test programs.
84357
84358 2000-06-04  Paul Eggert  <eggert@twinsun.com>
84359
84360         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
84361
84362 2000-06-04  Jim Meyering  <meyering@lucent.com>
84363
84364         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
84365         SunOS 4.1.4 for which gid_t is an unsigned type.
84366
84367 2000-06-03  Jim Meyering  <meyering@lucent.com>
84368
84369         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
84370         now that autoconf requires that.
84371
84372         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
84373         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
84374         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
84375
84376 2000-06-03  Jim Meyering  <meyering@lucent.com>
84377
84378         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
84379
84380 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
84381
84382         * m4/glibc21.m4: New file.
84383         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
84384
84385 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
84386
84387         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
84388         newer, don't install charset.alias.
84389         * lib/config.charset: Change the Linux/glibc rules so they become empty
84390         on glibc-2.1 or newer.
84391
84392 2000-06-02  Jim Meyering  <meyering@lucent.com>
84393
84394         * lib/mountlist.c: Back out last change.  Instead, do this...
84395         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
84396         me_dummy member using the same `ignore'-testing code.
84397         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
84398         fs_type strings.
84399         From Mark D. Roth.
84400
84401 2000-05-29  Jim Meyering  <meyering@lucent.com>
84402
84403         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
84404         mounts with the `ignore' attribute.  Based on a patch from
84405         Mark D. Roth.
84406
84407 2000-05-28  Jim Meyering  <meyering@lucent.com>
84408
84409         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
84410         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
84411         * m4/stat.m4: Likewise.
84412         * m4/lstat.m4: Likewise.
84413         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
84414
84415         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
84416         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
84417
84418 2000-05-26  Jim Meyering  <meyering@lucent.com>
84419
84420         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
84421
84422 2000-05-24  Jim Meyering  <meyering@lucent.com>
84423
84424         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
84425         autoconf requires that.
84426         * m4/lib-check.m4: Likewise.
84427         * m4/jm-macros.m4: Likewise.
84428         * m4/strftime.m4: Likewise.
84429
84430         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
84431         AC_CHECK_DECLS, now that autoconf requires that.
84432
84433 2000-05-22  Jim Meyering  <meyering@lucent.com>
84434
84435         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
84436         * m4/lstat.m4: Likewise.
84437
84438 2000-05-22  Jim Meyering  <meyering@lucent.com>
84439
84440         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
84441
84442 2000-05-20  Jim Meyering  <meyering@lucent.com>
84443
84444         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
84445         (jm_PREREQ): Use it.
84446
84447 2000-05-18  Jim Meyering  <meyering@lucent.com>
84448
84449         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
84450         back, too, since it may have been modified by allocate_entry.
84451         (hash_delete): Rewrite to use neither the assignment operator
84452         nor the comma operator in an if-expression.
84453
84454 2000-05-15  Paul Eggert  <eggert@twinsun.com>
84455
84456         * lib/closeout.c:
84457         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
84458         Remove; no longer needed.
84459         "quotearg.h": Add include.
84460         (file_name): Do not bother to explicitly initialize to NULL; it's less
84461         efficient on some hosts.
84462         (close_stdout_status): Remove test as to whether stdout was already
84463         closed; it breaks for the case "echo x | sort >&-".
84464         Quote file name colons.
84465         Do not assume that _("write error") lacks format strings.
84466
84467 2000-05-15  Jim Meyering  <meyering@lucent.com>
84468
84469         * lib/version-etc.c (version_etc_copyright): Update the copyright
84470         string used in all --version output.
84471
84472 2000-05-14  Jim Meyering  <meyering@lucent.com>
84473
84474         * lib/closeout.c (close_stdout_set_file_name): New function.
84475         (close_stdout_status): Use new file-scoped global.
84476         Return right away if fstat says the stdout file descriptor is invalid.
84477         * lib/closeout.h (close_stdout_set_file_name): Declare.
84478
84479 2000-05-10  Jim Meyering  <meyering@lucent.com>
84480
84481         * lib/closeout.c [default_exit_status]: New file-scoped variable.
84482         (close_stdout_set_status): New function.
84483         * lib/closeout.h (close_stdout_set_status): Declare.
84484
84485 2000-05-09  Jim Meyering  <meyering@lucent.com>
84486
84487         * m4/gettext.m4: Rename this...
84488         * m4/libintl.m4: ...to this.
84489
84490 2000-05-08  Jim Meyering  <meyering@lucent.com>
84491
84492         * lib/long-options.c: Don't include closeout.h.
84493         (parse_long_options): Don't call close_stdout for --version.
84494
84495 2000-05-06  Paul Eggert  <eggert@twinsun.com>
84496
84497         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
84498         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
84499         2.1.3 bug.  This avoids a clash when files like regex.c define
84500         _GNU_SOURCE.
84501
84502 2000-05-06  Jim Meyering  <meyering@lucent.com>
84503
84504         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
84505         (AC_REPLACE_FUNCS): Add strnlen.
84506
84507         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
84508         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
84509
84510         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
84511         AC_SEARCH_LIBS call for nanosleep.
84512         (LIB_NANOSLEEP): Set and AC_SUBST.
84513
84514 2000-05-06  Jim Meyering  <meyering@lucent.com>
84515
84516         * lib/strnlen.c: Undefine __strnlen and strnlen.
84517         [!weak_alias]: Define __strnlen to strnlen.
84518
84519         * lib/atexit.c: New file, from libiberty.
84520
84521 2000-05-06  Jim Meyering  <meyering@lucent.com>
84522
84523         * lib/closeout.c (close_stdout_status): Also check for errors on the
84524         stderr stream.
84525
84526 2000-05-05  Jim Meyering  <meyering@lucent.com>
84527
84528         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
84529         AC_SEARCH_LIBS call for clock_gettime.
84530         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
84531
84532         * m4/search-libs.m4: Update from autoconf.
84533
84534         su doesn't work on Solaris 2.6.
84535         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
84536         <shadow.h>.  Reported by Dragos Harabor.
84537
84538 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
84539
84540         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
84541         memcpy instead of xmalloc, xrealloc, path_concat.
84542         (locale_charset): Treat empty environment variables as absent.
84543         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
84544
84545 2000-05-04  Jim Meyering  <meyering@lucent.com>
84546
84547         * lib/getopt.c: Update from glibc.
84548         * lib/obstack.c: Likewise.
84549         * lib/obstack.h: Likewise.
84550         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
84551         file
84552
84553         * lib/regex.h: Likewise.
84554         * lib/strndup.c: Likewise.
84555         * lib/strnlen.c: New file, from glibc.
84556
84557 2000-05-03  Jim Meyering  <meyering@lucent.com>
84558
84559         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
84560
84561 2000-05-02  Paul Eggert  <eggert@twinsun.com>
84562
84563         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
84564         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
84565         compile-time test, rather than inspecting host and OS, to
84566         decide whether to define _LARGEFILE_SOURCE.
84567
84568 2000-05-01  Jim Meyering  <meyering@lucent.com>
84569
84570         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
84571
84572         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
84573         Based on a patch from Bruno Haible.
84574
84575 2000-05-01  Jim Meyering  <meyering@lucent.com>
84576
84577         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
84578
84579 2000-04-29  Jim Meyering  <meyering@lucent.com>
84580
84581         * lib/path-concat.c: Declare strdup only if it's not defined.
84582         * lib/canon-host.c: Likewise.
84583
84584 2000-04-28  Jim Meyering  <meyering@lucent.com>
84585
84586         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
84587         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
84588         is included first, then limits.h is included by locale.h by libintl.h.
84589         From John David Anglin.
84590
84591 2000-04-25  Jim Meyering  <meyering@lucent.com>
84592
84593         * lib/makepath.c (S_IRWXUGO): Define.
84594         (make_path): Always perform explicit chmod if MODE specifies any
84595         of the `special' permission bits.  Prompted by a bug report against
84596         install from Mate Wierdl and Joost van Baal.
84597
84598 2000-04-18  Jim Meyering  <meyering@lucent.com>
84599
84600         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
84601         (jm_PREREQ): Use it.
84602
84603 2000-04-18  Jim Meyering  <meyering@lucent.com>
84604
84605         * lib/README: New file.
84606
84607         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
84608         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
84609
84610 2000-04-17  Jim Meyering  <meyering@lucent.com>
84611
84612         Get it right :-)
84613         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
84614         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
84615         Suggestion from Akim Demaille.
84616
84617 2000-04-17  Jim Meyering  <meyering@lucent.com>
84618
84619         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
84620         the definition of it to rpl_strftime also defined-away the system's
84621         declaration.
84622
84623 2000-04-15  Jim Meyering  <meyering@lucent.com>
84624
84625         Use `C' to denote so-called `contiguous' files, the same way
84626         that tar does.
84627         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
84628         (ftypelet): Use S_ISCTG.
84629         From Michael Deutschmann.
84630
84631 2000-04-14  Jim Meyering  <meyering@lucent.com>
84632
84633         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
84634         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
84635         clobbered.
84636
84637 2000-04-14  Jim Meyering  <meyering@lucent.com>
84638
84639         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
84640
84641 2000-04-13  Jim Meyering  <meyering@lucent.com>
84642
84643         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
84644         AH_VERBATIM to insert required #ifndef into config.h.in.
84645         Suggestion from Akim Demaille.
84646
84647 2000-04-12  Jim Meyering  <meyering@lucent.com>
84648
84649         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
84650         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
84651         Christian Krackowizer.
84652
84653         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
84654         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
84655         (AC_SYS_LARGEFILE): Require.
84656         (AM_C_PROTOTYPES): Require.
84657
84658 2000-04-08  Jim Meyering  <meyering@lucent.com>
84659
84660         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
84661         names don't conflict.  Reported by Eli Zaretskii.
84662
84663 2000-04-07  Jim Meyering  <meyering@lucent.com>
84664
84665         * lib/putenv.c: Move inclusion of errno.h so it follows that of
84666         sys/types.h, to work around system header problems on AIX 3.2.5.
84667         From Bruno Haible.
84668
84669 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
84670
84671         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
84672         bug.  Deal with the different error behavior of Irix iconv.
84673
84674 2000-04-05  Paul Eggert  <eggert@twinsun.com>
84675
84676         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
84677         IRIX if the installer said otherwise.
84678
84679 2000-04-05  Jim Meyering  <meyering@lucent.com>
84680
84681         Portability tweaks required for ultrix4.3.
84682         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
84683         (jm_CHECK_DECLS): Add getutent to the list of functions.
84684         (_jm_DECL_HEADERS): Add utmpx.h.
84685         From John David Anglin.
84686
84687         * m4/strftime.m4: Back out the 2000-04-02 change.
84688         Instead of that change, simply undefine putenv in the test program.
84689
84690 2000-04-05  Jim Meyering  <meyering@lucent.com>
84691
84692         Portability tweaks required for ultrix4.3.
84693         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
84694         getutent.
84695         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
84696         * lib/canon-host.c: Declare strdup.
84697         * lib/path-concat.c: Likewise.
84698         From John David Anglin.
84699
84700 2000-04-04  Jim Meyering  <meyering@lucent.com>
84701
84702         Be more DOS 8.3-friendly.
84703         * lib/ref-add.sin: Renamed from ref-add.sed.in.
84704         * lib/ref-del.sin: Renamed from ref-del.sed.in.
84705         * lib/Makefile.am: Reflect renaming.
84706         Reported by Eli Zaretskii.
84707
84708         Use a temporary file name that won't clash with `charset.alias'
84709         in the DOS 8.3 name space.
84710         * lib/Makefile.am (charset_tmp): Define.
84711         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
84712         (uninstall-local): Likewise.
84713         Reported by Eli Zaretskii.
84714
84715 2000-04-03  Jim Meyering  <meyering@lucent.com>
84716
84717         * m4/gettext.m4: Fix typo in comment.
84718
84719         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
84720         textutils/configure.in).  Suggestion from Paul Eggert.
84721         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
84722
84723 2000-04-02  Paul Eggert  <eggert@twinsun.com>
84724
84725         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
84726         variable in the shell rather than using putenv, which isn't
84727         portable.  This avoids the configure-time inter-test dependency
84728         on the potentially-renamed putenv function.
84729
84730 2000-03-30  Paul Eggert  <eggert@twinsun.com>
84731
84732         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
84733         before checking struct stat.st_blksize, so that
84734         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
84735
84736 2000-03-29  Paul Eggert  <eggert@twinsun.com>
84737
84738         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
84739         since strftime.c uses HAVE_STRFTIME to decide whether to use
84740         the underlying strftime.
84741
84742 2000-03-29  Paul Eggert  <eggert@twinsun.com>
84743
84744         * lib/time/strftime.c (my_strftime): Make sure we call the system
84745         strftime, not ourselves, when invoking the underlying strftime.
84746
84747 2000-03-24  Jim Meyering  <meyering@lucent.com>
84748
84749         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
84750         (charset_alias): Define.
84751         (install-exec-local): Factor out common code.
84752         (uninstall-local): Split lines longer than 80.
84753         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
84754         (SUFFIXES): Define.
84755         (.sed.in.sed): New rule.  Don't redirect directly to $@.
84756         (CLEANFILES): Add ref-add.sed and ref-del.sed.
84757
84758 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
84759
84760         * lib/config.charset: Output a line containing "Packages using this
84761         file".
84762         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
84763         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
84764         ref-del.sed): New rules.
84765
84766 2000-03-17  Jim Meyering  <meyering@lucent.com>
84767
84768         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
84769         Otherwise, include <strings.h>
84770
84771 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
84772
84773         * lib/unicodeio.c (utf8_wctomb): New function.
84774         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
84775         format instead of in UCS-4 with platform dependent endianness.
84776
84777 2000-03-10  Jim Meyering  <meyering@lucent.com>
84778
84779         * m4/lib-check.m4: Look for getspnam in -lgen, too.
84780         From Marco Franzen.
84781
84782 2000-03-07  Paul Eggert  <eggert@twinsun.com>
84783
84784         * lib/savedir.c (savedir): Work even if directory size is
84785         negative; this can happen with some screwy NFS configurations.
84786
84787 2000-03-06  Jim Meyering  <meyering@lucent.com>
84788
84789         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
84790         if it's NULL (because we ran out of memory).  From Bruno Haible.
84791
84792 2000-03-05  Jim Meyering  <meyering@lucent.com>
84793
84794         * lib/localcharset.c ("path-concat.h"): Include.
84795         (get_charset_aliases): Use path_concat instead of ANSI string
84796         concatenation.
84797
84798         * lib/unicodeio.h (PARAMS): Define.
84799         Use it to guard prototype.
84800
84801 2000-03-04  Jim Meyering  <meyering@lucent.com>
84802
84803         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
84804         for lib/localcharset.c.
84805
84806 2000-03-04  Jim Meyering  <meyering@lucent.com>
84807
84808         * lib/Makefile.am (install-exec-local): Create $(libdir) before
84809         installing into it.
84810         (uninstall-local): Uncomment this rule so `make distcheck' works
84811         once again.
84812
84813         * lib/unicodeio.c (<errno.h>): Include it.
84814         (errno): Declare if not defined.
84815
84816         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
84817
84818         * lib/config.charset: New version, incorporating remarks from a linux
84819         i18n mailing list.  From Bruno Haible.
84820
84821 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
84822
84823         * m4/codeset.m4: New file.
84824         * m4/iconv.m4: New file.
84825         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
84826
84827 2000-03-03  Jim Meyering  <meyering@lucent.com>
84828
84829         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
84830
84831 2000-03-02  Jim Meyering  <meyering@lucent.com>
84832
84833         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
84834         the messages come out on separate lines.
84835
84836         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
84837         rather than jm_CHECK_DECLARATIONS.
84838         * m4/decl.m4: Remove now-unused file.
84839
84840         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
84841         geteuid.
84842
84843 2000-03-02  Jim Meyering  <meyering@lucent.com>
84844
84845         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
84846
84847 2000-03-01  Jim Meyering  <meyering@lucent.com>
84848
84849         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
84850         * lib/unicodeio.c: Likewise.
84851
84852 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
84853
84854         * lib/config.charset: New file.
84855         * lib/localcharset.c: New file.
84856         * lib/unicodeio.h, lib/unicodeio.c: New files.
84857         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
84858         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
84859         (noinst_HEADERS): Add unicodeio.h.
84860         (all-local, install-exec-local, charset.alias): New targets.
84861
84862 2000-02-28  Paul Eggert  <eggert@twinsun.com>
84863
84864         * lib/quotearg.c (ALERT_CHAR): New macro.
84865         (quotearg_buffer_restyled): Use it.
84866
84867 2000-02-27  Jim Meyering  <meyering@lucent.com>
84868
84869         * m4/check-decl.m4: Add getenv to the list.
84870
84871 2000-02-27  Jim Meyering  <meyering@lucent.com>
84872
84873         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
84874         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
84875
84876         * lib/backupfile.c: Guard inclusion of stdlib.h with
84877         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
84878         Declare malloc if needed.
84879
84880         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
84881         `#ifndef HAVE_DECL..'
84882         now that autoconf always defines the HAVE_DECL_ symbols.
84883         * lib/human.c: Likewise.
84884         * lib/same.c: Likewise.
84885         * lib/strtoumax.c: Likewise.
84886
84887         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
84888         declaration check was not run.
84889         * lib/hash.c: Likewise.
84890         * lib/human.c: Likewise.
84891         * lib/same.c: Likewise.
84892         * lib/strtoumax.c: Likewise.
84893
84894         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
84895         `.', then first look up the entire `.'-containing string as a login
84896         name.
84897
84898 2000-02-23  Jim Meyering  <meyering@lucent.com>
84899
84900         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
84901         in place of my hack.
84902
84903 2000-02-18  Paul Eggert  <eggert@twinsun.com>
84904
84905         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
84906         (textint): New typedef.
84907         (parser_control): Member year changed from int to textint.
84908         All uses changed.
84909         (YYSTYPE): Removed; replaced by %union with int and textint members.
84910         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
84911         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
84912         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
84913         (tSNUMBER, tUNUMBER): Now of type <textintval>.
84914         (date, number, to_year): Use width of number in digits, not its value,
84915         to determine whether it's a 2-digit year, or a 2-digit time.
84916         (yylex): Store number of digits of numeric tokens.
84917         Reported by John Kendall.
84918
84919         (parser_control): Changed from struct parser_control to typedef (for
84920         consistency).  All uses changed.
84921
84922         (tID): Removed; not used.
84923         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
84924
84925 2000-02-14  Paul Eggert  <eggert@twinsun.com>
84926
84927         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
84928         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
84929
84930 2000-02-12  Jim Meyering  <meyering@lucent.com>
84931
84932         * lib/userspec.c (ISDIGIT): Define it.
84933         (isdigit): Remove definition.
84934         (is_number): Use ISDIGIT, not isdigit.
84935         <libintl.h>: Include.
84936         (_ and N_): Define.
84937         (parse_user_spec): Mark translatable strings.
84938
84939 2000-02-10  Jim Meyering  <meyering@lucent.com>
84940
84941         With these changes, nanosleep.[ch] are finally enough like the other
84942         lib/* replacement files to compile on a few more losing systems.
84943
84944         * lib/nanosleep.h: Don't include config.h.
84945         Remove prototype from declaration of nanosleep.
84946         (PARAMS): Remove now-unneeded definition.
84947         * lib/nanosleep.c: #undef nanosleep.
84948         (rpl_nanosleep): Rename from nanosleep.
84949
84950 2000-02-10  Jim Meyering  <meyering@lucent.com>
84951
84952         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
84953         gnu_nanosleep to rpl_nanosleep.
84954
84955 2000-02-09  Jim Meyering  <meyering@lucent.com>
84956
84957         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
84958         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
84959
84960 2000-02-08  Akim Demaille  <akim@epita.fr>
84961
84962         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
84963         `[' and `]' and remove uses of `changequote'.
84964         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
84965         (AC_SYS_LARGEFILE): Likewise.
84966         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
84967         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
84968         of changequote.
84969         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
84970         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
84971         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
84972         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
84973
84974 2000-02-05  Jim Meyering  <meyering@lucent.com>
84975
84976         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
84977         Remove explicit use of AC_HEADER_TIME.  It is required by
84978         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
84979         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
84980         in autoconf whereby the expansion of the latter ended up preceding
84981         the expansion of its prerequisite, AC_HEADER_TIME.
84982         Reported by Volker Borchert.
84983
84984 2000-02-03  Jim Meyering  <meyering@lucent.com>
84985
84986         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
84987
84988 2000-02-03  Jim Meyering  <meyering@lucent.com>
84989
84990         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
84991         rather than with `#if HAVE_UTMPNAME'.
84992
84993 2000-02-02  Jim Meyering  <meyering@lucent.com>
84994
84995         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
84996         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
84997         Reported by Eli Zaretskii.
84998
84999 2000-02-01  Jim Meyering  <meyering@lucent.com>
85000
85001         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
85002
85003 2000-01-31  Jim Meyering  <meyering@lucent.com>
85004
85005         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
85006         functions.  Add the time.h and sys/time.h headers along with the
85007         AC_REQUIRE'ment of AC_HEADER_TIME.
85008
85009 2000-01-31  Jim Meyering  <meyering@lucent.com>
85010
85011         * lib/nanosleep.h (nanosleep): Guard declaration with
85012         `#if ! HAVE_DECL_NANOSLEEP'.
85013         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
85014         the declaration in that vendor's sys/timers.h.
85015         Reported by Christian Krackowizer.
85016
85017         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
85018         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
85019         (ISPRINT): Likewise.
85020         Reported by Tom Tromey.
85021
85022 2000-01-30  Jim Meyering  <meyering@lucent.com>
85023
85024         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
85025
85026         * m4/prereq.m4 (utmp_includes): Define.
85027         Check for ut_user and ut_name members in both struct utmpx
85028         and struct utmp.
85029
85030 2000-01-30  Jim Meyering  <meyering@lucent.com>
85031
85032         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
85033         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
85034         header files where only utmpx.ut_user is declared.
85035
85036         * lib/readutmp.h (UT_USER): Define.
85037
85038 2000-01-29  Jim Meyering  <meyering@lucent.com>
85039
85040         * m4/lib-check.m4: New file containing library-related checks from
85041         fileutils and sh-utils (textutils had none).
85042
85043 2000-01-28  Jim Meyering  <meyering@lucent.com>
85044
85045         * m4/perl.m4: Change format of warning message to look more like that
85046         from the missing script.  Suggestion from François Pinard.
85047
85048 2000-01-25  Jim Meyering  <meyering@lucent.com>
85049
85050         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
85051         well as time.h in the compile check.
85052         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
85053         Fix typo in cross-compiling case: s/yes/no/.
85054
85055 2000-01-23  Jim Meyering  <meyering@lucent.com>
85056
85057         * m4/jm-macros.m4: Move df-related tests here from
85058         fileutils/configure.in
85059
85060         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
85061         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
85062
85063         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
85064         s/space/ac_fsusage_space/.
85065         (jm_FILE_SYSTEM_USAGE): Take two parameters.
85066
85067         * m4/ftruncate.m4: New file (derived from part of
85068         fileutils/configure.in).
85069         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
85070         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
85071
85072         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
85073         AC_SUBST these here, rather than just in sh-util/configure.in, so
85074         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
85075         all the same.
85076         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
85077         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
85078         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
85079         (AC_SUBST(POW_LIBM)): Likewise.
85080         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
85081
85082 2000-01-23  Jim Meyering  <meyering@lucent.com>
85083
85084         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
85085         obstack.c.
85086
85087 2000-01-22  Jim Meyering  <meyering@lucent.com>
85088
85089         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
85090
85091         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
85092
85093         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
85094         configure.in
85095         (AC_CHECK_HEADERS): Likewise for sh-utils.
85096         (AC_CHECK_HEADERS): Likewise for textutils.
85097         Merge the three lists of headers.
85098
85099         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
85100         from fileutils' configure.in.
85101
85102         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
85103         code. Moved tests into their own function (_jm_DECL_HEADERS) in
85104         check-decl.m4.
85105
85106         * m4/check-decl.m4: Use #if rather than #ifdef.
85107         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
85108         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
85109         (_jm_DECL_HEADERS): Define new function.
85110         (jm_CHECK_DECLARATIONS): Require it.
85111
85112 2000-01-22  Jim Meyering  <meyering@lucent.com>
85113
85114         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
85115         [! HAVE_DECL_STRTOULL]: Declare strtoull.
85116         Required for some AIX systems.  Reported by Christian Krackowizer.
85117         [TESTING] (main): New function.
85118
85119         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
85120         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
85121         letters.
85122
85123         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
85124         iswprint.
85125
85126         * lib/strverscmp.c (ISDIGIT): Define.
85127         (strverscmp): Use ISDIGIT, not isdigit.
85128
85129 2000-01-19  Jim Meyering  <meyering@lucent.com>
85130
85131         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
85132         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
85133         defines `struct timespec' in <sys/time.h>
85134
85135         * m4/c-bs-a.m4: Remove uses of changequote altogether.
85136         Thanks to Akim for explaining.
85137
85138 2000-01-17  Paul Eggert  <eggert@twinsun.com>
85139
85140         * lib/nanosleep.c (nanosleep):
85141         Don't use SA_INTERRUPT to decide whether to call sigaction, as
85142         POSIX.1 doesn't require SA_INTERRUPT and some systems
85143         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
85144         it's been part of POSIX.1 since day 1 (in 1988).
85145
85146 2000-01-17  Jim Meyering  <meyering@lucent.com>
85147
85148         * lib/interlock: Remove unused file.  Reported by François Pinard.
85149
85150 2000-01-16  Paul Eggert  <eggert@twinsun.com>
85151
85152         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
85153         alert, backslash, formfeed, and vertical tab unnecessarily in
85154         shell quoting style.
85155
85156 2000-01-16  Jim Meyering  <meyering@lucent.com>
85157
85158         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
85159         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
85160         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
85161         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
85162
85163 2000-01-16  Jim Meyering  <meyering@lucent.com>
85164
85165         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
85166         because the latter didn't work.
85167
85168 2000-01-15  Jim Meyering  <meyering@lucent.com>
85169
85170         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
85171         (AC_REPLACE_FUNCS): Add memcpy and memset.
85172         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
85173         Add strpbrk.
85174         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
85175
85176 2000-01-12  Jim Meyering  <meyering@lucent.com>
85177
85178         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
85179         (jm_PREREQ): Use it.
85180         (jm_PREREQ_READUTMP): New macro.
85181         (jm_PREREQ): Use it.
85182
85183 2000-01-11  Paul Eggert  <eggert@twinsun.com>
85184
85185         Quote multibyte characters correctly.
85186         * m4/c-bs-a.m4: New file.
85187         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
85188         (jm_PREREQ): Use it.
85189
85190 2000-01-11  Paul Eggert  <eggert@twinsun.com>
85191
85192         * m4/uintmax_t.m4: Port to autoconf 2.13.
85193
85194 2000-01-08  Jim Meyering  <meyering@ascend.com>
85195
85196         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
85197         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
85198
85199 2000-01-04  Jim Meyering  <meyering@ascend.com>
85200
85201         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
85202         jm_STRUCT_DIRENT_D_TYPE.
85203         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
85204         jm_STRUCT_DIRENT_D_INO.
85205         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
85206         jm_STRUCT_UTIMBUF.
85207         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
85208         renamings.
85209         * m4/utime.m4: Likewise.
85210
85211         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
85212         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
85213
85214 2000-01-03  Paul Eggert  <eggert@twinsun.com>
85215
85216         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
85217         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
85218
85219 2000-01-02  Jim Meyering  <meyering@ascend.com>
85220
85221         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
85222         remember if this is necessary.
85223
85224 1999-12-26  Jim Meyering  <meyering@ascend.com>
85225
85226         * m4/jm-macros.m4: Use it here.
85227         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
85228
85229 1999-12-23  Jim Meyering  <meyering@ascend.com>
85230
85231         * m4/jm-macros.m4: Check for clock_gettime (moved from
85232         fileutils/configure.in)
85233         Check for gettimeofday.
85234
85235 1999-12-20  Jim Meyering  <meyering@ascend.com>
85236
85237         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
85238         autoconf-2.14a-1999-12-20.
85239
85240 1999-12-19  Jim Meyering  <meyering@ascend.com>
85241
85242         * m4/lstat-slash.m4: New file.
85243         * m4/jm-macros.m4: Use the new macro:
85244         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
85245
85246 1999-12-07  Jim Meyering  <meyering@ascend.com>
85247
85248         * m4/perl.m4: Require that File::Compare be available, too.
85249         Too many systems seem to lack it.
85250
85251         * m4/strftime.m4: Add checks for most of the cpp macros tested in
85252         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
85253
85254 1999-11-18  Paul Eggert  <eggert@twinsun.com>
85255
85256         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
85257         problem with the QNX 4.25 shell, which doesn't propagate exit
85258         status of failed commands inside shell assignments.
85259
85260 1999-11-17  Jim Meyering  <meyering@ascend.com>
85261
85262         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
85263
85264 1999-11-07  Jim Meyering  <meyering@ascend.com>
85265
85266         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
85267
85268 1999-11-06  Jim Meyering  <meyering@ascend.com>
85269
85270         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
85271         * m4/jm-macros.m4 (jm_MACROS): Use it here.
85272
85273 1999-11-05  Jim Meyering  <meyering@ascend.com>
85274
85275         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
85276         configure.in of textutils, fileutils, and sh-utils into this one
85277         (shared between those packages) file.
85278         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
85279         AC_STRUCT_ST_BLKSIZE.
85280
85281 1999-11-03  Jim Meyering  <meyering@ascend.com>
85282
85283         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
85284         of AC_CHECK_TYPE checks includes unistd.h.
85285         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
85286         Suggestion from Akim Demaille.
85287
85288 1999-10-30  Jim Meyering  <meyering@ascend.com>
85289
85290         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
85291         m4-quoted string.
85292         * m4/ls-mntd-fs.m4: Likewise.
85293         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
85294         * m4/jm-winsz1.m4: Likewise.
85295
85296         * m4/const.m4: Remove file, since the fix made it into the experimental
85297         version of autoconf.
85298         * m4/mktime.m4: Likewise.
85299
85300         * m4/check-type.m4: Remove file, now that the latest version of
85301         AC_CHECK_TYPE takes a third arg to specify additional #includes.
85302
85303         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
85304         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
85305         AC_CHECK_TYPE.
85306
85307 1999-10-04  Jim Meyering  <meyering@ascend.com>
85308
85309         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
85310
85311 1999-09-22  Paul Eggert  <eggert@twinsun.com>
85312
85313         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
85314         2.95.1 bug with HP-UX 10.20.
85315
85316 1999-09-17  Jim Meyering  <meyering@ascend.com>
85317
85318         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
85319         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
85320         due to missing strdup (against sh-utils-2.0).
85321
85322 1999-08-29  Jim Meyering  <meyering@ascend.com>
85323
85324         * m4/jm-macros.m4: Require jm_BISON.
85325         * m4/bison.m4: New file.
85326
85327 1999-08-17  Paul Eggert  <eggert@twinsun.com>
85328
85329         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
85330         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
85331
85332 1999-08-05  Jim Meyering  <meyering@ascend.com>
85333
85334         * m4/getline.m4: Rename test file from conftestdata to conftest.data
85335         to avoid conflicts with `conftest' on 8+3 filesystems.
85336         Suggestion from Eli Zaretskii.
85337
85338 1999-08-04  Jim Meyering  <meyering@ascend.com>
85339
85340         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
85341         fileutils and sh-utils (textutils's getline test was inadequate).
85342         (AM_FUNC_GETLINE): Run this test.
85343         (AC_CHECK_FUNCS): Check for getdelim.
85344         Reported by Bob Proulx.
85345
85346 1999-08-02  Jim Meyering  <meyering@ascend.com>
85347
85348         * m4/jm-macros.m4: Add a comment.
85349
85350 1999-08-01  Paul Eggert  <eggert@twinsun.com>
85351
85352         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
85353         <inttypes.h> defines strtoumax as a macro (and not as a
85354         function).
85355
85356 1999-08-01  Paul Eggert  <eggert@twinsun.com>
85357
85358         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
85359         that we can shift, multiply and divide unsigned long long
85360         values; Ultrix cc can't do it.
85361
85362 1999-08-01  Paul Eggert  <eggert@twinsun.com>
85363
85364         * m4/mktime.m4: New file, which is a preview of what should appear
85365         in the next public autoconf release.
85366
85367 1999-08-01  Paul Eggert  <eggert@twinsun.com>
85368
85369         * m4/lfs.m4: Remove this file.
85370         * m4/largefile.m4: New file.  It contains the old contents of
85371         lfs.m4, except that all names with prefix AC_LFS have been
85372         changed to use the prefix AC_SYS_LARGEFILE instead, to be
85373         compatible with future autoconf versions.  Also, some minor m4
85374         quoting problems have been fixed.
85375
85376 1999-08-01  Paul Eggert  <eggert@twinsun.com>
85377
85378         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
85379         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
85380         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
85381         and simplify the shell code.
85382
85383 1999-08-01  Jim Meyering  <meyering@ascend.com>
85384
85385         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
85386         m4.
85387
85388 1999-07-20  Jim Meyering  <meyering@ascend.com>
85389
85390         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
85391
85392 1999-07-15  Jim Meyering  <meyering@ascend.com>
85393
85394         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
85395
85396 1999-05-22  Jim Meyering  <meyering@ascend.com>
85397
85398         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
85399
85400 1999-05-20  Jim Meyering  <meyering@ascend.com>
85401
85402         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
85403         Add a colon after each `then' in case $4 is empty.
85404
85405 1999-05-16  Jim Meyering  <meyering@ascend.com>
85406
85407         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
85408
85409 1999-05-10  Jim Meyering  <meyering@ascend.com>
85410
85411         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
85412
85413         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
85414         AC_FUNC_MKTIME.
85415
85416 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
85417
85418         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
85419
85420 1999-05-04  Paul Eggert  <eggert@twinsun.com>
85421
85422         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
85423         not CPPFLAGS, so that linking works correctly in IRIX.
85424
85425 1999-04-30  Paul Eggert  <eggert@twinsun.com>
85426
85427         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
85428
85429 1999-04-20  Paul Eggert  <eggert@twinsun.com>
85430
85431         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
85432         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
85433         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
85434         jm_AC_TYPE_UNSIGNED_LONG_LONG.
85435         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
85436
85437         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
85438
85439 1999-04-20  Jim Meyering  <meyering@ascend.com>
85440
85441         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
85442         AC_REPLACE xstroull if necessary.  From Paul Eggert.
85443         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
85444
85445 1999-04-18  Jim Meyering  <meyering@ascend.com>
85446
85447         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
85448         * m4/jm-macros.m4: Use it.
85449
85450 1999-04-06  Jim Meyering  <meyering@ascend.com>
85451
85452         * m4/strftime.m4: Remove test for %f.
85453
85454 1999-03-29  Jim Meyering  <meyering@ascend.com>
85455
85456         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
85457         superset of the AC_TYPE_* checks in the textutils, fileutils,
85458         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
85459         AC_TYPE_PID_T.
85460
85461 1999-03-28  Jim Meyering  <meyering@ascend.com>
85462
85463         * m4/jm-macros.m4: Define GNU_PACKAGE here.
85464         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
85465         replaced e.g., in the *.sh files of the sh-utils.
85466
85467 1999-03-20  Jim Meyering  <meyering@ascend.com>
85468
85469         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
85470         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
85471         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
85472
85473 1999-03-19  Jim Meyering  <meyering@ascend.com>
85474
85475         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
85476
85477 1999-03-12  Jim Meyering  <meyering@ascend.com>
85478
85479         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
85480
85481 1999-03-07  Jim Meyering  <meyering@ascend.com>
85482
85483         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
85484         declared.
85485
85486 1999-02-17  Jim Meyering  <meyering@ascend.com>
85487
85488         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
85489         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
85490
85491 1999-02-07  Jim Meyering  <meyering@ascend.com>
85492
85493         * m4/group-member.m4: New file -- extracted from sh-utils'
85494         configure.in.
85495
85496         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
85497         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
85498
85499 1999-02-06  Jim Meyering  <meyering@ascend.com>
85500
85501         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
85502         * m4/fnmatch.m4: Likewise.
85503         * m4/getgroups.m4: Likewise.
85504         * m4/lstat.m4: Likewise.
85505         * m4/malloc.m4: Likewise.
85506         * m4/putenv.m4: Likewise.
85507         * m4/realloc.m4: Likewise.
85508         * m4/regex.m4: Likewise.
85509         * m4/stat.m4: Likewise.
85510         * m4/strftime.m4: Likewise.
85511         Suggestion from Alain Magloire.
85512
85513         * m4/chown.m4: Use `.$ac_objext', not `.o'.
85514         * m4/fnmatch.m4: Likewise.
85515         * m4/getgroups.m4: Likewise.
85516         * m4/getline.m4: Likewise.
85517         * m4/lstat.m4: Likewise.
85518         * m4/malloc.m4: Likewise.
85519         * m4/memcmp.m4: Likewise.
85520         * m4/putenv.m4: Likewise.
85521         * m4/realloc.m4: Likewise.
85522         * m4/regex.m4: Likewise.
85523         * m4/stat.m4: Likewise.
85524         * m4/strftime.m4: Likewise.
85525         Suggestion from Alain Magloire.
85526
85527         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
85528         an argument.
85529
85530         * m4/regex.m4: Add a run-time Test for proper operation of
85531         re_compile_pattern.
85532
85533 1999-01-31  Jim Meyering  <meyering@ascend.com>
85534
85535         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
85536
85537 1999-01-30  Jim Meyering  <meyering@ascend.com>
85538
85539         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
85540
85541         * m4/jm-mktime.m4: Make this a wrapper around the official
85542         AM_FUNC_MKTIME rather than my private copy, now that the official one
85543         is up to date.
85544         * m4/mktime.m4: Remove file.
85545
85546         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
85547         * m4/uptime.m4: Likewise.
85548         * m4/uintmax_t.m4: Likewise.
85549
85550 1999-01-28  Jim Meyering  <meyering@ascend.com>
85551
85552         * m4/jm-macros.m4: Use jm_AFS.
85553         * m4/afs.m4: New file (from fileutils' configure.in).
85554
85555         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
85556         * m4/chown.m4: Likewise.
85557         * m4/d-ino.m4: Likewise.
85558         * m4/d-type.m4: Likewise.
85559         * m4/fnmatch.m4: Likewise.
85560         * m4/getgroups.m4: Likewise.
85561         * m4/gettext.m4: Likewise.
85562         * m4/jm-mktime.m4: Likewise.
85563         * m4/jm-winsz2.m4: Likewise.
85564         * m4/lcmessage.m4: Likewise.
85565         * m4/ls-mntd-fs.m4: Likewise.
85566         * m4/malloc.m4: Likewise.
85567         * m4/memcmp.m4: Likewise.
85568         * m4/putenv.m4: Likewise.
85569         * m4/realloc.m4: Likewise.
85570         * m4/st_mtim.m4: Likewise.
85571         * m4/strftime.m4: Likewise.
85572
85573 1999-01-16  Jim Meyering  <meyering@ascend.com>
85574
85575         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
85576         (ARGMATCH_DIE_DECL): Define.
85577
85578 1999-01-12  Jim Meyering  <meyering@ascend.com>
85579
85580         * m4/Makefile.am.in: Rewrite to avoid using fmt.
85581         Reported by Lars Hecking.
85582
85583 1999-01-10  Jim Meyering  <meyering@ascend.com>
85584
85585         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
85586         gross kludge.
85587         * m4/inttypes_h.m4: Likewise.
85588         * m4/lstat.m4: Likewise.
85589         * m4/malloc.m4: Likewise.
85590         * m4/readdir.m4: Likewise.
85591         * m4/realloc.m4: Likewise.
85592         * m4/st_dm_mode.m4: Likewise.
85593         * m4/stat.m4: Likewise.
85594         * m4/utimbuf.m4: Likewise.
85595         * m4/utimes.m4: Likewise.
85596
85597         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
85598         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
85599         comments in config.h.in are meaningful.
85600
85601         * m4/jm-macros.m4: Require autoconf-2.13 here.
85602
85603         * m4/regex.m4: By default, don't use the included regex.c on systems
85604         with glibc 2.  Suggestion from Uli Drepper.
85605
85606 1999-01-02  Jim Meyering  <meyering@ascend.com>
85607
85608         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
85609
85610 1998-12-18  Jim Meyering  <meyering@ascend.com>
85611
85612         * m4/Makefile.am.in (Makefile.am): Simplify rule.
85613         Based on a suggestion from Lars Hecking.
85614
85615 1998-11-16  Paul Eggert  <eggert@twinsun.com>
85616
85617         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
85618
85619 1998-11-16  Jim Meyering  <meyering@ascend.com>
85620
85621         * m4/lfs.m4: Double-quote the `uname...` expression.
85622
85623 1998-11-14  Jim Meyering  <meyering@ascend.com>
85624
85625         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
85626         * m4/stat.m4: Likewise.
85627
85628 1998-11-03  Jim Meyering  <meyering@ascend.com>
85629
85630         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
85631         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
85632
85633 1998-10-18  Jim Meyering  <meyering@ascend.com>
85634
85635         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
85636
85637 1998-10-17  Jim Meyering  <meyering@ascend.com>
85638
85639         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
85640         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
85641         calls for those previously hard-coded headers.  Instead, take a new
85642         parameter.
85643         (jm_CHECK_DECLARATIONS): Reflect interface change.
85644         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
85645         (jm_CHECK_DECL_LOCALTIME_R): New macro.
85646
85647         * m4/mktime.m4: Test for spring-forward gap before long-running test.
85648
85649 1998-10-14  Jim Meyering  <meyering@ascend.com>
85650
85651         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
85652         instead of "TZ=America/Vancouver".  From Paul Eggert.
85653
85654 1998-10-11  Jim Meyering  <meyering@ascend.com>
85655
85656         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
85657         This adds a test for a recently added compatibility fix for mktime.c.
85658         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
85659
85660 1998-09-27  Jim Meyering  <meyering@ascend.com>
85661
85662         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
85663
85664         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
85665         ../configure.in, including a change from Gordon Matzigkeit to allow
85666         cross-compiling for the Hurd.
85667
85668         * m4/glibc.m4: New file/macro to test for the GNU C Library
85669         versions 1 and 2.  From Gordon Matzigkeit.
85670         Indent.
85671
85672 1998-09-21  Jim Meyering  <meyering@ascend.com>
85673
85674         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
85675
85676 1998-08-18  Paul Eggert  <eggert@twinsun.com>
85677
85678         Port nanosecond-resolution times to UnixWare 2.1.2 and
85679         pedantic Solaris 2.6.
85680
85681         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
85682         AC_STRUCT_ST_MTIM.
85683         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
85684         Generate name of ns member, instead of just 1 or undef.
85685         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
85686
85687 1998-08-15  Jim Meyering  <meyering@ascend.com>
85688
85689         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
85690         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
85691         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
85692         instead of jm_TYPE_SSIZE_T.
85693
85694 1998-08-12  Jim Meyering  <meyering@ascend.com>
85695
85696         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
85697
85698 1998-08-02  Jim Meyering  <meyering@ascend.com>
85699
85700         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
85701         in acconfig.h manually.
85702
85703 1998-07-31  Paul Eggert  <eggert@twinsun.com>
85704
85705         * m4/st_mtim.m4: New file.
85706
85707 1998-07-28  Jim Meyering  <meyering@ascend.com>
85708
85709         * m4/utimes.m4: Undef stat.
85710
85711 1998-07-25  Jim Meyering  <meyering@ascend.com>
85712
85713         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
85714         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
85715
85716 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
85717
85718         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
85719         uid and gid actually remain unchanged.
85720
85721 1998-07-07  Jim Meyering  <meyering@ascend.com>
85722
85723         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
85724
85725 1998-07-04  Jim Meyering  <meyering@ascend.com>
85726
85727         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
85728         to prove that this macro can be used in packages without regex.c.
85729
85730 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
85731
85732         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
85733         is to be used.
85734
85735 1998-07-03  Jim Meyering  <meyering@ascend.com>
85736
85737         * m4/gettext.m4: Add -lintl if it's found to be necessary.
85738
85739         * m4/gettext.m4: New file -- from gettext-0.10.35.
85740         * m4/lcmessage.m4: Likewise.
85741         * m4/progtest.m4: Likewise.
85742
85743         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
85744         * m4/jm-macros.m4: Require the new macro.
85745
85746 1998-06-29  Jim Meyering  <meyering@ascend.com>
85747
85748         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
85749         for the definition of NGROUPS (used in a system header included
85750         by sys/mount.h).
85751
85752 1998-06-28  Jim Meyering  <meyering@ascend.com>
85753
85754         * m4/ls-mntd-fs.m4: New file.
85755         * m4/fstypename.m4: New file.
85756
85757         * m4/jm-macros.m4: Require the new macro.
85758         * m4/jm-glibc-io.m4: New file.
85759
85760 1998-05-19  Jim Meyering  <meyering@ascend.com>
85761
85762         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
85763         * m4/lchown.m4: New file.
85764
85765         * m4/Makefile.am.in: New file.
85766         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
85767
85768 1998-05-14  Jim Meyering  <meyering@ascend.com>
85769
85770         * m4/Makefile.am (EXTRA_DIST): Add them.
85771         * m4/jm-macros.m4: New file.
85772         * m4/utimbuf.m4: New file.
85773
85774 1998-05-12  Jim Meyering  <meyering@ascend.com>
85775
85776         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
85777
85778 1998-05-11  Jim Meyering  <meyering@ascend.com>
85779
85780         * m4/isc-posix.m4: New file.
85781
85782 1998-05-10  Jim Meyering  <meyering@ascend.com>
85783
85784         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
85785
85786 1998-05-09  Jim Meyering  <meyering@ascend.com>
85787
85788         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
85789         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
85790         with automake.
85791
85792         * m4/ssize_t.m4: New file.
85793         * m4/mktime.m4: Remove file -- the new automake has this now.
85794
85795 1998-04-26  Jim Meyering  <meyering@ascend.com>
85796
85797         * m4/assert.m4: New file.
85798         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
85799
85800 1998-04-05  Jim Meyering  <meyering@ascend.com>
85801
85802         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
85803         (jm_PREREQ): Use it here.
85804
85805 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
85806
85807         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
85808         in acconfig.h.
85809
85810 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
85811
85812         * m4/prereq.m4: New file.
85813         * m4/error.m4: New file.
85814         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
85815
85816 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
85817
85818         * m4/getline.m4: Don't set am_cv_func_working_getline before the
85819         cache-check for the same variable -- that defeated the purpose of
85820         the test; the test program was never run.  This was a problem only
85821         on systems with losing getline functions -- HP-UX 10.20 is one.
85822         Reported by Bjorn Helgaas.
85823
85824 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
85825
85826         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
85827
85828 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
85829
85830         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
85831
85832         * m4/const.m4: New file.  Use an initializer in this declaration
85833         typedef int charset[2]; const charset x;
85834         Reported by Bob Glickstein.
85835
85836 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
85837
85838         * m4/chown.m4: Fix reversed types on -1 args to chown.
85839         From Kaveh Ghazi.
85840
85841 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
85842
85843         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
85844         Add lseek and memchr.
85845
85846         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
85847         T.E.Dickey <dickey@clark.net> said that some older preprocessors
85848         have a 20-character limit on names.
85849
85850 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
85851
85852         * m4/inttypes_h.m4: New file.
85853         * m4/uintmax_t.m4: New file.
85854         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
85855
85856
85857         -----
85858
85859         Local Variables:
85860         coding: utf-8
85861         End:
85862
85863         Copyright (C) 1997-2011 Free Software Foundation, Inc.
85864
85865         Copying and distribution of this file, with or without
85866         modification, are permitted provided the copyright notice
85867         and this notice are preserved.