578f4d756f6a28c12b4ac27c75c9c89118fe4934
[gnulib.git] / ChangeLog
1 2011-09-11  Bruno Haible  <bruno@clisp.org>
2
3         Tests for module 'sys_types'.
4         * modules/sys_types-tests: New file.
5         * tests/test-sys_types.c: New file.
6
7         New module 'sys_types'.
8         * lib/sys_types.in.h: New file.
9         * m4/sys_types_h.m4: New file.
10         * modules/sys_types: New file.
11         * doc/posix-headers/sys_types.texi: Mention the new module and the
12         size_t problem on MSVC 9.
13
14 2011-09-11  Bruno Haible  <bruno@clisp.org>
15
16         Support for MSVC compiler: Avoid division by a literal 0.
17         * lib/math.in.h (NAN): Define through a function call also on MSVC.
18         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
19         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
20         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
21         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
22         * tests/infinity.h: New file.
23         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
24         on MSVC.
25         * tests/test-ceilf1.c: Include infinity.h.
26         (main): Use Infinityf.
27         * tests/test-ceil1.c: Include infinity.h.
28         (main): Use Infinityd.
29         * tests/test-ceill.c: Include infinity.h.
30         (main): Use Infinityl.
31         * tests/test-dprintf-posix.c: Include infinity.h.
32         (test_function): Use Infinityd.
33         * tests/test-floorf1.c: Include infinity.h.
34         (main): Use Infinityf.
35         * tests/test-floor1.c: Include infinity.h.
36         (main): Use Infinityd.
37         * tests/test-floorl.c: Include infinity.h.
38         (main): Use Infinityl.
39         * tests/test-fprintf-posix.c: Include infinity.h.
40         (test_function): Use Infinityd.
41         * tests/test-frexp.c: Include infinity.h.
42         (main): Use Infinityd.
43         * tests/test-frexpl.c: Include infinity.h.
44         (main): Use Infinityl.
45         * tests/test-isfinite.c: Include infinity.h.
46         (test_isfinitef): Use Infinityf.
47         (test_isfinited): Use Infinityd.
48         (test_isfinitel): Use Infinityl.
49         * tests/test-isinf.c: Include infinity.h.
50         (test_isinff): Use Infinityf.
51         (test_isinfd): Use Infinityd.
52         (test_isinfl): Use Infinityl.
53         * tests/test-isnan.c: Include infinity.h.
54         (test_float): Use Infinityf.
55         (test_double): Use Infinityd.
56         (test_long_double): Use Infinityl.
57         * tests/test-isnanf.h: Include infinity.h.
58         (main): Use Infinityf.
59         * tests/test-isnand.h: Include infinity.h.
60         (main): Use Infinityd.
61         * tests/test-isnanl.h: Include infinity.h.
62         (main): Use Infinityl.
63         * tests/test-ldexpl.c: Include infinity.h.
64         (main): Use Infinityl.
65         * tests/test-printf-posix.h: Include infinity.h.
66         (test_function): Use Infinityd.
67         * tests/test-roundf1.c: Include infinity.h.
68         (main): Use Infinityf.
69         * tests/test-round1.c: Include infinity.h.
70         (main): Use Infinityd.
71         * tests/test-roundl.c: Include infinity.h.
72         (main): Use Infinityl.
73         * tests/test-signbit.c: Include infinity.h.
74         (test_signbitf): Use Infinityf.
75         (test_signbitd): Use Infinityd.
76         (test_signbitl): Use Infinityl.
77         * tests/test-snprintf-posix.h: Include infinity.h.
78         (test_function): Use Infinityd, Infinityl.
79         * tests/test-sprintf-posix.h: Include infinity.h.
80         (test_function): Use Infinityd, Infinityl.
81         * tests/test-truncf1.c: Include infinity.h.
82         (main): Use Infinityf.
83         * tests/test-trunc1.c: Include infinity.h.
84         (main): Use Infinityd.
85         * tests/test-truncl.c: Include infinity.h.
86         (main): Use Infinityl.
87         * tests/test-vasnprintf-posix.c: Include infinity.h.
88         (test_function): Use Infinityd, Infinityl.
89         * tests/test-vasprintf-posix.c: Include infinity.h.
90         (test_function): Use Infinityd, Infinityl.
91         * modules/ceilf-tests (Files): Add tests/infinity.h.
92         * modules/ceil-tests (Files): Likewise.
93         * modules/ceill-tests (Files): Likewise.
94         * modules/dprintf-posix-tests (Files): Likewise.
95         * modules/floorf-tests (Files): Likewise.
96         * modules/floor-tests (Files): Likewise.
97         * modules/floorl-tests (Files): Likewise.
98         * modules/fprintf-posix-tests (Files): Likewise.
99         * modules/frexp-tests (Files): Likewise.
100         * modules/frexp-nolibm-tests (Files): Likewise.
101         * modules/frexpl-tests (Files): Likewise.
102         * modules/frexpl-nolibm-tests (Files): Likewise.
103         * modules/isfinite-tests (Files): Likewise.
104         * modules/isinf-tests (Files): Likewise.
105         * modules/isnan-tests (Files): Likewise.
106         * modules/isnanf-tests (Files): Likewise.
107         * modules/isnanf-nolibm-tests (Files): Likewise.
108         * modules/isnand-tests (Files): Likewise.
109         * modules/isnand-nolibm-tests (Files): Likewise.
110         * modules/isnanl-tests (Files): Likewise.
111         * modules/isnanl-nolibm-tests (Files): Likewise.
112         * modules/ldexpl-tests (Files): Likewise.
113         * modules/printf-posix-tests (Files): Likewise.
114         * modules/roundf-tests (Files): Likewise.
115         * modules/round-tests (Files): Likewise.
116         * modules/roundl-tests (Files): Likewise.
117         * modules/signbit-tests (Files): Likewise.
118         * modules/snprintf-posix-tests (Files): Likewise.
119         * modules/sprintf-posix-tests (Files): Likewise.
120         * modules/truncf-tests (Files): Likewise.
121         * modules/trunc-tests (Files): Likewise.
122         * modules/truncl-tests (Files): Likewise.
123         * modules/vasnprintf-posix-tests (Files): Likewise.
124         * modules/vasprintf-posix-tests (Files): Likewise.
125         * modules/vdprintf-posix-tests (Files): Likewise.
126         * modules/vfprintf-posix-tests (Files): Likewise.
127         * modules/vprintf-posix-tests (Files): Likewise.
128         * modules/vsnprintf-posix-tests (Files): Likewise.
129         * modules/vsprintf-posix-tests (Files): Likewise.
130         * modules/xprintf-posix-tests (Files): Likewise.
131
132 2011-09-11  Bruno Haible  <bruno@clisp.org>
133
134         Ensure pid_t gets defined.
135         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
136         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
137         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
138         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
139         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
140         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
141         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
142         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
143         * tests/test-fcntl-h.c: Check that pid_t is defined.
144         * tests/test-sched.c: Likewise.
145         * tests/test-termios.c: Likewise.
146         * tests/test-time.c: Likewise.
147         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
148         * doc/posix-headers/signal.texi: Likewise.
149         * doc/posix-headers/sys_types.texi: Likewise.
150         * doc/posix-headers/time.texi: Likewise.
151
152 2011-09-11  Bruno Haible  <bruno@clisp.org>
153
154         acl: Fix compilation on Solaris 10 (older version).
155         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
156         of ACE_EVERYONE.
157         * lib/set-mode-acl.c (qset_acl): Likewise.
158         Reported by Christian Jullien <eligis@orange.fr>.
159
160 2011-09-10  Bruno Haible  <bruno@clisp.org>
161
162         iconv, unsetenv: Add support for MSVC compiler.
163         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
164         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
165
166 2011-09-10  Bruno Haible  <bruno@clisp.org>
167
168         *printf: Add support for MSVC compiler.
169         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
170         handles the exception caused by the %n directive. When cross-compiling,
171         guess no on native Windows.
172         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
173         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
174         emulate it through vsnprintf.
175         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
176         * doc/posix-functions/dprintf.texi: Update documentation regarding
177         MSVC 9.
178         * doc/posix-functions/fprintf.texi: Likewise.
179         * doc/posix-functions/printf.texi: Likewise.
180         * doc/posix-functions/snprintf.texi: Likewise.
181         * doc/posix-functions/sprintf.texi: Likewise.
182         * doc/posix-functions/swprintf.texi: Likewise.
183         * doc/posix-functions/vdprintf.texi: Likewise.
184         * doc/posix-functions/vfprintf.texi: Likewise.
185         * doc/posix-functions/vprintf.texi: Likewise.
186         * doc/posix-functions/vsnprintf.texi: Likewise.
187         * doc/posix-functions/vsprintf.texi: Likewise.
188         * doc/glibc-functions/asprintf.texi: Likewise.
189         * doc/glibc-functions/obstack_printf.texi: Likewise.
190         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
191         * doc/glibc-functions/vasprintf.texi: Likewise.
192
193 2011-09-10  Bruno Haible  <bruno@clisp.org>
194
195         nocrash: Add support for native Windows.
196         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
197
198 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
199             Bruno Haible  <bruno@clisp.org>
200
201         absolute-header, include-next: Add support for MSVC compiler.
202         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
203         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
204         directory separator in #line directives.
205         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
206         recognize also backslash as directory separator in #line directives.
207
208 2011-09-08  Jim Meyering  <meyering@redhat.com>
209
210         maint.mk: mark the post-release commit log with "maint: " prefix
211         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
212         one-line commit-log summary.
213
214 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
215             Bruno Haible  <bruno@clisp.org>
216
217         Doc about crypt functions.
218         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
219         systems.
220         * doc/posix-functions/encrypt.texi: Likewise.
221         * doc/posix-functions/setkey.texi: Likewise.
222
223 2011-09-08  Simon Josefsson  <simon@josefsson.org>
224
225         * lib/gc.h: Fix copyright header.
226
227 2011-09-07  Bruno Haible  <bruno@clisp.org>
228
229         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
230         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
231         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
232
233 2011-09-07  Bruno Haible  <bruno@clisp.org>
234
235         openat: Work around compilation error with OSF/1 5.1 DTK cc.
236         * lib/fopen.c: Use different syntax for include of <stdio.h>.
237         * lib/freopen.c: Likewise.
238         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
239         * lib/lstat.c: Likewise.
240         * lib/stat.c: Likewise.
241         * lib/open.c: Use different syntax for include of <fcntl.h>.
242         * lib/openat.c: Include fcntl.h again, explicitly.
243
244 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
245
246         parse-datetime: document the newly accepted format
247         * doc/parse-datetime.texi (Combined date and time of day items):
248         New section.
249
250 2011-09-06  Bruno Haible  <bruno@clisp.org>
251
252         acl: Fix a test failure on newer Solaris 10 with ZFS.
253         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
254         ENOSYS as no ACL.
255         Reported by Jim Meyering.
256
257 2011-09-06  Bruno Haible  <bruno@clisp.org>
258
259         acl: Update for AIX >= 5.3 with NFS.
260         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
261         ENOSYS as no ACL.
262
263         acl: Fix a test failure on AIX >= 5.3 with NFS.
264         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
265         as no ACL.
266
267 2011-09-06  Bruno Haible  <bruno@clisp.org>
268
269         acl: Fix a test failure on IRIX 6.5 with NFS.
270         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
271         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
272         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
273         * lib/copy-acl.c (qcopy_acl): Likewise.
274
275 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
276
277         openat: port to AIX 7.1 with large files
278         AIX 7.1 does a "#define openat open64at" if large files are in use,
279         so we can't simply #undef openat.  Use the orig_openat trick (similar
280         to orig_open in lib/open.c) to work around the problem.  Problem
281         reported by Kevin Brott for GNU tar, in the thread containing
282         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
283         * lib/openat.c (__need_system_fcntl_h): Define first.
284         Include <fcntl.h> and <sys/types.h> before undefining.
285         (orig_openat) [HAVE_OPENAT]: New inline function.
286         (openat) [HAVE_OPENAT]: Do not undef.
287         (rpl_openat): Use orig_openat, not openat.
288
289 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
290             Bruno Haible  <bruno@clisp.org>
291
292         acl: Avoid errors on NonStop Kernel.
293         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
294         ENOTSUP errors.
295
296 2011-09-05  Bruno Haible  <bruno@clisp.org>
297
298         acl: Clean up Solaris code.
299         * lib/acl-internal.h: Remove no-op #if.
300         * lib/file-has-acl.c: Likewise.
301         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
302         * lib/copy-acl.c (qcopy_acl): Likewise.
303
304 2011-09-05  Bruno Haible  <bruno@clisp.org>
305
306         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
307         binaries built on the original Solaris 10.
308         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
309         trivial.
310
311 2011-09-05  Bruno Haible  <bruno@clisp.org>
312
313         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
314         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
315         10.
316         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
317         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
318         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
319         instead of acl_get, facl_get, acl_set, facl_set.
320
321 2011-09-05  Bruno Haible  <bruno@clisp.org>
322
323         copy-file: Try unit tests on more file systems.
324         * tests/test-copy-file-1.sh: New file.
325         * tests/test-copy-file-2.sh: New file.
326         * modules/copy-file-tests (Files): Add them.
327         (Makefile.am): Add them to TESTS.
328
329         acl: Try unit tests on more file systems.
330         * tests/test-file-has-acl-1.sh: New file.
331         * tests/test-file-has-acl-2.sh: New file.
332         * tests/test-set-mode-acl-1.sh: New file.
333         * tests/test-set-mode-acl-2.sh: New file.
334         * tests/test-copy-acl-1.sh: New file.
335         * tests/test-copy-acl-2.sh: New file.
336         * modules/acl-tests (Files): Add them.
337         (Makefile.am): Add them to TESTS.
338
339 2011-09-04  Bruno Haible  <bruno@clisp.org>
340
341         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
342         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
343         10.
344         (OLD_ALLOW, OLD_DENY): New macros.
345         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
346         ACE_ACCESS_ALLOWED_ACE_TYPE.
347         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
348         ACE_ACCESS_DENIED_ACE_TYPE.
349         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
350         (NEW_ACE_EXECUTE): Fix value.
351         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
352         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
353         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
354         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
355         NEW_ACE_SYNCHRONIZE): New macros.
356         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
357         instead of acl_fromtext, acl_set, facl_set.
358         Fixes a coreutils/tests/cp/perm failure.
359
360 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
361
362         openat: test for fstatat (..., 0) bug
363         Further testing with tar suggests that fstatat (..., 0)
364         does not work in general, on AIX 7.1; see
365         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
366         So, give up entirely on AIX 7.1's fstatat, and fall back on our
367         replacement fstatat (which is what older AIX releases were using
368         anyway).
369         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
370         use is now changed to orig_fstatat.  This was probably the right
371         thing to do anyway.
372         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
373         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
374         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
375         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
376         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
377         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
378         if the bug is found.
379
380         openat: test for fstatat (AT_FDCWD, ..., 0) bug
381         This tests for another fstatat bug on AIX 7.1:
382         fstatat (AT_FDCWD, ..., 0) does not work.  See
383         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
384         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
385         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
386         (rpl_fstatat): Adjust so that it works around either (or both)
387         bugs if present.
388         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
389
390 2011-09-03  Karl Berry  <karl@gnu.org>
391
392         * doc/regex.texi (Character Class Operators): Avoid literal ":"
393         in index entries.
394
395 2011-09-02  Bruno Haible  <bruno@clisp.org>
396
397         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
398         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
399         values of AR, ARFLAGS, RANLIB.
400         Reported by John W. Eaton <jwe@gnu.org> for Octave.
401
402 2011-09-02  Bruno Haible  <bruno@clisp.org>
403
404         Find 'ar' program that fits with --host argument.
405         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
406
407 2011-09-02  Bruno Haible  <bruno@clisp.org>
408
409         tests: init.sh: Support any non-GNU diff.
410         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
411         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
412         Solaris 8.
413
414 2011-09-02  Bruno Haible  <bruno@clisp.org>
415
416         tests: init.sh: work also with any non-GNU diff that supports -u
417         * tests/init.sh: Relax check for diff -u support.
418         Rather than checking for GNU diff via --version, simply check
419         for support for -u itself.  Useful at least on OpenBSD 4.9,
420         AIX 7.1, IRIX 6.5, and Solaris 10.
421
422 2011-09-01  Bruno Haible  <bruno@clisp.org>
423
424         strtoimax, strtoumax: Document problem on HP-UX 11.
425         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
426         * doc/posix-functions/strtoumax.texi: Likewise.
427
428 2011-09-01  Bruno Haible  <bruno@clisp.org>
429
430         strtoumax: Avoid link error on OSF/1 with DTK cc.
431         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
432         defined as a function.
433         * modules/strtoumax (Depends-on, configure.ac): Test only whether
434         strtoumax is defined, not whether it is declared.
435
436 2011-09-01  Bruno Haible  <bruno@clisp.org>
437
438         strtoimax: Avoid link error on OSF/1 with DTK cc.
439         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
440         defined as a function.
441         * modules/strtoimax (Depends-on, configure.ac): Test only whether
442         strtoimax is defined, not whether it is declared.
443
444 2011-09-01  Bruno Haible  <bruno@clisp.org>
445
446         imaxdiv: Avoid link error on OSF/1 with DTK cc.
447         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
448         as a function.
449         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
450         whether it is declared.
451
452 2011-09-01  Bruno Haible  <bruno@clisp.org>
453
454         imaxabs: Avoid link error on OSF/1 with DTK cc.
455         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
456         as a function.
457         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
458         whether it is declared.
459
460 2011-09-01  Bruno Haible  <bruno@clisp.org>
461
462         Tests for module 'strtoumax'.
463         * modules/strtoumax-tests: New file.
464         * tests/test-strtoumax.c: New file.
465
466         Tests for module 'strtoimax'.
467         * modules/strtoimax-tests: New file.
468         * tests/test-strtoimax.c: New file.
469
470         Tests for module 'imaxdiv'.
471         * modules/imaxdiv-tests: New file.
472         * tests/test-imaxdiv.c: New file.
473
474         Tests for module 'imaxabs'.
475         * modules/imaxabs-tests: New file.
476         * tests/test-imaxabs.c: New file.
477
478 2011-09-01  Bruno Haible  <bruno@clisp.org>
479
480         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
481         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
482         pthread_create.
483
484 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
485
486         openat: work around AIX 7.1 fstatat issue
487         This should fix the problem that was not properly fixed
488         in the previous change, dated 2011-08-30.
489         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
490         __need_system_stat_h defined.
491         (orig_fstatat) [HAVE_FSTATAT]: New function.
492         (rpl_fstatat): Go back to the old way of doing things,
493         except call orig_fstatat instead of fstatat.
494         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
495         Remove unnecessary check whether fstatat fills in st_size etc.
496
497 2011-09-01  Bruno Haible  <bruno@clisp.org>
498
499         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
500         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
501         just include the system's header.
502
503 2011-08-31  Jim Meyering  <meyering@redhat.com>
504
505         tests: avoid spurious assertion failure in test-float.c on ppc64
506         * tests/test-float.c (test_long_double): Comment out an assertion,
507         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
508         with gcc-4.4.4.
509
510         maint: indent with spaces, not TABs
511         I need to get in the habit of running gnulib's "make check".
512         Both of these would have been caught.
513         * m4/largefile.m4: Indent with spaces, not TABs.
514         * lib/parse-datetime.y (iso_8601_time): Likewise.
515         Spotted by Pádraig Brady.
516
517         test-parse-datetime.c: accommodate a relatively strict gcc warning
518         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
519         to avoid a warning from gcc's -Werror=missing-declarations.
520         Insert a few spaces-before-funcall-parenthesis.
521
522 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
523
524         parse-datetime: accept ISO 8601 date and time rep with "T" separator
525         The parser now accepts ISO 8601 date-time strings with "T" as the
526         separator.  It has long parsed dates like "2004-02-29 16:21:42"
527         with a space between the date and time strings.  Now it also parses
528         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
529         variants like "2004-02-29T16:21:42.333-07:00"
530         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
531         of day representation using the 'T' separator character.
532         * doc/parse-datetime.texi (General date syntax): replace use of
533         deprecated --iso-8601 option with --rfc-3339 in example of date
534         command output formats that can be parsed.
535         * tests/test-parse-datetime.c (tm_diff): New function, taken from
536         lib/parse-datetime.y.
537         (gmt_offset): New function.
538         (main): Add additional test cases to validate ISO8601 extended
539         date and time of day parsing.
540
541 2011-08-31  Bruno Haible  <bruno@clisp.org>
542
543         freopen: Documentation.
544         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
545         name.
546         Reported by Claudio Bley <claudio.bley@gmail.com>.
547
548 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
549
550         freopen: Don't crash if the filename argument is NULL.
551         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
552         NULL.
553
554 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
555
556         openat: work around AIX 7.1 fstatat bug
557         Problem reported by Kevin Brott for GNU tar, in the thread containing
558         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
559         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
560         FSTATAT_ST_SIZE_ETC_BROKEN.
561         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
562         rpl_fstatat.
563         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
564         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
565         AC_CHECK_FUNCS_ONCE for fstatat.
566         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
567         fchmodat, mkdirat, openat and unlinkat.
568
569 2011-08-30  Bruno Haible  <bruno@clisp.org>
570
571         Avoid endless recursions if config.h includes some header files.
572         * lib/fopen.c (__need_FILE): Define already before including config.h.
573         * lib/freopen.c (__need_FILE): Likewise.
574         * lib/open.c (__need_system_fcntl_h): Likewise.
575         * lib/stat.c (__need_system_sys_stat_h): Likewise.
576         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
577         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
578
579 2011-08-25  Karl Berry  <karl@gnu.org>
580
581         * config/srclist.txt (ylwrap): new try.
582         * build-aux/ylwrap: new file.
583
584 2011-08-23  Bruno Haible  <bruno@clisp.org>
585
586         tmpdir: Use a good default directory on native Windows.
587         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
588         (P_tmpdir): Default to _P_tmpdir on native Windows.
589         (path_search): On native Windows, try the value returned by GetTempPath
590         before trying P_tmpdir.
591         * modules/tmpdir (Depends-on): Add pathmax.
592         Suggested by John Darrington <john@darrington.wattle.id.au>.
593
594 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
595
596         doc: fix typo in README-release
597         * top/README-release: Capitalize first word of a sentence.
598
599 2011-08-19  Jim Meyering  <meyering@redhat.com>
600
601         fts: do not exhaust memory when processing million-entry directories
602         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
603         directory would require about 256*N bytes of memory.  Thus, it was
604         easy to construct a directory too large to be processed by any of
605         those tools.  With this change, fts' maximum memory utilization is
606         now limited to around 30MB.
607         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
608         (fts_read): When we've processed the final entry (i.e., when
609         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
610         using the parent entry to read any remaining entries.  Dispatch
611         depending on what fts_build returns:
612         - NULL+stop, aka failure: stop
613         - NULL otherwise: move up in the dir hierarchy
614         - non-NULL: handle this new entry
615         (fts_build): Declare and use new local, continue_readdir.
616         Prepare to be called from fts_read, when the entries
617         from a partially-read directory have just been exhausted.
618         In that case, we'll skip the opendir and instead use the parent's
619         fts_dirp and derive dir_fd from that.
620         Finally, in the readdir loop, if we read max_entries entries,
621         exit the loop ensuring *not* to call closedir.  This is required
622         so that fts_dirp can be reused on a subsequent call.
623         Prompted by Ben England's report of memory exhaustion in find
624         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
625
626         maint: fts: move decl of `dp' down into while loop; split a long line
627         * lib/fts.c (fts_build): No semantic change.
628
629         fts: add/use new struct member, fts_dirp
630         We are about to use this to manage any directory with
631         too many entries to read all of them into memory at once.
632         To do that, we'll need to save the DIR* pointer in each
633         affected FTSENT struct.
634         * lib/fts_.h: Include <dirent.h>.
635         (struct FTSENT) [fts_dirp]: New member.
636         * lib/fts.c (closedir_and_clear): Define.
637         Use it in place of closedir so that we are sure to
638         clear the new fts_dirp member when done with it.
639         (fts_alloc): Initialize the new member.
640         (fts_lfree): Free, if needed.
641
642         maint: fts: give __opendir2 a new parameter and rename
643         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
644         than surreptitiously using sole caller's "dir_fd".
645         (fts_opendir): Rename from __opendir2.
646
647         maint: fts.c: remove __opendir2's now-unused parameter, oflag
648         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
649
650         maint: fts.c: correct off-by-one indentation
651         * lib/fts.c (fts_build): Correct indentation, change style
652         of a couple of block comments, and bracing style.
653
654         maint: fts.c: move __opendir2 #define "up" out of function body
655         * lib/fts.c (__opendir2): Move "up".  No semantic change.
656
657         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
658         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
659         out for a long time and besides was useful only on BSD systems.
660
661 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
662
663         regex: port to Stratus OpenVOS
664         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
665         define to empty, rather than attempting nonportable optimizations.
666         Problem reported by Paul Green in:
667         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
668         and fix suggested by Eric Blake in:
669         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
670
671 2011-08-17  Eric Blake  <eblake@redhat.com>
672
673         getcwd: fix test failures on mingw
674         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
675         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
676         test if long directory cannot be created, and allow mingw errno.
677
678         getcwd-lgpl: fix m4 to match relaxed test for BSD
679         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
680         (gl_FUNC_GETCWD_SIGNATURE): New macro.
681         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
682         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
683         signature problem.
684
685         getcwd: fix compilation on mingw64
686         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
687         getcwd.
688         Reported by Marc-André Lureau.
689
690         pipe2: silence compiler warning
691         * lib/pipe2.c (pipe2): Hide label if it is not used.
692
693 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
694
695         relocatable-prog: fix link error
696         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
697         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
698         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
699         into modules/relocatable-lib without noticing that
700         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
701         also needs to build relocatable.c.
702
703 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
704
705         getaddrinfo: fix sh typo in gai_strerrorA decl checking
706         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
707         shell code: it contained a 'break' that was not in a loop.
708         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
709         via a shell-language loop; this may have been true in old Autoconf
710         versions, but it's not true in Autoconf 2.68.  I found this bug
711         when testing coreutils git on Solaris 8, whose shell complains
712         about the syntax error.
713
714 2011-08-12  Simon Josefsson  <simon@josefsson.org>
715
716         * lib/base64.c: Fix comment to reference RFC 4648.
717         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
718         <gvtulder@gmail.com>.
719
720 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
721
722         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
723
724         po/Makefile.in.in: fix make -q problem
725         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
726         rule, since there's no file named 'check-macro-version' and its
727         use as a file breaks make -q.
728         (all): Don't depend on check-macro-version.
729         (CHECK_MACRO_VERSION): New macro.
730         (stamp-po): Use it.
731
732         configmake: fix make -q problem
733         * modules/configmake (configmake.h): Update configmake.h's time stamp
734         even if the file does not change.  Otherwise, 'make -q' fails.
735         Problem reported by Simon Josefsson in
736         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
737
738 2011-08-11  Jim Meyering  <meyering@redhat.com>
739
740         git-version-gen: correct the advice in a comment
741         * build-aux/git-version-gen: Correct comment.
742         Don't recommend to list .tarball-version in .gitignore.
743
744 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
745
746         base64: fix off-by-one buffer size bug
747         Problem and (trivial) fix reported by Gijs van Tulder in
748         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
749         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
750         * tests/test-base64.c (main): Catch the bug.
751
752 2011-08-10  Eric Blake  <eblake@redhat.com>
753
754         closein: correct comments
755         * lib/closein.c (close_stdin): Improve comments.
756
757 2011-08-09  Bruno Haible  <bruno@clisp.org>
758
759         More tests for 'fseeko'.
760         * tests/test-fseeko3.c: New file, from Eric Blake.
761         * tests/test-fseeko3.sh: New file.
762         * modules/fseeko-tests (Files): Add them.
763         (TESTS): Add test-fseeko3.sh.
764         (check_PROGRAMS): Add test-fseeko3.
765
766 2011-08-09  Eric Blake  <eblake@redhat.com>
767
768         fseeko: remove unneeded hack
769         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
770
771         fseeko: fix bug on glibc
772         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
773         Reported by John W. Eaton.
774
775 2011-08-08  Bruno Haible  <bruno@clisp.org>
776
777         unictype/base: Fix interoperability with preinstalled libunistring.
778         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
779         Reported by Simon Josefsson.
780
781 2011-08-08  Bruno Haible  <bruno@clisp.org>
782
783         iswblank: Detect declaration correctly.
784         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
785         AC_CHECK_DECLS invocation.
786
787 2011-08-08  Bruno Haible  <bruno@clisp.org>
788
789         tcgetsid: Detect declaration correctly.
790         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
791         AC_CHECK_DECLS invocation.
792         Reported by Simon Josefsson.
793
794 2011-08-08  Eric Blake  <eblake@redhat.com>
795
796         largefile: fix typo that regressed large file support
797         * modules/largefile (configure.ac-early): Fix section name.
798
799 2011-08-06  Karl Berry  <karl@gnu.org>
800
801         * MODULES.html.sh (func_all_files): _Noreturn is no longer
802         a separate module.
803
804 2011-08-05  Simon Josefsson  <simon@josefsson.org>
805
806         openat: Fix warnings and commens when building unlinkat.c on Hurd.
807         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
808         get prototype for free.
809
810 2011-08-04  Bruno Haible  <bruno@clisp.org>
811
812         Tests for module 'pathmax'.
813         * modules/pathmax-tests: New file.
814         * tests/test-pathmax.c: New file.
815
816         canonicalize-lgpl: Support larger filenames on the Hurd.
817         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
818         Reported by Paul Eggert.
819
820         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
821         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
822         * lib/chdir-long.h: Include pathmax.h.
823         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
824         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
825         (PATH_MAX): Remove code that is done by pathmax.h.
826         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
827         * lib/tmpfile.c: Add a comment.
828         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
829         * modules/chdir-long (Depends-on): Add pathmax.
830         * modules/getcwd (Depends-on): Add pathmax.
831         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
832         is not defined.
833         * doc/posix-headers/limits.texi: Mention the pathmax module.
834         * NEWS: Mention the change.
835
836 2011-08-02  Bruno Haible  <bruno@clisp.org>
837
838         pthread_sigmask: Actually use results of gl_THREADLIB.
839         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
840         gl_THREADLIB, not gl_[]THREADLIB.
841         Reported by Eric Blake.
842
843 2011-08-02  Jim Meyering  <meyering@redhat.com>
844
845         maint.mk: relax the default _gl_TS_function_match regexp
846         * top/maint.mk (_gl_TS_function_match): Don't require at least one
847         space between function name and "(" in an "extern" declaration.
848         That would fail to match a decl with no space there: extern void foo();
849
850 2011-07-31  Iain Nicol  <iain@thenicols.net>
851
852         git-version-gen: document that EXTRA_DIST must include .version
853         * build-aux/git-version-gen: In the how-to-use comment, document
854         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
855         will fail when run from an unpacked distribution tarball.
856
857 2011-08-01  Bruno Haible  <bruno@clisp.org>
858
859         wctype-h: Fix last change.
860         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
861         REPLACE_TOWLOWER to 0.
862         Reported by Sam Steingold <sds@gnu.org>.
863
864 2011-07-31  Bruno Haible  <bruno@clisp.org>
865
866         frexpl: Update autoconf test.
867         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
868         according to changes of 2011-06-20.
869
870 2011-07-31  Bruno Haible  <bruno@clisp.org>
871
872         sys_utsname: Add support for Minix.
873         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
874         <sys/utsname.h>.
875         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
876         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
877
878 2011-07-31  Bruno Haible  <bruno@clisp.org>
879
880         strings: Add support for Minix.
881         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
882         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
883         * doc/posix-headers/strings.texi: Document the Minix problem.
884
885 2011-07-31  Bruno Haible  <bruno@clisp.org>
886
887         wctype-h: Add support for Minix.
888         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
889         REPLACE_TOWLOWER.
890         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
891         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
892         REPLACE_ISWCNTRL.
893
894 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
895
896         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
897         This is a performance improvement for 64-bit hosts: it causes the
898         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
899
900 2011-07-31  Bruno Haible  <bruno@clisp.org>
901
902         stdioext: Add support for Minix.
903         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
904         * lib/fpurge.c (fpurge): Likewise.
905         * lib/freadahead.c (freadahead): Likewise.
906         * lib/freadable.c (freadable): Likewise.
907         * lib/freading.c (freading): Likewise.
908         * lib/freadptr.c (freadptr): Likewise.
909         * lib/freadseek.c (freadptrinc): Likewise.
910         * lib/fseeko.c (rpl_fseeko): Likewise.
911         * lib/fseterr.c (fseterr): Likewise.
912         * lib/fwritable.c (fwritable): Likewise.
913         * lib/fwriting.c (fwriting): Likewise.
914         * lib/fflush.c (clear_ungetc_buffer): Update comment.
915         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
916
917 2011-07-31  Bruno Haible  <bruno@clisp.org>
918
919         errno: Port to Minix.
920         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
921         ECONNABORTED are defined.
922         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
923         GNULIB_defined_ECONNABORTED): New macros.
924         * lib/strerror-override.h (strerror_override): Test also
925         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
926         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
927         ECONNABORTED.
928         * doc/posix-headers/errno.texi: Mention the Minix problem.
929
930 2011-07-31  Bruno Haible  <bruno@clisp.org>
931
932         Work around declaration collisions on Minix.
933         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
934         defined, set REPLACE_MBSINIT.
935         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
936         defined, set REPLACE_MBRTOWC.
937         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
938         set REPLACE_MBRLEN.
939         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
940         defined, set REPLACE_MBSRTOWCS.
941         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
942         defined, set REPLACE_WCRTOMB.
943         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
944         defined, set REPLACE_WCSRTOMBS.
945
946 2011-07-31  Bruno Haible  <bruno@clisp.org>
947
948         Add support for Minix with ACK compiler.
949         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
950         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
951         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
952
953 2011-07-31  Bruno Haible  <bruno@clisp.org>
954
955         Documentation about Minix.
956         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
957         * doc/glibc-headers/*.texi: Likewise.
958         * doc/posix-functions/*.texi: Likewise.
959         * doc/glibc-functions/*.texi: Likewise.
960
961 2011-07-31  Bruno Haible  <bruno@clisp.org>
962
963         snippet/warn-on-use: Fix indentation.
964         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
965
966 2011-07-25  Jim Meyering  <meyering@redhat.com>
967
968         tests: test-update-copyright.sh: remove unnecessary "rm" commands
969         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
970         commands.
971
972 2011-07-27  Jim Meyering  <meyering@redhat.com>
973
974         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
975         * top/maint.mk (gl_extract_significant_defines_): Now that
976         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
977         gnulib/lib/signal.in.h, and now that we recommend to
978         define-if-undefined those two symbols in application code,
979         we must filter them out of the "significant" list.
980         This avoids a "make syntax-check" failure in coreutils.
981
982 2011-07-26  Eric Blake  <eblake@redhat.com>
983
984         warnings: add comments about previous patch
985         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
986         * m4/include_next.m4: Likewise.
987         * m4/warn-on-use.m4: Likewise.
988         * m4/warnings.m4: Likewise, and simplify use.
989         Suggested by Stefano Lattarini.
990
991         include-next, warnings: support older autoconf
992         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
993         AS_VAR_PUSHDEF in a way that works with older autoconf.
994         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
995         Reported by Daniel P. Berrange.
996
997 2011-07-25  Bruno Haible  <bruno@clisp.org>
998
999         fseek, ftell: Fix doc.
1000         * doc/posix-functions/fseek.texi: Reword statement about
1001         AC_SYS_LARGEFILE.
1002         * doc/posix-functions/ftell.texi: Likewise.
1003
1004 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
1005             Bruno Haible  <bruno@clisp.org>
1006
1007         Add dependencies to the 'largefile' module.
1008         * modules/fopen (Depends-on): Add 'largefile'.
1009         * modules/freopen (Depends-on): Likewise.
1010         * modules/fseeko (Depends-on): Likewise.
1011         * modules/ftello (Depends-on): Likewise.
1012         * modules/glob (Depends-on): Likewise.
1013         * modules/lseek (Depends-on): Likewise.
1014         * modules/lstat (Depends-on): Likewise.
1015         * modules/mkostemp (Depends-on): Likewise.
1016         * modules/mkostemps (Depends-on): Likewise.
1017         * modules/mkstemp (Depends-on): Likewise.
1018         * modules/mkstemps (Depends-on): Likewise.
1019         * modules/open (Depends-on): Likewise.
1020         * modules/openat (Depends-on): Likewise.
1021         * modules/pread (Depends-on): Likewise.
1022         * modules/pwrite (Depends-on): Likewise.
1023         * modules/scandir (Depends-on): Likewise.
1024         * modules/stat (Depends-on): Likewise.
1025         * modules/tmpfile (Depends-on): Likewise.
1026         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
1027         since the containing module now depends on the largefile module.
1028         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
1029         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
1030         off_t is fixed by gnulib.
1031         * doc/posix-functions/freopen.texi: Likewise.
1032         * doc/posix-functions/fseeko.texi: Likewise.
1033         * doc/posix-functions/fstatat.texi: Likewise.
1034         * doc/posix-functions/ftello.texi: Likewise.
1035         * doc/posix-functions/glob.texi: Likewise.
1036         * doc/posix-functions/lseek.texi: Likewise.
1037         * doc/posix-functions/lstat.texi: Likewise.
1038         * doc/posix-functions/mkstemp.texi: Likewise.
1039         * doc/posix-functions/open.texi: Likewise.
1040         * doc/posix-functions/openat.texi: Likewise.
1041         * doc/posix-functions/pread.texi: Likewise.
1042         * doc/posix-functions/pwrite.texi: Likewise.
1043         * doc/posix-functions/scandir.texi: Likewise.
1044         * doc/posix-functions/stat.texi: Likewise.
1045         * doc/posix-functions/tmpfile.texi: Likewise.
1046         * doc/glibc-functions/mkostemp.texi: Likewise.
1047         * doc/glibc-functions/mkostemps.texi: Likewise.
1048         * doc/glibc-functions/mkstemps.texi: Likewise.
1049
1050 2011-07-25  Bruno Haible  <bruno@clisp.org>
1051
1052         fcntl: Move AC_LIBOBJ invocation to module description.
1053         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
1054         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
1055
1056         fcntl: Remove call-in from fchdir.m4.
1057         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
1058         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
1059
1060         dup3: Remove potential call-in from fchdir.m4.
1061         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
1062         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
1063
1064         dup2: Move AC_LIBOBJ invocation to module description.
1065         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
1066         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
1067         Don't invoke AC_LIBOBJ.
1068         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
1069
1070         dup2: Remove call-in from fchdir.m4.
1071         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
1072         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
1073
1074         fclose: Move AC_LIBOBJ invocation to module description.
1075         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
1076         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
1077         to 1.
1078         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
1079
1080         fclose: Remove call-in from close.m4.
1081         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
1082         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
1083
1084         close: Move AC_LIBOBJ invocation to module description.
1085         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
1086         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
1087         1.
1088         * modules/close (configure.ac): Invoke AC_LIBOBJ.
1089
1090         close: Remove call-in from fchdir.m4.
1091         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
1092         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
1093
1094         open: Move AC_LIBOBJ invocation to module description.
1095         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
1096         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
1097         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
1098
1099         open: Remove call-in from fchdir.m4.
1100         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
1101         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
1102
1103         fchdir: Start to remove gl_REPLACE_* idiom.
1104         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
1105         (gl_FUNC_FCHDIR): Invoke it.
1106
1107 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
1108
1109         * lib/ftell.c (ftell): Comment out cast.
1110
1111         close: use gl_REPLACE_FCLOSE only if defined
1112         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
1113         is defined.  The close module doesn't depend on the fclose module
1114         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
1115         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
1116         I reproduced the problem with "./gnulib-tool --test close sys_socket".
1117
1118 2011-07-24  Jim Meyering  <meyering@redhat.com>
1119
1120         test-select.h: avoid warning when using gcc's -Wmissing-declarations
1121         * tests/test-select.h (test_function): Declare as "static".
1122
1123 2011-07-24  Bruno Haible  <bruno@clisp.org>
1124
1125         doc: Mention the effects of AC_SYS_LARGEFILE.
1126         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
1127         on this function.
1128         * doc/posix-functions/aio_error.texi: Likewise.
1129         * doc/posix-functions/aio_fsync.texi: Likewise.
1130         * doc/posix-functions/aio_read.texi: Likewise.
1131         * doc/posix-functions/aio_return.texi: Likewise.
1132         * doc/posix-functions/aio_suspend.texi: Likewise.
1133         * doc/posix-functions/aio_write.texi: Likewise.
1134         * doc/posix-functions/fgetpos.texi: Likewise.
1135         * doc/posix-functions/fopen.texi: Likewise.
1136         * doc/posix-functions/freopen.texi: Likewise.
1137         * doc/posix-functions/fsetpos.texi: Likewise.
1138         * doc/posix-functions/fstatvfs.texi: Likewise.
1139         * doc/posix-functions/ftruncate.texi: Likewise.
1140         * doc/posix-functions/ftw.texi: Likewise.
1141         * doc/posix-functions/getrlimit.texi: Likewise.
1142         * doc/posix-functions/glob.texi: Likewise.
1143         * doc/posix-functions/lio_listio.texi: Likewise.
1144         * doc/posix-functions/lockf.texi: Likewise.
1145         * doc/posix-functions/mkstemp.texi: Likewise.
1146         * doc/posix-functions/mmap.texi: Likewise.
1147         * doc/posix-functions/nftw.texi: Likewise.
1148         * doc/posix-functions/openat.texi: Likewise.
1149         * doc/posix-functions/opendir.texi: Likewise.
1150         * doc/posix-functions/posix_fadvise.texi: Likewise.
1151         * doc/posix-functions/posix_fallocate.texi: Likewise.
1152         * doc/posix-functions/pread.texi: Likewise.
1153         * doc/posix-functions/pwrite.texi: Likewise.
1154         * doc/posix-functions/readdir.texi: Likewise.
1155         * doc/posix-functions/readdir_r.texi: Likewise.
1156         * doc/posix-functions/rewinddir.texi: Likewise.
1157         * doc/posix-functions/scandir.texi: Likewise.
1158         * doc/posix-functions/seekdir.texi: Likewise.
1159         * doc/posix-functions/setrlimit.texi: Likewise.
1160         * doc/posix-functions/statvfs.texi: Likewise.
1161         * doc/posix-functions/telldir.texi: Likewise.
1162         * doc/posix-functions/tmpfile.texi: Likewise.
1163         * doc/posix-functions/truncate.texi: Likewise.
1164         * doc/glibc-functions/fallocate.texi: Likewise.
1165         * doc/glibc-functions/fstatfs.texi: Likewise.
1166         * doc/glibc-functions/fts_children.texi: Likewise.
1167         * doc/glibc-functions/fts_read.texi: Likewise.
1168         * doc/glibc-functions/getdirentries.texi: Likewise.
1169         * doc/glibc-functions/mkostemp.texi: Likewise.
1170         * doc/glibc-functions/mkostemps.texi: Likewise.
1171         * doc/glibc-functions/mkstemps.texi: Likewise.
1172         * doc/glibc-functions/preadv.texi: Likewise.
1173         * doc/glibc-functions/pwritev.texi: Likewise.
1174         * doc/glibc-functions/sendfile.texi: Likewise.
1175         * doc/glibc-functions/statfs.texi: Likewise.
1176
1177 2011-07-24  Bruno Haible  <bruno@clisp.org>
1178
1179         doc: Fix typo.
1180         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
1181
1182 2011-07-24  Bruno Haible  <bruno@clisp.org>
1183
1184         doc: Mention fsusage.
1185         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
1186
1187 2011-07-24  Bruno Haible  <bruno@clisp.org>
1188
1189         doc: Mention new glibc headers and functions.
1190         * doc/glibc-headers/gshadow.texi: New file.
1191         * doc/glibc-functions/endsgent.texi: New file.
1192         * doc/glibc-functions/fgetsgent.texi: New file.
1193         * doc/glibc-functions/fgetsgent_r.texi: New file.
1194         * doc/glibc-functions/getsgent.texi: New file.
1195         * doc/glibc-functions/getsgent_r.texi: New file.
1196         * doc/glibc-functions/getsgnam.texi: New file.
1197         * doc/glibc-functions/getsgnam_r.texi: New file.
1198         * doc/glibc-functions/putsgent.texi: New file.
1199         * doc/glibc-functions/setsgent.texi: New file.
1200         * doc/glibc-functions/sgetsgent.texi: New file.
1201         * doc/glibc-functions/sgetsgent_r.texi: New file.
1202         * doc/glibc-functions/malloc_info.texi: New file.
1203         * doc/glibc-functions/preadv.texi: New file.
1204         * doc/glibc-functions/pwritev.texi: New file.
1205         * doc/glibc-functions/register_printf_modifier.texi: New file.
1206         * doc/glibc-functions/register_printf_specifier.texi: New file.
1207         * doc/glibc-functions/register_printf_type.texi: New file.
1208         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
1209         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
1210         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
1211         * doc/glibc-functions/pthread_getname_np.texi: New file.
1212         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
1213         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
1214         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
1215         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
1216         * doc/glibc-functions/pthread_setname_np.texi: New file.
1217         * doc/glibc-functions/pthread_sigqueue.texi: New file.
1218         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
1219         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
1220         * doc/glibc-functions/qsort_r.texi: New file.
1221         * doc/glibc-functions/quick_exit.texi: New file.
1222         * doc/glibc-functions/syncfs.texi: New file.
1223         * doc/gnulib.texi: Include them.
1224         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
1225         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
1226         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
1227         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
1228         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
1229         * doc/glibc-functions/execvpe.texi: Likewise.
1230
1231 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
1232
1233         ftell: don't include <unistd.h>
1234         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
1235         guaranteed to define off_t, and the ftell module depends on the
1236         stdio module.
1237
1238         ftell: do not assume wraparound signed arithmetic
1239         * lib/ftell.c: Include <limits.h>.
1240         (ftell): Don't assume wraparound signed arithmetic.
1241
1242 2011-07-24  Bruno Haible  <bruno@clisp.org>
1243
1244         close: No longer depend on module 'fclose'.
1245         * modules/close (Depends-on): Remove fclose.
1246         * NEWS: Mention the change.
1247         Suggested by Sam Steingold <sds@gnu.org>.
1248
1249 2011-07-24  Bruno Haible  <bruno@clisp.org>
1250
1251         fsusage: Enable large volume support on AIX >= 5.2.
1252         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
1253         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
1254         instead of STAT_STATVFS.
1255         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
1256
1257         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
1258         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
1259         f_blocks field only on MacOS X.
1260
1261         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
1262         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
1263         * modules/fsusage (Depends-on): Add largefile.
1264
1265 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
1266
1267         * README: Modernize discussion of signed integers.
1268         Assuming overflow wraparound is no longer safe.
1269         Mention ones' complement and signed magnitude.
1270
1271 2011-07-22  Bruno Haible  <bruno@clisp.org>
1272
1273         select tests, pselect tests: Refactor.
1274         * tests/test-select.h: New file, extracted from tests/test-select.c.
1275         (select_fn): New type.
1276         (test, do_select, do_select_nowait, do_select_wait, test_tty,
1277         test_connect_first, test_accept_first, test_pair, test_socket_pair,
1278         test_pipe): Add my_select argument.
1279         (test_function): Renamed from main. Add my_select argument.
1280         * tests/test-select.c: Move most code to tests/test-select.h. Include
1281         test-select.h.
1282         * modules/select-tests (Files): Add tests/test-select.h.
1283         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
1284         (my_select, main): New functions.
1285         * modules/pselect-tests (Files): Add tests/test-select.h,
1286         tests/macros.h, tests/signature.h.
1287         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
1288         (configure.ac): Check for <sys/wait.h>.
1289
1290 2011-07-22  Bruno Haible  <bruno@clisp.org>
1291
1292         sys_select tests: Check the signature of FD_*.
1293         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
1294         signature tests from here...
1295         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
1296         here.
1297         * modules/sys_select-tests (Files): Add tests/signature.h.
1298
1299 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
1300
1301         largefile: new module, replacing large-inode
1302         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
1303         * MODULES.html.sh: Add largefile, remove large-inode.
1304         * modules/largefile, m4/largefile.m4: New files.
1305         * modules/large-inode, m4/large-inode.m4: Remove.
1306
1307         fsusage: port to MacOS X 10.7 with 4 TiB file systems
1308         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
1309         implementations that use only 32 bits to count blocks.
1310         On typical hosts with 1024-byte blocks, this fails with file
1311         systems as small as 4 TiB.  Problem reported by Herb Wartens
1312         <http://debbugs.gnu.org/9140> and this should also fix a similar
1313         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
1314
1315         large-inode: New module
1316         * MODULES.html.sh: Add it.
1317         * modules/large-inode, m4/large-inode.m4: New files.
1318
1319         extensions: Enable extensions on MacOS X 10.5 and later.
1320         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
1321
1322 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
1323
1324         file-has-acl: use acl_extended_file_nofollow if available
1325         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
1326         (acl_extended_file): New macro.
1327         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
1328         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
1329
1330 2011-07-21  Bruno Haible  <bruno@clisp.org>
1331
1332         Declare system functions in a way that works with C++.
1333         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
1334         declare fdopendir as extern "C".
1335         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
1336         declare frexpl as extern "C".
1337         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
1338         declare gai_strerror as extern "C".
1339         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
1340         programs, declare gai_strerror as extern "C".
1341         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
1342         declare getlogin_r as extern "C".
1343         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
1344         as extern "C".
1345         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
1346         declare ldexpl as extern "C".
1347         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
1348         as extern "C".
1349         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
1350         program, declare getmntinfo as extern "C".
1351         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
1352         stpncpy as extern "C".
1353         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
1354         program, declare __xpg_strerror_r as extern "C".
1355         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
1356         strndup as extern "C".
1357         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
1358         declare memset and bzero as extern "C".
1359         Reported by Sam Steingold <sds@gnu.org>.
1360
1361 2011-07-12  Jim Meyering  <meyering@redhat.com>
1362
1363         maint.mk: prohibit inclusion of "verify.h" without use
1364         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
1365
1366 2011-07-19  Pádraig Brady  <P@draigBrady.com>
1367
1368         timer-time: A new module to check for timer_settime()
1369         * m4/timer_time.m4: Check for the posix function.
1370         * modules/timer-time: Add the new module.
1371         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
1372         Mention it.
1373
1374 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
1375             Bruno Haible  <bruno@clisp.org>
1376
1377         pthread_sigmask: assume POSIX threads if --avoid=threadlib
1378         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
1379         not defined, assume POSIX threads and look for pthread_sigmask in
1380         $LIBS, without changing $CPPFLAGS.
1381
1382 2011-07-19  Bruno Haible  <bruno@clisp.org>
1383
1384         strstr: Update cross-compilation guess.
1385         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
1386         CPUs, guess no, in view of glibc
1387         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
1388         Suggested by Eric Blake. Reported by Reuben Thomas.
1389
1390 2011-07-19  Pádraig Brady  <P@draigBrady.com>
1391
1392         getopt-gnu: suppress core dumps from detection code
1393         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
1394         to suppress core dumps that may well occur on glibc systems.
1395         * modules/getopt-gnu: Depend on nocrash.
1396
1397 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
1398
1399         pthread_sigmask: ensure usleep is declared
1400         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
1401         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
1402
1403 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
1404
1405         doc: Document NonStop portability issues.
1406         * doc/posix-functions/sigaction.texi (sigaction):
1407         * doc/posix-headers/signal.texi (signal.h):
1408         Document NonStop.  See Joachim Schmitz in
1409         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
1410
1411 2011-07-15  Bruno Haible  <bruno@clisp.org>
1412
1413         ffsl, ffsll: Avoid unportable behaviour.
1414         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
1415
1416 2011-07-15  Bruno Haible  <bruno@clisp.org>
1417
1418         ffs: More tests.
1419         * tests/test-ffs.c (NBITS): New macro.
1420         (main): Add more tests.
1421         * tests/test-ffsl.c (NBITS): New macro.
1422         (main): Add more tests.
1423         * tests/test-ffsll.c (NBITS): New macro.
1424         (main): Add more tests.
1425
1426 2011-07-15  Eric Blake  <eblake@redhat.com>
1427
1428         ffsl, ffsll: new modules
1429         * modules/ffsl: New file.
1430         * modules/ffsll: Likewise.
1431         * m4/ffsl.m4: Likewise.
1432         * m4/ffsll.m4: Likewise.
1433         * lib/ffsl.c: Likewise.
1434         * lib/ffsl.h: Likewise.
1435         * lib/ffsll.c: Likewise.
1436         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
1437         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
1438         * modules/string (Makefile.am): Substitute witnesses.
1439         * lib/strings.in.h (ffsl, ffsll): Declare.
1440         * modules/ffsl-tests: New test file.
1441         * modules/ffsll-tests: Likewise.
1442         * tests/test-ffsl.c: Likewise.
1443         * tests/test-ffsll.c: Likewise.
1444         * MODULES.html.sh (Integer arithmetic functions): Mention it.
1445         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
1446         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
1447
1448         ffs: fix m4 prerequisite
1449         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
1450
1451         ffs: avoid undefined behavior
1452         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
1453         * tests/test-ffs.c (naive, main): Avoid signed shifts.
1454         Reported by Bruno Haible.
1455
1456 2011-07-12  Bruno Haible  <bruno@clisp.org>
1457
1458         pthread_sigmask: Rely on module 'threadlib'.
1459         * modules/pthread_sigmask (Depends-on): Add threadlib.
1460         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
1461         is defined.
1462
1463 2011-07-12  Bruno Haible  <bruno@clisp.org>
1464
1465         regex: Depend on module 'strcase'.
1466         * modules/regex (Depends-on): Add strcase, for strcasecmp().
1467
1468 2011-07-12  Jim Meyering  <meyering@redhat.com>
1469
1470         warn-on-use: fix typo in file name
1471         * modules/snippet/warn-on-use (Files): Correct file name:
1472         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
1473
1474 2011-07-12  Bruno Haible  <bruno@clisp.org>
1475
1476         strings: Document module.
1477         * doc/posix-headers/strings.texi: Mention module 'strings'.
1478
1479 2011-07-12  Bruno Haible  <bruno@clisp.org>
1480
1481         Rename module '_Noreturn' to 'snippet/_Noreturn'.
1482         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
1483         (Files, Makefile.am): Update.
1484         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
1485         * modules/stdlib (Depends-on): Update.
1486
1487 2011-07-12  Bruno Haible  <bruno@clisp.org>
1488
1489         * NEWS: Mention the changes.
1490
1491         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
1492         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
1493         (Files, Makefile.am): Update.
1494         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
1495         * modules/arpa_inet (Depends-on): Update.
1496         * modules/ctype (Depends-on): Update.
1497         * modules/dirent (Depends-on): Update.
1498         * modules/fcntl-h (Depends-on): Update.
1499         * modules/glob (Depends-on): Update.
1500         * modules/iconv-h (Depends-on): Update.
1501         * modules/inttypes-incomplete (Depends-on): Update.
1502         * modules/langinfo (Depends-on): Update.
1503         * modules/locale (Depends-on): Update.
1504         * modules/math (Depends-on): Update.
1505         * modules/netdb (Depends-on): Update.
1506         * modules/poll-h (Depends-on): Update.
1507         * modules/pty (Depends-on): Update.
1508         * modules/search (Depends-on): Update.
1509         * modules/signal (Depends-on): Update.
1510         * modules/spawn (Depends-on): Update.
1511         * modules/stdio (Depends-on): Update.
1512         * modules/stdlib (Depends-on): Update.
1513         * modules/string (Depends-on): Update.
1514         * modules/strings (Depends-on): Update.
1515         * modules/sys_file (Depends-on): Update.
1516         * modules/sys_ioctl (Depends-on): Update.
1517         * modules/sys_select (Depends-on): Update.
1518         * modules/sys_socket (Depends-on): Update.
1519         * modules/sys_stat (Depends-on): Update.
1520         * modules/sys_time (Depends-on): Update.
1521         * modules/sys_times (Depends-on): Update.
1522         * modules/sys_utsname (Depends-on): Update.
1523         * modules/sys_wait (Depends-on): Update.
1524         * modules/termios (Depends-on): Update.
1525         * modules/time (Depends-on): Update.
1526         * modules/unistd (Depends-on): Update.
1527         * modules/wchar (Depends-on): Update.
1528         * modules/wctype-h (Depends-on): Update.
1529         * MODULES.html.sh (Support for building libraries and executables):
1530         Update.
1531
1532         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
1533         * modules/snippet/unused-parameter: Renamed from
1534         modules/unused-parameter.
1535         (Files, Makefile.am): Update.
1536         * build-aux/snippet/unused-parameter.h: Renamed from
1537         build-aux/unused-parameter.h.
1538         * modules/selinux-h (Depends-on): Update.
1539         * modules/unistr/base (Depends-on): Update.
1540         * MODULES.html.sh (Core language properties): Update.
1541
1542         Rename module 'link-warning' to 'snippet/link-warning'.
1543         * modules/snippet/link-warning: Renamed from modules/link-warning.
1544         (Files, Makefile.am): Update.
1545         * build-aux/snippet/link-warning.h: Renamed from
1546         build-aux/link-warning.h.
1547         * MODULES.html.sh (Support for building libraries and executables):
1548         Update.
1549
1550         Rename module 'c++defs' to 'snippet/c++defs'.
1551         * modules/snippet/c++defs: Renamed from modules/c++defs.
1552         (Files, Makefile.am): Update.
1553         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
1554         * modules/arpa_inet (Depends-on): Update.
1555         * modules/ctype (Depends-on): Update.
1556         * modules/dirent (Depends-on): Update.
1557         * modules/fcntl-h (Depends-on): Update.
1558         * modules/glob (Depends-on): Update.
1559         * modules/iconv-h (Depends-on): Update.
1560         * modules/langinfo (Depends-on): Update.
1561         * modules/locale (Depends-on): Update.
1562         * modules/math (Depends-on): Update.
1563         * modules/netdb (Depends-on): Update.
1564         * modules/poll-h (Depends-on): Update.
1565         * modules/pty (Depends-on): Update.
1566         * modules/search (Depends-on): Update.
1567         * modules/signal (Depends-on): Update.
1568         * modules/spawn (Depends-on): Update.
1569         * modules/stdio (Depends-on): Update.
1570         * modules/stdlib (Depends-on): Update.
1571         * modules/string (Depends-on): Update.
1572         * modules/strings (Depends-on): Update.
1573         * modules/sys_ioctl (Depends-on): Update.
1574         * modules/sys_select (Depends-on): Update.
1575         * modules/sys_socket (Depends-on): Update.
1576         * modules/sys_stat (Depends-on): Update.
1577         * modules/sys_time (Depends-on): Update.
1578         * modules/sys_wait (Depends-on): Update.
1579         * modules/termios (Depends-on): Update.
1580         * modules/time (Depends-on): Update.
1581         * modules/unistd (Depends-on): Update.
1582         * modules/wchar (Depends-on): Update.
1583         * modules/wctype-h (Depends-on): Update.
1584
1585         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
1586         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
1587         (Files, Makefile.am): Update.
1588         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
1589         * modules/argv-iter (Depends-on): Update.
1590         * modules/arpa_inet (Depends-on): Update.
1591         * modules/dirent (Depends-on): Update.
1592         * modules/fcntl-h (Depends-on): Update.
1593         * modules/fnmatch (Depends-on): Update.
1594         * modules/getopt-posix (Depends-on): Update.
1595         * modules/glob (Depends-on): Update.
1596         * modules/iconv-h (Depends-on): Update.
1597         * modules/inttypes-incomplete (Depends-on): Update.
1598         * modules/locale (Depends-on): Update.
1599         * modules/math (Depends-on): Update.
1600         * modules/netdb (Depends-on): Update.
1601         * modules/search (Depends-on): Update.
1602         * modules/signal (Depends-on): Update.
1603         * modules/spawn (Depends-on): Update.
1604         * modules/stdio (Depends-on): Update.
1605         * modules/stdlib (Depends-on): Update.
1606         * modules/string (Depends-on): Update.
1607         * modules/strings (Depends-on): Update.
1608         * modules/sys_socket (Depends-on): Update.
1609         * modules/sys_stat (Depends-on): Update.
1610         * modules/sys_time (Depends-on): Update.
1611         * modules/sys_times (Depends-on): Update.
1612         * modules/sys_utsname (Depends-on): Update.
1613         * modules/time (Depends-on): Update.
1614         * modules/unistd (Depends-on): Update.
1615         * modules/wchar (Depends-on): Update.
1616         * MODULES.html.sh (Support for building libraries and executables):
1617         Update.
1618
1619 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
1620
1621         Improvements on _Noreturn and related modules.
1622
1623         modules/_Exit-tests: test _Noreturn too
1624         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
1625         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
1626         (main): Use them.
1627
1628         stdnoreturn, stdnoreturn-tests: remove modules
1629         They're not needed here and a bit premature for use elsewhere.  See
1630         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
1631         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
1632         * tests/test-stdnoreturn.c: Remove files.
1633         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
1634         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
1635         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
1636         and using noreturn.
1637         * modules/openat, modules/sigpipe-die, modules/xalloc:
1638         * modules/xmemdup0, modules/xstrtol:
1639         Remove dependency on stdnoreturn.
1640
1641         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
1642         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
1643         Reparenthesize to avoid GCC warning.
1644         Support Microsoft's syntax.
1645         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
1646
1647         _Noreturn-tests: remove module
1648         * modules/_Noreturn-tests: Remove.
1649         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
1650         * tests/test-_Noreturn.c: Remove.
1651         * tests/test-stdnoreturn.c: Merge from the old
1652         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
1653
1654 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
1655
1656         _Noreturn, stdnoreturn, and related modules.
1657
1658         * top/maint.mk: Adjust to new noreturn support.
1659         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
1660         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
1661
1662         xalloc: use stdnoreturn.h
1663         * lib/xalloc.h: Include <stdnoreturn.h>.
1664         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
1665         * modules/xalloc (Depends-on): Add stdnoreturn.
1666
1667         xstrtol: use stdnoreturn.h
1668         * lib/xstrtol.h: Include <stdnoreturn.h>.
1669         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
1670         * modules/xstrtol (Depends-on): Add stdnoreturn.
1671
1672         xmemdup0: use stdnoreturn.h
1673         * lib/xmemdup0.h: Include <stdnoreturn.h>.
1674         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
1675         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
1676
1677         sigpipe-die: use stdnoreturn.h
1678         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
1679         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
1680         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
1681
1682         openat: use stdnoreturn.h
1683         * lib/openat.h: Include <stdnoreturn.h>.
1684         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
1685         * modules/openat (Depends-on): Add stdnoreturn.
1686
1687         * lib/openat-die.c (openat_save_fail): Modernize comment.
1688
1689         * lib/xalloc-die.c (xalloc_die): Modernize comment.
1690
1691         * lib/glthread/thread.h: Modernize comment.
1692
1693         obstack: use _Noreturn
1694         * lib/obstack.c (__attribute__): Remove macro.
1695         (print_and_abort): Use _Noreturn.
1696
1697         c-stack: use _Noreturn
1698         * lib/c-stack.c (die, overflow_handler, segv_handler):
1699         Use _Noreturn rather than __attribute__((noreturn)).
1700
1701         argmatch-tests, exclude_tests: use _Noreturn
1702         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
1703         Remove.
1704         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
1705
1706         stdlib: use _Noreturn
1707         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
1708         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
1709         * modules/stdlib (Depends-on): Add _Noreturn.
1710         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
1711
1712         stdnoreturn-tests: new module
1713         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
1714
1715         stdnoreturn: new module
1716         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
1717         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
1718
1719         _Noreturn-tests: new module
1720         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
1721
1722         _Noreturn: new module
1723         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
1724         New section, mentioning it.
1725         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
1726
1727         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
1728
1729 2011-07-11  Eric Blake  <eblake@redhat.com>
1730
1731         ffs: new module
1732         * modules/ffs: New file.
1733         * m4/ffs.m4: Likewise.
1734         * lib/ffs.c: Likewise.
1735         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
1736         * modules/strings (Makefile.am): Substitute witness.
1737         (Depends-on): Add c++defs.
1738         * lib/strings.in.h (ffs): Declare.
1739         * modules/ffs-tests: New test file.
1740         * tests/test-ffs.c: Test new module.
1741         * MODULES.html.sh (Integer arithmetic functions): Mention it.
1742         * doc/posix-functions/ffs.texi (ffs): Likewise.
1743
1744         regex: avoid compiler warning
1745         * lib/regex.c (includes): Include <strings.h>, for use of
1746         strcasecmp in regcomp.c.
1747         Reported by Joachim Schmitz.
1748
1749 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
1750
1751         stdint: respect system's intmax_t if INTMAX_MAX
1752         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
1753         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
1754         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
1755         long but int64_t is long long, and where we will clash with the
1756         system intmax_t if we override it.  See
1757         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
1758         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
1759         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
1760         similarly for UINTMAX_C.
1761
1762 2011-07-08  Bruno Haible  <bruno@clisp.org>
1763
1764         pthread_sigmask tests: Avoid a compiler warning.
1765         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
1766         non-zero.
1767
1768         sigprocmask tests: A better way to avoid a compiler warning.
1769         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
1770         (main): Complain if system() returns non-zero.
1771         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
1772
1773 2011-07-08  Bruno Haible  <bruno@clisp.org>
1774
1775         pthread_sigmask: Work around IRIX bug.
1776         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
1777         bug.
1778         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
1779         there may be unblocked pending signals.
1780         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
1781
1782 2011-07-08  Bruno Haible  <bruno@clisp.org>
1783
1784         pthread_sigmask: Work around Cygwin bug.
1785         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
1786         bug.
1787         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
1788         the system's pthread_sigmask function.
1789         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
1790
1791 2011-07-08  Bruno Haible  <bruno@clisp.org>
1792
1793         pthread_sigmask: Work around bug in single-threaded implementation.
1794         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
1795         FreeBSD, HP-UX, Solaris bug.
1796         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
1797         * lib/pthread_sigmask.c: Include <stddef.h>.
1798         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
1799         the system's pthread_sigmask function.
1800         * modules/pthread_sigmask (configure.ac): Invoke
1801         gl_PREREQ_PTHREAD_SIGMASK.
1802         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
1803         HP-UX, Solaris.
1804
1805 2011-07-08  Eric Blake  <eblake@redhat.com>
1806
1807         test-sigprocmask: avoid compiler warning
1808         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
1809         * tests/test-sigprocmask.c (main): Use it to silence warning.
1810         Reported by Jim Meyering.
1811
1812         test-snprintf: avoid compiler warning
1813         * tests/test-snprintf.c (main): Avoid shadowed declaration.
1814         * tests/test-vsnprintf.c (main): Likewise.
1815         Reported by Jim Meyering.
1816
1817 2011-07-08  Bruno Haible  <bruno@clisp.org>
1818
1819         Tests for module 'pthread_sigmask'.
1820         * modules/pthread_sigmask-tests: New file.
1821         * tests/test-pthread_sigmask1.c: New file, based on
1822         tests/test-sigprocmask.c.
1823         * tests/test-pthread_sigmask2.c: New file.
1824
1825 2011-07-08  Jim Meyering  <meyering@redhat.com>
1826
1827         test-getopt.h: avoid warning about an unused variable
1828         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
1829
1830 2011-07-07  Jim Meyering  <meyering@redhat.com>
1831
1832         maint: reduce list of files exempt from sc_prohibit_leading_TABs
1833         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
1834         now that it no longer contains leading TABs.
1835         Remove unused "url=FIXME" statement.
1836
1837 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
1838
1839         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
1840         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
1841         When gl_THREADLIB is not in use, assume that the POSIX sematics
1842         are desired.  This is better for Emacs, which uses POSIX semantics
1843         on GNUish and/or POSIXish platforms, and does not use threads at
1844         all otherwise.
1845
1846         pthread_sigmask: fix typo when testing for libraries
1847         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
1848         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
1849
1850 2011-07-08  Eric Blake  <eblake@redhat.com>
1851
1852         fts: introduce FTS_NOATIME
1853         * lib/fts_.h (FTS_NOATIME): New bit flag.
1854         (FTS_OPTIONMASK): Adjust.
1855         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
1856         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
1857
1858 2011-07-08  Bruno Haible  <bruno@clisp.org>
1859
1860         Tests for module 'thread'.
1861         * modules/thread-tests: New file.
1862         * tests/test-thread_self.c: New file.
1863         * tests/test-thread_create.cc: New file.
1864
1865 2011-07-08  Bruno Haible  <bruno@clisp.org>
1866
1867         thread: Avoid gcc warnings when using gl_thread_self().
1868         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
1869         'void *'.
1870         (gl_thread_self_pointer): Update.
1871
1872 2011-07-07  Bruno Haible  <bruno@clisp.org>
1873
1874         signal-c++-tests: Check declaration of pthread_sigmask.
1875         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
1876         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
1877         $(LIB_PTHREAD_SIGMASK).
1878
1879 2011-07-07  Bruno Haible  <bruno@clisp.org>
1880
1881         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
1882         * lib/signal.in.h (pthread_sigmask): Override if
1883         REPLACE_PTHREAD_SIGMASK is 1.
1884         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
1885         REPLACE_PTHREAD_SIGMASK.
1886         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
1887         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
1888         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
1889         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
1890         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
1891
1892 2011-07-07  Bruno Haible  <bruno@clisp.org>
1893
1894         pthread_sigmask: Ensure declaration in <signal.h>.
1895         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
1896         include <pthread.h>.
1897         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
1898         problem.
1899
1900 2011-07-07  Bruno Haible  <bruno@clisp.org>
1901
1902         pthread_sigmask: Document the module.
1903         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
1904
1905 2011-07-07  Bruno Haible  <bruno@clisp.org>
1906
1907         pthread_sigmask: Follow gnulib conventions.
1908         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
1909         gl_PTHREAD_SIGMASK.
1910         * modules/pthread_sigmask (configure.ac): Update.
1911
1912 2011-07-07  Bruno Haible  <bruno@clisp.org>
1913
1914         pthread_sigmask: Make declaration C++ safe.
1915         * lib/signal.in.h: In two special conditions, just do an #include_next.
1916         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
1917         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
1918         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
1919         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
1920         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
1921         not REPLACE_PTHREAD_MASK.
1922         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
1923         not REPLACE_PTHREAD_MASK.
1924         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
1925
1926 2011-07-07  Bruno Haible  <bruno@clisp.org>
1927
1928         pthread_sigmask: Fix return value.
1929         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
1930         * lib/pthread_sigmask.c: New file.
1931         * modules/pthread_sigmask (Files): Add it.
1932         (configure.ac): Invoke AC_LIBOBJ.
1933
1934 2011-07-07  Eric Blake  <eblake@redhat.com>
1935
1936         getopt: more portable argv creation
1937         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
1938         const, use char arrays rather than strings.
1939         Suggested by Paul Eggert.
1940
1941 2011-07-07  Bruno Haible  <bruno@clisp.org>
1942
1943         Tests for module 'sigprocmask'.
1944         * modules/sigprocmask-tests: New file.
1945         * tests/test-sigprocmask.c: New file.
1946
1947 2011-07-07  Bruno Haible  <bruno@clisp.org>
1948
1949         float tests: Tweak.
1950         * tests/test-float.c (main): Tweak skip message.
1951
1952 2011-07-07  Eric Blake  <eblake@redhat.com>
1953
1954         getopt: avoid compiler warning during configure
1955         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
1956         assigning string literals to non-const pointer.
1957
1958         getopt-gnu: avoid crash in glibc getopt
1959         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
1960         * tests/test-getopt.h (test_getopt): Enhance test.
1961         * tests/test-getopt_long.h (test_getopt_long): Likewise.
1962         * doc/posix-functions/getopt.texi (getopt): Document it.
1963         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
1964         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
1965         Likewise.
1966
1967 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
1968
1969         getopt: handle W; without long options in getopt [BZ #12922]
1970         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
1971         but no long options are defined, just return 'W'.
1972
1973 2011-07-07  Bruno Haible  <bruno@clisp.org>
1974
1975         Avoid literal tabs.
1976         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
1977         variable containing a tab instead of a literal tab.
1978         Reported by Jim Meyering.
1979
1980 2011-07-07  Bruno Haible  <bruno@clisp.org>
1981
1982         Comments.
1983         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
1984
1985 2011-07-06  Bruno Haible  <bruno@clisp.org>
1986
1987         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
1988         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
1989         <winsock2.h>.
1990         (rpl_fd_isset, FD_ISSET): New definitions, copied from
1991         lib/sys_socket.in.h.
1992         (close, gethostname): Hide declarations from <winsock2.h>.
1993         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
1994         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
1995         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
1996         (select): Don't override if gnulib's <sys/select.h> was already
1997         included.
1998         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
1999         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
2000         setsockopt, shutdown, select): Tweak indentation.
2001
2002 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
2003
2004         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
2005         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
2006         in an application that does not use the sys_select module.
2007
2008 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
2009
2010         poll: do not return 0 on timeout=-1
2011         * lib/poll.c: Loop with yield if no events occured
2012
2013 2011-07-06  Eric Blake  <eblake@redhat.com>
2014
2015         pthread_sigmask: always replace when not using pthread
2016         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
2017         replacement when using some threading other than pthread.  Fix
2018         logic bug.
2019
2020 2011-07-06  Bruno Haible  <bruno@clisp.org>
2021
2022         Comments.
2023         * m4/printf.m4: Update comments about mingw.
2024
2025 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
2026
2027         sys_select: define sigset_t more portably
2028         * lib/sys_select.in.h: Always include <sys/types.h>, since
2029         we now need sigset_t and mingw defines it there.
2030         Include <signal.h> before split inclusion guard, to avoid
2031         mishaps on Solaris, whose <signal.h> eventually includes us.
2032         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
2033         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
2034         which come from ...
2035         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
2036         gl_CHECK_TYPE_SIGSET_T.
2037         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
2038         does the real work.
2039         * modules/sys_select (Depends-on): Add 'signal'.
2040
2041         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
2042         Suggested by Bruno Haible.
2043
2044         pselect: Use pthread_sigmask, not sigprocmask.
2045         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
2046         multithreaded apps better than sigprocmask does.
2047         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
2048         sigprocmask directly.
2049
2050 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
2051
2052         * lib/pselect.c (pselect): Use plain name, without "rpl_".
2053         Don't #undef,  since we don't need any underlying pselect.
2054         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
2055         (Depends-on): Add select.
2056         (Link): Add $(LIBSOCKET).
2057         These changes suggested by Bruno Haible.
2058
2059         pselect: document better
2060         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
2061         * doc/posix-functions/pselect.texi (pselect): Document new module.
2062
2063         pthread_sigmask: new module
2064         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
2065         * doc/posix-functions/pthread_sigmask.texi: Document new module.
2066         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
2067         This is done only as a macro; I don't know how well that'll
2068         work for C++.  Move <sys/types.h> include before the include_next,
2069         to avoid mishap on Solaris.
2070         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
2071         * modules/signal (Makefile.am): Substitute the check's results.
2072         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
2073
2074         test-pselect: new module
2075         * modules/pselect-tests, tests/test-pselect.c: New files.
2076         * tests/test-select.c, tests/test-sys_select-c++.cc:
2077         If TEST_PSELECT is defined, test pselect instead of testing select.
2078
2079         * tests/test-sys_select.c (sigset_t): Test for it, too.
2080         Suggested by Bruno Haible.
2081
2082 2011-07-05  Eric Blake  <eblake@redhat.com>
2083
2084         snprintf: guarantee %1$d, for libintl
2085         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
2086         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
2087         * doc/posix-functions/snprintf.texi (snprintf): Update.
2088         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
2089         * tests/test-snprintf.c (main): Enhance test.
2090         * tests/test-vsnprintf.c (main): Likewise.
2091
2092 2011-07-05  Jim Meyering  <meyering@redhat.com>
2093
2094         maint: exempt stdio-read.c and stdio-write.c from the cppi check
2095         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
2096         per Bruno's request, to accommodate this idiom (no space after "#")
2097         even when the function is inside an #if block:
2098         char *
2099         gets (char *s)
2100         #undef gets
2101         {
2102           ...
2103         }
2104
2105 2011-07-04  Jim Meyering  <meyering@redhat.com>
2106
2107         maint: indent with spaces, not TABs, and add a rule to check this
2108         * tests/test-userspec.c: Indent with spaces, not TABs.
2109         * tests/test-argp.c: Likewise.
2110         * tests/test-c-stack2.sh: Likewise.
2111         * tests/test-parse-duration.sh: Likewise
2112         * m4/strtod.m4: Likewise.
2113         * m4/alloca.m4: Likewise.
2114         * m4/pselect.m4: Likewise.
2115         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
2116
2117 2011-07-03  Jim Meyering  <meyering@redhat.com>
2118
2119         maint.mk: correct omissions in prohibit_argmatch_without_use check
2120         This rule would mistakenly report that argmatch.h is included without
2121         use even when both the argmatch and invalid_arg macro were used.
2122         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
2123         of argmatch and invalid_arg.
2124
2125 2011-07-03  Bruno Haible  <bruno@clisp.org>
2126
2127         Comments about EINTR.
2128         * lib/safe-read.h: Explain the purpose of this module.
2129         * lib/safe-write.h: Likewise.
2130         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
2131         module.
2132         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
2133         module.
2134         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
2135
2136 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
2137
2138         xnanosleep: Rewrite to use new dtotimespec module.
2139         It has the conversion code that used to be in xnanosleep.
2140         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
2141         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
2142         (TIME_T_MAX): Remove.
2143         (xnanosleep): Rewrite in terms of dtotimespec.
2144         * modules/xnanosleep (Depends-on): Add dtotimespec.
2145         Remove intprops, stdbool.
2146
2147         timespec-add, timespec-sub: new modules
2148         * lib/timespec.h (timespec_add, timespec_sub): New decls.
2149         * lib/timespec-add.c, lib/timespec-sub.c:
2150         * modules/timespec-add, modules/timespec-sub: New files.
2151
2152         dtotimespec: new module
2153         * lib/timespec.h (dtotimespec): New decl.
2154         * lib/dtotimespec.c, modules/dtotimespec: New files.
2155
2156         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
2157
2158         pselect: new module
2159         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
2160         (pselect): New decls.
2161         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
2162         since the standard pselect decl uses 'restrict'.
2163         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
2164         HAVE_PSELECT, REPLACE_PSELECT.
2165         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
2166         HAVE_PSELECT, REPLACE_PSELECT.
2167         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
2168
2169         sys_select: don't depend on sys_socket
2170         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
2171         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
2172         This fix works on GNU and GNU-like platforms, but has not been tested
2173         on native Windows.
2174         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
2175         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
2176         gl_HEADER_SYS_SOCKET.
2177         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
2178         gl_PREREQ_SYS_H_WINSOCK2.
2179
2180 2011-06-29  Eric Blake  <eblake@redhat.com>
2181
2182         pipe2: fix C89 compile problem
2183         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
2184         Reported by Bruno Haible.
2185
2186         pipe, pipe2: don't corrupt fd on error
2187         * lib/pipe.c (pipe): Leave fd unchanged on error.
2188         * lib/pipe2.c (pipe2): Likewise.
2189         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
2190         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
2191
2192 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
2193
2194         mmap-anon: do not use regular expressions inadvertently
2195         * m4/mmap-anon.m4: Remove trailing period from strings sought
2196         in the output.
2197
2198 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
2199
2200         nanosleep: fix integer overflow problem
2201         * lib/nanosleep.c (my_usleep): Don't assume signed integer
2202         arithmetic wraps around on overflow.
2203
2204         nanosleep: simplify carrying
2205         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
2206         first call to the underyling nanosleep, not for the last one.
2207         This doesn't fix any bugs, but it simplifies the computation of
2208         the remaining delay.  Found while auditing integer overflow issues.
2209
2210         dup2: remove test for existence of fcntl
2211         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
2212         "#if HAVE_FCNTL", in the configure-time test program.
2213         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
2214         and therefore speeds up "configure" a bit.  Found while
2215         adding the dup2 module to Emacs.
2216
2217 2011-06-24  Eric Blake  <eblake@redhat.com>
2218
2219         maint.mk: enhance useless header checks
2220         * top/maint.mk (_sc_header_without_use): Check both include
2221         styles.
2222         (sc_prohibit_assert_without_use)
2223         (sc_prohibit_close_stream_without_use)
2224         (sc_prohibit_getopt_without_use)
2225         (sc_prohibit_quotearg_without_use)
2226         (sc_prohibit_quote_without_use)
2227         (sc_prohibit_long_options_without_use)
2228         (sc_prohibit_inttostr_without_use)
2229         (sc_prohibit_ignore_value_without_use)
2230         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
2231         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
2232         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
2233         (sc_prohibit_hash_pjw_without_use)
2234         (sc_prohibit_safe_read_without_use)
2235         (sc_prohibit_argmatch_without_use)
2236         (sc_prohibit_canonicalize_without_use)
2237         (sc_prohibit_root_dev_ino_without_use)
2238         (sc_prohibit_openat_without_use)
2239         (sc_prohibit_c_ctype_without_use)
2240         (sc_prohibit_signal_without_use)
2241         (sc_prohibit_stdio--_without_use)
2242         (sc_prohibit_stdio-safer_without_use)
2243         (sc_prohibit_strings_without_use)
2244         (sc_prohibit_intprops_without_use)
2245         (sc_prohibit_stddef_without_use)
2246         (sc_prohibit_xfreopen_without_use): Update clients.
2247
2248 2011-06-24  Jim Meyering  <meyering@redhat.com>
2249
2250         syntax-check: keep one maint.mk rule in sync with its header
2251         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
2252         of the bug Eric has just fixed, with today's commit 25e4c2ec.
2253         I prefer to avoid temporary files here, so use <(...), but that
2254         is not supported by /bin/sh, so...
2255         (SHELL): Define to /bin/bash.
2256
2257 2011-06-24  Eric Blake  <eblake@redhat.com>
2258
2259         maint.mk: update sc_prohibit_intprops_without_use
2260         * top/maint.mk (_intprops_names): Match recent changes.
2261
2262 2011-06-24  Bruno Haible  <bruno@clisp.org>
2263
2264         strerror-override: No-op tweak.
2265         * lib/strerror-override.h (strerror_override): Reorder conditions,
2266         for consistency with lib/strerror-override.c.
2267
2268 2011-06-23  Eric Blake  <eblake@redhat.com>
2269
2270         maint.mk: test further PATH_MAX issues
2271         * top/maint.mk (sc_prohibit_path_max_array): Rename...
2272         (sc_prohibit_path_max_allocation): ...and also test alloca.
2273         Suggested by Jim Meyering.
2274
2275 2011-06-22  Eric Blake  <eblake@redhat.com>
2276
2277         maint.mk: add syntax-check to avoid char[PATH_MAX]
2278         * top/maint.mk (sc_prohibit_path_max_array): New rule.
2279
2280         stat: be robust to PATH_MAX definition
2281         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
2282         * modules/stat (Depends-on): Add verify.
2283
2284         link: work around IRIX bug
2285         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
2286         * lib/link.c (rpl_link): Work around it.
2287         * tests/test-link.h (test_link): Enhance test.
2288         * doc/posix-functions/link.texi (link): Document the bug.
2289
2290         getopt: silence clang warning
2291         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
2292         dereference.
2293         Reported by Gustavo Martin Domato.
2294
2295 2011-06-22  Jim Meyering  <meyering@redhat.com>
2296
2297         bootstrap: do not insert a blank line into each .gitignore file
2298         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
2299
2300 2011-06-21  Eric Blake  <eblake@redhat.com>
2301
2302         perror: test for output mismatch
2303         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
2304         perror on IRIX.
2305
2306         strerror_r: fix OpenBSD behavior on out-of-range
2307         * lib/strerror_r.c (strerror_r): Always use maximal string.
2308         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
2309
2310         strerror_r: fix OpenBSD behavior on 0
2311         * lib/strerror-override.c (strerror_override): Also override 0
2312         when needed.
2313         * lib/strerror-override.h (strerror_override): Likewise.
2314         * lib/strerror.c (strerror): Simplify, now that 0 override is done
2315         earlier.
2316         * lib/strerror_r.c (strerror_r): Likewise.
2317         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
2318         behavior...
2319         (gl_FUNC_STRERROR_0): ...into new macro.
2320         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
2321         is overridden.
2322         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
2323         * modules/strerror-override (Files): Add strerror.m4.
2324         (configure.ac): Also provide override for 0 when needed.
2325         * doc/posix-functions/strerror.texi (strerror): Document this.
2326         * doc/posix-functions/perror.texi (perror): Likewise.
2327
2328         perror: adjust array size
2329         * modules/perror (Depends-on): Add strerror-override.
2330         * lib/perror.c (perror): Use it to avoid magic number.
2331
2332         strerror-override: reduce size
2333         * lib/strerror-override.c (strerror_override): Use fewer lines.
2334
2335 2011-06-20  Bruno Haible  <bruno@clisp.org>
2336
2337         pathmax: Ensure correct value for PATH_MAX on HP-UX.
2338         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
2339
2340 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
2341
2342         alloca: port to compilers that can optimize like GCC 4.6.0
2343         * lib/alloca.c (find_stack_direction): New signature, taken from
2344         Autoconf git.  This works with GCC 4.6.0.  This code should never
2345         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
2346         be used with other compilers that optimize as well as GCC 4.6.0 does.
2347         (alloca): Adjust to new signature.
2348         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
2349         New macro, which patches Autoconf in a similar way.
2350
2351         c-stack: stop worrying about stack direction
2352         * lib/c-stack.c (find_stack_direction): Remove.
2353         (segv_handler): Don't worry about stack direction growth, as it's
2354         too much of a pain to configure this correctly, given how compilers
2355         are optimizing-away our stack-growth detection code.  Instead, assume
2356         that any access to just before or just after the stack is OK.
2357         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
2358         Don't require AC_FUNC_ALLOCA; no longer needed.
2359
2360 2011-06-20  Eric Blake  <eblake@redhat.com>
2361
2362         test-stat: don't allocate PATH_MAX bytes
2363         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
2364         PATH_MAX-sized buffer.
2365         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
2366         * modules/stat-tests (Depends-on): Likewise.
2367         * tests/test-fstatat.c (includes): Drop pathmax.h.
2368         * tests/test-stat.c (includes): Likewise.
2369         Reported by Bruno Haible.
2370
2371 2011-06-20  Bruno Haible  <bruno@clisp.org>
2372
2373         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
2374         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
2375         * lib/float.c: New file.
2376         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
2377         REPLACE_FLOAT_LDBL.
2378         * modules/float (Files): Add lib/float.c.
2379         (configure.ac): Invoke AC_LIBOBJ.
2380         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
2381
2382 2011-06-20  Bruno Haible  <bruno@clisp.org>
2383
2384         Tests for module 'float'.
2385         * modules/float-tests: New file.
2386         * tests/test-float.c: New file.
2387
2388 2011-06-19  Bruno Haible  <bruno@clisp.org>
2389
2390         isinf: Coding style.
2391         * lib/isinf.c: Use GNU coding style.
2392
2393 2011-06-19  Bruno Haible  <bruno@clisp.org>
2394
2395         linkat test: Avoid test failure on AIX 7.1.
2396         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
2397         * tests/test-link.h (test_link): Likewise.
2398
2399 2011-06-19  Bruno Haible  <bruno@clisp.org>
2400
2401         pread test: Avoid test failure on OpenBSD 4.9.
2402         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
2403
2404 2011-06-19  Bruno Haible  <bruno@clisp.org>
2405
2406         sprintf-posix: Fix test failure on AIX 7.1.
2407         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
2408         * doc/posix-functions/dprintf.texi: Mention limited precision problem
2409         on AIX.
2410         * doc/posix-functions/fprintf.texi: Likewise.
2411         * doc/posix-functions/printf.texi: Likewise.
2412         * doc/posix-functions/snprintf.texi: Likewise.
2413         * doc/posix-functions/sprintf.texi: Likewise.
2414         * doc/posix-functions/vdprintf.texi: Likewise.
2415         * doc/posix-functions/vfprintf.texi: Likewise.
2416         * doc/posix-functions/vprintf.texi: Likewise.
2417         * doc/posix-functions/vsnprintf.texi: Likewise.
2418         * doc/posix-functions/vsprintf.texi: Likewise.
2419
2420 2011-06-19  Bruno Haible  <bruno@clisp.org>
2421
2422         roundl-ieee: Fix test failure on AIX 7.1.
2423         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
2424         * doc/posix-functions/roundl.texi: Mention problem with negative
2425         arguments.
2426
2427 2011-06-19  Bruno Haible  <bruno@clisp.org>
2428
2429         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
2430         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
2431         * doc/posix-functions/round.texi: Mention problem with negative
2432         arguments.
2433         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
2434
2435 2011-06-19  Bruno Haible  <bruno@clisp.org>
2436
2437         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
2438         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
2439         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
2440         * doc/posix-functions/roundf.texi: Mention problem with negative
2441         arguments.
2442         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
2443
2444 2011-06-19  Bruno Haible  <bruno@clisp.org>
2445
2446         ceilf-ieee: Work around bug on MacOS X 10.5.
2447         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
2448
2449         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
2450         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
2451         IEEE compliant, avoid compiler optimizations.
2452         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
2453         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
2454         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
2455         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
2456         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
2457         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
2458         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
2459         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
2460         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
2461         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
2462
2463 2011-06-19  Bruno Haible  <bruno@clisp.org>
2464
2465         ceilf-ieee: Work around bug on AIX 7.1.
2466         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
2467         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
2468
2469 2011-06-19  Bruno Haible  <bruno@clisp.org>
2470
2471         ceil-ieee: Work around bug on AIX 7.1.
2472         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
2473         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
2474
2475 2011-06-18  Bruno Haible  <bruno@clisp.org>
2476
2477         fsync test: Avoid test failure on MacOS X and AIX.
2478         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
2479         EINVAL.
2480
2481 2011-06-18  Bruno Haible  <bruno@clisp.org>
2482
2483         openat, fdopendir tests: Fix link errors.
2484         * modules/openat-tests (Depends-on): Add progname.
2485         * modules/fdopendir-tests (Depends-on): Likewise.
2486         * tests/test-fchownat.c: Include progname.h.
2487         (main): Call set_program_name.
2488         * tests/test-fstatat.c: Include progname.h.
2489         (main): Call set_program_name.
2490         * tests/test-mkdirat.c: Include progname.h.
2491         (main): Call set_program_name.
2492         * tests/test-openat.c: Include progname.h.
2493         (main): Call set_program_name.
2494         * tests/test-unlinkat.c: Include progname.h.
2495         (main): Call set_program_name.
2496         * tests/test-fdopendir.c: Include progname.h.
2497         (main): Call set_program_name.
2498
2499 2011-06-18  Bruno Haible  <bruno@clisp.org>
2500
2501         Doc update.
2502         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
2503         HP-UX.
2504         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
2505
2506 2011-06-18  Bruno Haible  <bruno@clisp.org>
2507
2508         getcwd tests: Avoid compilation error on HP-UX 11.31.
2509         * modules/getcwd-tests (Depends-on): Add pathmax.
2510         * tests/test-getcwd.c: Include pathmax.h.
2511
2512 2011-06-18  Bruno Haible  <bruno@clisp.org>
2513
2514         isfinite, isinf: Fix link error on AIX 6 and 7.
2515         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
2516         needed, also test the macro with a 'float' argument.
2517         * m4/isinf.m4 (gl_ISINF): Likewise.
2518
2519 2011-06-18  Bruno Haible  <bruno@clisp.org>
2520
2521         getloadavg: Don't clobber LIBS. Regression from previous commit.
2522         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
2523         AC_CHECK_LIB from here...
2524         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
2525         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
2526         gl_func_getloadavg_done.
2527         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2528
2529 2011-06-18  Bruno Haible  <bruno@clisp.org>
2530
2531         clean-temp: Improve documentation.
2532         * lib/clean-temp.h: Explain better how to use this module.
2533         Reported by John Darrington <john@darrington.wattle.id.au>.
2534
2535 2011-06-17  Bruno Haible  <bruno@clisp.org>
2536
2537         pread, pwrite: Avoid cc warning on AIX.
2538         * lib/unistd.in.h (pread): Undefine before defining as a macro.
2539         (pwrite): Likewise.
2540
2541 2011-06-17  Bruno Haible  <bruno@clisp.org>
2542
2543         spawn-pipe tests: Fix link error.
2544         * tests/test-spawn-pipe-child.c: Undefine fprintf.
2545         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2546
2547 2011-06-17  Bruno Haible  <bruno@clisp.org>
2548
2549         Tests: Remove unnecessary dependency.
2550         * modules/canonicalize-tests (Depends-on): Remove progname.
2551         * modules/chown-tests (Depends-on): Likewise.
2552         * modules/dirname-tests (Depends-on): Likewise.
2553         * modules/fdopendir-tests (Depends-on): Likewise.
2554         * modules/fdutimensat-tests (Depends-on): Likewise.
2555         * modules/hash-tests (Depends-on): Likewise.
2556         * modules/lchown-tests (Depends-on): Likewise.
2557         * modules/linkat-tests (Depends-on): Likewise.
2558         * modules/renameat-tests (Depends-on): Likewise.
2559         * modules/spawn-pipe-tests (Depends-on): Likewise.
2560         * modules/utimensat-tests (Depends-on): Likewise.
2561
2562 2011-06-17  Bruno Haible  <bruno@clisp.org>
2563
2564         spawn-pipe tests: Fix link error.
2565         * tests/test-spawn-pipe-child.c: Undefine fflush.
2566
2567 2011-06-17  Bruno Haible  <bruno@clisp.org>
2568
2569         Fix tests link errors.
2570         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
2571         * modules/chown-tests (Makefile.am): Don't link test-chown with
2572         LIBINTL.
2573         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
2574         LIBINTL.
2575         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
2576         LIBINTL.
2577         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
2578         LIBINTL.
2579
2580 2011-06-16  Bruno Haible  <bruno@clisp.org>
2581
2582         crypto/gc-sha1: Fix recent regression.
2583         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
2584         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
2585
2586         crypto/gc-md5: Fix recent regression.
2587         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
2588
2589         crypto/gc-md4: Fix recent regression.
2590         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
2591         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
2592
2593         crypto/gc-arctwo: Fix recent regression.
2594         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
2595         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
2596
2597         crypto/gc-rijndael: Fix recent regression.
2598         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
2599         (configure.ac): Invoke AC_LIBOBJ here.
2600         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
2601         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2602
2603         crypto/gc-hmac-sha1: Fix recent regression.
2604         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
2605         (configure.ac): Invoke AC_LIBOBJ here.
2606         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
2607         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2608
2609         crypto/gc-hmac-md5: Fix recent regression.
2610         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
2611         (configure.ac): Invoke AC_LIBOBJ here.
2612         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
2613         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2614
2615         crypto/gc-des: Fix recent regression.
2616         * modules/crypto/gc-des (Files): Remove m4/des.m4.
2617         (configure.ac): Invoke AC_LIBOBJ here.
2618         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
2619         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2620
2621         crypto/gc-arcfour: Fix recent regression.
2622         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
2623         (configure.ac): Invoke AC_LIBOBJ here.
2624         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
2625         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2626
2627 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
2628
2629         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
2630         After the 2011-05-21 change, this macro requires
2631         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
2632         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
2633
2634 2011-06-16  Bruno Haible  <bruno@clisp.org>
2635
2636         fprintftime: Move AC_LIBOBJ invocations to module description.
2637         * m4/fprintftime.m4: Remove file.
2638         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
2639         (configure.ac): Remove gl_FPRINTFTIME call.
2640         (Makefile.am): Augment lib_SOURCES.
2641         Reported by Jim Meyering.
2642
2643 2011-06-16  Bruno Haible  <bruno@clisp.org>
2644
2645         tmpfile-safer: Finish 2011-05-23 commit.
2646         * m4/stdio-safer.m4: Really remove file.
2647         Reported by Jim Meyering.
2648
2649 2011-06-16  Bruno Haible  <bruno@clisp.org>
2650
2651         syntax-check: Fix typo.
2652         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
2653         printf-posix.m4.
2654         Reported by Jim Meyering.
2655
2656 2011-06-13  Jim Meyering  <meyering@redhat.com>
2657
2658         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
2659         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
2660
2661 2011-05-23  Bruno Haible  <bruno@clisp.org>
2662
2663         yesno: Move AC_LIBOBJ invocations to module description.
2664         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
2665         * modules/yesno (Makefile.am): Augment lib_SOURCES.
2666
2667 2011-05-23  Bruno Haible  <bruno@clisp.org>
2668
2669         xstrtol: Move AC_LIBOBJ invocations to module description.
2670         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
2671         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
2672
2673 2011-05-23  Bruno Haible  <bruno@clisp.org>
2674
2675         xstrtold: Move AC_LIBOBJ invocations to module description.
2676         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
2677         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
2678
2679 2011-05-23  Bruno Haible  <bruno@clisp.org>
2680
2681         xstrtod: Move AC_LIBOBJ invocations to module description.
2682         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
2683         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
2684
2685 2011-05-23  Bruno Haible  <bruno@clisp.org>
2686
2687         xnanosleep: Move AC_LIBOBJ invocations to module description.
2688         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
2689         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
2690
2691 2011-05-23  Bruno Haible  <bruno@clisp.org>
2692
2693         xgetcwd: Move AC_LIBOBJ invocations to module description.
2694         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
2695         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
2696
2697 2011-05-23  Bruno Haible  <bruno@clisp.org>
2698
2699         xalloc: Move AC_LIBOBJ invocations to module description.
2700         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
2701         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
2702
2703 2011-05-23  Bruno Haible  <bruno@clisp.org>
2704
2705         write-any-file: Move AC_LIBOBJ invocations to module description.
2706         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
2707         invocation.
2708         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
2709
2710 2011-05-23  Bruno Haible  <bruno@clisp.org>
2711
2712         utimens: Move AC_LIBOBJ invocations to module description.
2713         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
2714         * modules/utimens (Makefile.am): Augment lib_SOURCES.
2715
2716 2011-05-23  Bruno Haible  <bruno@clisp.org>
2717
2718         utimecmp: Move AC_LIBOBJ invocations to module description.
2719         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
2720         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
2721
2722 2011-05-23  Bruno Haible  <bruno@clisp.org>
2723
2724         userspec: Move AC_LIBOBJ invocations to module description.
2725         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
2726         * modules/userspec (Makefile.am): Augment lib_SOURCES.
2727
2728 2011-05-23  Bruno Haible  <bruno@clisp.org>
2729
2730         unlinkdir: Move AC_LIBOBJ invocations to module description.
2731         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
2732         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
2733
2734 2011-05-23  Bruno Haible  <bruno@clisp.org>
2735
2736         unistd-safer: Move AC_LIBOBJ invocations to module description.
2737         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
2738         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
2739
2740 2011-05-23  Bruno Haible  <bruno@clisp.org>
2741
2742         tempname: Move AC_LIBOBJ invocations to module description.
2743         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
2744         * modules/tempname (Makefile.am): Augment lib_SOURCES.
2745
2746 2011-05-23  Bruno Haible  <bruno@clisp.org>
2747
2748         strftime: Move AC_LIBOBJ invocations to module description.
2749         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
2750         * modules/strftime (Makefile.am): Augment lib_SOURCES.
2751
2752 2011-05-23  Bruno Haible  <bruno@clisp.org>
2753
2754         stdlib-safer: Move AC_LIBOBJ invocations to module description.
2755         * m4/stdlib-safer.m4: Remove file.
2756         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
2757         (configure.ac): Remove gl_STDLIB_SAFER call.
2758         (Makefile.am): Augment lib_SOURCES.
2759
2760 2011-05-23  Bruno Haible  <bruno@clisp.org>
2761
2762         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
2763         * m4/stdio-safer.m4: Remove file.
2764         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
2765         (configure.ac): Remove gl_TMPFILE_SAFER call.
2766         (Makefile.am): Augment lib_SOURCES.
2767
2768 2011-05-23  Bruno Haible  <bruno@clisp.org>
2769
2770         popen-safer: Move AC_LIBOBJ invocations to module description.
2771         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
2772         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
2773         (configure.ac): Remove gl_POPEN_SAFER call.
2774         (Makefile.am): Augment lib_SOURCES.
2775
2776 2011-05-23  Bruno Haible  <bruno@clisp.org>
2777
2778         freopen-safer: Move AC_LIBOBJ invocations to module description.
2779         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
2780         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
2781         (configure.ac): Remove gl_FREOPEN_SAFER call.
2782         (Makefile.am): Augment lib_SOURCES.
2783
2784 2011-05-23  Bruno Haible  <bruno@clisp.org>
2785
2786         fopen-safer: Move AC_LIBOBJ invocations to module description.
2787         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
2788         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
2789         (configure.ac): Remove gl_FOPEN_SAFER call.
2790         (Makefile.am): Augment lib_SOURCES.
2791
2792 2011-05-23  Bruno Haible  <bruno@clisp.org>
2793
2794         crypto/sha512: Move AC_LIBOBJ invocations to module description.
2795         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
2796         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
2797
2798 2011-05-23  Bruno Haible  <bruno@clisp.org>
2799
2800         crypto/sha256: Move AC_LIBOBJ invocations to module description.
2801         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
2802         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
2803
2804 2011-05-23  Bruno Haible  <bruno@clisp.org>
2805
2806         crypto/sha1: Move AC_LIBOBJ invocations to module description.
2807         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
2808         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
2809
2810 2011-05-23  Bruno Haible  <bruno@clisp.org>
2811
2812         settime: Move AC_LIBOBJ invocations to module description.
2813         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
2814         * modules/settime (Makefile.am): Augment lib_SOURCES.
2815
2816 2011-05-23  Bruno Haible  <bruno@clisp.org>
2817
2818         savedir: Move AC_LIBOBJ invocations to module description.
2819         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
2820         * modules/savedir (Makefile.am): Augment lib_SOURCES.
2821
2822 2011-05-23  Bruno Haible  <bruno@clisp.org>
2823
2824         save-cwd: Move AC_LIBOBJ invocations to module description.
2825         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
2826         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
2827
2828 2011-05-23  Bruno Haible  <bruno@clisp.org>
2829
2830         same: Move AC_LIBOBJ invocations to module description.
2831         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
2832         * modules/same (Makefile.am): Augment lib_SOURCES.
2833
2834 2011-05-23  Bruno Haible  <bruno@clisp.org>
2835
2836         safe-write: Move AC_LIBOBJ invocations to module description.
2837         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
2838         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
2839         instead of gl_SAFE_WRITE.
2840         (Makefile.am): Augment lib_SOURCES.
2841
2842 2011-05-23  Bruno Haible  <bruno@clisp.org>
2843
2844         safe-read: Move AC_LIBOBJ invocations to module description.
2845         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
2846         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
2847         of gl_SAFE_READ.
2848         (Makefile.am): Augment lib_SOURCES.
2849
2850 2011-05-23  Bruno Haible  <bruno@clisp.org>
2851
2852         safe-alloc: Move AC_LIBOBJ invocations to module description.
2853         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
2854         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
2855
2856 2011-05-23  Bruno Haible  <bruno@clisp.org>
2857
2858         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
2859         * m4/rijndael.m4: Remove file.
2860         * modules/crypto/rijndael (Files): Remove it.
2861         (configure.ac): Remove gl_RIJNDAEL call.
2862         (Makefile.am): Augment lib_SOURCES.
2863
2864 2011-05-23  Bruno Haible  <bruno@clisp.org>
2865
2866         readtokens: Move AC_LIBOBJ invocations to module description.
2867         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
2868         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
2869
2870 2011-05-23  Bruno Haible  <bruno@clisp.org>
2871
2872         read-file: Move AC_LIBOBJ invocations to module description.
2873         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
2874         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
2875         of gl_FUNC_READ_FILE.
2876         (Makefile.am): Augment lib_SOURCES.
2877
2878 2011-05-23  Bruno Haible  <bruno@clisp.org>
2879
2880         quotearg: Move AC_LIBOBJ invocations to module description.
2881         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
2882         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
2883
2884 2011-05-23  Bruno Haible  <bruno@clisp.org>
2885
2886         quote: Move AC_LIBOBJ invocations to module description.
2887         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
2888         * modules/quote (Makefile.am): Augment lib_SOURCES.
2889
2890 2011-05-23  Bruno Haible  <bruno@clisp.org>
2891
2892         posixver: Move AC_LIBOBJ invocations to module description.
2893         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
2894         * modules/posixver (Makefile.am): Augment lib_SOURCES.
2895
2896 2011-05-23  Bruno Haible  <bruno@clisp.org>
2897
2898         posixtm: Move AC_LIBOBJ invocations to module description.
2899         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
2900         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
2901
2902 2011-05-23  Bruno Haible  <bruno@clisp.org>
2903
2904         physmem: Move AC_LIBOBJ invocations to module description.
2905         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
2906         * modules/physmem (Makefile.am): Augment lib_SOURCES.
2907
2908 2011-05-23  Bruno Haible  <bruno@clisp.org>
2909
2910         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
2911         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
2912         invocation.
2913         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
2914
2915 2011-05-23  Bruno Haible  <bruno@clisp.org>
2916
2917         mpsort: Move AC_LIBOBJ invocations to module description.
2918         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
2919         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
2920
2921 2011-05-23  Bruno Haible  <bruno@clisp.org>
2922
2923         modechange: Move AC_LIBOBJ invocations to module description.
2924         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
2925         * modules/modechange (Makefile.am): Augment lib_SOURCES.
2926
2927 2011-05-23  Bruno Haible  <bruno@clisp.org>
2928
2929         mkdir-p: Move AC_LIBOBJ invocations to module description.
2930         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
2931         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
2932
2933 2011-05-23  Bruno Haible  <bruno@clisp.org>
2934
2935         mkancesdirs: Move AC_LIBOBJ invocations to module description.
2936         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
2937         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
2938
2939 2011-05-23  Bruno Haible  <bruno@clisp.org>
2940
2941         mgetgroups: Move AC_LIBOBJ invocations to module description.
2942         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
2943         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
2944
2945 2011-05-23  Bruno Haible  <bruno@clisp.org>
2946
2947         memxor: Move AC_LIBOBJ invocations to module description.
2948         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
2949         * modules/memxor (Makefile.am): Augment lib_SOURCES.
2950
2951 2011-05-23  Bruno Haible  <bruno@clisp.org>
2952
2953         memcoll: Move AC_LIBOBJ invocations to module description.
2954         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
2955         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
2956
2957 2011-05-23  Bruno Haible  <bruno@clisp.org>
2958
2959         memcasecmp: Move AC_LIBOBJ invocations to module description.
2960         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
2961         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
2962
2963 2011-05-23  Bruno Haible  <bruno@clisp.org>
2964
2965         crypto/md5: Move AC_LIBOBJ invocations to module description.
2966         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
2967         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
2968
2969 2011-05-23  Bruno Haible  <bruno@clisp.org>
2970
2971         crypto/md4: Move AC_LIBOBJ invocations to module description.
2972         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
2973         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
2974
2975 2011-05-23  Bruno Haible  <bruno@clisp.org>
2976
2977         crypto/md2: Move AC_LIBOBJ invocations to module description.
2978         * m4/md2.m4: Remove file.
2979         * modules/crypto/md2 (Files): Remove it.
2980         (configure.ac): Remove gl_MD2 call.
2981         (Makefile.am): Augment lib_SOURCES.
2982
2983 2011-05-23  Bruno Haible  <bruno@clisp.org>
2984
2985         long-options: Move AC_LIBOBJ invocations to module description.
2986         * m4/long-options.m4: Remove file.
2987         * modules/long-options (Files): Remove it.
2988         (configure.ac): Remove gl_LONG_OPTIONS call.
2989         (Makefile.am): Augment lib_SOURCES.
2990
2991 2011-05-23  Bruno Haible  <bruno@clisp.org>
2992
2993         i-ring: Move AC_LIBOBJ invocations to module description.
2994         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
2995         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
2996
2997 2011-05-23  Bruno Haible  <bruno@clisp.org>
2998
2999         idcache: Move AC_LIBOBJ invocations to module description.
3000         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
3001         * modules/idcache (Makefile.am): Augment lib_SOURCES.
3002
3003 2011-05-23  Bruno Haible  <bruno@clisp.org>
3004
3005         human: Move AC_LIBOBJ invocations to module description.
3006         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
3007         * modules/human (Makefile.am): Augment lib_SOURCES.
3008
3009 2011-05-23  Bruno Haible  <bruno@clisp.org>
3010
3011         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
3012         * m4/hmac-sha1.m4: Remove file.
3013         * modules/crypto/hmac-sha1 (Files): Remove it.
3014         (configure.ac): Remove gl_HMAC_SHA1 call.
3015         (Makefile.am): Augment lib_SOURCES.
3016
3017 2011-05-23  Bruno Haible  <bruno@clisp.org>
3018
3019         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
3020         * m4/hmac-md5.m4: Remove file.
3021         * modules/crypto/hmac-md5 (Files): Remove it.
3022         (configure.ac): Remove gl_HMAC_MD5 call.
3023         (Makefile.am): Augment lib_SOURCES.
3024
3025 2011-05-23  Bruno Haible  <bruno@clisp.org>
3026
3027         hash: Move AC_LIBOBJ invocations to module description.
3028         * m4/hash.m4: Remove file.
3029         * modules/hash (Files): Remove it.
3030         (configure.ac): Remove gl_HASH call.
3031         (Makefile.am): Augment lib_SOURCES.
3032
3033 2011-05-23  Bruno Haible  <bruno@clisp.org>
3034
3035         hard-locale: Move AC_LIBOBJ invocations to module description.
3036         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
3037         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
3038
3039 2011-05-23  Bruno Haible  <bruno@clisp.org>
3040
3041         getugroups: Move AC_LIBOBJ invocations to module description.
3042         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
3043         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
3044
3045 2011-05-23  Bruno Haible  <bruno@clisp.org>
3046
3047         gettime: Move AC_LIBOBJ invocations to module description.
3048         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
3049         * modules/gettime (Makefile.am): Augment lib_SOURCES.
3050
3051 2011-05-23  Bruno Haible  <bruno@clisp.org>
3052
3053         getndelim2: Move AC_LIBOBJ invocations to module description.
3054         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
3055         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
3056
3057 2011-05-23  Bruno Haible  <bruno@clisp.org>
3058
3059         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
3060         * m4/gc-pbkdf2-sha1.m4: Remove file.
3061         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
3062         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
3063         (Makefile.am): Augment lib_SOURCES.
3064
3065 2011-05-23  Bruno Haible  <bruno@clisp.org>
3066
3067         fts: Move AC_LIBOBJ invocations to module description.
3068         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
3069         * modules/fts (configure.ac): ... to here.
3070
3071 2011-05-23  Bruno Haible  <bruno@clisp.org>
3072
3073         file-type: Move AC_LIBOBJ invocations to module description.
3074         * m4/file-type.m4: Remove file.
3075         * modules/file-type (Files): Remove it.
3076         (configure.ac): Remove gl_FILE_TYPE call.
3077         (Makefile.am): Augment lib_SOURCES.
3078
3079 2011-05-23  Bruno Haible  <bruno@clisp.org>
3080
3081         filenamecat*: Respect rules for use of AC_LIBOBJ.
3082         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
3083         Remove AC_LIBOBJ invocation.
3084         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
3085         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
3086
3087 2011-05-23  Bruno Haible  <bruno@clisp.org>
3088
3089         filemode: Move AC_LIBOBJ invocations to module description.
3090         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
3091         * modules/filemode (Makefile.am): Augment lib_SOURCES.
3092
3093 2011-05-23  Bruno Haible  <bruno@clisp.org>
3094
3095         openat-safer: Move AC_LIBOBJ invocations to module description.
3096         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
3097         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
3098
3099 2011-05-23  Bruno Haible  <bruno@clisp.org>
3100
3101         fcntl-safer: Move AC_LIBOBJ invocations to module description.
3102         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
3103         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
3104
3105 2011-05-23  Bruno Haible  <bruno@clisp.org>
3106
3107         exclude: Move AC_LIBOBJ invocations to module description.
3108         * m4/exclude.m4: Remove file.
3109         * modules/exclude (Files): Remove it.
3110         (configure.ac): Remove gl_EXCLUDE call.
3111         (Makefile.am): Augment lib_SOURCES.
3112
3113 2011-05-23  Bruno Haible  <bruno@clisp.org>
3114
3115         dirname*: Respect rules for use of AC_LIBOBJ.
3116         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
3117         invocations.
3118         * modules/dirname (Makefile.am): Augment lib_SOURCES.
3119         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
3120
3121 2011-05-23  Bruno Haible  <bruno@clisp.org>
3122
3123         dirent-safer: Move AC_LIBOBJ invocations to module description.
3124         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
3125         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
3126
3127 2011-05-23  Bruno Haible  <bruno@clisp.org>
3128
3129         crypto/des: Move AC_LIBOBJ invocations to module description.
3130         * m4/des.m4: Remove file.
3131         * modules/crypto/des (Files): Remove it.
3132         (configure.ac): Remove gl_DES call.
3133         (Makefile.am): Augment lib_SOURCES.
3134
3135 2011-05-23  Bruno Haible  <bruno@clisp.org>
3136
3137         cycle-check: Move AC_LIBOBJ invocations to module description.
3138         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
3139         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
3140
3141 2011-05-23  Bruno Haible  <bruno@clisp.org>
3142
3143         c-strtold: Move AC_LIBOBJ invocations to module description.
3144         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
3145         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
3146
3147 2011-05-23  Bruno Haible  <bruno@clisp.org>
3148
3149         c-strtod: Move AC_LIBOBJ invocations to module description.
3150         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
3151         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
3152
3153 2011-05-23  Bruno Haible  <bruno@clisp.org>
3154
3155         crc: Move AC_LIBOBJ invocations to module description.
3156         * m4/crc.m4: Remove file.
3157         * modules/crc (Files): Remove it.
3158         (configure.ac): Remove gl_CRC call.
3159         (Makefile.am): Augment lib_SOURCES.
3160
3161 2011-05-23  Bruno Haible  <bruno@clisp.org>
3162
3163         close-stream: Move AC_LIBOBJ invocations to module description.
3164         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
3165         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
3166
3167 2011-05-23  Bruno Haible  <bruno@clisp.org>
3168
3169         closeout: Move AC_LIBOBJ invocations to module description.
3170         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
3171         * modules/closeout (Makefile.am): Augment lib_SOURCES.
3172
3173 2011-05-23  Bruno Haible  <bruno@clisp.org>
3174
3175         closein: Move AC_LIBOBJ invocations to module description.
3176         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
3177         * modules/closein (Makefile.am): Augment lib_SOURCES.
3178
3179 2011-05-23  Bruno Haible  <bruno@clisp.org>
3180
3181         cloexec: Move AC_LIBOBJ invocations to module description.
3182         * m4/cloexec.m4: Remove file.
3183         * modules/cloexec (Files): Remove it.
3184         (configure.ac): Remove gl_CLOEXEC call.
3185         (Makefile.am): Augment lib_SOURCES.
3186
3187 2011-05-23  Bruno Haible  <bruno@clisp.org>
3188
3189         check-version: Move AC_LIBOBJ invocations to module description.
3190         * m4/check-version.m4: Remove file.
3191         * modules/check-version (Files): Remove it.
3192         (configure.ac): Remove gl_CHECK_VERSION call.
3193         (Makefile.am): Augment lib_SOURCES.
3194
3195 2011-05-23  Bruno Haible  <bruno@clisp.org>
3196
3197         chdir-safer: Move AC_LIBOBJ invocations to module description.
3198         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
3199         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
3200
3201 2011-05-23  Bruno Haible  <bruno@clisp.org>
3202
3203         canonicalize: Move AC_LIBOBJ invocations to module description.
3204         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
3205         AC_LIBOBJ invocation.
3206         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
3207
3208 2011-05-23  Bruno Haible  <bruno@clisp.org>
3209
3210         canon-host: Move AC_LIBOBJ invocations to module description.
3211         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
3212         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
3213         instead of gl_CANON_HOST.
3214         (Makefile.am): Augment lib_SOURCES.
3215
3216 2011-05-23  Bruno Haible  <bruno@clisp.org>
3217
3218         backupfile: Move AC_LIBOBJ invocations to module description.
3219         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
3220         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
3221
3222 2011-05-23  Bruno Haible  <bruno@clisp.org>
3223
3224         argmatch: Move AC_LIBOBJ invocations to module description.
3225         * m4/argmatch.m4: Remove file.
3226         * modules/argmatch (Files): Remove it.
3227         (configure.ac): Remove gl_ARGMATCH call.
3228         (Makefile.am): Augment lib_SOURCES.
3229
3230 2011-05-23  Bruno Haible  <bruno@clisp.org>
3231
3232         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
3233         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
3234         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
3235
3236 2011-05-23  Bruno Haible  <bruno@clisp.org>
3237
3238         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
3239         * m4/arcfour.m4: Remove file.
3240         * modules/crypto/arcfour (Files): Remove it.
3241         (configure.ac): Remove gl_ARCFOUR call.
3242         (Makefile.am): Augment lib_SOURCES.
3243
3244 2011-05-22  Bruno Haible  <bruno@clisp.org>
3245
3246         write: Move AC_LIBOBJ invocations to module description.
3247         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
3248         * modules/write (configure.ac): ... to here.
3249
3250 2011-05-22  Bruno Haible  <bruno@clisp.org>
3251
3252         wmemset: Move AC_LIBOBJ invocations to module description.
3253         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
3254         here...
3255         * modules/wmemset (configure.ac): ... to here.
3256
3257 2011-05-22  Bruno Haible  <bruno@clisp.org>
3258
3259         wmemmove: Move AC_LIBOBJ invocations to module description.
3260         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
3261         here...
3262         * modules/wmemmove (configure.ac): ... to here.
3263
3264 2011-05-22  Bruno Haible  <bruno@clisp.org>
3265
3266         wmemcpy: Move AC_LIBOBJ invocations to module description.
3267         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
3268         here...
3269         * modules/wmemcpy (configure.ac): ... to here.
3270
3271 2011-05-22  Bruno Haible  <bruno@clisp.org>
3272
3273         wmemcmp: Move AC_LIBOBJ invocations to module description.
3274         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
3275         here...
3276         * modules/wmemcmp (configure.ac): ... to here.
3277
3278 2011-05-22  Bruno Haible  <bruno@clisp.org>
3279
3280         wmemchr: Move AC_LIBOBJ invocations to module description.
3281         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
3282         here...
3283         * modules/wmemchr (configure.ac): ... to here.
3284
3285 2011-05-22  Bruno Haible  <bruno@clisp.org>
3286
3287         wcswidth: Move AC_LIBOBJ invocations to module description.
3288         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
3289         here...
3290         * modules/wcswidth (configure.ac): ... to here.
3291
3292 2011-05-22  Bruno Haible  <bruno@clisp.org>
3293
3294         wcwidth: Respect rules for use of AC_LIBOBJ.
3295         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
3296         invocation from here...
3297         * modules/wcwidth (configure.ac): ... to here.
3298         (Depends-on): Update conditions.
3299
3300 2011-05-22  Bruno Haible  <bruno@clisp.org>
3301
3302         wctype: Move AC_LIBOBJ invocations to module description.
3303         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
3304         invocation from here...
3305         * modules/wctype (configure.ac): ... to here.
3306         (Depends-on): Update conditions.
3307
3308 2011-05-22  Bruno Haible  <bruno@clisp.org>
3309
3310         wctrans: Move AC_LIBOBJ invocations to module description.
3311         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
3312         invocation from here...
3313         * modules/wctrans (configure.ac): ... to here.
3314
3315 2011-05-22  Bruno Haible  <bruno@clisp.org>
3316
3317         wctomb: Move AC_LIBOBJ invocations to module description.
3318         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
3319         invocations from here...
3320         * modules/wctomb (configure.ac): ... to here.
3321
3322 2011-05-22  Bruno Haible  <bruno@clisp.org>
3323
3324         wctob: Move AC_LIBOBJ invocations to module description.
3325         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
3326         gl_PREREQ_WCTOB invocations from here...
3327         * modules/wctob (configure.ac): ... to here.
3328         (Depends-on): Update conditions.
3329
3330 2011-05-22  Bruno Haible  <bruno@clisp.org>
3331
3332         wcsxfrm: Move AC_LIBOBJ invocations to module description.
3333         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
3334         here...
3335         * modules/wcsxfrm (configure.ac): ... to here.
3336
3337 2011-05-22  Bruno Haible  <bruno@clisp.org>
3338
3339         wcstok: Move AC_LIBOBJ invocations to module description.
3340         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
3341         * modules/wcstok (configure.ac): ... to here.
3342
3343 2011-05-22  Bruno Haible  <bruno@clisp.org>
3344
3345         wcsstr: Move AC_LIBOBJ invocations to module description.
3346         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
3347         * modules/wcsstr (configure.ac): ... to here.
3348
3349 2011-05-22  Bruno Haible  <bruno@clisp.org>
3350
3351         wcsspn: Move AC_LIBOBJ invocations to module description.
3352         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
3353         * modules/wcsspn (configure.ac): ... to here.
3354
3355 2011-05-22  Bruno Haible  <bruno@clisp.org>
3356
3357         wcsrtombs: Move AC_LIBOBJ invocations to module description.
3358         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
3359         gl_PREREQ_WCSRTOMBS invocations from here...
3360         * modules/wcsrtombs (configure.ac): ... to here.
3361
3362 2011-05-22  Bruno Haible  <bruno@clisp.org>
3363
3364         wcsrchr: Move AC_LIBOBJ invocations to module description.
3365         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
3366         here...
3367         * modules/wcsrchr (configure.ac): ... to here.
3368
3369 2011-05-22  Bruno Haible  <bruno@clisp.org>
3370
3371         wcspbrk: Move AC_LIBOBJ invocations to module description.
3372         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
3373         here...
3374         * modules/wcspbrk (configure.ac): ... to here.
3375
3376 2011-05-22  Bruno Haible  <bruno@clisp.org>
3377
3378         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
3379         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
3380         gl_PREREQ_WCSNRTOMBS invocations from here...
3381         * modules/wcsnrtombs (configure.ac): ... to here.
3382
3383 2011-05-22  Bruno Haible  <bruno@clisp.org>
3384
3385         wcsnlen: Move AC_LIBOBJ invocations to module description.
3386         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
3387         here...
3388         * modules/wcsnlen (configure.ac): ... to here.
3389
3390 2011-05-22  Bruno Haible  <bruno@clisp.org>
3391
3392         wcsncpy: Move AC_LIBOBJ invocations to module description.
3393         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
3394         here...
3395         * modules/wcsncpy (configure.ac): ... to here.
3396
3397 2011-05-22  Bruno Haible  <bruno@clisp.org>
3398
3399         wcsncmp: Move AC_LIBOBJ invocations to module description.
3400         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
3401         here...
3402         * modules/wcsncmp (configure.ac): ... to here.
3403
3404 2011-05-22  Bruno Haible  <bruno@clisp.org>
3405
3406         wcsncat: Move AC_LIBOBJ invocations to module description.
3407         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
3408         here...
3409         * modules/wcsncat (configure.ac): ... to here.
3410
3411 2011-05-22  Bruno Haible  <bruno@clisp.org>
3412
3413         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
3414         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
3415         from here...
3416         * modules/wcsncasecmp (configure.ac): ... to here.
3417
3418 2011-05-22  Bruno Haible  <bruno@clisp.org>
3419
3420         wcslen: Move AC_LIBOBJ invocations to module description.
3421         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
3422         * modules/wcslen (configure.ac): ... to here.
3423
3424 2011-05-22  Bruno Haible  <bruno@clisp.org>
3425
3426         wcsdup: Move AC_LIBOBJ invocations to module description.
3427         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
3428         * modules/wcsdup (configure.ac): ... to here.
3429
3430 2011-05-22  Bruno Haible  <bruno@clisp.org>
3431
3432         wcscspn: Move AC_LIBOBJ invocations to module description.
3433         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
3434         here...
3435         * modules/wcscspn (configure.ac): ... to here.
3436
3437 2011-05-22  Bruno Haible  <bruno@clisp.org>
3438
3439         wcscpy: Move AC_LIBOBJ invocations to module description.
3440         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
3441         * modules/wcscpy (configure.ac): ... to here.
3442
3443 2011-05-22  Bruno Haible  <bruno@clisp.org>
3444
3445         wcscoll: Move AC_LIBOBJ invocations to module description.
3446         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
3447         here...
3448         * modules/wcscoll (configure.ac): ... to here.
3449
3450 2011-05-22  Bruno Haible  <bruno@clisp.org>
3451
3452         wcscmp: Move AC_LIBOBJ invocations to module description.
3453         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
3454         * modules/wcscmp (configure.ac): ... to here.
3455
3456 2011-05-22  Bruno Haible  <bruno@clisp.org>
3457
3458         wcschr: Move AC_LIBOBJ invocations to module description.
3459         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
3460         * modules/wcschr (configure.ac): ... to here.
3461
3462 2011-05-22  Bruno Haible  <bruno@clisp.org>
3463
3464         wcscat: Move AC_LIBOBJ invocations to module description.
3465         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
3466         * modules/wcscat (configure.ac): ... to here.
3467
3468 2011-05-22  Bruno Haible  <bruno@clisp.org>
3469
3470         wcscasecmp: Move AC_LIBOBJ invocations to module description.
3471         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
3472         here...
3473         * modules/wcscasecmp (configure.ac): ... to here.
3474
3475 2011-05-22  Bruno Haible  <bruno@clisp.org>
3476
3477         wcrtomb: Move AC_LIBOBJ invocations to module description.
3478         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
3479         invocations from here...
3480         * modules/wcrtomb (configure.ac): ... to here.
3481
3482 2011-05-22  Bruno Haible  <bruno@clisp.org>
3483
3484         wcpncpy: Move AC_LIBOBJ invocations to module description.
3485         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
3486         here...
3487         * modules/wcpncpy (configure.ac): ... to here.
3488
3489 2011-05-22  Bruno Haible  <bruno@clisp.org>
3490
3491         wcpcpy: Move AC_LIBOBJ invocations to module description.
3492         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
3493         * modules/wcpcpy (configure.ac): ... to here.
3494
3495 2011-05-22  Bruno Haible  <bruno@clisp.org>
3496
3497         waitpid: Move AC_LIBOBJ invocations to module description.
3498         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
3499         invocation from here...
3500         * modules/waitpid (configure.ac): ... to here.
3501
3502 2011-05-22  Bruno Haible  <bruno@clisp.org>
3503
3504         utimensat: Move AC_LIBOBJ invocations to module description.
3505         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
3506         here...
3507         * modules/utimensat (configure.ac): ... to here.
3508
3509 2011-05-22  Bruno Haible  <bruno@clisp.org>
3510
3511         usleep: Move AC_LIBOBJ invocations to module description.
3512         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
3513         here...
3514         * modules/usleep (configure.ac): ... to here.
3515
3516 2011-05-22  Bruno Haible  <bruno@clisp.org>
3517
3518         unlockpt: Move AC_LIBOBJ invocations to module description.
3519         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
3520         gl_PREREQ_UNLOCKPT invocations from here...
3521         * modules/unlockpt (configure.ac): ... to here.
3522
3523 2011-05-22  Bruno Haible  <bruno@clisp.org>
3524
3525         unlink: Respect rules for use of AC_LIBOBJ.
3526         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
3527         * modules/unlink (configure.ac): ... to here.
3528
3529 2011-05-22  Bruno Haible  <bruno@clisp.org>
3530
3531         uname: Move AC_LIBOBJ invocations to module description.
3532         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
3533         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
3534         here...
3535         * modules/uname (configure.ac): ... to here.
3536
3537 2011-05-22  Bruno Haible  <bruno@clisp.org>
3538
3539         ttyname_r: Move AC_LIBOBJ invocations to module description.
3540         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
3541         gl_PREREQ_TTYNAME_R invocations from here...
3542         * modules/ttyname_r (configure.ac): ... to here.
3543
3544 2011-05-22  Bruno Haible  <bruno@clisp.org>
3545
3546         tsearch: Move AC_LIBOBJ invocations to module description.
3547         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
3548         invocations from here...
3549         * modules/tsearch (configure.ac): ... to here.
3550
3551 2011-05-22  Bruno Haible  <bruno@clisp.org>
3552
3553         towctrans: Move AC_LIBOBJ invocations to module description.
3554         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
3555         AC_LIBOBJ invocation from here...
3556         * modules/towctrans (configure.ac): ... to here.
3557
3558 2011-05-22  Bruno Haible  <bruno@clisp.org>
3559
3560         tmpfile: Move AC_LIBOBJ invocations to module description.
3561         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
3562         invocations from here...
3563         * modules/tmpfile (configure.ac): ... to here.
3564
3565 2011-05-22  Bruno Haible  <bruno@clisp.org>
3566
3567         times: Move AC_LIBOBJ invocations to module description.
3568         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
3569         * modules/times (configure.ac): ... to here.
3570
3571 2011-05-22  Bruno Haible  <bruno@clisp.org>
3572
3573         time_r: Move AC_LIBOBJ invocations to module description.
3574         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
3575         invocations from here...
3576         * modules/time_r (configure.ac): ... to here.
3577
3578 2011-05-22  Bruno Haible  <bruno@clisp.org>
3579
3580         timegm: Move AC_LIBOBJ invocations to module description.
3581         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
3582         invocations from here...
3583         * modules/timegm (configure.ac): ... to here.
3584
3585 2011-05-22  Bruno Haible  <bruno@clisp.org>
3586
3587         tcgetsid: Move AC_LIBOBJ invocations to module description.
3588         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
3589         and gl_PREREQ_TCGETSID invocations from here...
3590         * modules/tcgetsid (configure.ac): ... to here.
3591         (Depends-on): Update conditions.
3592
3593 2011-05-22  Bruno Haible  <bruno@clisp.org>
3594
3595         symlinkat: Move AC_LIBOBJ invocations to module description.
3596         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
3597         here...
3598         * modules/symlinkat (configure.ac): ... to here.
3599
3600 2011-05-22  Bruno Haible  <bruno@clisp.org>
3601
3602         symlink: Move AC_LIBOBJ invocations to module description.
3603         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
3604         here...
3605         * modules/symlink (configure.ac): ... to here.
3606
3607 2011-05-22  Bruno Haible  <bruno@clisp.org>
3608
3609         strverscmp: Move AC_LIBOBJ invocations to module description.
3610         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
3611         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
3612         from here...
3613         * modules/strverscmp (configure.ac): ... to here.
3614
3615 2011-05-22  Bruno Haible  <bruno@clisp.org>
3616
3617         strtok_r: Move AC_LIBOBJ invocations to module description.
3618         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
3619         and gl_PREREQ_STRTOK_R invocations from here...
3620         * modules/strtok_r (configure.ac): ... to here.
3621         (Depends-on): Update conditions.
3622
3623 2011-05-22  Bruno Haible  <bruno@clisp.org>
3624
3625         strtoumax: Move AC_LIBOBJ invocations to module description.
3626         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
3627         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
3628         from here...
3629         * modules/strtoumax (configure.ac): ... to here.
3630
3631 2011-05-22  Bruno Haible  <bruno@clisp.org>
3632
3633         strtoimax: Move AC_LIBOBJ invocations to module description.
3634         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
3635         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
3636         from here...
3637         * modules/strtoimax (configure.ac): ... to here.
3638
3639 2011-05-22  Bruno Haible  <bruno@clisp.org>
3640
3641         strtoull: Move AC_LIBOBJ invocations to module description.
3642         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
3643         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
3644         from here...
3645         * modules/strtoull (configure.ac): ... to here.
3646
3647 2011-05-22  Bruno Haible  <bruno@clisp.org>
3648
3649         strtoll: Move AC_LIBOBJ invocations to module description.
3650         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
3651         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
3652         here...
3653         * modules/strtoll (configure.ac): ... to here.
3654
3655 2011-05-22  Bruno Haible  <bruno@clisp.org>
3656
3657         strtoul: Move AC_LIBOBJ invocations to module description.
3658         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
3659         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
3660         * modules/strtoul (configure.ac): ... to here.
3661
3662 2011-05-22  Bruno Haible  <bruno@clisp.org>
3663
3664         strtol: Move AC_LIBOBJ invocations to module description.
3665         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
3666         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
3667         * modules/strtol (configure.ac): ... to here.
3668
3669 2011-05-22  Bruno Haible  <bruno@clisp.org>
3670
3671         strtod: Move AC_LIBOBJ invocations to module description.
3672         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
3673         invocations from here...
3674         * modules/strtod (configure.ac): ... to here.
3675
3676 2011-05-22  Bruno Haible  <bruno@clisp.org>
3677
3678         strstr*: Move AC_LIBOBJ invocations to module description.
3679         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
3680         invocations from here...
3681         * modules/strstr-simple (configure.ac): ... to here.
3682         * modules/strstr (configure.ac): ... and here.
3683
3684 2011-05-22  Bruno Haible  <bruno@clisp.org>
3685
3686         strsignal: Move AC_LIBOBJ invocations to module description.
3687         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
3688         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
3689         * modules/strsignal (configure.ac): ... to here.
3690         (Depends-on): Update conditions.
3691
3692 2011-05-22  Bruno Haible  <bruno@clisp.org>
3693
3694         strsep: Move AC_LIBOBJ invocations to module description.
3695         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
3696         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
3697         here...
3698         * modules/strsep (configure.ac): ... to here.
3699
3700 2011-05-22  Bruno Haible  <bruno@clisp.org>
3701
3702         strptime: Move AC_LIBOBJ invocations to module description.
3703         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
3704         gl_PREREQ_STRPTIME invocations from here...
3705         * modules/strptime (configure.ac): ... to here.
3706
3707 2011-05-22  Bruno Haible  <bruno@clisp.org>
3708
3709         strpbrk: Move AC_LIBOBJ invocations to module description.
3710         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
3711         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
3712         here...
3713         * modules/strpbrk (configure.ac): ... to here.
3714
3715 2011-05-22  Bruno Haible  <bruno@clisp.org>
3716
3717         strnlen: Move AC_LIBOBJ invocations to module description.
3718         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
3719         invocations from here...
3720         * modules/strnlen (configure.ac): ... to here.
3721
3722 2011-05-22  Bruno Haible  <bruno@clisp.org>
3723
3724         strndup: Move AC_LIBOBJ invocations to module description.
3725         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
3726         invocations from here...
3727         * modules/strndup (configure.ac): ... to here.
3728         (Depends-on): Update conditions.
3729
3730 2011-05-22  Bruno Haible  <bruno@clisp.org>
3731
3732         strncat: Move AC_LIBOBJ invocations to module description.
3733         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
3734         invocations from here...
3735         * modules/strncat (configure.ac): ... to here.
3736
3737 2011-05-22  Bruno Haible  <bruno@clisp.org>
3738
3739         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
3740         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
3741         invocations from here...
3742         * modules/strdup (configure.ac): ... to here.
3743         * modules/strdup-posix (configure.ac): ... and here.
3744
3745 2011-05-22  Bruno Haible  <bruno@clisp.org>
3746
3747         strcspn: Move AC_LIBOBJ invocations to module description.
3748         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
3749         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
3750         here...
3751         * modules/strcspn (configure.ac): ... to here.
3752
3753 2011-05-22  Bruno Haible  <bruno@clisp.org>
3754
3755         strchrnul: Move AC_LIBOBJ invocations to module description.
3756         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
3757         gl_PREREQ_STRCHRNUL invocations from here...
3758         * modules/strchrnul (configure.ac): ... to here.
3759
3760 2011-05-22  Bruno Haible  <bruno@clisp.org>
3761
3762         strcasestr*: Move AC_LIBOBJ invocations to module description.
3763         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
3764         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
3765         * modules/strcasestr-simple (configure.ac): ... to here.
3766         * modules/strcasestr (configure.ac): ... and here.
3767
3768 2011-05-22  Bruno Haible  <bruno@clisp.org>
3769
3770         strcase: Move AC_LIBOBJ invocations to module description.
3771         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
3772         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
3773         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
3774         gl_PREREQ_STRNCASECMP invocations from here...
3775         * modules/strcase (configure.ac): ... to here.
3776
3777 2011-05-22  Bruno Haible  <bruno@clisp.org>
3778
3779         stpncpy: Move AC_LIBOBJ invocations to module description.
3780         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
3781         here...
3782         * modules/stpncpy (configure.ac): ... to here.
3783
3784 2011-05-22  Bruno Haible  <bruno@clisp.org>
3785
3786         stpcpy: Move AC_LIBOBJ invocations to module description.
3787         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
3788         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
3789         here...
3790         * modules/stpcpy (configure.ac): ... to here.
3791
3792 2011-05-21  Bruno Haible  <bruno@clisp.org>
3793
3794         stat: Move AC_LIBOBJ invocations to module description.
3795         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
3796         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
3797         here...
3798         * modules/stat (configure.ac): ... to here.
3799
3800 2011-05-21  Bruno Haible  <bruno@clisp.org>
3801
3802         sleep: Move AC_LIBOBJ invocations to module description.
3803         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
3804         * modules/sleep (configure.ac): ... to here.
3805
3806 2011-05-21  Bruno Haible  <bruno@clisp.org>
3807
3808         signbit: Move AC_LIBOBJ invocations to module description.
3809         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
3810         * modules/signbit (configure.ac): ... to here.
3811
3812 2011-05-21  Bruno Haible  <bruno@clisp.org>
3813
3814         sigprocmask: Move AC_LIBOBJ invocations to module description.
3815         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
3816         gl_PREREQ_SIGPROMASK invocations from here...
3817         * modules/sigprocmask (configure.ac): ... to here.
3818
3819 2011-05-21  Bruno Haible  <bruno@clisp.org>
3820
3821         sigaction: Move AC_LIBOBJ invocations to module description.
3822         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
3823         gl_PREREQ_SIGACTION invocations from here...
3824         * modules/sigaction (configure.ac): ... to here.
3825
3826 2011-05-21  Bruno Haible  <bruno@clisp.org>
3827
3828         sig2str: Move AC_LIBOBJ invocations to module description.
3829         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
3830         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
3831         here...
3832         * modules/sig2str (configure.ac): ... to here.
3833
3834 2011-05-21  Bruno Haible  <bruno@clisp.org>
3835
3836         setlocale: Move AC_LIBOBJ invocations to module description.
3837         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
3838         gl_PREREQ_SETLOCALE invocations from here...
3839         * modules/setlocale (configure.ac): ... to here.
3840
3841 2011-05-21  Bruno Haible  <bruno@clisp.org>
3842
3843         unsetenv: Move AC_LIBOBJ invocations to module description.
3844         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
3845         and gl_PREREQ_UNSETENV invocations from here...
3846         * modules/unsetenv (configure.ac): ... to here.
3847         (Depends-on): Update.
3848
3849 2011-05-21  Bruno Haible  <bruno@clisp.org>
3850
3851         setenv: Move AC_LIBOBJ invocations to module description.
3852         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
3853         here...
3854         * modules/setenv (configure.ac): ... to here.
3855
3856 2011-05-21  Bruno Haible  <bruno@clisp.org>
3857
3858         selinux-h: Move AC_LIBOBJ invocations to module description.
3859         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
3860         AC_LIBOBJ invocation from here...
3861         * modules/selinux-h (configure.ac): ... to here.
3862
3863 2011-05-21  Bruno Haible  <bruno@clisp.org>
3864
3865         select: Respect rules for use of AC_LIBOBJ.
3866         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
3867         here...
3868         * modules/select (configure.ac): ... to here.
3869
3870 2011-05-21  Bruno Haible  <bruno@clisp.org>
3871
3872         scandir: Move AC_LIBOBJ invocations to module description.
3873         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
3874         invocations from here...
3875         * modules/scandir (configure.ac): ... to here.
3876
3877 2011-05-21  Bruno Haible  <bruno@clisp.org>
3878
3879         rpmatch: Move AC_LIBOBJ invocations to module description.
3880         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
3881         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
3882         here...
3883         * modules/rpmatch (configure.ac): ... to here.
3884
3885 2011-05-21  Bruno Haible  <bruno@clisp.org>
3886
3887         rmdir: Respect rules for use of AC_LIBOBJ.
3888         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
3889         * modules/rmdir (configure.ac): ... to here.
3890
3891 2011-05-21  Bruno Haible  <bruno@clisp.org>
3892
3893         renameat: Move AC_LIBOBJ invocations to module description.
3894         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
3895         here...
3896         * modules/renameat (configure.ac): ... to here.
3897
3898 2011-05-21  Bruno Haible  <bruno@clisp.org>
3899
3900         rename: Respect rules for use of AC_LIBOBJ.
3901         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
3902         here...
3903         * modules/rename (configure.ac): ... to here.
3904
3905 2011-05-21  Bruno Haible  <bruno@clisp.org>
3906
3907         remove: Move AC_LIBOBJ invocations to module description.
3908         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
3909         here...
3910         * modules/remove (configure.ac): ... to here.
3911
3912 2011-05-21  Bruno Haible  <bruno@clisp.org>
3913
3914         relocatable-lib: Move AC_LIBOBJ invocations to module description.
3915         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
3916         macro.
3917         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
3918         * modules/relocatable-lib (configure.ac): ... to here.
3919         * modules/relocatable-prog-wrapper (configure.ac): Invoke
3920         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
3921
3922 2011-05-21  Bruno Haible  <bruno@clisp.org>
3923
3924         relocatable-prog: Move AC_LIBOBJ invocations to module description.
3925         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
3926         here...
3927         * modules/relocatable-prog (configure.ac): ... to here.
3928
3929 2011-05-21  Bruno Haible  <bruno@clisp.org>
3930
3931         regex: Move AC_LIBOBJ invocations to module description.
3932         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
3933         invocations from here...
3934         * modules/regex (configure.ac): ... to here.
3935
3936 2011-05-21  Bruno Haible  <bruno@clisp.org>
3937
3938         realloc-*: Move AC_LIBOBJ invocations to module description.
3939         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
3940         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
3941         AC_LIBOBJ invocations from here...
3942         * modules/realloc-gnu (configure.ac): ... to here.
3943         * modules/realloc-posix (configure.ac): ... and here.
3944
3945 2011-05-21  Bruno Haible  <bruno@clisp.org>
3946
3947         readutmp: Move AC_LIBOBJ invocations to module description.
3948         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
3949         * modules/readutmp (configure.ac): ... to here.
3950
3951 2011-05-21  Bruno Haible  <bruno@clisp.org>
3952
3953         readlinkat: Move AC_LIBOBJ invocations to module description.
3954         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
3955         here...
3956         * modules/readlinkat (configure.ac): ... to here.
3957
3958 2011-05-21  Bruno Haible  <bruno@clisp.org>
3959
3960         readlink: Move AC_LIBOBJ invocations to module description.
3961         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
3962         gl_PREREQ_READLINK invocations from here...
3963         * modules/readlink (configure.ac): ... to here.
3964
3965 2011-05-21  Bruno Haible  <bruno@clisp.org>
3966
3967         readline: Move AC_LIBOBJ invocations to module description.
3968         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
3969         gl_PREREQ_READLINE invocations from here...
3970         * modules/readline (configure.ac): ... to here.
3971
3972 2011-05-21  Bruno Haible  <bruno@clisp.org>
3973
3974         read: Move AC_LIBOBJ invocations to module description.
3975         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
3976         * modules/read (configure.ac): ... to here.
3977
3978 2011-05-21  Bruno Haible  <bruno@clisp.org>
3979
3980         rawmemchr: Move AC_LIBOBJ invocations to module description.
3981         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
3982         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
3983         from here...
3984         * modules/rawmemchr (configure.ac): ... to here.
3985
3986 2011-05-21  Bruno Haible  <bruno@clisp.org>
3987
3988         random_r: Move AC_LIBOBJ invocations to module description.
3989         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
3990         gl_PREREQ_RANDOM_R invocations from here...
3991         * modules/random_r (configure.ac): ... to here.
3992
3993 2011-05-21  Bruno Haible  <bruno@clisp.org>
3994
3995         pwrite: Move AC_LIBOBJ invocations to module description.
3996         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
3997         * modules/pwrite (configure.ac): ... to here.
3998
3999 2011-05-21  Bruno Haible  <bruno@clisp.org>
4000
4001         putenv: Move AC_LIBOBJ invocations to module description.
4002         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
4003         * modules/putenv (configure.ac): ... to here.
4004
4005 2011-05-21  Bruno Haible  <bruno@clisp.org>
4006
4007         login_tty: Move AC_LIBOBJ invocations to module description.
4008         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
4009         * modules/login_tty (configure.ac): ... to here.
4010
4011 2011-05-21  Bruno Haible  <bruno@clisp.org>
4012
4013         openpty: Move AC_LIBOBJ invocations to module description.
4014         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
4015         * modules/openpty (configure.ac): ... to here.
4016
4017 2011-05-21  Bruno Haible  <bruno@clisp.org>
4018
4019         forkpty: Move AC_LIBOBJ invocations to module description.
4020         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
4021         * modules/forkpty (configure.ac): ... to here.
4022
4023 2011-05-21  Bruno Haible  <bruno@clisp.org>
4024
4025         ptsname: Move AC_LIBOBJ invocations to module description.
4026         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
4027         invocations from here...
4028         * modules/ptsname (configure.ac): ... to here.
4029
4030 2011-05-21  Bruno Haible  <bruno@clisp.org>
4031
4032         pread: Move AC_LIBOBJ invocations to module description.
4033         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
4034         * modules/pread (configure.ac): ... to here.
4035
4036 2011-05-21  Bruno Haible  <bruno@clisp.org>
4037
4038         posix_spawn*: Move AC_LIBOBJ invocations to module description.
4039         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
4040         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
4041         * modules/posix_spawn (configure.ac): ... to here.
4042         * modules/posix_spawnp (configure.ac): ... and here.
4043
4044 2011-05-21  Bruno Haible  <bruno@clisp.org>
4045
4046         popen: Move AC_LIBOBJ invocations to module description.
4047         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
4048         invocations from here...
4049         * modules/popen (configure.ac): ... to here.
4050
4051 2011-05-21  Bruno Haible  <bruno@clisp.org>
4052
4053         poll: Move AC_LIBOBJ invocations to module description.
4054         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
4055         invocations from here...
4056         * modules/poll (configure.ac): ... to here.
4057
4058 2011-05-21  Bruno Haible  <bruno@clisp.org>
4059
4060         pipe-posix: Move AC_LIBOBJ invocations to module description.
4061         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
4062         * modules/pipe-posix (configure.ac): ... to here.
4063
4064 2011-05-21  Bruno Haible  <bruno@clisp.org>
4065
4066         openat: Respect rules for use of AC_LIBOBJ.
4067         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
4068         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
4069         * modules/openat (configure.ac): ... to here.
4070
4071 2011-05-21  Bruno Haible  <bruno@clisp.org>
4072
4073         obstack-printf*: Move AC_LIBOBJ invocations to module description.
4074         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
4075         invocation from here...
4076         * modules/obstack-printf (configure.ac): ... to here.
4077         * modules/obstack-printf-posix (configure.ac): ... and here.
4078
4079 2011-05-21  Bruno Haible  <bruno@clisp.org>
4080
4081         nl_langinfo: Move AC_LIBOBJ invocations to module description.
4082         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
4083         from here...
4084         * modules/nl_langinfo (configure.ac): ... to here.
4085
4086 2011-05-21  Bruno Haible  <bruno@clisp.org>
4087
4088         nanosleep: Move AC_LIBOBJ invocations to module description.
4089         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
4090         gl_PREREQ_NANOSLEEP invocations from here...
4091         * modules/nanosleep (configure.ac): ... to here.
4092
4093 2011-05-21  Bruno Haible  <bruno@clisp.org>
4094
4095         mountlist: Move AC_LIBOBJ invocations to module description.
4096         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
4097         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
4098         * modules/mountlist (configure.ac): ... to here.
4099
4100 2011-05-21  Bruno Haible  <bruno@clisp.org>
4101
4102         mktime: Respect rules for use of AC_LIBOBJ.
4103         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
4104         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
4105         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
4106         (gl_FUNC_MKTIME_INTERNAL): ... and here...
4107         * modules/mktime (configure.ac): ... to here.
4108         * modules/mktime-internal (configure.ac): ... and here.
4109         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
4110
4111 2011-05-21  Bruno Haible  <bruno@clisp.org>
4112
4113         mkstemps: Move AC_LIBOBJ invocations to module description.
4114         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
4115         here...
4116         * modules/mkstemps (configure.ac): ... to here.
4117
4118 2011-05-21  Bruno Haible  <bruno@clisp.org>
4119
4120         mkstemp: Move AC_LIBOBJ invocations to module description.
4121         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
4122         gl_PREREQ_MKSTEMP invocations from here...
4123         * modules/mkstemp (configure.ac): ... to here.
4124
4125 2011-05-21  Bruno Haible  <bruno@clisp.org>
4126
4127         mkostemps: Move AC_LIBOBJ invocations to module description.
4128         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
4129         here...
4130         * modules/mkostemps (configure.ac): ... to here.
4131
4132 2011-05-21  Bruno Haible  <bruno@clisp.org>
4133
4134         mkostemp: Move AC_LIBOBJ invocations to module description.
4135         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
4136         gl_PREREQ_MKOSTEMP invocations from here...
4137         * modules/mkostemp (configure.ac): ... to here.
4138
4139 2011-05-21  Bruno Haible  <bruno@clisp.org>
4140
4141         mknod: Move AC_LIBOBJ invocations to module description.
4142         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
4143         * modules/mknod (configure.ac): ... to here.
4144
4145 2011-05-21  Bruno Haible  <bruno@clisp.org>
4146
4147         mkfifoat: Move AC_LIBOBJ invocations to module description.
4148         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
4149         here...
4150         * modules/mkfifoat (configure.ac): ... to here.
4151
4152 2011-05-21  Bruno Haible  <bruno@clisp.org>
4153
4154         mkfifo: Respect rules for use of AC_LIBOBJ.
4155         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
4156         here...
4157         * modules/mkfifo (configure.ac): ... to here.
4158
4159 2011-05-21  Bruno Haible  <bruno@clisp.org>
4160
4161         mkdtemp: Move AC_LIBOBJ invocations to module description.
4162         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
4163         invocations from here...
4164         * modules/mkdtemp (configure.ac): ... to here.
4165
4166 2011-05-21  Bruno Haible  <bruno@clisp.org>
4167
4168         mkdir: Move AC_LIBOBJ invocations to module description.
4169         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
4170         * modules/mkdir (configure.ac): ... to here.
4171
4172 2011-05-21  Bruno Haible  <bruno@clisp.org>
4173
4174         memset: Move AC_LIBOBJ invocations to module description.
4175         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
4176         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
4177         here...
4178         * modules/memset (configure.ac): ... to here.
4179
4180 2011-05-21  Bruno Haible  <bruno@clisp.org>
4181
4182         memrchr: Move AC_LIBOBJ invocations to module description.
4183         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
4184         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
4185         here...
4186         * modules/memrchr (configure.ac): ... to here.
4187
4188 2011-05-21  Bruno Haible  <bruno@clisp.org>
4189
4190         mempcpy: Move AC_LIBOBJ invocations to module description.
4191         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
4192         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
4193         here...
4194         * modules/mempcpy (configure.ac): ... to here.
4195
4196 2011-05-21  Bruno Haible  <bruno@clisp.org>
4197
4198         memmove: Move AC_LIBOBJ invocations to module description.
4199         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
4200         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
4201         here...
4202         * modules/memmove (configure.ac): ... to here.
4203
4204 2011-05-21  Bruno Haible  <bruno@clisp.org>
4205
4206         memmem*: Move AC_LIBOBJ invocations to module description.
4207         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
4208         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
4209         here...
4210         (gl_FUNC_MEMMEM): ... and here...
4211         * modules/memmem-simple (configure.ac): ... to here.
4212         * modules/memmem (configure.ac): ... and here.
4213
4214 2011-05-21  Bruno Haible  <bruno@clisp.org>
4215
4216         memcpy: Move AC_LIBOBJ invocations to module description.
4217         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
4218         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
4219         here...
4220         * modules/memcpy (configure.ac): ... to here.
4221
4222 2011-05-21  Bruno Haible  <bruno@clisp.org>
4223
4224         memcmp: Simplify autoconf macro.
4225         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
4226         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
4227         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
4228
4229 2011-05-21  Bruno Haible  <bruno@clisp.org>
4230
4231         memcmp: Move AC_LIBOBJ invocations to module description.
4232         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
4233         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
4234         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
4235         * modules/memcmp (configure.ac): ... to here.
4236         (Depends-on): Update conditions.
4237
4238 2011-05-21  Bruno Haible  <bruno@clisp.org>
4239
4240         memchr: Respect rules for use of AC_LIBOBJ.
4241         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
4242         invocations from here...
4243         * modules/memchr (configure.ac): ... to here.
4244
4245 2011-05-21  Bruno Haible  <bruno@clisp.org>
4246
4247         mbtowc: Move AC_LIBOBJ invocations to module description.
4248         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
4249         invocations from here...
4250         * modules/mbtowc (configure.ac): ... to here.
4251
4252 2011-05-21  Bruno Haible  <bruno@clisp.org>
4253
4254         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
4255         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
4256         gl_PREREQ_MBSRTOWCS invocations from here...
4257         * modules/mbsrtowcs (configure.ac): ... to here.
4258
4259 2011-05-21  Bruno Haible  <bruno@clisp.org>
4260
4261         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
4262         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
4263         gl_PREREQ_MBSNRTOWCS invocations from here...
4264         * modules/mbsnrtowcs (configure.ac): ... to here.
4265
4266 2011-05-21  Bruno Haible  <bruno@clisp.org>
4267
4268         mbsinit: Move AC_LIBOBJ invocations to module description.
4269         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
4270         invocations from here...
4271         * modules/mbsinit (configure.ac): ... to here.
4272
4273 2011-05-21  Bruno Haible  <bruno@clisp.org>
4274
4275         mbrlen: Move AC_LIBOBJ invocations to module description.
4276         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
4277         invocations from here...
4278         * modules/mbrlen (configure.ac): ... to here.
4279
4280 2011-05-21  Bruno Haible  <bruno@clisp.org>
4281
4282         mbrtowc: Respect rules for use of AC_LIBOBJ.
4283         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
4284         invocations from here...
4285         * modules/mbrtowc (configure.ac): ... to here.
4286
4287 2011-05-21  Bruno Haible  <bruno@clisp.org>
4288
4289         malloc-*: Move AC_LIBOBJ invocations to module description.
4290         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
4291         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
4292         AC_LIBOBJ invocations from here...
4293         * modules/malloc-gnu (configure.ac): ... to here.
4294         * modules/malloc-posix (configure.ac): ... and here.
4295
4296 2011-05-21  Bruno Haible  <bruno@clisp.org>
4297
4298         lstat, openat: Respect rules for use of AC_LIBOBJ.
4299         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
4300         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
4301         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
4302         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
4303         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
4304         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
4305         here.
4306         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
4307
4308 2011-05-21  Bruno Haible  <bruno@clisp.org>
4309
4310         lseek: Move AC_LIBOBJ invocations to module description.
4311         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
4312         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
4313         * modules/lseek (configure.ac): ... to here.
4314
4315 2011-05-21  Bruno Haible  <bruno@clisp.org>
4316
4317         linkat: Move AC_LIBOBJ invocations to module description.
4318         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
4319         here...
4320         * modules/linkat (configure.ac): ... to here.
4321
4322 2011-05-21  Bruno Haible  <bruno@clisp.org>
4323
4324         link: Respect rules for use of AC_LIBOBJ.
4325         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
4326         * modules/link (configure.ac): ... to here.
4327
4328 2011-05-21  Bruno Haible  <bruno@clisp.org>
4329
4330         lchown: Move AC_LIBOBJ invocations to module description.
4331         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
4332         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
4333         * modules/lchown (configure.ac): ... to here.
4334
4335 2011-05-21  Bruno Haible  <bruno@clisp.org>
4336
4337         iswctype: Move AC_LIBOBJ invocations to module description.
4338         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
4339         here...
4340         * modules/iswctype (configure.ac): ... to here.
4341
4342 2011-05-21  Bruno Haible  <bruno@clisp.org>
4343
4344         iswblank: Move AC_LIBOBJ invocations to module description.
4345         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
4346         here...
4347         * modules/iswblank (configure.ac): ... to here.
4348
4349 2011-05-21  Bruno Haible  <bruno@clisp.org>
4350
4351         atanl: Move AC_LIBOBJ invocations to module description.
4352         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
4353         * modules/atanl (configure.ac): ... to here.
4354
4355 2011-05-21  Bruno Haible  <bruno@clisp.org>
4356
4357         acosl: Move AC_LIBOBJ invocations to module description.
4358         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
4359         * modules/acosl (configure.ac): ... to here.
4360
4361 2011-05-21  Bruno Haible  <bruno@clisp.org>
4362
4363         asinl: Respect rules for use of AC_LIBOBJ.
4364         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
4365         * modules/asinl (configure.ac): ... to here.
4366
4367 2011-05-21  Bruno Haible  <bruno@clisp.org>
4368
4369         tanl: Move AC_LIBOBJ invocations to module description.
4370         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
4371         * modules/tanl (configure.ac): ... to here.
4372
4373 2011-05-21  Bruno Haible  <bruno@clisp.org>
4374
4375         cosl: Move AC_LIBOBJ invocations to module description.
4376         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
4377         * modules/cosl (configure.ac): ... to here.
4378
4379 2011-05-21  Bruno Haible  <bruno@clisp.org>
4380
4381         sinl: Move AC_LIBOBJ invocations to module description.
4382         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
4383         * modules/sinl (configure.ac): ... to here.
4384
4385 2011-05-21  Bruno Haible  <bruno@clisp.org>
4386
4387         logl: Move AC_LIBOBJ invocations to module description.
4388         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
4389         * modules/logl (configure.ac): ... to here.
4390
4391 2011-05-21  Bruno Haible  <bruno@clisp.org>
4392
4393         expl: Move AC_LIBOBJ invocations to module description.
4394         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
4395         * modules/expl (configure.ac): ... to here.
4396
4397 2011-05-21  Bruno Haible  <bruno@clisp.org>
4398
4399         roundl: Move AC_LIBOBJ invocations to module description.
4400         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
4401         * modules/roundl (configure.ac): ... to here.
4402
4403 2011-05-21  Bruno Haible  <bruno@clisp.org>
4404
4405         round: Move AC_LIBOBJ invocations to module description.
4406         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
4407         * modules/round (configure.ac): ... to here.
4408
4409 2011-05-21  Bruno Haible  <bruno@clisp.org>
4410
4411         roundf: Move AC_LIBOBJ invocations to module description.
4412         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
4413         * modules/roundf (configure.ac): ... to here.
4414
4415 2011-05-21  Bruno Haible  <bruno@clisp.org>
4416
4417         truncl: Move AC_LIBOBJ invocations to module description.
4418         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
4419         * modules/truncl (configure.ac): ... to here.
4420
4421 2011-05-21  Bruno Haible  <bruno@clisp.org>
4422
4423         trunc: Move AC_LIBOBJ invocations to module description.
4424         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
4425         * modules/trunc (configure.ac): ... to here.
4426
4427 2011-05-21  Bruno Haible  <bruno@clisp.org>
4428
4429         truncf: Move AC_LIBOBJ invocations to module description.
4430         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
4431         * modules/truncf (configure.ac): ... to here.
4432
4433 2011-05-21  Bruno Haible  <bruno@clisp.org>
4434
4435         ceill: Move AC_LIBOBJ invocations to module description.
4436         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
4437         * modules/ceill (configure.ac): ... to here.
4438
4439 2011-05-21  Bruno Haible  <bruno@clisp.org>
4440
4441         ceil: Move AC_LIBOBJ invocations to module description.
4442         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
4443         * modules/ceil (configure.ac): ... to here.
4444
4445 2011-05-21  Bruno Haible  <bruno@clisp.org>
4446
4447         ceilf: Move AC_LIBOBJ invocations to module description.
4448         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
4449         * modules/ceilf (configure.ac): ... to here.
4450
4451 2011-05-21  Bruno Haible  <bruno@clisp.org>
4452
4453         floorl: Respect rules for use of AC_LIBOBJ.
4454         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
4455         * modules/floorl (configure.ac): ... to here.
4456
4457 2011-05-21  Bruno Haible  <bruno@clisp.org>
4458
4459         floor: Respect rules for use of AC_LIBOBJ.
4460         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
4461         * modules/floor (configure.ac): ... to here.
4462
4463 2011-05-21  Bruno Haible  <bruno@clisp.org>
4464
4465         floorf: Move AC_LIBOBJ invocations to module description.
4466         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
4467         * modules/floorf (configure.ac): ... to here.
4468
4469 2011-05-20  Bruno Haible  <bruno@clisp.org>
4470
4471         sqrtl: Respect rules for use of AC_LIBOBJ.
4472         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
4473         * modules/sqrtl (configure.ac): ... to here.
4474
4475 2011-05-20  Bruno Haible  <bruno@clisp.org>
4476
4477         ldexpl: Respect rules for use of AC_LIBOBJ.
4478         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
4479         * modules/ldexpl (configure.ac): ... to here.
4480
4481 2011-05-20  Bruno Haible  <bruno@clisp.org>
4482
4483         frexpl*: Respect rules for use of AC_LIBOBJ.
4484         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
4485         invocation from here...
4486         * modules/frexpl (configure.ac): ... to here.
4487         * modules/frexpl-nolibm (configure.ac): ... and here.
4488
4489 2011-05-20  Bruno Haible  <bruno@clisp.org>
4490
4491         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
4492         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
4493         invocation from here...
4494         * modules/frexp (configure.ac): ... to here.
4495         * modules/frexp-nolibm (configure.ac): ... and here.
4496
4497 2011-05-20  Bruno Haible  <bruno@clisp.org>
4498
4499         isnan: Respect rules for use of AC_LIBOBJ.
4500         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
4501         invocations here.
4502         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
4503         REPLACE_ISNAN.
4504         * modules/isnand (configure.ac): Likewise.
4505         * modules/isnanl (configure.ac): Likewise.
4506
4507 2011-05-20  Bruno Haible  <bruno@clisp.org>
4508
4509         isnanl*: Respect rules for use of AC_LIBOBJ.
4510         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
4511         invocation from here...
4512         * modules/isnanl (configure.ac): ... to here.
4513         * modules/isnanl-nolibm (configure.ac): ... and here.
4514
4515 2011-05-20  Bruno Haible  <bruno@clisp.org>
4516
4517         isnand*: Move AC_LIBOBJ invocations to module description.
4518         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
4519         invocation from here...
4520         * modules/isnand (configure.ac): ... to here.
4521         * modules/isnand-nolibm (configure.ac): ... and here.
4522
4523 2011-05-20  Bruno Haible  <bruno@clisp.org>
4524
4525         isnanf*: Move AC_LIBOBJ invocations to module description.
4526         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
4527         invocation from here...
4528         * modules/isnanf (configure.ac): ... to here.
4529         * modules/isnanf-nolibm (configure.ac): ... and here.
4530
4531 2011-05-20  Bruno Haible  <bruno@clisp.org>
4532
4533         isnan*: Separate the AC_LIBOBJ invocations.
4534         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
4535         AC_LIBOBJ invocation.
4536         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
4537         here.
4538         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
4539         AC_LIBOBJ invocation.
4540         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
4541         here.
4542         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
4543         AC_LIBOBJ invocation.
4544         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
4545         here.
4546         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
4547
4548 2011-05-08  Bruno Haible  <bruno@clisp.org>
4549
4550         isinf: Move AC_LIBOBJ invocations to module description.
4551         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
4552         * modules/isinf (configure.ac): ... to here.
4553
4554 2011-05-08  Bruno Haible  <bruno@clisp.org>
4555
4556         isfinite: Move AC_LIBOBJ invocations to module description.
4557         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
4558         * modules/isfinite (configure.ac): ... to here.
4559
4560 2011-05-08  Bruno Haible  <bruno@clisp.org>
4561
4562         isblank: Move AC_LIBOBJ invocations to module description.
4563         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
4564         here...
4565         * modules/isblank (configure.ac): ... to here.
4566
4567 2011-05-08  Bruno Haible  <bruno@clisp.org>
4568
4569         isapipe: Move AC_LIBOBJ invocations to module description.
4570         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
4571         gl_PREREQ_ISAPIPE invocations from here...
4572         * modules/isapipe (configure.ac): ... to here.
4573         (Depends-on): Update condition.
4574
4575 2011-05-08  Bruno Haible  <bruno@clisp.org>
4576
4577         ioctl: Move AC_LIBOBJ invocations to module description.
4578         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
4579         invocations from here...
4580         * modules/ioctl (configure.ac): ... to here.
4581         (Depends-on): Update condition.
4582
4583 2011-05-08  Bruno Haible  <bruno@clisp.org>
4584
4585         imaxdiv: Move AC_LIBOBJ invocations to module description.
4586         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
4587         invocations from here...
4588         * modules/imaxdiv (configure.ac): ... to here.
4589
4590 2011-05-08  Bruno Haible  <bruno@clisp.org>
4591
4592         imaxabs: Move AC_LIBOBJ invocations to module description.
4593         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
4594         invocations from here...
4595         * modules/imaxabs (configure.ac): ... to here.
4596
4597 2011-05-08  Bruno Haible  <bruno@clisp.org>
4598
4599         getaddrinfo: Move AC_LIBOBJ invocations to module description.
4600         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
4601         AC_LIBOBJ invocations from here...
4602         * modules/getaddrinfo (configure.ac): ... to here.
4603         (Depends-on): Add conditions.
4604
4605 2011-05-08  Bruno Haible  <bruno@clisp.org>
4606
4607         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
4608         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
4609         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
4610         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
4611         (gl_PREREQ_INET_PTON): ... from here.
4612         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
4613         gl_PREREQ_INET_PTON here.
4614         (Depends-on): Update condition.
4615
4616 2011-05-08  Bruno Haible  <bruno@clisp.org>
4617
4618         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
4619         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
4620         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
4621         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
4622         (gl_PREREQ_INET_NTOP): ... from here.
4623         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
4624         gl_PREREQ_INET_NTOP here.
4625         (Depends-on): Update condition.
4626
4627 2011-05-08  Bruno Haible  <bruno@clisp.org>
4628
4629         iconv_open: Move AC_LIBOBJ invocations to module description.
4630         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
4631         AC_LIBOBJ invocations from here...
4632         * modules/iconv_open (configure.ac): ... to here.
4633
4634 2011-05-08  Bruno Haible  <bruno@clisp.org>
4635
4636         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
4637         If module 'iconv_open' is among the main modules and module
4638         'iconv_open-utf' is among the tests dependencies, then
4639         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
4640         return the special iconv_t values. Therefore iconv() and iconv_close()
4641         must support these special iconv_t values, already in lib, not only in
4642         tests.
4643         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
4644         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
4645         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
4646         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
4647         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
4648         (Depends-on): Add the dependencies of iconv_open-utf.
4649         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
4650         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
4651         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
4652
4653 2011-05-08  Bruno Haible  <bruno@clisp.org>
4654
4655         group-member: Move AC_LIBOBJ invocations to module description.
4656         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
4657         gl_PREREQ_GROUP_MEMBER invocations from here...
4658         * modules/group-member (configure.ac): ... to here.
4659
4660 2011-05-08  Bruno Haible  <bruno@clisp.org>
4661
4662         grantpt: Move AC_LIBOBJ invocations to module description.
4663         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
4664         invocations from here...
4665         * modules/grantpt (configure.ac): ... to here.
4666
4667 2011-05-08  Bruno Haible  <bruno@clisp.org>
4668
4669         glob: Move AC_LIBOBJ invocations to module description.
4670         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
4671         from here...
4672         * modules/glob (configure.ac): ... to here.
4673
4674 2011-05-08  Bruno Haible  <bruno@clisp.org>
4675
4676         getusershell: Move AC_LIBOBJ invocations to module description.
4677         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
4678         Move AC_LIBOBJ invocation from here...
4679         * modules/getusershell (configure.ac): ... to here.
4680         (Depends-on): Update condition.
4681
4682 2011-05-08  Bruno Haible  <bruno@clisp.org>
4683
4684         gettimeofday: Move AC_LIBOBJ invocations to module description.
4685         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
4686         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
4687         gl_PREREQ_GETTIMEOFDAY invocations from here...
4688         * modules/gettimeofday (configure.ac): ... to here.
4689
4690 2011-05-08  Bruno Haible  <bruno@clisp.org>
4691
4692         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
4693         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
4694         just gl_FUNC_TZSET.
4695         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
4696         (gl_FUNC_TZSET_CLOBBER): Remove actions.
4697         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
4698         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
4699
4700 2011-05-08  Bruno Haible  <bruno@clisp.org>
4701
4702         getsubopt: Move AC_LIBOBJ invocations to module description.
4703         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
4704         gl_PREREQ_GETSUBOPT invocations from here...
4705         * modules/getsubopt (configure.ac): ... to here.
4706
4707 2011-05-08  Bruno Haible  <bruno@clisp.org>
4708
4709         getpass-gnu: Move AC_LIBOBJ invocations to module description.
4710         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
4711         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
4712         * modules/getpass-gnu (configure.ac): ... to here.
4713
4714 2011-05-08  Bruno Haible  <bruno@clisp.org>
4715
4716         getpass: Move AC_LIBOBJ invocations to module description.
4717         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
4718         gl_PREREQ_GETPASS invocations from here...
4719         * modules/getpass (configure.ac): ... to here.
4720
4721 2011-05-08  Bruno Haible  <bruno@clisp.org>
4722
4723         getpagesize: Move AC_LIBOBJ invocations to module description.
4724         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
4725         from here...
4726         * modules/getpagesize (configure.ac): ... to here.
4727
4728 2011-05-08  Bruno Haible  <bruno@clisp.org>
4729
4730         getopt: Move AC_LIBOBJ invocations to module description.
4731         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
4732         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
4733         invocations from here...
4734         * modules/getopt-gnu (configure.ac): ... to here.
4735         * modules/getopt-posix (configure.ac): ... and here.
4736         (Depends-on): Update condition.
4737
4738 2011-05-08  Bruno Haible  <bruno@clisp.org>
4739
4740         getopt, argp: Respect rules for use of AC_LIBOBJ.
4741         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
4742         (gl_REPLACE_GETOPT_ALWAYS): New macro.
4743         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
4744         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
4745
4746 2011-05-08  Bruno Haible  <bruno@clisp.org>
4747
4748         getlogin_r: Move AC_LIBOBJ invocations to module description.
4749         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
4750         gl_PREREQ_GETLOGIN_R invocations from here...
4751         * modules/getlogin_r (configure.ac): ... to here.
4752
4753 2011-05-08  Bruno Haible  <bruno@clisp.org>
4754
4755         getlogin: Move AC_LIBOBJ invocations to module description.
4756         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
4757         here...
4758         * modules/getlogin (configure.ac): ... to here.
4759
4760 2011-05-08  Bruno Haible  <bruno@clisp.org>
4761
4762         getloadavg: Move AC_LIBOBJ invocations to module description.
4763         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
4764         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
4765         * modules/getloadavg (configure.ac): ... to here.
4766
4767 2011-05-08  Bruno Haible  <bruno@clisp.org>
4768
4769         gethrxtime: Move AC_LIBOBJ invocations to module description.
4770         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
4771         LIB_GETHRXTIME from here...
4772         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
4773         invocations from here...
4774         * modules/gethrxtime (configure.ac): ... to here.
4775
4776 2011-05-08  Bruno Haible  <bruno@clisp.org>
4777
4778         gethostname: Move AC_LIBOBJ invocations to module description.
4779         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
4780         gl_PREREQ_GETHOSTNAME invocations from here...
4781         * modules/gethostname (configure.ac): ... to here.
4782
4783 2011-05-08  Bruno Haible  <bruno@clisp.org>
4784
4785         getgroups: Move AC_LIBOBJ invocations to module description.
4786         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
4787         here...
4788         * modules/getgroups (configure.ac): ... to here.
4789
4790 2011-05-08  Bruno Haible  <bruno@clisp.org>
4791
4792         getdtablesize: Move AC_LIBOBJ invocations to module description.
4793         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
4794         invocation from here...
4795         * modules/getdtablesize (configure.ac): ... to here.
4796
4797 2011-05-08  Bruno Haible  <bruno@clisp.org>
4798
4799         getdomainname: Move AC_LIBOBJ invocations to module description.
4800         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
4801         gl_PREREQ_GETDOMAINNAME invocations from here...
4802         * modules/getdomainname (configure.ac): ... to here.
4803
4804 2011-05-08  Bruno Haible  <bruno@clisp.org>
4805
4806         getline: Move AC_LIBOBJ invocations to module description.
4807         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
4808         invocations from here...
4809         * modules/getline (configure.ac): ... to here.
4810
4811 2011-05-08  Bruno Haible  <bruno@clisp.org>
4812
4813         getline: Simplify.
4814         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
4815         It's already handled through the module dependency.
4816
4817 2011-05-08  Bruno Haible  <bruno@clisp.org>
4818
4819         getdelim: Move AC_LIBOBJ invocations to module description.
4820         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
4821         and gl_PREREQ_GETDELIM invocations from here...
4822         * modules/getdelim (configure.ac): ... to here.
4823         (Depends-on): Fix condition.
4824
4825 2011-05-08  Bruno Haible  <bruno@clisp.org>
4826
4827         getcwd: Move AC_LIBOBJ invocations to module description.
4828         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
4829         invocations from here...
4830         * modules/getcwd (configure.ac): ... to here.
4831
4832 2011-05-08  Bruno Haible  <bruno@clisp.org>
4833
4834         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
4835         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
4836         here...
4837         * modules/getcwd-lgpl (configure.ac): ... to here.
4838
4839 2011-05-07  Bruno Haible  <bruno@clisp.org>
4840
4841         crypto/gc: Move AC_LIBOBJ invocations to module description.
4842         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
4843         * modules/crypto/gc (configure.ac): ... to here.
4844
4845 2011-05-07  Bruno Haible  <bruno@clisp.org>
4846
4847         fwriting: Move AC_LIBOBJ invocations to module description.
4848         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
4849         here...
4850         * modules/fwriting (configure.ac): ... to here.
4851
4852 2011-05-07  Bruno Haible  <bruno@clisp.org>
4853
4854         fwritable: Move AC_LIBOBJ invocations to module description.
4855         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
4856         here...
4857         * modules/fwritable (configure.ac): ... to here.
4858
4859 2011-05-07  Bruno Haible  <bruno@clisp.org>
4860
4861         futimens: Move AC_LIBOBJ invocations to module description.
4862         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
4863         here...
4864         * modules/futimens (configure.ac): ... to here.
4865
4866 2011-05-07  Bruno Haible  <bruno@clisp.org>
4867
4868         ftruncate: Move AC_LIBOBJ invocations to module description.
4869         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
4870         gl_PREREQ_FTRUNCATE invocations from here...
4871         * modules/ftruncate (configure.ac): ... to here.
4872
4873 2011-05-07  Bruno Haible  <bruno@clisp.org>
4874
4875         fsync: Move AC_LIBOBJ invocations to module description.
4876         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
4877         invocations from here...
4878         * modules/fsync (configure.ac): ... to here.
4879
4880 2011-05-07  Bruno Haible  <bruno@clisp.org>
4881
4882         fsusage: Move AC_LIBOBJ invocations to module description.
4883         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
4884         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
4885         * modules/fsusage (configure.ac): ... to here.
4886
4887 2011-05-07  Bruno Haible  <bruno@clisp.org>
4888
4889         freopen: Move AC_LIBOBJ invocations to module description.
4890         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
4891         invocations from here...
4892         * modules/freopen (configure.ac): ... to here.
4893
4894 2011-05-07  Bruno Haible  <bruno@clisp.org>
4895
4896         free: Move AC_LIBOBJ invocations to module description.
4897         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
4898         invocations from here...
4899         * modules/free (configure.ac): ... to here.
4900
4901 2011-05-07  Bruno Haible  <bruno@clisp.org>
4902
4903         freadable: Move AC_LIBOBJ invocations to module description.
4904         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
4905         here...
4906         * modules/freadable (configure.ac): ... to here.
4907
4908 2011-05-07  Bruno Haible  <bruno@clisp.org>
4909
4910         fpurge: Move AC_LIBOBJ invocations to module description.
4911         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
4912         invocations from here...
4913         * modules/fpurge (configure.ac): ... to here.
4914
4915 2011-05-07  Bruno Haible  <bruno@clisp.org>
4916
4917         fpending: Move AC_LIBOBJ invocations to module description.
4918         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
4919         gl_FUNC_FPENDING.
4920         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
4921         invocations from here...
4922         * modules/fpending (configure.ac): ... to here.
4923
4924 2011-05-07  Bruno Haible  <bruno@clisp.org>
4925
4926         fopen: Move AC_LIBOBJ invocations to module description.
4927         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
4928         invocations from here...
4929         * modules/fopen (configure.ac): ... to here.
4930
4931 2011-05-07  Bruno Haible  <bruno@clisp.org>
4932
4933         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
4934         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
4935         gl_FUNC_FNMATCH_POSIX.
4936         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
4937         invocations from here...
4938         * modules/fnmatch (configure.ac): ... to here.
4939         * modules/fnmatch-gnu (configure.ac): ... and here.
4940
4941 2011-05-07  Bruno Haible  <bruno@clisp.org>
4942
4943         flock: Move AC_LIBOBJ invocations to module description.
4944         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
4945         invocations from here...
4946         * modules/flock (configure.ac): ... to here.
4947
4948 2011-05-07  Bruno Haible  <bruno@clisp.org>
4949
4950         fileblocks: Move AC_LIBOBJ invocations to module description.
4951         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
4952         gl_PREREQ_FILEBLOCKS invocations from here...
4953         * modules/fileblocks (configure.ac): ... to here.
4954
4955 2011-05-06  Bruno Haible  <bruno@clisp.org>
4956
4957         fflush: Move AC_LIBOBJ invocations to module description.
4958         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
4959         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
4960         invocations from here...
4961         * modules/fflush (configure.ac): ... to here.
4962
4963 2011-05-06  Bruno Haible  <bruno@clisp.org>
4964
4965         fdopendir: Move AC_LIBOBJ invocations to module description.
4966         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
4967         here...
4968         * modules/fdopendir (configure.ac): ... to here.
4969         (Depends-on): Improve conditions.
4970
4971 2011-05-06  Bruno Haible  <bruno@clisp.org>
4972
4973         _Exit: Move AC_LIBOBJ invocations to module description.
4974         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
4975         invocations from here...
4976         * modules/_Exit (configure.ac): ... to here.
4977
4978 2011-05-21  Bruno Haible  <bruno@clisp.org>
4979
4980         euidaccess: Respect rules for use of AC_LIBOBJ.
4981         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
4982         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
4983         from here...
4984         * modules/euidaccess (configure.ac): ... to here.
4985
4986 2011-05-06  Bruno Haible  <bruno@clisp.org>
4987
4988         error: Move AC_LIBOBJ invocations to module description.
4989         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
4990         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
4991         invocations from here...
4992         * modules/error (configure.ac): ... to here.
4993
4994 2011-05-06  Bruno Haible  <bruno@clisp.org>
4995
4996         duplocale: Move AC_LIBOBJ invocations to module description.
4997         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
4998         gl_PREREQ_DUPLOCALE invocations from here...
4999         * modules/duplocale (configure.ac): ... to here.
5000
5001 2011-05-05  Bruno Haible  <bruno@clisp.org>
5002
5003         dirfd: Move AC_LIBOBJ invocations to module description.
5004         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
5005         gl_FUNC_DIRFD.
5006         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
5007         here...
5008         * modules/dirfd (configure.ac): ... to here.
5009         (Depends-on): Fix condition.
5010
5011 2011-05-05  Bruno Haible  <bruno@clisp.org>
5012
5013         chown: Respect rules for use of AC_LIBOBJ.
5014         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
5015         * modules/chown (configure.ac): ... to here.
5016
5017 2011-05-05  Bruno Haible  <bruno@clisp.org>
5018
5019         chdir-long: Move AC_LIBOBJ invocations to module description.
5020         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
5021         gl_PREREQ_CHDIR_LONG invocations from here...
5022         * modules/chdir-long (configure.ac): ... to here.
5023
5024 2011-05-05  Bruno Haible  <bruno@clisp.org>
5025
5026         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
5027         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
5028         from here...
5029         * modules/canonicalize-lgpl (configure.ac): ... to here.
5030
5031 2011-05-05  Bruno Haible  <bruno@clisp.org>
5032
5033         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
5034         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
5035         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
5036         REPLACE_CALLOC.
5037         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
5038         * modules/calloc-gnu (configure.ac): Likewise.
5039
5040 2011-05-05  Bruno Haible  <bruno@clisp.org>
5041
5042         btowc: Move AC_LIBOBJ invocations to module description.
5043         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
5044         invocations from here...
5045         * modules/btowc (configure.ac): ... to here.
5046
5047 2011-05-21  Bruno Haible  <bruno@clisp.org>
5048
5049         atexit: Move AC_LIBOBJ invocations to module description.
5050         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
5051         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
5052         here...
5053         * modules/atexit (configure.ac): ... to here.
5054
5055 2011-05-05  Bruno Haible  <bruno@clisp.org>
5056
5057         atoll: Move AC_LIBOBJ invocations to module description.
5058         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
5059         invocations from here...
5060         * modules/atoll (configure.ac): ... to here.
5061
5062 2011-05-05  Bruno Haible  <bruno@clisp.org>
5063
5064         argz: Move AC_LIBOBJ invocations to module description.
5065         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
5066         * modules/argz (configure.ac): ... to here.
5067
5068 2011-05-05  Bruno Haible  <bruno@clisp.org>
5069
5070         alphasort: Move AC_LIBOBJ invocations to module description.
5071         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
5072         gl_PREREQ_ALPHASORT invocations from here...
5073         * modules/alphasort (configure.ac): ... to here.
5074
5075 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
5076
5077         verify: new macro verify_expr; verify_true deprecated
5078         * NEWS: Mention this.
5079         * doc/verify.texi (Compile-time Assertions): Document this.
5080         * lib/verify.h (verify_true): Deprecate.
5081         (verify_expr): New macro.
5082         * tests/test-verify.c (function): Test verify_expr.
5083
5084 2011-06-14  Jim Meyering  <meyering@redhat.com>
5085
5086         init.sh: give more portable redirection-related advice in a comment
5087         * tests/init.sh (stderr_fileno_): Update the advice in comments.
5088         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
5089         for lots of discussion.  Stefano Lattarini suggested the solution
5090         of putting "9>&2" after the command.  Reported by Bruno Haible.
5091
5092 2011-06-13  Bruno Haible  <bruno@clisp.org>
5093
5094         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
5095         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
5096         'none'.
5097
5098 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
5099
5100         ftoastr: use strtof only if HAVE_STRTOF
5101         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
5102         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
5103         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
5104         * modules/ftoastr (configure.ac): Check for strtof.
5105
5106 2011-06-13  Bruno Haible  <bruno@clisp.org>
5107
5108         gnulib-tool: Addendum to 2011-06-08 commit.
5109         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
5110         and --witness-c-macro have been given, augment AM_CPPFLAGS.
5111
5112 2011-06-13  Bruno Haible  <bruno@clisp.org>
5113
5114         fseeko: Provide a non-inline replacement of fseek().
5115         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
5116         * modules/fseeko (Depends-on): Add fseek.
5117         * modules/fseek (License): Change to LGPLv2+.
5118
5119 2011-06-13  Bruno Haible  <bruno@clisp.org>
5120
5121         ftello: Provide a non-inline replacement of ftell().
5122         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
5123         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
5124         not have ftello() (such as on mingw).
5125         * modules/ftello (Depends-on): Add ftell.
5126         * modules/ftell (License): Change to LGPLv2+.
5127
5128 2011-05-07  Bruno Haible  <bruno@clisp.org>
5129
5130         ftell: Move AC_LIBOBJ invocations to module description.
5131         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
5132         * modules/ftell (configure.ac): ... to here.
5133
5134 2011-05-07  Bruno Haible  <bruno@clisp.org>
5135
5136         ftello: Respect rules for use of AC_LIBOBJ.
5137         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
5138         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
5139         here...
5140         * modules/ftello (configure.ac): ... to here.
5141
5142 2011-05-07  Bruno Haible  <bruno@clisp.org>
5143
5144         fseeko: Simplify.
5145         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
5146         (gl_FUNC_FSEEKO): Inline it here.
5147
5148 2011-05-07  Bruno Haible  <bruno@clisp.org>
5149
5150         fseek: Move AC_LIBOBJ invocations to module description.
5151         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
5152         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
5153         * modules/fseek (configure.ac): ... to here.
5154
5155 2011-05-07  Bruno Haible  <bruno@clisp.org>
5156
5157         fseek: Respect rules for use of AC_LIBOBJ.
5158         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
5159         here...
5160         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
5161
5162 2011-05-07  Bruno Haible  <bruno@clisp.org>
5163
5164         fseeko: Respect rules for use of AC_LIBOBJ.
5165         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
5166         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
5167         here...
5168         * modules/fseeko (configure.ac): ... to here.
5169
5170 2011-06-13  Bruno Haible  <bruno@clisp.org>
5171
5172         gnulib-tool: Allow comments in the 'Depends-on' section.
5173         * doc/gnulib.texi (Module description): Mention comment syntax in the
5174         Depends-on section.
5175         * gnulib-tool (func_get_dependencies): Filter out comment lines.
5176
5177 2011-06-13  Bruno Haible  <bruno@clisp.org>
5178
5179         file-set.h: guard __attibute__ use, now that it's not always defined
5180         * lib/file-set.h (record_file): Use __attribute__ only with compiler
5181         versions that support it.  This fixes a coreutils build failure with
5182         the vendor cc on HP-UX 11.31.
5183
5184 2011-06-12  Bruno Haible  <bruno@clisp.org>
5185
5186         acl: Add support for HP-UX >= 11.11 JFS ACLs.
5187         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
5188         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
5189         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
5190         (acl, aclsort): New declarations.
5191         (aclv_nontrivial): New declaration.
5192         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
5193         (file_has_acl): Read also the second kind of HP-UX ACLs.
5194         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
5195         kind of HP-UX ACLs if the first kind fails.
5196         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
5197         second kind of HP-UX ACLs.
5198         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
5199         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
5200         agree.
5201         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
5202         hpuxjfs.
5203         Handle hpuxjfs.
5204         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
5205         hpuxjfs.
5206         Handle hpuxjfs.
5207         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
5208         (func_test_same_acls): Use both lsacl and getacl.
5209         Handle hpuxjfs.
5210         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
5211         (func_test_same_acls): Use both lsacl and getacl.
5212         Handle hpuxjfs.
5213
5214 2011-06-12  Bruno Haible  <bruno@clisp.org>
5215
5216         acl: Complete the 2010-08-10 fix.
5217         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
5218         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
5219         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
5220         explicitly.
5221         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
5222         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
5223
5224 2011-06-12  Bruno Haible  <bruno@clisp.org>
5225
5226         spawn-pipe tests: Comments.
5227         * tests/test-spawn-pipe-child.c (main): Update comment.
5228         Reported by James Youngman <jay@gnu.org>.
5229
5230 2011-06-11  James Youngman  <jay@gnu.org>
5231
5232         New module 'stat-size'.
5233         * modules/stat-size: New module.  Provides macros for accessing
5234         file size information in instances of struct stat.  Depends on the
5235         fileblocks module because it calls st_blocks.
5236         * lib/stat-size.h: New file, adapted from coreutils' system.h.
5237         * doc/gnulib.texi: Include stat-size.texi.
5238         * doc/stat-size.texi: Documentation for this module.
5239         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
5240         * m4/fileblocks.m4: Mention that stat-size depends on the call to
5241         AC_STRUCT_ST_BLOCKS.
5242
5243 2011-06-09  Bruno Haible  <bruno@clisp.org>
5244
5245         thread: Support pthreads-win32.
5246         * lib/glthread/thread.h (gl_thread_self): Define differently on
5247         pthreads-win32.
5248         (gl_null_thread): New declaration.
5249         (gl_thread_self_pointer): New macro.
5250         * lib/glthread/thread.c (gl_null_thread): New constant.
5251         * tests/test-lock.c: Use gl_thread_self_pointer instead of
5252         gl_thread_self.
5253         * tests/test-tls.c: Likewise.
5254         Suggested by Paul Eggert. Reported by Eric Blake.
5255
5256 2011-06-09  Bruno Haible  <bruno@clisp.org>
5257
5258         thread: Fix confusion between NULL and 0.
5259         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
5260         Reported by Paul Eggert.
5261
5262 2011-06-09  Bruno Haible  <bruno@clisp.org>
5263
5264         spawn-pipe tests: Avoid test failure on HP-UX 11.
5265         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
5266         is closed.
5267
5268 2011-06-09  Bruno Haible  <bruno@clisp.org>
5269
5270         acl tests: Fix compilation error on HP-UX 11.
5271         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
5272
5273 2011-06-09  Bruno Haible  <bruno@clisp.org>
5274
5275         rmdir: Avoid test failure on HP-UX 10.20.
5276         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
5277         EEXIST.
5278
5279 2011-06-08  Eric Blake  <eblake@redhat.com>
5280
5281         perror: fix test on mingw
5282         * modules/perror-tests (Depends-on): Add dup2.
5283
5284         strerror_r-posix: fix on MacOS
5285         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
5286         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
5287         logic bug.
5288         * lib/strerror_r.c (strerror_r): Fix the bug.
5289         * lib/strerror.c (strerror): Likewise.
5290         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
5291         problem.
5292         * doc/posix-functions/strerror.texi (strerror): Likewise.
5293         * doc/posix-functions/perror.texi (perror): Likewise.
5294         * tests/test-strerror.c (main): Enhance test.
5295         * tests/test-strerror_r.c (main): Likewise.
5296
5297 2011-06-08  Bruno Haible  <bruno@clisp.org>
5298
5299         gnulib-tool: Better isolation between different gnulib-tool invocations.
5300         * gnulib-tool: New option --witness-c-macro.
5301         (witness_c_macro): New variable.
5302         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
5303         AM_CPPFLAGS define it as a C macro.
5304         (func_emit_tests_Makefile_am): Likewise.
5305         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
5306         read it from there.
5307         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
5308         m4_define, not AC_DEFUN.
5309         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
5310         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
5311         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
5312         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
5313         s|...|...|, to substitute the values of the GNULIB_* module indicator
5314         variables.
5315         * modules/dirent (Makefile.am): Likewise.
5316         * modules/fcntl-h (Makefile.am): Likewise.
5317         * modules/iconv-h (Makefile.am): Likewise.
5318         * modules/langinfo (Makefile.am): Likewise.
5319         * modules/locale (Makefile.am): Likewise.
5320         * modules/math (Makefile.am): Likewise.
5321         * modules/netdb (Makefile.am): Likewise.
5322         * modules/poll-h (Makefile.am): Likewise.
5323         * modules/pty (Makefile.am): Likewise.
5324         * modules/search (Makefile.am): Likewise.
5325         * modules/signal (Makefile.am): Likewise.
5326         * modules/spawn (Makefile.am): Likewise.
5327         * modules/stdio (Makefile.am): Likewise.
5328         * modules/stdlib (Makefile.am): Likewise.
5329         * modules/string (Makefile.am): Likewise.
5330         * modules/sys_ioctl (Makefile.am): Likewise.
5331         * modules/sys_select (Makefile.am): Likewise.
5332         * modules/sys_socket (Makefile.am): Likewise.
5333         * modules/sys_stat (Makefile.am): Likewise.
5334         * modules/sys_times (Makefile.am): Likewise.
5335         * modules/sys_utsname (Makefile.am): Likewise.
5336         * modules/sys_wait (Makefile.am): Likewise.
5337         * modules/termios (Makefile.am): Likewise.
5338         * modules/time (Makefile.am): Likewise.
5339         * modules/unistd (Makefile.am): Likewise.
5340         * modules/wchar (Makefile.am): Likewise.
5341
5342 2011-06-08  Eric Blake  <eblake@redhat.com>
5343
5344         strerror: simplify replacement
5345         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
5346         * modules/strerror (configure.ac): No prereqs needed here...
5347         * modules/strerror-override (configure.ac): ...but this needs it.
5348         (Files): Add file for needed prereq macro.
5349
5350 2011-06-08  Bruno Haible  <bruno@clisp.org>
5351
5352         strerror_r-posix: Tweaks.
5353         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
5354         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
5355         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
5356         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
5357         (gl_FUNC_STRERROR_R): ... to here.
5358         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
5359
5360 2011-06-07  Eric Blake  <eblake@redhat.com>
5361
5362         perror: document fixed bugs
5363         * doc/posix-functions/perror.texi (perror): Document recent
5364         patches.
5365
5366 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
5367
5368         stat-time: get_stat_birthtime failure is better-defined
5369         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
5370         return a timestamp whose tv_sec and tv_nsec values are both -1.
5371         Previously, the spec said only that the tv_nsec value was negative.
5372         This upward-compatible change simplifies GNU tar a bit.
5373
5374 2011-06-07  Eric Blake  <eblake@redhat.com>
5375
5376         strerror_r-posix: work around cygwin 1.7.9
5377         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
5378         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
5379         bug without replacing strerror_r.
5380         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
5381         strerror_r is buggy, but without requiring strerror_r compilation.
5382         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
5383
5384         test-perror: relax test to ignore cygwin bug
5385         * tests/test-perror2.c (main): Relax test on requiring detection
5386         of stream errors, and use unbuffered stream.
5387         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
5388         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
5389         * doc/posix-functions/fputc.texi (fputc): Likewise.
5390         * doc/posix-functions/fputs.texi (fputs): Likewise.
5391         * doc/posix-functions/fputws.texi (fputws): Likewise.
5392         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
5393         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
5394         * doc/posix-functions/getopt.texi (getopt): Likewise.
5395         * doc/posix-functions/perror.texi (perror): Likewise.
5396         * doc/posix-functions/printf.texi (printf): Likewise.
5397         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
5398         * doc/posix-functions/psignal.texi (psignal): Likewise.
5399         * doc/posix-functions/putc.texi (putc): Likewise.
5400         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
5401         Likewise.
5402         * doc/posix-functions/putchar.texi (putchar): Likewise.
5403         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
5404         Likewise.
5405         * doc/posix-functions/puts.texi (puts): Likewise.
5406         * doc/posix-functions/putwc.texi (putwc): Likewise.
5407         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
5408         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
5409         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
5410         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
5411         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
5412         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
5413         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
5414         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
5415
5416 2011-05-22  Bruno Haible  <bruno@clisp.org>
5417
5418         strerror: Move AC_LIBOBJ invocations to module description.
5419         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
5420         gl_PREREQ_STRERROR invocations from here...
5421         * modules/strerror (configure.ac): ... to here.
5422
5423 2011-05-21  Bruno Haible  <bruno@clisp.org>
5424
5425         perror: Use common idiom.
5426         * modules/perror (configure.ac): Reorder statements.
5427
5428 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
5429
5430         tests: fix usage message in 'mktempd_'
5431         * tests/init.sh (mktempd_): In the usage message, use literal
5432         'mktempd_', not '$ME' (which is even undefined), as the name of
5433         the subroutine.
5434
5435 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
5436
5437         tests init: new function 'fatal_', for hard errors
5438         Before this patch, the only way offered by tests/init.sh to
5439         properly signal a hard error was the `framework_failure_'
5440         function.  But the error message issued by that function,
5441         as its name would suggest, refers to a set-up failure in the
5442         testsuite, while hard errors can obviously also be due to
5443         other reasons.  The best way to fix this inconsistency is to
5444         introduce a new function with a more general error message.
5445         * tests/init.sh (fatal_): New function.
5446
5447 2011-06-06  Eric Blake  <eblake@redhat.com>
5448
5449         canonicalize-lgpl: use common idiom
5450         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
5451         over newer POSIX -Rf.
5452         Reported by Bruno Haible.
5453
5454         canonicalize-lgpl: work around AIX realpath bug
5455         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
5456         * doc/posix-functions/realpath.texi (realpath): Document it.
5457         Reported by Bruno Haible.
5458
5459         strerror: work around FreeBSD bug
5460         * lib/strerror.c (strerror): Special case 0.
5461         Reported by Bruno Haible.
5462
5463         strerror-override: avoid bloating errno module
5464         * modules/errno (Files, configure.ac): Move replacement strings...
5465         * modules/strerror-override: ...to new module.
5466         * modules/strerror (Depends-on): Add strerror-override.
5467         * modules/strerror_r-posix (Depends-on): Likewise.
5468         * MODULES.html.sh: Document new module.
5469         Reported by Bruno Haible.
5470
5471 2011-06-06  Bruno Haible  <bruno@clisp.org>
5472
5473         spawn-pipe tests: Rename program.
5474         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
5475         * tests/test-spawn-pipe-child.c: Update comment.
5476         * tests/test-spawn-pipe.sh: Update.
5477         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
5478
5479         spawn-pipe tests: Link the child program only against libc.
5480         * tests/test-spawn-pipe-child.c: New file, extracted from
5481         tests/test-spawn-pipe.c.
5482         (main): Expect only one argument.
5483         (is_open): New function, copied from tests/test-pipe.c.
5484         * tests/test-spawn-pipe.c: Don't include <errno.h>.
5485         (child_main): Remove function.
5486         (test_pipe): Pass only one argument to the child program.
5487         (main): Remove child process code. Expect the child program's name as
5488         first argument.
5489         * tests/test-spawn-pipe.sh: Pass the child program's name as first
5490         argument.
5491         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
5492         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
5493         test-spawn-pipe-child against no libraries.
5494
5495 2011-06-06  Bruno Haible  <bruno@clisp.org>
5496
5497         careadlinkat: Avoid mismatch between ssize_t and int.
5498         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
5499         * lib/careadlinkat.c (careadlinkatcwd): Define always.
5500
5501 2011-06-06  Jim Meyering  <meyering@redhat.com>
5502
5503         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
5504         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
5505         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
5506
5507 2011-06-05  Bruno Haible  <bruno@clisp.org>
5508
5509         ansi-c++-opt: Interoperability with libtool.
5510         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
5511         set the variable to "no", not to ":".
5512         * NEWS: Mention the change.
5513
5514 2011-06-05  Bruno Haible  <bruno@clisp.org>
5515
5516         acl: Fix test failure on AIX 7.
5517         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
5518         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
5519
5520 2011-06-05  Bruno Haible  <bruno@clisp.org>
5521
5522         pipe-filter-ii: Fix test failure on AIX and IRIX.
5523         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
5524         with EAGAIN, retry with a smaller buffer size.
5525
5526 2011-06-05  Bruno Haible  <bruno@clisp.org>
5527
5528         localename: Fix link dependencies.
5529         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
5530         * modules/localename-tests (Makefile.am): Link test-localename with
5531         $(LIBTHREAD).
5532
5533 2011-06-05  Bruno Haible  <bruno@clisp.org>
5534
5535         error: Avoid gcc warning.
5536         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
5537
5538 2011-06-05  Bruno Haible  <bruno@clisp.org>
5539
5540         unsetenv: Avoid gcc warning.
5541         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
5542
5543 2011-06-05  Bruno Haible  <bruno@clisp.org>
5544
5545         setenv: Avoid gcc warning.
5546         * lib/setenv.c (setenv): Provide declaration if system lacks it.
5547
5548 2011-06-05  Bruno Haible  <bruno@clisp.org>
5549
5550         sys_select: Ensure memset is declared also on AIX 7.
5551         * lib/sys_select.in.h: Include <string.h> also on AIX.
5552         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
5553         self-contained also on AIX 7.1.
5554
5555 2011-06-04  Jim Meyering  <meyering@redhat.com>
5556
5557         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
5558         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
5559         function name, "error".
5560         (_gl_translatable_diag_func_re): New configurable variable.
5561
5562 2011-06-04  Bruno Haible  <bruno@clisp.org>
5563
5564         getopt: Avoid gcc warning.
5565         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
5566
5567 2011-06-04  Bruno Haible  <bruno@clisp.org>
5568
5569         strerror_r: Fix comments.
5570         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
5571         commit.
5572
5573 2011-06-04  Bruno Haible  <bruno@clisp.org>
5574
5575         perror: Fix compilation error.
5576         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
5577         Undefine fprintf, not sprintf.
5578         * modules/perror (Depends-on): Remove intprops, verify.
5579
5580 2011-06-04  Bruno Haible  <bruno@clisp.org>
5581
5582         setlocale: Enable replacement on Cygwin 1.5.
5583         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
5584         Cygwin 1.5.x.
5585         * doc/posix-functions/setlocale.texi: Mention that the problem with the
5586         LC_CTYPE category also exists on Cygwin 1.5.x.
5587
5588 2011-06-04  Bruno Haible  <bruno@clisp.org>
5589
5590         strerror-override: Don't disable symbol renamings.
5591         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
5592         * lib/strerror-override.c: Include config.h.
5593         (strerror_override): Don't undefine.
5594
5595 2011-06-03  Bruno Haible  <bruno@clisp.org>
5596
5597         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
5598         * lib/localename.h: Update copyright header.
5599         * lib/localename.c: Likewise.
5600         * lib/relocatable.h: Likewise.
5601         * lib/relocatable.c: Likewise.
5602
5603 2011-06-02  Bruno Haible  <bruno@clisp.org>
5604
5605         doc: Fix a module name.
5606         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
5607
5608 2011-06-02  Bruno Haible  <bruno@clisp.org>
5609
5610         pipe2: Remove dependency on 'nonblocking' module.
5611         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
5612         O_NONBLOCK is defined by gnulib.
5613         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
5614         is zero.
5615         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
5616         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
5617         defined by gnulib.
5618         (get_nonblocking_flag): New function.
5619         (main): Test O_NONBLOCK flag only if it is nonzero.
5620         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
5621
5622 2011-06-03  Jim Meyering  <meyering@redhat.com>
5623
5624         maint: three new prohibit-header-without-use rules
5625         Prohibit use of cloexec.h, posixver.h, same.h without use.
5626         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
5627         (sc_prohibit_posixver_without_use): Likewise.
5628         (sc_prohibit_same_without_use): Likewise.
5629
5630 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
5631
5632         allocator: 'die' routine is now given requested size
5633         * lib/allocator.h (struct allocator.die): New size arg.
5634         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
5635         If the actual problem is an ssize_t limitation, not a size_t or
5636         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
5637
5638 2011-06-01  Eric Blake  <eblake@redhat.com>
5639
5640         strerror: drop strerror_r dependency
5641         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
5642         * lib/strerror-override.c (strerror_override): ...to new file.
5643         * lib/strerror-override.h: Add prototype.
5644         * lib/strerror-impl.h: Delete.
5645         * lib/strerror.c (strerror): New implementation.
5646         * modules/errno (Files): Add new files.
5647         (configure.ac): Compile new file as appropriate.
5648         * modules/strerror (Files): Drop unused file.
5649         (Depends-on): Drop strerror_r-posix.
5650         * MODULES.html.sh: Document strerror_r-posix.
5651         Requested by Sam Steingold.
5652
5653         perror: call strerror_r directly
5654         * modules/perror (Files): Drop strerror-impl.h.
5655         * lib/perror.c (perror): Use our own stack buffer, rather than
5656         calling a wrapper that uses static storage.
5657         * doc/posix-functions/perror.texi (perror): Document a limitation
5658         of our replacement.
5659
5660         strerror_r: fix includes for FreeBSD
5661         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
5662         since we use abort on some platforms.
5663         Reported by Matthias Bolte.
5664
5665 2011-05-31  Bruno Haible  <bruno@clisp.org>
5666
5667         Fix link errors in tests: openat-die uses gettext-h.
5668         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
5669         against $(LIBINTL).
5670         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
5671         against $(LIBINTL).
5672         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
5673         $(LIBINTL).
5674         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
5675         against $(LIBINTL).
5676         * modules/linkat-tests (Makefile.am): Link test-linkat against
5677         $(LIBINTL).
5678         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
5679         $(LIBINTL).
5680         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
5681         against $(LIBINTL).
5682         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
5683         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
5684         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
5685         $(LIBINTL).
5686         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
5687         $(LIBINTL).
5688         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
5689         $(LIBINTL).
5690         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5691
5692 2011-05-31  Bruno Haible  <bruno@clisp.org>
5693
5694         Fix link errors in tests: wait-process uses gettext-h.
5695         * modules/nonblocking-pipe-tests (Makefile.am): Set
5696         test_nonblocking_pipe_main_LDADD.
5697         * modules/nonblocking-socket-tests (Makefile.am): Link
5698         test-nonblocking-socket-main against $(LIBINTL).
5699         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5700
5701 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
5702
5703         assert-h: work around 'verify' incompatibility
5704         * lib/verify.h: Use @...@ directives, not ifdef.
5705         * modules/assert-h (assert.h): Implement the directives.
5706         (assert.h): Substitute the symbol-prefix more consistently.
5707
5708 2011-05-29  Jim Meyering  <meyering@redhat.com>
5709
5710         trim: remove three superfluous assignments
5711         * lib/trim.c (trim2): Remove three superfluous assignments
5712         and correct brace positioning.
5713
5714 2011-05-29  Bruno Haible  <bruno@clisp.org>
5715
5716         wctype-h: Avoid namespace pollution on Solaris 2.6.
5717         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
5718         identifiers.
5719         * doc/posix-headers/wctype.texi: Mention the problem.
5720         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5721
5722 2011-05-28  Jim Meyering  <meyering@redhat.com>
5723
5724         parse-datetime.y: accommodate -Wstrict-overflow
5725         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
5726         placate -Wstrict-overflow.
5727
5728         trim: avoid a warning from -O2 -Wstrict-overflow
5729         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
5730
5731 2011-05-29  Bruno Haible  <bruno@clisp.org>
5732
5733         gnulib-tool: Fix bug in yesterday's commit.
5734         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
5735         twice.
5736
5737 2011-05-29  Bruno Haible  <bruno@clisp.org>
5738
5739         Allow multiple gnulib generated include files to be combined.
5740         * gnulib-tool (func_compute_include_guard_prefix): New function.
5741         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
5742         ${gl_include_guard_prefix} references.
5743         (func_import, func_create_testdir): Invoke
5744         func_compute_include_guard_prefix.
5745         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
5746         * lib/ctype.in.h: Likewise.
5747         * lib/dirent.in.h: Likewise.
5748         * lib/errno.in.h: Likewise.
5749         * lib/fcntl.in.h: Likewise.
5750         * lib/float.in.h: Likewise.
5751         * lib/getopt.in.h: Likewise.
5752         * lib/iconv.in.h: Likewise.
5753         * lib/langinfo.in.h: Likewise.
5754         * lib/locale.in.h: Likewise.
5755         * lib/math.in.h: Likewise.
5756         * lib/netdb.in.h: Likewise.
5757         * lib/netinet_in.in.h: Likewise.
5758         * lib/poll.in.h: Likewise.
5759         * lib/pthread.in.h: Likewise.
5760         * lib/pty.in.h: Likewise.
5761         * lib/sched.in.h: Likewise.
5762         * lib/se-selinux.in.h: Likewise.
5763         * lib/search.in.h: Likewise.
5764         * lib/signal.in.h: Likewise.
5765         * lib/spawn.in.h: Likewise.
5766         * lib/stdarg.in.h: Likewise.
5767         * lib/stddef.in.h: Likewise.
5768         * lib/stdint.in.h: Likewise.
5769         * lib/stdio.in.h: Likewise.
5770         * lib/stdlib.in.h: Likewise.
5771         * lib/string.in.h: Likewise.
5772         * lib/strings.in.h: Likewise.
5773         * lib/sys_file.in.h: Likewise.
5774         * lib/sys_ioctl.in.h: Likewise.
5775         * lib/sys_select.in.h: Likewise.
5776         * lib/sys_socket.in.h: Likewise.
5777         * lib/sys_stat.in.h: Likewise.
5778         * lib/sys_time.in.h: Likewise.
5779         * lib/sys_times.in.h: Likewise.
5780         * lib/sys_uio.in.h: Likewise.
5781         * lib/sys_utsname.in.h: Likewise.
5782         * lib/sys_wait.in.h: Likewise.
5783         * lib/sysexits.in.h: Likewise.
5784         * lib/termios.in.h: Likewise.
5785         * lib/time.in.h: Likewise.
5786         * lib/unistd.in.h: Likewise.
5787         * lib/wchar.in.h: Likewise.
5788         * lib/wctype.in.h: Likewise.
5789         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
5790         * modules/ctype (Makefile.am): Likewise.
5791         * modules/dirent (Makefile.am): Likewise.
5792         * modules/errno (Makefile.am): Likewise.
5793         * modules/fcntl-h (Makefile.am): Likewise.
5794         * modules/float (Makefile.am): Likewise.
5795         * modules/getopt-posix (Makefile.am): Likewise.
5796         * modules/iconv-h (Makefile.am): Likewise.
5797         * modules/langinfo (Makefile.am): Likewise.
5798         * modules/locale (Makefile.am): Likewise.
5799         * modules/math (Makefile.am): Likewise.
5800         * modules/netdb (Makefile.am): Likewise.
5801         * modules/netinet_in (Makefile.am): Likewise.
5802         * modules/poll-h (Makefile.am): Likewise.
5803         * modules/pthread (Makefile.am): Likewise.
5804         * modules/pty (Makefile.am): Likewise.
5805         * modules/sched (Makefile.am): Likewise.
5806         * modules/search (Makefile.am): Likewise.
5807         * modules/selinux-h (Makefile.am): Likewise.
5808         * modules/signal (Makefile.am): Likewise.
5809         * modules/spawn (Makefile.am): Likewise.
5810         * modules/stdarg (Makefile.am): Likewise.
5811         * modules/stddef (Makefile.am): Likewise.
5812         * modules/stdint (Makefile.am): Likewise.
5813         * modules/stdio (Makefile.am): Likewise.
5814         * modules/stdlib (Makefile.am): Likewise.
5815         * modules/string (Makefile.am): Likewise.
5816         * modules/strings (Makefile.am): Likewise.
5817         * modules/sys_file (Makefile.am): Likewise.
5818         * modules/sys_ioctl (Makefile.am): Likewise.
5819         * modules/sys_select (Makefile.am): Likewise.
5820         * modules/sys_socket (Makefile.am): Likewise.
5821         * modules/sys_stat (Makefile.am): Likewise.
5822         * modules/sys_time (Makefile.am): Likewise.
5823         * modules/sys_times (Makefile.am): Likewise.
5824         * modules/sys_uio (Makefile.am): Likewise.
5825         * modules/sys_utsname (Makefile.am): Likewise.
5826         * modules/sys_wait (Makefile.am): Likewise.
5827         * modules/sysexits (Makefile.am): Likewise.
5828         * modules/termios (Makefile.am): Likewise.
5829         * modules/time (Makefile.am): Likewise.
5830         * modules/unistd (Makefile.am): Likewise.
5831         * modules/wchar (Makefile.am): Likewise.
5832         * modules/wctype-h (Makefile.am): Likewise.
5833         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
5834
5835 2011-05-29  Bruno Haible  <bruno@clisp.org>
5836
5837         assert-h: Allow multiple gnulib generated replacements to coexist.
5838         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
5839
5840 2011-05-29  Bruno Haible  <bruno@clisp.org>
5841
5842         argp: Allow coexistence with strerror_r-posix module.
5843         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
5844         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
5845         by gnulib's <string.h> replacement), assume it has the POSIX signature,
5846         not the glibc signature.
5847
5848 2011-05-28  Bruno Haible  <bruno@clisp.org>
5849
5850         gnulib-tool: Alternative structure of testdirs, similar to --import.
5851         * gnulib-tool: New option --single-configure.
5852         (func_usage): Document it.
5853         (single_configure): New variable.
5854         (func_modules_transitive_closure_separately,
5855         func_modules_transitive_closure_separately,
5856         func_determine_use_libtests, func_modules_add_dummy_separately,
5857         func_modules_to_filelist_separately): New functions, extracted from
5858         func_import.
5859         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
5860         (func_import): Use the new functions.
5861         (func_create_testdir): Set final_modules. Handle $single_configure =
5862         true case.
5863
5864 2011-05-28  Bruno Haible  <bruno@clisp.org>
5865
5866         getloadavg: Remove an unreliable safety check.
5867         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
5868         getloadavg.c is in place.
5869         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
5870         Reported by Sam Steingold <sds@gnu.org>.
5871
5872 2011-05-28  Bruno Haible  <bruno@clisp.org>
5873
5874         doc: Cleanup yet another file produced by texinfo.tex.
5875         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
5876
5877 2011-05-28  Bruno Haible  <bruno@clisp.org>
5878
5879         Finish the conditional dependencies mechanism.
5880         * gnulib-tool: New option --no-conditional-dependencies.
5881         (func_usage): Document it. Don't mark --conditional-dependencies as
5882         experimental.
5883         (cond_dependencies): The possible values can now be true, false, empty.
5884         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
5885         (func_import): Store setting in gnulib-cache.m4 and read it from there.
5886         * doc/gnulib-tool.texi (Conditional dependencies): New section.
5887
5888 2011-05-28  Bruno Haible  <bruno@clisp.org>
5889
5890         doc: Use a recent texinfo.tex.
5891         * doc/Makefile (tex_opts): New variable.
5892         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
5893
5894 2011-05-28  Jim Meyering  <meyering@redhat.com>
5895
5896         intprops.h: adjust comment to match code change
5897         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
5898         only once, it *may* have side effects.  Also fix an unrelated typo.
5899         (_GL_INT_SIGNED): Likewise.
5900
5901 2011-05-26  Simon Josefsson  <simon@josefsson.org>
5902
5903         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
5904
5905 2011-05-26  Bruno Haible  <bruno@clisp.org>
5906
5907         mbsrchr: Avoid collision with system function on Interix.
5908         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
5909         Reported by Markus Duft <mduft@gentoo.org>.
5910
5911 2011-05-15  James Youngman  <jay@gnu.org>
5912
5913         getopt: for ambiguous options, enumerate the possibilities.
5914         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
5915         the ambiguous options when an ambiguous prefix is given. This was
5916         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
5917         glibc change was
5918         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
5919
5920 2011-05-25  Eric Blake  <eblake@redhat.com>
5921
5922         getcwd: work around mingw bug
5923         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
5924         * doc/posix-functions/getcwd.texi (getcwd): Document it.
5925         Reported by Matthias Bolte.
5926
5927 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
5928
5929         test-intprops: disable -Wtype-limits diagnostics
5930         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
5931         diagnostics.  Otherwise, the integer overflow macros generate many
5932         diagnostics.  Reported by Jim Meyering in
5933         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
5934
5935         intprops: shorten, to pacify gcc -Woverlength-strings
5936         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
5937         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
5938         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
5939         likely to run afoul of C compiler limits for string constant lengths.
5940         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
5941
5942 2011-05-24  Eric Blake  <eblake@redhat.com>
5943
5944         docs: document recently fixed glibc printf bug
5945         * doc/posix-functions/fprintf.texi (fprintf): Document it.
5946         * doc/posix-functions/printf.texi (printf): Likewise.
5947         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
5948         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
5949
5950         closein-tests: convert to init.sh
5951         * modules/closein-tests (Files): Add init.sh
5952         * tests/test-closein.sh Use it.
5953
5954         yesno-tests: convert to init.sh
5955         * modules/yesno-tests (Files): Add init.sh.
5956         * tests/test-yesno.sh: Use it.
5957
5958         atexit-tests: ensure reliable exit status
5959         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
5960         Reported by Bruno Haible.
5961
5962 2011-05-24  Bruno Haible  <bruno@clisp.org>
5963
5964         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
5965         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
5966         gl_PREREQ_STRERROR_R invocations from here...
5967         * modules/strerror_r-posix (configure.ac): ... to here.
5968
5969 2011-05-24  Eric Blake  <eblake@redhat.com>
5970
5971         strerror_r: fix missing header
5972         * lib/strerror_r.c: Avoid compiler warning about snprintf.
5973
5974         strerror_r: fix AIX test failures
5975         * lib/strerror_r.c (strerror_r): Convert silent truncation to
5976         ERANGE failure.
5977
5978         strerror_r: fix Solaris test failures
5979         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
5980         failures.
5981         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
5982
5983         strerror_r: enforce POSIX recommendations
5984         * lib/strerror_r.c (safe_copy): New helper method.
5985         (strerror_r): Guarantee a non-empty string.
5986         * tests/test-strerror_r.c (main): Enhance tests to incorporate
5987         recent POSIX rulings and to match our strerror guarantees.
5988         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
5989
5990 2011-05-24  Jim Meyering  <meyering@redhat.com>
5991
5992         test-perror2.c: avoid warning about unused variable
5993         * tests/test-perror2.c (main): Remove declaration of unused "fp".
5994
5995 2011-05-24  Eric Blake  <eblake@redhat.com>
5996
5997         perror: avoid spurious test failure on HP-UX
5998         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
5999
6000         tests: fix logic bug in init.sh
6001         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
6002         shell.
6003
6004 2011-05-24  Jim Meyering  <meyering@redhat.com>
6005
6006         utimensat: do not reference an out-of-scope buffer
6007         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
6008         declared in an inner scope, yet "times" would be dereferenced outside
6009         the scope in which "ts" was valid.
6010         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
6011         of ts[2] "out/up", so that the use of aliased "times" (via
6012         "times = ts;") does not end up referencing an out-of-scope "ts"
6013
6014         opendir-safer.c: don't clobber errno; don't close negative FD
6015         * lib/opendir-safer.c (opendir_safer):
6016         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
6017         file descriptor, and more importantly, don't clobber the
6018         offending errno value with EINVAL.  Before, upon failure
6019         of dup_safer, we would pass the negative file descriptor to
6020         fdopendir, which would clobber errno.
6021
6022 2011-05-23  Bruno Haible  <bruno@clisp.org>
6023
6024         idcache: Fix module description.
6025         * modules/idcache (Include): Set to "idcache.h".
6026
6027 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
6028
6029         gnulib-tool: fix portability problem with MacOS sed
6030         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
6031         before the "}".  Problem reported by Leo in
6032         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
6033         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
6034         sed_extract_condition1, sed_extract_condition2.
6035
6036 2011-05-23  Bruno Haible  <bruno@clisp.org>
6037
6038         hash: Simplify autoconf macro.
6039         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
6040
6041 2011-05-23  Bruno Haible  <bruno@clisp.org>
6042
6043         getugroups: Fix module description.
6044         * modules/getugroups (Include): Set to "getugroups.h".
6045
6046 2011-05-23  Bruno Haible  <bruno@clisp.org>
6047
6048         linkat: Simplify autoconf macro.
6049         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
6050
6051 2011-05-23  Bruno Haible  <bruno@clisp.org>
6052             Eric Blake  <eblake@redhat.com>
6053
6054         linkat, renameat: Update dependencies.
6055         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
6056         * modules/linkat (Depends-on): Likewise. Remove also readlink,
6057         symlinkat.
6058
6059 2011-05-23  Jim Meyering  <meyering@redhat.com>
6060
6061         maint.mk: more tight_scope improvements
6062         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
6063         (_gl_TS_headers): Define only in if-0'd block.
6064         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
6065         sometimes we must *not* use it.  Adjust uses accordingly.
6066         (sc_tight_scope): Use much simpler grep-based test to determine
6067         whether we skip this rule.
6068
6069         maint.mk: generalize/improve the tight-scope rule
6070         * top/maint.mk: Emit a warning when the test is skipped.
6071         (_gl_TS_dir): Add $(srcdir)/ prefix.
6072         (_gl_TS_function_match): Simplify, rather than trying
6073         to enumerate common types.  Otherwise, it would fail to match an
6074         "extern unsigned char const *" declaration in idutils.
6075         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
6076         a way to support use of that type of macro.
6077         (_gl_TS_var_match): Simplify regexp.
6078         (_gl_TS_obj_files): New configurable variable.
6079         (_gl_TS_headers): Likewise.
6080
6081 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
6082
6083         verify: fix bug when gnulib <assert.h> is also included
6084         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
6085         is defined, not if _GL_STATIC_ASSERT_H is not defined.
6086         Perhaps there's a better way, but this fixes the immediate problem.
6087         Problem reported by Bruno Haible in
6088         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
6089
6090 2011-05-22  Bruno Haible  <bruno@clisp.org>
6091
6092         xgetcwd: Simplify autoconf macro.
6093         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
6094
6095 2011-05-22  Bruno Haible  <bruno@clisp.org>
6096
6097         New module 'mktime-internal'.
6098         * modules/mktime-internal: New file.
6099         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
6100         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
6101         mktime_internal as a C macro if libc has __mktime_internal.
6102         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
6103         conditions.
6104         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
6105
6106 2011-05-22  Bruno Haible  <bruno@clisp.org>
6107
6108         timegm: Correct mktime replacement statements.
6109         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
6110         defining mktime as a C macro. This completes a 2009-07-28 commit.
6111
6112 2011-05-22  Bruno Haible  <bruno@clisp.org>
6113
6114         timegm: Simplify autoconf macro.
6115         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
6116
6117 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
6118
6119         clock-time: change to LGPLv2+.
6120         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
6121         BSD-like but we have no mark for that; this is good enough for now.
6122
6123 2011-05-21  Bruno Haible  <bruno@clisp.org>
6124
6125         strerror_r: Fix comments.
6126         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
6127
6128 2011-05-21  Bruno Haible  <bruno@clisp.org>
6129
6130         relocatable-prog-wrapper: Fix possible link error.
6131         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
6132         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
6133         (gl_FUNC_SETENV): ... to here.
6134         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
6135         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
6136
6137 2011-05-21  Bruno Haible  <bruno@clisp.org>
6138
6139         relocatable-prog-wrapper: Assume strerror() exists.
6140         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
6141         m4/strerror.m4.
6142         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
6143         * lib/relocwrapper.c: Remove mention of strerror module.
6144         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
6145         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
6146         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
6147         C macro.
6148
6149 2011-05-21  Bruno Haible  <bruno@clisp.org>
6150
6151         select: Simplify replacement idiom.
6152         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
6153         Win32 platforms.
6154         * lib/sys_select.in.h (select): Simplify accordingly.
6155         * modules/select (Depends-on): Likewise.
6156
6157 2011-05-21  Bruno Haible  <bruno@clisp.org>
6158
6159         mkdir-p: Simplify autoconf macro.
6160         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
6161         gl_FUNC_LCHOWN.
6162
6163 2011-05-21  Eric Blake  <eblake@redhat.com>
6164
6165         strerror_r: avoid clobbering strerror on cygwin
6166         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
6167         fall back instead to sys_errlist.
6168         * modules/strerror (configure.ac): Add witness.
6169         * tests/test-strerror_r.c (main): Enhance test.
6170         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
6171         * tests/test-perror2.c (main): Free memory before exit.
6172
6173 2011-05-21  Bruno Haible  <bruno@clisp.org>
6174
6175         mkdtemp: Use gnulib naming conventions.
6176         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
6177         * modules/mkdtemp (configure.ac): Update.
6178
6179 2011-05-20  Eric Blake  <eblake@redhat.com>
6180
6181         strerror_r: avoid corrupting errno on Solaris
6182         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
6183         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
6184
6185         strerror_r: avoid compiler warning
6186         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
6187
6188         strerror_r: simplify AIX code
6189         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
6190
6191         test-perror: avoid spurious failure on FreeBSD
6192         * modules/perror-tests (Depends-on): Add strerror, now that
6193         strerror_r no longer pulls it in.
6194
6195 2011-05-20  Bruno Haible  <bruno@clisp.org>
6196
6197         strerror_r-posix: Remove unused dependencies.
6198         * modules/strerror_r-posix (Depends-on): Remove strerror.
6199         Reported by Eric Blake.
6200
6201 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
6202
6203         intprops: remove assumption about A|B representation
6204         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
6205         is a valid integer if both A and B are.  Although this is true for
6206         all known practical hosts, the C standard doesn't guarantee it,
6207         and the code need not assume it.  Also, this change may work around
6208         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
6209         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
6210
6211 2011-05-20  Eric Blake  <eblake@redhat.com>
6212
6213         perror: work around FreeBSD bug
6214         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
6215         is broken.  Move AC_LIBOBJ...
6216         * modules/perror (configure.ac): Here.
6217         * doc/posix-functions/perror.texi (perror): Document this.
6218         * tests/test-perror2.c (main): Enhance test.
6219
6220         test-perror: check for strerror interactions
6221         * tests/macros.h (STREQ): Add macro.
6222         * modules/perror-tests (Files): Add second test.
6223         * tests/test-perror2.c (main): New file.
6224         * doc/posix-functions/perror.texi (perror): Document glibc bug.
6225
6226         test-perror: rewrite to use init script
6227         * modules/perror-tests (Files): Add init.sh.
6228         * tests/test-perror.sh: Use temporary directory.
6229
6230 2011-05-20  Jim Meyering  <meyering@redhat.com>
6231
6232         maint: replace misused "a" with "an"
6233         * doc/intprops.texi: "a integer"
6234         * doc/regex.texi: "a explanation"
6235         * lib/alignof.h: "a object"
6236         * lib/argmatch.h: "a explanation"
6237         * lib/argp-help.c: "a option" and "a OPTION_DOC"
6238         * lib/stdint.in.h: "a integer"
6239         * lib/userspec.c: "a owner"
6240         * doc/gnulib.texi: Fix "a idea", and reword.
6241
6242 2011-05-19  Jim Meyering  <meyering@redhat.com>
6243
6244         maint: correct misuse of "a" and "an"
6245         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
6246         * lib/argp-help.c: "an docum...": s/an/a/
6247         * lib/argp-parse.c: "An vector": s/An/A/
6248         * lib/execute.c: "an native": s/an/a/
6249         * lib/spawn-pipe.c: Likewise.
6250         * lib/gc.h: "an Gc_rc": s/an/a/
6251         * lib/unigbrk.in.h: "an grapheme": s/an/a/
6252         * lib/fts.c: "an stat.st_dev": s/an/a/
6253
6254 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
6255
6256         intprops-tests: work around HP-UX 11.23 cc bug with constants
6257         * tests/test-intprops.c (VERIFY): New macro.
6258         (main): Use it, instead of verify, to work around the compiler bug; see
6259         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
6260
6261         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
6262         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
6263         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
6264         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
6265         (_GL_REMAINDER_OVERFLOW): Use it.
6266
6267         intprops-tests: revert unsigned part of previous change
6268         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
6269         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
6270         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
6271         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
6272
6273 2011-05-19  Bruno Haible  <bruno@clisp.org>
6274
6275         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
6276         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
6277         strerror_r() returned without filling the buffer.
6278         Reported by Eric Blake.
6279
6280 2011-05-19  Eric Blake  <eblake@redhat.com>
6281
6282         strerror_r: guarantee unchanged errno
6283         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
6284         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
6285         failure.
6286         * tests/test-strerror_r.c (main): Enhance test.
6287
6288 2011-05-19  Bruno Haible  <bruno@clisp.org>
6289
6290         strerror_r: Reorder #if blocks.
6291         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
6292         for consistency with the previous commit.
6293
6294 2011-05-19  Bruno Haible  <bruno@clisp.org>
6295
6296         perror: Avoid clobbering the strerror buffer when possible.
6297         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
6298         * lib/strerror.c: Include it.
6299         * modules/strerror (Files): Add lib/strerror-impl.h.
6300         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
6301         (my_strerror): New function, defined through lib/strerror-impl.h.
6302         (perror): Use it instead of strerror.
6303         * modules/perror (Files): Add lib/strerror-impl.h.
6304         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
6305
6306 2011-05-19  Eric Blake  <eblake@redhat.com>
6307
6308         strerror_r: fix on newer cygwin
6309         * lib/strerror_r.c (strerror_r): Cygwin now has
6310         __xpg_strerror_r, use it.
6311
6312 2011-05-19  Bruno Haible  <bruno@clisp.org>
6313
6314         strerror_r: Avoid clobbering the strerror buffer when possible.
6315         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
6316         (sys_nerr, sys_errlist): New declarations.
6317         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
6318         HP-UX, native Win32, IRIX, and 32-bit Solaris.
6319         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
6320
6321 2011-05-19  Bruno Haible  <bruno@clisp.org>
6322
6323         strerror_r: Fix test failure on mingw.
6324         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
6325         EXTEND_STRERROR_R.
6326         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
6327         macros from errno.in.h instead.
6328
6329 2011-05-19  Eric Blake  <eblake@redhat.com>
6330
6331         strerror: relax test for Solaris
6332         * tests/test-strerror.c (main): Permit Solaris behavior.
6333         * tests/test-strerror_r.c (main): Likewise.
6334
6335         strerror: enforce POSIX ruling on strerror(0)
6336         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
6337         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
6338         * lib/strerror_r.c (rpl_strerror_r): Work around it.
6339         * doc/posix-functions/strerror.texi (strerror): Document it.
6340         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
6341         * tests/test-strerror.c (main): Strengthen test.
6342         * tests/test-strerror_r.c (main): Likewise.
6343
6344 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
6345
6346         intprop-tests: port to older and more-pedantic compilers
6347         * modules/intprops-tests (Files): Add tests/macros.h.
6348         * tests/test-intprops.c: Include macros.h.
6349         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
6350         it's no longer documented to expand to an integer constant expression.
6351         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
6352         argument is floating point, as it's no longer documented to expand
6353         to an integer constant expression in that case.
6354         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
6355         compiler bugs reported by Bruno Haible.  See
6356         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
6357         (U0, U1): New constants, to work around the same bugs.  Also,
6358         in tests, use e.g., "(unsigned int) 39" rather than "39u".
6359
6360         intprops: work around C compiler bugs
6361         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
6362         bug in Sun C 5.11 2010/08/13 and other compilers; see
6363         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
6364
6365         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
6366         * doc/intprops.texi (Integer Type Determination): Fix
6367         documentation for TYPE_IS_INTEGER: it returns an constant
6368         expression, not an integer constant expression.  Fix doc for
6369         TYPE_SIGNED: it returns an integer constant expression only if its
6370         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
6371         hardly worth documented that way....)
6372
6373 2011-05-18  Bruno Haible  <bruno@clisp.org>
6374
6375         strerror_r: Avoid clobbering the strerror buffer when possible.
6376         * lib/strerror_r.c (strerror_r): Merge the three implementations.
6377         Handle gnulib defined errno values here. When strerror() returns NULL
6378         or an empty string, return EINVAL.
6379         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
6380         gnulib defined errno values here.
6381         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
6382
6383 2011-05-18  Eric Blake  <eblake@redhat.com>
6384
6385         fnmatch: avoid compiler warning
6386         * lib/fnmatch_loop.c (FCT): Use correct type.
6387         Reported by Matthias Bolte.
6388
6389 2011-05-13  Jim Meyering  <meyering@redhat.com>
6390
6391         maint.mk: three new prohibit_<HDR>_without_use rules
6392         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
6393         (sc_prohibit_stdio-safer_without_use): Likewise.
6394         (sc_prohibit_xfreopen_without_use): Likewise.
6395
6396 2011-05-17  Jim Meyering  <meyering@redhat.com>
6397
6398         announce-gen: fail if the NEWS delta is empty
6399         If there's nothing noteworthy in NEWS, then either you forgot
6400         or you shouldn't be releasing.
6401         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
6402
6403 2011-05-17  Pádraig Brady <P@draigBrady.com>
6404
6405         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
6406         reserved symbols starting with double underscore from the check.
6407
6408 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
6409
6410         intprops: add doc
6411         * doc/intprops.texi: New file, documenting intprops.
6412         * doc/gnulib.texi (Particular Modules): Include it.
6413
6414         verify: add doc to gnulib manual and fix example
6415         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
6416         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
6417         (Compile-time Assertions): Fix example so it can't overflow.
6418
6419 2011-05-17  Jim Meyering  <meyering@redhat.com>
6420
6421         warnings.m4: don't usurp save_CPPFLAGS variable name
6422         * m4/warnings.m4: Prefix local temporary variable name with gl_.
6423
6424         doc: fix typo
6425         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
6426
6427 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
6428             Bruno Haible  <bruno@clisp.org>
6429
6430         doc: Tweak recent change.
6431         * README (Portability guidelines): Tweak new text.
6432         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
6433         Interix 6.1.
6434
6435 2011-05-16  Eric Blake  <eblake@redhat.com>
6436
6437         inttypes: avoid autoconf warning
6438         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
6439         * m4/stdint.m4 (gl_STDINT_H): Likewise.
6440
6441 2011-05-16  Sam Steingold <sds@gnu.org>
6442         and Eric Blake  <eblake@redhat.com>
6443
6444         vc-list-files: accept multiple directory operands
6445         * build-aux/vc-list-files: Iterate over all remaining operands.
6446
6447 2011-05-16  Bruno Haible  <bruno@clisp.org>
6448
6449         Fix confusion regarding deprecated modules.
6450         * modules/calloc (Status, Notice): Mark module as deprecated, not
6451         obsolete.
6452         * modules/fnmatch-posix (Status, Notice): Likewise.
6453         * modules/getdate (Status, Notice): Likewise.
6454         * modules/getopt (Status, Notice): Likewise.
6455         * modules/malloc (Status, Notice): Likewise.
6456         * modules/pipe (Status, Notice): Likewise.
6457         * modules/realloc (Status, Notice): Likewise.
6458         * modules/rename-dest-slash (Status, Notice): Likewise.
6459         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
6460         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
6461         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
6462         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
6463         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
6464
6465 2011-05-16  Bruno Haible  <bruno@clisp.org>
6466
6467         doc: List the target platforms.
6468         * doc/gnulib-intro.texi (Target Platforms): New section.
6469         * doc/gnulib.texi (Introduction): Update menu.
6470         * README (Portability guidelines): Refer to the new section. Update
6471         statement about oldest supported environment. Remove rationale why
6472         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
6473         unportable C89 function.
6474         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
6475         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
6476
6477 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
6478
6479         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
6480
6481 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
6482
6483         intprops-tests: new module
6484         * modules/intprops-tests, tests/test-intprops.c: New files.
6485
6486         intprops: add safe, portable integer overflow checking
6487         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
6488         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
6489         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
6490         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
6491         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
6492         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
6493         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
6494         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
6495         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
6496         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
6497         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
6498
6499 2011-05-12  James Youngman  <jay@gnu.org>
6500
6501         Add a test for glibc's Bugzilla bug #12378.
6502         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
6503         doesn't allow the literal matching of a lone "[" (which is
6504         required by POSIX).
6505         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
6506
6507 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
6508
6509         Sync glibc change fixing Bugzilla bug #12378.
6510         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
6511         beginning and fall back to matching as normal character if the
6512         string ends before the matching ']' is found.  This is what POSIX
6513         requires.
6514
6515 2011-05-13  Eric Blake  <eblake@redhat.com>
6516
6517         getcwd-lgpl: relax test for FreeBSD
6518         * doc/posix-functions/getcwd.texi (getcwd): Document portability
6519         issue.
6520         * tests/test-getcwd-lgpl.c (main): Relax test.
6521         Reported by Matthias Bolte.
6522
6523 2011-05-11  Eric Blake  <eblake@redhat.com>
6524
6525         test-fflush: silence compiler warning
6526         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
6527
6528 2011-05-11  Bruno Haible  <bruno@clisp.org>
6529
6530         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
6531         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
6532         * modules/canonicalize (Depends-on): Add 'nocrash'.
6533         * modules/canonicalize-lgpl (Depends-on): Likewise.
6534         * doc/posix-functions/realpath.texi: Update platforms list.
6535         Reported by Ryan Schmidt <ryandesign@macports.org>.
6536
6537 2011-05-11  Bruno Haible  <bruno@clisp.org>
6538
6539         group-member: Declare function in <unistd.h>.
6540         * lib/unistd.in.h (group_member): New declaration.
6541         * lib/group-member.h: Remove file.
6542         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
6543         * tests/test-unistd-c++.cc: Check signature of group_member.
6544         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
6545         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
6546         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
6547         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
6548         HAVE_GROUP_MEMBER.
6549         * modules/group-member (Files): Remove lib/group-member.h.
6550         (Depends-on): Add unistd. Specify conditions.
6551         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
6552         (Include): Change to <unistd.h>.
6553         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
6554         HAVE_GROUP_MEMBER.
6555         * NEWS: Mention the change.
6556         * lib/euidaccess.c: Don't include group-member.h.
6557
6558 2011-05-11  Bruno Haible  <bruno@clisp.org>
6559
6560         group-member: Document module.
6561         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
6562         module.
6563
6564 2011-05-11  Bruno Haible  <bruno@clisp.org>
6565
6566         fclose: Fix mistake earlier today.
6567         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
6568
6569 2011-05-11  Eric Blake  <eblake@redhat.com>
6570
6571         fclose: preserve fflush errors
6572         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
6573         Reported by Jim Meyering.
6574
6575         bootstrap: support a prereq of 'rpcgen -' on RHEL5
6576         * build-aux/bootstrap (check_versions): When no specific version
6577         is required, merely check that the app produces an exit status
6578         that indicates its existence.
6579
6580         maint.mk: drop redundant check
6581         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
6582         the same but better.
6583
6584 2011-05-11  Bruno Haible  <bruno@clisp.org>
6585
6586         fclose: Fix possible link error.
6587         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
6588         unregister_shadow_fd. Improve comments.
6589         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
6590         Eric Blake.
6591
6592 2011-05-11  Jim Meyering  <meyering@redhat.com>
6593
6594         maint.mk: improve "can not" detection and generalize rule name
6595         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
6596         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
6597         Use the same technique as in sc_prohibit_doubled_word, so that
6598         we recognize "can not" also when the words are separated by a newline.
6599         Suggested by Eric Blake.
6600         (perl_filename_lineno_text_): Define.  Factored out of...
6601         (prohibit_doubled_word_): ...here.  Use the new definition.
6602         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
6603         (prohibit_undesirable_word_seq_RE_): New overridable variable.
6604         (ignore_undesirable_word_sequence_RE_): New overridable variable.
6605
6606 2011-05-10  Eric Blake  <eblake@redhat.com>
6607
6608         fclose: avoid double close race when possible
6609         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
6610         all but WINDOWS_SOCKETS.
6611
6612 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
6613
6614         openat: correct new comment
6615         * lib/openat-proc.c (openat_proc_name): Correct the comment.
6616
6617 2011-05-10  Jim Meyering  <meyering@redhat.com>
6618
6619         openat: add comments
6620         * lib/openat-proc.c (openat_proc_name): Add comments,
6621         mostly from Eric Blake.
6622
6623 2011-05-09  Eric Blake  <eblake@redhat.com>
6624
6625         openat: reduce syscalls in first probe of /proc
6626         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
6627         be a directory.  Simplify the probe for .. bugs.
6628         * modules/openat (Depends-on): Drop same-inode.
6629         Reported by Bastien ROUCARIES.
6630
6631 2011-05-09  Jim Meyering  <meyering@redhat.com>
6632
6633         maint.mk: change semantics/name of tight_scope variables
6634         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
6635         Rename variables to align with semantics that make them more useful.
6636
6637         maint.mk: tweak new rule's name not to impinge
6638         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
6639         (sc_tight_scope): Use new rule name rather than $@-0.
6640
6641         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
6642         * top/maint.mk (sc_tight_scope): New rule.
6643         (sc_tight_scope-0): New rule, ifdef'd out.
6644         (_gl_TS_dir): Default.
6645         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
6646         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
6647
6648 2011-05-09  Simon Josefsson  <simon@josefsson.org>
6649
6650         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
6651         Haible <bruno@clisp.org>.
6652
6653 2011-05-08  Bruno Haible  <bruno@clisp.org>
6654
6655         Comments.
6656         * m4/isnanf.m4: Add comment.
6657         * m4/isnanl.m4: Likewise.
6658
6659 2011-05-08  Bruno Haible  <bruno@clisp.org>
6660
6661         glob: Remove obsolete macro.
6662         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
6663
6664 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
6665
6666         intprops: Sun C 5.11 supports __typeof__
6667         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
6668         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
6669         which is new.
6670         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
6671
6672         intprops: switch to usual gnulib indenting and naming
6673         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
6674         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
6675
6676         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
6677
6678 2011-05-08  Jim Meyering  <meyering@redhat.com>
6679
6680         maint.mk: suppress "Entering/Leaving directory" diag in announcement
6681         * top/maint.mk (release-prep): Use make's --no-print-directory
6682         option when generating the announcement.  This eliminates the
6683         pesky "make[2]: Entering/Leaving directory" diagnostics in the
6684         generated announcement template.
6685
6686 2011-05-08  Bruno Haible  <bruno@clisp.org>
6687
6688         tzset: Fix gettimeofday wrapper on Solaris 2.6.
6689         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
6690         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
6691
6692 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
6693
6694         ignore-value, verify: Omit include files from lib_SOURCES.
6695         * modules/ignore-value, modules/verify (Makefile.am):
6696         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
6697         that leads Automake to duplicate use of am__objects_... variables
6698         in Makefile.in.  See
6699         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
6700
6701 2011-05-07  Bruno Haible  <bruno@clisp.org>
6702
6703         fclose: Simplify autoconf macro.
6704         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
6705         defined.
6706
6707 2011-05-07  Bruno Haible  <bruno@clisp.org>
6708
6709         canonicalize-lgpl: Fix autoconf macro ordering bug.
6710         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
6711         gl_STDLIB_H_DEFAULTS.
6712
6713 2011-05-06  Eric Blake  <eblake@redhat.com>
6714
6715         maintainer-makefile: make sc_po_check easier to tune
6716         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
6717         to probe for strings, such as an alternate location for gnulib.
6718
6719         fclose: guarantee behavior on seekable stdin
6720         * modules/fclose (Depends-on): Add fflush.
6721         * doc/posix-functions/fclose.texi (fclose): Document this.
6722         * tests/test-fclose.c (main): Make test for this unconditional.
6723
6724 2011-05-06  Bruno Haible  <bruno@clisp.org>
6725
6726         fflush, fpurge: Relicense under LGPLv2+.
6727         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
6728         * modules/fpurge (License): Likewise.
6729         With permission from Eric Blake and Jim Meyering.
6730         Suggested by Eric Blake.
6731
6732 2011-05-06  Karl Berry  <karl@gnu.org>
6733
6734         * MODULES.html.sh (func_all_modules): remove exit.
6735
6736 2011-05-06  Jim Meyering  <meyering@redhat.com>
6737
6738         maint.mk: use info-gnu@ as the default only for a stable release
6739         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
6740         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
6741         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
6742         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
6743
6744 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
6745
6746         assert-h: new module, which supports C1X-style static_assert
6747         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
6748         * lib/verify.h: Revamp so that this can be copied into assert.h,
6749         while retaining the ability to use it standalone as before.
6750         Rename private identifiers so as not to encroach on the
6751         standard C namespace, since this is now used by assert.h.
6752         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
6753         the old verify_true.
6754         (_GL_VERIFY_TRUE): New macro, with much of the contents of
6755         the old verify_true.  Use _GL_VERIFY_TYPE.
6756         (_GL_VERIFY): New macro, with much of the contents of the old verify.
6757         (static_assert): New macro, if _GL_STATIC_ASSERT_H
6758         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
6759         defined when this file is copied into the replacement assert.h.
6760         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
6761         and _Static_assert is not built in.
6762         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
6763         defined, and use the new macros mentioned above.
6764         * doc/posix-headers/assert.texi: Document this.
6765
6766 2011-05-05  Bruno Haible  <bruno@clisp.org>
6767
6768         fclose, fflush: Respect rules for use of AC_LIBOBJ.
6769         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
6770         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
6771         gl_REPLACE_FCLOSE here.
6772         * modules/fflush (Depends-on): Remove fclose.
6773         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
6774         combination with module 'fclose'.
6775
6776 2011-05-05  Bruno Haible  <bruno@clisp.org>
6777
6778         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
6779         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
6780         gl_FUNC_FFLUSH.
6781         (gl_FUNC_FFLUSH): Use it.
6782         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
6783         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
6784         gl_REPLACE_FSEEKO here.
6785
6786 2011-05-05  Bruno Haible  <bruno@clisp.org>
6787
6788         tzset: Relicense under LGPL.
6789         * modules/tzset (License): Change to LGPL.
6790         No agreement needed; it's a no-op.
6791
6792         strtoimax, strtoumax: Relicense under LGPL.
6793         * modules/strtoimax (License): Change to LGPL.
6794         * modules/strtoumax (License): Likewise.
6795         With permission from Jim Meyering, Paul Eggert:
6796         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
6797         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
6798
6799         getgroups: Relicense under LGPL.
6800         * modules/getgroups (License): Change to LGPL.
6801         With permission from Jim Meyering, Paul Eggert, Eric Blake:
6802         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
6803         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
6804         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
6805
6806         nanosleep: Relicense under LGPL.
6807         * modules/nanosleep (License): Change to LGPL.
6808         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
6809         Haible:
6810         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
6811         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
6812         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
6813         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
6814
6815         futimens: Relicense under LGPL.
6816         * modules/futimens (License): Change to LGPL.
6817         With permission from Eric Blake:
6818         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
6819
6820         fflush: Relicense under LGPL.
6821         * modules/fflush (License): Change to LGPL.
6822         With permission from Eric Blake, Bruno Haible, Jim Meyering:
6823         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
6824         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
6825         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
6826
6827         tmpfile: Relicense under LGPL.
6828         * modules/tmpfile (License): Change to LGPL.
6829         With permission from Ben Pfaff:
6830         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
6831
6832         isfinite: Relicense under LGPL.
6833         * modules/isfinite (License): Change to LGPL.
6834         With permission from Ben Pfaff, Bruno Haible:
6835         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
6836         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
6837
6838         acosl..tanl: Relicense under LGPL.
6839         * modules/acosl (License): Change to LGPL.
6840         * modules/asinl (License): Likewise.
6841         * modules/atanl (License): Likewise.
6842         * modules/cosl (License): Likewise.
6843         * modules/expl (License): Likewise.
6844         * modules/logl (License): Likewise.
6845         * modules/sinl (License): Likewise.
6846         * modules/sqrtl (License): Likewise.
6847         * modules/tanl (License): Likewise.
6848         Source code originally from glibc and Paolo Bonzini. Agreements:
6849         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
6850         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
6851
6852 2011-05-05  Bruno Haible  <bruno@clisp.org>
6853
6854         signal: Define sighandler_t.
6855         * lib/signal.in.h (sighandler_t): New type.
6856         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
6857         whether sighandler_t is defined.
6858         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
6859         * modules/signal (Depends-on): Add extensions.
6860         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
6861         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
6862         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
6863
6864 2011-05-05  Eric Blake  <eblake@redhat.com>
6865
6866         maint: remove useless REPLACE_*_H macros
6867         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
6868         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
6869         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
6870         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
6871         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
6872         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
6873         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
6874         * m4/btowc.m4: Update callers.
6875         * m4/dirfd.m4: Likewise.
6876         * m4/duplocale.m4: Likewise.
6877         * m4/fchdir.m4: Likewise.
6878         * m4/fdopendir.m4: Likewise.
6879         * m4/inet_ntop.m4: Likewise.
6880         * m4/inet_pton.m4: Likewise.
6881         * m4/ioctl.m4: Likewise.
6882         * m4/mbrlen.m4: Likewise.
6883         * m4/mbrtowc.m4: Likewise.
6884         * m4/mbsinit.m4: Likewise.
6885         * m4/mbsnrtowcs.m4: Likewise.
6886         * m4/mbsrtowcs.m4: Likewise.
6887         * m4/poll.m4: Likewise.
6888         * m4/setlocale.m4: Likewise.
6889         * m4/wcrtomb.m4: Likewise.
6890         * m4/wcsnrtombs.m4: Likewise.
6891         * m4/wcsrtombs.m4: Likewise.
6892         * m4/wctob.m4: Likewise.
6893         * m4/wcwidth.m4: Likewise.
6894         * modules/posix_spawn: Likewise.
6895         * modules/posix_spawn_file_actions_addclose: Likewise.
6896         * modules/posix_spawn_file_actions_adddup2: Likewise.
6897         * modules/posix_spawn_file_actions_addopen: Likewise.
6898         * modules/posix_spawn_file_actions_destroy: Likewise.
6899         * modules/posix_spawn_file_actions_init: Likewise.
6900         * modules/posix_spawnattr_destroy: Likewise.
6901         * modules/posix_spawnattr_getflags: Likewise.
6902         * modules/posix_spawnattr_getpgroup: Likewise.
6903         * modules/posix_spawnattr_getschedparam: Likewise.
6904         * modules/posix_spawnattr_getschedpolicy: Likewise.
6905         * modules/posix_spawnattr_getsigdefault: Likewise.
6906         * modules/posix_spawnattr_getsigmask: Likewise.
6907         * modules/posix_spawnattr_init: Likewise.
6908         * modules/posix_spawnattr_setflags: Likewise.
6909         * modules/posix_spawnattr_setpgroup: Likewise.
6910         * modules/posix_spawnattr_setschedparam: Likewise.
6911         * modules/posix_spawnattr_setschedpolicy: Likewise.
6912         * modules/posix_spawnattr_setsigdefault: Likewise.
6913         * modules/posix_spawnattr_setsigmask: Likewise.
6914         * modules/posix_spawnp: Likewise.
6915
6916 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
6917
6918         Add option to do-release-commit-and-tag to specify branch.
6919         * build-aux/do-release-commit-and-tag: Add --branch.
6920
6921 2011-05-03  Bruno Haible  <bruno@clisp.org>
6922
6923         Avoid unnecessary compilation units, through conditional dependencies.
6924         * modules/accept (Depends-on): Add conditions to the dependencies.
6925         * modules/acosl (Depends-on): Likewise.
6926         * modules/argz (Depends-on): Likewise.
6927         * modules/asinl (Depends-on): Likewise.
6928         * modules/atanl (Depends-on): Likewise.
6929         * modules/atoll (Depends-on): Likewise.
6930         * modules/bind (Depends-on): Likewise.
6931         * modules/btowc (Depends-on): Likewise.
6932         * modules/canonicalize-lgpl (Depends-on): Likewise.
6933         * modules/ceil (Depends-on): Likewise.
6934         * modules/ceilf (Depends-on): Likewise.
6935         * modules/ceill (Depends-on): Likewise.
6936         * modules/chdir-long (Depends-on): Likewise.
6937         * modules/chown (Depends-on): Likewise.
6938         * modules/close (Depends-on): Likewise.
6939         * modules/connect (Depends-on): Likewise.
6940         * modules/cosl (Depends-on): Likewise.
6941         * modules/dirfd (Depends-on): Likewise.
6942         * modules/dprintf (Depends-on): Likewise.
6943         * modules/dprintf-posix (Depends-on): Likewise.
6944         * modules/error (Depends-on): Likewise.
6945         * modules/euidaccess (Depends-on): Likewise.
6946         * modules/expl (Depends-on): Likewise.
6947         * modules/faccessat (Depends-on): Likewise.
6948         * modules/fchdir (Depends-on): Likewise.
6949         * modules/fclose (Depends-on): Likewise.
6950         * modules/fcntl (Depends-on): Likewise.
6951         * modules/fdopendir (Depends-on): Likewise.
6952         * modules/fflush (Depends-on): Likewise.
6953         * modules/floor (Depends-on): Likewise.
6954         * modules/floorf (Depends-on): Likewise.
6955         * modules/floorl (Depends-on): Likewise.
6956         * modules/fnmatch (Depends-on): Likewise.
6957         * modules/fopen (Depends-on): Likewise.
6958         * modules/fprintf-posix (Depends-on): Likewise.
6959         * modules/frexp (Depends-on): Likewise.
6960         * modules/frexp-nolibm (Depends-on): Likewise.
6961         * modules/frexpl (Depends-on): Likewise.
6962         * modules/frexpl-nolibm (Depends-on): Likewise.
6963         * modules/fseek (Depends-on): Likewise.
6964         * modules/fsusage (Depends-on): Likewise.
6965         * modules/ftell (Depends-on): Likewise.
6966         * modules/ftello (Depends-on): Likewise.
6967         * modules/futimens (Depends-on): Likewise.
6968         * modules/getcwd (Depends-on): Likewise.
6969         * modules/getcwd-lgpl (Depends-on): Likewise.
6970         * modules/getdelim (Depends-on): Likewise.
6971         * modules/getdomainname (Depends-on): Likewise.
6972         * modules/getgroups (Depends-on): Likewise.
6973         * modules/gethostname (Depends-on): Likewise.
6974         * modules/getline (Depends-on): Likewise.
6975         * modules/getlogin_r (Depends-on): Likewise.
6976         * modules/getopt-posix (Depends-on): Likewise.
6977         * modules/getpeername (Depends-on): Likewise.
6978         * modules/getsockname (Depends-on): Likewise.
6979         * modules/getsockopt (Depends-on): Likewise.
6980         * modules/getsubopt (Depends-on): Likewise.
6981         * modules/getusershell (Depends-on): Likewise.
6982         * modules/glob (Depends-on): Likewise.
6983         * modules/grantpt (Depends-on): Likewise.
6984         * modules/iconv_open (Depends-on): Likewise.
6985         * modules/iconv_open-utf (Depends-on): Likewise.
6986         * modules/inet_ntop (Depends-on): Likewise.
6987         * modules/inet_pton (Depends-on): Likewise.
6988         * modules/ioctl (Depends-on): Likewise.
6989         * modules/isapipe (Depends-on): Likewise.
6990         * modules/isfinite (Depends-on): Likewise.
6991         * modules/isinf (Depends-on): Likewise.
6992         * modules/lchown (Depends-on): Likewise.
6993         * modules/ldexpl (Depends-on): Likewise.
6994         * modules/link (Depends-on): Likewise.
6995         * modules/linkat (Depends-on): Likewise.
6996         * modules/listen (Depends-on): Likewise.
6997         * modules/logl (Depends-on): Likewise.
6998         * modules/lstat (Depends-on): Likewise.
6999         * modules/mbrlen (Depends-on): Likewise.
7000         * modules/mbrtowc (Depends-on): Likewise.
7001         * modules/mbsinit (Depends-on): Likewise.
7002         * modules/mbsnrtowcs (Depends-on): Likewise.
7003         * modules/mbsrtowcs (Depends-on): Likewise.
7004         * modules/mbtowc (Depends-on): Likewise.
7005         * modules/memcmp (Depends-on): Likewise.
7006         * modules/mkdir (Depends-on): Likewise.
7007         * modules/mkdtemp (Depends-on): Likewise.
7008         * modules/mkfifo (Depends-on): Likewise.
7009         * modules/mkfifoat (Depends-on): Likewise.
7010         * modules/mknod (Depends-on): Likewise.
7011         * modules/mkostemp (Depends-on): Likewise.
7012         * modules/mkostemps (Depends-on): Likewise.
7013         * modules/mkstemp (Depends-on): Likewise.
7014         * modules/mkstemps (Depends-on): Likewise.
7015         * modules/mktime (Depends-on): Likewise.
7016         * modules/nanosleep (Depends-on): Likewise.
7017         * modules/open (Depends-on): Likewise.
7018         * modules/openat (Depends-on): Likewise.
7019         * modules/perror (Depends-on): Likewise.
7020         * modules/poll (Depends-on): Likewise.
7021         * modules/popen (Depends-on): Likewise.
7022         * modules/posix_spawn (Depends-on): Likewise.
7023         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
7024         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
7025         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
7026         * modules/posix_spawnp (Depends-on): Likewise.
7027         * modules/pread (Depends-on): Likewise.
7028         * modules/printf-posix (Depends-on): Likewise.
7029         * modules/ptsname (Depends-on): Likewise.
7030         * modules/putenv (Depends-on): Likewise.
7031         * modules/pwrite (Depends-on): Likewise.
7032         * modules/readline (Depends-on): Likewise.
7033         * modules/readlink (Depends-on): Likewise.
7034         * modules/readlinkat (Depends-on): Likewise.
7035         * modules/recv (Depends-on): Likewise.
7036         * modules/recvfrom (Depends-on): Likewise.
7037         * modules/regex (Depends-on): Likewise.
7038         * modules/remove (Depends-on): Likewise.
7039         * modules/rename (Depends-on): Likewise.
7040         * modules/renameat (Depends-on): Likewise.
7041         * modules/rmdir (Depends-on): Likewise.
7042         * modules/round (Depends-on): Likewise.
7043         * modules/roundf (Depends-on): Likewise.
7044         * modules/roundl (Depends-on): Likewise.
7045         * modules/rpmatch (Depends-on): Likewise.
7046         * modules/select (Depends-on): Likewise.
7047         * modules/send (Depends-on): Likewise.
7048         * modules/sendto (Depends-on): Likewise.
7049         * modules/setenv (Depends-on): Likewise.
7050         * modules/setlocale (Depends-on): Likewise.
7051         * modules/setsockopt (Depends-on): Likewise.
7052         * modules/shutdown (Depends-on): Likewise.
7053         * modules/sigaction (Depends-on): Likewise.
7054         * modules/signbit (Depends-on): Likewise.
7055         * modules/sigprocmask (Depends-on): Likewise.
7056         * modules/sinl (Depends-on): Likewise.
7057         * modules/sleep (Depends-on): Likewise.
7058         * modules/snprintf (Depends-on): Likewise.
7059         * modules/snprintf-posix (Depends-on): Likewise.
7060         * modules/socket (Depends-on): Likewise.
7061         * modules/sprintf-posix (Depends-on): Likewise.
7062         * modules/sqrtl (Depends-on): Likewise.
7063         * modules/stat (Depends-on): Likewise.
7064         * modules/strchrnul (Depends-on): Likewise.
7065         * modules/strdup-posix (Depends-on): Likewise.
7066         * modules/strerror (Depends-on): Likewise.
7067         * modules/strerror_r-posix (Depends-on): Likewise.
7068         * modules/strndup (Depends-on): Likewise.
7069         * modules/strnlen (Depends-on): Likewise.
7070         * modules/strptime (Depends-on): Likewise.
7071         * modules/strsep (Depends-on): Likewise.
7072         * modules/strsignal (Depends-on): Likewise.
7073         * modules/strstr-simple (Depends-on): Likewise.
7074         * modules/strtod (Depends-on): Likewise.
7075         * modules/strtoimax (Depends-on): Likewise.
7076         * modules/strtok_r (Depends-on): Likewise.
7077         * modules/strtoumax (Depends-on): Likewise.
7078         * modules/symlink (Depends-on): Likewise.
7079         * modules/symlinkat (Depends-on): Likewise.
7080         * modules/tanl (Depends-on): Likewise.
7081         * modules/tcgetsid (Depends-on): Likewise.
7082         * modules/tmpfile (Depends-on): Likewise.
7083         * modules/trunc (Depends-on): Likewise.
7084         * modules/truncf (Depends-on): Likewise.
7085         * modules/truncl (Depends-on): Likewise.
7086         * modules/uname (Depends-on): Likewise.
7087         * modules/unlink (Depends-on): Likewise.
7088         * modules/unlockpt (Depends-on): Likewise.
7089         * modules/unsetenv (Depends-on): Likewise.
7090         * modules/usleep (Depends-on): Likewise.
7091         * modules/utimensat (Depends-on): Likewise.
7092         * modules/vasprintf (Depends-on): Likewise.
7093         * modules/vdprintf (Depends-on): Likewise.
7094         * modules/vdprintf-posix (Depends-on): Likewise.
7095         * modules/vfprintf-posix (Depends-on): Likewise.
7096         * modules/vprintf-posix (Depends-on): Likewise.
7097         * modules/vsnprintf (Depends-on): Likewise.
7098         * modules/vsnprintf-posix (Depends-on): Likewise.
7099         * modules/vsprintf-posix (Depends-on): Likewise.
7100         * modules/wcrtomb (Depends-on): Likewise.
7101         * modules/wcscasecmp (Depends-on): Likewise.
7102         * modules/wcscspn (Depends-on): Likewise.
7103         * modules/wcsdup (Depends-on): Likewise.
7104         * modules/wcsncasecmp (Depends-on): Likewise.
7105         * modules/wcsnrtombs (Depends-on): Likewise.
7106         * modules/wcspbrk (Depends-on): Likewise.
7107         * modules/wcsrtombs (Depends-on): Likewise.
7108         * modules/wcsspn (Depends-on): Likewise.
7109         * modules/wcsstr (Depends-on): Likewise.
7110         * modules/wcstok (Depends-on): Likewise.
7111         * modules/wcswidth (Depends-on): Likewise.
7112         * modules/wctob (Depends-on): Likewise.
7113         * modules/wctomb (Depends-on): Likewise.
7114         * modules/wctype (Depends-on): Likewise.
7115         * modules/wcwidth (Depends-on): Likewise.
7116         * modules/write (Depends-on): Likewise.
7117
7118 2011-05-03  Bruno Haible  <bruno@clisp.org>
7119
7120         Support for conditional dependencies.
7121         * doc/gnulib.texi (Module description): Document the syntax of
7122         conditional dependencies.
7123         * gnulib-tool: New option --conditional-dependencies.
7124         (func_usage): Document it.
7125         (cond_dependencies): New variable.
7126         (func_get_automake_snippet_conditional,
7127         func_get_automake_snippet_unconditional): New functions, extracted from
7128         func_get_automake_snippet.
7129         (func_get_automake_snippet): Use them.
7130         (sed_first_32_chars): New variable.
7131         (func_module_shellfunc_name): New function.
7132         (func_module_shellvar_name): New function.
7133         (func_module_conditional_name): New function.
7134         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
7135         func_cond_module_condition): New functions.
7136         (func_modules_transitive_closure): Add support for conditional
7137         dependencies.
7138         (func_emit_lib_Makefile_am): For a conditional module, enclose the
7139         conditional automake snippet in an automake conditional.
7140         (func_emit_autoconf_snippets): Emit shell functions that contain the
7141         code for conditional modules.
7142         (func_import, func_create_testdir): Update specification.
7143
7144 2011-05-03  Eric Blake  <eblake@redhat.com>
7145
7146         test-getaddrinfo: report error information
7147         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
7148
7149 2011-05-03  Jim Meyering  <meyering@redhat.com>
7150
7151         bootstrap: avoid build failure when $GZIP is set
7152         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
7153         program name.  If defined at all, it is supposed to list gzip options.
7154         Reported by Alan Curry in http://debbugs.gnu.org/8609
7155
7156 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
7157
7158         readme-release: new module with release instructions
7159         * modules/readme-release: New module.
7160         * top/README-release: New file, from coreutils, grep, diffutils.
7161         * MODULES.html.sh (Support for maintaining and releasing): Add it.
7162
7163 2011-05-02  Eric Blake  <eblake@redhat.com>
7164
7165         fflush: also replace fclose when fixing fflush
7166         * modules/fflush (Depends-on): Add fclose.
7167         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
7168         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
7169         memstreams with no backing fd.
7170         * doc/posix-functions/fclose.texi (fclose): Document the use of
7171         fflush module to fix the bug.
7172         * tests/test-fclose.c (main): Relax test when fclose is used in
7173         isolation.
7174
7175         fclose: add some tests
7176         * modules/fclose-tests: New test module.
7177         * tests/test-fclose.c: New file.
7178         * doc/posix-functions/fclose.texi (fclose): Document the bug.
7179
7180         fclose: reduced dependencies
7181         * modules/fclose (Depends-on): Switch from fflush/fseeko to
7182         simpler lseek.
7183         * lib/fclose.c (rpl_fclose): Likewise.
7184         Reported by Simon Josefsson.
7185
7186         exit: drop remaining clients
7187         * modules/argmatch (Depends-on): Replace exit with stdlib.
7188         * modules/copy-file (Depends-on): Likewise.
7189         * modules/execute (Depends-on): Likewise.
7190         * modules/exitfail (Depends-on): Likewise.
7191         * modules/obstack (Depends-on): Likewise.
7192         * modules/pagealign_alloc (Depends-on): Likewise.
7193         * modules/pipe-filter-gi (Depends-on): Likewise.
7194         * modules/pipe-filter-ii (Depends-on): Likewise.
7195         * modules/savewd (Depends-on): Likewise.
7196         * modules/spawn-pipe (Depends-on): Likewise.
7197         * modules/wait-process (Depends-on): Likewise.
7198         * modules/xsetenv (Depends-on): Likewise.
7199         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
7200         * modules/git-merge-changelog (Depends-on): Likewise.
7201         * modules/long-options (Depends-on): Likewise.
7202         * modules/pt_chown (Depends-on): Likewise.
7203         * modules/sysexits (Depends-on): Likewise.
7204
7205         freading: relax license from LGPLv3+ to LGPLv2+
7206         * modules/freading (License): Relax LGPL version.
7207
7208 2011-05-02  Bruno Haible  <bruno@clisp.org>
7209
7210         fchdir: Remove unused dependencies.
7211         * modules/fchdir (Depends-on): Remove include_next.
7212
7213 2011-05-02  Bruno Haible  <bruno@clisp.org>
7214
7215         gnulib-tool: Refactor.
7216         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
7217         from func_emit_autoconf_snippets.
7218         (func_emit_autoconf_snippets): Use it.
7219
7220 2011-05-02  Simon Josefsson  <simon@josefsson.org>
7221
7222         * NEWS: Document removal of 'exit'.
7223         * modules/exit: Remove file.
7224
7225 2011-05-01  Bruno Haible  <bruno@clisp.org>
7226
7227         Update DEPENDENCIES.
7228         * DEPENDENCIES (gettext): Recommend the newest release.
7229         Reported by Simon Josefsson.
7230
7231 2011-05-01  Bruno Haible  <bruno@clisp.org>
7232
7233         gnulib-tool: Reduce code duplication.
7234         * gnulib-tool (func_emit_autoconf_snippets): New function.
7235         (func_import, func_create_testdir): Use it.
7236
7237 2011-04-30  Eric Blake  <eblake@redhat.com>
7238
7239         fclose: don't fail on non-seekable input stream
7240         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
7241         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
7242         since fflush is allowed to fail in that case.
7243
7244 2011-04-30  Bruno Haible  <bruno@clisp.org>
7245
7246         dup3: cleanup
7247         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
7248
7249 2011-04-30  Bruno Haible  <bruno@clisp.org>
7250
7251         netdb: Make it work in C++ mode.
7252         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
7253         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
7254         module.
7255         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
7256         gl_MODULE_INDICATOR_FOR_TESTS.
7257         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
7258         * modules/netdb-c++-tests: New file.
7259         * tests/test-netdb-c++.cc: New file.
7260
7261 2011-04-30  Bruno Haible  <bruno@clisp.org>
7262
7263         New modules 'vfscanf', 'vscanf'.
7264         * modules/vfscanf: New file.
7265         * modules/vscanf: New file.
7266         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
7267         here.
7268         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
7269         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
7270
7271 2011-04-30  Bruno Haible  <bruno@clisp.org>
7272
7273         passfd: Add comments.
7274         * lib/passfd.c: Add comments about platforms.
7275
7276 2011-04-30  Bruno Haible  <bruno@clisp.org>
7277
7278         sys_uio: Make <sys/uio.h> self-contained.
7279         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
7280         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
7281
7282 2011-04-30  Bruno Haible  <bruno@clisp.org>
7283
7284         sys_socket: Ensure 'struct iovec' definition.
7285         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
7286         <sys/socket.h>.
7287         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
7288
7289 2011-04-30  Bruno Haible  <bruno@clisp.org>
7290
7291         sys_uio: Protect definition of 'struct iovec'.
7292         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
7293         it as a C struct.
7294
7295 2011-04-30  Bruno Haible  <bruno@clisp.org>
7296
7297         manywarnings: fix indentation
7298         * m4/manywarnings.m4: Indent by 2 spaces consistently.
7299
7300 2011-04-30  Pádraig Brady <P@draigBrady.com>
7301
7302         manywarnings: add -Wno-missing-field-initializers if needed.
7303         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
7304         option if it's needed to allow initialization with { 0, }
7305
7306 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
7307
7308         announce-gen: cosmetic improvement
7309         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
7310
7311 2011-04-29  Jim Meyering  <meyering@redhat.com>
7312
7313         vc-list-files: indent with spaces, not TABs
7314         * build-aux/vc-list-files: Convert leading TABs to spaces,
7315         to match the style of most other files in gnulib.
7316
7317         announce-gen: indent with spaces, not TABs
7318         * build-aux/announce-gen: Convert all TABs to spaces, to match
7319         the style of most other files in gnulib.
7320
7321 2011-04-29  Eric Blake  <eblake@redhat.com>
7322
7323         quotearg: avoid uninitialized variable use
7324         * lib/quotearg.c (quoting_options_from_style): Initialize
7325         remaining fields, and ensure that custom styles are only used via
7326         quoting_options rather than quoting_style.
7327
7328 2011-04-29  Jim Meyering  <meyering@redhat.com>
7329
7330         maint.mk: remove unused VC-tag variable
7331         * top/maint.mk (VC-tag): Remove unused variable.
7332
7333 2011-04-29  Bruno Haible  <bruno@clisp.org>
7334
7335         netdb: fix gai_strerror replacements
7336         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
7337         * modules/netdb: Substitute it.
7338
7339 2011-04-29  Jim Meyering  <meyering@redhat.com>
7340
7341         test-getcwd.c: avoid new set-but-not-used warning
7342         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
7343         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
7344         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
7345         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
7346
7347         test-hash.c: avoid a new shadowing warning
7348         * tests/test-hash.c (main): Don't shadow "dup".
7349
7350 2011-04-28  Eric Blake  <eblake@redhat.com>
7351
7352         getaddrinfo: fix gai_strerror signature
7353         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
7354         and work around mingw with UNICODE defined.
7355         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
7356         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
7357         * modules/netdb (Makefile.am): Substitute it.
7358         * lib/netdb.in.h (gai_strerror): Declare replacement.
7359         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
7360         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
7361         the fix.
7362
7363         getsockopt: avoid compiler warning
7364         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
7365         Reported by Matthias Bolte.
7366
7367         tests: drop unused link dependency
7368         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
7369         * modules/dirent-safer-tests (Makefile.am): Likewise.
7370         * modules/fdopendir-tests (Makefile.am): Likewise.
7371         * modules/mkfifoat-tests (Makefile.am): Likewise.
7372         * modules/openat-safer-tests (Makefile.am): Likewise.
7373         * modules/openat-tests (Makefile.am): Likewise.
7374         * modules/readlinkat-tests (Makefile.am): Likewise.
7375         * modules/symlinkat-tests (Makefile.am): Likewise.
7376         * modules/linkat-tests (Makefile.am): Likewise.
7377         (Depends-on): Switch to filenamecat-lgpl.
7378         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
7379         LIBINTL.
7380         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
7381         * tests/test-linkat.c (main): Don't require xalloc.
7382
7383         hash, mgetgroups: drop xalloc dependency
7384         * lib/hash.c (includes): Adjust includes.
7385         * lib/mgetgroups.c (includes): Likewise.
7386         (xgetgroups): Move...
7387         * lib/xgetgroups.c: ...to new file.
7388         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
7389         * modules/xgetgroups: New file, split from...
7390         * modules/mgetgroups: ...here.
7391         (Depends-on): Add xalloc-oversized.
7392         * modules/hash (Depends-on): Likewise.
7393         * modules/hash-tests (Depends-on): Drop xalloc.
7394         (test_hash_LDADD): Drop unused library.
7395         * tests/test-hash.c (main): Break xalloc dependency.
7396         (includes): Drop unused include.
7397
7398         xalloc-oversized: new module
7399         * modules/xalloc-oversized: New module.
7400         * modules/xalloc (Depends-on): Add it.
7401         * lib/xalloc.h (xalloc_oversized): Move...
7402         * lib/xalloc-oversized.h: ...into new file.
7403
7404         utimecmp: drop dependency on xmalloc
7405         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
7406         due to memory pressure.
7407         * modules/utimecmp (Depends-on): Drop xalloc.
7408
7409 2011-04-27  Eric Blake  <eblake@redhat.com>
7410
7411         getcwd: fix mingw bugs
7412         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
7413         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
7414         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
7415
7416 2011-04-27  Bruno Haible  <bruno@clisp.org>
7417
7418         mkstemps: Ensure declaration on MacOS X 10.5.
7419         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
7420         * doc/glibc-functions/mkstemps.texi: Document header file problem on
7421         MacOS X.
7422
7423 2011-04-27  Bruno Haible  <bruno@clisp.org>
7424
7425         mkstemp: More documentation.
7426         * doc/posix-functions/mkstemp.texi: Document header file problem on
7427         MacOS X.
7428
7429 2011-04-27  Bruno Haible  <bruno@clisp.org>
7430
7431         mkstemp: Tweak configure message when cross-compiling.
7432         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
7433         result as a guess.
7434
7435 2011-04-27  Bruno Haible  <bruno@clisp.org>
7436
7437         clean-temp: Clarify what it does.
7438         * lib/clean-temp.h: Add more comments.
7439         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
7440         module.
7441         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
7442         * doc/glibc-functions/mkstemps.texi: Likewise.
7443         * doc/glibc-functions/mkostemps.texi: Likewise.
7444
7445 2011-04-27  Eric Blake  <eblake@redhat.com>
7446
7447         fchdir: avoid extra chdir and fix test
7448         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
7449         getcwd-lgpl.
7450         * lib/fchdir.c (get_name): Any absolute name will do; it does not
7451         have to be canonical.
7452         (canonicalize_file_name): Drop unused macro.
7453         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
7454
7455         filenamecat-lgpl: fix licence
7456         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
7457         when it was first created.
7458
7459         linkat, renameat: add missing dependency
7460         * modules/linkat (Depends-on): Require getcwd-lgpl.
7461         * modules/renameat (Depends-on): Likewise.
7462
7463         tests: reduce dependencies
7464         * tests/test-linkat.c (main): Use lighter-weight getcwd.
7465         * tests/test-renameat.c (main): Likewise.
7466         * modules/linkat-tests (Depends-on): Relax dependency.
7467         * modules/renameat-tests (Depends-on): Likewise.
7468         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
7469         dependency explicit.
7470
7471         save-cwd: reduce default dependency
7472         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
7473         * lib/save-cwd.c: Update comments.
7474         * NEWS: Document the semantic change.
7475
7476         getcwd: enhance tests
7477         * tests/test-getcwd-lgpl.c: New file, taken from...
7478         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
7479         repeat long path stress tests from m4 probe.
7480         * modules/getcwd-lgpl-tests: New module.
7481         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
7482         * m4/getcwd-abort-bug.m4: Update comment.
7483         * m4/getcwd-path-max.m4: Likewise.
7484
7485         getcwd-lgpl: new module
7486         * modules/getcwd-lgpl: New module.
7487         * lib/getcwd-lgpl.c: New file.
7488         * doc/posix-functions/getcwd.texi (getcwd): Document it.
7489         * MODULES.html.sh (lacking POSIX:2008): Likewise.
7490         * modules/getcwd (configure.ac): Set C witness.
7491         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
7492
7493         getcwd: tweak comments
7494         * m4/getcwd-abort-bug.m4: Fix comments.
7495         * m4/getcwd-path-max.m4: Likewise.
7496         * m4/getcwd.m4: Likewise.
7497
7498 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
7499         and Eric Blake  <eblake@redhat.com>
7500
7501         mkstemp: replace if system version uses wrong permissions
7502         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
7503         read/write mode bits set in file created by mkstemp.
7504         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
7505
7506 2011-04-27  Eric Blake  <eblake@redhat.com>
7507
7508         passfd: avoid compiler warning
7509         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
7510         Reported by Laine Stump.
7511
7512 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
7513
7514         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
7515         required by the NetBSD (and perhaps other 4.4BSD derived) join.
7516
7517 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
7518         and Eric Blake  <eblake@redhat.com>
7519
7520         mkstemp: mention clean-temp module
7521         * lib/mkstemp.c: Add comment.
7522         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
7523
7524 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
7525
7526         inttypes: also provide default values for 32-bit tests
7527         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
7528         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
7529
7530 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
7531
7532         strtoumax: remove dependency on strtoimax
7533         This is like the strtoull change of yesterday.
7534         * modules/strtoumax (Files): Add lib/strtoimax.c.
7535         (Depends-on): Remove strtoimax and add verify.
7536
7537         inttypes-incomplete: new module
7538         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
7539         all but the PRI* and SCN* parts of gl_INTTYPES_H.
7540         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
7541         of gl_INTTYPES_H.
7542         (gl_INTTYPES_H): Rewrite in terms of these new macros.
7543         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
7544         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
7545         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
7546         * modules/strtoumax, modules/xstrtol (Depends-on):
7547         Depend on inttypes-incomplete, not inttypes.
7548         * modules/inttypes-incomplete: New module, containing the contents
7549         of the old modules/inttypes module, except that the Files: section
7550         omits m4/inttypes-pri.m4, and the configure.ac section invokes
7551         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
7552         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
7553         (Depends-on): Depend only on inttypes-incomplete.
7554         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
7555
7556         inttypes: omit now-redundant strtoimax and strtoumax work
7557         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
7558         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
7559
7560         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
7561         This supports apps that need pointers to strtoimax and strtoumax,
7562         and ports to HP-UX 11.00 64.bit, which has macros that expand to
7563         nonexistent functions.  See
7564         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
7565         et seq.
7566         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
7567         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
7568         a macro.
7569         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
7570
7571 2011-04-25  Simon Josefsson  <simon@josefsson.org>
7572
7573         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
7574
7575 2011-04-25  Bruno Haible  <bruno@clisp.org>
7576
7577         strtol, strtoul: Mark modules as obsolete.
7578         * modules/strtol (Status, Notice): New sections.
7579         * modules/strtoul (Status, Notice): New sections.
7580
7581 2011-04-25  Bruno Haible  <bruno@clisp.org>
7582
7583         strtod: Remove check for strtod, unless supporting old platforms.
7584         * modules/strtod-obsolete: New file.
7585         * m4/strtod-obsolete.m4: New file.
7586         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
7587         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
7588         * modules/strtod (Depends-on): Add strtod-obsolete.
7589         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
7590
7591 2011-04-25  Bruno Haible  <bruno@clisp.org>
7592
7593         strcase: Make module obsolete.
7594         * modules/strcase (Status, Notice): New sections.
7595
7596 2011-04-25  Bruno Haible  <bruno@clisp.org>
7597
7598         dup2: Remove check for dup2, unless supporting old obsolete platforms.
7599         * modules/dup2-obsolete: New file.
7600         * m4/dup2-obsolete.m4: New file.
7601         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
7602         gl_FUNC_DUP2_OBSOLETE is not also defined.
7603         * modules/dup2 (Depends-on): Add dup2-obsolete.
7604         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
7605
7606 2011-04-25  Bruno Haible  <bruno@clisp.org>
7607
7608         strnlen: Avoid memchr related link error on old obsolete platforms.
7609         * modules/memchr-obsolete: New file.
7610         * m4/memchr-obsolete.m4: New file.
7611         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
7612         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
7613         * modules/memchr (Depends-on): Add memchr-obsolete.
7614         * modules/strnlen (Depends-on): Likewise.
7615         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
7616
7617 2011-04-25  Jim Meyering  <meyering@redhat.com>
7618
7619         maint.mk: makefile_at_at_check extend and clean up
7620         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
7621         in addition to */Makefile.am.
7622         Exempt legitimate uses of @VAR@ notation, e.g.,
7623         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
7624         Remove obsolete coreutils-specific comment.
7625         Prompted by discussion here:
7626         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
7627
7628 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
7629
7630         strtoul: remove dependency on strtol
7631         This is so that 'configure' need not check for strtol merely because
7632         the application needs strtoul.
7633         * modules/strtoul (Files): Add lib/strtol.c.
7634         (Depends-on): Remove strtol.
7635
7636         strtoull: remove dependency on strtoul
7637         This is like the strtoll change.
7638         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
7639         (Depends-on): Remove strtoul.
7640
7641         strtoll: remove dependency on strtol
7642         This is so that 'configure' need not check for strtol merely because
7643         the application needs strtoll.
7644         * modules/strtoll (Files): Add lib/strtol.c.
7645         (Depends-on): Remove strtol.
7646
7647 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
7648
7649         inttypes: Move some configure check to module 'imaxdiv'.
7650         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
7651         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
7652         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
7653
7654 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
7655
7656         inttypes: Move some configure check to module 'imaxabs'.
7657         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
7658         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
7659         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
7660
7661 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
7662
7663         inttypes: Remove configure tests that are not needed since 2009-12-31.
7664         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
7665         gl_cv_header_working_inttypes_h.
7666
7667 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
7668
7669         * modules/strnlen (Depends-on): Remove memchr.
7670         The strnlen implementation doesn't need the memchr module's fixes; see
7671         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
7672
7673         strtol: remove dependency on wchar
7674         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
7675         * modules/strtol (Depends-on): Remove wchar.
7676
7677 2011-04-21  Eric Blake  <eblake@redhat.com>
7678
7679         passfd: fix test regression on Linux
7680         * modules/passfd-tests (configure.ac): Correct socketpair check.
7681
7682         passfd: speed up configure and drop unused code
7683         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
7684         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
7685         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
7686         Instead of probing at configure for unix_scm_rights_bsd44_way,
7687         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
7688         check to a struct member probe.
7689         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
7690         (sendfd, recvfd): Update preprocessor checks.
7691         * modules/passfd (Files): Reflect rename, and drop unused file.
7692         (Depends-on): Drop unused dependency.
7693
7694         passfd: allow compilation on mingw
7695         * modules/sys_socket (Depends-on): Add sys_uio.
7696         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
7697         iovec and a minimal struct msghdr.
7698         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
7699         * tests/test-sys_socket.c (main): Enhance test.
7700         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
7701         guaranteed to provide what we need.
7702         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
7703         * modules/passfd-tests (Depends-on): Add sys_wait.
7704         * tests/test-passfd.c (main): Skip test on mingw, for now.
7705         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
7706         partial 'struct msghdr' implementation.
7707
7708         sys_uio: new module
7709         * modules/sys_uio: New module.
7710         * modules/sys_uio-tests: Likewise.
7711         * lib/sys_uio.in.h: New file.
7712         * m4/sys_uio_h.m4: Likewise.
7713         * tests/test-sys_uio.c: Likewise.
7714         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
7715         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
7716
7717 2011-04-20  Jim Meyering  <meyering@redhat.com>
7718
7719         useless-if-before-free: avoid false-positive
7720         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
7721         disjunct so that it too requires a terminating ";".  Without that,
7722         this script would identify as useless one statement from gcc that
7723         was not:
7724           if (aligned_ptr)
7725             free (((void **) aligned_ptr) [-1]);
7726
7727 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
7728
7729         doc: update users.txt.
7730         * users.txt: Add barcode.
7731
7732 2011-04-19  Bruno Haible  <bruno@clisp.org>
7733
7734         ioctl: Remove link dependency on native Windows.
7735         * lib/fd-hook.h: Renamed from lib/close-hook.h.
7736         (gl_close_fn, gl_ioctl_fn): New types.
7737         (struct fd_hook): Renamed from struct close_hook. Change type of
7738         private_close_fn field. Add private_ioctl_fn field.
7739         (close_hook_fn): Add parameter for primary close method.
7740         (execute_close_hooks, execute_all_close_hooks): Likewise.
7741         (ioctl_hook_fn): New type.
7742         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
7743         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
7744         argument.
7745         (unregister_fd_hook): Renamed from unregister_close_hook.
7746         * lib/fd-hook.c: Renamed from lib/close-hook.c.
7747         Don't include <unistd.h>.
7748         (close): Remove undef.
7749         (anchor): Update.
7750         (execute_close_hooks): Add argument for primary close method.
7751         (execute_all_close_hooks): Likewise.
7752         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
7753         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
7754         argument. Allow each argument to be NULL.
7755         (unregister_fd_hook): Renamed from unregister_close_hook.
7756         * lib/close.c (rpl_close): Pass 'close' function pointer to
7757         execute_all_close_hooks.
7758         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
7759         (primary_ioctl): New function.
7760         (ioctl): Don't call ioctlsocket here. Instead, call
7761         execute_all_ioctl_hooks.
7762         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
7763         close method.
7764         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
7765         (fd_sockets_hook): Renamed from close_sockets_hook.
7766         (gl_sockets_startup, gl_sockets_cleanup): Update.
7767         * modules/fd-hook: Renamed from modules/close-hook. Update.
7768         * modules/close (Depends-on): Add fd-hook, remove close-hook.
7769         * modules/sockets (Depends-on): Likewise.
7770         * modules/ioctl (Depends-on): Add fd-hook.
7771         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
7772         GNULIB_SOCKET.
7773
7774 2011-04-19  Bruno Haible  <bruno@clisp.org>
7775
7776         Move the support of O_NONBLOCK in open() to the 'open' module.
7777         * modules/nonblocking (Depends-on): Remove 'open'.
7778         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
7779         gl_cv_have_open_O_NONBLOCK.
7780         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
7781         O_NONBLOCK support.
7782         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
7783
7784 2011-04-17  Bruno Haible  <bruno@clisp.org>
7785
7786         pipe2: Simplify code.
7787         * lib/pipe2.c (pipe2): Reduce code duplication.
7788
7789 2011-04-17  Bruno Haible  <bruno@clisp.org>
7790
7791         nonblocking: Add comment.
7792         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
7793
7794 2011-04-17  Bruno Haible  <bruno@clisp.org>
7795
7796         nonblocking: Add tests for sockets.
7797         * tests/test-nonblocking-socket.sh: New file.
7798         * tests/test-nonblocking-socket-main.c: New file.
7799         * tests/test-nonblocking-socket-child.c: New file.
7800         * tests/test-nonblocking-socket.h: New file.
7801         * tests/socket-server.h: New file.
7802         * tests/socket-client.h: New file.
7803         * modules/nonblocking-socket-tests: New file.
7804         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
7805
7806 2011-04-17  Bruno Haible  <bruno@clisp.org>
7807
7808         nonblocking: Add tests for pipes.
7809         * tests/test-nonblocking-pipe.sh: New file.
7810         * tests/test-nonblocking-pipe-main.c: New file.
7811         * tests/test-nonblocking-pipe-child.c: New file.
7812         * tests/test-nonblocking-pipe.h: New file.
7813         * tests/test-nonblocking-writer.h: New file.
7814         * tests/test-nonblocking-reader.h: New file.
7815         * tests/test-nonblocking-misc.h: New file.
7816         * modules/nonblocking-pipe-tests: New file.
7817         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
7818
7819 2011-04-16  Bruno Haible  <bruno@clisp.org>
7820
7821         gettext: Clarify the needed programmer actions.
7822         * modules/gettext (Notice): New field.
7823         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
7824
7825 2011-04-16  Bruno Haible  <bruno@clisp.org>
7826
7827         strchrnul: Tweak last commit.
7828         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
7829         bug.
7830         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
7831         as in _GL_FUNCDECL_SYS.
7832         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
7833         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
7834
7835 2011-04-15  Eric Blake  <eblake@redhat.com>
7836
7837         strchrnul: work around cygwin bug
7838         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
7839         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
7840         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
7841         * modules/string (Makefile.am): Substitute it.
7842         * lib/string.in.h (strchrnul): Use it.
7843
7844 2011-04-15  Bruno Haible  <bruno@clisp.org>
7845
7846         Don't require lib/stdio-write.c when only module 'stdio' is used.
7847         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
7848         invocation.
7849         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
7850
7851 2011-04-14  Bruno Haible  <bruno@clisp.org>
7852
7853         Support non-blocking pipe I/O in read() on native Windows.
7854         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
7855         (read): New declaration.
7856         * lib/read.c: New file.
7857         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
7858         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
7859         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
7860         vscanf): New declarations.
7861         * lib/stdio-read.c: New file.
7862         * m4/read.m4: New file.
7863         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
7864         REPLACE_READ.
7865         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
7866         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
7867         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
7868         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
7869         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
7870         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
7871         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
7872         * modules/read: New file.
7873         * modules/nonblocking (Files): Add lib/stdio-read.c.
7874         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
7875         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
7876         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
7877         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
7878         * modules/pread (Depends-on): Add read.
7879         * modules/safe-read (Depends-on): Likewise.
7880         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
7881         gets, scanf, vfscanf, vscanf): Verify signatures.
7882         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
7883         problem with non-blocking pipes.
7884         * doc/posix-functions/fgetc.texi: Likewise.
7885         * doc/posix-functions/fgets.texi: Likewise.
7886         * doc/posix-functions/fread.texi: Likewise.
7887         * doc/posix-functions/fscanf.texi: Likewise.
7888         * doc/posix-functions/getc.texi: Likewise.
7889         * doc/posix-functions/getchar.texi: Likewise.
7890         * doc/posix-functions/gets.texi: Likewise.
7891         * doc/posix-functions/scanf.texi: Likewise.
7892         * doc/posix-functions/vfscanf.texi: Likewise.
7893         * doc/posix-functions/vscanf.texi: Likewise.
7894
7895 2011-04-14  Bruno Haible  <bruno@clisp.org>
7896
7897         Support non-blocking pipe I/O in write() on native Windows.
7898         * lib/write.c (rpl_write): Split a write request that failed merely
7899         because the byte count was larger than the pipe buffer's size.
7900         * doc/posix-functions/write.texi: Mention the problem with large byte
7901         counts.
7902
7903 2011-04-14  Bruno Haible  <bruno@clisp.org>
7904
7905         wchar: Ensure that wchar_t gets defined on uClibc.
7906         * lib/wchar.in.h: On uClibc, include <stddef.h>.
7907         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
7908
7909 2011-04-13  Bruno Haible  <bruno@clisp.org>
7910
7911         safe-write, full-read: Avoid unnecessary compilation units.
7912         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
7913         (Depends-on): Remove safe-read. Add ssize_t.
7914         * modules/full-read (Files): Add lib/full-write.c.
7915         (Depends-on): Add full-write.
7916
7917 2011-04-13  Bruno Haible  <bruno@clisp.org>
7918
7919         Support non-blocking pipe I/O and SIGPIPE in pwrite().
7920         * modules/pwrite (Depends-on): Add 'write'.
7921
7922 2011-04-13  Bruno Haible  <bruno@clisp.org>
7923
7924         Support non-blocking pipe I/O in write() on native Windows.
7925         * lib/unistd.in.h (write): Enable replacement also if
7926         GNULIB_UNISTD_H_NONBLOCKING is 1.
7927         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
7928         (rpl_write): When failing to write on a non-blocking pipe, change
7929         errno from ENOSPC to EAGAIN.
7930         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
7931         putchar, puts, vfprintf, vprintf): Enable replacement also if
7932         GNULIB_STDIO_H_NONBLOCKING is 1.
7933         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
7934         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
7935         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
7936         CALL_WITH_SIGPIPE_EMULATION.
7937         (CALL_WITH_SIGPIPE_EMULATION): Use them.
7938         * m4/nonblocking.m4: New file.
7939         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
7940         for non-blocking I/O support.
7941         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
7942         GNULIB_UNISTD_H_NONBLOCKING.
7943         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
7944         required for non-blocking I/O support.
7945         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
7946         * modules/nonblocking (Files): Add m4/nonblocking.m4,
7947         lib/stdio-write.c, m4/asm-underscore.m4.
7948         (Depends-on): Add stdio, unistd.
7949         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
7950         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
7951         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
7952         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
7953         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
7954         problem with non-blocking pipes.
7955         * doc/posix-functions/fputc.texi: Likewise.
7956         * doc/posix-functions/fputs.texi: Likewise.
7957         * doc/posix-functions/fwrite.texi: Likewise.
7958         * doc/posix-functions/printf.texi: Likewise.
7959         * doc/posix-functions/putc.texi: Likewise.
7960         * doc/posix-functions/putchar.texi: Likewise.
7961         * doc/posix-functions/puts.texi: Likewise.
7962         * doc/posix-functions/vfprintf.texi: Likewise.
7963         * doc/posix-functions/vprintf.texi: Likewise.
7964         * doc/posix-functions/write.texi: Likewise.
7965
7966 2011-04-10  Jim Meyering  <meyering@redhat.com>
7967
7968         maint.mk: prohibit doubled words
7969         Detect them also when they're separated by a newline.
7970         There are 3 ways to customize it:
7971           - disable the test on a per file basis, as usual with rules using
7972             $(VC_LIST_EXCEPT)
7973           - replace the default doubled-word-selecting regexp (affects all files)
7974           - ignore a particular file-vs-doubled-word match
7975         I nearly used that last one to ignore the "is is" match in
7976         coreutils' NEWS file, since the text was "ls -is is ..."
7977         To do that, I would have added this line to cfg.mk:
7978           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
7979         but it would have ignored any "is is" match in NEWS.
7980         Low probability, but still...
7981         Instead, I changed the text, slightly:
7982           -  ls -is is now consistent with ls -lis in ignoring values returned
7983           +  "ls -is" is now consistent with ls -lis in ignoring values returned
7984         * top/maint.mk (prohibit_double_word_RE_): Provide default.
7985         (prohibit_doubled_word_): Define.
7986         (sc_prohibit_doubled_word): New rule.
7987         (sc_prohibit_the_the): Remove.  Subsumed by the above.
7988
7989 2011-04-10  Jim Meyering  <meyering@redhat.com>
7990
7991         maint: fix doubled-word typo in comment
7992         * m4/gethostname.m4: s/is is/it is/
7993         * m4/getdomainname.m4: Likewise.
7994
7995 2011-04-10  Jim Meyering  <meyering@redhat.com>
7996
7997         maint: remove doubled word: s/it it/it/
7998         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
7999
8000 2011-04-10  Jim Meyering  <meyering@redhat.com>
8001
8002         maint.mk: remove useless semicolon and backslash
8003         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
8004         semicolon and backslash.
8005
8006 2011-04-10  Bruno Haible  <bruno@clisp.org>
8007
8008         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
8009         * modules/stdint-tests (Depends-on): Add wchar.
8010
8011 2011-04-10  Jim Meyering  <meyering@redhat.com>
8012
8013         maint: remove doubled words in comments, e.g., s/a a/a/
8014         * lib/strptime.c (day_of_the_week): s/the the/the/
8015         * tests/test-chown.h (test_chown): s/a a/a/
8016
8017         test-chown.h: correct a cast
8018         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
8019         when the destination is a stat.st_gid.
8020
8021 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
8022
8023         getaddrinfo: Fix test for sa_len member.
8024         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
8025         include <sys/types.h> before <sys/socket.h>.
8026
8027 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
8028
8029         maint: change "can not" to "cannot"
8030         * doc/posix-functions/iconv.texi (iconv): This one crossed line
8031         boundaries.
8032
8033 2011-04-09  Jim Meyering  <meyering@redhat.com>
8034
8035         maint: change "a a" to "a"
8036         * tests/test-lchown.h (test_lchown): s/a a/a/
8037
8038         maint.mk: prohibit \<the the\>
8039         * top/maint.mk (sc_prohibit_the_the): New rule.
8040
8041         maint: fix "the the" in comment
8042         * lib/count-one-bits.h: s/the the/the/
8043
8044         maint: change "can not" to "cannot"
8045         But do not change the occurrences in maintain.texi or in
8046         build-aux/po/Makefile.in.in, which I presume comes from gettext.
8047         * doc/gnulib-tool.texi: s/can not/cannot/
8048         * doc/posix-functions/accept.texi (accept): Likewise.
8049         * doc/posix-functions/socket.texi (socket): Likewise.
8050         * lib/mbrtowc.c: Likewise.
8051
8052         maint.mk: prohibit use of "can not"
8053         * top/maint.mk (sc_prohibit_can_not): New rule.
8054         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
8055
8056 2011-04-09  Bruno Haible  <bruno@clisp.org>
8057
8058         careadlinkat: Guard against misuse of careadlinkatcwd.
8059         * lib/careadlinkat.c: Include <stdlib.h>.
8060         (careadlinkatcwd): Check that the fd argument is as expected.
8061
8062 2011-04-09  Bruno Haible  <bruno@clisp.org>
8063
8064         careadlinkat: Use common coding style.
8065         * lib/careadlinkat.c: Move gnulib includes after system includes.
8066
8067 2011-04-09  Bruno Haible  <bruno@clisp.org>
8068
8069         careadlinkat: Clarify specification.
8070         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
8071         (careadlinkatcwd): Add comment.
8072         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
8073
8074 2011-04-09  Bruno Haible  <bruno@clisp.org>
8075
8076         areadlinkat: Avoid link error on many platforms.
8077         * modules/areadlinkat (Depends-on): Add areadlink.
8078
8079 2011-04-09  Bruno Haible  <bruno@clisp.org>
8080
8081         allocator, careadlinkat: Fix double-inclusion guard.
8082         * lib/allocator.h: Fix double-inclusion guard.
8083         * lib/careadlinkat.h: Likewise.
8084
8085 2011-04-09  Bruno Haible  <bruno@clisp.org>
8086
8087         relocatable-prog-wrapper: Update after module 'areadlink' changed.
8088         * lib/relocwrapper.c: Update dependencies hierarchy.
8089         * build-aux/install-reloc: Update list of files to be compiled.
8090         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
8091         lib/allocator.[hc].
8092
8093 2011-04-08  Eric Blake  <eblake@redhat.com>
8094
8095         strftime: silence gnulib-tool warning
8096         * modules/strftime-tests (Depends-on): Drop automatic dependency.
8097
8098 2011-04-08  Bruno Haible  <bruno@clisp.org>
8099
8100         verify: Fix syntax error with GCC 4.6 in C++ mode.
8101         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
8102         (HAVE_STATIC_ASSERT): New macro.
8103         (verify_true, verify): Use 'static_assert' if it is supported and
8104         '_Static_assert' is not supported.
8105
8106 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
8107
8108         allocator: New module.
8109         * modules/allocator, lib/allocator.c: New files.
8110         * lib/allocator.h (stdlib_allocator): New decl.
8111         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
8112         Remove.  Do not include <stdlib.h>.
8113         (careadlinkat): Use stdlib_allocator instead of rolling our own.
8114         * modules/careadlinkat (Files): Remove lib/allocator.h.
8115         (Depends-on): Add allocator.
8116
8117         stdlib: let modules use system malloc, realloc
8118         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
8119         if !_GL_USE_STDLIB_ALLOC.
8120         (malloc, realloc): Limit this change to a smaller scope.
8121
8122         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
8123         (malloc, realloc): Don't #undef; no longer needed.
8124         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
8125         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
8126         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
8127         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
8128         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
8129         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
8130         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
8131         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
8132
8133         careadlinkat: rename members to avoid problem
8134         * lib/allocator.h (struct allocator): Rename members from
8135         malloc/realloc to allocate/reallocate, to avoid problems if malloc
8136         and realloc are #define'd.  Reported by Eric Blake in
8137         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
8138         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
8139
8140 2011-04-08  Eric Blake  <eblake@redhat.com>
8141
8142         nonblocking: reduce dependency
8143         * tests/test-nonblocking.c: Only test sockets when in use.
8144         * modules/nonblocking-tests (Depends-on): Drop socket.
8145         (Makefile.am): Link even if sockets are not present.
8146         * modules/pipe2-tests (Makefile.am): Likewise.
8147         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
8148
8149         pipe2: fix O_NONBLOCK support on mingw
8150         * modules/pipe2 (Depends-on): Add nonblocking.
8151         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
8152         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
8153         * tests/test-nonblocking.c (main): Likewise.
8154         * modules/pipe2-tests (Makefile.am): Avoid link failure.
8155
8156         fcntl-h: fix O_ACCMODE on cygwin
8157         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
8158         * lib/fcntl.in.h (O_ACCMODE): Fix it.
8159
8160         pipe-filter: drop O_NONBLOCK workarounds
8161         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
8162         * modules/pipe-filter-ii (Depends-on): Likewise.
8163         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
8164
8165         nonblocking: provide O_NONBLOCK for mingw
8166         * modules/nonblocking (Depends-on): Add open.
8167         (configure.ac): Set new witness macro.
8168         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
8169         * modules/fcntl-h (Makefile.am): Substitute it.
8170         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
8171         nonblocking module is in use.
8172         * lib/nonblocking.c: Adjust portability test.
8173         * lib/open.c (open): Don't let native open see gnulib flag.
8174         * tests/test-fcntl-h.c (main): Enhance test.
8175         * tests/test-open.h (test_open): Likewise.
8176         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
8177
8178         careadlinkat: fix compilation error on mingw
8179         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
8180         within struct allocator.
8181
8182 2011-04-06  Eric Blake  <eblake@redhat.com>
8183
8184         binary-io: relicense under LGPLv2+
8185         * modules/binary-io (License): Relax to LGPLv2+.
8186         Requested for libvirt, and required by pipe2.
8187
8188 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
8189
8190         verify: use _Static_assert if available
8191         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
8192         (verify_true, verify): Use it if available.  This generates better
8193         diagnostics with GCC 4.6.0 and later.
8194
8195 2011-04-05  Bruno Haible  <bruno@clisp.org>
8196
8197         Remove leftover generated .h files after config.status changed.
8198
8199         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
8200         GL_GENERATE_ALLOCA_H.
8201         * modules/alloca-opt (Makefile.am): Remove alloca.h if
8202         GL_GENERATE_ALLOCA_H evaluates to false.
8203
8204         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
8205         GL_GENERATE_ARGZ_H.
8206         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
8207         evaluates to false.
8208
8209         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
8210         GL_GENERATE_BYTESWAP_H.
8211         * modules/byteswap (Makefile.am): Remove byteswap.h if
8212         GL_GENERATE_BYTESWAP_H evaluates to false.
8213
8214         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
8215         GL_GENERATE_ERRNO_H.
8216         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
8217         evaluates to false.
8218
8219         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
8220         GL_GENERATE_FLOAT_H.
8221         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
8222         evaluates to false.
8223
8224         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
8225         GL_GENERATE_FNMATCH_H.
8226         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
8227         GL_GENERATE_FNMATCH_H evaluates to false.
8228
8229         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
8230         GL_GENERATE_GLOB_H.
8231         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
8232         evaluates to false.
8233
8234         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
8235         automake conditional GL_GENERATE_ICONV_H.
8236         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
8237         evaluates to false.
8238
8239         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
8240         GL_GENERATE_NETINET_IN_H.
8241         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
8242         GL_GENERATE_NETINET_IN_H evaluates to false.
8243
8244         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
8245         conditional GL_GENERATE_PTHREAD_H.
8246         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
8247         * modules/pthread (Makefile.am): Remove pthread.h if
8248         GL_GENERATE_PTHREAD_H evaluates to false.
8249
8250         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
8251         GL_GENERATE_SCHED_H.
8252         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
8253         evaluates to false.
8254
8255         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
8256         conditional GL_GENERATE_SELINUX_CONTEXT_H.
8257         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
8258         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
8259
8260         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
8261         GL_GENERATE_STDARG_H.
8262         * modules/stdarg (Makefile.am): Remove stdarg.h if
8263         GL_GENERATE_STDARG_H evaluates to false.
8264
8265         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
8266         GL_GENERATE_STDBOOL_H.
8267         * modules/stdbool (Makefile.am): Remove stdbool.h if
8268         GL_GENERATE_STDBOOL_H evaluates to false.
8269
8270         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
8271         conditional GL_GENERATE_STDDEF_H.
8272         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
8273         * modules/stddef (Makefile.am): Remove stddef.h if
8274         GL_GENERATE_STDDEF_H evaluates to false.
8275
8276         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
8277         GL_GENERATE_STDINT_H.
8278         * modules/stdint (Makefile.am): Remove stdint.h if
8279         GL_GENERATE_STDINT_H evaluates to false.
8280
8281         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
8282         GL_GENERATE_SYSEXITS_H.
8283         * modules/sysexits (Makefile.am): Remove sysexits.h if
8284         GL_GENERATE_SYSEXITS_H evaluates to false.
8285
8286         Reported by Karl Berry and Ralf Wildenhues.
8287
8288 2011-04-05  Bruno Haible  <bruno@clisp.org>
8289
8290         Ensure to rebuild generated .h files when config.status has changed.
8291         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
8292         config.status.
8293         * modules/ctype (Makefile.am): Likewise.
8294         * modules/dirent (Makefile.am): Likewise.
8295         * modules/errno (Makefile.am): Likewise.
8296         * modules/fcntl-h (Makefile.am): Likewise.
8297         * modules/float (Makefile.am): Likewise.
8298         * modules/getopt-posix (Makefile.am): Likewise.
8299         * modules/glob (Makefile.am): Likewise.
8300         * modules/iconv-h (Makefile.am): Likewise.
8301         * modules/inttypes (Makefile.am): Likewise.
8302         * modules/langinfo (Makefile.am): Likewise.
8303         * modules/locale (Makefile.am): Likewise.
8304         * modules/math (Makefile.am): Likewise.
8305         * modules/netdb (Makefile.am): Likewise.
8306         * modules/netinet_in (Makefile.am): Likewise.
8307         * modules/poll-h (Makefile.am): Likewise.
8308         * modules/pthread (Makefile.am): Likewise.
8309         * modules/pty (Makefile.am): Likewise.
8310         * modules/sched (Makefile.am): Likewise.
8311         * modules/search (Makefile.am): Likewise.
8312         * modules/selinux-h (Makefile.am): Likewise.
8313         * modules/signal (Makefile.am): Likewise.
8314         * modules/spawn (Makefile.am): Likewise.
8315         * modules/stdarg (Makefile.am): Likewise.
8316         * modules/stdbool (Makefile.am): Likewise.
8317         * modules/stddef (Makefile.am): Likewise.
8318         * modules/stdint (Makefile.am): Likewise.
8319         * modules/stdio (Makefile.am): Likewise.
8320         * modules/stdlib (Makefile.am): Likewise.
8321         * modules/string (Makefile.am): Likewise.
8322         * modules/strings (Makefile.am): Likewise.
8323         * modules/sys_file (Makefile.am): Likewise.
8324         * modules/sys_ioctl (Makefile.am): Likewise.
8325         * modules/sys_select (Makefile.am): Likewise.
8326         * modules/sys_socket (Makefile.am): Likewise.
8327         * modules/sys_stat (Makefile.am): Likewise.
8328         * modules/sys_time (Makefile.am): Likewise.
8329         * modules/sys_times (Makefile.am): Likewise.
8330         * modules/sys_utsname (Makefile.am): Likewise.
8331         * modules/sys_wait (Makefile.am): Likewise.
8332         * modules/sysexits (Makefile.am): Likewise.
8333         * modules/termios (Makefile.am): Likewise.
8334         * modules/time (Makefile.am): Likewise.
8335         * modules/unistd (Makefile.am): Likewise.
8336         * modules/wchar (Makefile.am): Likewise.
8337         * modules/wctype-h (Makefile.am): Likewise.
8338         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
8339
8340 2011-04-05  Bruno Haible  <bruno@clisp.org>
8341
8342         pipe2: Relicense under LGPLv2+.
8343         * modules/pipe2 (License): Change to LGPLv2+.
8344         Requested by Eric Blake, for libvirt.
8345
8346 2011-04-05  Bruce Korb  <bkorb@gnu.org>
8347
8348         bootstrap: compute gnulib_extra_files after updating build_aux
8349         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
8350         change build_aux or also supply gnulib_extra_files.  Handle correctly.
8351
8352 2011-04-05  Eric Blake  <eblake@redhat.com>
8353
8354         bootstrap: preserve git whitelist item sorting
8355         * build-aux/bootstrap (sort_patterns): New function.
8356         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
8357
8358 2011-04-05  Simon Josefsson  <simon@josefsson.org>
8359
8360         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
8361         sc_space_tab check.
8362
8363 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
8364
8365         areadlink, areadlinkat: rewrite in terms of careadlinkat
8366         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
8367         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
8368         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
8369         (malloc, realloc): Remove #undefs.
8370         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
8371         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
8372         readlink, ssize_t, stdint, unistd.
8373         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
8374         areadlink, stdint.
8375
8376         careadlinkat: new module
8377         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
8378         * modules/careadlinkat: New files, written by me with
8379         a review and feedback from Ben Pfaff in
8380         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
8381
8382 2011-04-01  Bruno Haible  <bruno@clisp.org>
8383
8384         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
8385         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
8386         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
8387         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
8388         Reported by Bruce Korb <bruce.korb@gmail.com>.
8389
8390 2011-04-01  Bruno Haible  <bruno@clisp.org>
8391
8392         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
8393         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
8394         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
8395         * modules/wcpcpy (Depends-on): Add extensions.
8396         * modules/wcpncpy (Depends-on): Likewise.
8397         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
8398         systems.
8399         * doc/posix-functions/wcpncpy.texi: Likewise.
8400         * doc/posix-functions/wcwidth.texi: Likewise.
8401
8402 2011-03-31  Eric Blake  <eblake@redhat.com>
8403
8404         nonblocking: fix mingw test failures
8405         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
8406         non-blocking flag on regular file.
8407         (get_nonblocking_flag): Set errno on invalid fd.
8408         * tests/test-nonblocking.c (main): Avoid test failure on
8409         directories if fchdir is not active.
8410         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
8411
8412 2011-03-31  Bruno Haible  <bruno@clisp.org>
8413
8414         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
8415         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
8416         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
8417         Reported by Simon Josefsson <simon@josefsson.org>.
8418
8419 2011-03-31  Bruno Haible  <bruno@clisp.org>
8420         and Eric Blake  <eblake@redhat.com>
8421
8422         nonblocking: new module
8423         * modules/nonblocking: New module.
8424         * modules/nonblocking-tests: Likewise.
8425         * lib/nonblocking.h: New file.
8426         * lib/nonblocking.c: Likewise.
8427         * tests/test-nonblocking.c: New test.
8428         * lib/ioctl.c (ioctl) [mingw]: Update comment.
8429
8430 2011-03-30  Bruno Haible  <bruno@clisp.org>
8431
8432         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
8433         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
8434         instead of 'printf' format for GCC >= 4.4.
8435         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
8436         (fprintf, printf, vfprintf, vprintf): Declare with
8437         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
8438         the system's vfprintf() function.
8439         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
8440
8441 2011-03-30  Eric Blake  <eblake@redhat.com>
8442
8443         passfd: fix scoping bug
8444         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
8445         before sendmsg/recvmsg.
8446
8447         passfd: standardize coding conventions
8448         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
8449         can be learned at compile time.
8450         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
8451         ifdefs.
8452         (sendfd, recvfd): Follow gnulib code conventions.
8453
8454         passfd: fix incorrect sendmsg arguments
8455         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
8456         incorrect msg_controllen value.
8457         * modules/passfd-tests (Depends-on): Check for alarm.
8458         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
8459         Reported by Bastien ROUCARIES.
8460
8461 2011-03-30  Bruno Haible  <bruno@clisp.org>
8462
8463         c-strcasestr: Relicense under LGPLv2+.
8464         * modules/c-strcasestr (License): Change to LGPLv2+.
8465         Requested by Eric Blake, for libvirt.
8466
8467 2011-03-30  Simon Josefsson  <simon@josefsson.org>
8468
8469         * users.txt: Add libidn2.  Fix libtasn1 link.
8470
8471 2011-03-30  Jim Meyering  <meyering@redhat.com>
8472
8473         tests: readlink* ("",... fails with EINVAL on newer kernels
8474         readlink and readlinkat have typically failed with ENOENT for
8475         the invalid, empty file name,  "".  However, with the advent
8476         of linux-2.6.39, they fail with EINVAL.
8477         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
8478         when operating on the empty file name.
8479         * tests/test-readlink.h (test_readlink): Likewise.
8480
8481 2011-03-29  Bruno Haible  <bruno@clisp.org>
8482
8483         Relicense some modules under LGPLv2+, for libidn2.
8484         * modules/array-mergesort (License): Change to LGPLv2+.
8485         * modules/c-strcaseeq (License): Likewise.
8486         * modules/striconveh (License): Likewise.
8487         * modules/striconveha (License): Likewise.
8488         * modules/uniconv/base (License): Likewise.
8489         * modules/uniconv/u8-conv-from-enc (License): Likewise.
8490         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
8491         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
8492         * modules/unictype/base (License): Likewise.
8493         * modules/unictype/bidiclass-of (License): Likewise.
8494         * modules/unictype/category-M (License): Likewise.
8495         * modules/unictype/category-none (License): Likewise.
8496         * modules/unictype/category-of (License): Likewise.
8497         * modules/unictype/category-test (License): Likewise.
8498         * modules/unictype/category-test-withtable (License): Likewise.
8499         * modules/unictype/combining-class (License): Likewise.
8500         * modules/unictype/joiningtype-of (License): Likewise.
8501         * modules/unictype/scripts (License): Likewise.
8502         * modules/uninorm/base (License): Likewise.
8503         * modules/uninorm/canonical-decomposition (License): Likewise.
8504         * modules/uninorm/composition (License): Likewise.
8505         * modules/uninorm/decompose-internal (License): Likewise.
8506         * modules/uninorm/decomposition-table (License): Likewise.
8507         * modules/uninorm/nfc (License): Likewise.
8508         * modules/uninorm/nfd (License): Likewise.
8509         * modules/uninorm/u32-normalize (License): Likewise.
8510         * modules/unistr/base (License): Likewise.
8511         * modules/unistr/u32-cpy (License): Likewise.
8512         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
8513         * modules/unistr/u32-to-u8 (License): Likewise.
8514         * modules/unistr/u32-uctomb (License): Likewise.
8515         * modules/unistr/u8-check (License): Likewise.
8516         * modules/unistr/u8-mblen (License): Likewise.
8517         * modules/unistr/u8-mbtouc (License): Likewise.
8518         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
8519         * modules/unistr/u8-mbtoucr (License): Likewise.
8520         * modules/unistr/u8-prev (License): Likewise.
8521         * modules/unistr/u8-strlen (License): Likewise.
8522         * modules/unistr/u8-to-u32 (License): Likewise.
8523         * modules/unistr/u8-uctomb (License): Likewise.
8524         * modules/unitypes (License): Likewise.
8525         Requested by Simon Josefsson.
8526
8527 2011-03-29  Simon Josefsson  <simon@josefsson.org>
8528
8529         lib-symbol-visibility: Add a notice.
8530         * modules/lib-symbol-visibility (Notice): New field.
8531
8532 2011-03-29  Bruno Haible  <bruno@clisp.org>
8533
8534         getaddrinfo: Doc fix.
8535         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
8536         section "fixed in Gnulib".
8537
8538 2011-03-28  Simon Josefsson  <simon@josefsson.org>
8539
8540         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
8541         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
8542
8543 2011-03-26  Bruno Haible  <bruno@clisp.org>
8544
8545         unictype/property-byname: Reduce the number of load-time relocations.
8546         * lib/unictype/pr_byname.c: Include <stdlib.h>.
8547         (UC_PROPERTY_INDEX_*): New enumeration values.
8548         (uc_property_byname): Convert an index from the lookup table to an
8549         uc_property_t.
8550         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
8551         values.
8552
8553 2011-03-26  Bruno Haible  <bruno@clisp.org>
8554
8555         unictype/property-byname: Allow omitted word separators and aliases.
8556         * lib/unictype/pr_byname.gperf: Add property names without word
8557         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
8558         for 'space'.
8559
8560 2011-03-26  Bruno Haible  <bruno@clisp.org>
8561
8562         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
8563         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
8564         also hyphens to space.
8565         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
8566         without spaces.
8567         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
8568
8569 2011-03-26  Bruno Haible  <bruno@clisp.org>
8570
8571         unictype/joiningtype-byname: Recognize long names as well.
8572         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
8573         a long name.
8574         * lib/unictype/joiningtype_byname.c: Include <string.h>,
8575         unictype/joiningtype_byname.h.
8576         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
8577         * lib/unictype/joiningtype_byname.gperf: New file.
8578         * modules/unictype/joiningtype-byname (Files): Add
8579         lib/unictype/joiningtype_byname.gperf.
8580         (Depends-on): Add gperf.
8581         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
8582         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
8583         long names.
8584
8585         Tests for module 'unictype/joiningtype-longname'.
8586         * modules/unictype/joiningtype-longname-tests: New file.
8587         * tests/unictype/test-joiningtype_longname.c: New file.
8588
8589         New module 'unictype/joiningtype-longname'.
8590         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
8591         * lib/unictype/joiningtype_longname.c: New file.
8592         * modules/unictype/joiningtype-longname: New file.
8593         * modules/unictype/joiningtype-all (Depends-on): Add
8594         unictype/joiningtype-longname.
8595
8596 2011-03-26  Bruno Haible  <bruno@clisp.org>
8597
8598         unictype/bidiclass-byname: Recognize long names as well.
8599         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
8600         name.
8601         * lib/unictype/bidi_byname.c: Include <string.h>,
8602         unictype/bidi_byname.h.
8603         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
8604         * lib/unictype/bidi_byname.gperf: New file.
8605         * modules/unictype/bidiclass-byname (Files): Add
8606         lib/unictype/bidi_byname.gperf.
8607         (Depends-on): Add gperf.
8608         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
8609         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
8610         long names.
8611
8612         Tests for module 'unictype/bidiclass-longname'.
8613         * modules/unictype/bidiclass-longname-tests: New file.
8614         * tests/unictype/test-bidi_longname.c: New file.
8615
8616         New module 'unictype/bidiclass-longname'.
8617         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
8618         * lib/unictype/bidi_longname.c: New file.
8619         * modules/unictype/bidiclass-longname: New file.
8620         * modules/unictype/bidiclass-all (Depends-on): Add
8621         unictype/bidiclass-longname.
8622
8623 2011-03-26  Bruno Haible  <bruno@clisp.org>
8624
8625         unictype/bidi*: Rename modules.
8626         * modules/unictype/bidiclass-all: Renamed from
8627         modules/unictype/bidicategory-all.
8628         * modules/unictype/bidiclass-name: Renamed from
8629         modules/unictype/bidiclass-name.
8630         (Description): Update.
8631         * modules/unictype/bidiclass-name-tests: Renamed from
8632         modules/unictype/bidicategory-name-tests.
8633         * modules/unictype/bidiclass-byname: Renamed from
8634         modules/unictype/bidicategory-byname.
8635         (Description): Update.
8636         * modules/unictype/bidiclass-byname-tests: Renamed from
8637         modules/unictype/bidicategory-byname-tests.
8638         * modules/unictype/bidiclass-of: Renamed from
8639         modules/unictype/bidicategory-of.
8640         (Description): Update.
8641         * modules/unictype/bidiclass-of-tests: Renamed from
8642         modules/unictype/bidicategory-of-tests.
8643         * modules/unictype/bidiclass-test: Renamed from
8644         modules/unictype/bidicategory-test.
8645         (Description): Update.
8646         * modules/unictype/bidiclass-test-tests: Renamed from
8647         modules/unictype/bidicategory-test-tests.
8648         * modules/unictype/bidicategory-all: New file, a simple redirection.
8649         * modules/unictype/bidicategory-name: Likewise.
8650         * modules/unictype/bidicategory-byname: Likewise.
8651         * modules/unictype/bidicategory-of: Likewise.
8652         * modules/unictype/bidicategory-test: Likewise.
8653         * modules/unictype/property-bidi-* (Dependencies): Update.
8654         * lib/unictype/bidi_*.c: Update comment.
8655
8656 2011-03-26  Bruno Haible  <bruno@clisp.org>
8657
8658         unictype/bidi*: Rename functions, part 2.
8659         * modules/unictype/bidicategory-name (configure.ac): Update required
8660         libunistring version.
8661         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
8662
8663 2011-03-25  Bruno Haible  <bruno@clisp.org>
8664
8665         New module 'unictype/combining-class-all'.
8666         * modules/unictype/combining-class-all: New file.
8667
8668         Tests for module 'unictype/combining-class-byname'.
8669         * modules/unictype/combining-class-byname-tests: New file.
8670         * tests/unictype/test-combiningclass_byname.c: New file.
8671
8672         New module 'unictype/combining-class-byname'.
8673         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
8674         * lib/unictype/combiningclass_byname.c: New file.
8675         * lib/unictype/combiningclass_byname.gperf: New file.
8676         * modules/unictype/combining-class-byname: New file.
8677
8678         Tests for module 'unictype/combining-class-longname'.
8679         * modules/unictype/combining-class-longname-tests: New file.
8680         * tests/unictype/test-combiningclass_longname.c: New file.
8681
8682         New module 'unictype/combining-class-longname'.
8683         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
8684         * lib/unictype/combiningclass_longname.c: New file.
8685         * modules/unictype/combining-class-longname: New file.
8686
8687         Tests for module 'unictype/combining-class-name'.
8688         * modules/unictype/combining-class-name-tests: New file.
8689         * tests/unictype/test-combiningclass_name.c: New file.
8690
8691         New module 'unictype/combining-class-name'.
8692         * lib/unictype.in.h (uc_combining_class_name): New declaration.
8693         * lib/unictype/combiningclass_name.c: New file.
8694         * modules/unictype/combining-class-name: New file.
8695
8696 2011-03-25  Bruno Haible  <bruno@clisp.org>
8697
8698         unictype/combining-class: Rename source files.
8699         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
8700         of unictype/combining.h.
8701         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
8702         Update.
8703         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
8704         * modules/unictype/combining-class (Description): Fix.
8705         (Files, Makefile.am): Update.
8706         * tests/unictype/test-combiningclass.c: Renamed from
8707         tests/unictype/test-combining.c.
8708         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
8709
8710 2011-03-25  Bruno Haible  <bruno@clisp.org>
8711
8712         unictype: Update list of canonical combining classes.
8713         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
8714
8715 2011-03-25  Bruno Haible  <bruno@clisp.org>
8716
8717         unictype/category-byname: Recognize long names as well.
8718         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
8719         a long name.
8720         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
8721         unictype/categ_byname.h.
8722         (UC_CATEGORY_INDEX_*): New enumeration values.
8723         (uc_general_category_byname): Use uc_general_category_lookup and
8724         convert from index to value.
8725         * lib/unictype/categ_byname.gperf: New file.
8726         * modules/unictype/category-byname (Files): Add
8727         lib/unictype/categ_byname.gperf.
8728         (Depends-on): Add gperf.
8729         (Makefile.am): Add rule for generating unictype/categ_byname.h.
8730         * tests/unictype/test-categ_byname.c (main): Test the recognition of
8731         long names.
8732
8733         Tests for module 'unictype/category-longname'.
8734         * modules/unictype/category-longname-tests: New file.
8735         * tests/unictype/test-categ_longname.c: New file.
8736
8737         New module 'unictype/category-longname'.
8738         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
8739         * lib/unictype/categ_longname.c: New file.
8740         * modules/unictype/category-longname: New file.
8741         * modules/unictype/category-all (Depends-on): Add it.
8742
8743 2011-03-25  Bruno Haible  <bruno@clisp.org>
8744
8745         Tests for module 'unictype/category-LC'.
8746         * modules/unictype/category-LC-tests: New file.
8747         * tests/unictype/test-categ_LC.c: New file, automatically generated.
8748
8749         New module 'unictype/category-LC'.
8750         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
8751         (UC_CATEGORY_LC): New declaration.
8752         (UC_CASED_LETTER): New macro.
8753         * lib/gen-uni-tables.c (is_category_LC): New function.
8754         (output_categories): Also handle category LC.
8755         (UC_CATEGORY_MASK_LC): New enumeration value.
8756         (general_category_byname): Also handle category LC.
8757         * lib/unictype/categ_LC.c: New file.
8758         * lib/unictype/categ_LC.h: New file, automatically generated.
8759         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
8760         category LC.
8761         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
8762         * modules/unictype/category-LC: New file.
8763         * modules/unictype/category-byname (Depends-on): Add
8764         unictype/category-LC.
8765         * modules/unictype/category-all (Depends-on): Likewise.
8766
8767 2011-03-25  Eric Blake  <eblake@redhat.com>
8768
8769         xmalloc: revert yesterday's regression
8770         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
8771         realloc's underlying behavior (allowing allocation of zero-size
8772         objects, especially if malloc-gnu is also in use).
8773
8774 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
8775
8776         maint.mk: add missing version to VC-tag
8777         * top/maint.mk: git tag was missing actual tag name; add it.
8778
8779         valgrind: do leak checking, and exit with code 1 on error (not 0)
8780         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
8781         to VALGRIND.
8782
8783 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
8784
8785         posix-modules: say what it does.
8786         * posix-modules: Add a line to the --help output saying what it does.
8787
8788 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
8789
8790         xmalloc: Do not leak if underlying realloc is C99 compatible.
8791         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
8792         This avoids a leak on C99-based systems.  See
8793         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
8794
8795 2011-03-24  Eric Blake  <eblake@redhat.com>
8796
8797         realloc: document portability problem
8798         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
8799         passing 0 size to realloc.
8800
8801 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
8802
8803         doc: update users.txt
8804         * users.txt: Add cvsps, tmpwatch
8805
8806 2011-03-23  Matt Rice  <ratmice@gmail.com>
8807
8808         doc: update users.txt
8809         * users.txt: Add gdb.
8810
8811 2011-03-23  Jim Meyering  <meyering@redhat.com>
8812
8813         doc: update users.txt
8814         Looking through matches up to the following URL (there are still
8815         several more pages), I found several projects that use gnulib:
8816         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
8817         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
8818         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
8819
8820 2011-03-22  Bruno Haible  <bruno@clisp.org>
8821
8822         unictype/bidi*: Rename functions.
8823         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
8824         uc_bidi_class, uc_is_bidi_class): New declarations.
8825         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
8826         uc_bidi_category_byname.
8827         (uc_bidi_category_byname): New function.
8828         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
8829         u_bidi_category_name.
8830         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
8831         (uc_bidi_category_name): New function.
8832         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
8833         uc_bidi_category.
8834         (uc_bidi_category): New function.
8835         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
8836         uc_is_bidi_category. Invoke uc_bidi_class.
8837         (uc_is_bidi_category): New function.
8838         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
8839         instead of uc_bidi_category_byname.
8840         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
8841         instead of uc_bidi_category_name.
8842         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
8843         uc_bidi_category.
8844         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
8845         instead of uc_is_bidi_category.
8846
8847 2011-03-21  Bruno Haible  <bruno@clisp.org>
8848
8849         New module 'unictype/joininggroup-all'.
8850         * modules/unictype/joininggroup-all: New file.
8851
8852         Tests for module 'unictype/joininggroup-of'.
8853         * modules/unictype/joininggroup-of-tests: New file.
8854         * tests/unictype/test-joininggroup_of.c: New file.
8855         * tests/unictype/test-joininggroup_of.h: New file, automatically
8856         generated by gen-uni-tables.
8857
8858         New module 'unictype/joininggroup-of'.
8859         * modules/unictype/joininggroup-of: New file.
8860         * lib/unictype/joininggroup_of.c: New file.
8861         * lib/unictype/joininggroup_of.h: New file, automatically generated by
8862         gen-uni-tables.
8863
8864         Tests for module 'unictype/joininggroup-byname'.
8865         * modules/unictype/joininggroup-byname-tests: New file.
8866         * tests/unictype/test-joininggroup_byname.c: New file.
8867
8868         New module 'unictype/joininggroup-byname'.
8869         * modules/unictype/joininggroup-byname: New file.
8870         * lib/unictype/joininggroup_byname.c: New file.
8871         * lib/unictype/joininggroup_byname.gperf: New file.
8872
8873         Tests for module 'unictype/joininggroup-name'.
8874         * modules/unictype/joininggroup-name-tests: New file.
8875         * tests/unictype/test-joininggroup_name.c: New file.
8876
8877         New module 'unictype/joininggroup-name'.
8878         * modules/unictype/joininggroup-name: New file.
8879         * lib/unictype/joininggroup_name.c: New file.
8880         * lib/unictype/joininggroup_name.h: New file.
8881
8882         New module 'unictype/joiningtype-all'.
8883         * modules/unictype/joiningtype-all: New file.
8884
8885         Tests for module 'unictype/joiningtype-of'.
8886         * modules/unictype/joiningtype-of-tests: New file.
8887         * tests/unictype/test-joiningtype_of.c: New file.
8888         * tests/unictype/test-joiningtype_of.h: New file, automatically
8889         generated by gen-uni-tables.
8890
8891         New module 'unictype/joiningtype-of'.
8892         * modules/unictype/joiningtype-of: New file.
8893         * lib/unictype/joiningtype_of.c: New file.
8894         * lib/unictype/joiningtype_of.h: New file, automatically generated by
8895         gen-uni-tables.
8896
8897         Tests for module 'unictype/joiningtype-byname'.
8898         * modules/unictype/joiningtype-byname-tests: New file.
8899         * tests/unictype/test-joiningtype_byname.c: New file.
8900
8901         New module 'unictype/joiningtype-byname'.
8902         * modules/unictype/joiningtype-byname: New file.
8903         * lib/unictype/joiningtype_byname.c: New file.
8904
8905         Tests for module 'unictype/joiningtype-name'.
8906         * modules/unictype/joiningtype-name-tests: New file.
8907         * tests/unictype/test-joiningtype_name.c: New file.
8908
8909         New module 'unictype/joiningtype-name'.
8910         * modules/unictype/joiningtype-name: New file.
8911         * lib/unictype/joiningtype_name.c: New file.
8912
8913         unictype: Add support for Arabic shaping properties.
8914         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
8915         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
8916         declarations.
8917         (UC_JOINING_GROUP_*): New enumeration values.
8918         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
8919         declarations.
8920         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
8921         (unicode_joining_type): New variable.
8922         (UC_JOINING_GROUP_*): New enumeration values.
8923         (unicode_joining_group): New variable.
8924         (fill_arabicshaping, joining_type_as_c_identifier,
8925         output_joining_type_test, output_joining_type,
8926         joining_group_as_c_identifier, output_joining_group_test,
8927         output_joining_group): New functions.
8928         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
8929         fill_arabicshaping and output_joining_type_test, output_joining_type,
8930         output_joining_group_test, output_joining_group.
8931         Reported by Simon Josefsson.
8932
8933 2011-03-21  Jim Meyering  <meyering@redhat.com>
8934
8935         strftime: fix a bug in yesterday's change
8936         * lib/strftime.c (add): Accommodate width's initial value of -1.
8937         Otherwise, nstrftime would copy uninitialized data into
8938         the result buffer.
8939
8940 2011-03-21  Jim Meyering  <meyering@redhat.com>
8941
8942         tests: add strftime-tests module
8943         * tests/test-strftime.c: New file.
8944         * modules/strftime-tests: New module.
8945
8946 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
8947
8948         strftime: don't assume a byte count fits in 'int'
8949         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
8950         found this problem by static analysis, using gcc -Wstrict-overflow
8951         (GCC 4.5.2, x86-64).  This reported an optimization that depended
8952         on an integer overflow having undefined behavior, but it turns out
8953         that the argument is a size, which might not fit in 'int' anyway,
8954
8955 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
8956
8957         stdio: don't require ignore_value around fwrite
8958
8959         This patch works around libc bug 11959
8960         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
8961         Without this patch, applications must often write
8962         ignore_value (fwrite (...)) even though the ignore_value is
8963         not helpful here.  It's common to write many objects, using
8964         fwrite/printf/etc., and then use ferror to detect output error.
8965
8966         I considered making this patch optional, but decided against it,
8967         because libc is obviously being inconsistent here: there is no
8968         reason libc should insist that user code must inspect fwrite
8969         return's value without also insisting that it inspect printf's,
8970         putchar's, etc.  If user code wants to have a strict style where
8971         all these functions' values are checked (so that ferror need not
8972         be checked), we could add support for that style in a new gnulib
8973         module, but in the meantime it's better to be consistent and to
8974         support common usage.
8975
8976         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
8977         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
8978         that we are compiling in checking mode, and if not C++, and
8979         if not already wrapping fwrite for some other reason.
8980         (fwrite): #define to rpl_fwrite if the latter is defined.
8981
8982 2011-03-20  Bruno Haible  <bruno@clisp.org>
8983
8984         verror: Fix compilation error introduced on 2011-02-13.
8985         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
8986         instead of __attribute__.
8987         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8988
8989 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
8990             Bruno Haible  <bruno@clisp.org>
8991
8992         socklen: do not depend on sys_socket
8993         While trying to modify Emacs to use gnulib's socklen module,
8994         I discovered a circular dependency: socklen depends on sys_socket
8995         and vice versa.  Emacs can use socklen, but it does not need
8996         sys_socket because it has its own substitute for sys/socket.h.
8997         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
8998         gl_TYPE_SOCKLEN_T.
8999         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
9000         gl_PREREQ_SYS_H_SOCKET.
9001         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
9002         gl_PREREQ_SYS_H_SOCKET.
9003         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
9004         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
9005         * modules/socklen (Depends-on): Do not depend on sys_socket.
9006         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
9007
9008 2011-03-20  Jim Meyering  <meyering@redhat.com>
9009
9010         maint.mk: sort file names *after* new transformation
9011         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
9012         prefix would have led to an unwarranted failure in GNU parted.
9013         Sort after that transformation.
9014
9015 2011-03-19  Jim Meyering  <meyering@redhat.com>
9016
9017         maint.mk: fix po-file syntax-check rule
9018         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
9019         Patch by Bruno Haible.
9020
9021 2011-03-19  Bruno Haible  <bruno@clisp.org>
9022
9023         socklen: Update comment.
9024         * m4/socklen.m4: Update comment about platforms.
9025
9026 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
9027             Bruno Haible  <bruno@clisp.org>
9028
9029         inet_ntop, inet_pton: Simplify.
9030         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
9031         documented to provide socklen_t and we already depend on sys_socket.
9032         * modules/inet_pton (Depends-on): Likewise.
9033         * lib/arpa_inet.in.h: Adjust comment.
9034
9035 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
9036             Bruno Haible  <bruno@clisp.org>
9037
9038         netdb: Simplify.
9039         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
9040         documented to provide socklen_t and we already depend on sys_socket.
9041         * lib/netdb.in.h: Adjust comment.
9042
9043 2011-03-19  Bruno Haible  <bruno@clisp.org>
9044
9045         sys_socket, netdb: Document problem with socklen_t.
9046         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
9047         platforms.
9048         * doc/posix-headers/netdb.texi: Likewise.
9049
9050 2011-03-18  Eric Blake  <eblake@redhat.com>
9051
9052         maint.mk: let po check work in VPATH build
9053         * top/maint.mk (po_file): Allow cfg.mk override.
9054         (sc_po_check): Allow VPATH use.
9055         Reported by Jiri Denemark.
9056
9057 2011-03-16  Jim Meyering  <meyering@redhat.com>
9058
9059         maint.mk: allow fine-grained syntax-check exclusion via Make variables
9060         Before, you would have had to create one .x-sc_ file per rule in order
9061         to exempt offending files.  Now, you may instead use a Make variable --
9062         usually defined in cfg.mk -- whose name identifies the affected rule.
9063         * top/maint.mk (_sc_excl): Define.
9064         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
9065         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
9066
9067 2011-03-13  Bruno Haible  <bruno@clisp.org>
9068
9069         ignore-value tests: Avoid warnings.
9070         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
9071         empty for gcc < 3.4.
9072
9073 2011-03-13  Bruno Haible  <bruno@clisp.org>
9074
9075         passfd: Fix link error on Solaris.
9076         * modules/passfd (Description): Correct.
9077         (Depends-on): Add socketlib.
9078         (Link): New section.
9079         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
9080
9081 2011-03-13  Bruno Haible  <bruno@clisp.org>
9082
9083         passfd: Fix link error on AIX 5.2.
9084         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
9085
9086 2011-03-13  Bruno Haible  <bruno@clisp.org>
9087
9088         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
9089         * lib/sys_socket.in.h: Include <stddef.h>.
9090         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
9091         CMSG_FIRSTHDR. Remove unused variable.
9092
9093 2011-03-13  Bruno Haible  <bruno@clisp.org>
9094
9095         passfd: Fix compilation error on OpenBSD.
9096         * lib/passfd.c: Include <sys/uio.h>.
9097
9098 2011-03-13  Bruno Haible  <bruno@clisp.org>
9099
9100         passfd test: Fix warnings.
9101         * tests/test-passfd.c: Include <sys/wait.h>.
9102         (main): Fix typo.
9103
9104 2011-03-13  Bruno Haible  <bruno@clisp.org>
9105
9106         passfd module, part 4, tweaks.
9107         * tests/test-passfd.c: Reorder includes.
9108         (main): Fix perror and printf calls.
9109
9110 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
9111
9112         passfd module, part 4.
9113         * modules/passfd-tests: New file.
9114         * tests/test-passfd.c: New file.
9115
9116 2011-03-13  Jim Meyering  <meyering@redhat.com>
9117
9118         Makefile: rely on GNU make; derive syntax-check rule names
9119         Rather than requiring that each sc_ rule be listed as a dependent
9120         of "check", use features of GNU make to derive the list.
9121         * Makefile (syntax-check-rules): Define.
9122         (check): Depend on the new variable, not the hard-coded list.
9123
9124 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
9125             Bruno Haible  <bruno@clisp.org>
9126
9127         passfd module, part 3.
9128         * lib/passfd.h (recvfd): Add a flags argument.
9129         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
9130         (recvfd): Add a flags argument.
9131         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
9132         exists.
9133         * modules/passfd (Depends-on): Add cloexec.
9134         Suggested by Eric Blake.
9135
9136 2011-03-13  Bruno Haible  <bruno@clisp.org>
9137
9138         passfd module, part 2, tweaks.
9139         * modules/passfd (Files): Reorder.
9140         (Depends-on): Remove errno.
9141         (Include): Remove <sys/socket.h>, <sys/un.h>.
9142         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
9143         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
9144         specification header. Include <sys/socket.h> always. Don't include
9145         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
9146         (sendfd): Clarify that it sets errno when it fails.
9147         (recvfd): Fix specification.
9148
9149 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
9150
9151         passfd module, part 2.
9152         * modules/passfd: New file.
9153         * lib/passfd.h: New file.
9154         * lib/passfd.c: New file.
9155
9156 2011-03-12  Bruno Haible  <bruno@clisp.org>
9157
9158         wcswidth, mbswidth: Avoid integer overflow.
9159         * lib/wcswidth.c: Include <limits.h>.
9160         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
9161         * lib/mbswidth.c: Include <limits.h>.
9162         (mbsnwidth): Avoid 'int' overflow.
9163         Reported by Jim Meyering.
9164
9165 2011-03-12  Bruno Haible  <bruno@clisp.org>
9166
9167         futimens, utimensat: Avoid endless recursion on Solaris 10.
9168         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
9169         Solaris.
9170         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
9171         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
9172
9173 2011-03-11  Jim Meyering  <meyering@redhat.com>
9174
9175         maint.mk: relax a regexp to accommodate other formatting styles
9176         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
9177         between "ngettext" and the following "(".
9178
9179 2011-03-11  Pádraig Brady <P@draigBrady.com>
9180
9181         maint.mk: suppress a false positive warning
9182         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
9183         diagnostics are marked with ngettext.
9184
9185 2011-03-10  Eric Blake  <eblake@redhat.com>
9186
9187         wchar: add explicit dependencies, for Tru64
9188         * modules/mbmemcasecoll (Depends-on): Add wchar.
9189         * modules/mbtowc (Depends-on): Likewise.
9190         * modules/vasnprintf (Depends-on): Likewise.
9191         * modules/unistdio/u-printf-args (Depends-on): Likewise.
9192         * modules/wctomb (Depends-on): Likewise.
9193         Reported by Peter O'Gorman.
9194
9195 2011-03-08  Bruno Haible  <bruno@clisp.org>
9196
9197         passfd module, part 1, tweaks.
9198         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
9199         Improve indentation. Improve AC_MSG_CHECKING messages.
9200         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
9201         gl_SOCKET_FAMILIES.
9202
9203 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
9204
9205         passfd module, part 1.
9206         * m4/afunix.m4: New file.
9207         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
9208         sockets.
9209
9210 2011-03-08  Bruno Haible  <bruno@clisp.org>
9211
9212         regex-quote: New API.
9213         * lib/regex-quote.h: Include <stdbool.h>.
9214         (struct regex_quote_spec): New type.
9215         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
9216         New declarations.
9217         (regex_quote_length, regex_quote_copy, regex_quote): Take a
9218         'const struct regex_quote_spec *' argument.
9219         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
9220         (pcre_special): New constant.
9221         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
9222         New functions.
9223         (regex_quote_length, regex_quote_copy, regex_quote): Take a
9224         'const struct regex_quote_spec *' argument.
9225         * modules/regex-quote (Depends-on): Add stdbool.
9226         * tests/test-regex-quote.c (check): Update for new API. Add test for
9227         anchored results.
9228         * NEWS: Mention the API change.
9229         Reported by Reuben Thomas and Eric Blake.
9230
9231 2011-03-06  Bruno Haible  <bruno@clisp.org>
9232
9233         regex-quote: Fix creation of POSIX extended regular expressions.
9234         * lib/regex-quote.c (ere_special): Add grouping and alternation
9235         operators.
9236
9237 2011-03-05  Bruno Haible  <bruno@clisp.org>
9238
9239         doc: Improve doc regarding autopoint vs. gnulib.
9240         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
9241         disable autopoint while running autoreconf.
9242         Suggested by Ralf Wildenhues.
9243
9244 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9245
9246         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
9247         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
9248
9249 2011-03-03  Bruce Korb  <bkorb@gnu.org>
9250
9251         parse-duration: remove xalloc.h dependency
9252         * lib/parse-duration.c (parse_period): handle NULL return from
9253         strdup instead of calling xstrdup().
9254         * modules/parse-duration: remove "xalloc" dependency
9255
9256 2011-03-03  Matthew Booth  <mbooth@redhat.com>
9257
9258         bootstrap: honor m4_base when running aclocal
9259         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
9260
9261 2011-03-02  Jim Meyering  <meyering@redhat.com>
9262
9263         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
9264         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
9265         on request from Matt Booth.
9266
9267 2011-03-01  Eric Blake  <eblake@redhat.com>
9268
9269         test-link: work on Hurd
9270         * tests/test-link.h (test_link): Hurd rejects linking directories
9271         with EISDIR instead of the POSIX-mandated EPERM.
9272
9273 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
9274
9275         stdio: simplify by moving files to printf-posix, sigpipe
9276         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
9277         since this symbol is needed only if printf is replaced.
9278         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
9279         Require gl_ASM_SYMBOL_PREFIX.
9280         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
9281         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
9282         (Depends-on): Add 'raise'.
9283         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
9284         * modules/stdio (Files): Remove lib/stdio-write.c,
9285         m4/asm-underscore.m4.
9286         (Depends-on): Remove 'raise'.
9287
9288         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
9289         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
9290         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
9291         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
9292
9293 2011-02-28  Bruno Haible  <bruno@clisp.org>
9294
9295         localcharset: Assume ANSI C behaviour of free().
9296         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
9297         calling free().
9298         Suggested by Simon Josefsson <simon@josefsson.org>.
9299
9300 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
9301             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
9302             Bruno Haible  <bruno@clisp.org>  (tiny change)
9303
9304         On Cygwin, use /proc file system instead of win32 API.
9305         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
9306         Win32 file names.
9307         (DllMain): Simplify by removing Cygwin specific code.
9308         (find_shared_library_fullname): Use Linux specific implementation also
9309         for Cygwin.
9310         (get_shared_library_fullname): Update accordingly.
9311         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
9312         Win32 file names.
9313         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
9314         Cygwin specific code.
9315
9316 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
9317             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
9318
9319         Fix OpenMP flag detection for various Fortran compilers.
9320         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
9321         OpenMP-conditional compilation construct, to force compile
9322         failure with missing OpenMP flag.
9323         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
9324
9325 2011-02-25  Eric Blake  <eblake@redhat.com>
9326
9327         strstr: expand test coverage
9328         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
9329         compilation.
9330         * tests/test-memmem.c (main): Duplicate tests.
9331         * tests/test-strcasestr.c (main): Likewise.
9332         * tests/test-c-strcasestr.c (main): Likewise.
9333
9334 2011-02-25  Jim Meyering  <meyering@redhat.com>
9335
9336         maint.mk: detect missing-NL-at-EOF, too
9337         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
9338         it also detects when a file lacks a newline at EOF.
9339         (require_exactly_one_NL_at_EOF_): Renamed from
9340         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
9341         since people may well have .x-sc_... file names tied to the
9342         existing name.  Suggested by Eric Blake.
9343
9344 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
9345
9346         dirname: move m4/dos.m4 functionality into lib/dosname.h
9347
9348         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
9349         extracts symbols from it, puts them into config.h; but it's much
9350         easier to use the symbols directly.  filename.h already does this,
9351         but it disagrees with dos.m4 in some respects.  This patch
9352         introduces a different include file dosname.h that packages up
9353         dos.m4, and then later we can work on merging filename.h and
9354         dosname.h.  Applications that need only the easy-to-configure
9355         symbols should consider including dosname.h rather than dirname.h.
9356         * NEWS: Mention incompatible changes.
9357         * m4/dos.m4: Remove.
9358         * lib/dosname.h, modules/dosname: New files.
9359         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
9360         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
9361         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
9362         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
9363         Include dosname.h, not dirname.h.
9364         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
9365         Include dosname.h, for definitions of symbols like ISSLASH
9366         that used to be in config.h.
9367         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
9368         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
9369         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
9370         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
9371         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
9372         * modules/rmdir (Files): Likewise.
9373         * modules/stat (Files): Likewise.
9374         * modules/unlink (Files): Likewise.
9375         * modules/dirname-lgpl (Depends-on): Add dosname.
9376         * modules/lstat (Depends-on): Likewise.
9377         * modules/openat (Depends-on): Likewise.
9378         * modules/rmdir (Depends-on): Likewise.
9379         * modules/savewd (Depends-on): Likewise.
9380         * modules/stat (Depends-on): Likewise.
9381         * modules/unlink (Depends-on): Likewise.
9382         * modules/openat (Depends-on): Remove dirname-lgpl.
9383         * modules/savewd (Depends-on): Likewise.
9384         * tests/test-dirname.c: Do not use removed symbols like
9385         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
9386         the remaining symbols, e.g., ISSLASH ('\\').
9387
9388 2011-02-25  Eric Blake  <eblake@redhat.com>
9389
9390         strstr: revert patches that introduced bug and pessimization
9391         * lib/str-two-way.h: Add another reference.
9392         (two_way_short_needle, two_way_long_needle): Revert changes from
9393         2011-02-24; they pessimize search speed.
9394         (critical_factorization): Partially revert changes from
9395         2010-06-22; they violate the requirement that the left half of the
9396         needle be smaller than the period of the needle.
9397
9398 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
9399
9400         filenamecat: remove unnecessary dependency on dirname-lgpl
9401         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
9402         is no direct dependency, just an indirect one via filenamecat-lgpl.
9403
9404         remove: remove unnecessary use of m4/dos.m4
9405         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
9406         * modules/remove (FILES): Remove m4/dos.m4.
9407
9408         * lib/openat-proc.c: Don't include dirname.h; not needed.
9409
9410         backupfile: remove unnecessary use of m4/dos.m4
9411         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
9412         of its symbols are used by the backupfile code.  backupfile.c does
9413         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
9414         for the rare case of programs that want all their backup file
9415         names to live within 8+3 limits, and dos.m4 doesn't address that.
9416         * modules/backupfile (Files): Remove m4/dos.m4.
9417
9418 2011-02-24  Jim Meyering  <meyering@redhat.com>
9419
9420         strstr: fix a bug whereby strstr would mistakenly return NULL
9421         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
9422         in period calculation.
9423         (two_way_long_needle): Likewise.
9424         The original problem was reported by Mike Stump in
9425         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
9426         Ralf Wildenhues provided the short needle and haystack.
9427         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
9428         Add a more involved test to trigger the bug in two_way_long_needle.
9429
9430 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
9431
9432         gnulib-tool: remove use of bold display in help screen
9433         * gnulib-tool (func_usage): Do not use bold display anymore in the
9434         help screen.  That was just meant to be a temporary emphasis for a
9435         backward-incompatible change.
9436
9437 2011-02-23  Bruno Haible  <bruno@clisp.org>
9438
9439         Fix misindentation of preprocessor directives.
9440         * lib/argp-namefrob.h: Reindent preprocessor directives.
9441         * lib/getopt_int.h (struct _getopt_data): Likewise.
9442         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
9443         * lib/vasnprintf.c (decode_long_double): Likewise.
9444         * tests/test-argmatch.c: Insert blank lines, for clarity.
9445         * tests/test-exclude.c: Likewise.
9446
9447 2011-02-22  Bruno Haible  <bruno@clisp.org>
9448
9449         ioctl: Fix for MacOS X in 64-bit mode.
9450         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
9451         value.
9452         Suggested by Eric Blake.
9453         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
9454
9455 2011-02-22  Jim Meyering  <meyering@redhat.com>
9456
9457         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
9458         * Makefile (sc_cpp_indent_check): Don't limit the check to files
9459         in lib/.
9460
9461 2011-02-22  Eric Blake  <eblake@redhat.com>
9462
9463         maint: avoid any CDPATH issue
9464         * Makefile (sc_cpp_indent_check): Anchor cd argument.
9465
9466         maint: adjust cpp indentation for my modules, as well
9467         * Makefile (sc_cpp_indent_check): Add my name.
9468         * lib/fbufmode.c: Filter through cppi.
9469         * lib/fpurge.c: Likewise.
9470         * lib/freadable.c: Likewise.
9471         * lib/freading.c: Likewise.
9472         * lib/fwritable.c: Likewise.
9473         * lib/fwriting.c: Likewise.
9474         * lib/sigaction.c: Likewise.
9475
9476 2011-02-22  Jim Meyering  <meyering@redhat.com>
9477
9478         maint: adjust cpp indentation to reflect nesting depth
9479         I.e., in a block of code that begins with an unnested "#if",
9480         put one space between the "#" in column 1 and following token.
9481         For example,
9482         -#include <sys/vfs.h>
9483         +# include <sys/vfs.h>
9484         Do this only in .c files that are part of a module I maintain.
9485         * lib/linkat.c: Filter through cppi.
9486         * lib/nanosleep.c: Likewise.
9487         * lib/openat.c: Likewise.
9488         * lib/openat-die.c: Likewise.
9489         * lib/dup3.c: Likewise.
9490         * lib/fchownat.c: Likewise.
9491         * lib/flock.c: Likewise.
9492         * lib/fsync.c: Likewise.
9493         * lib/fts.c: Likewise.
9494         * lib/getpass.c: Likewise.
9495         * lib/gettimeofday.c: Likewise.
9496         * lib/userspec.c: Likewise.
9497         * Makefile (sc_cpp_indent_check): New rule, to check this.
9498
9499 2011-02-22  Bruno Haible  <bruno@clisp.org>
9500
9501         New module 'wctomb'.
9502         * lib/stdlib.in.h (wctomb): New declaration.
9503         * lib/wctomb.c: New file.
9504         * lib/wctomb-impl.h: New file.
9505         * m4/wctomb.m4: New file.
9506         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
9507         REPLACE_WCTOMB.
9508         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
9509         REPLACE_WCTOMB.
9510         * modules/wctomb: New file.
9511         * tests/test-stdlib-c++.cc: Test signature of wctomb.
9512         * doc/posix-functions/wctomb.texi: Mention the new module.
9513         * modules/wctob (Depends-on): Add wctomb.
9514
9515 2011-02-22  Bruno Haible  <bruno@clisp.org>
9516
9517         New module 'mbtowc'.
9518         * lib/stdlib.in.h (mbtowc): New declaration.
9519         * lib/mbtowc.c: New file.
9520         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
9521         * m4/mbtowc.m4: New file.
9522         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
9523         REPLACE_MBTOWC.
9524         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
9525         REPLACE_MBTOWC.
9526         * modules/mbtowc: New file.
9527         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
9528         * doc/posix-functions/mbtowc.texi: Mention the new module.
9529         * modules/btowc (Depends-on): Add mbtowc.
9530
9531 2011-02-22  Bruno Haible  <bruno@clisp.org>
9532
9533         wcrtomb: Add more tests for native Windows platforms.
9534         * tests/test-wcrtomb-w32-1.sh: New file.
9535         * tests/test-wcrtomb-w32-2.sh: New file.
9536         * tests/test-wcrtomb-w32-3.sh: New file.
9537         * tests/test-wcrtomb-w32-4.sh: New file.
9538         * tests/test-wcrtomb-w32-5.sh: New file.
9539         * tests/test-wcrtomb-w32.c: New file.
9540         * modules/wcrtomb-tests (Files): Add them.
9541         (Makefile.am): Arrange to run these tests.
9542         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
9543         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
9544
9545 2011-02-20  Bruno Haible  <bruno@clisp.org>
9546
9547         wcrtomb: Enhance test.
9548         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
9549
9550 2011-02-20  Bruno Haible  <bruno@clisp.org>
9551
9552         mbrtowc: Tiny optimization.
9553         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
9554
9555 2011-02-20  Jim Meyering  <meyering@redhat.com>
9556
9557         test-exclude.c: remove unmatched #endif
9558         * tests/test-exclude.c: Remove stray #endif, left over from
9559         the change of a week ago.
9560
9561 2011-02-19  Jim Meyering  <meyering@redhat.com>
9562
9563         git-version-gen: skip "-dirty" check when appropriate
9564         * build-aux/git-version-gen: Don't run any git commands when the
9565         version string comes from .tarball-version.  Prior to this, we
9566         would run git update-index --refresh even from a just-unpacked
9567         tarball directory, and that could affect a .git/ directory in a
9568         parent of the build directory.  Reported by Mike Frysinger.
9569
9570 2011-02-19  Bruno Haible  <bruno@clisp.org>
9571
9572         unictype/property-byname: Reduce the size of the 'data' segment.
9573         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
9574
9575 2011-02-19  Bruno Haible  <bruno@clisp.org>
9576
9577         unictype/scripts: Reduce the size of the 'data' segment.
9578         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
9579         '%pic'.
9580         * lib/unictype/scripts_byname.gperf: Regenerated.
9581
9582 2011-02-19  Bruno Haible  <bruno@clisp.org>
9583
9584         stdint: Update documentation.
9585         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
9586
9587 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
9588
9589         stdint: omit redundant check for wchar.h
9590         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
9591         always tests whether wchar.h exists, so remove the now-redundant test.
9592
9593 2011-02-18  Bruno Haible  <bruno@clisp.org>
9594
9595         stdint: Cut dependency to module 'wchar'.
9596         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
9597         include the necessary prerequisites.
9598         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
9599         * modules/stdint (Depends-on): Remove wchar.
9600         (Makefile.am): Substitute HAVE_WCHAR_H.
9601         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
9602
9603 2011-02-18  Eric Blake  <eblake@redhat.com>
9604
9605         longlong: skip, rather than fail, on cross-compilation
9606         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
9607         when cross-compiling; regression from 2011-02-16.
9608
9609 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
9610
9611         * NEWS: Mention 2011-02-08 change to stdlib.
9612
9613 2011-02-17  Bruno Haible  <bruno@clisp.org>
9614
9615         getloadavg: Add comments about platforms.
9616         * m4/getloadavg.m4: Add comment.
9617         * lib/getloadavg.c: Likewise.
9618
9619 2011-02-17  Bruno Haible  <bruno@clisp.org>
9620
9621         getloadavg: Fix link error on Solaris 2.6.
9622         * modules/getloadavg (Link): New section.
9623         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
9624         linking test-getloadavg.
9625         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
9626         getloadavg.
9627
9628 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
9629
9630         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
9631         It was 'int', but this doesn't match the IRIX 6.5 manual.
9632         Suggested by Bruno Haible in
9633         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
9634
9635 2011-02-17  Bruno Haible  <bruno@clisp.org>
9636
9637         havelib: Fix comments.
9638         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
9639         change.
9640
9641 2011-02-17  Bruno Haible  <bruno@clisp.org>
9642
9643         havelib: Update config.rpath.
9644         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
9645
9646 2011-02-17  Bruno Haible  <bruno@clisp.org>
9647
9648         getloadavg test: Add some plausibility checks.
9649         * tests/test-getloadavg.c (check_avg): Print a warning when the value
9650         is improbable.
9651
9652 2011-02-16  Eric Blake  <eblake@redhat.com>
9653
9654         maintainer-makefile: make syntax-check a no-op from tarballs
9655         * top/maint.mk (no-vc-detected): New rule.
9656         (local-checks-available): Use it to avoid hanging if someone tries
9657         'make syntax-check' from a tarball.  Also append to any non-syntax
9658         checks already defined in cfg.mk.
9659
9660 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
9661
9662         longlong: tune, particularly for common case of c99
9663
9664         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
9665         or running anything if c99, or if unsigned long long int does not
9666         work.  In either case, we know the answer without further tests.
9667         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
9668         it at most once, and use its results for both long long int and
9669         unsigned long long int.  This is more likely to be efficient in
9670         the common case where the program wants to check for both long
9671         long int and unsigned long long int.
9672         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
9673         since the answer is already known.
9674
9675 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
9676
9677         getloadavg: set errno
9678         * lib/getloadavg.c: Set errno when returning -1.  If no other
9679         error number looks appropriate, set it to ENOSYS if the getloadavg
9680         looks like it can't possibly ever work, ENOTSUP otherwise.
9681         Suggested by Bruno Haible in
9682         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
9683
9684         getloadavg: trim unused parts and speed up 'configure'
9685         * NEWS: Document this.
9686         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
9687         always compiled if getloadavg is absent.
9688         Move test code to ...
9689         * tests/test-getloadavg.c: New file, containing previous
9690         contents of test from lib/getloadavg.c.  It also contains
9691         suggestions by Bruno Haible in
9692         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
9693         * modules/getloadavg-tests: New file.
9694         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
9695         Do tests in the same order as they're needed for getloadavg.c.
9696         Omit setgid-related tests that generate symbols KMEM_GROUP,
9697         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
9698         Do only the tests that are needed to see whether the system has
9699         getloadavg, moving the other tests into ...
9700         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
9701         NLIST_NAME_UNION; nobody should be using it.  Do not define
9702         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
9703         relevant, as the user of this module shouldn't care how getloadavg
9704         is implemented.
9705
9706         getloadavg: omit unused var
9707         * lib/getloadavg.c (getloadavg): Omit unused local variable.
9708
9709 2011-02-15  Jim Meyering  <meyering@redhat.com>
9710
9711         doc: update users.txt
9712         * users.txt: Update iwhd's URL.
9713
9714 2011-02-13  Bruno Haible  <bruno@clisp.org>
9715
9716         Consistent macro naming for macros that use GCC __attribute__.
9717         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
9718         _ATTRIBUTE_NONNULL_.
9719         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
9720         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
9721         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
9722         ATTRIBUTE_DEPRECATED.
9723         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
9724         ATTRIBUTE_NORETURN.
9725         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
9726         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
9727         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
9728         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
9729         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
9730         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
9731         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
9732         ATTRIBUTE_SENTINEL.
9733         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
9734         ATTRIBUTE_RETURN_CHECK.
9735         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
9736         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
9737         ATTRIBUTE_NORETURN.
9738         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
9739         Reported by Paul Eggert.
9740
9741 2011-02-13  Bruno Haible  <bruno@clisp.org>
9742
9743         Don't interfere with a program's definition of __attribute__.
9744         * lib/argp.h (__attribute__): Remove definition.
9745         (_GL_ATTRIBUTE_FORMAT): New macro.
9746         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
9747         * lib/argp-fmtstream.h (__attribute__): Remove definition.
9748         (_GL_ATTRIBUTE_FORMAT): New macro.
9749         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
9750         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
9751         GCC 3 or newer.
9752         * lib/error.h (__attribute__): Remove definition.
9753         (_GL_ATTRIBUTE_FORMAT): New macro.
9754         (error, error_at_line): Use it.
9755         * lib/hash.h (__attribute__): Remove definition.
9756         (ATTRIBUTE_WUR): Update definition. Define always.
9757         * lib/openat.h (__attribute__): Remove definition.
9758         (ATTRIBUTE_NORETURN): Update definition. Define always.
9759         * lib/sigpipe-die.h (__attribute__): Remove definition.
9760         (ATTRIBUTE_NORETURN): Update definition. Define always.
9761         * lib/vasnprintf.h (__attribute__): Remove definition.
9762         (_GL_ATTRIBUTE_FORMAT): New macro.
9763         (asnprintf, vasnprintf): Use it.
9764         * lib/xalloc.h (__attribute__): Remove definition.
9765         (ATTRIBUTE_NORETURN): Update definition. Define always.
9766         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
9767         * lib/xmemdup0.h (__attribute__): Remove definition.
9768         (ATTRIBUTE_NORETURN): Update definition. Define always.
9769         * lib/xprintf.h (__attribute__): Remove definition.
9770         (_GL_ATTRIBUTE_FORMAT): New macro.
9771         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
9772         * lib/xstrtol.h (__attribute__): Remove definition.
9773         (ATTRIBUTE_NORETURN): Update definition. Define always.
9774         * lib/xvasprintf.h (__attribute__): Remove definition.
9775         (_GL_ATTRIBUTE_FORMAT): New macro.
9776         (xasprintf, xvasprintf): Use it.
9777         * tests/test-argmatch.c (__attribute__): Remove definition.
9778         (ATTRIBUTE_NORETURN): Update definition. Define always.
9779         * tests/test-exclude.c (__attribute__): Remove definition.
9780         (ATTRIBUTE_NORETURN): Update definition. Define always.
9781         Reported by Paul Eggert.
9782
9783 2011-02-13  Bruno Haible  <bruno@clisp.org>
9784
9785         mbrtowc: Add more tests for native Windows platforms.
9786         * tests/test-mbrtowc-w32-1.sh: New file.
9787         * tests/test-mbrtowc-w32-2.sh: New file.
9788         * tests/test-mbrtowc-w32-3.sh: New file.
9789         * tests/test-mbrtowc-w32-4.sh: New file.
9790         * tests/test-mbrtowc-w32-5.sh: New file.
9791         * tests/test-mbrtowc-w32.c: New file.
9792         * modules/mbrtowc-tests (Files): Add them.
9793         (Makefile.am): Arrange to run these tests.
9794         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
9795         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
9796
9797 2011-02-13  Bruno Haible  <bruno@clisp.org>
9798
9799         mbrtowc: Work around native Windows bug.
9800         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
9801         guess when no suitable locale for testing was found.
9802         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
9803
9804 2011-02-13  Bruno Haible  <bruno@clisp.org>
9805
9806         mbsinit: Work around mingw bug.
9807         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
9808         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
9809         Windows.
9810         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
9811
9812 2011-02-13  Bruno Haible  <bruno@clisp.org>
9813
9814         mbsinit: Don't crash for a NULL argument.
9815         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
9816         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
9817
9818 2011-02-13  Bruno Haible  <bruno@clisp.org>
9819
9820         Don't interfere with a program's definition of __attribute__.
9821         * lib/stdio.in.h (__attribute__): Remove definition.
9822         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
9823         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
9824         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
9825         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
9826         * lib/string.in.h (__attribute__): Remove definition.
9827         Reported by Paul Eggert.
9828
9829 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
9830
9831         stdlib: don't get in the way of non-GCC __attribute__
9832         See thread starting at
9833         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
9834         Revert previous stdlib change, installing the following instead:
9835         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
9836         to get in the way of a non-GCC compiler that supports __attribute__.
9837         (_GL_ATTRIBUTE_RETURN): New macro.
9838         (_Exit): Use it instead of __attribute__.
9839
9840 2011-02-12  Bruno Haible  <bruno@clisp.org>
9841
9842         quotearg test: Avoid test failure on mingw.
9843         * tests/test-quotearg.sh: Convert the locale identifier from native
9844         Windows syntax to Unix syntax.
9845
9846 2011-02-12  Bruno Haible  <bruno@clisp.org>
9847
9848         setlocale: Prefer gnulib's override over libintl's override.
9849         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
9850         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
9851         GNULIB_defined_setlocale is set.
9852
9853 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
9854
9855         stdlib: support non-GCC __attribute__
9856
9857         Fix a serious and tricky problem encountered when attempting to
9858         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
9859         5.5, but it crashed due to memory corruption on Solaris 10 with
9860         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
9861         bits that are otherwise zero.  This tagging is optional inside
9862         Emacs but is preferred and is used when __attribute__ ((__aligned
9863         (8))) works, as it does with both recent-enough GCC and with Sun C
9864         5.11.  However, Sun C 5.11 is not GCC and does not #define
9865         __GNUC__ and __GNUC_MINOR__.
9866
9867         When I added the getloadavg module to Emacs, it brought in
9868         stdlib.in.h, which contained this fragment:
9869
9870            #ifndef __attribute__
9871            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
9872            #  define __attribute__(Spec)   /* empty */
9873            # endif
9874            #endif
9875
9876         When files that include <stdlib.h> were compiled with Sun C 5.11,
9877         the above code disabled __attribute__ ((__aligned (8))), which
9878         caused variables to not be properly aligned, which eventually led
9879         to the pointer corruption mentioned above.  (This was a bit hard
9880         to diagnose, unfortunately.)
9881
9882         Several "#define __attribute__(X) /* empty */" code snippets need
9883         to be eradicated from Gnulib to work with non-GCC compilers that
9884         support __attribute__.  The Autoconf way to do this is to test for
9885         each kind of attribute that we want support for, and selectively
9886         enable that in source code.
9887
9888         Fix this problem just for stdlib.h, by adding a test for the
9889         __noreturn__ attribute, and change stdlib.in.h to use that test
9890         when needed.  This technique can be easily generalized to the
9891         other *.in.h files and attributes, and a similar technique can be
9892         used for *.h and *.c files.  This patch is enough to solve the
9893         problem for Emacs + getloadavg, and I thought I'd publish it for
9894         feedback before undertaking further, similar fixes in other
9895         modules.
9896
9897         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
9898         because it's not needed for stdlib.h.  It merely substitutes the
9899         value directly into stdlib.h.  We may well need to #define it, or
9900         similar symbols, for other modules, but it's nice to also have an
9901         option to not #define it for applications like Emacs that do not
9902         need it.
9903
9904         * lib/stdlib.in.h (__attribute__): Do not #define.
9905         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
9906         be defined only if the _Exit module is also used.
9907         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
9908         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
9909         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
9910         platforms.
9911         * modules/_Exit (Files): Add m4/attribute.m4.
9912         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
9913         * m4/attribute.m4: New file.
9914
9915 2011-02-12  Bruno Haible  <bruno@clisp.org>
9916
9917         wcsrtombs: Work around bug on native Windows.
9918         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
9919         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
9920         instead of len.
9921         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
9922
9923 2011-02-12  Bruno Haible  <bruno@clisp.org>
9924
9925         mbsrtowcs: Work around bug on native Windows.
9926         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
9927         against mingw bug.
9928         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
9929
9930 2011-02-12  Bruno Haible  <bruno@clisp.org>
9931
9932         Avoid setlocale bugs in tests.
9933         * modules/btowc (Dependencies): Add setlocale.
9934         * modules/c-strcase (Dependencies): Likewise.
9935         * modules/mbmemcasecmp (Dependencies): Likewise.
9936         * modules/mbmemcasecoll (Dependencies): Likewise.
9937         * modules/mbrtowc (Dependencies): Likewise.
9938         * modules/mbscasecmp (Dependencies): Likewise.
9939         * modules/mbscasestr (Dependencies): Likewise.
9940         * modules/mbschr (Dependencies): Likewise.
9941         * modules/mbscspn (Dependencies): Likewise.
9942         * modules/mbsinit (Dependencies): Likewise.
9943         * modules/mbsncasecmp (Dependencies): Likewise.
9944         * modules/mbsnrtowcs (Dependencies): Likewise.
9945         * modules/mbspbrk (Dependencies): Likewise.
9946         * modules/mbspcasecmp (Dependencies): Likewise.
9947         * modules/mbsrchr (Dependencies): Likewise.
9948         * modules/mbsrtowcs (Dependencies): Likewise.
9949         * modules/mbsspn (Dependencies): Likewise.
9950         * modules/mbsstr (Dependencies): Likewise.
9951         * modules/nl_langinfo (Dependencies): Likewise.
9952         * modules/quotearg (Dependencies): Likewise.
9953         * modules/unicase/locale-language (Dependencies): Likewise.
9954         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
9955         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
9956         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
9957         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
9958         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
9959         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
9960         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
9961         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
9962         * modules/vasnprintf-posix (Dependencies): Likewise.
9963         * modules/wcrtomb (Dependencies): Likewise.
9964         * modules/wcsnrtombs (Dependencies): Likewise.
9965         * modules/wcsrtombs (Dependencies): Likewise.
9966
9967 2011-02-12  Bruno Haible  <bruno@clisp.org>
9968
9969         setlocale: Workaround native Windows bug.
9970         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
9971         succeeds but sets LC_CTYPE to "C", report a failure.
9972         * tests/test-setlocale2.sh: New file.
9973         * tests/test-setlocale2.c: New file.
9974         * modules/setlocale-tests (Files): Add the new files.
9975         (Makefile.am): Enable test-setlocale2.sh test.
9976         * doc/posix-functions/setlocale.texi: Mention workaround.
9977
9978 2011-02-11  Bruno Haible  <bruno@clisp.org>
9979
9980         Tests for module 'setlocale'.
9981         * modules/setlocale-tests: New file.
9982         * tests/test-setlocale1.sh: New file.
9983         * tests/test-setlocale1.c: New file.
9984
9985         New module 'setlocale'.
9986         * lib/locale.in.h (setlocale): New declaration.
9987         * lib/setlocale.c: New file, based on
9988         gettext/gettext-runtime/intl/setlocale.c.
9989         * m4/setlocale.m4: New file.
9990         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
9991         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
9992         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
9993         REPLACE_SETLOCALE.
9994         * modules/setlocale: New file.
9995         * tests/test-locale-c++.cc: Test the declaration of setlocale.
9996         * doc/posix-functions/setlocale.texi: Mention the new module.
9997
9998 2011-02-11  Bruno Haible  <bruno@clisp.org>
9999
10000         Prepare for locale dependent tests on mingw.
10001         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
10002         because it has the wrong locale encoding.
10003         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
10004         French_France.1252 instead of "fr".
10005         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
10006         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
10007         because it has the wrong locale encoding.
10008         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
10009         native Windows, try Turkish_Turkey.65001.
10010         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
10011         Chinese_China.54936.
10012
10013         Prepare for locale dependent tests on mingw.
10014         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
10015         differently.
10016         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
10017         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
10018         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
10019         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
10020
10021 2011-02-11  Eric Blake  <eblake@redhat.com>
10022
10023         strptime: avoid compiler warnings
10024         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
10025         compiler warnings about dead code.
10026         Reported by Daniel P. Berrange.
10027
10028 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
10029
10030         doc: update users.txt
10031         * users.txt: Add rcs.
10032
10033 2011-02-10  John W. Eaton  <jwe@gnu.org>
10034
10035         doc: update users.txt
10036         * users.txt: Add octave.
10037
10038 2011-02-10  Jim Meyering  <meyering@redhat.com>
10039
10040         doc: update users.txt
10041         * users.txt: Add iwhd.
10042
10043 2011-02-09  Bruno Haible  <bruno@clisp.org>
10044
10045         gnulib-tool: Make copyright notice adjustment more robust.
10046         * gnulib-tool (func_import): In sed_transform_main_lib_file,
10047         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
10048         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
10049         License".
10050         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
10051
10052 2011-02-06  Bruno Haible  <bruno@clisp.org>
10053
10054         New module 'towctrans'.
10055         * modules/towctrans: New file.
10056         * lib/wctype.in.h (towctrans): New declaration.
10057         * lib/towctrans.c: New file.
10058         * lib/towctrans-impl.h: New file.
10059         * m4/towctrans.m4: New file.
10060         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
10061         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
10062         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
10063         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
10064         * doc/posix-functions/towctrans.texi: Mention the new module.
10065
10066 2011-02-06  Bruno Haible  <bruno@clisp.org>
10067
10068         New module 'wctrans'.
10069         * modules/wctrans: New file.
10070         * lib/wctype.in.h (wctrans): New declaration.
10071         * lib/wctrans.c: New file.
10072         * lib/wctrans-impl.h: New file.
10073         * m4/wctrans.m4: New file.
10074         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
10075         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
10076         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
10077         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
10078         * doc/posix-functions/wctrans.texi: Mention the new module.
10079
10080 2011-02-06  Bruno Haible  <bruno@clisp.org>
10081
10082         New module 'iswctype'.
10083         * modules/iswctype: New file.
10084         * lib/wctype.in.h (iswctype): New declaration.
10085         * lib/iswctype.c: New file.
10086         * lib/iswctype-impl.h: New file.
10087         * m4/iswctype.m4: New file.
10088         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
10089         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
10090         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
10091         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
10092         * doc/posix-functions/iswctype.texi: Mention the new module and the
10093         HP-UX 11.00 problem.
10094
10095 2011-02-06  Bruno Haible  <bruno@clisp.org>
10096
10097         New module 'wctype'.
10098         * modules/wctype: Change to represent the wctype() substitute.
10099         * lib/wctype.in.h (wctype): New declaration.
10100         * lib/wctype.c: New file.
10101         * lib/wctype-impl.h: New file.
10102         * m4/wctype.m4: New file.
10103         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
10104         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
10105         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
10106         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
10107         * doc/posix-functions/wctype.texi: Mention the new module and the
10108         HP-UX 11.00 problem.
10109
10110 2011-02-06  Bruno Haible  <bruno@clisp.org>
10111
10112         wctype-h: Ensure wctype_t and wctrans_t are defined.
10113         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
10114         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
10115         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
10116         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
10117         HAVE_WCTRANS_T.
10118         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
10119
10120 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
10121
10122         flock: fix license typo
10123
10124         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
10125         omitted.
10126
10127 2011-02-08  Bruno Haible  <bruno@clisp.org>
10128
10129         Split large sed scripts, for HP-UX sed.
10130         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
10131         to avoid HP-UX limit of 99 commands, in the near future.
10132         * modules/stdlib (Makefile.am): Likewise.
10133         * modules/unistd (Makefile.am): Likewise.
10134         * modules/wchar (Makefile.am): Likewise.
10135         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
10136         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
10137         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
10138
10139 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
10140             Bruno Haible  <bruno@clisp.org>
10141
10142         stdlib: improve random_r modularization
10143         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
10144         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
10145         you also need the random_r module to get this material right.
10146         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
10147         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
10148         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
10149
10150 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
10151
10152         stdlib: don't depend on stdint
10153         * lib/stdlib.in.h: Don't include <stdint.h> merely because
10154         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
10155         be independent of whether stdint.h is needed.
10156         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
10157         here, instead of ...
10158         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
10159         struct random_data should be using the random_r module, not just
10160         the stdlib module (which wouldn't make sense: what package needs
10161         just struct random_data without also needing random_r?).
10162         * modules/stdlib (Depends-on): Remove stdint.
10163
10164         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
10165         See the thread rooted at
10166         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
10167         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
10168         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
10169         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
10170         __VMS)); previously it was always included (via fcntl--.h).
10171         (getloadavg): Do not use c_strtod.  Instead, approximate it by
10172         hand; this is good enough for load averages.  Also, do not use
10173         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
10174         flags directly if available and don't bother otherwise.  (Packages
10175         that need the extra reliability should use the modules that define
10176         these flags on older platforms that lack them.)
10177         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
10178         fcntl-safer.
10179
10180 2011-02-08  Jim Meyering  <meyering@redhat.com>
10181
10182         di-set.h, ino-map.h: add multiple-inclusion guard
10183         Technically, the guard is required only for ino-map.h, due to its
10184         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
10185         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
10186         * lib/ino-map.h: Likewise.
10187
10188 2011-02-06  Bruno Haible  <bruno@clisp.org>
10189
10190         iswblank: Ensure declaration on glibc systems.
10191         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
10192         * modules/iswblank (Dependencies): Add 'extensions'.
10193         * doc/posix-functions/iswblank.texi: Document the glibc problem.
10194
10195 2011-02-06  Bruno Haible  <bruno@clisp.org>
10196
10197         New module 'iswblank'.
10198         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
10199         * modules/iswblank: New file.
10200         * modules/wctype-h (Files): Remove lib/iswblank.c.
10201         (Makefile.am): Substitute GNULIB_ISWBLANK.
10202         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
10203         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
10204         (gl_WCTYPE_H_DEFAULTS): New macro.
10205         (gl_WCTYPE_H): Require it. Remove iswblank related code.
10206         * modules/iswblank-tests: New file.
10207         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
10208         * tests/test-wctype-h.c (main): Remove iswblank tests.
10209         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
10210         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
10211         of 'wctype-h'.
10212         * NEWS: Mention the change.
10213         * modules/mbchar (Depends-on): Add iswblank.
10214
10215 2011-02-08  Bruno Haible  <bruno@clisp.org>
10216
10217         di-set tests: Refactor.
10218         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
10219         unnecessary includes.
10220         (ASSERT): Remove macro.
10221         (main): Make C90 compliant by avoiding variable declaration after
10222         statement.
10223         * modules/di-set-tests (Files): Add tests/macros.h.
10224
10225 2011-02-08  Bruno Haible  <bruno@clisp.org>
10226
10227         ino-map tests: Refactor.
10228         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
10229         unnecessary includes.
10230         (ASSERT): Remove macro.
10231         (main): Make C90 compliant by avoiding variable declaration after
10232         statement.
10233         * modules/ino-map-tests (Files): Add tests/macros.h.
10234
10235 2011-02-08  Jim Meyering  <meyering@redhat.com>
10236
10237         di-set: add "const" to a cast
10238         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
10239         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
10240
10241 2011-02-06  Bruno Haible  <bruno@clisp.org>
10242
10243         Rename module 'wctype' to 'wctype-h'.
10244         * modules/wctype-h: Renamed from modules/wctype.
10245         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
10246         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
10247         (Files, Depends-on, Makefile.am): Update.
10248         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
10249         (Files, Makefile.am): Update.
10250         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
10251         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
10252         * doc/posix-headers/wctype.texi: Update.
10253         * doc/posix-functions/iswalnum.texi: Update.
10254         * doc/posix-functions/iswalpha.texi: Update.
10255         * doc/posix-functions/iswblank.texi: Update.
10256         * doc/posix-functions/iswcntrl.texi: Update.
10257         * doc/posix-functions/iswdigit.texi: Update.
10258         * doc/posix-functions/iswgraph.texi: Update.
10259         * doc/posix-functions/iswlower.texi: Update.
10260         * doc/posix-functions/iswprint.texi: Update.
10261         * doc/posix-functions/iswpunct.texi: Update.
10262         * doc/posix-functions/iswspace.texi: Update.
10263         * doc/posix-functions/iswupper.texi: Update.
10264         * doc/posix-functions/iswxdigit.texi: Update.
10265         * doc/posix-functions/towlower.texi: Update.
10266         * doc/posix-functions/towupper.texi: Update.
10267         * NEWS: Mention the change.
10268         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
10269         * modules/mbchar (Dependencies): Likewise.
10270         * modules/mbswidth (Dependencies): Likewise.
10271         * modules/quotearg (Dependencies): Likewise.
10272         * modules/regex (Dependencies): Likewise.
10273         * modules/wcscasecmp (Dependencies): Likewise.
10274         * modules/wcsncasecmp (Dependencies): Likewise.
10275         * modules/wcwidth (Dependencies): Likewise.
10276
10277 2011-02-06  Bruno Haible  <bruno@clisp.org>
10278
10279         New module 'wcswidth'.
10280         * modules/wcswidth: New file.
10281         * lib/wchar.in.h (wcswidth): New declaration.
10282         * lib/wcswidth.c: New file.
10283         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
10284         * m4/wcswidth.m4: New file.
10285         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
10286         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
10287         REPLACE_WCSWIDTH.
10288         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
10289         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
10290         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
10291         * doc/posix-functions/wcswidth.texi: Mention the new module.
10292
10293 2011-02-06  Bruno Haible  <bruno@clisp.org>
10294
10295         New module 'wcstok'.
10296         * modules/wcstok: New file.
10297         * lib/wchar.in.h (wcstok): New declaration.
10298         * lib/wcstok.c: New file.
10299         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
10300         * m4/wcstok.m4: New file.
10301         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
10302         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
10303         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
10304         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
10305         * doc/posix-functions/wcstok.texi: Mention the new module.
10306
10307 2011-02-06  Bruno Haible  <bruno@clisp.org>
10308
10309         New module 'wcsstr'.
10310         * modules/wcsstr: New file.
10311         * lib/wchar.in.h (wcsstr): New declaration.
10312         * lib/wcsstr.c: New file.
10313         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
10314         * m4/wcsstr.m4: New file.
10315         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
10316         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
10317         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
10318         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
10319         * doc/posix-functions/wcsstr.texi: Mention the new module.
10320
10321 2011-02-06  Bruno Haible  <bruno@clisp.org>
10322
10323         New module 'wcspbrk'.
10324         * modules/wcspbrk: New file.
10325         * lib/wchar.in.h (wcspbrk): New declaration.
10326         * lib/wcspbrk.c: New file.
10327         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
10328         * m4/wcspbrk.m4: New file.
10329         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
10330         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
10331         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
10332         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
10333         * doc/posix-functions/wcspbrk.texi: Mention the new module.
10334
10335 2011-02-06  Bruno Haible  <bruno@clisp.org>
10336
10337         New module 'wcsspn'.
10338         * modules/wcsspn: New file.
10339         * lib/wchar.in.h (wcsspn): New declaration.
10340         * lib/wcsspn.c: New file.
10341         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
10342         * m4/wcsspn.m4: New file.
10343         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
10344         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
10345         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
10346         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
10347         * doc/posix-functions/wcsspn.texi: Mention the new module.
10348
10349 2011-02-06  Bruno Haible  <bruno@clisp.org>
10350
10351         New module 'wcscspn'.
10352         * modules/wcscspn: New file.
10353         * lib/wchar.in.h (wcscspn): New declaration.
10354         * lib/wcscspn.c: New file.
10355         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
10356         * m4/wcscspn.m4: New file.
10357         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
10358         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
10359         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
10360         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
10361         * doc/posix-functions/wcscspn.texi: Mention the new module.
10362
10363 2011-02-06  Bruno Haible  <bruno@clisp.org>
10364
10365         New module 'wcsrchr'.
10366         * modules/wcsrchr: New file.
10367         * lib/wchar.in.h (wcsrchr): New declaration.
10368         * lib/wcsrchr.c: New file.
10369         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
10370         * m4/wcsrchr.m4: New file.
10371         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
10372         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
10373         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
10374         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
10375         * doc/posix-functions/wcsrchr.texi: Mention the new module.
10376
10377 2011-02-06  Bruno Haible  <bruno@clisp.org>
10378
10379         New module 'wcschr'.
10380         * modules/wcschr: New file.
10381         * lib/wchar.in.h (wcschr): New declaration.
10382         * lib/wcschr.c: New file.
10383         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
10384         * m4/wcschr.m4: New file.
10385         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
10386         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
10387         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
10388         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
10389         * doc/posix-functions/wcschr.texi: Mention the new module.
10390
10391 2011-02-06  Bruno Haible  <bruno@clisp.org>
10392
10393         New module 'wcsdup'.
10394         * modules/wcsdup: New file.
10395         * lib/wchar.in.h (wcsdup): New declaration.
10396         * lib/wcsdup.c: New file.
10397         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
10398         * m4/wcsdup.m4: New file.
10399         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
10400         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
10401         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
10402         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
10403         * doc/posix-functions/wcsdup.texi: Mention the new module.
10404
10405 2011-02-06  Bruno Haible  <bruno@clisp.org>
10406
10407         New module 'wcsxfrm'.
10408         * modules/wcsxfrm: New file.
10409         * lib/wchar.in.h (wcsxfrm): New declaration.
10410         * lib/wcsxfrm.c: New file.
10411         * lib/wcsxfrm-impl.h: New file.
10412         * m4/wcsxfrm.m4: New file.
10413         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
10414         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
10415         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
10416         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
10417         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
10418
10419 2011-02-06  Bruno Haible  <bruno@clisp.org>
10420
10421         New module 'wcscoll'.
10422         * modules/wcscoll: New file.
10423         * lib/wchar.in.h (wcscoll): New declaration.
10424         * lib/wcscoll.c: New file.
10425         * lib/wcscoll-impl.h: New file.
10426         * m4/wcscoll.m4: New file.
10427         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
10428         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
10429         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
10430         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
10431         * doc/posix-functions/wcscoll.texi: Mention the new module.
10432
10433 2011-02-06  Bruno Haible  <bruno@clisp.org>
10434
10435         New module 'wcsncasecmp'.
10436         * modules/wcsncasecmp: New file.
10437         * lib/wchar.in.h (wcsncasecmp): New declaration.
10438         * lib/wcsncasecmp.c: New file.
10439         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
10440         * m4/wcsncasecmp.m4: New file.
10441         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
10442         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
10443         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
10444         HAVE_WCSNCASECMP.
10445         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
10446         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
10447
10448 2011-02-06  Bruno Haible  <bruno@clisp.org>
10449
10450         New module 'wcscasecmp'.
10451         * modules/wcscasecmp: New file.
10452         * lib/wchar.in.h (wcscasecmp): New declaration.
10453         * lib/wcscasecmp.c: New file.
10454         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
10455         * m4/wcscasecmp.m4: New file.
10456         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
10457         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
10458         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
10459         HAVE_WCSCASECMP.
10460         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
10461         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
10462
10463 2011-02-05  Bruno Haible  <bruno@clisp.org>
10464
10465         New module 'wcsncmp'.
10466         * modules/wcsncmp: New file.
10467         * lib/wchar.in.h (wcsncmp): New declaration.
10468         * lib/wcsncmp.c: New file.
10469         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
10470         * m4/wcsncmp.m4: New file.
10471         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
10472         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
10473         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
10474         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
10475         * doc/posix-functions/wcsncmp.texi: Mention the new module.
10476
10477 2011-02-05  Bruno Haible  <bruno@clisp.org>
10478
10479         New module 'wcscmp'.
10480         * modules/wcscmp: New file.
10481         * lib/wchar.in.h (wcscmp): New declaration.
10482         * lib/wcscmp.c: New file.
10483         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
10484         * m4/wcscmp.m4: New file.
10485         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
10486         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
10487         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
10488         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
10489         * doc/posix-functions/wcscmp.texi: Mention the new module.
10490
10491 2011-02-05  Bruno Haible  <bruno@clisp.org>
10492
10493         New module 'wcsncat'.
10494         * modules/wcsncat: New file.
10495         * lib/wchar.in.h (wcsncat): New declaration.
10496         * lib/wcsncat.c: New file.
10497         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
10498         * m4/wcsncat.m4: New file.
10499         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
10500         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
10501         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
10502         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
10503         * doc/posix-functions/wcsncat.texi: Mention the new module.
10504
10505 2011-02-05  Bruno Haible  <bruno@clisp.org>
10506
10507         New module 'wcscat'.
10508         * modules/wcscat: New file.
10509         * lib/wchar.in.h (wcscat): New declaration.
10510         * lib/wcscat.c: New file.
10511         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
10512         * m4/wcscat.m4: New file.
10513         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
10514         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
10515         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
10516         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
10517         * doc/posix-functions/wcscat.texi: Mention the new module.
10518
10519 2011-02-05  Bruno Haible  <bruno@clisp.org>
10520
10521         New module 'wcpncpy'.
10522         * modules/wcpncpy: New file.
10523         * lib/wchar.in.h (wcpncpy): New declaration.
10524         * lib/wcpncpy.c: New file.
10525         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
10526         * m4/wcpncpy.m4: New file.
10527         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
10528         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
10529         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
10530         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
10531         * doc/posix-functions/wcpncpy.texi: Mention the new module.
10532
10533 2011-02-05  Bruno Haible  <bruno@clisp.org>
10534
10535         New module 'wcsncpy'.
10536         * modules/wcsncpy: New file.
10537         * lib/wchar.in.h (wcsncpy): New declaration.
10538         * lib/wcsncpy.c: New file.
10539         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
10540         * m4/wcsncpy.m4: New file.
10541         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
10542         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
10543         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
10544         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
10545         * doc/posix-functions/wcsncpy.texi: Mention the new module.
10546
10547 2011-02-05  Bruno Haible  <bruno@clisp.org>
10548
10549         New module 'wcpcpy'.
10550         * modules/wcpcpy: New file.
10551         * lib/wchar.in.h (wcpcpy): New declaration.
10552         * lib/wcpcpy.c: New file.
10553         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
10554         * m4/wcpcpy.m4: New file.
10555         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
10556         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
10557         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
10558         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
10559         * doc/posix-functions/wcpcpy.texi: Mention the new module.
10560
10561 2011-02-05  Bruno Haible  <bruno@clisp.org>
10562
10563         New module 'wcscpy'.
10564         * modules/wcscpy: New file.
10565         * lib/wchar.in.h (wcscpy): New declaration.
10566         * lib/wcscpy.c: New file.
10567         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
10568         * m4/wcscpy.m4: New file.
10569         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
10570         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
10571         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
10572         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
10573         * doc/posix-functions/wcscpy.texi: Mention the new module.
10574
10575 2011-02-05  Bruno Haible  <bruno@clisp.org>
10576
10577         New module 'wcsnlen'.
10578         * modules/wcsnlen: New file.
10579         * lib/wchar.in.h (wcsnlen): New declaration.
10580         * lib/wcsnlen.c: New file.
10581         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
10582         * m4/wcsnlen.m4: New file.
10583         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
10584         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
10585         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
10586         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
10587         * doc/posix-functions/wcsnlen.texi: Mention the new module.
10588
10589 2011-02-05  Bruno Haible  <bruno@clisp.org>
10590
10591         New module 'wcslen'.
10592         * modules/wcslen: New file.
10593         * lib/wchar.in.h (wcslen): New declaration.
10594         * lib/wcslen.c: New file.
10595         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
10596         * m4/wcslen.m4: New file.
10597         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
10598         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
10599         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
10600         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
10601         * doc/posix-functions/wcslen.texi: Mention the new module.
10602
10603 2011-02-05  Bruno Haible  <bruno@clisp.org>
10604
10605         New module 'wmemset'.
10606         * modules/wmemset: New file.
10607         * lib/wchar.in.h (wmemset): New declaration.
10608         * lib/wmemset.c: New file.
10609         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
10610         * m4/wmemset.m4: New file.
10611         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
10612         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
10613         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
10614         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
10615         * doc/posix-functions/wmemset.texi: Mention the new module.
10616
10617 2011-02-05  Bruno Haible  <bruno@clisp.org>
10618
10619         New module 'wmemmove'.
10620         * modules/wmemmove: New file.
10621         * lib/wchar.in.h (wmemmove): New declaration.
10622         * lib/wmemmove.c: New file.
10623         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
10624         * m4/wmemmove.m4: New file.
10625         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
10626         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
10627         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
10628         HAVE_WMEMMOVE.
10629         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
10630         * doc/posix-functions/wmemmove.texi: Mention the new module.
10631
10632 2011-02-05  Bruno Haible  <bruno@clisp.org>
10633
10634         New module 'wmemcpy'.
10635         * modules/wmemcpy: New file.
10636         * lib/wchar.in.h (wmemcpy): New declaration.
10637         * lib/wmemcpy.c: New file.
10638         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
10639         * m4/wmemcpy.m4: New file.
10640         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
10641         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
10642         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
10643         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
10644         * doc/posix-functions/wmemcpy.texi: Mention the new module.
10645
10646 2011-02-05  Bruno Haible  <bruno@clisp.org>
10647
10648         New module 'wmemcmp'.
10649         * modules/wmemcmp: New file.
10650         * lib/wchar.in.h (wmemcmp): New declaration.
10651         * lib/wmemcmp.c: New file.
10652         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
10653         * m4/wmemcmp.m4: New file.
10654         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
10655         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
10656         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
10657         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
10658         * doc/posix-functions/wmemcmp.texi: Mention the new module.
10659
10660 2011-02-07  Jim Meyering  <meyering@redhat.com>
10661
10662         di-set, ino-map: new modules, from coreutils
10663         * lib/di-set.c: New file.
10664         * lib/di-set.h: Likewise.
10665         * lib/ino-map.c: Likewise.
10666         * lib/ino-map.h: Likewise.
10667         * modules/di-set: Likewise.
10668         * modules/di-set-tests: Likewise.
10669         * modules/ino-map: Likewise.
10670         * modules/ino-map-tests: Likewise.
10671         * tests/test-di-set.c: Likewise.
10672         * tests/test-ino-map.c: Likewise.
10673
10674 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
10675
10676         getloadavg: merge minor changes from Emacs
10677
10678         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
10679         (getloadavg): Use memset, not bzero.
10680
10681         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
10682         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
10683         clash (bug#86).
10684
10685 2010-11-14  Bruno Haible  <bruno@clisp.org>
10686
10687         Allow multiple gnulib generated replacements to coexist.
10688         * lib/getopt.in.h (struct option): Avoid identical redefinition.
10689         * lib/inttypes.in.h (imaxdiv_t): Likewise.
10690         * lib/langinfo.in.h (nl_item): Likewise.
10691         * lib/math.in.h (_NaN, NAN): Likewise.
10692         * lib/netdb.in.h (struct addrinfo): Likewise.
10693         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
10694         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
10695         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
10696         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
10697         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
10698         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
10699         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
10700         pthread_mutexattr_init, pthread_mutexattr_settype,
10701         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
10702         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
10703         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
10704         pthread_spin_trylock, pthread_spin_unlock): Likewise.
10705         * lib/sched.in.h (struct sched_param): Likewise.
10706         * lib/se-selinux.in.h (security_class_t, security_context_t,
10707         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
10708         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
10709         lsetfilecon, fsetfilecon, security_check_context,
10710         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
10711         Likewise.
10712         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
10713         Likewise.
10714         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
10715         _gl_function_taking_int_returning_void_t, union sigval,
10716         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
10717         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
10718         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
10719         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
10720         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
10721         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
10722         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
10723         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
10724         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
10725         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
10726         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
10727         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
10728         socklen_t, rpl_fd_isset): Likewise.
10729         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
10730         * lib/sys_time.in.h (struct timeval): Likewise.
10731         * lib/sys_times.in.h (struct tms): Likewise.
10732         * lib/sys_utsname.in.h (struct utsname):
10733         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
10734         * lib/unistd.in.h (getpagesize): Likewise.
10735         * lib/wchar.in.h (mbstate_t): Likewise.
10736         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
10737         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
10738         towlower, towupper): Likewise.
10739         Reported by Sam Steingold <sds@gnu.org>.
10740
10741 2011-02-05  Eric Blake  <eblake@redhat.com>
10742
10743         unsetenv: work around Haiku issues
10744         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
10745         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
10746
10747 2010-12-30  Bruce Korb  <bkorb@gnu.org>
10748
10749         libposix: avoid calling error() within libposix
10750         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
10751         is defined.
10752
10753 2011-02-05  Eric Blake  <eblake@redhat.com>
10754
10755         strerror_r-posix: port to cygwin
10756         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
10757         implementation.
10758         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
10759         * tests/test-strerror_r.c (main): Fix test.
10760         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
10761         issue.
10762
10763 2011-02-05  Bruno Haible  <bruno@clisp.org>
10764
10765         New module 'wmemchr'.
10766         * modules/wmemchr: New file.
10767         * lib/wchar.in.h (wmemchr): New declaration.
10768         * lib/wmemchr.c: New file.
10769         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
10770         * m4/wmemchr.m4: New file.
10771         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
10772         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
10773         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
10774         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
10775         * doc/posix-functions/wmemchr.texi: Mention the new module.
10776
10777 2011-02-04  Eric Blake  <eblake@redhat.com>
10778
10779         fdopendir: detect FreeBSD bug
10780         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
10781         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
10782
10783 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
10784
10785         stdbool: do not define HAVE_STDBOOL_H
10786         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
10787         AC_HEADER_STDBOOL.  All uses changed.  Do not define
10788         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
10789         imported from the latest Autoconf git.  It was motivated by Emacs,
10790         which uses gnulib but does not need HAVE_STDBOOL_H.
10791
10792 2011-02-04  Bruno Haible  <bruno@clisp.org>
10793
10794         wcsnrtombs: Prepare for new module wwcsnrtombs.
10795         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
10796         * lib/wcsnrtombs.c: Include it.
10797         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
10798
10799         wcsrtombs: Prepare for new module wwcsrtombs.
10800         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
10801         * lib/wcsrtombs.c: Include it.
10802         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
10803
10804         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
10805         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
10806         * lib/mbsnrtowcs.c: Include it.
10807         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
10808
10809         mbsrtowcs: Prepare for new module mbsrtowwcs.
10810         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
10811         * lib/mbsrtowcs.c: Include it.
10812         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
10813
10814 2011-02-04  Bruno Haible  <bruno@clisp.org>
10815
10816         vasnprintf: Reduce use of malloc for small format strings.
10817         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
10818         (arguments): Add room for the first 7 arguments.
10819         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
10820         (char_directives, u8_directives, u16_directives, u32_directives): Add
10821         room for the first 7 directives.
10822         * lib/printf-parse.c: Include <string.h>.
10823         (PRINTF_PARSE): Change memory handling code so that it uses the first
10824         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
10825         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
10826         Reported by Pádraig Brady <P@draigbrady.com>.
10827
10828 2011-01-31  Eric Blake  <eblake@redhat.com>
10829
10830         dup2: work around Haiku bug
10831         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
10832         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
10833         * doc/posix-functions/dup2.texi (dup2): Document the bug.
10834         * tests/test-dup2.c (main): Enhance test.
10835
10836 2011-01-31  Simon Josefsson  <simon@josefsson.org>
10837
10838         doc: off_t is not available in eglibc 2.11.2 stdio.h.
10839         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
10840         declared by eglibc 2.11.2.
10841         * lib/stdio.in.h: Likewise.
10842
10843 2011-01-31  Eric Blake  <eblake@redhat.com>
10844
10845         ignore-value: add missing test dependency
10846         * tests/test-ignore-value.c: Revert previous change; stdio.h
10847         provides off_t.
10848         * modules/ignore-value-tests (Depends-on): Add missing dependency.
10849
10850 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
10851
10852         mktime: clarify long_int width checking
10853         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
10854         the top level, to make it clearer that the assumption about
10855         long_int width is being checked.  See
10856         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
10857
10858 2011-01-30  Simon Josefsson  <simon@josefsson.org>
10859
10860         ignore-value: Fix self-test.
10861         * tests/test-ignore-value.c: Include sys/types.h for off_t.
10862
10863 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
10864
10865         TYPE_MAXIMUM: avoid theoretically undefined behavior
10866         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
10867         negative number, which the C Standard says has undefined behavior.
10868         In practice this is not a problem, but might as well do it by the book.
10869         Reported by Rich Felker and Eric Blake; see
10870         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
10871         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
10872         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
10873         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
10874         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
10875         * m4/stdint.m4 (gl_STDINT_H): Likewise.
10876         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
10877
10878         mktime: #undef mktime before #defining it
10879         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
10880
10881         mktime: systematically normalize tm_isdst comparisons
10882         * lib/mktime.c (isdst_differ): New function.
10883         (__mktime_internal): Use it systematically for all isdst comparisons.
10884         This completes the fix for libc BZ #6723, and removes the need for
10885         normalizing tm_isdst.  See
10886         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
10887         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
10888
10889         mktime: fix some integer overflow issues and sidestep the rest
10890
10891         This was prompted by a bug report by Benjamin Lindner for MinGW
10892         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
10893         His bug is due to signed integer overflow (0 - INT_MIN), and I
10894         I scanned through mktime.c looking for other integer overflow
10895         problems, fixing all the bugs I found.
10896
10897         Although the C Standard says the resulting code is still not safe
10898         in the presence of integer overflow, in practice it should be good
10899         enough for all real-world two's-complement implementations, except
10900         for debugging environments that deliberately trap on integer
10901         overflow (e.g., gcc -ftrapv).
10902
10903         * lib/mktime.c (WRAPV): New macro.
10904         (SHR): Also check that long_int and time_t shift right in the
10905         usual way, before using the fast-but-unportable method.
10906         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
10907         used.  The code already assumed two's complement, so there's
10908         no need to test for alternatives.  All uses removed.
10909         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
10910         the C standard.  Problem reported by Rich Felker in
10911         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
10912         (twos_complement_arithmetic): Also check long_int and time_t.
10913         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
10914         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
10915         (__mktime_internal): Avoid integer overflow with unary subtraction
10916         in two instances where -1 - X is an adequate replacement for -X,
10917         since the calculations are approximate.
10918
10919 2011-01-29  Eric Blake  <eblake@redhat.com>
10920
10921         mktime: avoid infinite loop
10922         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
10923         type; behavior is still undefined but portable to all known targets.
10924         Reported by Rich Felker.
10925
10926 2011-01-29  Simon Josefsson  <simon@josefsson.org>
10927
10928         rename, unlink, same-inode: Relicense.
10929         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
10930         * modules/unlink (License): Likewise.
10931         * modules/same-inode (License): Likewise.
10932
10933 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
10934
10935         mktime: avoid problems on NetBSD 5 / i386
10936         * lib/mktime.c (long_int): New type.  This works around a problem
10937         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
10938         but time_t is 64 bits, and where I expect the existing code is
10939         wrong in some cases.
10940         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
10941         (ydhms_diff): Bring back the compile-time check for wide-enough
10942         year and yday.
10943
10944         mktime: fix misspelling in comment
10945         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
10946         This merges all recent glibc changes of importance.
10947
10948 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10949
10950         move-if-change: cope with concurrent mv of identical file.
10951         * build-aux/move-if-change (CMPPROG): Accept environment
10952         variable as an override for `cmp'.
10953         (usage): Document CMPPROG.
10954         Adjust comparison to drop stdout.  Cope with failure of mv if
10955         the target file exists and is identical to the source, for
10956         parallel builds.
10957         Report from H.J. Lu against binutils in PR binutils/12283.
10958
10959 2011-01-28  Bruce Korb  <bkorb@gnu.org>
10960
10961         * users.txt: Mention sharutils.
10962
10963 2011-01-28  Simon Josefsson  <simon@josefsson.org>
10964
10965         * users.txt: Mention OATH Toolkit.
10966
10967 2011-01-27  Bruno Haible  <bruno@clisp.org>
10968
10969         Prepare for supporting FreeBSD 10.
10970         * build-aux/config.libpath: Remove handling of freebsd1*.
10971
10972 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
10973
10974         Prepare for supporting FreeBSD 10.
10975         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
10976         match FreeBSD 10.0.
10977
10978 2011-01-27  Bruno Haible  <bruno@clisp.org>
10979
10980         vma-iter, get-rusage-as: Add OpenBSD support.
10981         * modules/vma-iter (configure.ac): Test for mquery.
10982         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
10983         * lib/vma-iter.c: Include <sys/mman.h>.
10984         (vma_iterate): Add an implementation based on mquery().
10985         * lib/resource-ext.h (get_rusage_as): Update comments.
10986         * lib/get-rusage-as.c: Likewise.
10987         * lib/get-rusage-data.c: Likewise.
10988
10989 2011-01-26  Karl Berry  <karl@gnu.org>
10990
10991         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
10992         variables to make it easier to override the makeinfo program used.
10993
10994 2011-01-26  Eric Blake  <eblake@redhat.com>
10995
10996         fcntl: work around Haiku F_DUPFD bugs
10997         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
10998         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
10999         cloexec bit on duplication.
11000         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
11001
11002 2011-01-26  Bruno Haible  <bruno@clisp.org>
11003
11004         Enable memory leak tests on AIX.
11005         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
11006         * tests/test-fprintf-posix3.c (main): Likewise.
11007
11008 2011-01-26  Bruno Haible  <bruno@clisp.org>
11009
11010         Tests for module 'get-rusage-data'.
11011         * modules/get-rusage-data-tests: New file.
11012         * tests/test-get-rusage-data.c: New file.
11013
11014         New module 'get-rusage-data'.
11015         * lib/resource-ext.h (get_rusage_data): New declaration.
11016         * lib/get-rusage-data.c: New file.
11017         * modules/get-rusage-data: New file.
11018
11019 2011-01-25  Bruno Haible  <bruno@clisp.org>
11020
11021         get-rusage-as: Allow for easier testing.
11022         * lib/resource-ext.h (get_rusage_as): Add comment.
11023         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
11024         (main): New function for interactive testing.
11025
11026 2011-01-25  Bruno Haible  <bruno@clisp.org>
11027
11028         vma-iter: Treat Haiku like BeOS.
11029         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
11030         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
11031
11032 2011-01-25  Eric Blake  <eblake@redhat.com>
11033
11034         c-stack: fix regression on cygwin when libsigsegv is present
11035         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
11036
11037 2011-01-24  Bruno Haible  <bruno@clisp.org>
11038
11039         vma-iter: Avoid empty intervals.
11040         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
11041         on an empty interval.
11042
11043 2011-01-24  Jim Meyering  <meyering@redhat.com>
11044
11045         u64: remove unnecessary #include
11046         * lib/u64.h: Don't include <stddef.h>.  It was not used.
11047
11048 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
11049
11050         Allow the user to avoid the HAVE_RAW_DECL_* macros.
11051         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
11052
11053 2011-01-23  Bruno Haible  <bruno@clisp.org>
11054
11055         New module 'vma-iter'.
11056         * lib/vma-iter.h: New file.
11057         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
11058         * modules/vma-iter: New file.
11059         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
11060         for get_rusage_as_via_iterator.
11061         (vma_iterate_callback): New function.
11062         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
11063         * modules/get-rusage-as (Depends-on): Add vma-iter.
11064
11065 2011-01-23  Bruno Haible  <bruno@clisp.org>
11066
11067         uninorm: Tweak includes.
11068         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
11069         Reported by Jim Meyering.
11070
11071 2011-01-23  Bruno Haible  <bruno@clisp.org>
11072
11073         get-rusage-as: Improve on NetBSD.
11074         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
11075         /proc, like on FreeBSD.
11076
11077 2011-01-23  Jim Meyering  <meyering@redhat.com>
11078
11079         xreadlink.h: remove unnecessary #include
11080         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
11081
11082         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
11083         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
11084
11085 2011-01-23  Bruno Haible  <bruno@clisp.org>
11086
11087         get-rusage-as: Fix bug.
11088         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
11089         original limit when aborting the first loop.
11090
11091 2011-01-23  Bruno Haible  <bruno@clisp.org>
11092
11093         wctype: Ensure valid C syntax.
11094         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
11095         unconditionally, instead of gl_NEXT_HEADERS conditionally.
11096
11097 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
11098
11099         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
11100         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
11101         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
11102         as they are needed only for configure's test case.
11103         This removes two unnecessary symbols from config.h.
11104
11105         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
11106         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
11107         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
11108         AC_CHECK_HEADERS_ONCE on a header that we also invoke
11109         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
11110         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
11111         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
11112         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
11113         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
11114         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
11115         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
11116         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
11117         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
11118         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
11119         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
11120         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
11121         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
11122         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
11123
11124 2011-01-21  Eric Blake  <eblake@redhat.com>
11125
11126         maintainer-makefile: work with older git for submodule check
11127         * top/maint.mk (public-submodule-commit): Rewrite to avoid
11128         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
11129         Reported by Matthias Bolte.
11130
11131         bootstrap: minor portability fixes
11132         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
11133         (usage): Omit leading capital and trailing . on help phrases, per
11134         GNU Coding Standards.
11135         (check_versions, top level): Prefix messages with script name.
11136
11137 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
11138
11139         bootstrap: support --no-git option
11140         * build-aux/bootstrap: Add --no-git option, to be used when
11141         --gnulib-srcdir points to the exact desired checkout.
11142
11143 2011-01-21  Eric Blake  <eblake@redhat.com>
11144
11145         strerror_r-posix: work with glibc 2.13
11146         * lib/strerror_r.c (strerror_r): Fix return type.
11147
11148 2011-01-21  Pádraig Brady  <P@draigBrady.com>
11149             Bruno Haible  <bruno@clisp.org>
11150
11151         uN_strstr: New unit tests.
11152         * modules/unistr/u8-strstr-tests: New file.
11153         * modules/unistr/u16-strstr-tests: New file.
11154         * modules/unistr/u32-strstr-tests: New file.
11155         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
11156         * tests/unistr/test-u8-strstr.c: New file.
11157         * tests/unistr/test-u16-strstr.c: New file.
11158         * tests/unistr/test-u32-strstr.c: New file.
11159
11160 2011-01-21  Pádraig Brady  <P@draigBrady.com>
11161             Bruno Haible  <bruno@clisp.org>
11162
11163         Make uN_strstr functions O(n) worst-case.
11164         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
11165         16-bit and 32-bit unit cases, use the unibyte algorithm from
11166         lib/mbsstr.c.
11167         * lib/unistr/u8-strstr.c: Include <string.h>.
11168         (UNIT_IS_UINT8_T): New macro.
11169         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
11170         (U_STRLEN, U_STRNLEN): New macros.
11171         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
11172         (U_STRLEN, U_STRNLEN): New macros.
11173         * modules/unistr/u8-strstr (Depends-on): Add strstr.
11174         (configure.ac): Update required libunistring version.
11175         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
11176         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
11177         malloca.
11178         (configure.ac): Update required libunistring version.
11179         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
11180         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
11181         malloca.
11182         (configure.ac): Update required libunistring version.
11183
11184 2011-01-21  Pádraig Brady  <P@draigBrady.com>
11185             Bruno Haible  <bruno@clisp.org>
11186
11187         Prepare for faster uN_strstr functions.
11188         * lib/str-kmp.h: Support definable UNITs.
11189         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
11190         needle_len argument.
11191         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
11192         * lib/mbscasestr.c (mbscasestr): Likewise.
11193
11194 2011-01-21  Pádraig Brady <P@draigBrady.com>
11195
11196         malloca-tests: make faster by unsetting MALLOC_PERTURB_
11197         * tests/test-malloca.c (main): Unset the environment variable
11198         to greatly speed up the test.
11199         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
11200         * modules/malloca-tests: Depend on unsetenv.
11201
11202 2011-01-21  Pádraig Brady <P@draigBrady.com>
11203
11204         ignore-value: remove stdint dependency
11205         * lib/ignore-value.h: Remove <stdint.h>
11206         * modules/ignore-value: Remove stdint dependency.
11207
11208 2011-01-21  Jim Meyering  <meyering@redhat.com>
11209
11210         maint.mk: adjust variable name to be consistent with other gl_ vars
11211         * top/maint.mk (gl_public_submodule_commit): Rename the variable
11212         to be lower case.
11213
11214 2011-01-20  Jim Meyering  <meyering@redhat.com>
11215
11216         maint.mk: make "check" depend on public-submodule-commit by default
11217         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
11218
11219 2011-01-20  Bruno Haible  <bruno@clisp.org>
11220
11221         mbfile, mbiter: Complete change from 2008-12-21.
11222         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
11223         * m4/mbiter.m4 (gl_MBITER): Likewise.
11224
11225 2011-01-20  Jim Meyering  <meyering@redhat.com>
11226
11227         init.sh: insert space between each function name and "()"
11228         * tests/init.sh: Make it a little easier to see that a function's
11229         name is "warn_", and not "warn" when looking at the first part of
11230         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
11231
11232 2011-01-20  Jim Meyering  <meyering@redhat.com>
11233
11234         mountlist: clean up code formatting
11235         * lib/mountlist.c (read_file_system_list): Split a long line,
11236         correct bracing style, use NULL in place of "(struct statfs *)0",
11237         don't parenthesize return value, add spaces around "=" and after
11238         ";-in-for-stmt".
11239
11240 2011-01-14  Markus Duft <mduft@gentoo.org>
11241
11242         mountlist: add support for Interix
11243         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
11244         Apply statvfs to all entries of /dev/fs.
11245         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
11246         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
11247
11248 2011-01-20  Jim Meyering  <meyering@redhat.com>
11249
11250         maint.mk: improve the public-submodule-commit rule
11251         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
11252         to suppress printing of its commands... unless V=1.
11253         Add git submodule's --quiet option to suppress printing of e.g.,
11254         "Entering gnulib" output.
11255         "cd" into $(srcdir) before running git submodule.
11256
11257 2011-01-20  Bruno Haible  <bruno@clisp.org>
11258
11259         include_next: Fix bug introduced on 2011-01-18.
11260         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
11261         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
11262         ac_cv_header_... variable if the second argument is not 'check'.
11263         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
11264         gl_NEXT_HEADERS_INTERNAL.
11265
11266 2011-01-20  Bruno Haible  <bruno@clisp.org>
11267
11268         Allow the user to avoid the GNULIB_TEST_* macros.
11269         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
11270         Suggested by Paul Eggert.
11271
11272 2011-01-14  Jim Meyering  <meyering@redhat.com>
11273
11274         bootstrap: avoid failure when there is no .gitmodules file
11275         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
11276         has been assigned to, even when its value is the empty string.
11277         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
11278         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
11279         Reported by John W. Eaton <jwe@gnu.org>.
11280
11281 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
11282
11283         assume <ctype.h>, ..., <time.h> exist
11284         For years gnulib has been assuming the existence of the headers
11285         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
11286         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
11287         them, since they don't appear to be needed.
11288         * README (Portability guidelines): Document this.
11289         * lib/flock.c: Assume <fcntl.h> exists.
11290         * lib/regex_internal.h: Assume <locale.h> exists.
11291         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
11292         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
11293         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
11294         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
11295         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
11296         * m4/regex.m4 (gl_REGEX): Likewise.
11297         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
11298         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
11299         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
11300         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
11301         * tests/test-argp.c: Likewise.
11302         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
11303
11304         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
11305         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
11306         AA_APPLE_UNIVERSAL_BUILD.  See
11307         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
11308         * NEWS: Document this.
11309
11310 2011-01-19  Eric Blake  <eblake@redhat.com>
11311
11312         c-stack: assume stack overflow if SA_SIGINFO unsupported
11313         * lib/c-stack.c (SIGACTION_WORKS): Rename...
11314         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
11315         sigaction will work.
11316         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
11317         behavior match Linux.
11318         * tests/test-c-stack.c (main): Prefer NULL for pointers.
11319
11320         stdbool-tests: accomodate Haiku
11321         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
11322
11323         binary-io: fix O_TEXT on Haiku
11324         * modules/binary-io (Depends-on): Add fcntl-h.
11325         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
11326         than blindly undefining O_TEXT.
11327         Reported by Scott McCreary.
11328
11329 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
11330
11331         include_next: do not check for standard headers like stddef.h
11332
11333         I found this problem when modifying Emacs to use gnulib.
11334         I noticed that it added HAVE_STDDEF_H to config.h, even though
11335         gnulib always assumes <stddef.h> exists as per README and this
11336         symbol is unnecessary.
11337         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
11338         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
11339         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
11340         faster for headers like stddef.h that are known to exist.
11341         (gl_CHECK_NEXT_HEADERS): Use it.
11342         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
11343         rather than gl_CHECK_NEXT_HEADERS.
11344         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
11345         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
11346
11347 2011-01-18  Eric Blake  <eblake@redhat.com>
11348
11349         ansi-c++-opt: skip C++ dependency style if C++ is unused
11350         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
11351         tests when we know C++ compilation is not desired.
11352         Reported by Scott McCreary.
11353
11354 2011-01-18  Bruno Haible  <bruno@clisp.org>
11355
11356         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
11357         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
11358         (main): Perform test also when getrlimit and setrlimit don't exist or
11359         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
11360         limiting the address space size using setrlimit, compare the address
11361         space size before and after the the test.
11362         * tests/test-dprintf-posix2.c: Likewise.
11363         * tests/test-fprintf-posix3.sh: Update skip messages.
11364         * tests/test-dprintf-posix2.sh: Likewise.
11365         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
11366         * modules/dprintf-posix-tests (Depends-on): Likewise.
11367         Reported by Bruce Korb <bkorb@gnu.org> and
11368         Gary V. Vaughan <gary@gnu.org>.
11369
11370 2011-01-18  Bruno Haible  <bruno@clisp.org>
11371
11372         get-rusage-as: Improvement for Cygwin.
11373         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
11374         areas that are merely reserved.
11375
11376 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
11377
11378         strftime: remove dependencies on multibyte modules
11379
11380         strftime depended on mbrlen, mbsinit, and wchar, but these modules
11381         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
11382         only if __osf__ is defined, and I suspect OSF doesn't need these
11383         other modules.  If my guess is wrong, we'll need to come up with a
11384         variant of strftime that doesn't need the multibyte modules.
11385
11386         I discovered this problem when attempting modify Emacs to use the
11387         strftime module.  With the previous gnulib, this caused Emacs to
11388         need 31 new files, ranging from lib/config.charset to
11389         m4/wint_t.m4.  This was overkill and I expect would be offputting
11390         to the Emacs maintainers.  After this change, only 6 new files are
11391         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
11392         stdbool.m4, and tm_gmtoff.m4.
11393
11394         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
11395         Suggested by Bruno Haible in
11396         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
11397         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
11398         and do not check for wchar.h.
11399         * modules/strftime (Files): Remove m4/mbstate_t.m4.
11400         (Depends-on): Remove mbrlen, mbsinit, wchar.
11401
11402 2011-01-18  Bruno Haible  <bruno@clisp.org>
11403
11404         Tests for module 'get-rusage-as'.
11405         * modules/get-rusage-as-tests: New file.
11406         * tests/test-get-rusage-as.c: New file.
11407
11408         New module 'get-rusage-as'.
11409         * modules/get-rusage-as: New file.
11410         * lib/resource-ext.h: New file.
11411         * lib/get-rusage-as.c: New file.
11412
11413 2011-01-17  Eric Blake  <eblake@redhat.com>
11414
11415         sigaction: relax license from LGPLv3+ to LGPLv2+
11416         * modules/sigaction (License): Relax to LGPLv2+.
11417
11418 2011-01-14  Bruno Haible  <bruno@clisp.org>
11419
11420         filemode: Make function declarations usable in C++ mode.
11421         * lib/filemode.h: Enclose function declarations in extern "C" block.
11422         Reported by John W. Eaton <jwe@gnu.org>.
11423
11424 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
11425
11426         save-cwd: no longer include "xgetcwd.h"
11427         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
11428         This avoids a compilation failure in projects that use save-cwd
11429         without also using the xgetcwd module.
11430
11431 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
11432
11433         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
11434         This is so that a program like Emacs, which needs only dtoastr,
11435         does not have to bother with distributing and compiling ftoastr
11436         and ldtoastr.
11437         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
11438         * modules/dtoastr, modules/ldtoastr: New files.
11439         * modules/ftoastr: Now works just for 'float'.
11440         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
11441         (Makefile.am): Remove ftoastr.h (not needed and no effect),
11442         dtoastr.c, ldtoastr.c.
11443
11444 2011-01-11  Jim Meyering  <meyering@redhat.com>
11445
11446         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
11447         There is no need to work around the lack of the fchdir function,
11448         since gnulib can now provide a replacement when required.
11449         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
11450         * modules/save-cwd (Depends-on): Add fchdir.
11451
11452 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
11453
11454         openat, save-cwd: avoid xmalloc
11455
11456         This removes a direct (but undocumented) dependency of openat on
11457         xalloc, along with an indirect dependency via save-cwd.  It also
11458         removes a dependency of save-cwd on xgetcwd, and thereby
11459         indirectly on xalloc.  This change causes the openat substitute
11460         to fall back on save_cwd when memory is tight, and for save_cwd to
11461         fail instead of dying when memory is tight, but that's good enough.
11462         Problem and initial idea for fix reported by Bastien Roucaries in
11463         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
11464
11465         * lib/openat-proc.c: Include stdlib.h (for malloc), not
11466         xalloc.h (for xmalloc).
11467         (openat_proc_name): Use malloc, not xmalloc.
11468         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
11469         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
11470
11471         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
11472         This avoids heap allocation for file names whose lengths are in
11473         the range 512..1023, with the upper bound increasing to at most
11474         4031 depending on the platform's PATH_MAX.  (We do not want
11475         pathmax.h here as it might supply a non-constant PATH_MAX.)
11476         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
11477         Perhaps they should be moved to malloca.h?
11478         (OPENAT_BUFFER_SIZE): Use them.
11479
11480 2011-01-10  Bruno Haible  <bruno@clisp.org>
11481
11482         doc: Update users.txt.
11483         * users.txt: Add recutils.
11484
11485 2011-01-09  Karl Berry  <karl@gnu.org>
11486
11487         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
11488
11489         * doc/configmake.texi: New file.
11490         * doc/gnulib.texi: Include it.
11491         * modules/configmake: Move documentation from here.
11492
11493 2011-01-09  Bruno Haible  <bruno@clisp.org>
11494
11495         Update to Unicode 6.0.0.
11496         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
11497         (get_lbp): Update for Unicode 6.0.0.
11498         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
11499         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
11500         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
11501         U+11001, U+11038..U+11046. Remove U+06DE.
11502         (uc_width): Fix bounds of planes.
11503         * tests/uniwidth/test-uc_width2.sh: Same updates as in
11504         lib/uniwidth/width.c.
11505         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
11506         trailing whitespace removed.
11507         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
11508         without comments, but with the original copyright notice.
11509         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
11510         * lib/unicase/ignorable.h: Likewise.
11511         * lib/unicase/tocasefold.h: Likewise.
11512         * lib/unicase/tolower.h: Likewise.
11513         * lib/unicase/totitle.h: Likewise.
11514         * lib/unicase/toupper.h: Likewise.
11515         * lib/unictype/bidi_of.h: Likewise.
11516         * lib/unictype/blocks.h: Likewise.
11517         * lib/unictype/categ_C.h: Likewise.
11518         * lib/unictype/categ_Cn.h: Likewise.
11519         * lib/unictype/categ_L.h: Likewise.
11520         * lib/unictype/categ_Ll.h: Likewise.
11521         * lib/unictype/categ_Lm.h: Likewise.
11522         * lib/unictype/categ_Lo.h: Likewise.
11523         * lib/unictype/categ_Lu.h: Likewise.
11524         * lib/unictype/categ_M.h: Likewise.
11525         * lib/unictype/categ_Mc.h: Likewise.
11526         * lib/unictype/categ_Me.h: Likewise.
11527         * lib/unictype/categ_Mn.h: Likewise.
11528         * lib/unictype/categ_N.h: Likewise.
11529         * lib/unictype/categ_Nd.h: Likewise.
11530         * lib/unictype/categ_No.h: Likewise.
11531         * lib/unictype/categ_P.h: Likewise.
11532         * lib/unictype/categ_Po.h: Likewise.
11533         * lib/unictype/categ_S.h: Likewise.
11534         * lib/unictype/categ_Sc.h: Likewise.
11535         * lib/unictype/categ_Sk.h: Likewise.
11536         * lib/unictype/categ_Sm.h: Likewise.
11537         * lib/unictype/categ_So.h: Likewise.
11538         * lib/unictype/categ_of.h: Likewise.
11539         * lib/unictype/combining.h: Likewise.
11540         * lib/unictype/ctype_alnum.h: Likewise.
11541         * lib/unictype/ctype_alpha.h: Likewise.
11542         * lib/unictype/ctype_graph.h: Likewise.
11543         * lib/unictype/ctype_lower.h: Likewise.
11544         * lib/unictype/ctype_print.h: Likewise.
11545         * lib/unictype/ctype_punct.h: Likewise.
11546         * lib/unictype/ctype_upper.h: Likewise.
11547         * lib/unictype/decdigit.h: Likewise.
11548         * lib/unictype/digit.h: Likewise.
11549         * lib/unictype/numeric.h: Likewise.
11550         * lib/unictype/pr_alphabetic.h: Likewise.
11551         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
11552         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
11553         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
11554         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
11555         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
11556         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
11557         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
11558         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
11559         * lib/unictype/pr_case_ignorable.h: Likewise.
11560         * lib/unictype/pr_cased.h: Likewise.
11561         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
11562         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
11563         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
11564         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
11565         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
11566         * lib/unictype/pr_combining.h: Likewise.
11567         * lib/unictype/pr_composite.h: Likewise.
11568         * lib/unictype/pr_currency_symbol.h: Likewise.
11569         * lib/unictype/pr_decimal_digit.h: Likewise.
11570         * lib/unictype/pr_deprecated.h: Likewise.
11571         * lib/unictype/pr_format_control.h: Likewise.
11572         * lib/unictype/pr_grapheme_base.h: Likewise.
11573         * lib/unictype/pr_grapheme_extend.h: Likewise.
11574         * lib/unictype/pr_grapheme_link.h: Likewise.
11575         * lib/unictype/pr_id_continue.h: Likewise.
11576         * lib/unictype/pr_id_start.h: Likewise.
11577         * lib/unictype/pr_ideographic.h: Likewise.
11578         * lib/unictype/pr_lowercase.h: Likewise.
11579         * lib/unictype/pr_math.h: Likewise.
11580         * lib/unictype/pr_numeric.h: Likewise.
11581         * lib/unictype/pr_other_alphabetic.h: Likewise.
11582         * lib/unictype/pr_other_id_continue.h: Likewise.
11583         * lib/unictype/pr_other_math.h: Likewise.
11584         * lib/unictype/pr_punctuation.h: Likewise.
11585         * lib/unictype/pr_sentence_terminal.h: Likewise.
11586         * lib/unictype/pr_terminal_punctuation.h: Likewise.
11587         * lib/unictype/pr_unassigned_code_value.h: Likewise.
11588         * lib/unictype/pr_unified_ideograph.h: Likewise.
11589         * lib/unictype/pr_uppercase.h: Likewise.
11590         * lib/unictype/pr_xid_continue.h: Likewise.
11591         * lib/unictype/pr_xid_start.h: Likewise.
11592         * lib/unictype/scripts.h: Likewise.
11593         * lib/unictype/scripts_byname.gperf: Likewise.
11594         * lib/unictype/sy_java_ident.h: Likewise.
11595         * lib/unigbrk/gbrkprop.h: Likewise.
11596         * lib/unilbrk/lbrkprop1.h: Likewise.
11597         * lib/unilbrk/lbrkprop2.h: Likewise.
11598         * lib/uninorm/decomposition-table2.h: Likewise.
11599         * lib/uniwbrk/wbrkprop.h: Likewise.
11600         * tests/unicase/test-cased.c: Likewise.
11601         * tests/unicase/test-ignorable.c: Likewise.
11602         * tests/unicase/test-uc_tolower.c: Likewise.
11603         * tests/unicase/test-uc_totitle.c: Likewise.
11604         * tests/unicase/test-uc_toupper.c: Likewise.
11605         * tests/unictype/test-categ_C.c: Likewise.
11606         * tests/unictype/test-categ_Cn.c: Likewise.
11607         * tests/unictype/test-categ_L.c: Likewise.
11608         * tests/unictype/test-categ_Ll.c: Likewise.
11609         * tests/unictype/test-categ_Lm.c: Likewise.
11610         * tests/unictype/test-categ_Lo.c: Likewise.
11611         * tests/unictype/test-categ_Lu.c: Likewise.
11612         * tests/unictype/test-categ_M.c: Likewise.
11613         * tests/unictype/test-categ_Mc.c: Likewise.
11614         * tests/unictype/test-categ_Me.c: Likewise.
11615         * tests/unictype/test-categ_Mn.c: Likewise.
11616         * tests/unictype/test-categ_N.c: Likewise.
11617         * tests/unictype/test-categ_Nd.c: Likewise.
11618         * tests/unictype/test-categ_No.c: Likewise.
11619         * tests/unictype/test-categ_P.c: Likewise.
11620         * tests/unictype/test-categ_Po.c: Likewise.
11621         * tests/unictype/test-categ_S.c: Likewise.
11622         * tests/unictype/test-categ_Sc.c: Likewise.
11623         * tests/unictype/test-categ_Sk.c: Likewise.
11624         * tests/unictype/test-categ_Sm.c: Likewise.
11625         * tests/unictype/test-categ_So.c: Likewise.
11626         * tests/unictype/test-ctype_alnum.c: Likewise.
11627         * tests/unictype/test-ctype_alpha.c: Likewise.
11628         * tests/unictype/test-ctype_graph.c: Likewise.
11629         * tests/unictype/test-ctype_lower.c: Likewise.
11630         * tests/unictype/test-ctype_print.c: Likewise.
11631         * tests/unictype/test-ctype_punct.c: Likewise.
11632         * tests/unictype/test-ctype_upper.c: Likewise.
11633         * tests/unictype/test-decdigit.h: Likewise.
11634         * tests/unictype/test-digit.h: Likewise.
11635         * tests/unictype/test-numeric.h: Likewise.
11636         * tests/unictype/test-pr_alphabetic.c: Likewise.
11637         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
11638         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
11639         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
11640         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
11641         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
11642         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
11643         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
11644         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
11645         * tests/unictype/test-pr_case_ignorable.c: Likewise.
11646         * tests/unictype/test-pr_cased.c: Likewise.
11647         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
11648         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
11649         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
11650         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
11651         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
11652         * tests/unictype/test-pr_combining.c: Likewise.
11653         * tests/unictype/test-pr_composite.c: Likewise.
11654         * tests/unictype/test-pr_currency_symbol.c: Likewise.
11655         * tests/unictype/test-pr_decimal_digit.c: Likewise.
11656         * tests/unictype/test-pr_deprecated.c: Likewise.
11657         * tests/unictype/test-pr_format_control.c: Likewise.
11658         * tests/unictype/test-pr_grapheme_base.c: Likewise.
11659         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
11660         * tests/unictype/test-pr_grapheme_link.c: Likewise.
11661         * tests/unictype/test-pr_id_continue.c: Likewise.
11662         * tests/unictype/test-pr_id_start.c: Likewise.
11663         * tests/unictype/test-pr_ideographic.c: Likewise.
11664         * tests/unictype/test-pr_lowercase.c: Likewise.
11665         * tests/unictype/test-pr_math.c: Likewise.
11666         * tests/unictype/test-pr_numeric.c: Likewise.
11667         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
11668         * tests/unictype/test-pr_other_id_continue.c: Likewise.
11669         * tests/unictype/test-pr_other_math.c: Likewise.
11670         * tests/unictype/test-pr_punctuation.c: Likewise.
11671         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
11672         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
11673         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
11674         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
11675         * tests/unictype/test-pr_uppercase.c: Likewise.
11676         * tests/unictype/test-pr_xid_continue.c: Likewise.
11677         * tests/unictype/test-pr_xid_start.c: Likewise.
11678         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
11679         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
11680         changes.
11681         * lib/unictype/categ_Cc.h: Likewise.
11682         * lib/unictype/categ_Cf.h: Likewise.
11683         * lib/unictype/categ_Co.h: Likewise.
11684         * lib/unictype/categ_Cs.h: Likewise.
11685         * lib/unictype/categ_Lt.h: Likewise.
11686         * lib/unictype/categ_Nl.h: Likewise.
11687         * lib/unictype/categ_Pc.h: Likewise.
11688         * lib/unictype/categ_Pd.h: Likewise.
11689         * lib/unictype/categ_Pe.h: Likewise.
11690         * lib/unictype/categ_Pf.h: Likewise.
11691         * lib/unictype/categ_Pi.h: Likewise.
11692         * lib/unictype/categ_Ps.h: Likewise.
11693         * lib/unictype/categ_Z.h: Likewise.
11694         * lib/unictype/categ_Zl.h: Likewise.
11695         * lib/unictype/categ_Zp.h: Likewise.
11696         * lib/unictype/categ_Zs.h: Likewise.
11697         * lib/unictype/ctype_blank.h: Likewise.
11698         * lib/unictype/ctype_cntrl.h: Likewise.
11699         * lib/unictype/ctype_digit.h: Likewise.
11700         * lib/unictype/ctype_space.h: Likewise.
11701         * lib/unictype/ctype_xdigit.h: Likewise.
11702         * lib/unictype/mirror.h: Likewise.
11703         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
11704         * lib/unictype/pr_bidi_block_separator.h: Likewise.
11705         * lib/unictype/pr_bidi_common_separator.h: Likewise.
11706         * lib/unictype/pr_bidi_control.h: Likewise.
11707         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
11708         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
11709         * lib/unictype/pr_bidi_european_digit.h: Likewise.
11710         * lib/unictype/pr_bidi_pdf.h: Likewise.
11711         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
11712         * lib/unictype/pr_bidi_whitespace.h: Likewise.
11713         * lib/unictype/pr_dash.h: Likewise.
11714         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
11715         * lib/unictype/pr_diacritic.h: Likewise.
11716         * lib/unictype/pr_extender.h: Likewise.
11717         * lib/unictype/pr_hex_digit.h: Likewise.
11718         * lib/unictype/pr_hyphen.h: Likewise.
11719         * lib/unictype/pr_ids_binary_operator.h: Likewise.
11720         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
11721         * lib/unictype/pr_ignorable_control.h: Likewise.
11722         * lib/unictype/pr_iso_control.h: Likewise.
11723         * lib/unictype/pr_join_control.h: Likewise.
11724         * lib/unictype/pr_left_of_pair.h: Likewise.
11725         * lib/unictype/pr_line_separator.h: Likewise.
11726         * lib/unictype/pr_logical_order_exception.h: Likewise.
11727         * lib/unictype/pr_non_break.h: Likewise.
11728         * lib/unictype/pr_not_a_character.h: Likewise.
11729         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
11730         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
11731         * lib/unictype/pr_other_id_start.h: Likewise.
11732         * lib/unictype/pr_other_lowercase.h: Likewise.
11733         * lib/unictype/pr_other_uppercase.h: Likewise.
11734         * lib/unictype/pr_paired_punctuation.h: Likewise.
11735         * lib/unictype/pr_paragraph_separator.h: Likewise.
11736         * lib/unictype/pr_pattern_syntax.h: Likewise.
11737         * lib/unictype/pr_pattern_white_space.h: Likewise.
11738         * lib/unictype/pr_private_use.h: Likewise.
11739         * lib/unictype/pr_quotation_mark.h: Likewise.
11740         * lib/unictype/pr_radical.h: Likewise.
11741         * lib/unictype/pr_soft_dotted.h: Likewise.
11742         * lib/unictype/pr_space.h: Likewise.
11743         * lib/unictype/pr_titlecase.h: Likewise.
11744         * lib/unictype/pr_variation_selector.h: Likewise.
11745         * lib/unictype/pr_white_space.h: Likewise.
11746         * lib/unictype/pr_zero_width.h: Likewise.
11747         * lib/unictype/sy_c_ident.h: Likewise.
11748         * lib/unictype/sy_c_whitespace.h: Likewise.
11749         * lib/unictype/sy_java_whitespace.h: Likewise.
11750         * lib/uninorm/composition-table.gperf: Likewise.
11751         * lib/uninorm/decomposition-table1.h: Likewise.
11752         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
11753         LB8.
11754         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
11755         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
11756         * modules/unictype/*: Bump version number of expected libunistring
11757         version.
11758
11759 2011-01-09  Bruno Haible  <bruno@clisp.org>
11760
11761         Update to Unicode 5.2.0.
11762         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
11763         trailing whitespace removed.
11764
11765 2011-01-09  Bruno Haible  <bruno@clisp.org>
11766
11767         New Unicode character properties, from Unicode 5.2.0.
11768         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
11769         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
11770         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
11771         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
11772         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
11773         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
11774         uc_is_property_cased, uc_is_property_case_ignorable,
11775         uc_is_property_changes_when_lowercased,
11776         uc_is_property_changes_when_uppercased,
11777         uc_is_property_changes_when_titlecased,
11778         uc_is_property_changes_when_casefolded,
11779         uc_is_property_changes_when_casemapped): New declarations.
11780         * lib/unictype/pr_byname.gperf: Add the new properties.
11781         * modules/unictype/property-byname (Depends-on): Depend on the new
11782         properties modules.
11783         * modules/unictype/property-all (Depends-on): Likewise.
11784         * MODULES.html.sh (Unicode string functions): Add
11785         unictype/property-case-ignorable, unictype/property-cased,
11786         unictype/property-changes-when-casefolded,
11787         unictype/property-changes-when-casemapped,
11788         unictype/property-changes-when-lowercased,
11789         unictype/property-changes-when-titlecased,
11790         unictype/property-changes-when-uppercased.
11791
11792         New module 'unictype/property-changes-when-casemapped'.
11793         * modules/unictype/property-changes-when-casemapped: New file.
11794         * lib/unictype/pr_changes_when_casemapped.c: New file.
11795         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
11796         generated by gen-uni-tables.
11797         * modules/unictype/property-changes-when-casemapped-tests: New file.
11798         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
11799         automatically generated by gen-uni-tables.
11800
11801         New module 'unictype/property-changes-when-casefolded'.
11802         * modules/unictype/property-changes-when-casefolded: New file.
11803         * lib/unictype/pr_changes_when_casefolded.c: New file.
11804         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
11805         generated by gen-uni-tables.
11806         * modules/unictype/property-changes-when-casefolded-tests: New file.
11807         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
11808         automatically generated by gen-uni-tables.
11809
11810         New module 'unictype/property-changes-when-titlecased'.
11811         * modules/unictype/property-changes-when-titlecased: New file.
11812         * lib/unictype/pr_changes_when_titlecased.c: New file.
11813         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
11814         generated by gen-uni-tables.
11815         * modules/unictype/property-changes-when-titlecased-tests: New file.
11816         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
11817         automatically generated by gen-uni-tables.
11818
11819         New module 'unictype/property-changes-when-uppercased'.
11820         * modules/unictype/property-changes-when-uppercased: New file.
11821         * lib/unictype/pr_changes_when_uppercased.c: New file.
11822         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
11823         generated by gen-uni-tables.
11824         * modules/unictype/property-changes-when-uppercased-tests: New file.
11825         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
11826         automatically generated by gen-uni-tables.
11827
11828         New module 'unictype/property-changes-when-lowercased'.
11829         * modules/unictype/property-changes-when-lowercased: New file.
11830         * lib/unictype/pr_changes_when_lowercased.c: New file.
11831         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
11832         generated by gen-uni-tables.
11833         * modules/unictype/property-changes-when-lowercased-tests: New file.
11834         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
11835         automatically generated by gen-uni-tables.
11836
11837         New module 'unictype/property-case-ignorable'.
11838         * modules/unictype/property-case-ignorable: New file.
11839         * lib/unictype/pr_case_ignorable.c: New file.
11840         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
11841         by gen-uni-tables.
11842         * modules/unictype/property-case-ignorable-tests: New file.
11843         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
11844         generated by gen-uni-tables.
11845
11846         New module 'unictype/property-cased'.
11847         * modules/unictype/property-cased: New file.
11848         * lib/unictype/pr_cased.c: New file.
11849         * lib/unictype/pr_cased.h: New file, automatically generated by
11850         gen-uni-tables.
11851         * modules/unictype/property-cased-tests: New file.
11852         * tests/unictype/test-pr_cased.c: New file, automatically generated by
11853         gen-uni-tables.
11854
11855 2011-01-09  Bruno Haible  <bruno@clisp.org>
11856
11857         Update to Unicode 5.2.0.
11858         * lib/gen-uni-tables.c (output_predicate, output_category,
11859         output_combclass, output_bidi_category, output_decimal_digit_test,
11860         output_decimal_digit, output_digit_test, output_digit,
11861         output_numeric_test, output_numeric, output_mirror, output_scripts,
11862         output_scripts_byname, output_blocks, output_ident_category): Fix
11863         comment header.
11864         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
11865         get_wbp.
11866         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
11867         items.
11868         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
11869         Changes_When_Lowercased, Changes_When_Uppercased,
11870         Changes_When_Titlecased, Changes_When_Casefolded,
11871         Changes_When_Casemapped.
11872         (is_property_alphabetic, is_property_default_ignorable_code_point):
11873         Update for Unicode 5.2.0.
11874         (is_property_cased, is_property_case_ignorable,
11875         is_property_changes_when_lowercased,
11876         is_property_changes_when_uppercased,
11877         is_property_changes_when_titlecased,
11878         is_property_changes_when_casefolded,
11879         is_property_changes_when_casemapped): New functions.
11880         (output_properties): Output also the properties cased, case_ignorable,
11881         changes_when_lowercased, changes_when_uppercased,
11882         changes_when_titlecased, changes_when_casefolded,
11883         changes_when_casemapped.
11884         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
11885         Unicode TR#11 revision 17 -> 19.
11886         (LBP_CP): New enumeration value.
11887         (LBP_*): Adjust values accordingly.
11888         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
11889         TR#14 revision 22 -> 24.
11890         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
11891         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
11892         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
11893         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
11894         is_WBP_MIDLETTER.
11895         (output_composition_tables): Allow for 24 bits instead of 16 bits in
11896         the code1 and code2 of each composition rule.
11897         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
11898         * lib/unicase/ignorable.h: Likewise.
11899         * lib/unicase/tocasefold.h: Likewise.
11900         * lib/unicase/tolower.h: Likewise.
11901         * lib/unicase/totitle.h: Likewise.
11902         * lib/unicase/toupper.h: Likewise.
11903         * lib/unictype/bidi_of.h: Likewise.
11904         * lib/unictype/blocks.h: Likewise.
11905         * lib/unictype/categ_C.h: Likewise.
11906         * lib/unictype/categ_Cf.h: Likewise.
11907         * lib/unictype/categ_Cn.h: Likewise.
11908         * lib/unictype/categ_L.h: Likewise.
11909         * lib/unictype/categ_Ll.h: Likewise.
11910         * lib/unictype/categ_Lm.h: Likewise.
11911         * lib/unictype/categ_Lo.h: Likewise.
11912         * lib/unictype/categ_Lu.h: Likewise.
11913         * lib/unictype/categ_M.h: Likewise.
11914         * lib/unictype/categ_Mc.h: Likewise.
11915         * lib/unictype/categ_Mn.h: Likewise.
11916         * lib/unictype/categ_N.h: Likewise.
11917         * lib/unictype/categ_Nd.h: Likewise.
11918         * lib/unictype/categ_Nl.h: Likewise.
11919         * lib/unictype/categ_No.h: Likewise.
11920         * lib/unictype/categ_P.h: Likewise.
11921         * lib/unictype/categ_Pd.h: Likewise.
11922         * lib/unictype/categ_Po.h: Likewise.
11923         * lib/unictype/categ_S.h: Likewise.
11924         * lib/unictype/categ_Sc.h: Likewise.
11925         * lib/unictype/categ_So.h: Likewise.
11926         * lib/unictype/categ_of.h: Likewise.
11927         * lib/unictype/combining.h: Likewise.
11928         * lib/unictype/ctype_alnum.h: Likewise.
11929         * lib/unictype/ctype_alpha.h: Likewise.
11930         * lib/unictype/ctype_graph.h: Likewise.
11931         * lib/unictype/ctype_lower.h: Likewise.
11932         * lib/unictype/ctype_print.h: Likewise.
11933         * lib/unictype/ctype_punct.h: Likewise.
11934         * lib/unictype/ctype_upper.h: Likewise.
11935         * lib/unictype/decdigit.h: Likewise.
11936         * lib/unictype/digit.h: Likewise.
11937         * lib/unictype/numeric.h: Likewise.
11938         * lib/unictype/pr_alphabetic.h: Likewise.
11939         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
11940         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
11941         * lib/unictype/pr_bidi_european_digit.h: Likewise.
11942         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
11943         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
11944         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
11945         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
11946         * lib/unictype/pr_combining.h: Likewise.
11947         * lib/unictype/pr_composite.h: Likewise.
11948         * lib/unictype/pr_currency_symbol.h: Likewise.
11949         * lib/unictype/pr_dash.h: Likewise.
11950         * lib/unictype/pr_decimal_digit.h: Likewise.
11951         * lib/unictype/pr_deprecated.h: Likewise.
11952         * lib/unictype/pr_diacritic.h: Likewise.
11953         * lib/unictype/pr_extender.h: Likewise.
11954         * lib/unictype/pr_grapheme_base.h: Likewise.
11955         * lib/unictype/pr_grapheme_extend.h: Likewise.
11956         * lib/unictype/pr_grapheme_link.h: Likewise.
11957         * lib/unictype/pr_id_continue.h: Likewise.
11958         * lib/unictype/pr_id_start.h: Likewise.
11959         * lib/unictype/pr_ideographic.h: Likewise.
11960         * lib/unictype/pr_ignorable_control.h: Likewise.
11961         * lib/unictype/pr_logical_order_exception.h: Likewise.
11962         * lib/unictype/pr_lowercase.h: Likewise.
11963         * lib/unictype/pr_numeric.h: Likewise.
11964         * lib/unictype/pr_other_alphabetic.h: Likewise.
11965         * lib/unictype/pr_punctuation.h: Likewise.
11966         * lib/unictype/pr_sentence_terminal.h: Likewise.
11967         * lib/unictype/pr_terminal_punctuation.h: Likewise.
11968         * lib/unictype/pr_unassigned_code_value.h: Likewise.
11969         * lib/unictype/pr_unified_ideograph.h: Likewise.
11970         * lib/unictype/pr_uppercase.h: Likewise.
11971         * lib/unictype/pr_xid_continue.h: Likewise.
11972         * lib/unictype/pr_xid_start.h: Likewise.
11973         * lib/unictype/pr_zero_width.h: Likewise.
11974         * lib/unictype/scripts.h: Likewise.
11975         * lib/unictype/scripts_byname.gperf: Likewise.
11976         * lib/unictype/sy_java_ident.h: Likewise.
11977         * lib/unigbrk/gbrkprop.h: Likewise.
11978         * lib/unilbrk/lbrkprop1.h: Likewise.
11979         * lib/unilbrk/lbrkprop2.h: Likewise.
11980         * lib/unilbrk/lbrktables.h: Likewise.
11981         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
11982         LBP_CP. Implement rule LB30.
11983         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
11984         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
11985         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
11986         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
11987         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
11988         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
11989         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
11990         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
11991         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
11992         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
11993         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
11994         bits instead of 16 bits in the code1 and code2 of each composition
11995         rule.
11996         (uc_composition): Update for Unicode 5.2.0.
11997         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
11998         * lib/uninorm/decomposition-table2.h: Likewise.
11999         * lib/uniwbrk/wbrkprop.h: Likewise.
12000         * tests/unicase/test-cased.c: Likewise.
12001         * tests/unicase/test-ignorable.c: Likewise.
12002         * tests/unicase/test-uc_tolower.c: Likewise.
12003         * tests/unicase/test-uc_totitle.c: Likewise.
12004         * tests/unicase/test-uc_toupper.c: Likewise.
12005         * tests/unictype/test-categ_C.c: Likewise.
12006         * tests/unictype/test-categ_Cf.c: Likewise.
12007         * tests/unictype/test-categ_Cn.c: Likewise.
12008         * tests/unictype/test-categ_L.c: Likewise.
12009         * tests/unictype/test-categ_Ll.c: Likewise.
12010         * tests/unictype/test-categ_Lm.c: Likewise.
12011         * tests/unictype/test-categ_Lo.c: Likewise.
12012         * tests/unictype/test-categ_Lu.c: Likewise.
12013         * tests/unictype/test-categ_M.c: Likewise.
12014         * tests/unictype/test-categ_Mc.c: Likewise.
12015         * tests/unictype/test-categ_Mn.c: Likewise.
12016         * tests/unictype/test-categ_N.c: Likewise.
12017         * tests/unictype/test-categ_Nd.c: Likewise.
12018         * tests/unictype/test-categ_Nl.c: Likewise.
12019         * tests/unictype/test-categ_No.c: Likewise.
12020         * tests/unictype/test-categ_P.c: Likewise.
12021         * tests/unictype/test-categ_Pd.c: Likewise.
12022         * tests/unictype/test-categ_Po.c: Likewise.
12023         * tests/unictype/test-categ_S.c: Likewise.
12024         * tests/unictype/test-categ_Sc.c: Likewise.
12025         * tests/unictype/test-categ_So.c: Likewise.
12026         * tests/unictype/test-ctype_alnum.c: Likewise.
12027         * tests/unictype/test-ctype_alpha.c: Likewise.
12028         * tests/unictype/test-ctype_graph.c: Likewise.
12029         * tests/unictype/test-ctype_lower.c: Likewise.
12030         * tests/unictype/test-ctype_print.c: Likewise.
12031         * tests/unictype/test-ctype_punct.c: Likewise.
12032         * tests/unictype/test-ctype_upper.c: Likewise.
12033         * tests/unictype/test-decdigit.h: Likewise.
12034         * tests/unictype/test-digit.h: Likewise.
12035         * tests/unictype/test-numeric.h: Likewise.
12036         * tests/unictype/test-pr_alphabetic.c: Likewise.
12037         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
12038         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
12039         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
12040         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
12041         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
12042         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
12043         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
12044         * tests/unictype/test-pr_combining.c: Likewise.
12045         * tests/unictype/test-pr_composite.c: Likewise.
12046         * tests/unictype/test-pr_currency_symbol.c: Likewise.
12047         * tests/unictype/test-pr_dash.c: Likewise.
12048         * tests/unictype/test-pr_decimal_digit.c: Likewise.
12049         * tests/unictype/test-pr_deprecated.c: Likewise.
12050         * tests/unictype/test-pr_diacritic.c: Likewise.
12051         * tests/unictype/test-pr_extender.c: Likewise.
12052         * tests/unictype/test-pr_grapheme_base.c: Likewise.
12053         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
12054         * tests/unictype/test-pr_grapheme_link.c: Likewise.
12055         * tests/unictype/test-pr_id_continue.c: Likewise.
12056         * tests/unictype/test-pr_id_start.c: Likewise.
12057         * tests/unictype/test-pr_ideographic.c: Likewise.
12058         * tests/unictype/test-pr_ignorable_control.c: Likewise.
12059         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
12060         * tests/unictype/test-pr_lowercase.c: Likewise.
12061         * tests/unictype/test-pr_numeric.c: Likewise.
12062         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
12063         * tests/unictype/test-pr_punctuation.c: Likewise.
12064         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
12065         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
12066         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
12067         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
12068         * tests/unictype/test-pr_uppercase.c: Likewise.
12069         * tests/unictype/test-pr_xid_continue.c: Likewise.
12070         * tests/unictype/test-pr_xid_start.c: Likewise.
12071         * tests/unictype/test-pr_zero_width.c: Likewise.
12072         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
12073         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
12074         changed behaviour: line breaking is now disallowed between a letter
12075         or '=' and '('.
12076         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
12077         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
12078         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
12079         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
12080         * tests/uniwidth/test-uc_width2.sh: Same updates as in
12081         lib/uniwidth/width.c.
12082         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
12083         without comments, but with the original copyright notice.
12084         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
12085         changes.
12086         * lib/unictype/categ_Cc.h: Likewise.
12087         * lib/unictype/categ_Co.h: Likewise.
12088         * lib/unictype/categ_Cs.h: Likewise.
12089         * lib/unictype/categ_Lt.h: Likewise.
12090         * lib/unictype/categ_Me.h: Likewise.
12091         * lib/unictype/categ_Pc.h: Likewise.
12092         * lib/unictype/categ_Pe.h: Likewise.
12093         * lib/unictype/categ_Pf.h: Likewise.
12094         * lib/unictype/categ_Pi.h: Likewise.
12095         * lib/unictype/categ_Ps.h: Likewise.
12096         * lib/unictype/categ_Sk.h: Likewise.
12097         * lib/unictype/categ_Sm.h: Likewise.
12098         * lib/unictype/categ_Z.h: Likewise.
12099         * lib/unictype/categ_Zl.h: Likewise.
12100         * lib/unictype/categ_Zp.h: Likewise.
12101         * lib/unictype/categ_Zs.h: Likewise.
12102         * lib/unictype/ctype_blank.h: Likewise.
12103         * lib/unictype/ctype_cntrl.h: Likewise.
12104         * lib/unictype/ctype_digit.h: Likewise.
12105         * lib/unictype/ctype_space.h: Likewise.
12106         * lib/unictype/ctype_xdigit.h: Likewise.
12107         * lib/unictype/mirror.h: Likewise.
12108         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
12109         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
12110         * lib/unictype/pr_bidi_block_separator.h: Likewise.
12111         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
12112         * lib/unictype/pr_bidi_common_separator.h: Likewise.
12113         * lib/unictype/pr_bidi_control.h: Likewise.
12114         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
12115         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
12116         * lib/unictype/pr_bidi_pdf.h: Likewise.
12117         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
12118         * lib/unictype/pr_bidi_whitespace.h: Likewise.
12119         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
12120         * lib/unictype/pr_format_control.h: Likewise.
12121         * lib/unictype/pr_hex_digit.h: Likewise.
12122         * lib/unictype/pr_hyphen.h: Likewise.
12123         * lib/unictype/pr_ids_binary_operator.h: Likewise.
12124         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
12125         * lib/unictype/pr_iso_control.h: Likewise.
12126         * lib/unictype/pr_join_control.h: Likewise.
12127         * lib/unictype/pr_left_of_pair.h: Likewise.
12128         * lib/unictype/pr_line_separator.h: Likewise.
12129         * lib/unictype/pr_math.h: Likewise.
12130         * lib/unictype/pr_non_break.h: Likewise.
12131         * lib/unictype/pr_not_a_character.h: Likewise.
12132         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
12133         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
12134         * lib/unictype/pr_other_id_continue.h: Likewise.
12135         * lib/unictype/pr_other_id_start.h: Likewise.
12136         * lib/unictype/pr_other_lowercase.h: Likewise.
12137         * lib/unictype/pr_other_math.h: Likewise.
12138         * lib/unictype/pr_other_uppercase.h: Likewise.
12139         * lib/unictype/pr_paired_punctuation.h: Likewise.
12140         * lib/unictype/pr_paragraph_separator.h: Likewise.
12141         * lib/unictype/pr_pattern_syntax.h: Likewise.
12142         * lib/unictype/pr_pattern_white_space.h: Likewise.
12143         * lib/unictype/pr_private_use.h: Likewise.
12144         * lib/unictype/pr_quotation_mark.h: Likewise.
12145         * lib/unictype/pr_radical.h: Likewise.
12146         * lib/unictype/pr_soft_dotted.h: Likewise.
12147         * lib/unictype/pr_space.h: Likewise.
12148         * lib/unictype/pr_titlecase.h: Likewise.
12149         * lib/unictype/pr_variation_selector.h: Likewise.
12150         * lib/unictype/pr_white_space.h: Likewise.
12151         * lib/unictype/sy_c_ident.h: Likewise.
12152         * lib/unictype/sy_c_whitespace.h: Likewise.
12153         * lib/unictype/sy_java_whitespace.h: Likewise.
12154         * modules/uni*/*: Bump version number of expected libunistring version.
12155         Reported by Simon Josefsson.
12156
12157 2011-01-09  Karl Heuer  <kwzh@gnu.org>
12158
12159         useless-if-before-free: fix typo in --help and make the internal,
12160         automatic version date update process work once again.
12161         --help output contained a NUL character instead of the
12162         backslash-zero that was intended.  Also, the "must lie within
12163         the first 8 lines" line is on line 9, and hence not getting
12164         automatically updated.
12165         * build-aux/useless-if-before-free: Fix the former by adding a
12166         backslash, and the latter by condensing the three lines of what-it-does
12167         to a single line, leaving one line of slack for the future.
12168
12169 2011-01-09  Bruno Haible  <bruno@clisp.org>
12170
12171         uniwidth/width: Fix width of U+1D173..U+1D17A.
12172         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
12173         symbolic_width, output_width_property_test): New functions.
12174         (main): Invoke output_nonspacing_property, output_width_property_test.
12175         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
12176         U+1D173..U+1D17A.
12177         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
12178         1.
12179         * modules/uniwidth/*: Bump version number of expected libunistring
12180         version.
12181         * modules/unilbrk/*: Likewise.
12182
12183 2011-01-08  Bruno Haible  <bruno@clisp.org>
12184
12185         uninorm tests: Preserve copyright of Unicode data file.
12186         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
12187         Mention modifications.
12188
12189 2011-01-08  Bruno Haible  <bruno@clisp.org>
12190
12191         gen-uni-tables: Prepare for Unicode 5.2.0.
12192         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
12193         (debug_output_lbp, output_lbp): Update.
12194
12195 2011-01-08  Bruno Haible  <bruno@clisp.org>
12196
12197         unilbrk: Clarify gen-uni-tables.c code.
12198         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
12199         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
12200         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
12201
12202 2011-01-07  Bruno Haible  <bruno@clisp.org>
12203
12204         strtod: Restore errno when successfully parsing Infinity or NaN.
12205         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
12206         restore the original errno.
12207
12208 2011-01-07  Bruno Haible  <bruno@clisp.org>
12209
12210         remove test: Avoid failure on HP-UX 11.
12211         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
12212
12213 2011-01-07  Bruno Haible  <bruno@clisp.org>
12214
12215         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
12216         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
12217         error code.
12218
12219 2011-01-07  Pádraig Brady <P@draigBrady.com>
12220
12221         ignore-value: fixup comments, and add Eric Blake
12222         as an author since he rewrote the macros.
12223         * lib/ignore-value.h (ignore_value):  State that
12224         we now support aggregates.  Also specify exactly
12225         when the GCC warn_unused_result feature was added.
12226
12227 2011-01-06  Eric Blake  <eblake@redhat.com>
12228
12229         ignore-value: support aggregate types
12230         * lib/ignore-value.h (ignore_value): Provide separate gcc
12231         definition.
12232         * modules/ignore-value-tests: New test module.
12233         * tests/test-ignore-value.c: New test.
12234
12235         maint.mk: improve sc_prohibit_strcmp regex
12236         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
12237         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
12238         definition of STRNEQ.
12239
12240         signal: work around Haiku issue with SIGBUS
12241         * lib/siglist.h: Add comment.
12242         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
12243         strsignal's favoring of SIGSEGV.
12244         * tests/test-signal.c (main): Avoid test failure.
12245         * doc/posix-headers/signal.texi (signal.h): Document the issue.
12246         Reported by Scott McCreary.
12247
12248         maint.mk: add pre-release check to ensure submodule commits are public
12249         * top/maint.mk (public-submodule-commit): New rule.
12250         (submodule-checks): New variable.
12251         (alpha beta stable): Depend on the variable.
12252
12253 2011-01-05  Pádraig Brady <P@draigBrady.com>
12254         and Jim Meyering  <meyering@redhat.com>
12255
12256         ignore-value: make ignore_value more generic; deprecate ignore_ptr
12257         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
12258         (ATTRIBUTE_DEPRECATED): Define.
12259         (_ignore_case): New function.
12260         (ignore_value): New macro, to replace the old function.
12261         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
12262         * modules/ignore-value (Depends-on): Add stdint.
12263
12264 2011-01-04  Eric Blake  <eblake@redhat.com>
12265
12266         doc: regenerate INSTALL
12267         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
12268         @firstparagraphindent support, now that autoconf dropped it.
12269         (INSTALL_PRELUDE): Reinstate old macro.
12270         * doc/install.texi: Resync from autoconf.
12271         * doc/INSTALL: Reflect recent autoconf update.
12272         * doc/INSTALL.ISO: Likewise.
12273         * doc/INSTALL.UTF-8: Likewise.
12274         Reported by Karl Berry.
12275
12276 2011-01-04  Bruce Korb  <address@hidden>
12277
12278         git-version-gen: avoid a sub-shell
12279         * build-aux/git-version-gen: Redirect stderr in `...` via
12280         "exec 2>...", rather than via an added sub-shell.
12281
12282 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
12283
12284         git-version-gen: use (...) rather than sh -c '...'
12285         * build-aux/git-version-gen: Rather than hard-coding a shell's name
12286         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
12287
12288 2011-01-03  Jim Meyering  <meyering@redhat.com>
12289
12290         git-version-gen: convert leading TABs to spaces
12291         * build-aux/git-version-gen: Expand leading TABs.
12292
12293         git-version-gen: handle failed "git rev-list"
12294         * build-aux/git-version-gen: Rather than leaking a "fatal" error
12295         from git and proceeding as if it had succeeded but printed no SHA1
12296         checksums, suppress the diagnostic and handle the failure.
12297         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
12298
12299         git-version-gen: include command name in one more diagnostic
12300         * build-aux/git-version-gen: When the required .tarball-version file
12301         was missing or unreadable, you might see the diagnostic from "cat",
12302         but no trace of the name of the invoking script.  Now, you still see
12303         the diagnostic from cat, but also get one from "git-version-gen: ".
12304         Inspired by a patch from Bruce Korb.
12305
12306         update-copyright: adjust test to match changed code
12307         * tests/test-update-copyright.sh: Change test's expected output
12308         to match new actual output.
12309
12310 2011-01-02  Bruno Haible  <bruno@clisp.org>
12311
12312         getlogin_r: Avoid test failure on HP-UX 11.
12313         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
12314         ERANGE when the second argument is zero.
12315         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
12316         portability problem.
12317
12318 2011-01-02  Bruce Korb  <bkorb@gnu.org>
12319
12320         * build-aux/update-copyright: doc Simon's changes
12321
12322 2011-01-02  Simon Josefsson  <simon@josefsson.org>
12323
12324         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
12325         environment variable.
12326
12327 2011-01-02  Bruno Haible  <bruno@clisp.org>
12328
12329         unigbrk: Avoid gcc warnings.
12330         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
12331         unused variable.
12332         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
12333         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
12334         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
12335         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
12336         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
12337         Change type of first argument to 'const char *'.
12338         (main): Remove unused variable.
12339         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
12340         type of first argument to 'const char *'.
12341         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
12342         Likewise.
12343         (main): Change type of variable 's'.
12344         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
12345         to 'int'.
12346
12347 2011-01-02  Bruno Haible  <bruno@clisp.org>
12348
12349         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
12350         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
12351         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
12352         bug.
12353         * lib/pwrite.c: Undo 2010-12-31 patch.
12354         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
12355
12356 2011-01-02  Bruno Haible  <bruno@clisp.org>
12357
12358         pread: Fix test whether it works.
12359         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
12360
12361 2011-01-02  Bruno Haible  <bruno@clisp.org>
12362
12363         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
12364         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
12365         ends in "6". Don't require a specific month name. Try also the locale
12366         names found on HP-UX 11 and Solaris 7.
12367
12368 2011-01-02  Bruno Haible  <bruno@clisp.org>
12369
12370         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
12371         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
12372         C linkage.
12373         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
12374
12375 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
12376
12377         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
12378         for consistency, since the "cluster" term is not used elsewhere.
12379         * lib/unigbrk.in.h: Update name.
12380         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
12381         * lib/unigbrk/u16-grapheme-next.c: Update name.
12382         * lib/unigbrk/u16-grapheme-prev.c: Update name.
12383         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
12384         * lib/unigbrk/u32-grapheme-next.c: Update name.
12385         * lib/unigbrk/u32-grapheme-prev.c: Update name.
12386         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
12387         * lib/unigbrk/u8-grapheme-next.c: Update name.
12388         * lib/unigbrk/u8-grapheme-prev.c: Update name.
12389         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
12390         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
12391         Suggested by Bruno Haible.
12392
12393 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
12394
12395         Remove module 'u8-grapheme-len' as too redundant with
12396         'u8-grapheme-next'.
12397         * modules/unigbrk/u8-grapheme-len: Delete file.
12398         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
12399         * lib/unigbrk.in.h: Remove prototype for deleted function.
12400         * lib/unigbrk/u8-grapheme-len.c: Delete file.
12401         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
12402
12403         Remove module 'u16-grapheme-len' as too redundant with
12404         'u16-grapheme-next'.
12405         * modules/unigbrk/u16-grapheme-len: Delete file.
12406         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
12407         * lib/unigbrk.in.h: Remove prototype for deleted function.
12408         * lib/unigbrk/u16-grapheme-len.c: Delete file.
12409         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
12410
12411         Remove module 'u32-grapheme-len' as too redundant with
12412         'u32-grapheme-next'.
12413         * modules/unigbrk/u32-grapheme-len: Delete file.
12414         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
12415         * lib/unigbrk.in.h: Remove prototype for deleted function.
12416         * lib/unigbrk/u32-grapheme-len.c: Delete file.
12417         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
12418
12419         Suggested by Bruno Haible.
12420
12421 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
12422
12423         * unigbrk.in.h: Fix typo: "ben" => "been".
12424         Reported by Bruno Haible.
12425
12426 2011-01-01  Jim Meyering  <meyering@redhat.com>
12427
12428         maint: update almost all copyright ranges to include 2011
12429         Run the new "make update-copyright" rule.
12430
12431 2011-01-01  Jim Meyering  <meyering@redhat.com>
12432
12433         maint: update-copyright: exempt doc/INSTALL*
12434         * Makefile (update-copyright): Also exclude doc/INSTALL*,
12435         since they are generated.  Suggested by Bruno Haible.
12436
12437 2011-01-01  Jim Meyering  <meyering@redhat.com>
12438
12439         maint: refine the update-copyright rule
12440         * Makefile (update-copyright): Also exclude any file that includes
12441         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
12442         code that merely generates the comment.
12443
12444 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
12445
12446         New module 'u8-grapheme-len'.
12447         * modules/unigbrk/u8-grapheme-len: New file.
12448         * modules/unigbrk/u8-grapheme-len-tests: New file.
12449         * lib/unigbrk.in.h: Add prototype for new function.
12450         * lib/unigbrk/u8-grapheme-len.c: New file.
12451         * tests/unigbrk/test-u8-grapheme-len.c: New file.
12452
12453         New module 'u16-grapheme-len'.
12454         * modules/unigbrk/u16-grapheme-len: New file.
12455         * modules/unigbrk/u16-grapheme-len-tests: New file.
12456         * lib/unigbrk.in.h: Add prototype for new function.
12457         * lib/unigbrk/u16-grapheme-len.c: New file.
12458         * tests/unigbrk/test-u16-grapheme-len.c: New file.
12459
12460         New module 'u32-grapheme-len'.
12461         * modules/unigbrk/u32-grapheme-len: New file.
12462         * modules/unigbrk/u32-grapheme-len-tests: New file.
12463         * lib/unigbrk.in.h: Add prototype for new function.
12464         * lib/unigbrk/u32-grapheme-len.c: New file.
12465         * tests/unigbrk/test-u32-grapheme-len.c: New file.
12466
12467         New module 'u8-grapheme-next'.
12468         * modules/unigbrk/u8-grapheme-next: New file.
12469         * modules/unigbrk/u8-grapheme-next-tests: New file.
12470         * lib/unigbrk.in.h: Add prototype for new function.
12471         * lib/unigbrk/u8-grapheme-next.c: New file.
12472         * tests/unigbrk/test-u8-grapheme-next.c: New file.
12473
12474         New module 'u16-grapheme-next'.
12475         * modules/unigbrk/u16-grapheme-next: New file.
12476         * modules/unigbrk/u16-grapheme-next-tests: New file.
12477         * lib/unigbrk.in.h: Add prototype for new function.
12478         * lib/unigbrk/u16-grapheme-next.c: New file.
12479         * tests/unigbrk/test-u16-grapheme-next.c: New file.
12480
12481         New module 'u32-grapheme-next'.
12482         * modules/unigbrk/u32-grapheme-next: New file.
12483         * modules/unigbrk/u32-grapheme-next-tests: New file.
12484         * lib/unigbrk.in.h: Add prototype for new function.
12485         * lib/unigbrk/u32-grapheme-next.c: New file.
12486         * tests/unigbrk/test-u32-grapheme-next.c: New file.
12487
12488         New module 'u8-grapheme-prev'.
12489         * modules/unigbrk/u8-grapheme-prev: New file.
12490         * modules/unigbrk/u8-grapheme-prev-tests: New file.
12491         * lib/unigbrk.in.h: Add prototype for new function.
12492         * lib/unigbrk/u8-grapheme-prev.c: New file.
12493         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
12494
12495         New module 'u16-grapheme-prev'.
12496         * modules/unigbrk/u16-grapheme-prev: New file.
12497         * modules/unigbrk/u16-grapheme-prev-tests: New file.
12498         * lib/unigbrk.in.h: Add prototype for new function.
12499         * lib/unigbrk/u16-grapheme-prev.c: New file.
12500         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
12501
12502         New module 'u32-grapheme-prev'.
12503         * modules/unigbrk/u32-grapheme-prev: New file.
12504         * modules/unigbrk/u32-grapheme-prev-tests: New file.
12505         * lib/unigbrk.in.h: Add prototype for new function.
12506         * lib/unigbrk/u32-grapheme-prev.c: New file.
12507         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
12508
12509         New module 'u8-grapheme-breaks'.
12510         * modules/unigbrk/u8-grapheme-breaks: New file.
12511         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
12512         * lib/unigbrk.in.h: Add prototype for new function.
12513         * lib/unigbrk/u8-grapheme-breaks.c: New file.
12514         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
12515
12516         New module 'u16-grapheme-breaks'.
12517         * modules/unigbrk/u16-grapheme-breaks: New file.
12518         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
12519         * lib/unigbrk.in.h: Add prototype for new function.
12520         * lib/unigbrk/u16-grapheme-breaks.c: New file.
12521         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
12522
12523         New module 'u32-grapheme-breaks'.
12524         * modules/unigbrk/u32-grapheme-breaks: New file.
12525         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
12526         * lib/unigbrk.in.h: Add prototype for new function.
12527         * lib/unigbrk/u32-grapheme-breaks.c: New file.
12528         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
12529
12530         New module 'ulc-grapheme-breaks'.
12531         * modules/unigbrk/ulc-grapheme-breaks: New file.
12532         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
12533         * m4/locale-ar.m4: New file.
12534         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
12535         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
12536         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
12537
12538 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
12539
12540         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
12541         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
12542         modified how this file was generated before I initially submitted
12543         the module, but failed to regenerate it.  This meant that several
12544         of the level2 entries were wrong.
12545         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
12546         Remove the division-by-2 that is folded into the table now that
12547         gbrkprop.h has been regenerated properly.  Now -1 entries are
12548         handled correctly.
12549
12550         New module 'unigbrk/uc-gbrk-prop-tests'.
12551         * modules/unigbrk/uc-gbrk-prop-tests: New file.
12552         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
12553         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
12554         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
12555
12556 2011-01-01  Bruno Haible  <bruno@clisp.org>
12557
12558         Avoid use of hexadecimal escapes.
12559         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
12560         instead of hexadecimal escapes.
12561
12562 2011-01-01  Jim Meyering  <meyering@redhat.com>
12563
12564         maint: new rule to update copyright year ranges
12565         * Makefile (update-copyright): New rule.
12566
12567         maint: indent with TABs in Makefile
12568         * Makefile: Expand leading sequences of spaces to TABs
12569
12570         version-etc: update the copyright year it reports
12571         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
12572
12573 2010-12-31  Bruno Haible  <bruno@clisp.org>
12574
12575         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
12576         * lib/isfinite.c (zerof, zerod, zerol): New variables.
12577         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
12578         zero.
12579
12580 2010-12-31  Bruno Haible  <bruno@clisp.org>
12581
12582         pwrite: Work around HP-UX 11.11 bug.
12583         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
12584         works and set REPLACE_PWRITE if not.
12585         * lib/pwrite.c (pwrite): Add an implementation that uses the system
12586         function.
12587         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
12588
12589 2010-12-31  Bruno Haible  <bruno@clisp.org>
12590
12591         pread: Work around HP-UX 11 bugs.
12592         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
12593         and set REPLACE_PREAD if not.
12594         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
12595
12596 2010-12-31  Eric Blake  <eblake@redhat.com>
12597
12598         nl_langinfo: fix YESEXPR on Irix 6.5
12599         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
12600         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
12601         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
12602         it.
12603
12604 2010-12-31  Bruno Haible  <bruno@clisp.org>
12605
12606         iconv: Document HP-UX 11 bug.
12607         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
12608
12609 2010-12-31  Bruno Haible  <bruno@clisp.org>
12610
12611         ldexpl: Fix link error on HP-UX 11.
12612         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
12613         LDEXPL_LIBM, using $ISNANL_LIBM.
12614
12615 2010-12-31  Eric Blake  <eblake@redhat.com>
12616
12617         ftello: avoid compilation failure with SunStudio c89
12618         * lib/ftello.c (ftello): Use lseek, not llseek.
12619
12620         tests: avoid failing coreutils tests on cygwin
12621         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
12622         (create_exe_shims_): Return 0 when skipping.
12623
12624 2010-12-31  Bruno Haible  <bruno@clisp.org>
12625
12626         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
12627         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
12628
12629 2010-12-31  Bruno Haible  <bruno@clisp.org>
12630
12631         waitpid: Fix link error in C++ mode.
12632         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
12633
12634 2010-12-31  Bruno Haible  <bruno@clisp.org>
12635
12636         isnan: Use GCC built-ins when possible.
12637         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
12638         __builtin_isnan.
12639         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
12640         (isnan): Define using GCC built-ins for GCC >= 4.0.
12641
12642 2010-12-31  Bruno Haible  <bruno@clisp.org>
12643
12644         isnand: Fix mistake.
12645         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
12646         __builtin_isnand.
12647
12648 2010-12-31  Bruno Haible  <bruno@clisp.org>
12649
12650         open: Avoid C++ error on HP-UX 11.
12651         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
12652
12653 2010-12-31  Bruno Haible  <bruno@clisp.org>
12654
12655         time_r: Add missing declarations on HP-UX 11.
12656         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
12657         instead of HAVE_LOCALTIME_R.
12658         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
12659         HAVE_LOCALTIME_R always.
12660         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
12661         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
12662         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
12663         HAVE_LOCALTIME_R.
12664         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
12665         * doc/posix-functions/localtime_r.texi: Likewise.
12666
12667 2010-12-29  Eric Blake  <eblake@redhat.com>
12668
12669         mountlist: tweak previous commit
12670         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
12671         Reported by Paul Eggert.
12672
12673         mountlist: fix local drive detection on cygwin
12674         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
12675         that works for cygwin.
12676
12677 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
12678
12679         ftoastr, snprintf: ftoastr + snprintf module
12680         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
12681         since the snprintf module now should be good enough here.
12682         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
12683         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
12684         and gl_MODULE_INDICATOR([snprintf]), but the former enables
12685         GNULIB_SNPRINTF only for the test directory, and the latter
12686         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
12687         seems to suffice by itself.
12688
12689 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
12690
12691         alloca: one step towards thread-safety
12692         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
12693         need for a static variable.  All callers changed.  This does not
12694         make the alloca replacement thread-safe, but it's one step.
12695
12696         tests: minor indenting change
12697         * tests/init.sh: Sync from coreutils housekeeping patch
12698         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
12699         to keep lines within 80 columns.
12700
12701 2010-12-28  Jim Meyering  <meyering@redhat.com>
12702
12703         regex: don't infloop on persistent failing calloc
12704         * lib/regexec.c (build_trtable): Return failure indication upon
12705         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
12706         In glibc, this was fixed for version 2.13:
12707         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
12708
12709 2010-12-28  Bruno Haible  <bruno@clisp.org>
12710             Paul Eggert <eggert@cs.ucla.edu>
12711
12712         linkat: Make implementation robust against system behaviour variations.
12713         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
12714         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
12715         way, and to -2 if it needs a generic runtime test.
12716         * lib/linkat.c (solaris_optimized_link_immediate,
12717         solaris_optimized_link_follow): New functions.
12718         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
12719         (check_same_link): Use it.
12720
12721 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
12722
12723         New module 'unigbrk/base'.
12724         * modules/unigbrk/base: New file.
12725         * lib/unigbrk.in.h: New file.
12726
12727         New module 'unigbrk/uc-gbrk-prop'.
12728         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
12729         * modules/unigbrk/uc-gbrk-prop: New file.
12730         * lib/unigbrk/gbrkprop.h: New file.
12731         * lib/unigbrk/uc-gbrk-prop.c: New file.
12732
12733         New module 'unigbrk/uc-is-grapheme-break'.
12734         * modules/unigbrk/uc-is-grapheme-break: New file.
12735         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
12736         * lib/unigbrk/uc-is-grapheme-break.c: New file.
12737         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
12738         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
12739         * tests/unigbrk/GraphemeBreakTest.txt: New file.
12740
12741         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
12742
12743 2010-12-27  Bruno Haible  <bruno@clisp.org>
12744
12745         linkat test: Avoid failure on Solaris 11 2010-11.
12746         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
12747
12748 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
12749
12750         utimens: work around glibc rounding bug on more platforms
12751         * lib/utimens.c (fdutimens): Work around rounding bug even if
12752         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
12753         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
12754
12755 2010-12-27  Bruno Haible  <bruno@clisp.org>
12756
12757         select tests: Improve comments.
12758         * tests/test-select.c (do_select): Add comments.
12759
12760 2010-12-27  Bruno Haible  <bruno@clisp.org>
12761
12762         select tests: Safer way of handling timeout.
12763         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
12764         at every invocation.
12765
12766 2010-12-27  Bruno Haible  <bruno@clisp.org>
12767
12768         select tests: Use 'bool' where appropriate.
12769         * tests/test-select.c (connect_to_socket): Change argument type to
12770         'bool'.
12771
12772 2010-12-27  Bruno Haible  <bruno@clisp.org>
12773
12774         select tests: Use existing modules.
12775         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
12776         (configure.ac): Don't test for unistd.h.
12777         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
12778         declared in <unistd.h>.
12779
12780 2010-12-27  Bruno Haible  <bruno@clisp.org>
12781
12782         mbrtowc: Work around a Solaris 7 bug.
12783         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
12784         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
12785         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
12786         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
12787         MBRTOWC_NULL_ARG1_BUG.
12788         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
12789         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
12790         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
12791         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
12792
12793 2010-12-27  Jim Meyering  <meyering@redhat.com>
12794
12795         read-file.c: tweak syntax
12796         * lib/read-file.c (fread_file): Remove space after "*" in function
12797         definitions.
12798
12799 2010-12-27  Bruno Haible  <bruno@clisp.org>
12800
12801         times test: Avoid gcc warnings on OSF/1.
12802         * tests/test-times.c (main): Cast printf arguments from clock_t to
12803         'long int'.
12804
12805 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
12806
12807         utimens: work around glibc rounding bug on older Linux kernels
12808         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
12809         on Linux with a glibc whose utimes might not work, then work
12810         around a longstanding glibc bug involving rounding rather than
12811         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
12812         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
12813
12814 2010-12-26  Bruno Haible  <bruno@clisp.org>
12815
12816         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
12817         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
12818         _GL_CXXALIAS_SYS.
12819         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
12820
12821 2010-12-26  Bruno Haible  <bruno@clisp.org>
12822
12823         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
12824         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
12825         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
12826         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
12827         looking for the declaration.
12828         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
12829         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
12830         problem.
12831         * doc/posix-functions/inet_pton.texi: Likewise.
12832
12833 2010-12-26  Bruno Haible  <bruno@clisp.org>
12834
12835         arpa_inet: Use the common idioms with C++ support.
12836         * lib/arpa_inet.in.h: Include c++defs.h.
12837         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
12838         support.
12839         * modules/arpa_inet (Depends-on): Add c++defs.
12840         (Makefile.am): Substitute the contents of c++defs.h.
12841         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
12842         * modules/arpa_inet-c++-tests: New file.
12843         * tests/test-arpa_inet-c++.cc: New file.
12844
12845 2010-12-25  Bruno Haible  <bruno@clisp.org>
12846
12847         Fix more C++ link errors on Solaris 8.
12848         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
12849         $(LIB_EACCESS).
12850         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
12851         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
12852         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
12853         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
12854         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
12855
12856 2010-12-25  Bruno Haible  <bruno@clisp.org>
12857
12858         printf-posix: Fix link error when a non-GCC compiler is used.
12859         * lib/stdio.in.h (printf): When not using GCC, override printf
12860         correctly.
12861         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
12862
12863 2010-12-25  Bruno Haible  <bruno@clisp.org>
12864
12865         strerror_r-posix: Update doc.
12866         * doc/posix-functions/strerror_r.texi: Update doc about the return
12867         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
12868
12869 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
12870
12871         utimens: simplify the logic of the previous change
12872         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
12873         This should not affect whether the test succeeds or fails.
12874
12875         utimens: configure better on hosts with NFS clock skew
12876         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
12877         uses the clock of the local host.  It might use the clock of the
12878         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
12879         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
12880
12881 2010-12-25  Bruno Haible  <bruno@clisp.org>
12882
12883         ptsname test: Avoid failure on Solaris.
12884         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
12885         open a pseudo-terminal; don't use BSD-style ptys.
12886         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
12887
12888 2010-12-25  Bruno Haible  <bruno@clisp.org>
12889
12890         ptsname: Avoid ERANGE failure on some systems.
12891         * lib/ptsname.c (buffer): Increase size.
12892
12893 2010-12-25  Bruno Haible  <bruno@clisp.org>
12894
12895         rename, renameat: Avoid test failures at NFS mounted locations.
12896         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
12897         so that subsequent mkdir calls succeed.
12898
12899 2010-12-25  Bruno Haible  <bruno@clisp.org>
12900
12901         iswblank: Fix C++ link error on Solaris 8.
12902         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
12903         _GL_FUNCDECL_SYS.
12904
12905 2010-12-25  Bruno Haible  <bruno@clisp.org>
12906
12907         unistd: Fix C++ link error on Solaris 8.
12908         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
12909
12910 2010-12-25  Bruno Haible  <bruno@clisp.org>
12911
12912         readlink doc: Mention an old glibc bug.
12913         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
12914
12915 2010-12-25  Bruno Haible  <bruno@clisp.org>
12916
12917         fcntl-h: Fix for use of C++ on glibc systems.
12918         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
12919         also on glibc systems in C++ mode.
12920         Reported by Gary V. Vaughan <gary@gnu.org>.
12921
12922 2010-12-25  Bruno Haible  <bruno@clisp.org>
12923
12924         roundl-ieee: Make it work on OSF/1 5.1 with cc.
12925         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
12926
12927 2010-12-25  Bruno Haible  <bruno@clisp.org>
12928
12929         truncl-ieee: Make it work on OSF/1 5.1 with cc.
12930         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
12931         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
12932         test whether truncl works according to ISO C 99 with IEC 60559.
12933         * m4/truncl-ieee.m4: New file.
12934         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
12935         m4/signbit.m4.
12936         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
12937
12938 2010-12-25  Bruno Haible  <bruno@clisp.org>
12939
12940         ceill-ieee: Make it work on OSF/1 5.1 with cc.
12941         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
12942         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
12943         test whether ceill works according to ISO C 99 with IEC 60559.
12944         * m4/ceill-ieee.m4: New file.
12945         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
12946         m4/signbit.m4.
12947         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
12948
12949 2010-12-25  Bruno Haible  <bruno@clisp.org>
12950
12951         Ensure all prerequisites of <wchar.h> are included.
12952         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
12953         before <wchar.h>.
12954         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
12955         gl_MBRLEN_NUL_RETVAL): Likewise.
12956         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
12957         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
12958         AC_FUNC_MBRTOWC): Likewise.
12959         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
12960         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
12961         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
12962         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
12963         Likewise.
12964         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
12965         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
12966         (gl_WCHAR_H): Improve comments.
12967         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
12968
12969 2010-12-25  Bruno Haible  <bruno@clisp.org>
12970
12971         strtok_r: Fix C syntax error in autoconf macro.
12972         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
12973         characters in test program.
12974
12975 2010-12-24  Bruno Haible  <bruno@clisp.org>
12976
12977         ceil, trunc, round: Fix gcc warnings.
12978         * lib/ceil.c (MIN): Undefine before redefining.
12979         * lib/trunc.c (MIN): Likewise.
12980         * lib/round.c (MIN): Likewise.
12981         Include <math.h> first.
12982
12983 2010-12-24  Bruno Haible  <bruno@clisp.org>
12984
12985         select tests: Avoid failures on OSF/1 5.1.
12986         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
12987         failure of closing the last socket; it may fail with ECONNRESET.
12988
12989 2010-12-24  Eric Blake  <eblake@redhat.com>
12990
12991         stdint: avoid HP-UX 10.20 preprocessor bug
12992         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
12993         than #if.
12994         * tests/test-floor2.c (main): Likewise.
12995         Reported by Peter O'Gorman.
12996
12997         pipe: make obsoletion transition easier
12998         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
12999         * modules/pipe (Files): Include revived file.
13000         (Include): Drop reference, to mirror getdate's behavior.
13001
13002 2010-12-24  Bruno Haible  <bruno@clisp.org>
13003
13004         sys_socket: Hide mismatch of declarations on NonStop Kernel.
13005         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
13006         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
13007         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13008
13009 2010-12-24  Bruno Haible  <bruno@clisp.org>
13010
13011         gethostname: Ensure declaration on NonStop Kernel.
13012         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
13013         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13014
13015 2010-12-24  Bruno Haible  <bruno@clisp.org>
13016
13017         sys_select: Ensure all necessary types on NonStop Kernel.
13018         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
13019         include <sys/time.h>.
13020         * doc/posix-headers/sys_select.texi: Mention that it's missing on
13021         NonStop Kernel.
13022         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13023
13024 2010-12-24  Bruno Haible  <bruno@clisp.org>
13025
13026         sys_select: Remove unneeded include.
13027         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
13028         have <sys/select.h>.
13029
13030 2010-12-24  Bruno Haible  <bruno@clisp.org>
13031
13032         gethostname: Provide a fallback for HOST_NAME_MAX.
13033         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
13034         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
13035         instead.
13036         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13037
13038 2010-12-24  Bruno Haible  <bruno@clisp.org>
13039
13040         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
13041         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
13042         (SA_RESTART): Likewise.
13043         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13044
13045 2010-12-24  Bruno Haible  <bruno@clisp.org>
13046
13047         signal: Define NSIG.
13048         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
13049         * tests/test-signal.c (nsig): New variable.
13050         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13051
13052 2010-12-24  Bruno Haible  <bruno@clisp.org>
13053
13054         rename, renameat: Avoid test failures on OSF/1 5.1.
13055         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
13056         alternative error codes.
13057         * tests/test-renameat.c (main): Likewise.
13058
13059 2010-12-24  Bruno Haible  <bruno@clisp.org>
13060
13061         *printf: Detect large precisions bug on Solaris 10/SPARC.
13062         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
13063         by Paul Eggert.
13064         * tests/test-snprintf-posix.h (test_function): Add this test code here
13065         too.
13066         * tests/test-sprintf-posix.h (test_function): Likewise.
13067         * tests/test-vasnprintf-posix.c (test_function): Likewise.
13068         * tests/test-vasprintf-posix.c (test_function): Likewise.
13069         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
13070         around by gnulib.
13071         * doc/posix-functions/printf.texi: Likewise.
13072         * doc/posix-functions/snprintf.texi: Likewise.
13073         * doc/posix-functions/sprintf.texi: Likewise.
13074         * doc/posix-functions/vfprintf.texi: Likewise.
13075         * doc/posix-functions/vprintf.texi: Likewise.
13076         * doc/posix-functions/vsnprintf.texi: Likewise.
13077         * doc/posix-functions/vsprintf.texi: Likewise.
13078         * doc/posix-functions/dprintf.texi: Undo last commit.
13079         * doc/posix-functions/vdprintf.texi: Likewise.
13080
13081 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
13082
13083         tests: port test-fdutimensat.c to Solaris 8
13084         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
13085         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
13086         On Solaris 8, it fails with errno == ENOSYS, because there is no
13087         futimens (so it can't use the fd), and there is no lutimens (so it
13088         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
13089
13090         vsnprintf: make more consistent with snprintf; doc fixes
13091
13092         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
13093         the byte count return problem was promoted from the snprintf-posix
13094         to the snprintf module.
13095         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
13096         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
13097         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
13098         * tests/test-snprintf.c (main): Check the byte count returned.
13099         * tests/test-vsnprintf.c (main): Likewise.
13100
13101 2010-12-23  Eric Blake  <eblake@redhat.com>
13102
13103         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
13104         * modules/sigpipe (License): Relax license.
13105
13106 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
13107
13108         doc: document Solaris printf bug with large float precisions
13109         * doc/posix-functions/dprintf.texi (dprintf):
13110         * doc/posix-functions/fprintf.texi (fprintf):
13111         * doc/posix-functions/printf.texi (printf):
13112         * doc/posix-functions/snprintf.texi (snprintf):
13113         * doc/posix-functions/sprintf.texi (sprintf):
13114         * doc/posix-functions/vdprintf.texi (vdprintf):
13115         * doc/posix-functions/vfprintf.texi (vfprintf):
13116         * doc/posix-functions/vprintf.texi (vprintf):
13117         * doc/posix-functions/vsnprintf.texi (vsnprintf):
13118         * doc/posix-functions/vsprintf.texi (vsprintf):
13119         Mention that these functions mishandle large floating point
13120         precisions on Solaris 10.  The same bug is also present in Solaris
13121         8, and I assume earlier.  This causes "cd gnulib-tests; make
13122         check" to fail on Solaris 8 (and I assume, later) when building
13123         the latest coreutils, in test-vasprintf-posix's call to
13124         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
13125         the wide flavors (e.g., wprintf) so this patch just updates the
13126         documentation for the narrow ones.
13127
13128         test-posixtm.c: add two tests
13129         * tests/test-posixtm.c: Add two tests, to highlight the
13130         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
13131         around this bug; this is merely to document it.
13132
13133 2010-12-22  Bruno Haible  <bruno@clisp.org>
13134
13135         getlogin_r: Work around portability problem on OSF/1.
13136         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
13137         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
13138         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
13139         test for a truncated result.
13140         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
13141         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
13142         * modules/getlogin_r (Depends-on): Add memchr.
13143         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
13144
13145 2010-12-22  Bruno Haible  <bruno@clisp.org>
13146
13147         ptsname: Avoid test failure on OSF/1 5.1.
13148         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
13149         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
13150         (same_slave): New function.
13151         (main): Use it to compare ptsname's result with the expected file name.
13152
13153 2010-12-22  Bruno Haible  <bruno@clisp.org>
13154
13155         Port extended stdio modules to HP NonStop Kernel.
13156         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
13157         macros.
13158         * lib/fbufmode.c: Update comments.
13159         * lib/fflush.c: Likewise.
13160         * lib/fpurge.c: Likewise.
13161         * lib/freadable.c: Likewise.
13162         * lib/freadahead.c: Likewise.
13163         * lib/freading.c: Likewise.
13164         * lib/freadptr.c: Likewise.
13165         * lib/freadseek.c: Likewise.
13166         * lib/fseeko.c: Likewise.
13167         * lib/fseterr.c: Likewise.
13168         * lib/fwritable.c: Likewise.
13169         * lib/fwriting.c: Likewise.
13170         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13171
13172 2010-12-22  Bruno Haible  <bruno@clisp.org>
13173
13174         ttyname_r: Work around bug on OSF/1 5.1.
13175         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
13176         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
13177         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
13178         present.
13179         * lib/ttyname_r.c (ttyname_r): Update comments.
13180
13181 2010-12-22  Bruno Haible  <bruno@clisp.org>
13182
13183         round: Implement result sign according to IEEE 754.
13184         * lib/round.c (MIN, MINUS_ZERO): New macros.
13185         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
13186         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
13187         * tests/test-round-ieee.c (main): Likewise.
13188         * tests/test-roundl-ieee.c (main): Likewise.
13189
13190         trunc: Implement result sign according to IEEE 754.
13191         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
13192         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
13193         * tests/test-trunc2.c: Include minus-zero.h.
13194         (MINUS_ZERO): New macro.
13195         (trunc_reference): Keep in sync with lib/trunc.c.
13196         * tests/test-truncf2.c: Include minus-zero.h.
13197         (MINUS_ZERO): New macro.
13198         (truncf_reference): Keep in sync with lib/trunc.c.
13199         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
13200         * tests/test-trunc-ieee.c (main): Likewise.
13201         * tests/test-truncl-ieee.c (main): Likewise.
13202
13203         ceil: Implement result sign according to IEEE 754.
13204         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
13205         (FUNC): Return -0.0 for -1 < x < 0.
13206         * tests/test-ceil2.c: Include minus-zero.h.
13207         (MINUS_ZERO): New macro.
13208         (ceil_reference): Keep in sync with lib/ceil.c.
13209         * tests/test-ceilf2.c: Include minus-zero.h.
13210         (MINUS_ZERO): New macro.
13211         (ceilf_reference): Keep in sync with lib/ceil.c.
13212         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
13213         * tests/test-ceil-ieee.c (main): Likewise.
13214         * tests/test-ceill-ieee.c (main): Likewise.
13215
13216         floor: Implement result sign according to IEEE 754.
13217         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
13218         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
13219         * tests/test-floorf2.c (floorf_reference): Likewise.
13220         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
13221         * tests/test-floor-ieee.c (main): Likewise.
13222         * tests/test-floorl-ieee.c (main): Likewise.
13223
13224 2010-12-22  Bruno Haible  <bruno@clisp.org>
13225
13226         getaddrinfo: Update doc.
13227         * doc/posix-functions/gai_strerror.texi: Return type is also different
13228         on AIX and HP-UX.
13229
13230 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
13231
13232         getaddrinfo, inet_ntop: Update doc for Solaris.
13233         * doc/posix-functions/gai_strerror.texi: Return type is also an
13234         issue on Solaris 9 and earlier.
13235         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
13236         on Solaris 10 and earlier.
13237
13238 2010-12-21  Bruno Haible  <bruno@clisp.org>
13239
13240         New module 'roundl-ieee'.
13241         * modules/roundl-ieee: New file.
13242         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
13243         test whether roundl works according to ISO C 99 with IEC 60559.
13244         * m4/roundl-ieee.m4: New file.
13245         * modules/roundl-ieee-tests: New file.
13246         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
13247         * tests/test-roundl.c (main): Remove signbit tests.
13248         * modules/roundl-tests (Depends-on): Remove signbit.
13249         * doc/posix-functions/roundl.texi: Mention the new module.
13250
13251 2010-12-21  Bruno Haible  <bruno@clisp.org>
13252
13253         New module 'truncl-ieee'.
13254         * modules/truncl-ieee: New file.
13255         * modules/truncl-ieee-tests: New file.
13256         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
13257         * tests/test-truncl.c (main): Remove signbit tests.
13258         * modules/truncl-tests (Depends-on): Remove signbit.
13259         * doc/posix-functions/truncl.texi: Mention the new module.
13260
13261 2010-12-21  Bruno Haible  <bruno@clisp.org>
13262
13263         New module 'ceill-ieee'.
13264         * modules/ceill-ieee: New file.
13265         * modules/ceill-ieee-tests: New file.
13266         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
13267         * tests/test-ceill.c (main): Remove signbit tests.
13268         * modules/ceill-tests (Depends-on): Remove signbit.
13269         * doc/posix-functions/ceill.texi: Mention the new module.
13270
13271 2010-12-21  Bruno Haible  <bruno@clisp.org>
13272
13273         New module 'floorl-ieee'.
13274         * modules/floorl-ieee: New file.
13275         * modules/floorl-ieee-tests: New file.
13276         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
13277         * tests/test-floorl.c (main): Remove signbit tests.
13278         * modules/floorl-tests (Depends-on): Remove signbit.
13279         * doc/posix-functions/floorl.texi: Mention the new module.
13280
13281 2010-12-21  Bruno Haible  <bruno@clisp.org>
13282
13283         New module 'round-ieee'.
13284         * modules/round-ieee: New file.
13285         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
13286         whether round works according to ISO C 99 with IEC 60559.
13287         * m4/round-ieee.m4: New file.
13288         * modules/round-ieee-tests: New file.
13289         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
13290         * tests/test-round1.c (main): Remove signbit tests.
13291         * modules/round-tests (Depends-on): Remove 'signbit'.
13292         * doc/posix-functions/round.texi: Mention the new module.
13293
13294 2010-12-21  Bruno Haible  <bruno@clisp.org>
13295
13296         New module 'trunc-ieee'.
13297         * modules/trunc-ieee: New file.
13298         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
13299         whether trunc works according to ISO C 99 with IEC 60559.
13300         * m4/trunc-ieee.m4: New file.
13301         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
13302         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
13303         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
13304         * modules/trunc-ieee-tests: New file.
13305         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
13306         * tests/test-trunc1.c (main): Remove signbit tests.
13307         * modules/trunc-tests (Depends-on): Remove 'signbit'.
13308         * doc/posix-functions/trunc.texi: Mention the new module.
13309
13310 2010-12-21  Bruno Haible  <bruno@clisp.org>
13311
13312         New module 'ceil-ieee'.
13313         * modules/ceil-ieee: New file.
13314         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
13315         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
13316         ISO C 99 with IEC 60559.
13317         * m4/ceil-ieee.m4: New file.
13318         * modules/ceil (Files): Add lib/ceil.c.
13319         (Depends-on): Add 'float'.
13320         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
13321         * lib/math.in.h (ceil): New declaration.
13322         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
13323         REPLACE_CEIL.
13324         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
13325         * modules/ceil-ieee-tests: New file.
13326         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
13327         * tests/test-math-c++.cc: Check the signature of 'ceil'.
13328         * doc/posix-functions/ceil.texi: Mention the new module.
13329
13330 2010-12-21  Bruno Haible  <bruno@clisp.org>
13331
13332         New module 'floor-ieee'.
13333         * modules/floor-ieee: New file.
13334         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
13335         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
13336         ISO C 99 with IEC 60559.
13337         * m4/floor-ieee.m4: New file.
13338         * modules/floor (Files): Add lib/floor.c.
13339         (Depends-on): Add 'float'.
13340         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
13341         * lib/math.in.h (floor): New declaration.
13342         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
13343         REPLACE_FLOOR.
13344         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
13345         * modules/floor-ieee-tests: New file.
13346         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
13347         * tests/test-math-c++.cc: Check the signature of 'floor'.
13348         * doc/posix-functions/floor.texi: Mention the new module.
13349
13350 2010-12-21  Bruno Haible  <bruno@clisp.org>
13351
13352         New module 'roundf-ieee'.
13353         * modules/roundf-ieee: New file.
13354         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
13355         test whether roundf works according to ISO C 99 with IEC 60559.
13356         * m4/roundf-ieee.m4: New file.
13357         * modules/roundf-ieee-tests: New file.
13358         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
13359         * tests/test-roundf1.c (main): Remove signbit tests.
13360         * modules/roundf-tests (Depends-on): Remove 'signbit'.
13361         * doc/posix-functions/roundf.texi: Mention the new module.
13362
13363 2010-12-21  Bruno Haible  <bruno@clisp.org>
13364
13365         New module 'truncf-ieee'.
13366         * modules/truncf-ieee: New file.
13367         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
13368         test whether truncf works according to ISO C 99 with IEC 60559.
13369         * m4/truncf-ieee.m4: New file.
13370         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
13371         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
13372         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
13373         * modules/truncf-ieee-tests: New file.
13374         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
13375         * tests/test-truncf1.c (main): Remove signbit tests.
13376         * modules/truncf-tests (Depends-on): Remove 'signbit'.
13377         * doc/posix-functions/truncf.texi: Mention the new module.
13378
13379 2010-12-21  Bruno Haible  <bruno@clisp.org>
13380
13381         New module 'ceilf-ieee'.
13382         * modules/ceilf-ieee: New file.
13383         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
13384         test whether ceilf works according to ISO C 99 with IEC 60559.
13385         * m4/ceilf-ieee.m4: New file.
13386         * modules/ceilf-ieee-tests: New file.
13387         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
13388         * tests/test-ceilf1.c (main): Remove signbit tests.
13389         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
13390         * doc/posix-functions/ceilf.texi: Mention the new module.
13391
13392 2010-12-21  Bruno Haible  <bruno@clisp.org>
13393
13394         New module 'floorf-ieee'.
13395         * modules/floorf-ieee: New file.
13396         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
13397         test whether floorf works according to ISO C 99 with IEC 60559.
13398         * m4/floorf-ieee.m4: New file.
13399         * modules/floorf-ieee-tests: New file.
13400         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
13401         * tests/test-floorf1.c (main): Remove signbit tests.
13402         * modules/floorf-tests (Depends-on): Remove 'signbit'.
13403         * doc/posix-functions/floorf.texi: Mention the new module.
13404
13405 2010-12-21  Bruno Haible  <bruno@clisp.org>
13406
13407         Support for minus zero in autoconf macros.
13408         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
13409         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
13410         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
13411         * tests/minus-zero.h: Update comments.
13412
13413 2010-12-21  Bruno Haible  <bruno@clisp.org>
13414
13415         Tests for module 'ceil'.
13416         * modules/ceil-tests: New file.
13417         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
13418         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
13419
13420 2010-12-21  Bruno Haible  <bruno@clisp.org>
13421
13422         Tests for module 'floor'.
13423         * modules/floor-tests: New file.
13424         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
13425         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
13426
13427 2010-12-21  Bruno Haible  <bruno@clisp.org>
13428
13429         math: Fix indentation.
13430         * lib/math.in.h (floorf): Fix indentation.
13431
13432 2010-12-21  Bruno Haible  <bruno@clisp.org>
13433
13434         Fix cross-compilation guesses on Solaris.
13435         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
13436         not match "solaris2.10".
13437         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
13438         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
13439         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
13440
13441 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
13442
13443         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
13444         This fixes a problem observed with the latest coreutils snapshot
13445         that caused a test to fail on Solaris 8.  src/csplit.c's call
13446         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
13447         earlier, instead of returning the number of bytes that would have
13448         been generated; this causes csplit to incorrectly report memory
13449         exhaustion.
13450         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
13451         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
13452         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
13453         comments to match.
13454         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
13455         Fix typo in matching older versions of Solaris: "solaris2.10"
13456         is matched by the shell pattern "solaris2.[0-9]*".  This matters
13457         only for guessing while cross-compiling.
13458         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
13459
13460 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
13461
13462         ftoastr: fix comment again
13463         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
13464         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
13465         Also, simplify example a bit by using flags = 0.
13466
13467 2010-12-20  Bruno Haible  <bruno@clisp.org>
13468
13469         round*, trunc*: Update documentation regarding glibc.
13470         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
13471         * doc/posix-functions/round.texi: Likewise.
13472         * doc/posix-functions/roundl.texi: Likewise.
13473         * doc/posix-functions/truncf.texi: Likewise.
13474         * doc/posix-functions/trunc.texi: Likewise.
13475         * doc/posix-functions/truncl.texi: Likewise.
13476
13477 2010-12-20  Bruno Haible  <bruno@clisp.org>
13478
13479         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
13480         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
13481         * doc/posix-functions/round.texi: Likewise.
13482         * doc/posix-functions/roundl.texi: Likewise.
13483
13484 2010-12-20  Bruno Haible  <bruno@clisp.org>
13485
13486         ttyname_r: Add missing declaration on HP-UX 11.
13487         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
13488         HAVE_TTYNAME_R.
13489         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
13490         declared. Set HAVE_TTYNAME_R always.
13491         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
13492         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
13493         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
13494         HAVE_TTYNAME_R.
13495         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
13496
13497 2010-12-20  Bruno Haible  <bruno@clisp.org>
13498
13499         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
13500         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
13501         * doc/posix-functions/getlogin_r.texi: Likewise.
13502         * tests/test-getlogin.c: Include <errno.h>.
13503         (main): Avoid test failure on HP-UX 11.11.
13504         * tests/test-getlogin_r.c (main): Likewise.
13505
13506 2010-12-20  Bruno Haible  <bruno@clisp.org>
13507
13508         getlogin_r: Add missing declaration on HP-UX 11.
13509         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
13510         declared also when it exists as a function.
13511         * doc/posix-functions/getlogin_r.texi: Document this workaround.
13512
13513 2010-12-20  Bruno Haible  <bruno@clisp.org>
13514
13515         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
13516         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
13517         through wcrtomb.
13518
13519 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
13520
13521         ftoastr: fix comment
13522         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
13523         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
13524
13525 2010-12-19  Bruno Haible  <bruno@clisp.org>
13526
13527         isnan: Ensure it is a macro.
13528         * lib/math.in.h (isnan): Define as a macro if not already a macro.
13529         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
13530         Solaris.
13531
13532 2010-12-19  Bruno Haible  <bruno@clisp.org>
13533
13534         ldexpl test: Fix link error on OSF/1 5.1.
13535         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
13536
13537 2010-12-19  Bruno Haible  <bruno@clisp.org>
13538
13539         wctype: Make it work in C++ mode on OSF/1 5.1.
13540         * lib/wctype.in.h (iswblank): Declare but not define here.
13541         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
13542         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
13543         * modules/wctype (Files): Add lib/iswblank.c.
13544
13545 2010-12-19  Bruno Haible  <bruno@clisp.org>
13546
13547         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
13548         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
13549         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
13550
13551 2010-12-19  Bruno Haible  <bruno@clisp.org>
13552
13553         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
13554         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
13555         _POSIX_PII_SOCKET.
13556         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
13557         * doc/posix-functions/recvfrom.texi: Likewise.
13558         * doc/posix-functions/send.texi: Likewise.
13559         * doc/posix-functions/sendto.texi: Likewise.
13560
13561 2010-12-19  Bruno Haible  <bruno@clisp.org>
13562
13563         tcgetsid: Add missing declaration on OSF/1 5.1.
13564         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
13565         HAVE_TCGETSID.
13566         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
13567         Don't set HAVE_TCGETSID.
13568         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
13569         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
13570         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
13571         HAVE_TCGETSID.
13572         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
13573
13574 2010-12-19  Bruno Haible  <bruno@clisp.org>
13575
13576         stdio: Fix problem with popen() declaration on OSF/1 5.1.
13577         * lib/stdio.in.h: During the include_next statement, let recursive
13578         includes of this file include only the system header file.
13579
13580 2010-12-19  Bruno Haible  <bruno@clisp.org>
13581
13582         iconv_open: Fix regression from 2010-12-04.
13583         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
13584         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
13585
13586 2010-12-19  Bruno Haible  <bruno@clisp.org>
13587
13588         stdbool test: Avoid a gcc warning.
13589         * tests/test-stdbool.c (main): Fail if e1 is false.
13590         Reported by Jim Meyering.
13591
13592 2010-12-19  Jim Meyering  <meyering@redhat.com>
13593
13594         setenv: restore to working order
13595         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
13596         mistakenly removed.
13597         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
13598         HAVE_SETENV.
13599         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
13600         HAVE_SETENV.
13601
13602 2010-12-19  Bruno Haible  <bruno@clisp.org>
13603
13604         Document some different function declarations on OSF/1 5.1.
13605         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
13606         * doc/posix-functions/inet_ntop.texi: Likewise.
13607         * doc/posix-functions/gethostname.texi: Likewise.
13608         * lib/unistd.in.h (gethostname): Update comment.
13609
13610 2010-12-19  Bruno Haible  <bruno@clisp.org>
13611
13612         doc: Mention vasprintf-posix module.
13613         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
13614         the 'vasprintf-posix' module.
13615         * doc/glibc-functions/vasprintf.texi: Likewise.
13616
13617 2010-12-19  Bruno Haible  <bruno@clisp.org>
13618
13619         unsetenv: Add missing declaration on OSF/1 5.1.
13620         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
13621         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
13622         Don't set HAVE_UNSETENV. In the test program, set _BSD.
13623         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
13624         not HAVE_UNSETENV.
13625         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
13626         HAVE_UNSETENV.
13627         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
13628
13629 2010-12-19  Bruno Haible  <bruno@clisp.org>
13630
13631         setenv: Add missing declaration on OSF/1 5.1.
13632         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
13633         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
13634         declared. Don't set HAVE_SETENV.
13635         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
13636         not HAVE_SETENV.
13637         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
13638         HAVE_SETENV.
13639         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
13640
13641 2010-12-19  Bruno Haible  <bruno@clisp.org>
13642
13643         nl_langinfo tests: Avoid gcc warning.
13644         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
13645
13646 2010-12-19  Bruno Haible  <bruno@clisp.org>
13647
13648         mknod: Avoid error in C++ mode on OSF/1 with GCC.
13649         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
13650         _GL_CXXALIAS_SYS.
13651
13652 2010-12-19  Bruno Haible  <bruno@clisp.org>
13653
13654         stdbool: Relax test.
13655         * tests/test-stdbool.c (e): Don't require that casts from a variable's
13656         address to 'bool' work in static initializer, for compilers other than
13657         GCC.
13658
13659 2010-12-19  Bruno Haible  <bruno@clisp.org>
13660
13661         ftello: Add missing declaration on OSF/1 5.1.
13662         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
13663         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
13664         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
13665         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
13666         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
13667
13668 2010-12-19  Bruno Haible  <bruno@clisp.org>
13669
13670         fseeko: Add missing declaration on OSF/1 5.1.
13671         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
13672         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
13673         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
13674         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
13675         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
13676
13677 2010-12-19  Bruno Haible  <bruno@clisp.org>
13678
13679         fchdir: Add missing declaration on OSF/1 5.1.
13680         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
13681         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
13682         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
13683         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
13684         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
13685
13686 2010-12-19  Bruno Haible  <bruno@clisp.org>
13687
13688         relocatable-prog-wrapper: Separate from relocatable-prog.
13689         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
13690         uninstall-relocwrapper rule here.
13691         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
13692         Reported by Ian Beckwith <ianb@erislabs.net>.
13693
13694 2010-12-19  Bruno Haible  <bruno@clisp.org>
13695
13696         unistr/u8-mbsnlen: Add missing dependency.
13697         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
13698         Reported by Ian Beckwith <ianb@erislabs.net>.
13699
13700 2010-12-19  Bruno Haible  <bruno@clisp.org>
13701
13702         iconv: Make it possible again to use this module without 'iconv-h'.
13703         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
13704         if it is not defined.
13705         Reported by Ian Beckwith <ianb@erislabs.net>.
13706
13707 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
13708
13709         acl: port to Solaris 8 when copying from tmpfs to ufs
13710         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
13711         error number.  Problem observed on Solaris 8 with latest
13712         coreutils, with "mv A B", where A is on a tmpfs file system and B
13713         is on a ufs file system.  This caused coreutils' mv/part-symlink
13714         test to fail.
13715
13716         tests: set fail=0 at start
13717         * tests/init.sh (setup_): Move fail=0 initialization here ...
13718         (mktempd_): ... from here, so that tests can rely on fail being
13719         set to 0 initially.  This fixes a problem in coreutils; see:
13720         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
13721
13722 2010-12-18  Bruno Haible  <bruno@clisp.org>
13723
13724         memmem-simple: Stylistic changes.
13725         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
13726         Fix preprocessor directive indentation.
13727
13728 2010-12-15  Pádraig Brady <P@draigBrady.com>
13729
13730         memmem, memmem-simple: reorganize and expand empty needle check
13731         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
13732         functional checks to memmem-simple so that one has a fully functional
13733         memmem by using just this module.
13734         Restrict the performance only check to the memmem module.
13735         Also expand the empty needle check to ensure the correct
13736         pointer is returned, not just a non NULL pointer.
13737         * doc/glibc-functions/memmem.texi: Rearrange the portability
13738         documentation to correlate with the rearranged checks.
13739         Clarify exactly how the memmem and memmem-simple modules
13740         relate to each other.
13741
13742 2010-12-15  Pádraig Brady <P@draigBrady.com>
13743             Bruno Haible  <bruno@clisp.org>
13744
13745         Improve cross-compilation guesses for uClibc.
13746         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
13747         that uClibc does not have the glibc bug.
13748         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
13749         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
13750
13751 2010-12-14  Eric Blake  <eblake@redhat.com>
13752
13753         configmake: provide fallbacks for oldest supported autotools
13754         * m4/configmake.m4: New file.
13755         * modules/configmake (Files): Ship it.
13756         (configure.ac): Use it to guarantee fallbacks.
13757
13758 2010-12-13  Pádraig Brady <P@draigBrady.com>
13759
13760         read-file: Improve handling of large files
13761         * lib/read-file.c (fread_file): Minimize realloc()s
13762         for regular files, and better manage sizes around SIZE_MAX.
13763
13764 2010-12-13  Eric Blake  <eblake@redhat.com>
13765
13766         cloexec, fcntl: relax license
13767         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
13768         consent from all contributors.
13769         * modules/fcntl (License): Likewise.
13770
13771 2010-12-10  Bruno Haible  <bruno@clisp.org>
13772
13773         Tests for module 'pipe-posix'.
13774         * modules/pipe-posix-tests: New file.
13775         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
13776
13777 2010-12-10  Bruno Haible  <bruno@clisp.org>
13778
13779         pipe-posix: Make it work in C++ mode.
13780         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
13781         (pipe): Use common idiom, not a macro definition.
13782         * lib/pipe.c: New file.
13783         * m4/pipe.m4: New file.
13784         * modules/pipe-posix (Description): Enhance.
13785         (Files): Add lib/pipe.c, m4/pipe.m4.
13786         (configure.ac): Invoke gl_FUNC_PIPE.
13787         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
13788         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
13789         * tests/test-unistd-c++.cc: Check the signature of pipe.
13790
13791 2010-12-10  Bruno Haible  <bruno@clisp.org>
13792
13793         Rename module 'pipe' to 'spawn-pipe'.
13794         * modules/spawn-pipe: New file, renamed from modules/pipe.
13795         (Files, configure.ac, Makefile.am): Update.
13796         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
13797         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
13798         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
13799         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
13800         "spawn-pipe.h" instead of "pipe.h".
13801         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
13802         to gl_SPAWN_PIPE.
13803         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
13804         (Files, Makefile.am): Update.
13805         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
13806         Update.
13807         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
13808         Include "spawn-pipe.h" instead of "pipe.h".
13809         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
13810         * lib/javacomp.c: Likewise.
13811         * lib/javaversion.c: Likewise.
13812         * lib/pipe-filter-gi.c: Likewise.
13813         * lib/pipe-filter-ii.c: Likewise.
13814         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
13815         * modules/javacomp (Depends-on): Likewise.
13816         * modules/javaversion (Depends-on): Likewise.
13817         * modules/pipe-filter-gi (Depends-on): Likewise.
13818         * modules/pipe-filter-ii (Depends-on): Likewise.
13819         * MODULES.html.sh (Executing programs): Update.
13820         * NEWS: Mention the change.
13821
13822 2010-12-10  Eric Blake  <eblake@redhat.com>
13823
13824         pipe-posix: new module
13825         * modules/pipe-posix: New file.
13826         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
13827         (gl_UNISTD_H): Check for declaration.
13828         * modules/unistd (Makefile.am): Substitute it.
13829         * lib/unistd.in.h (pipe): Provide it for mingw.
13830         * doc/posix-functions/pipe.texi (pipe): Update documentation.
13831         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
13832
13833 2010-12-07  Bruno Haible  <bruno@clisp.org>
13834
13835         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
13836         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
13837         u8_strcmp_gnu.
13838         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
13839
13840 2010-12-06  Bruno Haible  <bruno@clisp.org>
13841
13842         Update internal documentation.
13843         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
13844
13845 2010-12-04  Bruno Haible  <bruno@clisp.org>
13846
13847         Put more information about failed tests into the test return codes.
13848         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
13849         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
13850         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
13851         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
13852         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
13853         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
13854         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
13855         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
13856         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
13857         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
13858         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
13859         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
13860         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
13861         * m4/stdint.m4 (gl_STDINT_H): Likewise.
13862         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
13863         returns a bit mask.
13864         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
13865         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
13866         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
13867         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
13868         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
13869         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
13870         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
13871         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
13872         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
13873         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
13874         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
13875         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
13876         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
13877         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
13878         * m4/link.m4 (gl_FUNC_LINK): Likewise.
13879         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
13880         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
13881         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
13882         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
13883         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
13884         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
13885         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
13886         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
13887         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
13888         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
13889         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
13890         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
13891         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
13892         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
13893         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
13894         gl_PRINTF_PRECISION): Likewise.
13895         * m4/regex.m4 (gl_REGEX): Likewise.
13896         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
13897         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
13898         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
13899         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
13900         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
13901         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
13902         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
13903         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
13904         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
13905         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
13906         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
13907         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
13908         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
13909         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
13910         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
13911         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
13912         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
13913         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
13914         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
13915         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
13916         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
13917         enumerated value.
13918         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
13919
13920 2010-12-04  Bruno Haible  <bruno@clisp.org>
13921
13922         Update for Solaris 11 2010-11.
13923         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
13924         Express, released in November 2010.
13925
13926 2010-12-04  Bruno Haible  <bruno@clisp.org>
13927
13928         nproc: Relax license.
13929         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
13930         and Paul Eggert.
13931         Requested by Ludovic Courtès <ludo@gnu.org>.
13932
13933 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
13934
13935         utimecmp: fine-grained src to nearby coarse-grained dest
13936
13937         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
13938         and the source is on a file system with higher-resolution time
13939         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
13940         not work, and the time stamps are close together, the algorithm to
13941         determine the exact resolution from the read-back mtime was buggy:
13942         it had a "!=" where it should have had an "==".  This bug has been
13943         in the code ever since it was introduced to gnulib.
13944         Problem reported by Dan Jacobson in
13945         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
13946
13947 2010-11-30  Bruno Haible  <bruno@clisp.org>
13948
13949         strerror_r-posix: Fix autoconf test.
13950         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
13951
13952 2010-11-28  Bruno Haible  <bruno@clisp.org>
13953             Paul Eggert  <eggert@cs.ucla.edu>
13954
13955         Tests for module 'getdomainname'.
13956         * modules/getdomainname-tests: New file.
13957         * tests/test-getdomainname.c: New file, based on
13958         tests/test-gethostname.c.
13959
13960 2010-11-28  Bruno Haible  <bruno@clisp.org>
13961             Paul Eggert  <eggert@cs.ucla.edu>
13962
13963         getdomainname: Use the system function when possible.
13964         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
13965         (getdomainname): Replace if needed. Provide the declaration if it is
13966         missing. Don't use _GL_CXXALIAS_SYS_CAST.
13967         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
13968         (getdomainname): When the system has getdomainname, call the system
13969         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
13970         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
13971         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
13972         found in libnsl. Look for the declaration also in <netdb.h>. Replace
13973         the function if its second argument is of type 'int' or if it is found
13974         in libnsl.
13975         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
13976         <sys/systeminfo.h> and sysinfo().
13977         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
13978         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
13979         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
13980         HAVE_GETDOMAINNAME.
13981         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
13982         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
13983         * doc/glibc-functions/getdomainname.texi: Document the problems with
13984         the getdomainname declaration.
13985
13986 2010-11-28  Bruno Haible  <bruno@clisp.org>
13987
13988         sys_socket: Ensure ss_family field on AIX.
13989         * lib/sys_socket.in.h (ss_family): New macro definition.
13990         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
13991         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
13992         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
13993         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
13994         * modules/sys_socket (Makefile.am): Substitute
13995         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
13996         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
13997
13998 2010-11-27  Bruno Haible  <bruno@clisp.org>
13999
14000         readline: Improve configure output.
14001         * m4/readline.m4 (gl_FUNC_READLINE): Make the
14002         "checking for readline..." result understandable.
14003
14004 2010-11-27  Bruno Haible  <bruno@clisp.org>
14005
14006         *printf-posix: Detect a bug on Solaris 10/x86.
14007         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
14008         for floating-point output.
14009         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
14010         directive.
14011         * tests/test-snprintf-posix.h (test_function): Likewise.
14012         * tests/test-sprintf-posix.h (test_function): Likewise.
14013         * tests/test-vasprintf-posix.c (test_function): Likewise.
14014         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
14015         * doc/posix-functions/printf.texi: Likewise.
14016         * doc/posix-functions/snprintf.texi: Likewise.
14017         * doc/posix-functions/sprintf.texi: Likewise.
14018         * doc/posix-functions/vfprintf.texi: Likewise.
14019         * doc/posix-functions/vprintf.texi: Likewise.
14020         * doc/posix-functions/vsnprintf.texi: Likewise.
14021         * doc/posix-functions/vsprintf.texi: Likewise.
14022         * doc/glibc-functions/obstack_printf.texi: Likewise.
14023         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
14024
14025 2010-11-27  Bruno Haible  <bruno@clisp.org>
14026
14027         Fix link error when module libunistring-optional is in use.
14028         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
14029         * modules/striconveha-tests (Makefile.am): Likewise.
14030
14031 2010-11-27  Bruno Haible  <bruno@clisp.org>
14032
14033         regex: Mention link dependencies.
14034         * modules/regex (Link): New section.
14035         * modules/rpmatch (Link): Likewise.
14036         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
14037
14038 2010-11-27  Bruno Haible  <bruno@clisp.org>
14039
14040         ftoastr: Fix compilation error on Solaris.
14041         * lib/ftoastr.c: Include <config.h>.
14042
14043 2010-11-27  Bruno Haible  <bruno@clisp.org>
14044
14045         getloadavg: Update documentation.
14046         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
14047
14048 2010-11-27  Bruno Haible  <bruno@clisp.org>
14049
14050         sys_socket: Fix test whether the functions are declared.
14051         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
14052         not <sys/select.h>.
14053
14054 2010-11-27  Bruno Haible  <bruno@clisp.org>
14055
14056         getpass: Make sure to get system declaration on some platforms.
14057         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
14058         gl_USE_SYSTEM_EXTENSIONS.
14059         * modules/getpass (Depends-on): Add extensions.
14060
14061 2010-11-26  Bruno Haible  <bruno@clisp.org>
14062
14063         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
14064         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
14065         'iconv' module is present.
14066         (ICONV_CONST): New macro.
14067         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
14068         ICONV_CONST.
14069         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
14070         set ICONV_CONST.
14071         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
14072         here.
14073         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
14074         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
14075         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
14076         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
14077         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
14078         present.
14079
14080 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
14081
14082         ftoastr: comment fix
14083         * lib/ftoastr.c: "little" -> "little or no" in comment
14084
14085 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
14086
14087         stdint: port to GCC 4.3 + OSX + Octave
14088         On this platform, stdint.h is buggy and defines int64_t to long
14089         long int.  The replacement defined it to long int, causing
14090         problems with C++ style name mangling.  Instead, trust the system
14091         definition if INT64_MAX is defined, and likewise for the unsigned
14092         variant.   Problem reported by Jarno Rajahalme in
14093         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
14094         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
14095         and don't mess with int64_t and INT64_MAX in this case.
14096         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
14097
14098 2010-11-24  Bruno Haible  <bruno@clisp.org>
14099
14100         doc: Corrections regarding MacOS X 10.4 and 10.5.
14101         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
14102         MacOS X.
14103         Reported by Simon Josefsson.
14104
14105 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
14106
14107         Uninstall ".bin" files installed by relocwrapper.
14108         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
14109         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
14110         unless it is already there.
14111
14112 2010-11-21  Bruno Haible  <bruno@clisp.org>
14113
14114         Update for NetBSD 5.0.
14115         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
14116         NetBSD; the test fails on NetBSD 5.0.
14117         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
14118         about NetBSD.
14119
14120 2010-11-21  Bruno Haible  <bruno@clisp.org>
14121
14122         Update for HP-UX 11.23 and HP-UX 11.31.
14123         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
14124         HP-UX.
14125
14126 2010-11-21  Bruno Haible  <bruno@clisp.org>
14127
14128         Update for MacOS X 10.5.
14129         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
14130         MacOS X; the test fails on MacOS X 10.5.8.
14131         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
14132         about MacOS X.
14133
14134 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
14135
14136         bootstrap: add bootstrap_sync option.
14137         See discussion at
14138         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
14139         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
14140         * build-aux/bootstrap: Accept --bootstrap-sync to update
14141         bootstrap if it is not identical to the local gnulib's
14142         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
14143         enable this by default.  Accept --no-bootstrap-sync to disable
14144         it.
14145
14146 2010-11-20  Bruno Haible  <bruno@clisp.org>
14147
14148         Ensure that <features.h> is included before __GLIBC__ is tested.
14149         * lib/printf-parse.h: Include <features.h>.
14150         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
14151         Reported by Mike Frysinger <vapier@gentoo.org>.
14152
14153         Ensure that <features.h> is included before __GLIBC__ is tested.
14154         * lib/wchar.in.h: Include <features.h>.
14155         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
14156         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
14157         Reported by Mike Frysinger <vapier@gentoo.org>.
14158
14159         Ensure that <features.h> is included before __GLIBC__ is tested.
14160         * lib/arpa_inet.in.h: Include <features.h>.
14161         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
14162         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
14163         Reported by Mike Frysinger <vapier@gentoo.org>.
14164
14165         Ensure that <features.h> is included before __GLIBC__ is tested.
14166         * build-aux/link-warning.h: Include <features.h>.
14167         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
14168         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
14169         Reported by Mike Frysinger <vapier@gentoo.org>.
14170
14171         Ensure that <features.h> is included before __GLIBC__ is tested.
14172         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
14173         Reported by Mike Frysinger <vapier@gentoo.org>.
14174
14175 2010-11-20  Bruno Haible  <bruno@clisp.org>
14176
14177         memmem: Fix autoconf test.
14178         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
14179
14180 2010-11-20  Bruno Haible  <bruno@clisp.org>
14181
14182         Port to uClibc.
14183         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
14184         * lib/fcntl.in.h: Likewise.
14185         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
14186         * lib/mbrtowc.c (mbrtowc): Likewise.
14187         * lib/relocatable.c (find_shared_library_fullname): Likewise.
14188         * lib/strerror_r.c: Likewise.
14189         * lib/unistr/u8-strnlen.c: Likewise.
14190         * lib/vasnprintf.c (decimal_point_char): Likewise.
14191         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
14192         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
14193         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
14194         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
14195         * tests/test-sigaction.c (handler, main): Likewise.
14196         * lib/freading.h: Treat uClibc like a non-glibc platform.
14197         * lib/freading.c: Likewise.
14198         * lib/gettext.h: Likewise.
14199         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
14200         Likewise.
14201         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
14202         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
14203         * lib/propername.c (proper_name_utf8): Likewise.
14204         * lib/spawn.in.h: Likewise.
14205         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
14206         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
14207         mem_cd_iconveh_internal): Likewise.
14208         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
14209         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
14210         strstr, strcasestr): Likewise.
14211         * lib/unicodeio.c (unicode_to_mb): Likewise.
14212         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
14213         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
14214         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
14215         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
14216         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
14217         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
14218         * lib/unistr/u8-stpncpy.c: Likewise.
14219         * lib/vasnprintf.c (VASNPRINTF): Likewise.
14220         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
14221         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
14222         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
14223         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
14224         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
14225         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
14226         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
14227         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
14228         Likewise.
14229         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
14230         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
14231         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
14232         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
14233         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
14234         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
14235         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
14236         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
14237         * tests/test-getopt.h (OPTIND_MIN): Likewise.
14238         * tests/test-striconveha.c (main): Likewise.
14239         * tests/test-vasnprintf-posix.c (test_function): Likewise.
14240         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
14241         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
14242         * doc/posix-functions/getline.texi: Likewise.
14243         Reported by Mike Frysinger <vapier@gentoo.org>.
14244
14245 2010-11-20  Bruno Haible  <bruno@clisp.org>
14246
14247         nproc: Fix condition.
14248         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
14249         HAVE_PTHREAD_AFFINITY_NP.
14250
14251 2010-11-20  Bruno Haible  <bruno@clisp.org>
14252
14253         Fix a comment.
14254         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
14255
14256 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
14257
14258         ftoastr: don't assume snprintf
14259         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
14260         Implement a subset of snprintf here, by using sprintf safely.
14261         * modules/ftoastr (Depends-on): Remove snprintf.
14262
14263 2010-11-19  Jim Meyering  <meyering@redhat.com>
14264
14265         test-rename.h: fix compilation failure
14266         * tests/test-rename.h (test_rename): Add omitted "}".
14267
14268 2010-11-17  Jim Meyering  <meyering@redhat.com>
14269
14270         maint.mk: add a URL discussing the no-@acronym policy
14271         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
14272
14273 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
14274
14275         ftoastr: depend on snprintf, improve comments
14276         * lib/ftoastr.c: Also mention Loitsch's draft.
14277         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
14278         needed in the current implementation, but it might simplify
14279         speeding up the code later.
14280         * modules/ftoastr: Depend on snprintf; this improves portability.
14281         Suggested by Bruno Haible in the same email.
14282
14283         ftoastr: port to hosts lacking strtof and strtold
14284         Problem reported by Bruno Haible in
14285         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
14286         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
14287         environment and strtold (and presumably strtof) are not available.
14288         * modules/ftoastr (Files): Add m4/c-strtod.m4.
14289         (configure.ac): Require gl_C99_STRTOLD.
14290
14291 2010-11-18  Bruno Haible  <bruno@clisp.org>
14292
14293         c-strtold: Avoid link error on AIX 7.
14294         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
14295         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
14296         (gl_C_STRTOLD): Test whether strtold_l exists.
14297         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
14298
14299 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
14300
14301         intprops: new macro INT_BITS_STRLEN_BOUND
14302         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
14303         ftoastr.h.  This exposes an internal of intprops.h that was formerly
14304         not exposed.  Also, it uses a slightly tighter bound than before;
14305         though this makes no practical difference, we might as well be as
14306         tight as we easily can.
14307
14308         ftoastr: new module, for lossless conversion of floats to short strings
14309         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
14310         * modules/ftoastr: New files.
14311
14312 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
14313
14314         bootstrap: port to Solaris sed
14315         * build-aux/bootstrap (get_version): Port to Solaris sed.
14316         See Ralf Wildenhues's note in
14317         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
14318
14319 2010-11-14  Jim Meyering  <meyering@redhat.com>
14320
14321         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
14322         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
14323         and move definition closer to sole use.
14324
14325 2010-11-13  Jim Meyering  <meyering@redhat.com>
14326
14327         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
14328         Now we require at least autoconf-2.59, which means the work-around
14329         is no longer needed.
14330         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
14331         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
14332         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
14333         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
14334         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
14335
14336 2010-11-13  Bruno Haible  <bruno@clisp.org>
14337
14338         rename, renameat: Avoid test failures at NFS mounted locations.
14339         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
14340         functions.
14341         (test_rename): Use assert_nonexistent.
14342         * tests/test-rename.c: Include <dirent.h>.
14343         * tests/test-renameat.c: Likewise.
14344         Reported by Gary V. Vaughan <gary@gnu.org>.
14345
14346         rename, renameat: Document Linux bug with NFS
14347         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
14348         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
14349         * doc/posix-functions/renameat.texi: Likewise.
14350         Suggested by Eric Blake.
14351
14352 2010-11-13  Bruno Haible  <bruno@clisp.org>
14353
14354         rename test: Add comments.
14355         * tests/test-rename.h (test_rename): Add structure and comments.
14356
14357 2010-11-13  Eric Blake  <eblake@redhat.com>
14358
14359         maintainer-makefile: cover a few more files
14360         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
14361         scripts generated within C files, for libvirt.
14362
14363 2010-11-13  Bruno Haible  <bruno@clisp.org>
14364
14365         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
14366         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
14367         character, return the number of bytes that belong together, not always
14368         1.
14369         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
14370         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
14371         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
14372         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
14373         number of bytes of an invalid character.
14374         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
14375         (main): Invoke it.
14376         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
14377         results.
14378         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
14379         malformed byte sequences.
14380         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
14381         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
14382         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
14383         Reported by Ben Pfaff and Paolo Bonzini.
14384
14385 2010-11-13  Bruno Haible  <bruno@clisp.org>
14386
14387         openat: Work around glibc bug with fchownat() and empty file names.
14388         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
14389         (gl_FUNC_FCHOWNAT): Invoke it.
14390         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
14391         * doc/posix-functions/fchownat.texi: Document the glibc bug.
14392         Reported by Gary V. Vaughan <gary@gnu.org>.
14393
14394 2010-11-13  Bruno Haible  <bruno@clisp.org>
14395
14396         openat: Ensure autoconf macro ordering.
14397         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
14398         gl_USE_SYSTEM_EXTENSIONS.
14399         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
14400
14401 2010-11-13  Bruno Haible  <bruno@clisp.org>
14402
14403         Update comments.
14404         * lib/unistr/u8-check.c: Update file name in comments.
14405         * lib/unistr/u8-mblen.c: Likewise.
14406         * lib/unistr/u8-prev.c: Likewise.
14407         * lib/unistr/u8-strmblen.c: Likewise.
14408         * lib/unistr/u8-strmbtouc.c: Likewise.
14409
14410 2010-11-13  Jim Meyering  <meyering@redhat.com>
14411
14412         tests: avoid test failure on Solaris 10 due to lack of PATH export
14413         * tests/test-update-copyright.sh: Don't forget to export PATH.
14414
14415         init.sh: ensure that IFS is defined, just in case...
14416         * tests/init.sh (setup_): Ensure that IFS is defined,
14417         so that saving and restoring it works as expected.  This
14418         appears to be useful at least for an old version of dash
14419         from a long time ago (RH 6).  See here for details:
14420         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
14421
14422         maint.mk: tighten "test a == b" check
14423         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
14424         test to files that contain something like #!/bin/sh.
14425         Without this, coreutils would get two false positives in
14426         the comments of C source files.
14427
14428 2010-11-12  Eric Blake  <eblake@redhat.com>
14429
14430         bootstrap: fix typo in previous attempt
14431         * build-aux/bootstrap (buildreq): Correct the grouping.
14432         Reported by Paul Eggert.
14433
14434         maintainer-makefile: prohibit test x == x
14435         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
14436         Based on a report by Matthias Bolte.
14437
14438         bootstrap: allow FreeBSD gzip
14439         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
14440         which has no '.' and goes to stderr.
14441         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
14442         Reported by Matthias Bolte.
14443
14444         maintainer-makefile: check for i18n setup
14445         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
14446         will likely work.
14447
14448 2010-11-12  Bruno Haible  <bruno@clisp.org>
14449
14450         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
14451         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
14452         * lib/nanosleep.c (nanosleep): Likewise.
14453
14454 2010-11-11  Bruno Haible  <bruno@clisp.org>
14455
14456         fcntl-h: Fix for use of C++ on glibc systems.
14457         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
14458         also on glibc systems in C++ mode.
14459         Reported by Gary V. Vaughan <gary@gnu.org>.
14460
14461 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
14462
14463         mknod: avoid false failure with dash
14464         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
14465
14466 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
14467
14468         unlink: Fix "is it should" typo in diagnostic.
14469         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
14470         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
14471
14472 2010-11-11  Bruno Haible  <bruno@clisp.org>
14473
14474         Tests for module 'strerror_r-posix'.
14475         * modules/strerror_r-posix-tests: New file.
14476         * tests/test-strerror_r.c: New file.
14477         * tests/test-string-c++.cc: Check the signature of strerror_r.
14478
14479         New module 'strerror_r-posix'.
14480         * lib/string.in.h (strerror_r): New declaration.
14481         * lib/strerror_r.c: New file.
14482         * m4/strerror_r.m4: New file.
14483         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
14484         of strerror_r.
14485         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
14486         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
14487         * modules/strerror_r-posix: New file.
14488         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
14489         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
14490         * doc/posix-functions/strerror_r.texi: Mention the new module and the
14491         portability problems.
14492
14493 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
14494
14495         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
14496         line is also considered for output. Quoted function name in shell
14497         command, so temporary files for functions like MyClass::operator()
14498         are removed correctly without errors.
14499
14500 2010-11-09  Bruno Haible  <bruno@clisp.org>
14501
14502         * doc/posix-functions/strerror.texi: List more failing platforms.
14503
14504         * doc/posix-functions/strerror.texi: Add a comment.
14505
14506 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
14507
14508         fdopendir: fix bug on MacOS X when low on file descriptors
14509
14510         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
14511         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
14512         All callers changed.
14513         (fdopendir): Invoke save_cwd at the top level, not after using
14514         multiple dup() calls to use up file descriptors.  Then retry
14515         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
14516         less than the maximum number of open file descriptors, because
14517         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
14518         on Mac OS X 10.6.4 for tar 1.24
14519         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
14520         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
14521         and for tar 1.25
14522         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
14523
14524 2010-11-07  Bruno Haible  <bruno@clisp.org>
14525
14526         vasnprintf: Support I flag on glibc systems.
14527         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
14528         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
14529         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
14530         snprintf function.
14531         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
14532         glibc systems.
14533         * tests/test-vasnprintf-posix3.c: New file.
14534         * modules/vasnprintf-posix-tests (Files): Add it.
14535         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
14536
14537 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
14538
14539         [html] Fix copy/paste bug: Use unique name for compiler warnings.
14540         * MODULES.html.sh: For compiler warnings, use name
14541         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
14542
14543 2010-11-05  Eric Blake  <eblake@redhat.com>
14544
14545         ceil, floor: avoid spurious failure with icc
14546         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
14547         [denormals-as-zero] when optimizing without -mieee-fp option.
14548         * tests/test-floorf2.c (floorf_reference): Likewise.
14549         * tests/test-ceilf1.c (dummy): New function.
14550         (main): Use it to outsmart icc's optimization.
14551         * tests/test-floorf1.c (dummy, main): Likewise.
14552
14553         tests: require working signbit
14554         * modules/ceilf-tests (Depends-on): Add signbit.
14555         * modules/ceill-tests (Depends-on): Likewise.
14556         * modules/floorf-tests (Depends-on): Likewise.
14557         * modules/floorl-tests (Depends-on): Likewise.
14558         * modules/round-tests (Depends-on): Likewise.
14559         * modules/roundf-tests (Depends-on): Likewise.
14560         * modules/roundl-tests (Depends-on): Likewise.
14561         * modules/trunc-tests (Depends-on): Likewise.
14562         * modules/truncf-tests (Depends-on): Likewise.
14563         * modules/truncl-tests (Depends-on): Likewise.
14564
14565         strtod: work around icc bug
14566         * lib/strtod.c (minus_zero): Define to working value.
14567         (strtod): Use it to avoid icc bug.
14568
14569         copysign: enhance tests
14570         * modules/copysign-tests (Files): Add minus-zero.h.
14571         * tests/test-copysign.c (main): Also test zeros.
14572
14573 2010-11-04  Eric Blake  <eblake@redhat.com>
14574
14575         ceil, floor, round, trunc: enhance tests of -0
14576         * tests/test-ceilf1.c (main): Ensure correct sign of result.
14577         * tests/test-ceill.c (main): Likewise.
14578         * tests/test-floorf1.c (main): Likewise.
14579         * tests/test-floorl.c (main): Likewise.
14580         * tests/test-round1.c (main): Likewise.
14581         * tests/test-roundf1.c (main): Likewise.
14582         * tests/test-roundl.c (main): Likewise.
14583         * tests/test-trunc1.c (main): Likewise.
14584         * tests/test-truncf1.c (main): Likewise.
14585         * tests/test-truncl.c (main): Likewise.
14586
14587 2010-11-04  Eric Blake  <eblake@redhat.com>
14588
14589         frexp, tests: work around ICC bug with -zero
14590         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
14591         works with more compilers.
14592         * tests/minus-zero.h: New file.
14593         * modules/ceilf-tests (Files): Include it.
14594         * modules/ceill-tests (Files): Likewise.
14595         * modules/floorf-tests (Files): Likewise.
14596         * modules/floorl-tests (Files): Likewise.
14597         * modules/frexp-nolibm-tests (Files): Likewise.
14598         * modules/frexp-tests (Files): Likewise.
14599         * modules/frexpl-nolibm-tests (Files): Likewise.
14600         * modules/frexpl-tests (Files): Likewise.
14601         * modules/isnan-tests (Files): Likewise.
14602         * modules/isnand-nolibm-tests (Files): Likewise.
14603         * modules/isnand-tests (Files): Likewise.
14604         * modules/isnanf-nolibm-tests (Files): Likewise.
14605         * modules/isnanf-tests (Files): Likewise.
14606         * modules/isnanl-nolibm-tests (Files): Likewise.
14607         * modules/isnanl-tests (Files): Likewise.
14608         * modules/round-tests (Files): Likewise.
14609         * modules/roundf-tests (Files): Likewise.
14610         * modules/roundl-tests (Files): Likewise.
14611         * modules/ldexpl-tests (Files): Likewise.
14612         * modules/signbit-tests (Files): Likewise.
14613         * modules/snprintf-posix-tests (Files): Likewise.
14614         * modules/sprintf-posix-tests (Files): Likewise.
14615         * modules/strtod-tests (Files): Likewise.
14616         * modules/trunc-tests (Files): Likewise.
14617         * modules/truncf-tests (Files): Likewise.
14618         * modules/truncl-tests (Files): Likewise.
14619         * modules/vsnprintf-posix-tests (Files): Likewise.
14620         * modules/vsprintf-posix-tests (Files): Likewise.
14621         * modules/vasnprintf-posix-tests (Files): Likewise.
14622         * modules/vasprintf-posix-tests (Files): Likewise.
14623         * tests/test-ceilf1.c (main): Use it.
14624         * tests/test-ceill.c (main): Likewise.
14625         * tests/test-floorf1.c (main): Likewise.
14626         * tests/test-floorl.c (main): Likewise.
14627         * tests/test-frexp.c (main): Likewise.
14628         * tests/test-frexpl.c (main): Likewise.
14629         * tests/test-isnan.c (main): Likewise.
14630         * tests/test-isnand.h (main): Likewise.
14631         * tests/test-isnanf.h (main): Likewise.
14632         * tests/test-isnanl.h (main): Likewise.
14633         * tests/test-ldexpl.c (main): Likewise.
14634         * tests/test-round.c (main): Likewise.
14635         * tests/test-roundf.c (main): Likewise.
14636         * tests/test-roundl.c (main): Likewise.
14637         * tests/test-signbit.c (test_signbitf, test_signbitd)
14638         (test_signbitl): Likewise.
14639         * tests/test-snprintf-posix.h (test_function): Likewise.
14640         * tests/test-sprintf-posix.h (test_function): Likewise.
14641         * tests/test-strtod.c (main): Likewise.
14642         * tests/test-trunc1.c (main): Likewise.
14643         * tests/test-truncf1.c (main): Likewise.
14644         * tests/test-truncl.c (main): Likewise.
14645
14646         isnanl: work around icc bug
14647         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
14648
14649 2010-11-03  Eric Blake  <eblake@redhat.com>
14650
14651         tests: fix compiler warnings
14652         * tests/test-getopt.h (test_getopt): Fix condition.
14653         * tests/test-getopt_long.h (test_getopt_long): Likewise.
14654         * tests/test-pipe2.c (main): Likewise.
14655         * tests/test-quotearg-simple.c (main): Avoid icc warning.
14656
14657         utimens: fix broken m4 test
14658         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
14659
14660 2010-10-28  Bruno Haible  <bruno@clisp.org>
14661
14662         posix_spawn*, getdtablesize: Relax license.
14663         * modules/posix_spawn (License): Change to LGPLv2+.
14664         * modules/posix_spawnp (License): Likewise.
14665         * modules/posix_spawn-internal (License): Likewise.
14666         * modules/posix_spawnattr_init (License): Likewise.
14667         * modules/posix_spawnattr_getflags (License): Likewise.
14668         * modules/posix_spawnattr_setflags (License): Likewise.
14669         * modules/posix_spawnattr_getpgroup (License): Likewise.
14670         * modules/posix_spawnattr_setpgroup (License): Likewise.
14671         * modules/posix_spawnattr_getschedparam (License): Likewise.
14672         * modules/posix_spawnattr_setschedparam (License): Likewise.
14673         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
14674         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
14675         * modules/posix_spawnattr_getsigdefault (License): Likewise.
14676         * modules/posix_spawnattr_setsigdefault (License): Likewise.
14677         * modules/posix_spawnattr_getsigmask (License): Likewise.
14678         * modules/posix_spawnattr_setsigmask (License): Likewise.
14679         * modules/posix_spawnattr_destroy (License): Likewise.
14680         * modules/posix_spawn_file_actions_init (License): Likewise.
14681         * modules/posix_spawn_file_actions_addclose (License): Likewise.
14682         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
14683         * modules/posix_spawn_file_actions_addopen (License): Likewise.
14684         * modules/posix_spawn_file_actions_destroy (License): Likewise.
14685         * modules/getdtablesize (License): Likewise.
14686         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
14687
14688 2010-10-26  Bruno Haible  <bruno@clisp.org>
14689
14690         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
14691         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
14692         Cygwin and mingw.
14693         Suggested by Eric Blake.
14694
14695 2010-10-26  Bruno Haible  <bruno@clisp.org>
14696
14697         stdio: Work around compilation error due to renameat() on Solaris 10.
14698         * lib/stdio.in.h: Include <unistd.h> on Solaris.
14699         * lib/renameat.c: Don't include <unistd.h> here.
14700         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
14701         Reported by Paul Eggert and Eric Blake.
14702
14703 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
14704
14705         renameat: port to Solaris 10, which declares renameat in unistd.h
14706
14707         * lib/renameat.c: Include unistd.h before stdio.h, because
14708         Solaris 10 declares renameat in unistd.h.  Problem encountered
14709         when building GNU tar 1.24 on Solaris 10.
14710
14711 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
14712
14713         fdopendir: fix C89 compilation
14714         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
14715         compilers.
14716
14717 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
14718
14719         inttostr: simplify by removing unnecessary redundancy
14720         * lib/anytostr.c: Don't include verify.h.
14721         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
14722         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
14723         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
14724         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
14725         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
14726         Likewise.
14727         * modules/inttostr (Depends-on): Remove 'verify'.
14728
14729 2010-10-23  Bruno Haible  <bruno@clisp.org>
14730
14731         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
14732         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
14733         Reported by Eric Blake.
14734
14735 2010-10-23  Bruno Haible  <bruno@clisp.org>
14736
14737         Tests: Fix LOCALE_JA on MirBSD 10.
14738         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
14739         to an UTF-8 locale.
14740         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
14741         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
14742         Reported by Eric Blake.
14743
14744 2010-10-21  Bruno Haible  <bruno@clisp.org>
14745
14746         nl_langinfo test: Avoid test failure on NetBSD 5.
14747         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
14748         Reported by Eric Blake.
14749
14750 2010-10-21  Eric Blake  <eblake@redhat.com>
14751
14752         c-stack: work around libsigsegv 2.8 bug
14753         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
14754         overflow on at least PowerPC64.
14755
14756 2010-10-17  Bruno Haible  <bruno@clisp.org>
14757
14758         userspec: Drop redundant file.
14759         * modules/userspec (Files): Remove lib/inttostr.h.
14760
14761 2010-10-17  Bruno Haible  <bruno@clisp.org>
14762
14763         nl_langinfo tests: Silence some warnings.
14764         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
14765         Reported by Jim Meyering.
14766
14767 2010-10-17  Bruno Haible  <bruno@clisp.org>
14768
14769         Make use of GCC's attribute __alloc_size__.
14770         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
14771         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
14772         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
14773         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
14774         __alloc_size__.
14775         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
14776         Suggested by Jim Meyering.
14777
14778 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
14779
14780         bootstrap: anchor .gitignore entries.
14781         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
14782         with...
14783         (insert_vc_ignore): ... this new function, which prepends `/' to
14784         all .gitignore entries before passing them to
14785         insert_sorted_if_absent.
14786
14787 2010-10-16  Bruno Haible  <bruno@clisp.org>
14788
14789         nextafter: Fix configure check.
14790         * modules/nextafter (configure.ac): Correct expected prototype.
14791
14792 2010-10-16  Bruno Haible  <bruno@clisp.org>
14793
14794         termios: Update documentation.
14795         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
14796
14797 2010-10-16  Bruno Haible  <bruno@clisp.org>
14798
14799         tests: Make them compile with TinyCC.
14800         * tests/test-strstr.c (main): Remove parentheses around array
14801         initializer.
14802
14803 2010-10-15  Eric Blake  <eblake@redhat.com>
14804
14805         ignore-value: make header idempotent
14806         * lib/ignore-value.h: Add double-inclusion guards.
14807         Reported by Stefan Berger.
14808
14809 2010-10-15  Jim Meyering  <meyering@redhat.com>
14810
14811         GNUmakefile: handle "stable" target, not "major"
14812         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
14813         lists in maint.mk and announce-gen.  Without this, "make stable"
14814         would fail to ensure that $(VERSION) is up to date.
14815
14816 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
14817
14818         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
14819         & co.
14820
14821 2010-10-14  Bruno Haible  <bruno@clisp.org>
14822
14823         vasnprintf: Don't set errno to 0.
14824         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
14825         block that sets it to 0.
14826         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
14827
14828 2010-10-14  Bruno Haible  <bruno@clisp.org>
14829
14830         socketlib: Fix.
14831         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
14832         gl_PREREQ_SYS_H_WINSOCK2.
14833         Reported by Ian Beckwith <ianb@erislabs.net>.
14834
14835 2010-10-13  Jim Meyering  <meyering@redhat.com>
14836
14837         test-select-stdin.c: avoid warn_unused_result warnings
14838         * tests/test-select-stdin.c: Include "macros.h".
14839         ASSERT that read and fflush succeed.
14840
14841 2010-10-13  Jim Meyering  <meyering@redhat.com>
14842
14843         git-version-gen: do require git-VC'd files in cwd
14844         * build-aux/git-version-gen: Reject a git version string
14845         if there are no commits associated with the current directory.
14846         This avoids an unlikely false-positive (unrelated dir whose parent
14847         repository also contains a tag matching v*), as pointed out
14848         by Giuseppe Scrivano in
14849         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
14850
14851 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
14852
14853         argv-iter: omit nonconforming declaration
14854         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
14855         enum arg_iter_err declaration, which doesn't conform to C99.
14856         Solaris 10 cc warns about this.
14857
14858 2010-10-13  Eric Blake  <eblake@redhat.com>
14859
14860         termios: fix compilation on mingw
14861         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
14862         (gl_TERMIOS_H): Adjust it on mingw.
14863         * modules/termios (Makefile.am): Substitute new key.
14864         * lib/termios.in.h (includes): Make include_next conditional.
14865         * doc/posix-headers/termios.texi (termios.h): Update
14866         documentation.
14867         Reported by Daniel P. Berrange.
14868
14869 2010-10-13  Jim Meyering  <meyering@redhat.com>
14870
14871         git-version-gen: don't require that .git/ be in the current dir
14872         * build-aux/git-version-gen: Adjust this script so that it works
14873         when run from any working directory beneath the top-level .git/-
14874         containing directory.  Inspired by a patch from Giuseppe Scrivano,
14875         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
14876
14877         test-select: avoid warn_unused_result warnings
14878         * tests/test-select.c: Include "macros.h".
14879         ASSERT that each call to read, write, and pipe succeeds.
14880         While not technically required, also check each "close".
14881         * modules/select-tests (Files): Add tests/macros.h.
14882
14883         test-symlinkat: remove declaration of unused local
14884         * tests/test-symlinkat.c (main): Remove unused local, "buf".
14885
14886         test-inttostr: avoid shadowing warnings
14887         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
14888         and use malloc rather than the stack for the same reason as
14889         mentioned in the comment justifying the other allocation.
14890
14891 2010-10-11  Bruno Haible  <bruno@clisp.org>
14892
14893         stdlib: Allow multiple gnulib generated replacements to coexist.
14894         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
14895         Reported by Sam Steingold <sds@gnu.org>.
14896
14897 2010-10-11  Jim Meyering  <meyering@redhat.com>
14898
14899         fix a documentation typo
14900         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
14901
14902 2010-10-11  Eric Blake  <eblake@redhat.com>
14903
14904         futimens: work around Solaris 11 bug
14905         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
14906         * tests/test-futimens.h (test_futimens): Enhance, rather than
14907         weaken test.
14908         * doc/posix-functions/futimens.texi (futimens): Document the bug.
14909
14910 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
14911
14912         Indentation.
14913         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
14914         higher-level operators more to the left.
14915
14916 2010-10-11  Jim Meyering  <meyering@redhat.com>
14917
14918         test-futimens: avoid unwarranted test failure on Solaris 5.11
14919         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
14920         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
14921         because it tries to dereference the NULL name argument.
14922
14923 2010-10-11  Bruno Haible  <bruno@clisp.org>
14924
14925         Indentation.
14926         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
14927         indentation.
14928
14929 2010-10-11  Jim Meyering  <meyering@redhat.com>
14930
14931         spawn.in.h: make indentation consistent with parentheses
14932         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
14933         Make indentation consistent with parentheses.
14934
14935 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
14936
14937         Fix mismatched parens in previous commit
14938         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
14939         parens.
14940
14941 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
14942
14943         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
14944
14945         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
14946         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
14947         * lib/malloca.c: Include "verify.h".
14948         (verify1): Remove, replacing with a verify call.
14949         * lib/relocwrapper.c (verify1): Likewise.
14950         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
14951         Likewise.
14952         * modules/malloca (Depends-on): Add 'verify'.
14953         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
14954         * modules/vasnprintf (Depends-on): Add 'verify'.
14955         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
14956         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
14957         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
14958         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
14959         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
14960         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
14961         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
14962
14963         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
14964
14965         Formerly the style was sometimes 2*X - 1, because the C standard
14966         was wrongly thought to disallow ?: in integral constant expressions.
14967         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
14968         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
14969         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
14970         * lib/stdint.in.h (_verify_intmax_size): Likewise.
14971         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
14972         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
14973         verify that time_t cannot be floating.
14974
14975 2010-10-08  Eric Blake  <eblake@redhat.com>
14976
14977         time: enforce recent POSIX ruling that time_t is integral
14978         * lib/time.in.h (__time_t_must_be_integral): Detect any
14979         problematic systems, allowing the rest of gnulib to assume POSIX.
14980
14981 2010-10-08  Jim Meyering  <meyering@redhat.com>
14982
14983         fdopendir: fix a bug on systems lacking openat and /proc support
14984         OpenBSD 4.7 is one such system.  The most noticeable effect was
14985         failure of any application making nontrivial use of fts: rm, du,
14986         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
14987           ./rm: traversal failed: `a': Bad file descriptor
14988         Debugging that, you see that even though FD 6 was closed just
14989         prior to the opendir call in fd_clone_opendir, its resulting
14990         dir->dd_fd was 8, rather than the expected value of 6:
14991
14992         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
14993         93                close (fd);
14994         (gdb) n
14995         94                dir = fd_clone_opendir (dupfd);
14996         (gdb) n
14997         95                saved_errno = errno;
14998         (gdb) p dir->dd_fd
14999         $11 = 8
15000
15001         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
15002         The problem is that on OpenBSD, fd_clone_opendir has to resort
15003         to using the old-style save/restore CWD mechanism, due to its
15004         lack of openat/proc support, and *that* would steal the FD (6)
15005         that opendir was supposed to use.
15006
15007         The fix is to squirrel away the desired FD so that save_cwd uses a
15008         different one, and then free the dest FD right before calling opendir.
15009         That guarantees opendir will use the required file descriptor.
15010
15011         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
15012
15013 2010-10-08  Bruno Haible  <bruno@clisp.org>
15014
15015         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
15016         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
15017
15018 2010-10-08  Bruno Haible  <bruno@clisp.org>
15019
15020         nanosleep: Make replacement POSIX compliant.
15021         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
15022         is out of range.
15023         Reported by Jim Meyering.
15024
15025 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
15026
15027         bootstrap: add hook for altering gnulib.mk, for Bison
15028         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
15029         the Bison bootstrapping process can rewrite file names and variables
15030         in this file before later parts of 'bootstrap' use the file.
15031         Bison wants to include lib/gnulib.mk from the top-level makefile,
15032         so it needs the file names in this file to be relative to the top
15033         level, not relative to lib; plus it needs variable names to be
15034         rewritten.
15035         (slurp): Use the new function.
15036
15037         bootstrap: reformat for readability
15038         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
15039
15040 2010-10-08  Eric Blake  <eblake@redhat.com>
15041
15042         docs: update cygwin progress
15043         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
15044         1.7.7.
15045         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
15046         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
15047         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
15048         * doc/posix-functions/carg.texi (carg): Likewise.
15049         * doc/posix-functions/cargf.texi (cargf): Likewise.
15050         * doc/posix-functions/casin.texi (casin): Likewise.
15051         * doc/posix-functions/casinf.texi (casinf): Likewise.
15052         * doc/posix-functions/casinh.texi (casinh): Likewise.
15053         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
15054         * doc/posix-functions/catan.texi (catan): Likewise.
15055         * doc/posix-functions/catanf.texi (catanf): Likewise.
15056         * doc/posix-functions/catanh.texi (catanh): Likewise.
15057         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
15058         * doc/posix-functions/ccos.texi (ccos): Likewise.
15059         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
15060         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
15061         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
15062         * doc/posix-functions/cexp.texi (cexp): Likewise.
15063         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
15064         * doc/posix-functions/cimag.texi (cimag): Likewise.
15065         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
15066         * doc/posix-functions/clog.texi (clog): Likewise.
15067         * doc/posix-functions/clogf.texi (clogf): Likewise.
15068         * doc/posix-functions/conj.texi (conj): Likewise.
15069         * doc/posix-functions/conjf.texi (conjf): Likewise.
15070         * doc/posix-functions/cpow.texi (cpow): Likewise.
15071         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
15072         * doc/posix-functions/cproj.texi (cproj): Likewise.
15073         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
15074         * doc/posix-functions/creal.texi (creal): Likewise.
15075         * doc/posix-functions/crealf.texi (crealf): Likewise.
15076         * doc/posix-functions/csin.texi (csin): Likewise.
15077         * doc/posix-functions/csinf.texi (csinf): Likewise.
15078         * doc/posix-functions/csinh.texi (csinh): Likewise.
15079         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
15080         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
15081         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
15082         * doc/posix-functions/ctan.texi (ctan): Likewise.
15083         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
15084         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
15085         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
15086         * doc/posix-headers/complex.texi (complex.h): Likewise.
15087
15088 2010-10-07  Jim Meyering  <meyering@redhat.com>
15089
15090         parse-datetime: avoid compilation failure on OpenBSD 4.7
15091         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
15092         This works around a compilation failure on OpenBSD 4.7:
15093         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
15094
15095 2010-10-07  Eric Blake  <eblake@redhat.com>
15096
15097         docs: update cygwin progress
15098         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
15099         1.7.6.
15100         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
15101         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
15102         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
15103         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
15104         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
15105         Likewise.
15106         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
15107         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
15108         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
15109         Likewise.
15110         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
15111         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
15112         Likewise.
15113         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
15114         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
15115         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
15116         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
15117         Likewise.
15118         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
15119         Likewise.
15120         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
15121
15122         docs: update parse-datetime history
15123         * doc/parse-datetime.texi (Authors of parse_datetime): Better
15124         documentation of this function's history and alternatives.
15125
15126         cygwin: use more robust version check
15127         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
15128         exclude an eventual cygwin 1.9.1.
15129         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
15130         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
15131         (gl_FUNC_STRCASESTR): Likewise.
15132         Reported by Bruno Haible.
15133
15134 2010-10-06  Bruno Haible  <bruno@clisp.org>
15135
15136         string, sys_select: Avoid #including large headers unless necessary.
15137         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
15138         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
15139         OSF/1, BeOS, Haiku.
15140         Reported by Jim Meyering.
15141
15142 2010-10-05  Eric Blake  <eblake@redhat.com>
15143
15144         memmem, strstr, strcasestr: fix bug with long periodic needle
15145         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
15146         periodic needle having false positive.
15147         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
15148         and cygwin 1.7.7.
15149         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
15150         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
15151         (gl_FUNC_STRCASESTR): Likewise.
15152         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
15153         * tests/test-memmem.c (main): Expose the bug.
15154         * tests/test-strcasestr.c (main): Likewise.
15155         * tests/test-strstr.c (main): Likewise.
15156         * tests/test-c-strcasestr.c (main): Likewise.
15157         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
15158         * doc/posix-functions/strstr.texi (strstr): Likewise.
15159         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
15160         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
15161
15162 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
15163
15164         parse-datetime: do some more renaming
15165         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
15166         parse_datetime, not get_date.  Mention the renaming.
15167         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
15168         in comments.
15169         * m4/bison.m4: Likewise.
15170
15171 2010-10-05  Eric Blake  <eblake@redhat.com>
15172
15173         parse-datetime: better name than get_date
15174         * NEWS: Reword the deprecation notice.
15175         * modules/get_date: Rename to modules/parse-datetime.
15176         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
15177         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
15178         * lib/get_date.y: Rename to lib/parse-datetime.y.
15179         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
15180         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
15181         * doc/getdate.texi: Provide fallback wrapper.
15182         * lib/getdate.h: Move guts, and wrap...
15183         * lib/parse-datetime.h: ...new file.
15184         * lib/parse-datetime.y (get_date): Rename...
15185         (parse_datetime): ...to this.
15186         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
15187         (gl_PARSE_DATETIME): ...to this.
15188         * doc/posix-functions/getdate.texi (get_date): Provide fallback
15189         documentation.
15190         * modules/getdate (Files): Provide fallback docs and header.
15191         (Notice, Depends-on): Update references.
15192         * tests/test-parse-datetime.c: Likewise.
15193         * DEPENDENCIES: Likewise.
15194         * MODULES.html.sh (Date and time <time.h>): Likewise.
15195         * doc/parse-datetime.texi (Date input formats)
15196         (Authors of parse_datetime): Likewise.
15197         * modules/parse-datetime (Files, configure.ac, Makefile.am)
15198         (Include): Likewise.
15199         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
15200         * gnulib-tool: Likewise.
15201         * m4/bison.m4 (gl_BISON): Likewise.
15202         Suggested by Bruno Haible.
15203
15204 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
15205
15206         more ports to Solaris tr, which needs [] around ranges
15207         * gnulib-tool: Solaris tr needs [] around ranges.
15208         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
15209         * tests/test-pipe-filter-gi1.c (main): Likewise.
15210         * tests/test-pipe-filter-ii1.c (main): Likewise.
15211
15212 2010-10-05  Eric Blake  <eblake@redhat.com>
15213
15214         bootstrap: fix Solaris regression
15215         * build-aux/bootstrap (check_versions): Solaris tr still needs []
15216         around ranges.
15217         Reported by Pádraig Brady.
15218
15219         bootstrap: work with pkg-config
15220         * build-aux/bootstrap (check_versions): Also transliterate - in
15221         prerequisite name.
15222         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
15223         prerequisites that were already found, to avoid confusion.
15224         Reported by Justin Clift.
15225
15226         faccessat: remove unused wrappers
15227         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
15228         presence of these wrappers dragged in -lgen on Solaris.
15229         Reported by Clemens Brogi; fix suggested by Paul Eggert.
15230
15231 2010-10-05  Jim Meyering  <meyering@redhat.com>
15232
15233         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
15234         * Makefile (sc_pragma_columns): New syntax-check rule.
15235
15236 2010-10-04  Bruno Haible  <bruno@clisp.org>
15237
15238         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
15239         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
15240         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
15241         Reported by Bruce Korb and Eric Blake.
15242
15243 2010-10-04  Bruno Haible  <bruno@clisp.org>
15244
15245         threadlib: Make option --with-libpth-prefix work.
15246         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
15247         use $LIBPTH, not just -lpth.
15248
15249 2010-10-04  Bruno Haible  <bruno@clisp.org>
15250
15251         Avoid line length limitation from HP NonStop system header files.
15252         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
15253         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
15254         * lib/ctype.in.h: Likewise.
15255         * lib/dirent.in.h: Likewise.
15256         * lib/errno.in.h: Likewise.
15257         * lib/fcntl.in.h: Likewise.
15258         * lib/float.in.h: Likewise.
15259         * lib/getopt.in.h: Likewise.
15260         * lib/iconv.in.h: Likewise.
15261         * lib/inttypes.in.h: Likewise.
15262         * lib/langinfo.in.h: Likewise.
15263         * lib/locale.in.h: Likewise.
15264         * lib/math.in.h: Likewise.
15265         * lib/netdb.in.h: Likewise.
15266         * lib/netinet_in.in.h: Likewise.
15267         * lib/poll.in.h: Likewise.
15268         * lib/pthread.in.h: Likewise.
15269         * lib/pty.in.h: Likewise.
15270         * lib/sched.in.h: Likewise.
15271         * lib/se-selinux.in.h: Likewise.
15272         * lib/search.in.h: Likewise.
15273         * lib/signal.in.h: Likewise.
15274         * lib/spawn.in.h: Likewise.
15275         * lib/stdarg.in.h: Likewise.
15276         * lib/stddef.in.h: Likewise.
15277         * lib/stdint.in.h: Likewise.
15278         * lib/stdio.in.h: Likewise.
15279         * lib/stdlib.in.h: Likewise.
15280         * lib/string.in.h: Likewise.
15281         * lib/strings.in.h: Likewise.
15282         * lib/sys_file.in.h: Likewise.
15283         * lib/sys_ioctl.in.h: Likewise.
15284         * lib/sys_select.in.h: Likewise.
15285         * lib/sys_socket.in.h: Likewise.
15286         * lib/sys_stat.in.h: Likewise.
15287         * lib/sys_time.in.h: Likewise.
15288         * lib/sys_times.in.h: Likewise.
15289         * lib/sys_utsname.in.h: Likewise.
15290         * lib/sys_wait.in.h: Likewise.
15291         * lib/sysexits.in.h: Likewise.
15292         * lib/termios.in.h: Likewise.
15293         * lib/time.in.h: Likewise.
15294         * lib/unistd.in.h: Likewise.
15295         * lib/wchar.in.h: Likewise.
15296         * lib/wctype.in.h: Likewise.
15297         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
15298         * modules/ctype (Makefile.am): Likewise.
15299         * modules/dirent (Makefile.am): Likewise.
15300         * modules/errno (Makefile.am): Likewise.
15301         * modules/fcntl-h (Makefile.am): Likewise.
15302         * modules/float (Makefile.am): Likewise.
15303         * modules/getopt-posix (Makefile.am): Likewise.
15304         * modules/iconv-h (Makefile.am): Likewise.
15305         * modules/inttypes (Makefile.am): Likewise.
15306         * modules/langinfo (Makefile.am): Likewise.
15307         * modules/locale (Makefile.am): Likewise.
15308         * modules/math (Makefile.am): Likewise.
15309         * modules/netdb (Makefile.am): Likewise.
15310         * modules/netinet_in (Makefile.am): Likewise.
15311         * modules/poll-h (Makefile.am): Likewise.
15312         * modules/pthread (Makefile.am): Likewise.
15313         * modules/pty (Makefile.am): Likewise.
15314         * modules/sched (Makefile.am): Likewise.
15315         * modules/search (Makefile.am): Likewise.
15316         * modules/selinux-h (Makefile.am): Likewise.
15317         * modules/signal (Makefile.am): Likewise.
15318         * modules/spawn (Makefile.am): Likewise.
15319         * modules/stdarg (Makefile.am): Likewise.
15320         * modules/stddef (Makefile.am): Likewise.
15321         * modules/stdint (Makefile.am): Likewise.
15322         * modules/stdio (Makefile.am): Likewise.
15323         * modules/stdlib (Makefile.am): Likewise.
15324         * modules/string (Makefile.am): Likewise.
15325         * modules/strings (Makefile.am): Likewise.
15326         * modules/sys_file (Makefile.am): Likewise.
15327         * modules/sys_ioctl (Makefile.am): Likewise.
15328         * modules/sys_select (Makefile.am): Likewise.
15329         * modules/sys_socket (Makefile.am): Likewise.
15330         * modules/sys_stat (Makefile.am): Likewise.
15331         * modules/sys_time (Makefile.am): Likewise.
15332         * modules/sys_times (Makefile.am): Likewise.
15333         * modules/sys_utsname (Makefile.am): Likewise.
15334         * modules/sys_wait (Makefile.am): Likewise.
15335         * modules/sysexits (Makefile.am): Likewise.
15336         * modules/termios (Makefile.am): Likewise.
15337         * modules/time (Makefile.am): Likewise.
15338         * modules/unistd (Makefile.am): Likewise.
15339         * modules/wchar (Makefile.am): Likewise.
15340         * modules/wctype (Makefile.am): Likewise.
15341
15342 2010-10-04  Bruno Haible  <bruno@clisp.org>
15343
15344         read-file tests: Avoid a test failure on NonStop Kernel.
15345         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
15346         a regular file.
15347         Reported by Joachim Schmitz <schmitz@hp.com>.
15348
15349 2010-10-03  Bruno Haible  <bruno@clisp.org>
15350
15351         gnulib-tool: Fixes for --create-testdir with --libtool.
15352         * gnulib-tool (func_get_automake_snippet): Don't augment
15353         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
15354         an executable.
15355         (func_create_testdir): Handle module 'alloca' like func_import.
15356         Reported by Bruce Korb <bruce.korb@gmail.com>.
15357
15358 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
15359
15360         Avoid some lines longer than 80 characters.
15361         * lib/stdint.in.h: Break long comment lines.
15362         * lib/math.in.h: Likewise.
15363         (_GL_NUM_UINT_WORDS): New macro, for readability.
15364         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
15365         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
15366         * lib/stdlib.in.h: Likewise.
15367         * lib/spawn.in.h: Likewise.
15368         * lib/sys_socket.in.h: Update an URL.
15369         * lib/sys_stat.in.h: Break long line.
15370
15371 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
15372
15373         Improve pmccabe2html.
15374         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
15375         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
15376         when the sources change. Remove the line in the HTML about "Used
15377         ranges" (which implied that there might be other unused ranges),
15378         rename "Resume" to "Summary" (easier to understand for more users).
15379         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
15380         styles, and some unnecessary blank lines.
15381
15382 2010-10-03  Bruno Haible  <bruno@clisp.org>
15383             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
15384
15385         acl: Add support for ACLs on NonStop Kernel.
15386         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
15387         Check whether the function aclsort() exists.
15388         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
15389         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
15390         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
15391         (acl_nontrivial [HAVE_ACLSORT]: New function.
15392         (file_has_acl): Implement for NonStop Kernel.
15393         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
15394         (qset_acl): Implement for NonStop Kernel.
15395         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
15396         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
15397         (main): Implement for NonStop Kernel.
15398         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
15399         Kernel. Handle this flavor.
15400         * tests/test-set-mode-acl.sh: Likewise.
15401         * tests/test-copy-acl.sh: Likewise.
15402         * tests/test-copy-file.sh: Likewise.
15403
15404 2010-10-03  Bruno Haible  <bruno@clisp.org>
15405
15406         Info about ACLs on NonStop Kernel.
15407         * doc/acl-resources.txt: Add info about NonStop Kernel.
15408         References by Joachim Schmitz <schmitz@hp.com>.
15409
15410 2010-10-02  Bruno Haible  <bruno@clisp.org>
15411
15412         Define missing EDQUOT on NonStop Kernel.
15413         * lib/errno.in.h (EDQUOT): Assign a value if missing.
15414         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
15415         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
15416         missing.
15417         * doc/posix-headers/errno.texi: Mention the NSK bug.
15418         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
15419         Reported by Joachim Schmitz <schmitz@hp.com>.
15420
15421 2010-10-02  Bruno Haible  <bruno@clisp.org>
15422
15423         Update doc for POSIX:2008.
15424         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
15425         Update URL of POSIX specification.
15426
15427 2010-10-02  Bruno Haible  <bruno@clisp.org>
15428
15429         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
15430         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
15431         from gnulib, not from Automake.
15432
15433 2010-10-02  Bruno Haible  <bruno@clisp.org>
15434
15435         New module 'system-posix'.
15436         * modules/system-posix: New file.
15437         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
15438         module is present.
15439         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
15440         GNULIB_SYSTEM_POSIX.
15441         * modules/stdlib (Depends-on): Remove sys_wait.
15442         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
15443         * doc/posix-functions/system.texi: Mention the new module.
15444         * doc/posix-headers/stdlib.texi: Likewise.
15445         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
15446         define test_sys_wait_macros to a no-op.
15447         Reported by Sam Steingold <sds@gnu.org>.
15448
15449 2010-09-30  Bruno Haible  <bruno@clisp.org>
15450
15451         More renaming from 'getdate' to 'get_date'.
15452         * doc/get_date.texi: Renamed from doc/getdate.texi.
15453         * modules/get_date (Files): Update.
15454         * MODULES.html.sh (Date and time <time.h>): Update.
15455         * DEPENDENCIES: Update.
15456         * gnulib-tool: Update comment.
15457         * m4/bison.m4 (gl_BISON): Likewise.
15458         * m4/get_date.m4 (gl_GET_DATE): Likewise.
15459
15460 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
15461
15462         bootstrap: support ACLOCAL_FLAGS during aclocal
15463         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
15464         can add additional -I dir for third-party .m4 files.
15465
15466 2010-09-30  Eric Blake  <eblake@redhat.com>
15467
15468         bootstrap: use glibtoolize on MacOS
15469         * build-aux/bootstrap (check_versions): Convert libtool into
15470         libtoolize.
15471         (tool search): Move libtool check earlier, and look for
15472         glibtoolize for MacOS.
15473         (gnulib_tool_options): Auto-add --libtool when appropriate.
15474         Reported by Justin Clift.
15475
15476         poll: fix typo that broke test on MacOS
15477         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
15478         Reported by Justin Clift.
15479
15480         getdate: rename to get_date
15481         Note: getdate.h is not renamed, to minimize client impact.
15482         * modules/getdate: Mark obsolete.  Move old contents...
15483         * modules/get_date: ...to new module name.
15484         * modules/getdate-tests: Move...
15485         * modules/get_date-tests: ...here.
15486         * m4/getdate.m4: Move...
15487         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
15488         * lib/getdate.y: Move...
15489         * lib/get_date.y: ...here.
15490         * tests/test-getdate.c: Move...
15491         * tests/test-get_date.c: ...here.
15492         * doc/posix-functions/getdate.texi (getdate): Update name.
15493         * NEWS: Mention the change.
15494
15495 2010-09-29  Bruno Haible  <bruno@clisp.org>
15496
15497         Separate the module 'waitpid' from the module 'sys_wait'.
15498         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
15499         present.
15500         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
15501         gl_MODULE_INDICATOR_FOR_TESTS.
15502         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
15503         * modules/sys_wait (Depends-on): Remove waitpid.
15504         (Makefile.am): Substitute GNULIB_WAITPID.
15505         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
15506         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
15507         signature only if the 'waitpid' module is present.
15508         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
15509         * NEWS: Mention the change.
15510         * modules/grantpt (Depends-on): Add waitpid.
15511         * modules/wait-process (Depends-on): Likewise.
15512
15513 2010-09-29  Bruno Haible  <bruno@clisp.org>
15514
15515         More tests for module 'sys_wait'.
15516         * modules/sys_wait-c++-tests: New file.
15517         * tests/test-sys_wait-c++.cc: New file.
15518         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
15519         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
15520
15521 2010-09-29  Bruno Haible  <bruno@clisp.org>
15522
15523         New module 'waitpid'.
15524         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
15525         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
15526         Don't include <process.h>.
15527         (waitpid): Declare only, using modern idiom.
15528         * m4/waitpid.m4: New file.
15529         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
15530         * modules/waitpid: New file.
15531         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
15532         (Makefile.am): Update.
15533         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
15534
15535 2010-09-28  Bruno Haible  <bruno@clisp.org>
15536
15537         poll: Assume ANSI C.
15538         * lib/poll.c (poll): Use an ANSI C declaration.
15539
15540 2010-09-28  Bruno Haible  <bruno@clisp.org>
15541
15542         poll-h: Create poll.h on all platforms.
15543         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
15544         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
15545         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
15546         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
15547         (gl_REPLACE_POLL_H): Don't set POLL_H.
15548         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
15549         * modules/poll-h (Depends-on): Add include_next.
15550         (Makefile.am): Create poll.h unconditionally. Substitute also
15551         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
15552
15553 2010-09-28  Bruno Haible  <bruno@clisp.org>
15554
15555         Tests for module 'poll-h'.
15556         * modules/poll-h-c++-tests: New file.
15557         * tests/test-poll-h-c++.cc: New file.
15558
15559         Tests for module 'poll-h'.
15560         * modules/poll-h-tests: New file.
15561         * tests/test-poll-h.c: New file.
15562
15563 2010-09-28  Bruno Haible  <bruno@clisp.org>
15564
15565         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
15566         * modules/poll-h (Depends-on): Add 'extensions'.
15567
15568 2010-09-28  Bruno Haible  <bruno@clisp.org>
15569
15570         New module 'poll-h'.
15571         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
15572         (poll): Use modern idiom.
15573         * modules/poll-h: New file.
15574         * modules/poll (Files): Remove lib/poll.in.h.
15575         (Depends-on): Add poll-h.
15576         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
15577         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
15578         * m4/poll_h.m4: New file.
15579         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
15580         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
15581         and invoke gl_REPLACE_POLL_H.
15582         * lib/poll.c: Use common idiom.
15583         * tests/test-poll.c: Likewise.
15584         * doc/posix-headers/poll.texi: Mention the poll-h module.
15585         Suggested by Eric Blake.
15586
15587 2010-09-26  Bruno Haible  <bruno@clisp.org>
15588
15589         sys_wait: Implement WSTOPSIG.
15590         * lib/sys_wait.in.h (WSTOPSIG): New macro.
15591         Reported by Simon Josefsson.
15592
15593 2010-09-26  Simon Josefsson  <simon@josefsson.org>
15594
15595         stdlib, sys_wait: Avoid compilation error on mingw.
15596         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
15597
15598 2010-09-26  Bruno Haible  <bruno@clisp.org>
15599
15600         stdlib tests: Avoid code duplication.
15601         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
15602         * modules/sys_wait-tests (Files): Likewise.
15603         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
15604         * tests/test-stdlib.c: Include test-sys_wait.h.
15605         (main): Invoke test_sys_wait_macros.
15606         * tests/test-sys_wait.c: Include test-sys_wait.h.
15607         (main): Invoke test_sys_wait_macros.
15608
15609 2010-09-25  Simon Josefsson  <simon@josefsson.org>
15610
15611         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
15612         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
15613         sure Windows sockets are working before calling getaddrinfo.
15614         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
15615         * doc/gnulib.texi (Windows sockets): Fix typo.
15616
15617 2010-09-25  Bruno Haible  <bruno@clisp.org>
15618
15619         Tests for module 'regex-quote'.
15620         * modules/regex-quote-tests: New file.
15621         * tests/test-regex-quote.c: New file.
15622
15623         New module 'regex-quote'.
15624         * lib/regex-quote.h: New file.
15625         * lib/regex-quote.c: New file.
15626         * modules/regex-quote: New file.
15627         Suggested by Reuben Thomas <rrt@sc3d.org>.
15628
15629 2010-09-24  Bruno Haible  <bruno@clisp.org>
15630
15631         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
15632         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
15633
15634 2010-09-23  Bruno Haible  <bruno@clisp.org>
15635
15636         setenv: Relax license.
15637         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
15638         Blake.
15639         Requested by Eric Blake.
15640
15641 2010-09-22  Bruno Haible  <bruno@clisp.org>
15642
15643         termios: Relax license.
15644         * modules/termios (License): Change to LGPLv2+.
15645         Requested by Eric Blake.
15646
15647 2010-09-22  Bruno Haible  <bruno@clisp.org>
15648
15649         threadlib: Allow the package to change the default to 'no'.
15650         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
15651         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
15652         Reported by Paul Eggert.
15653
15654 2010-09-22  Pádraig Brady  <P@draigbrady.com>
15655             Bruno Haible  <bruno@clisp.org>
15656
15657         Fix endless loop in mbmemcasecoll.
15658         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
15659         byte.
15660         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
15661
15662 2010-09-22  Bruno Haible  <bruno@clisp.org>
15663
15664         Tests for module 'memcoll'.
15665         * modules/memcoll-tests: New file.
15666         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
15667
15668         memcoll, xmemcoll: Clarify size vs. length.
15669         * modules/memcoll.c (memcoll0): Clarify specification.
15670         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
15671         passed to collate_error.
15672
15673 2010-09-22  Bruno Haible  <bruno@clisp.org>
15674
15675         Tests for module 'memcasecmp'.
15676         * modules/memcasecmp-tests: New file.
15677         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
15678
15679 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
15680
15681         * lib/pthread.in.h: Add split double-inclusion guard, and include
15682         system <pthread.h> if there is one.  Use @@-style as in other
15683         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
15684         pthread.h doesn't.
15685         (pthread_mutexattr_destroy, pthread_mutexattr_init):
15686         (pthread_mutexattr_settype, pthread_mutex_trylock):
15687         New static inline functions, if there's no system <pthread.h>.
15688         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
15689         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
15690         Approximate with mutexes if the system lacks spinlocks, as in
15691         MacOS.
15692         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
15693         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
15694         @@-style.  Check for spinlocks separately.
15695         (gl_PTHREAD_DEFAULTS): New macro.
15696         * modules/pthread: Redo to use a more typical style for in.h files.
15697
15698 2010-09-21  Eric Blake  <eblake@redhat.com>
15699
15700         net_if: enhance tests
15701         * tests/test-net_if.c (main): Move signature checks earlier.
15702         Print failures to stderr.
15703         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
15704         Document the bug that we do not yet fix.
15705
15706 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
15707
15708         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
15709         about gnulib, not GSS.
15710
15711 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
15712
15713         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
15714         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
15715         for Emacs.
15716         * build-aux/pmccabe2html: Make Makefile.am example code more
15717         cut-and-paste friendly.
15718
15719 2010-09-21  Simon Josefsson  <simon@josefsson.org>
15720
15721         * tests/test-net_if.c: New file.
15722         * modules/net_if-tests: New file.
15723
15724 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
15725
15726         pthread: add pthread_spin_destroy
15727         * lib/pthread.in.h (pthread_spin_destroy): New function.
15728
15729 2010-09-19  Bruno Haible  <bruno@clisp.org>
15730
15731         gnulib-tool: Fix --help output.
15732         * gnulib-tool (func_usage): Fix help message.
15733         Reported by Reuben Thomas <rrt@sc3d.org>.
15734
15735 2010-09-18  Jim Meyering  <meyering@redhat.com>
15736
15737         maint.mk: avoid unexpanded \n in two diagnostics
15738         * top/maint.mk (sc_prohibit_always_true_header_tests):
15739         Don't use a literal \n in a halt=... assignment.  It would not be
15740         expanded, and the two \n bytes would appear in the diagnostic output
15741         rather than the desired newline.  Use halt=$$(printf ... instead.
15742         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
15743
15744 2010-09-18  Bruno Haible  <bruno@clisp.org>
15745
15746         netinet_in: Doc tweak.
15747         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
15748         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
15749
15750 2010-09-18  Jim Meyering  <meyering@redhat.com>
15751
15752         init.sh: correct an outdated comment
15753         * tests/init.sh (create_exe_shims_):  s/function/alias/
15754
15755         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
15756         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
15757         a file named "*.exe" is removed between the glob expansion and the
15758         processing of that oddly named file.
15759
15760 2010-09-17  Eric Blake  <eblake@redhat.com>
15761
15762         mirbsd: add some more support
15763         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
15764         in BSD family.
15765         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
15766         devices as OpenBSD.
15767         * m4/host-os.m4 (mirbsd): Add MirBSD.
15768
15769         tests: fix unportable assumption on sys/wait.h
15770         * tests/test-sys_wait.c (main): Relax test.
15771         * tests/test-stdlib.c (main): Likewise.
15772
15773         init.sh: accomodate directory with no .exes
15774         * tests/init.sh: Accomodate directory containing only scripts.
15775
15776         tests: avoid compiler warning
15777         * tests/test-stdlib.c (main): Use the variable.
15778
15779         fdutimens, fdutimensat: update signature, again
15780         * lib/utimens.h (gl_futimens): Delete, and move signature...
15781         (fdutimens): ...here.
15782         (fdutimensat): Rearrange signature.
15783         (lutimensat): Rename variable for clarity.
15784         * lib/fdutimensat.c (fdutimensat): Update signature.
15785         * lib/utimens.c (fdutimens): Likewise.
15786         (gl_futimens): Delete.
15787         (utimens, lutimens): Update callers.
15788         * lib/futimens.c (futimens): Likewise.
15789         * tests/test-fdutimensat.c: Likewise.
15790         * tests/test-utimens.c: Likewise.
15791         * tests/test-futimens.h: Update comment.
15792         * NEWS: Mention this.
15793         Suggested by Paul Eggert.
15794
15795 2010-09-17  Bruno Haible  <bruno@clisp.org>
15796
15797         Take over the maintenance of some older macros from Autoconf.
15798         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
15799         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
15800         GNU Autoconf.
15801         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
15802         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
15803
15804 2010-09-17  Eric Blake  <eblake@redhat.com>
15805
15806         fdutimensat: drop atflag validation
15807         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
15808         with valid fd, to close a race scenario where futimens is
15809         unsupported and FILE was replaced by a symlink.
15810         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
15811         accordingly.
15812         Suggested by Paul Eggert.
15813
15814 2010-09-16  Bruno Haible  <bruno@clisp.org>
15815
15816         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
15817         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
15818
15819 2010-09-16  Bruno Haible  <bruno@clisp.org>
15820
15821         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
15822         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
15823         login_tty exists.
15824         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
15825
15826 2010-09-16  Bruno Haible  <bruno@clisp.org>
15827
15828         login_tty: Make the replacement code work on BSD systems.
15829         * lib/login_tty.c: Include <sys/ioctl.h>.
15830         (login_tty): Use ioctl TIOCSCTTY when available.
15831         * modules/login_tty (Depends-on): Add sys_ioctl.
15832         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
15833
15834 2010-09-16  Bruno Haible  <bruno@clisp.org>
15835
15836         login_tty: Stricter unit test.
15837         * modules/login_tty-tests (Depends-on): Add tcgetsid.
15838         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
15839         and tcgetsid() after login_tty.
15840         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
15841
15842 2010-09-16  Bruno Haible  <bruno@clisp.org>
15843
15844         New module 'tcgetsid'.
15845         * lib/tcgetsid.c: New file.
15846         * m4/tcgetsid.m4: New file.
15847         * modules/tcgetsid: New file.
15848         * modules/termios (Depends-on): Add c++defs, warn-on-use.
15849         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
15850         GNULIB_TCGETSID, HAVE_TCGETSID.
15851         * lib/termios.in.h: Include <sys/types.h>.
15852         (tcgetsid): New declaration.
15853         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
15854         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
15855         * doc/posix-functions/tcgetsid.texi: Mention the new module.
15856         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
15857
15858 2010-09-16  Bruno Haible  <bruno@clisp.org>
15859
15860         Tests for module 'termios'.
15861         * modules/termios-c++-tests: New file.
15862         * modules/termios-tests: New file.
15863         * tests/test-termios-c++.cc: New file.
15864         * tests/test-termios.c: New file.
15865
15866         New module 'termios'.
15867         * modules/termios: New file.
15868         * lib/termios.in.h: New file.
15869         * m4/termios_h.m4: New file.
15870         * doc/posix-headers/termios.texi: Mention the new module.
15871
15872 2010-09-16  Eric Blake  <eblake@redhat.com>
15873
15874         fdutimensat: add an atflag parameter
15875         * lib/fdutimensat.c (fdutimensat): Add new parameter.
15876         * lib/utimens.h (fdutimensat): Update prototype.
15877         * tests/test-fdutimensat.c: Adjust test to match.
15878         * NEWS: Document the change.
15879         Suggested by Paul Eggert.
15880
15881 2010-09-16  Bruno Haible  <bruno@clisp.org>
15882
15883         Fix typos in comments.
15884         * lib/striconveh.h: Fix typo in comment.
15885         * lib/login_tty.c (login_tty): Likewise.
15886
15887 2010-09-15  Bruno Haible  <bruno@clisp.org>
15888
15889         stdlib: clarify MirBSD WEXITSTATUS bug
15890         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
15891         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
15892
15893 2010-09-15  Eric Blake  <eblake@redhat.com>
15894
15895         stdlib: work around MirBSD WEXITSTATUS bug
15896         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
15897         * modules/stdlib (Depends-on): Add sys_wait.
15898         * tests/test-sys_wait.c (main): Enhance test.
15899         * tests/test-stdlib.c (main): Likewise.
15900         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
15901
15902         docs: mention MacOS issue with WEXITSTATUS(constant)
15903         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
15904         issue.
15905         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
15906
15907         strnlen: add tests
15908         * modules/strnlen-tests: New file.
15909         * tests/test-strnlen.c: Likewise.
15910
15911 2010-09-14  Bruno Haible  <bruno@clisp.org>
15912
15913         unistr/base: Avoid link errors when module 'libunistring' is also used.
15914         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
15915         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
15916         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
15917         Declare also when HAVE_LIBUNISTRING is set.
15918         Reported by Pádraig Brady <P@draigbrady.com>.
15919
15920 2010-09-14  Eric Blake  <eblake@redhat.com>
15921
15922         test-rawmemchr: make more robust
15923         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
15924         (Depends-on, configure.ac): Add needed prerequisites to use it.
15925         * modules/memchr-tests (Files, Depends-on, configure.ac):
15926         Likewise, to avoid implicit reliance on memchr module prereqs.
15927         * tests/test-memchr.c (main): Ensure proper masking.
15928         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
15929         reads.
15930
15931         memchr: detect glibc Alpha bug
15932         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
15933         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
15934         Alpha.
15935         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
15936         * tests/test-memchr.c (main): Enhance test.
15937         Reported by Nelson H. F. Beebe.
15938
15939 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
15940
15941         fts, getcwd, glob: audit for dirfd returning -1
15942         * lib/fts.c (opendir): Remove #define; no longer used.
15943         (opendirat): New arg PDIR_FD.  All callers changed.
15944         (fts_build, _opendir2): Use new opendirat to avoid the need for
15945         dirfd, or for checking whether dirfd returns a negative value.
15946         Don't use opendir; always use openat followed by fdopendir.
15947         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
15948         it.
15949         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
15950         returns -1 here.
15951         * modules/fts (Depends-on): Remove dirfd.
15952         * modules/getcwd (Depends-on): Likewise.
15953
15954 2010-09-13  Eric Blake  <eblake@redhat.com>
15955
15956         float: fix broken MirBSD header
15957         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
15958         * doc/posix-headers/float.texi (float.h): Document it.
15959
15960 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
15961
15962         fts: use O_NOFOLLOW to avoid race condition when opening a directory
15963         * lib/fts.c (opendirat): New arg extra_flags.
15964         (__opendir2): Use it to avoid following symlinks when opening
15965         a directory, if symlinks are not supposed to be followed.  See
15966         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
15967
15968         fdopendir: preserve argument fd before returning
15969         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
15970         (fdopendir_with_dup, fd_clone_opendir): New static functions.
15971         (fdopendir): Use them, arranging for FD to be open to the same
15972         directory that it was when it started.  (It might be temporarily
15973         closed while fdopendir is running, so this not thread- or
15974         signal-safe.)  Be careful to do the right thing even when file
15975         descriptors are scarce and dup fails with errno == EMFILE.  See
15976         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
15977
15978 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
15979
15980         regex: Pass the system regex if its only problem is 32-bit regoff_t.
15981         * NEWS: Document change.
15982         * m4/regex.m4: Disable test for regoff_t size.
15983
15984 2010-09-13  Jim Meyering  <meyering@redhat.com>
15985
15986         fts: don't operate on an invalid file descriptor after failed dup
15987         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
15988         negative file descriptor.
15989
15990 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
15991
15992         savedir: add streamsavedir, deprecate fdsavedir
15993         * NEWS: Mention deprecation of fdsavedir.
15994         * lib/savedir.c (streamsavedir): New extern function, whose name
15995         ends in "savedir" to be consistent with the others.  This differs
15996         from savedirstream in that it doesn't close its argument.  The
15997         next version of GNU tar will use this instead of fdsavedir, to
15998         avoid some race conditions and conserve file descriptors.
15999         (savedirstream): Reimplement as a wrapper around streamsavedir.
16000         (fdsavedir): Add a comment deprecating this function.  As far as
16001         I know, only GNU tar used it, and GNU tar doesn't need it any more.
16002         * lib/savedir.h (streamsavedir): New decl.
16003         (fdsavedir): Add a comment deprecating this.
16004
16005 2010-09-10  Bruno Haible  <bruno@clisp.org>
16006
16007         langinfo: Fix last commit.
16008         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
16009         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
16010         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16011
16012 2010-09-10  Bruno Haible  <bruno@clisp.org>
16013
16014         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
16015         * lib/progreloc.c (O_EXEC): Define fallback.
16016
16017 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
16018
16019         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
16020         * NEWS: Document recent changes to fcntl-h.
16021         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
16022         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
16023         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
16024         Similarly for O_SEARCH; this last was already true, but not documented.
16025         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
16026         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
16027         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
16028         Likewise.
16029         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
16030         is zero, not whether it is defined.
16031         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
16032         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
16033         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
16034
16035 2010-09-10  Bruno Haible  <bruno@clisp.org>
16036
16037         langinfo, nl_langinfo: Fix for IRIX 5.3.
16038         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
16039         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
16040         HAVE_LANGINFO_YESEXPR.
16041         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
16042         HAVE_LANGINFO_YESEXPR.
16043         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
16044         HAVE_LANGINFO_T_FMT_AMPM is 0.
16045         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
16046         HAVE_LANGINFO_YESEXPR is 0.
16047         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
16048         NOEXPR.
16049         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
16050         * doc/posix-functions/nl_langinfo.texi: Likewise.
16051         Reported by Eric Blake.
16052
16053 2010-09-10  Bruno Haible  <bruno@clisp.org>
16054
16055         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
16056         * doc/glibc-functions/login_tty.texi: Mention the include file problem
16057         on FreeBSD 8.0 and OpenBSD 4.6.
16058         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
16059         * m4/pty_h.m4 (gl_PTY_H): Likewise.
16060         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
16061         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
16062         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
16063         ac_includes_default.
16064         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
16065
16066 2010-09-09  Eric Blake  <eblake@redhat.com>
16067
16068         strsignal: work around NetBSD bug
16069         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
16070         * lib/string.in.h (includes): Likewise.
16071         * doc/posix-functions/strsignal.texi (strsignal): Document the
16072         bug.
16073         Reported by Nelson H. F. Beebe.
16074
16075         gnulib-tool: work with NetBSD /bin/sh
16076         * gnulib-tool (func_cache_var, func_cache_lookup_module)
16077         (func_get_description, func_get_comment, func_get_status)
16078         (func_get_notice, func_get_applicability, func_get_filelist)
16079         (func_get_dependencies, func_get_autoconf_early_snippet)
16080         (func_get_autoconf_snippet, func_get_automake_snippet)
16081         (func_get_include_directive, func_get_link_directive)
16082         (func_get_license, func_get_maintainer, func_import): Avoid
16083         shell syntax errors from parsing syntax extensions.
16084
16085 2010-09-09  Bruno Haible  <bruno@clisp.org>
16086
16087         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
16088         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
16089         a reliable way to determine whether the 'alias' command works.
16090
16091 2010-09-08  Jim Meyering  <meyering@redhat.com>
16092
16093         init.sh: penalize a set-x-impaired shell; don't disqualify it
16094         * tests/init.sh: Too many shells corrupt application stderr when
16095         you set -x, so we can't afford to disqualify them, since at least
16096         on Irix-6.5, that would disqualify all bourne shells.
16097         Instead, use a two-pass approach.
16098         On the first pass, try to find a shell that meets the stricter
16099         condition that set -x does not corrupt stderr.
16100         If no shell meets the stricter condition, retest each candidate
16101         shell, but without that extra condition.  Finally, when
16102         VERBOSE=yes is requested and set -x might cause trouble, simply
16103         issue a warning and refrain from enabling debug output.
16104
16105 2010-09-08  Eric Blake  <eblake@redhat.com>
16106
16107         unsetenv: fix OpenBSD bug
16108         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
16109         * doc/posix-functions/unsetenv.texi (unsetenv): Update
16110         documentation.
16111         Reported by Jim Meyering.
16112
16113         strtod: work around IRIX 6.5 bug
16114         * lib/strtod.c (strtod): Reparse number on shorter string if
16115         exponent parse was invalid.
16116         * tests/test-strtod.c (main): Add check for "0x1p 2".
16117         Reported by Tom G. Christensen.
16118
16119         getopt: optimize previous patch
16120         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
16121         empty variable.  Speed up awk script.
16122         Reported by Paolo Bonzini.
16123
16124 2010-09-08  Jim Meyering  <meyering@redhat.com>
16125
16126         test.sh: disqualify shells for which set -x corrupts stderr
16127         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
16128         and OpenBSD 4.7.  They make it so with "set -x", environment settings
16129         appear in stderr output.  For example, this command:
16130             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
16131         prints "P=1" on those two systems:
16132
16133 2010-09-08  Bruno Haible  <bruno@clisp.org>
16134
16135         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
16136         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
16137         commands, because some shells ignore redirections when there is an
16138         error in the command lookup.
16139         Reported by Eric Blake.
16140
16141 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
16142
16143         * lib/regex.h: Fix a mention of `regex_compile' (should be
16144         `re_compile_pattern').
16145         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
16146         (re_set_registers): Correct name of parameter in comment.
16147
16148         * doc/regex.texi: Add documentation for missing syntax flags.
16149         Remove commented-out documentation of defunct syntax option
16150         RE_NO_EMPTY_ALTS.
16151         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
16152         Add documentation of re_set_registers.
16153         Document trick to re-use a pattern buffer by setting fastmap manually.
16154         Update documentation of struct re_pattern_buffer per public members.
16155         Uncomment documentation of equivalence class operators and
16156         collating symbol operators, since they are now implemented,
16157         Explain leftmost-longest matching in relation to alternatives.
16158         Tidy documentation of substring matching.
16159         Remove POSIX documentation, which is done better in
16160         glibc, and refer the reader there. Keep BSD API documentation, as
16161         that is not readily available elsewhere.
16162
16163 2010-09-07  Eric Blake  <eblake@redhat.com>
16164
16165         getopt: handle POSIXLY_CORRECT set but not exported
16166         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
16167         export state of POSIXLY_CORRECT, due to bash set -o posix.
16168         Reported by Dustin J. Mitchell.
16169
16170 2010-09-05  Bruno Haible  <bruno@clisp.org>
16171
16172         gnulib-tool: Highlight the changed options.
16173         * gnulib-tool (func_usage): Display the --import, --add-import,
16174         --remove-import explanations in bold font.
16175
16176 2010-09-06  Karl Berry  <karl@gnu.org>
16177
16178         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
16179
16180 2010-09-05  Bruno Haible  <bruno@clisp.org>
16181
16182         uniwidth/width: Update comment.
16183         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
16184         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
16185
16186 2010-09-05  Bruno Haible  <bruno@clisp.org>
16187
16188         isinf, isnan: Relax license.
16189         * modules/isinf (License): Change from GPL to LGPL, with consent from
16190         Ben Pfaff.
16191         * modules/isnan (License): Likewise.
16192         Requested by Ludovic Courtès.
16193
16194 2010-09-04  Bruno Haible  <bruno@clisp.org>
16195
16196         gnulib-tool: Help migration from --import to --add-import or --update.
16197         * gnulib-tool: Emit a verbose error message when --import is used
16198         without any module name.
16199
16200 2010-09-04  Bruno Haible  <bruno@clisp.org>
16201
16202         Update doc about gnulib-tool.
16203         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
16204         'gnulib-tool --update' in more detail.
16205         Reported by Eric Blake.
16206
16207 2010-09-04  Bruno Haible  <bruno@clisp.org>
16208
16209         gnulib-tool: Change --import. New options --add/remove-import.
16210         * gnulib-tool: New options --add-import, --remove-import.
16211         (func_usage): Document them.
16212         (have_associative): Define always.
16213         (func_import): In import mode, don't merge the specified settings with
16214         the cached settings. Implement remove-import mode.
16215         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
16216         Explain when to use them versus --import.
16217         (Simple update): Use --add-import instead of --import.
16218         * NEWS: Mention the change.
16219
16220 2010-09-04  Bruno Haible  <bruno@clisp.org>
16221
16222         * doc/gnulib-tool.texi (Initial import): Update paragraph about
16223         separate gnulib.mk.
16224
16225 2010-09-04  Bruno Haible  <bruno@clisp.org>
16226
16227         gnulib-tool: Don't talk about CVS any more.
16228         * gnulib-tool (func_usage, func_import): Write "version control"
16229         instead of CVS.
16230
16231 2010-09-04  Jim Meyering  <meyering@redhat.com>
16232
16233         maint.mk: avoid obscure sc_copyright_check failure in coreutils
16234         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
16235         false positives (whose names may be ill-chosen) when searching
16236         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
16237         would cause a false-positive.
16238
16239         avoid coreutils "make distcheck" failure
16240         Coreutils tests with an absolute build directory name that contains
16241         a space.  Not quoting this directory name caused a failure.
16242         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
16243         * tests/test-vc-list-files-cvs.sh: Likewise.
16244
16245 2010-09-04  Bruno Haible  <bruno@clisp.org>
16246
16247         gnulib-tool: Avoid error when run in a package without Makefile.am.
16248         * gnulib-tool: When collecting the m4dirs in a package that does not
16249         have a Makefile.am, eliminate those directories that contain no
16250         gnulib-cache.m4. Fix expression that counts these directories.
16251
16252 2010-09-04  Bruno Haible  <bruno@clisp.org>
16253
16254         update-copyright test: Improve output when perl is missing or too old.
16255         * tests/test-update-copyright.sh: Move test of Perl version down after
16256         the test whether Perl exists. Provide an explanation relating Perl's
16257         error message to Automake's SKIP: message.
16258
16259 2010-09-04  Bruno Haible  <bruno@clisp.org>
16260
16261         Don't augment PATH in TESTS_ENVIRONMENT.
16262         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
16263         set abs_aux_dir instead of augmenting PATH.
16264         * modules/vc-list-files-tests (Makefile.am): Likewise.
16265         * tests/test-update-copyright.sh: Augment PATH here.
16266         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
16267         path_prepend_.
16268         * tests/test-vc-list-files-git.sh: Likewise.
16269
16270 2010-09-04  Jim Meyering  <meyering@redhat.com>
16271
16272         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
16273         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
16274
16275 2010-09-04  Bruno Haible  <bruno@clisp.org>
16276
16277         strdup: Fix compilation error in C++ mode.
16278         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
16279         the macro.
16280
16281 2010-09-04  Bruno Haible  <bruno@clisp.org>
16282
16283         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
16284         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
16285         macro into a function.
16286         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
16287
16288 2010-09-04  Bruno Haible  <bruno@clisp.org>
16289
16290         Set PATH_SEPARATOR the same way autoconf does.
16291         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
16292         the value of PATH_SEPARATOR the same way autoconf-generated configure
16293         scripts do.
16294         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
16295         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
16296
16297 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
16298
16299         Set PATH_SEPARATOR the same way autoconf does.
16300         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
16301         the same way autoconf-generated configure scripts do.
16302         * posix-modules: Likewise.
16303
16304 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
16305
16306         hash: fix safe_hasher const typo
16307         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
16308         const; otherwise, there is a type error later.
16309
16310 2010-09-02  Jim Meyering  <meyering@redhat.com>
16311
16312         test-update-copyright.sh: require perl 5.8.0
16313         * tests/test-update-copyright.sh: Require 5.8.0,
16314         which Tom G. Christensen has confirmed is adequate,
16315         while 5.6.1 is not.
16316
16317 2010-09-02  Eric Blake  <eblake@redhat.com>
16318
16319         tests: init.sh improvements for re-exec'ing with zsh
16320         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
16321         -vx through shell re-exec.
16322         Reported by Tom G. Christensen.
16323
16324         wctype: fix typo in previous commit
16325         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
16326         Reported by Ludovic Courtès.
16327
16328 2010-09-02  Jim Meyering  <meyering@redhat.com>
16329
16330         test-update-copyright.sh: skip test if Perl is too old
16331         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
16332         Reported by Tom G. Christensen.
16333
16334 2010-09-02  Bruno Haible  <bruno@clisp.org>
16335
16336         wctype: Avoid compilation error on IRIX 6.5.30.
16337         * lib/wctype.in.h (iswblank): Declare with a replacement if
16338         REPLACE_ISWBLANK is set.
16339         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
16340         declared. Set REPLACE_ISWBLANK.
16341         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
16342         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
16343         * doc/posix-headers/wctype.texi: Likewise.
16344         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16345
16346 2010-09-01  Bruno Haible  <bruno@clisp.org>
16347
16348         New module 'socketlib'.
16349         * modules/socketlib: New file.
16350         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
16351         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
16352         * modules/sockets (Depends-on): Add socketlib.
16353         Suggested by Sam Steingold <sds@gnu.org>.
16354
16355 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
16356
16357         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
16358
16359         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
16360         when one needs search access to a directory but not read access.
16361         On systems where it is available, it works in some cases where
16362         O_RDONLY does not, namely on directories that are searchable but
16363         not readable, and which need only to be searchable.  If O_SEARCH
16364         is not available, fall back to the traditional method of using
16365         O_RDONLY.
16366
16367         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
16368         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
16369         when opening a directory that needs only to be searchable.
16370         * lib/chdir-safer.c (chdir_no_follow): Likewise.
16371         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
16372         * lib/openat-proc.c (openat_proc_name): Likewise.
16373         * lib/openat.c (openat_needs_fchdir): Likewise.
16374         * lib/save-cwd.c (save_cwd): Likewise.
16375         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
16376
16377 2010-08-28  Bruno Haible  <bruno@clisp.org>
16378
16379         New module 'host-cpu-c-abi'.
16380         * modules/host-cpu-c-abi: New file.
16381         * m4/host-cpu-c-abi.m4: New file, based on part of
16382         clisp/src/m4/general.m4.
16383         Requested by Sam Steingold <sds@gnu.org>.
16384
16385 2010-08-31  Eric Blake  <eblake@redhat.com>
16386         and Jim Meyering  <meyering@redhat.com>
16387
16388         hash: factor, and guard against misbehaving hasher function
16389         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
16390         of table->hasher's return value.  Also protect against a hash value
16391         so large that adding it to table->bucket results in a NULL pointer.
16392         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
16393         Use it in place of open-coded check-and-abort.
16394
16395 2010-08-30  Bruno Haible  <bruno@clisp.org>
16396
16397         hash: silence spurious clang warning
16398         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
16399         Reported by Eric Blake.
16400
16401 2010-08-30  Eric Blake  <eblake@redhat.com>
16402
16403         strstr, memmem, strcasestr: avoid leaked shell message
16404         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
16405         FreeBSD.
16406         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
16407         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
16408
16409         tests: silence clang warning
16410         * tests/test-malloca.c (do_allocation): Avoid dead store.
16411
16412 2010-08-29  Bruno Haible  <bruno@clisp.org>
16413
16414         gettext: Fix recent mistake.
16415         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
16416
16417 2010-08-29  Bruno Haible  <bruno@clisp.org>
16418
16419         selinux-h: Offer a --without-selinux option.
16420         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
16421         --without-selinux was specified, skip all tests and define
16422         HAVE_SELINUX_SELINUX_H to 0.
16423         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
16424         set LIB_SELINUX to empty.
16425         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
16426         gl_LIBSELINUX. If --without-selinux was specified, replace
16427         selinux/context.h.
16428         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
16429
16430 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16431             Bruno Haible  <bruno@clisp.org>
16432
16433         Make the module 'realloc-gnu' work again on AIX and OSF/1.
16434         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
16435         of HAVE_REALLOC.
16436         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
16437         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
16438         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
16439         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
16440
16441 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16442             Bruno Haible  <bruno@clisp.org>
16443
16444         Make the module 'calloc-gnu' work again on AIX and OSF/1.
16445         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
16446         HAVE_CALLOC.
16447         * lib/xmalloc.c: Update accordingly.
16448         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
16449         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
16450         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
16451
16452 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16453             Bruno Haible  <bruno@clisp.org>
16454
16455         Make the module 'malloc-gnu' work again on AIX and OSF/1.
16456         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
16457         HAVE_MALLOC.
16458         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
16459         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
16460         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
16461
16462 2010-08-29  Bruno Haible  <bruno@clisp.org>
16463
16464         Update modules list.
16465         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
16466         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
16467         (String handling <string.h>): Add astrxfrm.
16468         (File system functions): Add readlinkat.
16469
16470 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16471
16472         Tests for module 'realloc-gnu'.
16473         * modules/realloc-gnu-tests: New file.
16474         * tests/test-realloc-gnu.c: New file.
16475
16476         Tests for module 'calloc-gnu'.
16477         * modules/calloc-gnu-tests: New file.
16478         * tests/test-calloc-gnu.c: New file.
16479
16480         Tests for module 'malloc-gnu'.
16481         * modules/malloc-gnu-tests: New file.
16482         * tests/test-malloc-gnu.c: New file.
16483
16484 2010-08-28  Bruno Haible  <bruno@clisp.org>
16485
16486         Rename module 'realloc' -> 'realloc-gnu'.
16487         * modules/realloc-gnu: New file, copied from modules/realloc.
16488         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
16489         obsolete.
16490         * modules/mgetgroups (Depends-on): Update.
16491         * doc/posix-functions/realloc.texi: Update.
16492         * NEWS: Mention the change.
16493
16494         Rename module 'calloc' -> 'calloc-gnu'.
16495         * modules/calloc-gnu: New file, copied from modules/calloc.
16496         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
16497         obsolete.
16498         * doc/posix-functions/calloc.texi: Update.
16499         * NEWS: Mention the change.
16500
16501         Rename module 'malloc' -> 'malloc-gnu'.
16502         * modules/malloc-gnu: New file, copied from modules/malloc.
16503         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
16504         obsolete.
16505         * modules/argp (Depends-on): Update.
16506         * modules/regex (Depends-on): Update.
16507         * doc/posix-functions/malloc.texi: Update.
16508         * NEWS: Mention the change.
16509
16510 2010-08-28  Eric Blake  <eblake@redhat.com>
16511
16512         pread, pwrite: add missing dependency
16513         * modules/pread (Depends-on): Add extensions.
16514         * modules/pwrite (Depends-on): Likewise.
16515
16516 2010-08-28  Bruno Haible  <bruno@clisp.org>
16517
16518         unistr/u*-strchr: Fix tests dependencies.
16519         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
16520         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
16521         Reported by Ian Beckwith <ianb@erislabs.net>.
16522
16523 2010-08-28  Bruno Haible  <bruno@clisp.org>
16524
16525         read-file: Don't occupy too much unused memory.
16526         * lib/read-file.c (fread_file): Shrink the buffer at the end.
16527
16528 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
16529             Eric Blake  <eblake@redhat.com>
16530             Bruno Haible  <bruno@clisp.org>
16531
16532         read-file: Avoid memory reallocations with regular files.
16533         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
16534         (fread_file): With regular files, use the remaining length as the
16535         initial buffer size.  Check against overflow.
16536         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
16537         sys_stat.
16538
16539 2010-08-28  Bruno Haible  <bruno@clisp.org>
16540
16541         ftello: Relax license.
16542         * modules/ftello (License): Relax to LGPLv2+.
16543         Reported by Eric Blake.
16544
16545 2010-08-28  Bruno Haible  <bruno@clisp.org>
16546
16547         Avoid relocwrapper link errors due to gnulib replacement functions.
16548         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
16549         function.
16550         Reported by Ben Pfaff <blp@cs.stanford.edu>.
16551
16552 2010-08-28  Bruno Haible  <bruno@clisp.org>
16553
16554         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
16555         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
16556         defined.
16557         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
16558         Suggested by Eric Blake.
16559
16560 2010-08-28  Bruno Haible  <bruno@clisp.org>
16561
16562         sys_socket, netdb: Ensure socklen_t gets defined.
16563         * modules/sys_socket (Depends-on): Add socklen.
16564         * modules/netdb (Depends-on): Likewise.
16565         * modules/getaddrinfo (Depends-on): Remove socklen.
16566         * modules/getsockopt (Depends-on): Likewise.
16567         * modules/setsockopt (Depends-on): Likewise.
16568         * tests/test-sys_socket.c: Check that socklen_t is defined.
16569         * tests/test-netdb.c: Likewise.
16570         * m4/socklen.m4: Update comments.
16571         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
16572
16573 2010-08-27  Eric Blake  <eblake@redhat.com>
16574
16575         login_tty: add missing dependency
16576         * modules/login_tty (Depends-on): Add pty.
16577
16578 2010-08-26  Eric Blake  <eblake@redhat.com>
16579
16580         lib-symbol-versions: fix m4 quoting
16581         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
16582         format for AC_LINK_IFELSE.
16583
16584         glob: fix compile test
16585         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
16586
16587         btowc: fix missing file
16588         * modules/btowc (Files): Also ship locale-fr.m4.
16589
16590         lseek: fix link test
16591         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
16592         AC_LINK_IFELSE.
16593
16594         include_next: silence autoconf 2.68 warning
16595         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
16596         AC_COMPILE_IFELSE as special.
16597         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
16598         autoconf < 2.68.
16599
16600         acl: fix compilation test
16601         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
16602         AC_COMPILE_IFELSE.
16603
16604 2010-08-26  Bruno Haible  <bruno@clisp.org>
16605
16606         Modernize AC_TRY_RUN invocations.
16607         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
16608         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
16609         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
16610         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
16611         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
16612         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
16613         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
16614         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
16615         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
16616         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
16617         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
16618         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
16619         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
16620         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
16621         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
16622         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
16623         gl_MBRLEN_NUL_RETVAL): Likewise.
16624         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
16625         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
16626         Likewise.
16627         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
16628         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
16629         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
16630         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
16631         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
16632         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
16633         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
16634         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
16635         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
16636         Likewise.
16637         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
16638         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
16639         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
16640         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
16641         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
16642         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
16643         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
16644         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
16645         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
16646         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
16647
16648 2010-08-26  Bruno Haible  <bruno@clisp.org>
16649
16650         Modernize AC_TRY_LINK invocations.
16651         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
16652         AC_TRY_LINK.
16653         * m4/argp.m4 (gl_ARGP): Likewise.
16654         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
16655         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
16656         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
16657         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
16658         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
16659         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
16660         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
16661         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
16662         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
16663         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
16664         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
16665         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
16666         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
16667         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
16668         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
16669         * m4/hostent.m4 (gl_HOSTENT): Likewise.
16670         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
16671         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
16672         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
16673         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
16674         Likewise.
16675         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
16676         Likewise.
16677         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
16678         Likewise.
16679         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
16680         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
16681         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
16682         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
16683         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
16684         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
16685         * m4/servent.m4 (gl_SERVENT): Likewise.
16686         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
16687         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
16688         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
16689         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
16690         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
16691         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
16692         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
16693         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
16694         * modules/tsearch-tests (configure.ac): Likewise.
16695
16696 2010-08-26  Bruno Haible  <bruno@clisp.org>
16697
16698         Modernize AC_TRY_COMPILE invocations.
16699         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
16700         AC_TRY_COMPILE.
16701         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
16702         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
16703         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
16704         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
16705         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
16706         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
16707         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
16708         * m4/lock.m4 (gl_LOCK): Likewise.
16709         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
16710         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
16711         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
16712         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
16713         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
16714         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
16715         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
16716         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
16717         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
16718         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
16719         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
16720         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
16721         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
16722         extraneous semicolon.
16723
16724 2010-08-26  Jim Meyering  <meyering@redhat.com>
16725
16726         stat-time: relax license LGPL
16727         * modules/stat-time (License): Change from GPL to LGPL,
16728         with consent from all contributors, for use in libguile.
16729         Requested by Ludovic Courtès.
16730
16731 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
16732
16733         poll: return immediately on POLLHUP.
16734         * lib/poll.c (poll): Always set timeout before wait_timeout is
16735         computed.
16736
16737 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16738
16739         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
16740         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
16741         rmdir ("dir/.//"), unlinkat.
16742
16743 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
16744
16745         stdbool: avoid spurious failure with modern xlc
16746         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
16747
16748 2010-08-24  Bruno Haible  <bruno@clisp.org>
16749
16750         getloadavg: simplify code
16751         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
16752         gl_have_func. Update comments.
16753
16754 2010-08-24  Eric Blake  <eblake@redhat.com>
16755
16756         getloadavg: don't define SVR4 on cygwin
16757         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
16758         only define SVR4 when -lkvm is required.
16759         Reported by Yaakov Selkowitz.
16760
16761 2010-08-24  Bruno Haible  <bruno@clisp.org>
16762
16763         priv-set: fix comment
16764         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
16765
16766 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
16767
16768         priv-set: fix comments
16769         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
16770         to match code, as suggested by David Bartley in:
16771         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
16772
16773 2010-08-23  Eric Blake  <eblake@redhat.com>
16774
16775         stdbool: avoid rejecting clang
16776         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
16777         * tests/test-stdbool.c: Enable more tests if using the system
16778         <stdbool.h> instead of the gnulib replacement.
16779         (main): Move xlc bug test to a runtime test for all compilers.
16780         Reported by Anders Kaseorg.
16781
16782         argz: fix shell quoting issue
16783         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
16784         Reported by Charles Wilson.
16785
16786 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
16787             Erik Faye-Lund <kusmabite@gmail.com>
16788
16789         poll, select: handle ERROR_BROKEN_PIPE.
16790         * lib/poll.c (win32_compute_revents): Return POLLHUP when
16791         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
16792         * lib/select.c (win32_compute_revents): Do not mark a pipe
16793         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
16794
16795 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
16796
16797         fts: allow compilation with C++
16798         * lib/fts_.h: Specify extern "C" linkage with C++.
16799
16800 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16801
16802         Fix gnulib-tool sed script de-commentation for AIX sed.
16803         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
16804         sed.
16805
16806 2010-08-17  Eric Blake  <eblake@redhat.com>
16807
16808         test-stddef: test for (some) offsetof bugs
16809         * tests/test-stddef.c: Enhance test to ensure correct type of
16810         offsetof.
16811         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
16812         that we are not fixing at this time.
16813
16814 2010-08-15  Bruno Haible  <bruno@clisp.org>
16815
16816         stpncpy: Allow stpncpy to be defined as a macro.
16817         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
16818         if it's already correctly declared.
16819         * lib/string.in.h (stpncpy): Undefine before redefining.
16820         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
16821
16822 2010-08-14  Bruno Haible  <bruno@clisp.org>
16823
16824         Rename module 'memxfrm' to 'amemxfrm'.
16825         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
16826         (amemxfrm): Renamed from memxfrm.
16827         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
16828         (amemxfrm): Renamed from memxfrm.
16829         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
16830         * NEWS: Mention the change.
16831         * MODULES.html.sh (String handling <string.h>): Update.
16832         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
16833         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
16834         * lib/unicase/u16-casexfrm.c: Likewise.
16835         * lib/unicase/u32-casexfrm.c: Likewise.
16836         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
16837         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
16838         * lib/uninorm/u16-normxfrm.c: Likewise.
16839         * lib/uninorm/u32-normxfrm.c: Likewise.
16840         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
16841         memxfrm.
16842         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
16843         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
16844         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
16845         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
16846         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
16847         Suggested by Paul Eggert.
16848
16849 2010-08-14  Bruno Haible  <bruno@clisp.org>
16850
16851         Tests for module 'astrxfrm'.
16852         * modules/astrxfrm-tests: New file.
16853         * tests/test-astrxfrm.c: New file.
16854
16855         New module 'astrxfrm'.
16856         * lib/astrxfrm.h: New file.
16857         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
16858         * modules/astrxfrm: New file.
16859
16860 2010-08-14  Reuben Thomas <rrt@sc3d.org>
16861
16862         regex: Tweak doc.
16863         * doc/regex.texi (Overview): Don't mention regex.c.
16864         (GNU Regular Expression Compiling): Likewise.
16865         (Match-end-of-line Operator): Mention 'not_eol'.
16866
16867 2010-08-14  Brian Gough  <bjg@gnu.org>
16868             Bruno Haible  <bruno@clisp.org>
16869
16870         git-merge-changelog: add doc relating to use with bzr and hg.
16871         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
16872
16873 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
16874
16875         pthread: fix pthread.h creation for srcdir != builddir
16876         * modules/pthread (Makefile.am): Fix the rule to work also in a
16877         non-srcdir build.
16878
16879 2010-08-13  Karl Berry  <karl@gnu.org>
16880
16881         * doc/regex.texi (Predefined Syntaxes): @smallexample.
16882         * doc/posix-*/*: force line break before @url of POSIX
16883         specifications.
16884         Suggested by Werner Lemberg.
16885
16886 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
16887
16888         strtod: fix const diagnostic
16889         * lib/strtod.c (strtod): Don't assign const char * to char *,
16890         as this elicits a warning from GCC when warnings are enabled.
16891
16892 2010-08-10  Pádraig Brady <P@draigbrady.com>
16893         and Eric Blake  <eblake@redhat.com>
16894
16895         copy-acl: ignore ENOTSUP on HP-UX
16896         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
16897         so that it is available for HP-UX.
16898         * lib/copy-acl.c (qcopy_acl): Use it.
16899         Reported by Patrick M. Callahan.
16900
16901 2010-08-10  Eric Blake  <eblake@redhat.com>
16902
16903         open, chown: relax license
16904         * modules/open (License): Change to LGPLv2+, with consent by all
16905         authors, for use in augeas.
16906         * modules/chown (License): Likewise.
16907         * modules/lchown (Likewise): Likewise.
16908         Requested by Adam Stokes.
16909
16910 2010-08-09  Karl Berry  <karl@gnu.org>
16911
16912         * build-aux/ar-lib: new file, import from Automake.
16913         * config/srclist.txt: autocheck for updates.
16914
16915 2010-08-09  Eric Blake  <eblake@redhat.com>
16916
16917         readlinkat: adjust client modules
16918         * modules/areadlinkat (Depends-on): Use readlinkat, not
16919         symlinkat.
16920         * modules/areadlinkat-with-size (Depends-on): Likewise.
16921
16922         mknod: be more vocal about danger of running tests as root
16923         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
16924         root, since that is just asking for problems.
16925         Suggested by Bruno Haible, based on a report by Rainer Tammer.
16926
16927         readlinkat: split into its own module
16928         * modules/symlinkat: Split readlinkat...
16929         * modules/readlinkat: ...into separate module.
16930         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
16931         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
16932         * lib/symlinkat.c (readlinkat): Move...
16933         * lib/readlinkat.c: ...into new file.
16934         * modules/symlinkat-tests: Split readlinkat test...
16935         * modules/readlinkat-tests: ...into separate module.
16936         * tests/test-symlinkat.c: Split...
16937         * tests/test-readlinkat.c: ...into new file.
16938         * NEWS: Document the split.
16939         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
16940         * lib/unistd.in.h (readlinkat): Likewise.
16941         Suggested by Bruno Haible.
16942
16943 2010-08-08  Bruno Haible  <bruno@clisp.org>
16944
16945         memxfrm: Speed up.
16946         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
16947         that usually only one call to strxfrm is necessary for each string
16948         part.
16949         Reported by Paul Eggert <eggert@cs.ucla.edu>.
16950
16951 2010-08-07  Karl Berry  <karl@gnu.org>
16952
16953         * doc/posix-headers/limits.texi,
16954         * doc/posix-functions/malloc.texi,
16955         * doc/posix-functions/strsignal.texi: missing @item.
16956         * doc/ld-version-script.texi: spurious leading i.
16957         * doc/regex.texi (Interval Operators): no commas inside @var.
16958
16959 2010-08-01  Bruno Haible  <bruno@clisp.org>
16960
16961         Integrate the regex documentation.
16962         * doc/gnulib.texi: Define 'cn' index.
16963         (Regular expressions): New a chapter that includes regex.texi and
16964         regexprops-generic.texi.
16965         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
16966         syntax.
16967
16968         Whitespace cleanup.
16969         * doc/regex.texi: Remove trailing spaces.
16970
16971         Add regex documentation.
16972         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
16973         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
16974         Written by Kathy A. Hargreaves and Karl Berry.
16975
16976 2010-08-01  Bruno Haible  <bruno@clisp.org>
16977
16978         link: Update documentation.
16979         * doc/posix-functions/link.texi: Update regarding Solaris.
16980
16981 2010-07-31  Bruno Haible  <bruno@clisp.org>
16982
16983         Update modules list.
16984         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
16985         (String handling <string.h>): Add memcmp2, memxfrm.
16986         (Container data structures): Add xlist, xsublist, xoset.
16987         (Core language properties): Add alignof, unused-parameter.
16988         (Process control, Numeric conversion functions <stdlib.h>): Renamed
16989         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
16990         (Unibyte characters <ctype.h>): New section.
16991         (String handling <string.h>): New section.
16992         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
16993         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
16994         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
16995         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
16996         tan, tanh, tanl, y0, y1, yn.
16997         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
16998         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
16999         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
17000         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
17001         unlockpt, vdprintf, vdprintf-posix.
17002         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
17003         (File system functions): Add concat-filename, sys_file, sys_ioctl,
17004         xconcat-filename.
17005         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
17006         getdtablesize, pipe2, pipe2-safer.
17007         (Security): New section.
17008         (Networking functions): Add accept4.
17009         (Signal handling): Add sigpipe.
17010         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
17011         mbmemcasecoll.
17012         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
17013         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
17014         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
17015         pipe-filter-ii.
17016         (Misc): Add argp-version-etc, login_tty, parse-duration.
17017
17018 2010-07-31  Bruno Haible  <bruno@clisp.org>
17019
17020         Improve doc in MODULES.html.
17021         * modules/linkat (Description): Add the word "function".
17022         * modules/mkfifo (Description): Likewise.
17023         * modules/mknod (Description): Likewise.
17024         * modules/remove (Description): Likewise.
17025         * modules/renameat (Description): Likewise.
17026         * modules/stat (Description): Likewise.
17027         * modules/symlink (Description): Likewise.
17028         * modules/unlink (Description): Likewise.
17029
17030 2010-07-31  Bruno Haible  <bruno@clisp.org>
17031
17032         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
17033         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
17034         option --enable/disable-c++ instead of --enable/disable-cxx.
17035         * NEWS: Mention the change.
17036
17037 2010-07-31  Bruno Haible  <bruno@clisp.org>
17038
17039         readlink, areadlink: Relax test a bit.
17040         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
17041         alternative to ENOTDIR.
17042         * tests/test-areadlink.h (test_areadlink): Likewise.
17043         Reported by Rainer Tammer.
17044
17045 2010-07-31  Bruno Haible  <bruno@clisp.org>
17046
17047         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
17048         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
17049         character, perform the search using U_STRCHR.
17050         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
17051         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
17052         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
17053         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
17054         Suggested by Paolo Bonzini.
17055
17056 2010-07-31  Bruno Haible  <bruno@clisp.org>
17057
17058         unistr/u*-strstr: Fix dependencies.
17059         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
17060         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
17061         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
17062
17063 2010-07-31  Bruno Haible  <bruno@clisp.org>
17064
17065         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
17066         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
17067         the beginning of the loop.
17068         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
17069         cases in 'switch' statement.
17070
17071         unistr/u8-strchr: Fix several bugs.
17072         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
17073         the string. When not found, return NULL, not a pointer near the end.
17074
17075         More tests for unistr/u8-strchr.
17076         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
17077         that the function does not read past the first occurrence of the byte
17078         being searched.
17079         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
17080         * tests/unistr/test-u16-strchr.c (main): New function.
17081         * tests/unistr/test-u32-strchr.c (main): New function.
17082
17083 2010-07-31  Bruno Haible  <bruno@clisp.org>
17084
17085         posix-modules: Ignore backup files of documentation files.
17086         * posix-modules: grep only through files named *.texi.
17087
17088 2010-07-31  Bruno Haible  <bruno@clisp.org>
17089
17090         symlinkat: Fix documentation.
17091         * doc/posix-functions/readlinkat.texi: Fix module name.
17092
17093 2010-07-31  Bruno Haible  <bruno@clisp.org>
17094
17095         fchownat: Replace also when chown has the trailing slash bug.
17096         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
17097         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
17098         introduced on 2010-04-10.
17099         Reported by Rainer Tammer.
17100
17101 2010-07-31  Bruno Haible  <bruno@clisp.org>
17102
17103         linkat: Work around AIX 7.1 bug.
17104         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
17105         whether linkat handles trailing slash correctly. If not, replace linkat
17106         and define LINKAT_TRAILING_SLASH_BUG.
17107         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
17108         check whether (fd1,file1) points to a directory if file1 or file2 ends
17109         in a slash. Code taken from lib/link.c.
17110         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
17111         Reported by Rainer Tammer.
17112
17113 2010-07-31  Bruno Haible  <bruno@clisp.org>
17114
17115         Correctly determine whether pow is available in libc on AIX 7 with xlc.
17116         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
17117         This disables an xlc optimization that was causing wrong test results.
17118         Reported by Rainer Tammer.
17119
17120 2010-07-31  Bruno Haible  <bruno@clisp.org>
17121
17122         iconv: Work around AIX 6.1..7.1 bug.
17123         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
17124         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
17125         cross-compiling, guess no on all versions of AIX.
17126         Reported by Rainer Tammer.
17127
17128 2010-07-31  Bruno Haible  <bruno@clisp.org>
17129
17130         readlink: Relax test a bit.
17131         * tests/test-readlink.h (test_readlink): Allow different errno value
17132         when readlink is called with a file name that ends in / and refers to
17133         a file.
17134         Suggested by Eric Blake.
17135         Reported by Rainer Tammer.
17136
17137 2010-07-31  Bruno Haible  <bruno@clisp.org>
17138
17139         copysign: Does not require -lm on glibc systems.
17140         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
17141         gl_COMMON_DOUBLE_MATHFUNC.
17142         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
17143
17144 2010-07-31  Bruno Haible  <bruno@clisp.org>
17145
17146         duplocale: Work around AIX 7.1 bug.
17147         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
17148         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
17149         * lib/duplocale.c (rpl_duplocale): Update comment.
17150         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
17151         Reported by Rainer Tammer.
17152
17153 2010-07-30  Bruno Haible  <bruno@clisp.org>
17154
17155         dirfd: Avoid link error on AIX 7.1.
17156         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
17157         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
17158         exist, set REPLACE_DIRFD.
17159         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
17160         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
17161         * doc/posix-functions/dirfd.texi: Update.
17162         Reported by Rainer Tammer.
17163
17164 2010-07-30  Eric Blake  <eblake@redhat.com>
17165
17166         strtod: next round of AIX fixes
17167         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
17168         exponent.
17169         * tests/test-strtod.c (main): Enhance tests.
17170         * doc/posix-functions/strtod.texi (strtod): Document next bug.
17171         Reported by Rainer Tammer.
17172
17173         futimens: fix configure check
17174         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
17175         Reported by Bruno Haible.
17176
17177 2010-07-30  Bruno Haible  <bruno@clisp.org>
17178
17179         getline: Update regarding AIX.
17180         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
17181         Reported by Rainer Tammer.
17182
17183 2010-07-30  Bruno Haible  <bruno@clisp.org>
17184
17185         wcwidth: Drop replacement on AIX 7.
17186         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
17187         AIX 7.
17188         Reported by Rainer Tammer.
17189
17190 2010-07-30  Bruno Haible  <bruno@clisp.org>
17191
17192         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
17193         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
17194         a 'char *'.
17195         Reported by Rainer Tammer.
17196
17197 2010-07-30  Bruno Haible  <bruno@clisp.org>
17198
17199         unlink: Update regarding AIX.
17200         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
17201         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
17202         Reported by Rainer Tammer.
17203
17204 2010-07-30  Bruno Haible  <bruno@clisp.org>
17205
17206         symlink: Update regarding AIX.
17207         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
17208         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
17209         Reported by Rainer Tammer.
17210
17211 2010-07-30  Bruno Haible  <bruno@clisp.org>
17212
17213         strndup: Update regarding AIX.
17214         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
17215         AIX 7.
17216         Reported by Rainer Tammer.
17217
17218 2010-07-30  Bruno Haible  <bruno@clisp.org>
17219
17220         stat: Update regarding AIX.
17221         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
17222         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
17223         Reported by Rainer Tammer.
17224
17225 2010-07-30  Bruno Haible  <bruno@clisp.org>
17226
17227         truncl: Fix autoconf test.
17228         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
17229         whether truncl works.
17230         Reported by Rainer Tammer.
17231
17232 2010-07-30  Bruno Haible  <bruno@clisp.org>
17233
17234         round: Update regarding AIX.
17235         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
17236         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
17237         Reported by Rainer Tammer.
17238
17239 2010-07-30  Bruno Haible  <bruno@clisp.org>
17240
17241         rename: Update regarding AIX.
17242         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
17243         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
17244         Reported by Rainer Tammer.
17245
17246 2010-07-30  Bruno Haible  <bruno@clisp.org>
17247
17248         printf.m4: Update regarding AIX.
17249         * m4/printf.m4: Update comments regarding AIX.
17250         Reported by Rainer Tammer.
17251
17252 2010-07-30  Bruno Haible  <bruno@clisp.org>
17253
17254         iconv: Update regarding AIX.
17255         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
17256         AIX 7.
17257         Reported by Rainer Tammer.
17258
17259 2010-07-30  Bruno Haible  <bruno@clisp.org>
17260
17261         getopt: Update regarding AIX.
17262         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
17263         no on AIX.
17264         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
17265         Reported by Rainer Tammer.
17266
17267 2010-07-30  Bruno Haible  <bruno@clisp.org>
17268
17269         ldexpl; Update regarding AIX.
17270         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
17271         on AIX 7.
17272         Reported by Rainer Tammer.
17273
17274 2010-07-30  Bruno Haible  <bruno@clisp.org>
17275
17276         frexpl: Update regarding AIX.
17277         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
17278         on AIX 7.
17279         Reported by Rainer Tammer.
17280
17281 2010-07-30  Bruno Haible  <bruno@clisp.org>
17282
17283         open, fopen: Update regarding AIX.
17284         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
17285         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
17286         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
17287         * doc/posix-functions/fopen.texi: Likewise.
17288         Reported by Rainer Tammer.
17289
17290 2010-07-30  Bruno Haible  <bruno@clisp.org>
17291
17292         chown: Update doc regarding AIX.
17293         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
17294         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
17295         Reported by Rainer Tammer.
17296
17297 2010-07-30  Eric Blake  <eblake@redhat.com>
17298
17299         strtod: fix bug in replacement function on AIX
17300         * lib/strtod.c (strtod): Special case broken "0x" parse in
17301         underlying strtod.
17302         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
17303         * doc/posix-functions/strtod.texi (strtod): Likewise.
17304         Reported by Rainer Tammer.
17305
17306 2010-07-30  Bruno Haible  <bruno@clisp.org>
17307
17308         mbrlen: Fix cross-compilation guess for AIX.
17309         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
17310         guess. Leftover from 2008-12-22.
17311
17312 2010-07-30  Bruno Haible  <bruno@clisp.org>
17313
17314         mbrtowc: Fix cross-compilation guess for AIX.
17315         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
17316         guess. Leftover from 2008-12-21.
17317
17318 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
17319
17320         init.sh: work around trap limitation of some shells
17321         * tests/init.sh (setup_): Move exit trap outside of shell function.
17322
17323 2010-07-29  Eric Blake  <eblake@redhat.com>
17324
17325         strtod: aid debugging
17326         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
17327         understanding why strtod is rejected.
17328
17329 2010-07-28  Bruno Haible  <bruno@clisp.org>
17330
17331         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
17332         * lib/unistr/u8-chr.c: Include <string.h>.
17333         * tests/unistr/test-u8-chr.c: Likewise.
17334         * tests/unistr/test-u16-chr.c: Likewise.
17335         * tests/unistr/test-u32-chr.c: Likewise.
17336         * tests/unistr/test-u8-strchr.c: Likewise.
17337         * tests/unistr/test-u16-strchr.c: Likewise.
17338         * tests/unistr/test-u32-strchr.c: Likewise.
17339         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
17340         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
17341         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
17342         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
17343
17344 2010-07-28  Bruno Haible  <bruno@clisp.org>
17345
17346         Use spaces for indentation, not tabs.
17347         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
17348
17349 2010-07-27  Bruno Haible  <bruno@clisp.org>
17350
17351         mbspcasecmp: Fix function specification.
17352         * lib/string.in.h (mbspcasecmp): Fix specification comment.
17353         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
17354         Reported by Eric Blake <eblake@redhat.com>.
17355
17356 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
17357
17358         timespec: use cast and not conditional, as truncation isn't possible
17359         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
17360         instead of a conditional.  Comment about the situation in more detail.
17361         This undoes most of the 2009-10-29 patch.
17362
17363 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
17364
17365         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
17366         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
17367         * lib/unistr/u8-strchr.c: Likewise.
17368         * modules/unistr/u8-chr: Depend on memchr.
17369
17370         unistr/u*-strchr: add tests
17371         * modules/unistr/u8-strchr-tests: New file.
17372         * modules/unistr/u16-strchr-tests: New file.
17373         * modules/unistr/u32-strchr-tests: New file.
17374         * tests/unistr/test-strchr.h: New file.
17375         * tests/unistr/test-u8-strchr.c: New file.
17376         * tests/unistr/test-u16-strchr.c: New file.
17377         * tests/unistr/test-u32-strchr.c: New file.
17378
17379         unistr/u*-chr: test multibyte sequences more
17380         * tests/unistr/test-chr.h: Do complete testing of the characters in the
17381         test vector.
17382         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
17383         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
17384         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
17385
17386         unistr/u*-chr: test multibyte sequences
17387         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
17388
17389         unistr/u*-chr: prepare for multibyte tests
17390         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
17391         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
17392         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
17393         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
17394         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
17395         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
17396
17397 2010-07-18  Bruno Haible  <bruno@clisp.org>
17398
17399         unistr/u8-strchr: Optimize non-ASCII argument case.
17400         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
17401         because the first byte often matches anyway.
17402         Reported by Pádraig Brady <P@draigbrady.com>.
17403
17404 2010-07-15  Karl Berry  <karl@gnu.org>
17405
17406         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
17407
17408 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
17409
17410         getcwd: on Solaris, work better if ancestors are inaccessible
17411         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
17412         buffer and size, try again with a large buffer.  This works better
17413         on Solaris, since its getcwd succeeds even if the path to the root
17414         is inaccessible, and this is helpful in common cases such as .zfs
17415         hidden directories.  Problem reported by J Chapman Flack in
17416         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
17417         Use system getcwd if it's declared, not merely if it's partly
17418         working; use the partly-working test only to avoid needless effort
17419         if the system getcwd fails.
17420         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
17421         comment that was already obsolete and is now even more obsolete.
17422         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
17423         now might call strdup.
17424
17425 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
17426
17427         pthread: Add enough so that coreutils/src/sort.c compiles.
17428         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
17429         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
17430         gnulib. Include <sched.h> and <time.h>, as per POSIX.
17431         Include <sys/types.h>, in case it defines pthread_t.
17432         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
17433         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
17434         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
17435         (pthread_rwlockattr_t, pthread_spinlock_t):
17436         New typedefs, if HAVE_PTHREAD_T is not defined.
17437         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
17438         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
17439         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
17440         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
17441         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
17442         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
17443         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
17444         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
17445         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
17446         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
17447         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
17448         New macros.
17449         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
17450         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
17451         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
17452         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
17453         (pthread_spin_unlock): New dummy functions.
17454         (pthread_create): Return EAGAIN; don't set errno.
17455         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
17456         require AC_C_INLINE.
17457         * modules/pthread (Depends-on): Add sched, time.
17458         (pthread.h): Use AM_V_GEN.
17459
17460 2010-07-13  Bruno Haible  <bruno@clisp.org>
17461
17462         striconveh: Don't malloc memory if the result buffer is sufficient.
17463         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
17464         buffer if its size is sufficient.
17465         Reported by Ludovic Courtès <ludo@gnu.org>.
17466
17467 2010-07-13  Bruno Haible  <bruno@clisp.org>
17468
17469         strtod: Add safety check.
17470         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
17471
17472 2010-07-12  Bruno Haible  <bruno@clisp.org>
17473
17474         Unify tests that set gl_cv_func_ldexpl_no_libm.
17475         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
17476         gl_FUNC_LDEXPL.
17477         (gl_FUNC_LDEXPL): Invoke it.
17478         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
17479
17480 2010-07-12  Bruno Haible  <bruno@clisp.org>
17481
17482         Unify tests that set gl_cv_func_ldexp_no_libm.
17483         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
17484         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
17485         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
17486         (configure.ac): Simply invoke gl_FUNC_LDEXP.
17487         * modules/strtod (Files): Add m4/ldexp.m4.
17488
17489 2010-07-12  Bruno Haible  <bruno@clisp.org>
17490
17491         Unify tests that set gl_cv_func_frexpl_no_libm.
17492         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
17493         gl_FUNC_FREXPL_NO_LIBM.
17494         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
17495         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
17496
17497 2010-07-12  Bruno Haible  <bruno@clisp.org>
17498
17499         Unify tests that set gl_cv_func_frexp_no_libm.
17500         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
17501         gl_FUNC_FREXP_NO_LIBM.
17502         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
17503         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
17504
17505 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
17506
17507         memcoll: clarify sizes versus lengths, document better, and tweak perf
17508         * lib/memcoll.c (strcoll_loop, memcoll0):
17509         Improve quality of descriptive comments.  Name variables
17510         consistently as to whether they are lengths (which do not include
17511         terminating null) versus sizes (which do).
17512         * lib/xmemcoll.c (xmemcoll0): Likewise.
17513         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
17514         returned when s1size == 0; this is easier to compile and saves
17515         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
17516
17517 2010-07-12  Bruno Haible  <bruno@clisp.org>
17518
17519         Tests for module '_Exit'.
17520         * modules/_Exit-tests: New file.
17521         * tests/test-_Exit.sh: New file.
17522         * tests/test-_Exit.c: New file.
17523
17524         New module '_Exit'.
17525         * lib/stdlib.in.h (__attribute__): New macro.
17526         (_Exit): New declaration.
17527         * lib/_Exit.c: New file.
17528         * m4/_Exit.m4: New file.
17529         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
17530         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
17531         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
17532         * modules/_Exit: New file.
17533         * tests/test-stdlib-c++.cc (_Exit): Check signature.
17534         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
17535
17536 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
17537
17538         strtod: make it more-accurate typically, and don't require libm
17539         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
17540         Include limits.h.  Don't include string.h.
17541         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
17542         (locale_isspace): New function, so that no casts are needed to
17543         check whether *s is a space.
17544         (ldexp): Provide an unused dummy if not available.
17545         (scale_radix_exp, parse_number, underlying_strtod): New functions.
17546         (strtod): Use them.  This implementation prefers to use the
17547         underlying strtod if available, falling back on our own code
17548         only to fix known bugs.  This is more likely to produce an
17549         accurate result.  Also, it avoids the use of libm functions.
17550         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
17551         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
17552         was absent, but it caused a test failure with coreutils.
17553         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
17554         with libm.
17555         * modules/strtod (Makefile.am, Link): libm is no longer needed.
17556         * modules/strtod-tests (Makefile.am): Likewise.
17557
17558 2010-07-11  Pádraig Brady  <P@draigBrady.com>
17559             Bruno Haible  <bruno@clisp.org>
17560
17561         unistr/u8-strchr: Optimize ASCII argument case.
17562         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
17563
17564 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
17565
17566         (x)memcoll: minor tweaks
17567         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
17568         is after the type that it qualifies.
17569         (memcoll0): Likewise.
17570         * lib/memcoll.h (memcoll0): Likewise.
17571         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
17572         * lib/xmemcoll.h (xmemcoll0): Likewise.
17573         * lib/memcoll.c (memcoll0): Correct the comment.  This function
17574         differs from memcoll in that the NUL byte is part of the argument.
17575         Omit the abort-checks, as performance is a real issue here.  Plus,
17576         the checks were wrong anyway (an off-by-one error).  Omit local
17577         variable 'diff', as it's a bit clearer that way.
17578         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
17579         no longer needed.
17580
17581 2010-07-08  Chen Guo <chenguo4@yahoo.com>
17582
17583         (x)memcoll: speedup when input is known to be NUL delimited
17584         * lib/memcoll.c: Include stdlib.
17585         (memcoll0): New function.
17586         (strcoll_loop): New function, refactored for use in both memcoll
17587         and memcoll0.
17588         * lib/memcoll.h (memcoll0): Add prototype.
17589         * lib/xmemcoll.c (xmemcoll0): New function.
17590         (collate_error): New function, refactored for use in both xmemcoll
17591         and xmemcoll0.
17592         * lib/xmemcoll.h (xmemcoll0): Add prototype.
17593         * m4/memcoll.m4: add inline invocation.
17594
17595 2010-07-06  Pádraig Brady  <P@draigBrady.com>
17596
17597         * build-aux/bootstrap: Remove any local translations
17598         from the translation project synchronization directory,
17599         so that local only translations are not distributed.
17600
17601 2010-07-04  Bruno Haible  <bruno@clisp.org>
17602
17603         fsusage: Clarify which code applies to which platforms.
17604         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
17605         platform.
17606         * lib/fsusage.c (get_fs_usage): Likewise.
17607
17608 2010-07-04  Bruno Haible  <bruno@clisp.org>
17609
17610         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
17611         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
17612         Reported by Martin Lambers <marlam@marlam.de>.
17613
17614 2010-07-04  Jim Meyering  <meyering@redhat.com>
17615
17616         hash: once again explicitly disallow insertion of NULL
17617         * lib/hash.c (hash_insert0): Reinstate just-removed test:
17618         inserting a NULL pointer cannot work with these functions.
17619         Add a comment with details.
17620         This reverts part of the 2010-07-01 commit, 5bef1a35
17621         "hash: extend module to deal with non-pointer keys".
17622
17623 2010-07-01  Bruno Haible  <bruno@clisp.org>
17624
17625         stdbool: Update doc.
17626         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
17627         Info from Christian Weisgerber <naddy@mips.inka.de>.
17628
17629 2010-07-01  Jim Meyering  <meyering@redhat.com>
17630
17631         hash: extend module to deal with non-pointer keys
17632         * lib/hash.c (hash_insert0): New interface, much like hash_insert
17633         but that allows insertion of non-pointer entries.
17634         Do not disallow an ENTRY value of NULL.
17635         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
17636         * lib/hash.h (hash_insert0): Declare.
17637
17638 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
17639
17640         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
17641         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
17642         not present (i.e. with autoconf 2.59 and when using gettextize, not
17643         gnulib), require AC_GNU_SOURCE instead.
17644
17645 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
17646
17647         idpriv-drop: Fix tests.
17648         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
17649         not to the test-idpriv-droptemp program.
17650
17651 2010-06-29  Bruno Haible  <bruno@clisp.org>
17652
17653         string: Fix syntax error with g++ 2.96.
17654         * lib/string.in.h (__pure__): Remove definition.
17655         (_GL_ATTRIBUTE_PURE): New macro.
17656         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
17657         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
17658         Reported by Christian Weisgerber <naddy@mips.inka.de>.
17659
17660 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
17661
17662         unitypes: Fix bug introduced on 2010-05-18.
17663         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
17664
17665 2010-06-22  Eric Blake  <eblake@redhat.com>
17666
17667         memmem: slight optimization
17668         * lib/str-two-way.h (critical_factorization): Update comments.
17669         Reduce work during factorization phase.
17670         Reported by Carlos Bueno <carlos@bueno.org>.
17671
17672 2010-06-21  Bruno Haible  <bruno@clisp.org>
17673
17674         Fix HAVE_CALLOC_POSIX misnomer.
17675         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
17676         !HAVE_CALLOC_POSIX.
17677         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
17678         HAVE_CALLOC_POSIX.
17679         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
17680         instead of HAVE_CALLOC_POSIX.
17681         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
17682         HAVE_CALLOC_POSIX.
17683
17684         Use modern idiom for calloc() replacement.
17685         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
17686         AC_FUNC_CALLOC.
17687         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
17688         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
17689         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
17690         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
17691         (gl_REPLACE_CALLOC): New macro.
17692
17693 2010-06-21  Bruno Haible  <bruno@clisp.org>
17694
17695         Fix HAVE_REALLOC_POSIX misnomer.
17696         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
17697         !HAVE_REALLOC_POSIX.
17698         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
17699         HAVE_REALLOC_POSIX.
17700         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
17701         instead of HAVE_REALLOC_POSIX.
17702         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
17703         HAVE_REALLOC_POSIX.
17704
17705         Use modern idiom for realloc() replacement.
17706         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
17707         AC_FUNC_REALLOC.
17708         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
17709         Autoconf's AC_FUNC_REALLOC.
17710         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
17711         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
17712         (gl_REPLACE_REALLOC): New macro.
17713         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
17714
17715 2010-06-21  Bruno Haible  <bruno@clisp.org>
17716
17717         Fix HAVE_MALLOC_POSIX misnomer.
17718         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
17719         !HAVE_MALLOC_POSIX.
17720         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
17721         HAVE_MALLOC_POSIX.
17722         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
17723         instead of HAVE_MALLOC_POSIX.
17724         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
17725         HAVE_MALLOC_POSIX.
17726
17727         Use modern idiom for malloc() replacement.
17728         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
17729         AC_FUNC_MALLOC.
17730         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
17731         Autoconf's AC_FUNC_MALLOC.
17732         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
17733         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
17734         (gl_REPLACE_MALLOC): New macro.
17735         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
17736
17737 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
17738
17739         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
17740         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
17741         This macro takes 3 arguments, not 4.
17742
17743 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
17744
17745         ipv6: fix detection under mingw
17746         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
17747         in6_addr.
17748
17749 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
17750
17751         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
17752         that strtod() works when cross-compiling to a glibc version known
17753         to work.
17754
17755 2010-06-15  Bruno Haible  <bruno@clisp.org>
17756
17757         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
17758
17759 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
17760
17761         select: Correct timeout.
17762         * lib/select.c (rpl_select): Compute wait_timeout correctly.
17763
17764 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
17765
17766         git-version-gen: init shell var to avoid env var influence
17767         * build-aux/git-version-gen (v): Init shell var to empty.
17768
17769 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
17770
17771         priv-set: Don't assume that priv.h exists merely because getppriv does.
17772         See Jan Andersen's bug report about AIX 5L in
17773         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
17774         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
17775         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
17776         * lib/priv-set.h: Likewise.
17777         * tests/test-priv-set.c: Likewise.
17778
17779 2010-06-13  Bruno Haible  <bruno@clisp.org>
17780
17781         relocatable: Make it easier to test whether to install wrappers.
17782         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
17783         RELOCATABLE_VIA_WRAPPER.
17784
17785 2010-06-13  Bruno Haible  <bruno@clisp.org>
17786
17787         gnulib-tool: Display specified modules and dependencies differently.
17788         * gnulib-tool (func_show_module_list): New function.
17789         (func_import, func_create_testdir): Invoke it.
17790         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
17791
17792 2010-06-13  Bruno Haible  <bruno@clisp.org>
17793
17794         gnulib-tool: Align code of func_import and func_create_testdir.
17795         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
17796         specified_modules.
17797
17798 2010-06-12  Jim Meyering  <meyering@redhat.com>
17799
17800         test-inttostr: avoid spurious failure on Solaris 9
17801         * tests/test-inttostr.c (main): Skip the test when snprintf fails
17802         to accept "%ju".  Reported by Bruno Haible.
17803
17804 2010-06-11  Jim Meyering  <meyering@redhat.com>
17805
17806         test-sys_socket: mark variables as used more readably
17807         * tests/test-sys_socket.c (main): Mark otherwise unused variables
17808         as "used" explicitly via (void) statement casts.  This is more
17809         readable than using them in an artificial return expression.
17810         Suggestion from Bruno Haible.
17811
17812 2010-06-11  Bruno Haible  <bruno@clisp.org>
17813
17814         Avoid some more warnings from "gcc -Wwrite-strings".
17815         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
17816         to 'const char *'.
17817         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
17818         * tests/test-c-strcasestr.c (main): Likewise.
17819         * tests/test-mbscasestr1.c (main): Likewise.
17820         * tests/test-mbscasestr2.c (main): Likewise.
17821         * tests/test-memmem.c (main): Likewise.
17822         * tests/test-strstr.c (main): Likewise.
17823         * tests/test-strcasestr.c (main): Likewise.
17824
17825 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17826
17827         init.sh: change framework_failure_ to fail with status 99, not 1
17828         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
17829         automake's parallel-tests rule that this is an unexpected failure,
17830         even if the test is listed in XFAIL_TESTS.
17831
17832 2010-06-11  Jim Meyering  <meyering@redhat.com>
17833
17834         test-inttostr: avoid warnings about 4-6KB literal strings
17835         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
17836         Include "macros.h", for its definition of ASSERT.
17837         (CK): s/assert/ASSERT/
17838         * modules/inttostr-tests (Files): Add macros.h.
17839
17840         init.sh: don't use $ME_ or skip_ before they are defined
17841         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
17842         their first uses.  Also hoist their companions: warn_, fail_,
17843         framework_failure_, $stderr_fileno.  Prompted by a patch from
17844         Stefano Lattarini.
17845
17846         test-sys_socket: avoid set-but-not-used warnings from gcc
17847         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
17848         avoid warning about set-but-not-used variables.
17849
17850         test-xvasprintf: avoid 'const' discard warnings
17851         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
17852         "const" when assigning from literal strings.
17853         (test_xasprintf): Add "void" in function argument list to placate
17854         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
17855
17856         tests: avoid compilation warnings in argmatch and exclude tests...
17857         in packages that define ARGMATCH_DIE_DECL, like coreutils.
17858         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
17859         Since it always exits, declare with the "noreturn" attribute.
17860         * tests/test-argmatch.c: Likewise.
17861
17862         tests: avoid 'const' discard warnings in mbsstr tests
17863         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
17864         * tests/test-mbsstr2.c (main): Likewise.
17865
17866         test-verify: avoid warning from gcc's -Wmissing-declarations
17867         * tests/test-verify.c (function): Declare to be static.
17868
17869         test-inttostr.c: include <string.h> for use of strcmp
17870         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
17871
17872         test-linkat: avoid failed assertion on "other" architectures
17873         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
17874         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
17875         sparc: https://bugs.launchpad.net/bugs/591968
17876
17877 2010-06-11  Jim Meyering  <meyering@redhat.com>
17878
17879         printf.m4: avoid autoconf's "Expanded Before Required" warning
17880         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
17881         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
17882         autoconf warning.
17883
17884 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
17885
17886         Replacement header templates are now named with ".in", not "_".
17887         * doc/gnulib-intro.texi: Correct.
17888
17889 2010-06-10  Jim Meyering  <meyering@redhat.com>
17890
17891         inttostr-tests: depend on snprintf, not snprintf-posix
17892         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
17893         snprintf-posix, to avoid this aclocal failure:
17894           missing file gnulib-tests/vasnprintf.c
17895           configure.ac:45: error: expected source file, required through \
17896           AC_LIBSOURCES, not found
17897
17898 2010-06-10  Jim Meyering  <meyering@redhat.com>
17899
17900         inttostr: add a new function, inttostr, and tests
17901         The namesake function was not available.  The existence of the
17902         template file, inttostr.c makes its addition nontrivial.
17903         * lib/anytostr.c: Rename from inttostr.c.
17904         (anytostr): Rename from inttostr.
17905         * lib/inttostr.c: New file.
17906         * modules/inttostr (Files): Add anytostr.c.
17907         (Makefile.am): Set lib_SOURCES instead of ...
17908         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
17909         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
17910         * lib/offtostr.c: Likewise.
17911         * lib/uinttostr.c: Likewise.
17912         * lib/umaxtostr.c: Likewise.
17913         * modules/inttostr-tests: New file.
17914         * tests/test-inttostr.c: New file.  Test these functions.
17915
17916 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
17917             Bruno Haible  <bruno@clisp.org>
17918
17919         Add "Extending Gnulib" chapter to manual.
17920         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
17921         chapter.
17922         (Extending Gnulib): New chapter.
17923         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
17924         chapter.
17925
17926 2010-06-09  Bruno Haible  <bruno@clisp.org>
17927
17928         Avoid relocwrapper link errors due to gnulib replacement functions.
17929         * lib/areadlink.c: Use the system's malloc, realloc functions.
17930         (areadlink): Set errno to ENOMEM explicitly.
17931         * modules/areadlink (Depends-on): Remove malloc-posix.
17932         Reported by Ben Pfaff <blp@cs.stanford.edu>.
17933
17934 2010-06-09  Bruno Haible  <bruno@clisp.org>
17935
17936         Avoid relocwrapper link errors due to gnulib replacement functions.
17937         * lib/canonicalize-lgpl.c: Use the system's malloc function.
17938         * lib/malloca.c: Likewise.
17939         * lib/relocatable.c: Likewise.
17940         * lib/progreloc.c: Use the system's malloc, sprintf functions.
17941         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
17942         * lib/setenv.c: Use the system's malloc, realloc functions.
17943         * lib/strerror.c: Use the system's sprintf function.
17944         Reported by Ben Pfaff <blp@cs.stanford.edu>.
17945
17946 2010-06-04  Bruno Haible  <bruno@clisp.org>
17947
17948         Prefer documented low-level autoconf macro names.
17949         * m4/lib-link.m4: Use m4_translit instead of translit.
17950         * m4/environ.m4: Likewise.
17951         * m4/mathfunc.m4: Likewise.
17952         * m4/onceonly.m4: Likewise.
17953         * m4/stdint.m4: Likewise.
17954         Suggested by Eric Blake.
17955
17956 2010-06-04  Martin Lambers  <marlam@marlam.de>
17957             Bruno Haible  <bruno@clisp.org>
17958
17959         havelib: Allow library names with '+' characters.
17960         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
17961         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
17962
17963 2010-06-09  Bruno Haible  <bruno@clisp.org>
17964
17965         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
17966         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
17967         realloc failed.
17968
17969 2010-06-08  Peter Simons  <simons@cryp.to>
17970
17971         maint.mk: make the news-check rule more configurable
17972         * top/maint.mk (news-check-lines-spec): New variable.
17973         (news-check): Use "sed -n 1,10p" in place of "head".
17974
17975 2010-06-07  Jim Meyering  <meyering@redhat.com>
17976
17977         do-release-commit-and-tag: fix typo in --help
17978         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
17979
17980         regex: avoid new dead-code warning with gcc-4.6.0
17981         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
17982         if-block containing a while-loop.  It's been unused for at least
17983         5 years.
17984
17985 2010-06-05  Bruno Haible  <bruno@clisp.org>
17986
17987         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
17988         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
17989
17990 2010-06-04  Bruno Haible  <bruno@clisp.org>
17991
17992         Update to GNU gettext 0.18.1.
17993         * modules/gettext (configure.ac): Require gettext infrastructure from
17994         version 0.18.1.
17995
17996 2010-06-03  Bruno Haible  <bruno@clisp.org>
17997
17998         Don't use AC_LIBOBJ with file names in subdirectories.
17999         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
18000         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
18001         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
18002         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
18003         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
18004         gl_LIBUNISTRING_LIBSOURCE.
18005         (Makefile.am): Augment lib_SOURCES here, conditionally.
18006         * NEWS: Drop requirement for Automake option 'subdir-objects'.
18007
18008 2010-06-03  Bruno Haible  <bruno@clisp.org>
18009
18010         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
18011         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
18012         expansion does not end with a newline.
18013         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
18014         unnecessary newline.
18015
18016 2010-06-03  Bruno Haible  <bruno@clisp.org>
18017
18018         Reduce dependencies.
18019         * tests/test-quotearg.h: New file, extracted from
18020         tests/test-quotearg.c.
18021         * tests/test-quotearg-simple.c: New file, extracted from
18022         tests/test-quotearg.c.
18023         * tests/test-quotearg.c: Don't include <ctype.h>.
18024         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
18025         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
18026         use_quote_double_quotes, use_quotearg_colon): Moved to
18027         tests/test-quotearg.h.
18028         (results_g, flag_results, custom_quotes, custom_results): Moved
18029         to tests/test-quotearg-simple.c.
18030         (main): Moved the part that does not depend on gettext to
18031         tests/test-quotearg-simple.c. Return 77 if the test cannot be
18032         performed.
18033         * modules/quotearg-simple: New file.
18034         * modules/quotearg-simple-tests: New file.
18035         * modules/quotearg (Depends-on): Add quotearg-simple.
18036         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
18037         (Files): Add tests/test-quotearg.h.
18038         Reported by Paolo Bonzini.
18039
18040 2010-06-03  Bruno Haible  <bruno@clisp.org>
18041
18042         Reduce dependencies.
18043         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
18044
18045 2010-06-03  Bruno Haible  <bruno@clisp.org>
18046
18047         time: Undefine more broken macros.
18048         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
18049         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
18050         Reported by Eric Blake.
18051
18052 2010-06-03  Bruno Haible  <bruno@clisp.org>
18053
18054         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
18055         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
18056         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
18057         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
18058         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
18059         Reported by Ludovic Courtès <ludo@gnu.org>.
18060
18061 2010-06-02  Eric Blake  <eblake@redhat.com>
18062
18063         time: work with mingw + pthreads-win32 library
18064         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
18065         if timespec is defined only in pthread.h.
18066         * modules/time (Makefile.am): Substitute it.
18067         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
18068         <pthread.h>, when needed.
18069         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
18070         from the library.
18071
18072 2010-05-31  Bruno Haible  <bruno@clisp.org>
18073
18074         Avoid expanding two macros in the wrong order.
18075         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
18076         gl_LIBUNISTRING if it is defined.
18077         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
18078         autoconf >= 2.64.
18079         Reported by Ludovic Courtès <ludo@gnu.org>.
18080
18081 2010-05-27  Jim Meyering  <meyering@redhat.com>
18082
18083         maint.mk: also prohibit "#undef" of always-defined symbols
18084         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
18085         Allow more than one space before the symbol name.
18086         (sc_prohibit_always-defined_macros): Use grep's -E, now that
18087         the regexp uses alternation.
18088
18089 2010-05-26  Eric Blake  <eblake@redhat.com>
18090
18091         maint.mk: avoid echo -e
18092         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
18093         Convert all uses of echo -* to printf.
18094         Reported by Matthias Bolte.
18095
18096 2010-05-25  Bruno Haible  <bruno@clisp.org>
18097
18098         Update to GNU gettext 0.18, part 2.
18099         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
18100         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
18101
18102 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18103
18104         Add missing include in test-pwrite.c.
18105         * tests/test-pwrite.c: Include string.h, for strcmp.
18106
18107 2010-05-24  Bruno Haible  <bruno@clisp.org>
18108
18109         * NEWS: Mention requirement for Automake option 'subdir-objects'.
18110
18111 2010-05-24  Bruno Haible  <bruno@clisp.org>
18112
18113         Don't use conversion with transliteration in u{8,16,32}_strcoll.
18114         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
18115         iconveh_error argument.
18116         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
18117         U_STRCONV_TO_LOCALE.
18118         * lib/unistr/u16-strcoll.c: Likewise.
18119         * lib/unistr/u32-strcoll.c: Likewise.
18120         * modules/unistr/u8-strcoll (Depends-on): Add
18121         uniconv/u8-strconv-to-enc, localcharset. Remove
18122         uniconv/u8-strconv-to-locale.
18123         (configure.ac): Bump version number.
18124         * modules/unistr/u16-strcoll (Depends-on): Add
18125         uniconv/u16-strconv-to-enc, localcharset. Remove
18126         uniconv/u16-strconv-to-locale.
18127         (configure.ac): Bump version number.
18128         * modules/unistr/u32-strcoll (Depends-on): Add
18129         uniconv/u32-strconv-to-enc, localcharset. Remove
18130         uniconv/u32-strconv-to-locale.
18131         (configure.ac): Bump version number.
18132
18133 2010-05-24  Bruno Haible  <bruno@clisp.org>
18134
18135         Avoid a test failure on NetBSD 5.0.
18136         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
18137         an iconv() bug.
18138
18139 2010-05-24  Bruno Haible  <bruno@clisp.org>
18140
18141         Adjust #include directive style.
18142         * modules/regex (Includes): Recommend to write <regex.h>.
18143
18144 2010-05-24  Bruno Haible  <bruno@clisp.org>
18145
18146         regex: Don't require alloca.
18147         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
18148         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
18149         only inside if (0).
18150
18151 2010-05-23  Jim Meyering  <meyering@redhat.com>
18152
18153         test-renameat.c: include <sys/stat.h>
18154         * tests/test-renameat.c: Include <sys/stat.h>; required for
18155         definition of S_IS* macros.
18156
18157 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
18158
18159         Update maintainer documentation for 'relocatable-prog' module.
18160         * doc/relocatable-maint.texi: Update.
18161         Comments by Bruno Haible.
18162
18163 2010-05-23  Bruno Haible  <bruno@clisp.org>
18164
18165         git-merge-changelog: Enable --split-merged-entry by default.
18166         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
18167         (usage): Don't mention this option any more.
18168         Reported by Ralf Wildenhues.
18169
18170 2010-05-23  Jim Meyering  <meyering@redhat.com>
18171
18172         test-pwrite: do not leave behind a test file named "out"
18173         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
18174         The trivial-looking use of init.sh is really necessary.
18175         It ensures that the temporary file, "out", is created in
18176         a temporary directory, and removed upon termination.
18177         * tests/test-pwrite.sh: Re-add file.
18178         * modules/pwrite-tests: Reference it.
18179
18180 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18181
18182         Fix output redirection buglet in init.sh.
18183         * tests/init.sh: Fix redirection of stderr.
18184
18185 2010-05-20  Simon Josefsson  <simon@josefsson.org>
18186
18187         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
18188
18189 2010-05-17  Simon Josefsson  <simon@josefsson.org>
18190
18191         * modules/valgrind-tests: New file.
18192         * m4/valgrind-tests.m4: New file.
18193         * doc/valgrind-tests.texi: New file.
18194         * doc/gnulib.texi (Running self-tests under valgrind): New
18195         section.
18196
18197 2010-05-19  Bruno Haible  <bruno@clisp.org>
18198
18199         Clean up dead code in recent commit.
18200         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
18201         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
18202         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
18203         Suggested by Paolo Bonzini.
18204
18205 2010-05-19  Bruno Haible  <bruno@clisp.org>
18206
18207         Avoid valgrind error reports from libunistring.
18208         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
18209         * modules/libunistring (Files): Add it.
18210         * modules/libunistring-optional (Files): Likewise.
18211
18212 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
18213             Bruno Haible  <bruno@clisp.org>
18214
18215         New module 'libunistring-optional'.
18216         * modules/libunistring-optional: New file.
18217         * m4/libunistring-base.m4: New file.
18218         * m4/libunistring-optional.m4: New file.
18219         * lib/unicase.in.h: Renamed from lib/unicase.h.
18220         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
18221         * lib/unictype.in.h: Renamed from lib/unictype.h.
18222         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
18223         * lib/uniname.in.h: Renamed from lib/uniname.h.
18224         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
18225         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
18226         * lib/unistr.in.h: Renamed from lib/unistr.h.
18227         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
18228         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
18229         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
18230         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
18231         gl_LIBUNISTRING. If the library was found, determine the installed
18232         version and set LIBUNISTRING_VERSION.
18233         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
18234         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
18235         handle a configuration option --with-included-libunistring.
18236         * modules/libunistring (Files): Add m4/absolute-header.m4.
18237         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
18238         Add m4/libunistring-base.m4.
18239         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18240         (Makefile.am): Build unicase.h from unicase.in.h.
18241         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
18242         Add m4/libunistring-base.m4.
18243         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18244         (Makefile.am): Build uniconv.h from uniconv.in.h.
18245         * modules/unictype/base (Files): Use unictype.in.h instead of
18246         unictype.h. Add m4/libunistring-base.m4.
18247         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18248         (Makefile.am): Build unictype.h from unictype.in.h.
18249         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
18250         Add m4/libunistring-base.m4.
18251         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18252         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
18253         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
18254         Add m4/libunistring-base.m4.
18255         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18256         (Makefile.am): Build uniname.h from uniname.in.h.
18257         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
18258         Add m4/libunistring-base.m4.
18259         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18260         (Makefile.am): Build uninorm.h from uninorm.in.h.
18261         * modules/unistdio/base (Files): Use unistdio.in.h instead of
18262         unistdio.h. Add m4/libunistring-base.m4.
18263         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18264         (Makefile.am): Build unistdio.h from unistdio.in.h.
18265         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
18266         Add m4/libunistring-base.m4.
18267         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18268         (Makefile.am): Build unistr.h from unistr.in.h.
18269         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
18270         Add m4/libunistring-base.m4.
18271         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18272         (Makefile.am): Build unitypes.h from unitypes.in.h.
18273         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
18274         Add m4/libunistring-base.m4.
18275         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18276         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
18277         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
18278         uniwidth.h. Add m4/libunistring-base.m4.
18279         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18280         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
18281         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
18282         instead of augmenting lib_SOURCES.
18283         * modules/unicase/empty-suffix-context: Likewise.
18284         * modules/unicase/locale-language: Likewise.
18285         * modules/unicase/tolower: Likewise.
18286         * modules/unicase/totitle: Likewise.
18287         * modules/unicase/toupper: Likewise.
18288         * modules/unicase/u8-casecmp: Likewise.
18289         * modules/unicase/u8-casecoll: Likewise.
18290         * modules/unicase/u8-casefold: Likewise.
18291         * modules/unicase/u8-casexfrm: Likewise.
18292         * modules/unicase/u8-ct-casefold: Likewise.
18293         * modules/unicase/u8-ct-tolower: Likewise.
18294         * modules/unicase/u8-ct-totitle: Likewise.
18295         * modules/unicase/u8-ct-toupper: Likewise.
18296         * modules/unicase/u8-is-cased: Likewise.
18297         * modules/unicase/u8-is-casefolded: Likewise.
18298         * modules/unicase/u8-is-lowercase: Likewise.
18299         * modules/unicase/u8-is-titlecase: Likewise.
18300         * modules/unicase/u8-is-uppercase: Likewise.
18301         * modules/unicase/u8-prefix-context: Likewise.
18302         * modules/unicase/u8-suffix-context: Likewise.
18303         * modules/unicase/u8-tolower: Likewise.
18304         * modules/unicase/u8-totitle: Likewise.
18305         * modules/unicase/u8-toupper: Likewise.
18306         * modules/unicase/u16-casecmp: Likewise.
18307         * modules/unicase/u16-casecoll: Likewise.
18308         * modules/unicase/u16-casefold: Likewise.
18309         * modules/unicase/u16-casexfrm: Likewise.
18310         * modules/unicase/u16-ct-casefold: Likewise.
18311         * modules/unicase/u16-ct-tolower: Likewise.
18312         * modules/unicase/u16-ct-totitle: Likewise.
18313         * modules/unicase/u16-ct-toupper: Likewise.
18314         * modules/unicase/u16-is-cased: Likewise.
18315         * modules/unicase/u16-is-casefolded: Likewise.
18316         * modules/unicase/u16-is-lowercase: Likewise.
18317         * modules/unicase/u16-is-titlecase: Likewise.
18318         * modules/unicase/u16-is-uppercase: Likewise.
18319         * modules/unicase/u16-prefix-context: Likewise.
18320         * modules/unicase/u16-suffix-context: Likewise.
18321         * modules/unicase/u16-tolower: Likewise.
18322         * modules/unicase/u16-totitle: Likewise.
18323         * modules/unicase/u16-toupper: Likewise.
18324         * modules/unicase/u32-casecmp: Likewise.
18325         * modules/unicase/u32-casecoll: Likewise.
18326         * modules/unicase/u32-casefold: Likewise.
18327         * modules/unicase/u32-casexfrm: Likewise.
18328         * modules/unicase/u32-ct-casefold: Likewise.
18329         * modules/unicase/u32-ct-tolower: Likewise.
18330         * modules/unicase/u32-ct-totitle: Likewise.
18331         * modules/unicase/u32-ct-toupper: Likewise.
18332         * modules/unicase/u32-is-cased: Likewise.
18333         * modules/unicase/u32-is-casefolded: Likewise.
18334         * modules/unicase/u32-is-lowercase: Likewise.
18335         * modules/unicase/u32-is-titlecase: Likewise.
18336         * modules/unicase/u32-is-uppercase: Likewise.
18337         * modules/unicase/u32-prefix-context: Likewise.
18338         * modules/unicase/u32-suffix-context: Likewise.
18339         * modules/unicase/u32-tolower: Likewise.
18340         * modules/unicase/u32-totitle: Likewise.
18341         * modules/unicase/u32-toupper: Likewise.
18342         * modules/unicase/ulc-casecmp: Likewise.
18343         * modules/unicase/ulc-casecoll: Likewise.
18344         * modules/unicase/ulc-casexfrm: Likewise.
18345         * modules/uniconv/u8-conv-from-enc: Likewise.
18346         * modules/uniconv/u8-conv-to-enc: Likewise.
18347         * modules/uniconv/u8-strconv-from-enc: Likewise.
18348         * modules/uniconv/u8-strconv-from-locale: Likewise.
18349         * modules/uniconv/u8-strconv-to-enc: Likewise.
18350         * modules/uniconv/u8-strconv-to-locale: Likewise.
18351         * modules/uniconv/u16-conv-from-enc: Likewise.
18352         * modules/uniconv/u16-conv-to-enc: Likewise.
18353         * modules/uniconv/u16-strconv-from-enc: Likewise.
18354         * modules/uniconv/u16-strconv-from-locale: Likewise.
18355         * modules/uniconv/u16-strconv-to-enc: Likewise.
18356         * modules/uniconv/u16-strconv-to-locale: Likewise.
18357         * modules/uniconv/u32-conv-from-enc: Likewise.
18358         * modules/uniconv/u32-conv-to-enc: Likewise.
18359         * modules/uniconv/u32-strconv-from-enc: Likewise.
18360         * modules/uniconv/u32-strconv-from-locale: Likewise.
18361         * modules/uniconv/u32-strconv-to-enc: Likewise.
18362         * modules/uniconv/u32-strconv-to-locale: Likewise.
18363         * modules/unictype/bidicategory-byname: Likewise.
18364         * modules/unictype/bidicategory-name: Likewise.
18365         * modules/unictype/bidicategory-of: Likewise.
18366         * modules/unictype/bidicategory-test: Likewise.
18367         * modules/unictype/block-list: Likewise.
18368         * modules/unictype/block-test: Likewise.
18369         * modules/unictype/category-C: Likewise.
18370         * modules/unictype/category-Cc: Likewise.
18371         * modules/unictype/category-Cf: Likewise.
18372         * modules/unictype/category-Cn: Likewise.
18373         * modules/unictype/category-Co: Likewise.
18374         * modules/unictype/category-Cs: Likewise.
18375         * modules/unictype/category-L: Likewise.
18376         * modules/unictype/category-Ll: Likewise.
18377         * modules/unictype/category-Lm: Likewise.
18378         * modules/unictype/category-Lo: Likewise.
18379         * modules/unictype/category-Lt: Likewise.
18380         * modules/unictype/category-Lu: Likewise.
18381         * modules/unictype/category-M: Likewise.
18382         * modules/unictype/category-Mc: Likewise.
18383         * modules/unictype/category-Me: Likewise.
18384         * modules/unictype/category-Mn: Likewise.
18385         * modules/unictype/category-N: Likewise.
18386         * modules/unictype/category-Nd: Likewise.
18387         * modules/unictype/category-Nl: Likewise.
18388         * modules/unictype/category-No: Likewise.
18389         * modules/unictype/category-P: Likewise.
18390         * modules/unictype/category-Pc: Likewise.
18391         * modules/unictype/category-Pd: Likewise.
18392         * modules/unictype/category-Pe: Likewise.
18393         * modules/unictype/category-Pf: Likewise.
18394         * modules/unictype/category-Pi: Likewise.
18395         * modules/unictype/category-Po: Likewise.
18396         * modules/unictype/category-Ps: Likewise.
18397         * modules/unictype/category-S: Likewise.
18398         * modules/unictype/category-Sc: Likewise.
18399         * modules/unictype/category-Sk: Likewise.
18400         * modules/unictype/category-Sm: Likewise.
18401         * modules/unictype/category-So: Likewise.
18402         * modules/unictype/category-Z: Likewise.
18403         * modules/unictype/category-Zl: Likewise.
18404         * modules/unictype/category-Zp: Likewise.
18405         * modules/unictype/category-Zs: Likewise.
18406         * modules/unictype/category-and: Likewise.
18407         * modules/unictype/category-and-not: Likewise.
18408         * modules/unictype/category-byname: Likewise.
18409         * modules/unictype/category-name: Likewise.
18410         * modules/unictype/category-none: Likewise.
18411         * modules/unictype/category-of: Likewise.
18412         * modules/unictype/category-or: Likewise.
18413         * modules/unictype/category-test: Likewise.
18414         * modules/unictype/combining-class: Likewise.
18415         * modules/unictype/ctype-alnum: Likewise.
18416         * modules/unictype/ctype-alpha: Likewise.
18417         * modules/unictype/ctype-blank: Likewise.
18418         * modules/unictype/ctype-cntrl: Likewise.
18419         * modules/unictype/ctype-digit: Likewise.
18420         * modules/unictype/ctype-graph: Likewise.
18421         * modules/unictype/ctype-lower: Likewise.
18422         * modules/unictype/ctype-print: Likewise.
18423         * modules/unictype/ctype-punct: Likewise.
18424         * modules/unictype/ctype-space: Likewise.
18425         * modules/unictype/ctype-upper: Likewise.
18426         * modules/unictype/ctype-xdigit: Likewise.
18427         * modules/unictype/decimal-digit: Likewise.
18428         * modules/unictype/digit: Likewise.
18429         * modules/unictype/mirror: Likewise.
18430         * modules/unictype/numeric: Likewise.
18431         * modules/unictype/property-alphabetic: Likewise.
18432         * modules/unictype/property-ascii-hex-digit: Likewise.
18433         * modules/unictype/property-bidi-arabic-digit: Likewise.
18434         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
18435         * modules/unictype/property-bidi-block-separator: Likewise.
18436         * modules/unictype/property-bidi-boundary-neutral: Likewise.
18437         * modules/unictype/property-bidi-common-separator: Likewise.
18438         * modules/unictype/property-bidi-control: Likewise.
18439         * modules/unictype/property-bidi-embedding-or-override: Likewise.
18440         * modules/unictype/property-bidi-eur-num-separator: Likewise.
18441         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
18442         * modules/unictype/property-bidi-european-digit: Likewise.
18443         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
18444         * modules/unictype/property-bidi-left-to-right: Likewise.
18445         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
18446         * modules/unictype/property-bidi-other-neutral: Likewise.
18447         * modules/unictype/property-bidi-pdf: Likewise.
18448         * modules/unictype/property-bidi-segment-separator: Likewise.
18449         * modules/unictype/property-bidi-whitespace: Likewise.
18450         * modules/unictype/property-byname: Likewise.
18451         * modules/unictype/property-combining: Likewise.
18452         * modules/unictype/property-composite: Likewise.
18453         * modules/unictype/property-currency-symbol: Likewise.
18454         * modules/unictype/property-dash: Likewise.
18455         * modules/unictype/property-decimal-digit: Likewise.
18456         * modules/unictype/property-default-ignorable-code-point: Likewise.
18457         * modules/unictype/property-deprecated: Likewise.
18458         * modules/unictype/property-diacritic: Likewise.
18459         * modules/unictype/property-extender: Likewise.
18460         * modules/unictype/property-format-control: Likewise.
18461         * modules/unictype/property-grapheme-base: Likewise.
18462         * modules/unictype/property-grapheme-extend: Likewise.
18463         * modules/unictype/property-grapheme-link: Likewise.
18464         * modules/unictype/property-hex-digit: Likewise.
18465         * modules/unictype/property-hyphen: Likewise.
18466         * modules/unictype/property-id-continue: Likewise.
18467         * modules/unictype/property-id-start: Likewise.
18468         * modules/unictype/property-ideographic: Likewise.
18469         * modules/unictype/property-ids-binary-operator: Likewise.
18470         * modules/unictype/property-ids-trinary-operator: Likewise.
18471         * modules/unictype/property-ignorable-control: Likewise.
18472         * modules/unictype/property-iso-control: Likewise.
18473         * modules/unictype/property-join-control: Likewise.
18474         * modules/unictype/property-left-of-pair: Likewise.
18475         * modules/unictype/property-line-separator: Likewise.
18476         * modules/unictype/property-logical-order-exception: Likewise.
18477         * modules/unictype/property-lowercase: Likewise.
18478         * modules/unictype/property-math: Likewise.
18479         * modules/unictype/property-non-break: Likewise.
18480         * modules/unictype/property-not-a-character: Likewise.
18481         * modules/unictype/property-numeric: Likewise.
18482         * modules/unictype/property-other-alphabetic: Likewise.
18483         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
18484         * modules/unictype/property-other-grapheme-extend: Likewise.
18485         * modules/unictype/property-other-id-continue: Likewise.
18486         * modules/unictype/property-other-id-start: Likewise.
18487         * modules/unictype/property-other-lowercase: Likewise.
18488         * modules/unictype/property-other-math: Likewise.
18489         * modules/unictype/property-other-uppercase: Likewise.
18490         * modules/unictype/property-paired-punctuation: Likewise.
18491         * modules/unictype/property-paragraph-separator: Likewise.
18492         * modules/unictype/property-pattern-syntax: Likewise.
18493         * modules/unictype/property-pattern-white-space: Likewise.
18494         * modules/unictype/property-private-use: Likewise.
18495         * modules/unictype/property-punctuation: Likewise.
18496         * modules/unictype/property-quotation-mark: Likewise.
18497         * modules/unictype/property-radical: Likewise.
18498         * modules/unictype/property-sentence-terminal: Likewise.
18499         * modules/unictype/property-soft-dotted: Likewise.
18500         * modules/unictype/property-space: Likewise.
18501         * modules/unictype/property-terminal-punctuation: Likewise.
18502         * modules/unictype/property-test: Likewise.
18503         * modules/unictype/property-titlecase: Likewise.
18504         * modules/unictype/property-unassigned-code-value: Likewise.
18505         * modules/unictype/property-unified-ideograph: Likewise.
18506         * modules/unictype/property-uppercase: Likewise.
18507         * modules/unictype/property-variation-selector: Likewise.
18508         * modules/unictype/property-white-space: Likewise.
18509         * modules/unictype/property-xid-continue: Likewise.
18510         * modules/unictype/property-xid-start: Likewise.
18511         * modules/unictype/property-zero-width: Likewise.
18512         * modules/unictype/scripts: Likewise.
18513         * modules/unictype/syntax-c-ident: Likewise.
18514         * modules/unictype/syntax-c-whitespace: Likewise.
18515         * modules/unictype/syntax-java-ident: Likewise.
18516         * modules/unictype/syntax-java-whitespace: Likewise.
18517         * modules/unilbrk/u8-possible-linebreaks: Likewise.
18518         * modules/unilbrk/u8-width-linebreaks: Likewise.
18519         * modules/unilbrk/u16-possible-linebreaks: Likewise.
18520         * modules/unilbrk/u16-width-linebreaks: Likewise.
18521         * modules/unilbrk/u32-possible-linebreaks: Likewise.
18522         * modules/unilbrk/u32-width-linebreaks: Likewise.
18523         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
18524         * modules/unilbrk/ulc-width-linebreaks: Likewise.
18525         * modules/uniname/uniname: Likewise.
18526         * modules/uninorm/canonical-decomposition: Likewise.
18527         * modules/uninorm/composition: Likewise.
18528         * modules/uninorm/decomposing-form: Likewise.
18529         * modules/uninorm/decomposition: Likewise.
18530         * modules/uninorm/filter: Likewise.
18531         * modules/uninorm/nfc: Likewise.
18532         * modules/uninorm/nfd: Likewise.
18533         * modules/uninorm/nfkc: Likewise.
18534         * modules/uninorm/nfkd: Likewise.
18535         * modules/uninorm/u8-normalize: Likewise.
18536         * modules/uninorm/u8-normcmp: Likewise.
18537         * modules/uninorm/u8-normcoll: Likewise.
18538         * modules/uninorm/u8-normxfrm: Likewise.
18539         * modules/uninorm/u16-normalize: Likewise.
18540         * modules/uninorm/u16-normcmp: Likewise.
18541         * modules/uninorm/u16-normcoll: Likewise.
18542         * modules/uninorm/u16-normxfrm: Likewise.
18543         * modules/uninorm/u32-normalize: Likewise.
18544         * modules/uninorm/u32-normcmp: Likewise.
18545         * modules/uninorm/u32-normcoll: Likewise.
18546         * modules/uninorm/u32-normxfrm: Likewise.
18547         * modules/unistdio/u8-asnprintf: Likewise.
18548         * modules/unistdio/u8-asprintf: Likewise.
18549         * modules/unistdio/u8-snprintf: Likewise.
18550         * modules/unistdio/u8-sprintf: Likewise.
18551         * modules/unistdio/u8-u8-asnprintf: Likewise.
18552         * modules/unistdio/u8-u8-asprintf: Likewise.
18553         * modules/unistdio/u8-u8-snprintf: Likewise.
18554         * modules/unistdio/u8-u8-sprintf: Likewise.
18555         * modules/unistdio/u8-u8-vasnprintf: Likewise.
18556         * modules/unistdio/u8-u8-vasprintf: Likewise.
18557         * modules/unistdio/u8-u8-vsnprintf: Likewise.
18558         * modules/unistdio/u8-u8-vsprintf: Likewise.
18559         * modules/unistdio/u8-vasnprintf: Likewise.
18560         * modules/unistdio/u8-vasprintf: Likewise.
18561         * modules/unistdio/u8-vsnprintf: Likewise.
18562         * modules/unistdio/u8-vsprintf: Likewise.
18563         * modules/unistdio/u16-asnprintf: Likewise.
18564         * modules/unistdio/u16-asprintf: Likewise.
18565         * modules/unistdio/u16-snprintf: Likewise.
18566         * modules/unistdio/u16-sprintf: Likewise.
18567         * modules/unistdio/u16-u16-asnprintf: Likewise.
18568         * modules/unistdio/u16-u16-asprintf: Likewise.
18569         * modules/unistdio/u16-u16-snprintf: Likewise.
18570         * modules/unistdio/u16-u16-sprintf: Likewise.
18571         * modules/unistdio/u16-u16-vasnprintf: Likewise.
18572         * modules/unistdio/u16-u16-vasprintf: Likewise.
18573         * modules/unistdio/u16-u16-vsnprintf: Likewise.
18574         * modules/unistdio/u16-u16-vsprintf: Likewise.
18575         * modules/unistdio/u16-vasnprintf: Likewise.
18576         * modules/unistdio/u16-vasprintf: Likewise.
18577         * modules/unistdio/u16-vsnprintf: Likewise.
18578         * modules/unistdio/u16-vsprintf: Likewise.
18579         * modules/unistdio/u32-asnprintf: Likewise.
18580         * modules/unistdio/u32-asprintf: Likewise.
18581         * modules/unistdio/u32-snprintf: Likewise.
18582         * modules/unistdio/u32-sprintf: Likewise.
18583         * modules/unistdio/u32-u32-asnprintf: Likewise.
18584         * modules/unistdio/u32-u32-asprintf: Likewise.
18585         * modules/unistdio/u32-u32-snprintf: Likewise.
18586         * modules/unistdio/u32-u32-sprintf: Likewise.
18587         * modules/unistdio/u32-u32-vasnprintf: Likewise.
18588         * modules/unistdio/u32-u32-vasprintf: Likewise.
18589         * modules/unistdio/u32-u32-vsnprintf: Likewise.
18590         * modules/unistdio/u32-u32-vsprintf: Likewise.
18591         * modules/unistdio/u32-vasnprintf: Likewise.
18592         * modules/unistdio/u32-vasprintf: Likewise.
18593         * modules/unistdio/u32-vsnprintf: Likewise.
18594         * modules/unistdio/u32-vsprintf: Likewise.
18595         * modules/unistdio/ulc-asnprintf: Likewise.
18596         * modules/unistdio/ulc-asprintf: Likewise.
18597         * modules/unistdio/ulc-fprintf: Likewise.
18598         * modules/unistdio/ulc-snprintf: Likewise.
18599         * modules/unistdio/ulc-sprintf: Likewise.
18600         * modules/unistdio/ulc-vasnprintf: Likewise.
18601         * modules/unistdio/ulc-vasprintf: Likewise.
18602         * modules/unistdio/ulc-vfprintf: Likewise.
18603         * modules/unistdio/ulc-vsnprintf: Likewise.
18604         * modules/unistdio/ulc-vsprintf: Likewise.
18605         * modules/unistr/u8-check: Likewise.
18606         * modules/unistr/u8-chr: Likewise.
18607         * modules/unistr/u8-cmp: Likewise.
18608         * modules/unistr/u8-cmp2: Likewise.
18609         * modules/unistr/u8-cpy: Likewise.
18610         * modules/unistr/u8-cpy-alloc: Likewise.
18611         * modules/unistr/u8-endswith: Likewise.
18612         * modules/unistr/u8-mblen: Likewise.
18613         * modules/unistr/u8-mbsnlen: Likewise.
18614         * modules/unistr/u8-mbtouc: Likewise.
18615         * modules/unistr/u8-mbtouc-unsafe: Likewise.
18616         * modules/unistr/u8-mbtoucr: Likewise.
18617         * modules/unistr/u8-move: Likewise.
18618         * modules/unistr/u8-next: Likewise.
18619         * modules/unistr/u8-prev: Likewise.
18620         * modules/unistr/u8-set: Likewise.
18621         * modules/unistr/u8-startswith: Likewise.
18622         * modules/unistr/u8-stpcpy: Likewise.
18623         * modules/unistr/u8-stpncpy: Likewise.
18624         * modules/unistr/u8-strcat: Likewise.
18625         * modules/unistr/u8-strchr: Likewise.
18626         * modules/unistr/u8-strcmp: Likewise.
18627         * modules/unistr/u8-strcoll: Likewise.
18628         * modules/unistr/u8-strcpy: Likewise.
18629         * modules/unistr/u8-strcspn: Likewise.
18630         * modules/unistr/u8-strdup: Likewise.
18631         * modules/unistr/u8-strlen: Likewise.
18632         * modules/unistr/u8-strmblen: Likewise.
18633         * modules/unistr/u8-strmbtouc: Likewise.
18634         * modules/unistr/u8-strncat: Likewise.
18635         * modules/unistr/u8-strncmp: Likewise.
18636         * modules/unistr/u8-strncpy: Likewise.
18637         * modules/unistr/u8-strnlen: Likewise.
18638         * modules/unistr/u8-strpbrk: Likewise.
18639         * modules/unistr/u8-strrchr: Likewise.
18640         * modules/unistr/u8-strspn: Likewise.
18641         * modules/unistr/u8-strstr: Likewise.
18642         * modules/unistr/u8-strtok: Likewise.
18643         * modules/unistr/u8-to-u16: Likewise.
18644         * modules/unistr/u8-to-u32: Likewise.
18645         * modules/unistr/u8-uctomb: Likewise.
18646         * modules/unistr/u16-check: Likewise.
18647         * modules/unistr/u16-chr: Likewise.
18648         * modules/unistr/u16-cmp: Likewise.
18649         * modules/unistr/u16-cmp2: Likewise.
18650         * modules/unistr/u16-cpy: Likewise.
18651         * modules/unistr/u16-cpy-alloc: Likewise.
18652         * modules/unistr/u16-endswith: Likewise.
18653         * modules/unistr/u16-mblen: Likewise.
18654         * modules/unistr/u16-mbsnlen: Likewise.
18655         * modules/unistr/u16-mbtouc: Likewise.
18656         * modules/unistr/u16-mbtouc-unsafe: Likewise.
18657         * modules/unistr/u16-mbtoucr: Likewise.
18658         * modules/unistr/u16-move: Likewise.
18659         * modules/unistr/u16-next: Likewise.
18660         * modules/unistr/u16-prev: Likewise.
18661         * modules/unistr/u16-set: Likewise.
18662         * modules/unistr/u16-startswith: Likewise.
18663         * modules/unistr/u16-stpcpy: Likewise.
18664         * modules/unistr/u16-stpncpy: Likewise.
18665         * modules/unistr/u16-strcat: Likewise.
18666         * modules/unistr/u16-strchr: Likewise.
18667         * modules/unistr/u16-strcmp: Likewise.
18668         * modules/unistr/u16-strcoll: Likewise.
18669         * modules/unistr/u16-strcpy: Likewise.
18670         * modules/unistr/u16-strcspn: Likewise.
18671         * modules/unistr/u16-strdup: Likewise.
18672         * modules/unistr/u16-strlen: Likewise.
18673         * modules/unistr/u16-strmblen: Likewise.
18674         * modules/unistr/u16-strmbtouc: Likewise.
18675         * modules/unistr/u16-strncat: Likewise.
18676         * modules/unistr/u16-strncmp: Likewise.
18677         * modules/unistr/u16-strncpy: Likewise.
18678         * modules/unistr/u16-strnlen: Likewise.
18679         * modules/unistr/u16-strpbrk: Likewise.
18680         * modules/unistr/u16-strrchr: Likewise.
18681         * modules/unistr/u16-strspn: Likewise.
18682         * modules/unistr/u16-strstr: Likewise.
18683         * modules/unistr/u16-strtok: Likewise.
18684         * modules/unistr/u16-to-u32: Likewise.
18685         * modules/unistr/u16-to-u8: Likewise.
18686         * modules/unistr/u16-uctomb: Likewise.
18687         * modules/unistr/u32-check: Likewise.
18688         * modules/unistr/u32-chr: Likewise.
18689         * modules/unistr/u32-cmp: Likewise.
18690         * modules/unistr/u32-cmp2: Likewise.
18691         * modules/unistr/u32-cpy: Likewise.
18692         * modules/unistr/u32-cpy-alloc: Likewise.
18693         * modules/unistr/u32-endswith: Likewise.
18694         * modules/unistr/u32-mblen: Likewise.
18695         * modules/unistr/u32-mbsnlen: Likewise.
18696         * modules/unistr/u32-mbtouc: Likewise.
18697         * modules/unistr/u32-mbtouc-unsafe: Likewise.
18698         * modules/unistr/u32-mbtoucr: Likewise.
18699         * modules/unistr/u32-move: Likewise.
18700         * modules/unistr/u32-next: Likewise.
18701         * modules/unistr/u32-prev: Likewise.
18702         * modules/unistr/u32-set: Likewise.
18703         * modules/unistr/u32-startswith: Likewise.
18704         * modules/unistr/u32-stpcpy: Likewise.
18705         * modules/unistr/u32-stpncpy: Likewise.
18706         * modules/unistr/u32-strcat: Likewise.
18707         * modules/unistr/u32-strchr: Likewise.
18708         * modules/unistr/u32-strcmp: Likewise.
18709         * modules/unistr/u32-strcoll: Likewise.
18710         * modules/unistr/u32-strcpy: Likewise.
18711         * modules/unistr/u32-strcspn: Likewise.
18712         * modules/unistr/u32-strdup: Likewise.
18713         * modules/unistr/u32-strlen: Likewise.
18714         * modules/unistr/u32-strmblen: Likewise.
18715         * modules/unistr/u32-strmbtouc: Likewise.
18716         * modules/unistr/u32-strncat: Likewise.
18717         * modules/unistr/u32-strncmp: Likewise.
18718         * modules/unistr/u32-strncpy: Likewise.
18719         * modules/unistr/u32-strnlen: Likewise.
18720         * modules/unistr/u32-strpbrk: Likewise.
18721         * modules/unistr/u32-strrchr: Likewise.
18722         * modules/unistr/u32-strspn: Likewise.
18723         * modules/unistr/u32-strstr: Likewise.
18724         * modules/unistr/u32-strtok: Likewise.
18725         * modules/unistr/u32-to-u16: Likewise.
18726         * modules/unistr/u32-to-u8: Likewise.
18727         * modules/unistr/u32-uctomb: Likewise.
18728         * modules/uniwbrk/u8-wordbreaks: Likewise.
18729         * modules/uniwbrk/u16-wordbreaks: Likewise.
18730         * modules/uniwbrk/u32-wordbreaks: Likewise.
18731         * modules/uniwbrk/ulc-wordbreaks: Likewise.
18732         * modules/uniwbrk/wordbreak-property: Likewise.
18733         * modules/uniwidth/u8-strwidth: Likewise.
18734         * modules/uniwidth/u8-width: Likewise.
18735         * modules/uniwidth/u16-strwidth: Likewise.
18736         * modules/uniwidth/u16-width: Likewise.
18737         * modules/uniwidth/u32-strwidth: Likewise.
18738         * modules/uniwidth/u32-width: Likewise.
18739         * modules/uniwidth/width: Likewise.
18740         * modules/unicase/cased-tests (Makefile.am): Link all test programs
18741         with $(LIBUNISTRING).
18742         * modules/unicase/ignorable-tests: Likewise.
18743         * modules/unicase/locale-language-tests: Likewise.
18744         * modules/unicase/tolower-tests: Likewise.
18745         * modules/unicase/totitle-tests: Likewise.
18746         * modules/unicase/toupper-tests: Likewise.
18747         * modules/unicase/u8-casecmp-tests: Likewise.
18748         * modules/unicase/u8-casecoll-tests: Likewise.
18749         * modules/unicase/u8-casefold-tests: Likewise.
18750         * modules/unicase/u8-is-cased-tests: Likewise.
18751         * modules/unicase/u8-is-casefolded-tests: Likewise.
18752         * modules/unicase/u8-is-lowercase-tests: Likewise.
18753         * modules/unicase/u8-is-titlecase-tests: Likewise.
18754         * modules/unicase/u8-is-uppercase-tests: Likewise.
18755         * modules/unicase/u8-tolower-tests: Likewise.
18756         * modules/unicase/u8-totitle-tests: Likewise.
18757         * modules/unicase/u8-toupper-tests: Likewise.
18758         * modules/unicase/u16-casecmp-tests: Likewise.
18759         * modules/unicase/u16-casecoll-tests: Likewise.
18760         * modules/unicase/u16-casefold-tests: Likewise.
18761         * modules/unicase/u16-is-cased-tests: Likewise.
18762         * modules/unicase/u16-is-casefolded-tests: Likewise.
18763         * modules/unicase/u16-is-lowercase-tests: Likewise.
18764         * modules/unicase/u16-is-titlecase-tests: Likewise.
18765         * modules/unicase/u16-is-uppercase-tests: Likewise.
18766         * modules/unicase/u16-tolower-tests: Likewise.
18767         * modules/unicase/u16-totitle-tests: Likewise.
18768         * modules/unicase/u16-toupper-tests: Likewise.
18769         * modules/unicase/u32-casecmp-tests: Likewise.
18770         * modules/unicase/u32-casecoll-tests: Likewise.
18771         * modules/unicase/u32-casefold-tests: Likewise.
18772         * modules/unicase/u32-is-cased-tests: Likewise.
18773         * modules/unicase/u32-is-casefolded-tests: Likewise.
18774         * modules/unicase/u32-is-lowercase-tests: Likewise.
18775         * modules/unicase/u32-is-titlecase-tests: Likewise.
18776         * modules/unicase/u32-is-uppercase-tests: Likewise.
18777         * modules/unicase/u32-tolower-tests: Likewise.
18778         * modules/unicase/u32-totitle-tests: Likewise.
18779         * modules/unicase/u32-toupper-tests: Likewise.
18780         * modules/unicase/ulc-casecmp-tests: Likewise.
18781         * modules/unicase/ulc-casecoll-tests: Likewise.
18782         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
18783         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
18784         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
18785         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
18786         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
18787         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
18788         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
18789         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
18790         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
18791         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
18792         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
18793         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
18794         * modules/unictype/bidicategory-byname-tests: Likewise.
18795         * modules/unictype/bidicategory-name-tests: Likewise.
18796         * modules/unictype/bidicategory-of-tests: Likewise.
18797         * modules/unictype/bidicategory-test-tests: Likewise.
18798         * modules/unictype/block-list-tests: Likewise.
18799         * modules/unictype/block-of-tests: Likewise.
18800         * modules/unictype/block-test-tests: Likewise.
18801         * modules/unictype/category-C-tests: Likewise.
18802         * modules/unictype/category-Cc-tests: Likewise.
18803         * modules/unictype/category-Cf-tests: Likewise.
18804         * modules/unictype/category-Cn-tests: Likewise.
18805         * modules/unictype/category-Co-tests: Likewise.
18806         * modules/unictype/category-Cs-tests: Likewise.
18807         * modules/unictype/category-L-tests: Likewise.
18808         * modules/unictype/category-Ll-tests: Likewise.
18809         * modules/unictype/category-Lm-tests: Likewise.
18810         * modules/unictype/category-Lo-tests: Likewise.
18811         * modules/unictype/category-Lt-tests: Likewise.
18812         * modules/unictype/category-Lu-tests: Likewise.
18813         * modules/unictype/category-M-tests: Likewise.
18814         * modules/unictype/category-Mc-tests: Likewise.
18815         * modules/unictype/category-Me-tests: Likewise.
18816         * modules/unictype/category-Mn-tests: Likewise.
18817         * modules/unictype/category-N-tests: Likewise.
18818         * modules/unictype/category-Nd-tests: Likewise.
18819         * modules/unictype/category-Nl-tests: Likewise.
18820         * modules/unictype/category-No-tests: Likewise.
18821         * modules/unictype/category-P-tests: Likewise.
18822         * modules/unictype/category-Pc-tests: Likewise.
18823         * modules/unictype/category-Pd-tests: Likewise.
18824         * modules/unictype/category-Pe-tests: Likewise.
18825         * modules/unictype/category-Pf-tests: Likewise.
18826         * modules/unictype/category-Pi-tests: Likewise.
18827         * modules/unictype/category-Po-tests: Likewise.
18828         * modules/unictype/category-Ps-tests: Likewise.
18829         * modules/unictype/category-S-tests: Likewise.
18830         * modules/unictype/category-Sc-tests: Likewise.
18831         * modules/unictype/category-Sk-tests: Likewise.
18832         * modules/unictype/category-Sm-tests: Likewise.
18833         * modules/unictype/category-So-tests: Likewise.
18834         * modules/unictype/category-Z-tests: Likewise.
18835         * modules/unictype/category-Zl-tests: Likewise.
18836         * modules/unictype/category-Zp-tests: Likewise.
18837         * modules/unictype/category-Zs-tests: Likewise.
18838         * modules/unictype/category-and-not-tests: Likewise.
18839         * modules/unictype/category-and-tests: Likewise.
18840         * modules/unictype/category-byname-tests: Likewise.
18841         * modules/unictype/category-name-tests: Likewise.
18842         * modules/unictype/category-none-tests: Likewise.
18843         * modules/unictype/category-of-tests: Likewise.
18844         * modules/unictype/category-or-tests: Likewise.
18845         * modules/unictype/category-test-withtable-tests: Likewise.
18846         * modules/unictype/combining-class-tests: Likewise.
18847         * modules/unictype/ctype-alnum-tests: Likewise.
18848         * modules/unictype/ctype-alpha-tests: Likewise.
18849         * modules/unictype/ctype-blank-tests: Likewise.
18850         * modules/unictype/ctype-cntrl-tests: Likewise.
18851         * modules/unictype/ctype-digit-tests: Likewise.
18852         * modules/unictype/ctype-graph-tests: Likewise.
18853         * modules/unictype/ctype-lower-tests: Likewise.
18854         * modules/unictype/ctype-print-tests: Likewise.
18855         * modules/unictype/ctype-punct-tests: Likewise.
18856         * modules/unictype/ctype-space-tests: Likewise.
18857         * modules/unictype/ctype-upper-tests: Likewise.
18858         * modules/unictype/ctype-xdigit-tests: Likewise.
18859         * modules/unictype/decimal-digit-tests: Likewise.
18860         * modules/unictype/digit-tests: Likewise.
18861         * modules/unictype/mirror-tests: Likewise.
18862         * modules/unictype/numeric-tests: Likewise.
18863         * modules/unictype/property-alphabetic-tests: Likewise.
18864         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
18865         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
18866         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
18867         * modules/unictype/property-bidi-block-separator-tests: Likewise.
18868         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
18869         * modules/unictype/property-bidi-common-separator-tests: Likewise.
18870         * modules/unictype/property-bidi-control-tests: Likewise.
18871         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
18872         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
18873         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
18874         * modules/unictype/property-bidi-european-digit-tests: Likewise.
18875         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
18876         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
18877         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
18878         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
18879         * modules/unictype/property-bidi-pdf-tests: Likewise.
18880         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
18881         * modules/unictype/property-bidi-whitespace-tests: Likewise.
18882         * modules/unictype/property-byname-tests: Likewise.
18883         * modules/unictype/property-combining-tests: Likewise.
18884         * modules/unictype/property-composite-tests: Likewise.
18885         * modules/unictype/property-currency-symbol-tests: Likewise.
18886         * modules/unictype/property-dash-tests: Likewise.
18887         * modules/unictype/property-decimal-digit-tests: Likewise.
18888         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
18889         * modules/unictype/property-deprecated-tests: Likewise.
18890         * modules/unictype/property-diacritic-tests: Likewise.
18891         * modules/unictype/property-extender-tests: Likewise.
18892         * modules/unictype/property-format-control-tests: Likewise.
18893         * modules/unictype/property-grapheme-base-tests: Likewise.
18894         * modules/unictype/property-grapheme-extend-tests: Likewise.
18895         * modules/unictype/property-grapheme-link-tests: Likewise.
18896         * modules/unictype/property-hex-digit-tests: Likewise.
18897         * modules/unictype/property-hyphen-tests: Likewise.
18898         * modules/unictype/property-id-continue-tests: Likewise.
18899         * modules/unictype/property-id-start-tests: Likewise.
18900         * modules/unictype/property-ideographic-tests: Likewise.
18901         * modules/unictype/property-ids-binary-operator-tests: Likewise.
18902         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
18903         * modules/unictype/property-ignorable-control-tests: Likewise.
18904         * modules/unictype/property-iso-control-tests: Likewise.
18905         * modules/unictype/property-join-control-tests: Likewise.
18906         * modules/unictype/property-left-of-pair-tests: Likewise.
18907         * modules/unictype/property-line-separator-tests: Likewise.
18908         * modules/unictype/property-logical-order-exception-tests: Likewise.
18909         * modules/unictype/property-lowercase-tests: Likewise.
18910         * modules/unictype/property-math-tests: Likewise.
18911         * modules/unictype/property-non-break-tests: Likewise.
18912         * modules/unictype/property-not-a-character-tests: Likewise.
18913         * modules/unictype/property-numeric-tests: Likewise.
18914         * modules/unictype/property-other-alphabetic-tests: Likewise.
18915         * modules/unictype/property-other-default-ignorable-code-point-tests:
18916         Likewise.
18917         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
18918         * modules/unictype/property-other-id-continue-tests: Likewise.
18919         * modules/unictype/property-other-id-start-tests: Likewise.
18920         * modules/unictype/property-other-lowercase-tests: Likewise.
18921         * modules/unictype/property-other-math-tests: Likewise.
18922         * modules/unictype/property-other-uppercase-tests: Likewise.
18923         * modules/unictype/property-paired-punctuation-tests: Likewise.
18924         * modules/unictype/property-paragraph-separator-tests: Likewise.
18925         * modules/unictype/property-pattern-syntax-tests: Likewise.
18926         * modules/unictype/property-pattern-white-space-tests: Likewise.
18927         * modules/unictype/property-private-use-tests: Likewise.
18928         * modules/unictype/property-punctuation-tests: Likewise.
18929         * modules/unictype/property-quotation-mark-tests: Likewise.
18930         * modules/unictype/property-radical-tests: Likewise.
18931         * modules/unictype/property-sentence-terminal-tests: Likewise.
18932         * modules/unictype/property-soft-dotted-tests: Likewise.
18933         * modules/unictype/property-space-tests: Likewise.
18934         * modules/unictype/property-terminal-punctuation-tests: Likewise.
18935         * modules/unictype/property-test-tests: Likewise.
18936         * modules/unictype/property-titlecase-tests: Likewise.
18937         * modules/unictype/property-unassigned-code-value-tests: Likewise.
18938         * modules/unictype/property-unified-ideograph-tests: Likewise.
18939         * modules/unictype/property-uppercase-tests: Likewise.
18940         * modules/unictype/property-variation-selector-tests: Likewise.
18941         * modules/unictype/property-white-space-tests: Likewise.
18942         * modules/unictype/property-xid-continue-tests: Likewise.
18943         * modules/unictype/property-xid-start-tests: Likewise.
18944         * modules/unictype/property-zero-width-tests: Likewise.
18945         * modules/unictype/scripts-tests: Likewise.
18946         * modules/unictype/syntax-c-ident-tests: Likewise.
18947         * modules/unictype/syntax-c-whitespace-tests: Likewise.
18948         * modules/unictype/syntax-java-ident-tests: Likewise.
18949         * modules/unictype/syntax-java-whitespace-tests: Likewise.
18950         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
18951         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
18952         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
18953         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
18954         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
18955         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
18956         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
18957         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
18958         * modules/uniname/uniname-tests: Likewise.
18959         * modules/uninorm/canonical-decomposition-tests: Likewise.
18960         * modules/uninorm/compat-decomposition-tests: Likewise.
18961         * modules/uninorm/composition-tests: Likewise.
18962         * modules/uninorm/decomposing-form-tests: Likewise.
18963         * modules/uninorm/decomposition-tests: Likewise.
18964         * modules/uninorm/filter-tests: Likewise.
18965         * modules/uninorm/nfc-tests: Likewise.
18966         * modules/uninorm/nfd-tests: Likewise.
18967         * modules/uninorm/nfkc-tests: Likewise.
18968         * modules/uninorm/nfkd-tests: Likewise.
18969         * modules/uninorm/u8-normcmp-tests: Likewise.
18970         * modules/uninorm/u8-normcoll-tests: Likewise.
18971         * modules/uninorm/u16-normcmp-tests: Likewise.
18972         * modules/uninorm/u16-normcoll-tests: Likewise.
18973         * modules/uninorm/u32-normcmp-tests: Likewise.
18974         * modules/uninorm/u32-normcoll-tests: Likewise.
18975         * modules/unistdio/u8-asnprintf-tests: Likewise.
18976         * modules/unistdio/u8-vasnprintf-tests: Likewise.
18977         * modules/unistdio/u8-vasprintf-tests: Likewise.
18978         * modules/unistdio/u8-vsnprintf-tests: Likewise.
18979         * modules/unistdio/u8-vsprintf-tests: Likewise.
18980         * modules/unistdio/u16-asnprintf-tests: Likewise.
18981         * modules/unistdio/u16-vasnprintf-tests: Likewise.
18982         * modules/unistdio/u16-vasprintf-tests: Likewise.
18983         * modules/unistdio/u16-vsnprintf-tests: Likewise.
18984         * modules/unistdio/u16-vsprintf-tests: Likewise.
18985         * modules/unistdio/u32-asnprintf-tests: Likewise.
18986         * modules/unistdio/u32-vasnprintf-tests: Likewise.
18987         * modules/unistdio/u32-vasprintf-tests: Likewise.
18988         * modules/unistdio/u32-vsnprintf-tests: Likewise.
18989         * modules/unistdio/u32-vsprintf-tests: Likewise.
18990         * modules/unistdio/ulc-asnprintf-tests: Likewise.
18991         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
18992         * modules/unistdio/ulc-vasprintf-tests: Likewise.
18993         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
18994         * modules/unistdio/ulc-vsprintf-tests: Likewise.
18995         * modules/unistr/u8-check-tests: Likewise.
18996         * modules/unistr/u8-chr-tests: Likewise.
18997         * modules/unistr/u8-cmp-tests: Likewise.
18998         * modules/unistr/u8-cmp2-tests: Likewise.
18999         * modules/unistr/u8-cpy-alloc-tests: Likewise.
19000         * modules/unistr/u8-cpy-tests: Likewise.
19001         * modules/unistr/u8-mblen-tests: Likewise.
19002         * modules/unistr/u8-mbsnlen-tests: Likewise.
19003         * modules/unistr/u8-mbtouc-tests: Likewise.
19004         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
19005         * modules/unistr/u8-mbtoucr-tests: Likewise.
19006         * modules/unistr/u8-move-tests: Likewise.
19007         * modules/unistr/u8-next-tests: Likewise.
19008         * modules/unistr/u8-prev-tests: Likewise.
19009         * modules/unistr/u8-set-tests: Likewise.
19010         * modules/unistr/u8-stpcpy-tests: Likewise.
19011         * modules/unistr/u8-stpncpy-tests: Likewise.
19012         * modules/unistr/u8-strcat-tests: Likewise.
19013         * modules/unistr/u8-strcmp-tests: Likewise.
19014         * modules/unistr/u8-strcoll-tests: Likewise.
19015         * modules/unistr/u8-strcpy-tests: Likewise.
19016         * modules/unistr/u8-strdup-tests: Likewise.
19017         * modules/unistr/u8-strlen-tests: Likewise.
19018         * modules/unistr/u8-strmblen-tests: Likewise.
19019         * modules/unistr/u8-strmbtouc-tests: Likewise.
19020         * modules/unistr/u8-strncat-tests: Likewise.
19021         * modules/unistr/u8-strncmp-tests: Likewise.
19022         * modules/unistr/u8-strncpy-tests: Likewise.
19023         * modules/unistr/u8-strnlen-tests: Likewise.
19024         * modules/unistr/u8-to-u16-tests: Likewise.
19025         * modules/unistr/u8-to-u32-tests: Likewise.
19026         * modules/unistr/u8-uctomb-tests: Likewise.
19027         * modules/unistr/u16-check-tests: Likewise.
19028         * modules/unistr/u16-chr-tests: Likewise.
19029         * modules/unistr/u16-cmp-tests: Likewise.
19030         * modules/unistr/u16-cmp2-tests: Likewise.
19031         * modules/unistr/u16-cpy-alloc-tests: Likewise.
19032         * modules/unistr/u16-cpy-tests: Likewise.
19033         * modules/unistr/u16-mblen-tests: Likewise.
19034         * modules/unistr/u16-mbsnlen-tests: Likewise.
19035         * modules/unistr/u16-mbtouc-tests: Likewise.
19036         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
19037         * modules/unistr/u16-mbtoucr-tests: Likewise.
19038         * modules/unistr/u16-move-tests: Likewise.
19039         * modules/unistr/u16-next-tests: Likewise.
19040         * modules/unistr/u16-prev-tests: Likewise.
19041         * modules/unistr/u16-set-tests: Likewise.
19042         * modules/unistr/u16-stpcpy-tests: Likewise.
19043         * modules/unistr/u16-stpncpy-tests: Likewise.
19044         * modules/unistr/u16-strcat-tests: Likewise.
19045         * modules/unistr/u16-strcmp-tests: Likewise.
19046         * modules/unistr/u16-strcoll-tests: Likewise.
19047         * modules/unistr/u16-strcpy-tests: Likewise.
19048         * modules/unistr/u16-strdup-tests: Likewise.
19049         * modules/unistr/u16-strlen-tests: Likewise.
19050         * modules/unistr/u16-strmblen-tests: Likewise.
19051         * modules/unistr/u16-strmbtouc-tests: Likewise.
19052         * modules/unistr/u16-strncat-tests: Likewise.
19053         * modules/unistr/u16-strncmp-tests: Likewise.
19054         * modules/unistr/u16-strncpy-tests: Likewise.
19055         * modules/unistr/u16-strnlen-tests: Likewise.
19056         * modules/unistr/u16-to-u32-tests: Likewise.
19057         * modules/unistr/u16-to-u8-tests: Likewise.
19058         * modules/unistr/u16-uctomb-tests: Likewise.
19059         * modules/unistr/u32-check-tests: Likewise.
19060         * modules/unistr/u32-chr-tests: Likewise.
19061         * modules/unistr/u32-cmp-tests: Likewise.
19062         * modules/unistr/u32-cmp2-tests: Likewise.
19063         * modules/unistr/u32-cpy-alloc-tests: Likewise.
19064         * modules/unistr/u32-cpy-tests: Likewise.
19065         * modules/unistr/u32-mblen-tests: Likewise.
19066         * modules/unistr/u32-mbsnlen-tests: Likewise.
19067         * modules/unistr/u32-mbtouc-tests: Likewise.
19068         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
19069         * modules/unistr/u32-mbtoucr-tests: Likewise.
19070         * modules/unistr/u32-move-tests: Likewise.
19071         * modules/unistr/u32-next-tests: Likewise.
19072         * modules/unistr/u32-prev-tests: Likewise.
19073         * modules/unistr/u32-set-tests: Likewise.
19074         * modules/unistr/u32-stpcpy-tests: Likewise.
19075         * modules/unistr/u32-stpncpy-tests: Likewise.
19076         * modules/unistr/u32-strcat-tests: Likewise.
19077         * modules/unistr/u32-strcmp-tests: Likewise.
19078         * modules/unistr/u32-strcoll-tests: Likewise.
19079         * modules/unistr/u32-strcpy-tests: Likewise.
19080         * modules/unistr/u32-strdup-tests: Likewise.
19081         * modules/unistr/u32-strlen-tests: Likewise.
19082         * modules/unistr/u32-strmblen-tests: Likewise.
19083         * modules/unistr/u32-strmbtouc-tests: Likewise.
19084         * modules/unistr/u32-strncat-tests: Likewise.
19085         * modules/unistr/u32-strncmp-tests: Likewise.
19086         * modules/unistr/u32-strncpy-tests: Likewise.
19087         * modules/unistr/u32-strnlen-tests: Likewise.
19088         * modules/unistr/u32-to-u16-tests: Likewise.
19089         * modules/unistr/u32-to-u8-tests: Likewise.
19090         * modules/unistr/u32-uctomb-tests: Likewise.
19091         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
19092         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
19093         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
19094         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
19095         * modules/uniwidth/u8-strwidth-tests: Likewise.
19096         * modules/uniwidth/u8-width-tests: Likewise.
19097         * modules/uniwidth/u16-strwidth-tests: Likewise.
19098         * modules/uniwidth/u16-width-tests: Likewise.
19099         * modules/uniwidth/u32-strwidth-tests: Likewise.
19100         * modules/uniwidth/u32-width-tests: Likewise.
19101         * modules/uniwidth/width-tests: Likewise.
19102
19103 2010-05-18  Richard Jones  <rjones@redhat.com>
19104
19105         doc: users.txt: list hivex
19106         * users.txt: Add hivex.
19107
19108 2010-05-18  Richard Jones  <rjones@redhat.com>
19109
19110         doc: users.txt: list febootstrap
19111         * users.txt: Add febootstrap.
19112
19113 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
19114
19115         bootstrap: fix an error when gnulib is not used as a git submodule
19116         * build-aux/bootstrap (gnulib_path): If its length is zero then
19117         assign "gnulib" to it.
19118         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
19119
19120 2010-05-16  Bruno Haible  <bruno@clisp.org>
19121
19122         Avoid autoconf warnings about AM_ICONV.
19123         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
19124         2.64.
19125
19126 2010-05-16  Bruno Haible  <bruno@clisp.org>
19127
19128         absolute-header: Make the macro usable in more situations.
19129         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
19130         from gl_ABSOLUTE_HEADER.
19131         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
19132
19133 2010-05-16  James Youngman  <jay@gnu.org>
19134
19135         doc: update users.txt
19136         * users.txt: Add CSSC.
19137
19138 2010-05-16  Jim Meyering  <meyering@redhat.com>
19139
19140         init.sh: fix an error in the previous change; add more comments
19141         * tests/init.sh: Compare exit code in loop against 9, not 2.
19142         Patch by Bruno Haible.
19143         Make the two tests more similar by adding an empty "then" clause.
19144         Add comments.
19145
19146         init.sh: avoid unnecessary shell re-exec
19147         * tests/init.sh: Improve the re-exec-required check to first test the
19148         current shell.  If it passes the test, do not search for a shell that
19149         does pass, and do not re-exec.  This test is particularly contorted to
19150         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
19151         of $(...) evokes a syntax error and causes immediate shell exit with
19152         status 2.  Bruno Haible reported that the re-exec made it impossible
19153         to single-step through any init.sh-using script.
19154
19155 2010-05-16  Bruno Haible  <bruno@clisp.org>
19156
19157         Fix collision between gnulib's and libintl's printf replacements.
19158         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
19159         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
19160         (printf): When using GNU C, map the __printf__ function to rpl_printf
19161         via __asm__. When not using GNU C, define rpl_printf instead of
19162         __printf__.
19163         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
19164         commit.
19165         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
19166         commit.
19167         * m4/asm-underscore.m4: New file.
19168         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
19169         * modules/stdio (Files): Add m4/asm-underscore.m4.
19170         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
19171         Reported by Ben Pfaff.
19172
19173 2010-05-16  Bruno Haible  <bruno@clisp.org>
19174
19175         verify: Avoid skipping the test on openSUSE 11.0.
19176         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
19177
19178 2010-05-13  Bruno Haible  <bruno@clisp.org>
19179
19180         Avoid useless warnings from G++.
19181         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
19182         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
19183         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
19184
19185 2010-05-11  Jim Meyering  <meyering@redhat.com>
19186
19187         maint.mk: tweak preceding change
19188         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
19189         regexps tighter by anchoring at EOL, and make the new group "shy"
19190         for slightly decreased overhead.
19191
19192 2010-05-11  Eric Blake  <eblake@redhat.com>
19193
19194         maint.mk: gnulib doesn't guarantee NSIG
19195         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
19196
19197 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
19198
19199         test-pwrite.c: Remove unused variable declaration.
19200         * tests/test-pwrite.c (main): Remove read_buf declaration.
19201
19202         Remove useless test-pwrite.sh file.
19203         * tests/test-pwrite.sh: Delete file.
19204         * modules/pwrite-tests: Remove references.
19205         Reported by Bruno Haible.
19206
19207 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
19208
19209         init.sh: fix a typo
19210         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
19211
19212 2010-05-10  Jim Meyering  <meyering@redhat.com>
19213
19214         maint.mk: avoid using a temporary file in the always-defined-macros check
19215         * top/maint.mk (.re-defmac): Remove rule.
19216         (gl_trap_): Remove definition.
19217         (sc_prohibit_always-defined_macros): Rewrite not to create and
19218         depend on a temporary file.  Instead, depend on GNU grep's ability
19219         to read a list of regular expressions from stdin when given "-f -".
19220
19221 2010-05-09  Bruno Haible  <bruno@clisp.org>
19222
19223         Update to GNU gettext 0.18, part 1.
19224         * m4/gettext.m4: Update to GNU gettext 0.18.
19225         * m4/intl.m4: Likewise.
19226         * m4/po.m4: Likewise.
19227         * modules/gettext (Files): Add m4/fcntl-o.m4.
19228         (configure.ac): Require gettext infrastructure from version 0.18.
19229
19230 2010-05-09  Jim Meyering  <meyering@redhat.com>
19231
19232         init.sh: enable MALLOC_PERTURB_
19233         * tests/init.sh: Enable glibc's malloc-perturbing option.
19234
19235         maint.mk: improve sc_cross_check_PATH_usage_in_tests
19236         With my recent change in init.sh from the two-line form:
19237             -#   : ${srcdir=.}
19238             -#   . "$srcdir/init.sh"; path_prepend_ .
19239             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
19240         I noticed that using the one-line form would cause this test
19241         to fail with a false-positive, or to stop working altogether,
19242         depending on whether help-version changed or all the tests did.
19243         * top/maint.mk (_hv_regex): Remove this definition.
19244         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
19245         (_hv_regex_strong): Use a stronger regex to check for conformance.
19246         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
19247         Give a separate diagnostic for lack of conforming use.
19248
19249         maint.mk: prohibit definition of symbols defined by gnulib
19250         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
19251         definition of symbols defined by gnulib.
19252
19253 2010-05-09  Bruno Haible  <bruno@clisp.org>
19254
19255         acl: Avoid test failure on Cygwin-hosted mingw.
19256         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
19257
19258 2010-05-09  Bruno Haible  <bruno@clisp.org>
19259
19260         error: Use system's fcntl function.
19261         * lib/error.c (fcntl): Undefine.
19262
19263 2010-05-09  Jim Meyering  <meyering@redhat.com>
19264
19265         verify: adjust formatting to be more consistent
19266         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
19267         argument-list '('s, and after one comma.
19268
19269 2010-05-09  Bruno Haible  <bruno@clisp.org>
19270
19271         error: More reliable output on mingw.
19272         * lib/error.c: Include <windows.h>.
19273         (is_open): New function.
19274         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
19275         defined.
19276
19277 2010-05-09  Bruno Haible  <bruno@clisp.org>
19278
19279         vasnprintf: Fix syntax errors in libintl build on mingw.
19280         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
19281         pad_ourselves and prec_ourselves after use.
19282
19283 2010-05-08  Bruno Haible  <bruno@clisp.org>
19284
19285         * lib/config.charset: Update comments for Cygwin 1.7.
19286         * lib/localcharset.c: Likewise.
19287
19288 2010-05-07  Jim Meyering  <meyering@redhat.com>
19289
19290         init.sh: improve comments
19291         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
19292         . "${srcdir=.}/init.sh"; path_prepend_ .
19293         Add a note about path_prepend_ and the alternative of using
19294         TESTS_ENVIRONMENT.
19295
19296 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
19297
19298         exclude: Unescape hashed patterns in wildcard mode.
19299         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
19300         to the hash list.
19301         * tests/test-exclude8.sh: New test case.
19302         * modules/exclude-tests: Add new test.
19303
19304 2010-05-05  Eric Blake  <eblake@redhat.com>
19305
19306         verify: automate tests
19307         * modules/verify-tests: New module.
19308         * tests/test-verify.sh: New file.
19309         * tests/test-verify.c: Guard each negative test with a unique id.
19310         Also avoid warning about unused left hand of comma expressions.
19311
19312 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
19313
19314         Further improvements to verify.h, suggested by Eric Blake.
19315         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
19316         the GL_* versions, to avoid collision with OpenGL.
19317         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
19318         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
19319         than testing merely whether it's defined.
19320
19321         Modify verify.h to pacify gcc -Wredundant_decls.
19322         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
19323         These use the prefix "GL_" since they're likely to be useful elsewhere.
19324         We may need to break them out into a different .h file.
19325         (__COUNTER__): Define to 0 if the compiler doesn't support it.
19326         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
19327         of verify_function__.
19328
19329 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
19330
19331         Tests for module pwrite.
19332         * modules/pwrite-tests: New file.
19333         * tests/test-pwrite.sh: New file.
19334         * tests/test-pwrite.c: New file.
19335
19336         New module pwrite.
19337         * lib/unistd.in.h (pwrite): New declaration.
19338         * lib/pwrite.c: New file, from glibc with modifications.
19339         * m4/pwrite.m4: New file.
19340         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
19341         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
19342         REPLACE_PWRITE.
19343         * modules/pwrite: New file.
19344         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
19345         REPLACE_PWRITE.
19346         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
19347         * doc/posix-functions/pwrite.texi: Mention the new module.
19348
19349 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
19350
19351         pread: Update documentation.
19352         * doc/posix-functions/pread.texi: Mention the 'pread' module.
19353
19354 2010-05-04  Eric Blake  <eblake@redhat.com>
19355
19356         docs: update cygwin progress
19357         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
19358         this bug.
19359         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
19360         Added in cygwin 1.7.2.
19361         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
19362         Likewise.
19363         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
19364         Likewise.
19365         * doc/glibc-functions/dup3.texi (dup3): Likewise.
19366         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
19367         * doc/glibc-functions/accept4.texi (accept4): Likewise.
19368         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
19369         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
19370         Mention nproc module.
19371         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
19372         bug in cygwin 1.7.5 addition.
19373         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
19374         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
19375         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
19376         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
19377         1.7.5.
19378         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
19379         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
19380         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
19381         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
19382         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
19383         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
19384         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
19385         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
19386         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
19387         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
19388         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
19389         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
19390         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
19391         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
19392         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
19393         Likewise.
19394         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
19395         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
19396         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
19397         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
19398         Likewise.
19399         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
19400         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
19401         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
19402         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
19403         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
19404         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
19405         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
19406         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
19407         Likewise.
19408         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
19409         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
19410         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
19411         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
19412         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
19413         Likewise.
19414         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
19415         Likewise.
19416         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
19417         Likewise.
19418         * doc/glibc-functions/xdrrec_endofrecord.texi
19419         (xdrrec_endofrecord): Likewise.
19420         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
19421         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
19422         Likewise.
19423         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
19424         Likewise.
19425
19426 2010-05-04  Jim Meyering  <meyering@redhat.com>
19427
19428         gendocs.sh: make its "-s FILE" option more useful
19429         * build-aux/gendocs.sh: When honoring the -s FILE option, update
19430         $PACKAGE to reflect the probably-different basename of "FILE".
19431
19432 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
19433
19434         bootstrap: don't ignore download_po_files failure
19435         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
19436         failure.
19437
19438 2010-05-03  Jim Meyering  <meyering@redhat.com>
19439
19440         maint.mk: allow to pass options to gendocs.sh
19441         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
19442         (gendocs_options_): New overridable variable.
19443
19444         gnu-web-doc-update: don't ignore configure or build failure
19445         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
19446
19447         announce-gen: backslash-escape '@'s in --help output
19448         * build-aux/announce-gen: Fix syntax errors.
19449
19450         maint.mk, announce-gen: allow project-specific announcement mail headers
19451         * top/maint.mk (translation_project_): Define default.
19452         (announcement_Cc_, announcement_mail_headers_): Likewise.
19453         (announcement): Invoke announce-gen with new --mail-headers option.
19454         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
19455
19456         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
19457         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
19458         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
19459         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
19460         line in the "err2" output file when running "make check" in verbose
19461         mode (i.e., with set -x enabled).
19462
19463 2010-05-03  Bruno Haible  <bruno@clisp.org>
19464
19465         wctob: Fix for weird platforms.
19466         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
19467         argument value.
19468
19469 2010-05-03  Jim Meyering  <meyering@redhat.com>
19470
19471         maint.mk: prohibit unwarranted use of <strings.h>
19472         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
19473         strings.h in a file that does not also use strcasecmp, strncasecmp,
19474         ffs or ffsll.
19475
19476         maint.mk: remove obsolete comments
19477         * top/maint.mk: Remove stale, commented-out rules.
19478
19479 2010-05-02  Bruno Haible  <bruno@clisp.org>
19480
19481         wcwidth: Declare also when it's aliased.
19482         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
19483         macro.
19484
19485 2010-05-02  Bruno Haible  <bruno@clisp.org>
19486
19487         Fix regression from 2010-04-25.
19488         * gnulib-tool (func_modules_transitive_closure): Check the status of
19489         all modules, not only of the tests that are of the form foo-tests where
19490         foo is a module.
19491
19492 2010-05-02  Bruno Haible  <bruno@clisp.org>
19493
19494         wctob: Work around nasty Cygwin 1.7.2 bug.
19495         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
19496         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
19497
19498 2010-05-01  Bruno Haible  <bruno@clisp.org>
19499
19500         fpurge: Sharper test.
19501         * tests/test-fpurge.c (main): Add one more ftell check.
19502         * modules/fpurge-tests (Depends-on): Add ftell.
19503         Suggested by Eric Blake.
19504
19505 2010-05-01  Bruno Haible  <bruno@clisp.org>
19506
19507         ftello: Another test.
19508         * tests/test-ftello3.c: New file.
19509         * modules/ftello-tests (Files): Add it.
19510         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
19511         MOSTLYCLEANFILES.
19512
19513         ftell: Another test.
19514         * tests/test-ftell3.c: New file.
19515         * modules/ftell-tests (Files): Add it.
19516         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
19517         MOSTLYCLEANFILES.
19518
19519 2010-05-01  Bruno Haible  <bruno@clisp.org>
19520
19521         ftell, ftello: Work around Solaris bug.
19522         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
19523         * lib/ftello.c: Include stdio-impl.h.
19524         (ftello): On Solaris, when _IOWRT is set, compute the result without
19525         looking at _IOREAD.
19526         * modules/ftello (Files): Add lib/stdio-impl.h.
19527         * doc/posix-functions/ftell.texi: Mention Solaris bug.
19528         * doc/posix-functions/ftello.texi: Likewise.
19529         Reported by Eric Blake.
19530
19531 2010-05-01  Bruno Haible  <bruno@clisp.org>
19532
19533         freading: Adapt to special meaning of _IOREAD flag on Solaris.
19534         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
19535         the _IOWRT flag is also set.
19536
19537 2010-05-01  Bruno Haible  <bruno@clisp.org>
19538
19539         Fix doc about a HP-UX stdio bug.
19540         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
19541         * doc/posix-functions/ftello.texi: Likewise.
19542
19543 2010-05-01  Bruno Haible  <bruno@clisp.org>
19544
19545         lseek test: Fix failure on Solaris.
19546         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
19547         output.
19548
19549 2010-04-30  Jim Meyering  <meyering@redhat.com>
19550
19551         bootstrap: don't ignore failure to generate po*/Makevars
19552         * build-aux/bootstrap (with_gettext): Don't ignore failure
19553         to create po/Makevars or runtime-po/Makevars.
19554
19555 2010-04-29  Eric Blake  <eblake@redhat.com>
19556
19557         headers: relax license to LGPLv2+
19558         * modules/fcntl-h (License): Relax license.
19559         * modules/getopt-posix (License): Likewise.
19560         * modules/locale (License): Likewise.
19561         * modules/math (License): Likewise.
19562         * modules/pty (License): Likewise.
19563         * modules/sched (License): Likewise.
19564         * modules/search (License): Likewise.
19565         * modules/spawn (License): Likewise.
19566         * modules/stdarg (License): Likewise.
19567         * modules/sysexits (License): Likewise.
19568
19569 2010-04-29  Jim Meyering  <meyering@redhat.com>
19570
19571         inttypes: relax license to LGPLv2+
19572         * modules/inttypes (License): Relax license.
19573
19574 2010-04-29  Simon Josefsson  <simon@josefsson.org>
19575
19576         * top/maint.mk (indent): Run twice to produce idempotent results.
19577
19578 2010-04-28  Bruno Haible  <bruno@clisp.org>
19579
19580         getdate: Generate getdate.c in the source directory.
19581         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
19582         MOSTLYCLEANFILES.
19583         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
19584
19585 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
19586
19587         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
19588         is not declared as a const *; avoid warnings in that case.
19589
19590 2010-04-28  Eric Blake  <eblake@redhat.com>
19591
19592         canonicalize-lgpl: avoid compiler warning
19593         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
19594         declaration' / 'extraneous semicolon' warning with some compilers.
19595         Reported by Andreas Gruenbacher.
19596
19597 2010-04-28  Jim Meyering  <meyering@redhat.com>
19598
19599         init.sh: ensure a more reliable exit status when exiting via trap
19600         * tests/init.sh (setup_): Don't rely on $? in signal handler.
19601         Inspired by patches from Dmitry V. Levin.
19602         Also trap on signal 3 (SIGQUIT).
19603
19604 2010-04-27  Bruno Haible  <bruno@clisp.org>
19605
19606         Update doc about utimes().
19607         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
19608         'utimens' module.
19609         Reported by Andreas Gruenbacher <agruen@suse.de>.
19610
19611 2010-04-27  Eric Blake  <eblake@redhat.com>
19612
19613         full-read, full-write: relax license
19614         * modules/full-read (License): Drop to LGPLv2+.
19615         * modules/full-write (License): Likewise.
19616         * modules/safe-read (License): Likewise.
19617         * modules/safe-write (License): Likewise.
19618
19619         pthread: mention library for linking
19620         * modules/pthread (Link): Mention $(LIB_PTHREAD).
19621
19622 2010-04-27  Jim Meyering  <meyering@redhat.com>
19623
19624         maint.mk: fix a bug introduced in last change
19625         * top/maint.mk (gl_assured_headers_): Now that all names are on
19626         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
19627         is not anchored to end of word, it should be adequate.
19628
19629         maint.mk: avoid side-effect in latest syntax-check
19630         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
19631         to run commands via $(shell...), and hence to incur cost only when
19632         the new rule is actually run.
19633
19634         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
19635         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
19636         and use that to create a regexp used to detect all #if HAVE_..._H uses.
19637         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
19638         (gl_assured_headers_, az_, AZ_): Define.
19639         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
19640
19641 2010-04-26  Jim Meyering  <jim@meyering.net>
19642             Bruno Haible  <bruno@clisp.org>
19643
19644         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
19645         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
19646         Prompted by an exchange with Gilles Espinasse.
19647
19648 2010-04-26  Jim Meyering  <meyering@redhat.com>
19649
19650         git-version-gen: aesthetic tweak
19651         * build-aux/git-version-gen: Use "$nl" rather than a literal,
19652         so that the command remains on a single line.
19653
19654 2010-04-26  Eric Blake  <eblake@redhat.com>
19655
19656         git-version-gen: allow use on EBCDIC hosts
19657         * build-aux/git-version-gen (dirty): Use literal rather than tying
19658         ourselves to ascii.
19659         Reported by Steve Goetze.
19660
19661 2010-04-25  Bruno Haible  <bruno@clisp.org>
19662
19663         netdb: Add support for GNULIB_POSIXCHECK.
19664         * lib/netdb.in.h: Include warn-on-use.h.
19665         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
19666         functions are used when GNULIB_POSIXCHECK is defined and the
19667         getaddrinfo module is not in use.
19668         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
19669         freeaddrinfo, gai_strerror, getnameinfo are declared.
19670         * modules/netdb (Depends-on): Add warn-on-use.
19671         (Makefile.am): Include warn-on-use.h in netdb.h.
19672
19673 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
19674
19675         build: avoid "make check" failure without .git/ directory
19676         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
19677         there is no .git/ directory.
19678
19679 2010-04-25  Bruno Haible  <bruno@clisp.org>
19680
19681         ptsname: Fix misuse of ttyname_r.
19682         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
19683         of errno.
19684
19685 2010-04-25  Bruno Haible  <bruno@clisp.org>
19686
19687         ttyname_r: Make it work on Solaris 10.
19688         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
19689         if the system function has the POSIX declaration. Test whether the
19690         function fails if the buffer is less than 128 bytes large.
19691         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
19692         system's ttyname_r function. Provide a reasonably large buffer.
19693         * modules/ttyname_r (Depends-on): Add extensions.
19694         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
19695
19696 2010-04-25  Bruno Haible  <bruno@clisp.org>
19697
19698         Use the 'extensions' module for some more functions on Solaris.
19699         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
19700         module.
19701         * doc/posix-functions/ctime_r.texi: Likewise.
19702         * doc/posix-functions/getgrgid_r.texi: Likewise.
19703         * doc/posix-functions/getgrnam_r.texi: Likewise.
19704         * doc/posix-functions/getpwnam_r.texi: Likewise.
19705         * doc/posix-functions/getpwuid_r.texi: Likewise.
19706         * doc/posix-functions/readdir_r.texi: Likewise.
19707         * doc/posix-functions/sigwait.texi: Likewise.
19708         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
19709         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
19710
19711 2010-04-25  Bruno Haible  <bruno@clisp.org>
19712
19713         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
19714         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
19715         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
19716         * lib/ttyname_r.c: Include <limits.h>.
19717         (ttyname_r): Define using the system's ttyname_r function, if it exists
19718         and not on Solaris.
19719         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
19720         set.
19721         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
19722         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
19723         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
19724         Reported by Simon Josefsson.
19725
19726 2010-04-25  Bruno Haible  <bruno@clisp.org>
19727
19728         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
19729         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
19730         * doc/posix-functions/ctime_r.texi: Likewise.
19731         * doc/posix-functions/getgrgid_r.texi: Likewise.
19732         * doc/posix-functions/getgrnam_r.texi: Likewise.
19733         * doc/posix-functions/getlogin_r.texi: Likewise.
19734         * doc/posix-functions/getpwnam_r.texi: Likewise.
19735         * doc/posix-functions/getpwuid_r.texi: Likewise.
19736         * doc/posix-functions/readdir_r.texi: Likewise.
19737         * doc/posix-functions/sigwait.texi: Likewise.
19738         * doc/posix-functions/ttyname_r.texi: Likewise.
19739         Reported by Simon Josefsson.
19740
19741 2010-04-25  Bruno Haible  <bruno@clisp.org>
19742
19743         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
19744         * gnulib-tool (func_usage): Document that --with-*-tests options apply
19745         also to --create-testdir.
19746         (func_acceptable): Don't consider the status of *-tests modules here.
19747         (func_modules_transitive_closure): Consider it here, before including a
19748         test module.
19749         (func_import, func_create_testdir): Set inc_all_direct_tests,
19750         inc_all_indirect_tests.
19751         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
19752         --create-testdir and --create-megatestdir.
19753
19754 2010-04-25  Bruno Haible  <bruno@clisp.org>
19755
19756         gnulib-tool: Add --without-*-tests options.
19757         * gnulib-tool (func_usage): Document the --without-*-tests options.
19758         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
19759         excl_unportable_tests): New variables.
19760         Fail if they are specified with --import or --update.
19761         (func_acceptable): Respect the excl_*_tests variables.
19762         (func_import): Set the excl_*_tests variables to empty.
19763
19764 2010-04-25  Simon Josefsson  <simon@josefsson.org>
19765             Bruno Haible  <bruno@clisp.org>
19766
19767         Work around a MacOS X 10.4 bug with openpty.
19768         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
19769         * tests/test-openpty.c (main): Close the master side explicitly.
19770
19771 2010-04-25  Bruno Haible  <bruno@clisp.org>
19772
19773         strnlen: Fix a C++ test error on MacOS X and Solaris.
19774         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
19775         the function is not declared.
19776         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
19777         Simon Josefsson.
19778
19779 2010-04-24  Bruno Haible  <bruno@clisp.org>
19780
19781         Avoid a gcc warning.
19782         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
19783         of correct type for %08lx directive.
19784         Reported by Eric Blake.
19785
19786 2010-04-24  Bruno Haible  <bruno@clisp.org>
19787
19788         vasnprintf: Correct errno value in case of out-of-memory.
19789         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
19790         or sprintf. Use the errno value from SNPRINTF or sprintf.
19791         Reported by Ian Beckwith <ianb@erislabs.net>.
19792
19793 2010-04-24  Bruno Haible  <bruno@clisp.org>
19794
19795         ansi-c++-opt: Find correct compiler when cross-compiling.
19796         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
19797         AC_CHECK_PROGS.
19798         Reported by Simon Josefsson.
19799
19800 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
19801
19802         vc-list-files: Add support for subversion
19803         * build-aux/vc-list-files: Use "svn list" to generate the list of
19804         files controlled by subversion.
19805
19806 2010-04-23  Jim Meyering  <meyering@redhat.com>
19807
19808         vc-list-files tests: convert to use init.sh
19809         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
19810         path_prepend_.
19811         Use Exit, not exit.
19812         Use skip_ rather than open coding it.
19813         Remove trap set-up and compare definitions.
19814         * tests/test-vc-list-files-git.sh: Likewise.
19815         * modules/vc-list-files-tests (Files): Add tests/init.sh.
19816
19817 2010-04-22  Simon Josefsson  <simon@josefsson.org>
19818
19819         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
19820         backup files.
19821
19822 2010-04-21  Simon Josefsson  <simon@josefsson.org>
19823
19824         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
19825
19826 2010-04-20  Eric Blake  <eblake@redhat.com>
19827
19828         tests: be robust to ignored SIGPIPE
19829         * tests/test-select-in.sh: Consume all output.
19830         * tests/test-lseek.sh: Check correct exit status, while avoiding
19831         EPIPE.
19832
19833 2010-04-20  Simon Josefsson  <simon@josefsson.org>
19834             Bruno Haible  <bruno@clisp.org>
19835
19836         visibility: Don't use -fvisibility if it leads to a warning.
19837         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
19838         yes, don't pretend that visibility works if it leads to a warning.
19839         Reported by Mike Gran <spk121@yahoo.com>.
19840
19841 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
19842
19843         * build-aux/bootstrap: Use "git -h" for testing for supported options
19844         instead of "git --help".  The short-form option only shows a summary,
19845         and doesn't layout the full man page.  Grep for the full option name
19846         in the summary, too.
19847
19848 2010-04-19  Bruno Haible  <bruno@clisp.org>
19849
19850         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
19851         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
19852         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
19853         mention of RELOCATABLE_STRIP.
19854         Reported by Sylvain Beucler <beuc@beuc.net>.
19855
19856 2010-04-19  Bruno Haible  <bruno@clisp.org>
19857
19858         * lib/diffseq.h: Fix typo in comment.
19859         Reported by Eric Blake.
19860
19861 2010-04-19  Bruno Haible  <bruno@clisp.org>
19862
19863         ioctl: Move autoconf macro to a .m4 file.
19864         * m4/ioctl.m4: New file, extracted from modules/ioctl.
19865         * modules/ioctl (Files): Add it.
19866         (configure.ac): Simply invoke gl_FUNC_IOCTL.
19867         Reported by Ian Beckwith <ianb@erislabs.net>.
19868
19869 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
19870             Bruno Haible  <bruno@clisp.org>
19871
19872         diffseq: Accommodate use-case with abstract arrays.
19873         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
19874         is not defined.
19875         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
19876         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
19877
19878 2010-04-18  Bruno Haible  <bruno@clisp.org>
19879
19880         * doc/posix-headers/stdbool.texi: More precise wording.
19881
19882 2010-04-17  Jim Meyering  <meyering@redhat.com>
19883
19884         maint.mk: use gnu-style indentation in an embedded perl script
19885         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
19886         Rename variable: s/two/last_two_bytes/
19887
19888 2010-04-16  Eric Blake  <eblake@redhat.com>
19889
19890         test-stdbool: skip test that fails with Solaris CC
19891         * tests/test-stdbool.c (f): Skip test that causes compilation
19892         error under buggy C++ compiler.
19893         * lib/stdbool.in.h: Document the limitation.
19894         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
19895
19896         setenv: allow compilation with C++
19897         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
19898         register keyword.
19899
19900         stdint: allow test to pass with C++
19901         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
19902
19903         getopt: allow compilation with C++
19904         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
19905         struct.
19906         * lib/getopt.c (_getopt_internal_r): Use correct type.
19907         Reported by Dagobert Michelson, via Joel E. Denny.
19908
19909 2010-04-16  Bruno Haible  <bruno@clisp.org>
19910
19911         Override netdb.h always.
19912         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
19913         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
19914         Reported by Ludovic Courtès <ludo@gnu.org>.
19915
19916 2010-04-15  Bruno Haible  <bruno@clisp.org>
19917
19918         openpty: Fix mistake from 2010-03-21.
19919         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
19920         Reported by Simon Josefsson.
19921
19922 2010-04-15  Eric Blake  <eblake@redhat.com>
19923
19924         test-forkpty: fix expected signature
19925         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
19926         Reported by Simon Josefsson.
19927
19928 2010-04-15  Jim Meyering  <meyering@redhat.com>
19929
19930         maint.mk: texinfo_suffix_re_: correct the default regexp
19931         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
19932
19933         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
19934         make it configurable via texinfo_suffix_re_.
19935
19936 2010-04-14  Eric Blake  <eblake@redhat.com>
19937
19938         strtok_r: relax license to LGPLv2+
19939         * modules/strtok_r (License): Relax license.
19940         Reported by Matthias Bolte.
19941
19942 2010-04-14  Simon Josefsson  <simon@josefsson.org>
19943
19944         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
19945         version 1.4.4 by default instead of requiring the libgcrypt
19946         version used during build.  This makes it possible to use the
19947         application with older but still binary compatible libgcrypt
19948         versions.
19949
19950 2010-04-13  Eric Blake  <eblake@redhat.com>
19951
19952         getopt-gnu: match recent glibc fixes and posix ruling
19953         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
19954         '+' handling, when requesting extensions.
19955         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
19956         'W;' handling.
19957         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
19958         * doc/posix-functions/getopt.texi (getopt): Document this.
19959         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
19960         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
19961         Likewise.
19962
19963         getopt: merge bug fixes from glibc
19964         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
19965         diagnostics.  Honor '+:' correctly.  Reject ';'.
19966
19967         getopt-posix: detect MacOS bug
19968         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
19969         optind when missing a required argument.
19970         * doc/posix-functions/getopt.texi (getopt): Document the bug.
19971         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
19972         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
19973         Likewise.
19974
19975         getopt-posix: avoid spurious failure on Solaris
19976         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
19977         an indicator that setting optind=1 is sufficient for reset.
19978
19979         getopt-posix: avoid spurious failure on FreeBSD
19980         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
19981         in POSIX mode, since the m4 test uses it.
19982
19983         gnulib-tool: silence warning on BSD sh
19984         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
19985
19986 2010-04-13  Jim Meyering  <meyering@redhat.com>
19987
19988         doc: users.txt: GNU patch now uses gnulib
19989         * users.txt: Add patch.
19990
19991 2010-04-12  Jim Meyering  <meyering@redhat.com>
19992
19993         maint.mk: generate more concise timing data for syntax-check rules
19994         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
19995         " done" from each line that reports a syntax-check test duration.
19996
19997 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
19998
19999         git-version-gen: use "git update-index..." rather than "git status"
20000         * build-aux/git-version-gen: Use git update-index --refresh, not
20001         "git status".  With some versions of git, "git status" would fail
20002         to update the index and result in an unwarranted "-dirty" suffix.
20003
20004 2010-04-11  Jim Meyering  <meyering@redhat.com>
20005
20006         openat: correct formatting (no semantic change)
20007         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
20008         Suggested by Bruno Haible.
20009
20010 2010-04-11  Bruno Haible  <bruno@clisp.org>
20011
20012         Stricter declaration checking in testdirs.
20013         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
20014         If for_tests is true, augment AM_CPPFLAGS to define
20015         GNULIB_STRICT_CHECKING.
20016         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
20017         GNULIB_STRICT_CHECKING is defined, verify that the function is
20018         declared.
20019
20020 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
20021             Bruno Haible  <bruno@clisp.org>
20022
20023         libunistring: Improve configure output.
20024         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
20025         Don't say "consider installing GNU libunistring" when checking again
20026         with libiconv.
20027
20028 2010-04-11  Bruno Haible  <bruno@clisp.org>
20029
20030         libunistring: Correct value of $LTLIBUNISTRING.
20031         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
20032         correct the value of $LTLIBUNISTRING.
20033
20034 2010-04-11  Bruno Haible  <bruno@clisp.org>
20035
20036         havelib: Add static libraries to LIBS in the right order.
20037         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
20038         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
20039
20040 2010-04-11  Bruno Haible  <bruno@clisp.org>
20041
20042         libunistring: Detect libunistring also when it depends on libiconv.
20043         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
20044         the second AC_LIB_HAVE_LINKFLAGS invocation.
20045
20046 2010-04-11  James Youngman  <jay@gnu.org>
20047
20048         close-stream: declare local scalars to be "const"
20049         * lib/close-stream.c (close_stream): Make boolean variables const
20050         to document the fact that we set but do not change them.
20051
20052 2010-04-11  Bruno Haible  <bruno@clisp.org>
20053
20054         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
20055
20056 2010-04-11  Jim Meyering  <meyering@redhat.com>
20057
20058         maint.mk: don't include dist-check.mk
20059         * top/maint.mk: Remove bogus include directive.
20060
20061         maint.mk: improve empty-line-at-EOF check
20062         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
20063         solution, rather than tail+Perl-based one.  The latter would read
20064         a few kilobytes from the end of each file, and did not handle empty
20065         files properly.
20066
20067         maint.mk: print the elapsed time for each syntax-check rule
20068         * top/maint.mk (sc_m_rules_): Save start time in a file.
20069         (sc_z_rules_): New rules: remove temp file and print elapsed time.
20070         (local-check): Interpose the .z rules
20071
20072 2010-04-11  Jim Meyering  <meyering@redhat.com>
20073
20074         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
20075         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
20076         empty file with one that ends in an empty line.
20077
20078 2010-04-10  Bruno Haible  <bruno@clisp.org>
20079
20080         mkdir: Make it work on mingw64.
20081         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
20082         * lib/mkdir.c: Update comment.
20083         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
20084
20085 2010-04-10  Bruno Haible  <bruno@clisp.org>
20086
20087         Don't override improved macro from newer autoconf.
20088         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
20089         autoconf >= 2.62.
20090         Reported by Joel E. Denny <jdenny@clemson.edu>.
20091
20092 2010-04-10  Jim Meyering  <meyering@redhat.com>
20093
20094         maint.mk: new syntax-check rule: prohibit empty lines at end of file
20095         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
20096
20097         maint.mk: correct a diagnostic
20098         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
20099         in diagnostic; now use $prohibit.
20100
20101 2010-04-10  Bruno Haible  <address@hidden>
20102
20103         fchownat: Fix a C++ test error on Solaris 8.
20104         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
20105         the function does not exist.
20106
20107 2010-04-10  Bruno Haible  <bruno@clisp.org>
20108
20109         vasnprintf: Add more tests.
20110         * tests/test-vasnprintf-posix.c: Include <errno.h>.
20111         (test_function): Test converting an invalid wide string.
20112
20113         vasnprintf: Correct handling of unconvertible wide string arguments.
20114         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
20115         VASNPRINTF.
20116         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
20117         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
20118         smaller than the expected maximum need for the directive. Set errno to
20119         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
20120         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
20121         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
20122         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
20123         * modules/vasnprintf (Files): Add m4/printf.m4.
20124         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
20125
20126 2010-04-10  Bruno Haible  <bruno@clisp.org>
20127
20128         vasnprintf: Fix crash in %ls directive.
20129         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
20130         string is passed as argument to %ls, with no precision and no width.
20131         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
20132
20133 2010-04-10  Bruno Haible  <bruno@clisp.org>
20134
20135         vasnprintf: Fix multiple test failures on mingw.
20136         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
20137         _snprintf, or snwprintf, not _snwprintf.
20138
20139 2010-04-10  Bruno Haible  <bruno@clisp.org>
20140
20141         write: Fix a C++ test error on mingw.
20142         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
20143
20144 2010-04-10  Bruno Haible  <bruno@clisp.org>
20145
20146         vasnprintf test: Reduce code duplication.
20147         * tests/test-vasnprintf.c (test_function): New function, extracted from
20148         test_vasnprintf.
20149         (test_vasnprintf, test_asnprintf): Invoke it.
20150
20151 2010-04-10  Bruno Haible  <bruno@clisp.org>
20152
20153         strnlen: Fix warning in C++ mode on MacOS X.
20154         * lib/string.in.h (strnlen): Use the modern idiom.
20155         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
20156         defining strnlen as a macro already in <config.h>.
20157         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
20158         REPLACE_STRNLEN.
20159         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
20160         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
20161
20162 2010-04-08  James Youngman  <jay@gnu.org>
20163
20164         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
20165         the example.
20166
20167 2010-04-09  Jim Meyering  <meyering@redhat.com>
20168
20169         maint.mk: print better diagnostic when there is no $(_hv_file)
20170         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
20171         announce that when $(_hv_file) (aka help-version) does not exist.
20172
20173         init.sh: run tr in the "C" locale to avoid multibyte interpretation
20174         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
20175         not try to interpret its random input bytes.  Jarno Rajahalme reported
20176         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
20177         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
20178         (mktempd_): Likewise, just in case.
20179
20180         ftruncate: add two years to projected module removal date: 2012
20181         * m4/ftruncate.m4: Adjust comments.
20182
20183         ftruncate: mark module as obsolete; even MinGW provides it, now
20184         * modules/ftruncate (Status): Obsolete.
20185         (Notice): Say that.
20186         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
20187         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
20188
20189 2010-04-08  Bruno Haible  <bruno@clisp.org>
20190
20191         Fix side effects from tests-related modules.
20192         * modules/dprintf-posix (Comment): New section.
20193         * modules/fprintf-posix (Comment): Likewise.
20194         * modules/obstack-printf-posix (Comment): Likewise.
20195         * modules/printf-posix (Comment): Likewise.
20196         * modules/snprintf-posix (Comment): Likewise.
20197         * modules/sprintf-posix (Comment): Likewise.
20198         * modules/vasnprintf-posix (Comment): Likewise.
20199         * modules/vasprintf-posix (Comment): Likewise.
20200         * modules/vdprintf-posix (Comment): Likewise.
20201         * modules/vfprintf-posix (Comment): Likewise.
20202         * modules/vprintf-posix (Comment): Likewise.
20203         * modules/vsnprintf-posix (Comment): Likewise.
20204         * modules/vsprintf-posix (Comment): Likewise.
20205         * modules/xprintf-posix (Comment): Likewise.
20206         * modules/xvasprintf-posix (Comment): Likewise.
20207         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
20208         * modules/floorf-tests (Depends-on): Likewise.
20209         * modules/round-tests (Depends-on): Likewise.
20210         * modules/roundf-tests (Depends-on): Likewise.
20211         * modules/trunc-tests (Depends-on): Likewise.
20212         * modules/truncf-tests (Depends-on): Likewise.
20213         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
20214         'fprintf-posix' module is not present.
20215         * tests/test-floorf2.c (check): Likewise.
20216         * tests/test-trunc2.c (check): Likewise.
20217         * tests/test-truncf2.c (check): Likewise.
20218         * tests/test-round2.c (equal): Likewise.
20219         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
20220
20221 2010-04-07  Karl Berry  <karl@gnu.org>
20222
20223         * config/srclist.txt,
20224         * config/srclistvars.sh,
20225         * config/srclist-update: doc fixes.
20226
20227 2010-04-07  Jim Meyering  <meyering@redhat.com>
20228
20229         maint.mk: add a PATH crosschecking syntax-check rule
20230         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
20231         Useful if you use a test like the one in help-version (coreutils,
20232         diffutils, grep, gzip) that ensures $(VERSION) matches what is
20233         printed by prog --version.
20234
20235 2010-04-06  Bruno Haible  <bruno@clisp.org>
20236
20237         Fix link error on mingw.
20238         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
20239         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
20240
20241 2010-04-06  Bruno Haible  <bruno@clisp.org>
20242
20243         Assume rmdir exists.
20244         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
20245
20246 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
20247
20248         doc: update users.txt
20249         * users.txt: Add gcal.
20250
20251 2010-04-06  Jim Meyering  <meyering@redhat.com>
20252
20253         init.sh: simply unset TMPDIR rather than risking env -i
20254         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
20255         although it probably works fine on all Unix-based systems, some
20256         systems (Cygwin?) cannot tolerate a totally cleared environment.
20257         Suggestion from Eric Blake.
20258
20259 2010-04-06  Jim Meyering  <meyering@redhat.com>
20260
20261         init.sh: portability fix: use env's POSIX-specified -i option not -u
20262         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
20263         than unportable env -u.  Solaris 5.11's env lacks support for -u.
20264
20265 2010-04-05  Bruno Haible  <bruno@clisp.org>
20266
20267         btowc: Work around Cygwin 1.7.2 bug.
20268         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
20269         does not map NUL to 0.
20270         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
20271
20272 2010-04-05  Bruno Haible  <bruno@clisp.org>
20273
20274         Make the multithread modules work on Cygwin 1.7.2.
20275         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
20276         imported symbols can be declared weak, so that it returns "no" on
20277         Cygwin 1.7.2.
20278
20279 2010-04-05  Bruno Haible  <bruno@clisp.org>
20280
20281         Use the module 'strncat'.
20282         * modules/unistr/u8-strncat (Depends-on): Add strncat.
20283
20284         Tests for module 'strncat'.
20285         * modules/strncat-tests: New file.
20286         * tests/test-strncat.c: New file.
20287
20288         New module 'strncat'.
20289         * lib/string.in.h (strncat): New declaration.
20290         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
20291         * m4/strncat.m4: New file, based on m4/memchr.m4.
20292         * modules/strncat: New file.
20293         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
20294         is declared.
20295         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
20296         REPLACE_STRNCAT.
20297         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
20298         REPLACE_STRNCAT.
20299         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
20300         module.
20301         * tests/test-string-c++.cc: Check signature of strncat.
20302
20303 2010-04-05  Jim Meyering  <meyering@redhat.com>
20304
20305         xstrtoumax-tests: convert to use init.sh
20306         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
20307         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
20308         Use Exit, not exit.
20309         Remove uses of $EXEEXT and "./" to run a program in the current dir.
20310
20311         xstrtoimax-tests: convert to use init.sh
20312         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
20313         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
20314         Use Exit, not exit.
20315         Remove uses of $EXEEXT and "./" to run a program in the current dir.
20316
20317 2010-04-05  Bruno Haible  <bruno@clisp.org>
20318
20319         sys_socket: Avoid #define replacements in C++ mode.
20320         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
20321         warning to the function if possible, rather than #defining the symbol
20322         to a dysfunctional alias.
20323
20324 2010-04-05  Bruno Haible  <bruno@clisp.org>
20325
20326         fseeko: Fix C++ test error on mingw.
20327         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
20328         gl_FUNC_FSEEKO.
20329         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
20330         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
20331         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
20332         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
20333
20334 2010-04-05  Bruno Haible  <bruno@clisp.org>
20335
20336         duplocale: Improve test output.
20337         * tests/test-duplocale.c (main): Print reason for skipped test.
20338
20339 2010-04-05  Bruno Haible  <bruno@clisp.org>
20340
20341         Assume rmdir exists.
20342         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
20343         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
20344
20345 2010-04-05  Bruno Haible  <bruno@clisp.org>
20346
20347         Fix link error on Solaris 8 with cc.
20348         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
20349
20350 2010-04-05  Bruno Haible  <bruno@clisp.org>
20351
20352         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
20353         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
20354
20355 2010-04-05  Bruno Haible  <bruno@clisp.org>
20356
20357         vasprintf: Update documentation.
20358         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
20359
20360 2010-04-05  Bruno Haible  <bruno@clisp.org>
20361
20362         ptsname: Improve test.
20363         * tests/test-ptsname.c (main): Also try the various master names of BSD
20364         systems.
20365
20366 2010-04-05  Bruno Haible  <bruno@clisp.org>
20367
20368         memchr: Avoid a possible C++ test error.
20369         * lib/string.in.h (memchr): Provide declaration if function is missing.
20370         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
20371         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
20372         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
20373         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
20374
20375 2010-04-05  Bruno Haible  <bruno@clisp.org>
20376
20377         strtok_r: Improve idiom.
20378         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
20379         AC_LIBOBJ is used.
20380
20381 2010-04-05  Bruno Haible  <bruno@clisp.org>
20382
20383         strdup: Improve idiom.
20384         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
20385         AC_LIBOBJ is used.
20386         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
20387         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
20388         when AC_LIBOBJ is used.
20389
20390 2010-04-05  Bruno Haible  <bruno@clisp.org>
20391
20392         mbsinit, mbrtowc, wcrtomb: Improve idioms.
20393         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
20394         don't set REPLACE_MBSINIT to 1.
20395         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
20396         don't set REPLACE_MBRTOWC to 1.
20397         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
20398         exist, don't set REPLACE_MBSRTOWCS to 1.
20399         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
20400         exist, don't set REPLACE_MBSNRTOWCS to 1.
20401         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
20402         don't set REPLACE_WCRTOMB to 1.
20403         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
20404         exist, don't set REPLACE_WCSRTOMBS to 1.
20405         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
20406         exist, don't set REPLACE_WCSNRTOMBS to 1.
20407
20408 2010-04-05  Bruno Haible  <bruno@clisp.org>
20409
20410         ldexpl: Improve idiom.
20411         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
20412         make sure to set HAVE_DECL_LDEXPL to 0.
20413
20414 2010-04-05  Jim Meyering  <meyering@redhat.com>
20415
20416         xstrtol-tests: convert to use init.sh
20417         * modules/xstrtol-tests (Files): Add tests/init.sh.
20418         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
20419         Use Exit, not exit.
20420         Remove uses of $EXEEXT and "./" to run a program in the current dir.
20421
20422         atexit-tests: convert to use init.sh
20423         * modules/atexit-tests (Files): Add tests/init.sh.
20424         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
20425         Use Exit, not exit.
20426         Remove uses of $EXEEXT and "./" to run a program in the current dir.
20427
20428         init.sh: fix typo
20429         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
20430
20431         init.sh: make it easier for a test script to write to the tty, ...
20432         when using automake's parallel-tests mode.
20433         * tests/init.sh (stderr_fileno_): Define overridable variable.
20434         (warn_): New function, to use it.
20435         (fail_, skip_, framework_failure_): Use warn_.
20436
20437 2010-04-04  Bruno Haible  <bruno@clisp.org>
20438
20439         btowc: Avoid warning.
20440         * lib/btowc.c: Include <stdlib.h>.
20441         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
20442
20443 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
20444             Bruno Haible  <bruno@clisp.org>
20445
20446         wchar: Port to NetBSD 1.5.
20447         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
20448         * lib/wctype.in.h (WEOF): Likewise.
20449
20450 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
20451             Bruno Haible  <bruno@clisp.org>
20452
20453         Port extended stdio to NetBSD 1.5.
20454         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
20455         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
20456         older.
20457
20458 2010-04-04  Bruno Haible  <bruno@clisp.org>
20459
20460         string: Remove unused substitution.
20461         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
20462         HAVE_DECL_STRERROR.
20463         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
20464
20465 2010-04-04  Bruno Haible  <bruno@clisp.org>
20466
20467         strtod: Avoid a possible C++ test error.
20468         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
20469         set REPLACE_STRTOD.
20470
20471 2010-04-04  Bruno Haible  <bruno@clisp.org>
20472
20473         strerror: Update documentation.
20474         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
20475
20476 2010-04-04  Bruno Haible  <bruno@clisp.org>
20477
20478         stdio: Fix some C++ test errors on Solaris 8 with GCC.
20479         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
20480         _GL_CXXALIAS_SYS_CAST.
20481
20482 2010-04-04  Bruno Haible  <bruno@clisp.org>
20483
20484         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
20485         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
20486         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
20487         REPLACE_FREXPL to 1.
20488         * doc/posix-functions/frexpl.texi: Update documentation.
20489
20490 2010-04-04  Bruno Haible  <bruno@clisp.org>
20491
20492         math: Fix some C++ test errors on Solaris 8 and Cygwin.
20493         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
20494
20495 2010-04-04  Bruno Haible  <bruno@clisp.org>
20496
20497         Implement nanosleep for native Windows.
20498         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
20499
20500 2010-04-04  Bruno Haible  <bruno@clisp.org>
20501
20502         math: Fix some C++ test errors on Solaris 8.
20503         * lib/math.in.h (truncf, trunc): Use simpler idiom.
20504
20505 2010-04-04  Bruno Haible  <bruno@clisp.org>
20506
20507         math: Fix some C++ test errors on Cygwin.
20508         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
20509         truncl): Provide declaration if the system does not have it.
20510         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
20511         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
20512         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
20513         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
20514         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
20515         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
20516         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
20517         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
20518         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
20519         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
20520         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
20521         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
20522         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
20523         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
20524         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
20525         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
20526         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
20527         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
20528         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
20529         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
20530         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
20531         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
20532
20533 2010-04-04  Bruno Haible  <bruno@clisp.org>
20534
20535         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
20536         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
20537         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
20538         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
20539         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
20540         * m4/isinf.m4 (gl_ISINF): Likewise.
20541         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
20542
20543 2010-04-04  Bruno Haible  <bruno@clisp.org>
20544
20545         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
20546         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
20547
20548 2010-04-04  Bruno Haible  <bruno@clisp.org>
20549
20550         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
20551         * modules/tmpfile (configure.ac): Update.
20552
20553         tmpfile: Fix C++ test error on mingw.
20554         * lib/stdio.in.h (tmpfile): New declaration.
20555         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
20556         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
20557         * modules/tmpfile (Depends-on): Add stdio.
20558         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
20559         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
20560         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
20561         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
20562         REPLACE_TMPFILE.
20563         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
20564
20565 2010-04-04  Bruno Haible  <bruno@clisp.org>
20566
20567         ioctl: Fix C++ test error on mingw.
20568         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
20569         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
20570         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
20571
20572 2010-04-03  Bruno Haible  <bruno@clisp.org>
20573
20574         wcwidth: Fix C++ test error on mingw.
20575         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
20576         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
20577         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
20578
20579 2010-04-03  Bruno Haible  <bruno@clisp.org>
20580
20581         nanosleep: Fix C++ test error on mingw.
20582         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
20583         * lib/time.in.h (nanosleep): Use modern idiom.
20584         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
20585         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
20586         REPLACE_NANOSLEEP to 1.
20587         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
20588         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
20589
20590 2010-04-03  Bruno Haible  <bruno@clisp.org>
20591
20592         strptime: Fix C++ test error on mingw.
20593         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
20594         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
20595         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
20596         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
20597         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
20598         not REPLACE_STRPTIME.
20599         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
20600         REPLACE_STRPTIME.
20601
20602 2010-04-03  Bruno Haible  <bruno@clisp.org>
20603
20604         timegm: Fix C++ test error on mingw.
20605         * lib/time.in.h (timegm): Use modern idiom.
20606         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
20607         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
20608         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
20609         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
20610
20611 2010-04-03  Bruno Haible  <bruno@clisp.org>
20612
20613         timegm: Assume declaration if function exists.
20614         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
20615         if it exists. Don't clobber ac_cv_func_timegm.
20616
20617 2010-04-03  Bruno Haible  <bruno@clisp.org>
20618
20619         time_r: Fix C++ test error on mingw.
20620         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
20621         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
20622         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
20623         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
20624         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
20625
20626 2010-04-03  Bruno Haible  <bruno@clisp.org>
20627
20628         time_r: Minor updates.
20629         * modules/time_r (Description): Mention the provided functions.
20630         * lib/time_r.c: Don't include <string.h>.
20631         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
20632         * doc/posix-functions/localtime_r.texi: Likewise.
20633
20634 2010-04-03  Bruno Haible  <bruno@clisp.org>
20635
20636         time: Fix regression introduced on 2010-03-08.
20637         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
20638         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
20639
20640 2010-04-03  Jim Meyering  <meyering@redhat.com>
20641
20642         maint.mk: don't silently disable project-specific syntax-check rules
20643         * top/maint.mk (_prohibit_regexp): Define, to help people realize
20644         that they need to convert their project-specific syntax-check rules
20645         to use the new _sc_search_regexp.
20646
20647 2010-04-03  Bruno Haible  <bruno@clisp.org>
20648
20649         fchdir: Fix regression introduced on 2010-03-08.
20650         * lib/unistd.in.h (fchdir): Fix declaration.
20651         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
20652         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
20653         REPLACE_FCHDIR.
20654         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
20655         REPLACE_FCHDIR.
20656
20657 2010-04-03  Bruno Haible  <bruno@clisp.org>
20658
20659         getpagesize: Fix C++ test error on mingw.
20660         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
20661         system does not declare the function.
20662         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
20663         declared.
20664         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
20665         HAVE_DECL_GETPAGESIZE.
20666         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
20667
20668 2010-04-03  Bruno Haible  <bruno@clisp.org>
20669
20670         stdio: Make C++ tests work on mingw.
20671         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
20672         does not declare the function.
20673
20674 2010-04-03  Bruno Haible  <bruno@clisp.org>
20675
20676         ftello: Fix C++ test error on mingw.
20677         * lib/stdio.in.h (ftello): Use modern idiom.
20678         * lib/ftello.c (ftello): Renamed from rpl_ftello.
20679         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
20680         is missing and that it needs to be replaced.
20681         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
20682         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
20683         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
20684
20685 2010-04-03  Bruno Haible  <bruno@clisp.org>
20686
20687         fseeko: Fix C++ test error on mingw.
20688         * lib/stdio.in.h (fseeko): Use modern idiom.
20689         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
20690         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
20691         is missing and that it needs to be replaced.
20692         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
20693         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
20694         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
20695
20696 2010-04-03  Bruno Haible  <bruno@clisp.org>
20697
20698         mkstemp: Fix C++ test error on mingw.
20699         * lib/stdlib.in.h (mkstemp): Use modern idiom.
20700         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
20701         function is missing and that it needs to be replaced.
20702         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
20703         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
20704
20705 2010-04-03  Bruno Haible  <bruno@clisp.org>
20706
20707         stpncpy: Fix C++ test error on mingw.
20708         * lib/string.in.h (stpncpy): Use modern idiom.
20709         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
20710         function is missing and that it needs to be replaced.
20711         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
20712         REPLACE_STPNCPY.
20713         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
20714
20715 2010-04-03  Bruno Haible  <bruno@clisp.org>
20716
20717         sys_stat: Fix C++ test error on mingw.
20718         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
20719         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
20720
20721 2010-04-03  Bruno Haible  <bruno@clisp.org>
20722
20723         pty: Update doc.
20724         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
20725
20726 2010-04-03  Bruno Haible  <bruno@clisp.org>
20727
20728         unistd: Fix C++ test error on mingw.
20729         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
20730
20731 2010-04-03  Bruno Haible  <bruno@clisp.org>
20732
20733         Update doc regarding mingw.
20734         * doc/glibc-functions/openpty.texi: Update regarding mingw.
20735         * doc/glibc-functions/login_tty.texi: Likewise.
20736         * doc/glibc-functions/forkpty.texi: Likewise.
20737
20738 2010-04-03  Bruno Haible  <bruno@clisp.org>
20739
20740         stdlib: Avoid compilation failure of c-strtold on mingw.
20741         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
20742
20743 2010-04-03  Bruno Haible  <bruno@clisp.org>
20744
20745         locale: Make C++ tests work on Cygwin and mingw.
20746         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
20747         cannot provide the function.
20748         Reported by Simon Josefsson.
20749
20750 2010-04-03  Bruno Haible  <bruno@clisp.org>
20751
20752         localename: Port to MacOS X 10.6.
20753         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
20754         memory layout of the locales in MacOS X 10.6 as well.
20755         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
20756
20757 2010-04-02  Bruno Haible  <bruno@clisp.org>
20758
20759         gnulib-tool: Ensure that long-running tests are executed last.
20760         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
20761         running tests after the one for the other tests.
20762
20763 2010-04-02  Bruno Haible  <bruno@clisp.org>
20764
20765         gnulib-tool: Ensure the tests in the main directory are executed first.
20766         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
20767         start with the current directory.
20768
20769 2010-04-02  Bruno Haible  <bruno@clisp.org>
20770
20771         Tests for module 'havelib', moved here from GNU gettext.
20772         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
20773         modifications.
20774         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
20775         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
20776         with modifications.
20777         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
20778         modifications.
20779         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
20780         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
20781         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
20782         with modifications.
20783         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
20784         with modifications.
20785         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
20786         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
20787         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
20788         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
20789         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
20790         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
20791         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
20792         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
20793         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
20794         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
20795         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
20796         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
20797         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
20798         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
20799         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
20800         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
20801         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
20802         with modifications.
20803         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
20804         with modifications.
20805         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
20806         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
20807         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
20808         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
20809         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
20810         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
20811         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
20812         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
20813         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
20814         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
20815         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
20816         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
20817         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
20818         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
20819         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
20820         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
20821         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
20822         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
20823         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
20824         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
20825         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
20826         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
20827         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
20828         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
20829         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
20830         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
20831         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
20832         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
20833         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
20834         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
20835         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
20836         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
20837         * tests/havelib/rpathx/rpathx.c: New file, from
20838         gettext/autoconf-lib-link.
20839         * tests/havelib/rpathx/Makefile.am: New file, from
20840         gettext/autoconf-lib-link.
20841         * tests/havelib/rpathx/configure.ac: New file, from
20842         gettext/autoconf-lib-link with modifications.
20843         * tests/havelib/rpathy/rpathy.c: New file, from
20844         gettext/autoconf-lib-link.
20845         * tests/havelib/rpathy/Makefile.am: New file, from
20846         gettext/autoconf-lib-link.
20847         * tests/havelib/rpathy/configure.ac: New file, from
20848         gettext/autoconf-lib-link with modifications.
20849         * tests/havelib/rpathz/rpathz.c: New file, from
20850         gettext/autoconf-lib-link.
20851         * tests/havelib/rpathz/Makefile.am: New file, from
20852         gettext/autoconf-lib-link.
20853         * tests/havelib/rpathz/configure.ac: New file, from
20854         gettext/autoconf-lib-link with modifications.
20855         * tests/havelib/rpathlx/usex.c: New file, from
20856         gettext/autoconf-lib-link.
20857         * tests/havelib/rpathlx/Makefile.am: New file, from
20858         gettext/autoconf-lib-link.
20859         * tests/havelib/rpathlx/configure.ac: New file, from
20860         gettext/autoconf-lib-link with modifications.
20861         * tests/havelib/rpathly/usey.c: New file, from
20862         gettext/autoconf-lib-link.
20863         * tests/havelib/rpathly/Makefile.am: New file, from
20864         gettext/autoconf-lib-link.
20865         * tests/havelib/rpathly/configure.ac: New file, from
20866         gettext/autoconf-lib-link with modifications.
20867         * tests/havelib/rpathlz/usez.c: New file, from
20868         gettext/autoconf-lib-link.
20869         * tests/havelib/rpathlz/Makefile.am: New file, from
20870         gettext/autoconf-lib-link.
20871         * tests/havelib/rpathlz/configure.ac: New file, from
20872         gettext/autoconf-lib-link with modifications.
20873         * tests/havelib/rpathlyx/usey.c: New file, from
20874         gettext/autoconf-lib-link.
20875         * tests/havelib/rpathlyx/Makefile.am: New file, from
20876         gettext/autoconf-lib-link.
20877         * tests/havelib/rpathlyx/configure.ac: New file, from
20878         gettext/autoconf-lib-link with modifications.
20879         * tests/havelib/rpathlzyx/usez.c: New file, from
20880         gettext/autoconf-lib-link.
20881         * tests/havelib/rpathlzyx/Makefile.am: New file, from
20882         gettext/autoconf-lib-link.
20883         * tests/havelib/rpathlzyx/configure.ac: New file, from
20884         gettext/autoconf-lib-link with modifications.
20885         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
20886         with modifications.
20887
20888 2010-04-02  Bruno Haible  <bruno@clisp.org>
20889
20890         gnulib-tool: Create distributed built sources also for the tests.
20891         * gnulib-tool (func_create_testdir): Also generate distributed built
20892         sources in the tests directory.
20893
20894 2010-04-02  Bruno Haible  <bruno@clisp.org>
20895
20896         gnulib-tool: Obey user's environment variables.
20897         * gnulib-tool (func_create_testdir): When creating built sources,
20898         respect the environment variables for autoconf, automake, etc. given by
20899         the user.
20900
20901 2010-04-02  Bruno Haible  <bruno@clisp.org>
20902
20903         gnulib-tool: Provide the value of --m4-base to modules.
20904         * gnulib-tool (func_import, func_create_testdir): Emit a definition
20905         of gl_m4_base.
20906
20907 2010-04-02  Eric Blake  <eblake@redhat.com>
20908
20909         maint.mk: fix some fallout
20910         * NEWS: Document the incompatible change, and its effect on cfg.mk.
20911         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
20912
20913 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
20914
20915         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
20916         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
20917         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
20918         (sc_cast_of_x_alloc_return_value): Likewise.
20919         (sc_cast_of_alloca_return_value): Likewise.
20920         (sc_space_tab): Likewise.
20921         (sc_prohibit_atoi_atof): Likewise.
20922         (sc_prohibit_magic_number_exit): Likewise.
20923         (sc_error_exit_success): Likewise.
20924         (sc_file_system): Likewise.
20925         (sc_prohibit_have_config_h): Likewise.
20926         (sc_require_config_h): Likewise.
20927         (sc_prohibit_HAVE_MBRTOWC): Likewise.
20928         (sc_obsolete_symbols): Likewise.
20929         (sc_changelog): Likewise.
20930         (sc_program_name): Likewise.
20931         (sc_the_the): Likewise.
20932         (sc_trailing_blank): Likewise.
20933         (sc_two_space_separator_in_usage): Likewise.
20934         (sc_useless_cpp_parens): Likewise.
20935         (sc_GPL_version): Likewise.
20936         (sc_GFDL_version): Likewise.
20937         (sc_texinfo_acronym): Likewise.
20938         (sc_prohibit_cvs_keyword): Likewise.
20939         (sc_prohibit_stat_st_blocks): Likewise.
20940         (sc_prohibit_S_IS_definition): Likewise.
20941         (sc_redundant_const): Likewise.
20942         (sc_makefile_TAB_only_indentation): Likewise.
20943         (sc_m4_quote_check): Likewise.
20944         (sc_makefile_path_separator_check): Likewise.
20945         (sc_copyright_check): Likewise.
20946         (sc_Wundef_boolean): Likewise.
20947         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
20948
20949         maint.mk: match 0 or more whitespace-before-function-call '('
20950         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
20951         that have zero or two-and-more spaces between the function name
20952         and the open parenthesis.
20953         (sc_error_message_warn_fatal): Likewise.
20954         (sc_error_message_uppercase): Likewise.
20955         (sc_error_message_period): Likewise.
20956
20957 2010-03-31  Eric Blake  <eblake@redhat.com>
20958
20959         maint.mk: check for [ as well as test
20960         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
20961         Based on a libvirt report by Matthias Bolte.
20962
20963         gnumakefile: don't squelch _version output
20964         * top/GNUmakefile (_version): Create one-shot dependency rather
20965         than using $(shell) when version must be regenerated.
20966         (_autoreconf): Run verbosely, by default.
20967
20968         sys_time: avoid compiler warnings
20969         * lib/sys_time.in.h (includes): Ensure gcc pragma is
20970         unconditional, fixing regression from 2010-03-29.
20971         Reported by Simon Josefsson.
20972
20973 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
20974
20975         maint.mk: s/_header_without_use/_sc_header_without_use/
20976         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
20977         (sc_prohibit_assert_without_use): Use the new name.
20978         (sc_prohibit_close_stream_without_use): Likewise.
20979         (sc_prohibit_getopt_without_use): Likewise.
20980         (sc_prohibit_quotearg_without_use): Likewise.
20981         (sc_prohibit_quote_without_use): Likewise.
20982         (sc_prohibit_long_options_without_use): Likewise.
20983         (sc_prohibit_inttostr_without_use): Likewise.
20984         (sc_prohibit_ignore_value_without_use): Likewise.
20985         (sc_prohibit_error_without_use): Likewise.
20986         (sc_prohibit_xalloc_without_use): Likewise.
20987         (sc_prohibit_hash_without_use): Likewise.
20988         (sc_prohibit_hash_pjw_without_use): Likewise.
20989         (sc_prohibit_safe_read_without_use): Likewise.
20990         (sc_prohibit_argmatch_without_use): Likewise.
20991         (sc_prohibit_canonicalize_without_use): Likewise.
20992         (sc_prohibit_root_dev_ino_without_use): Likewise.
20993         (sc_prohibit_openat_without_use): Likewise.
20994         (sc_prohibit_c_ctype_without_use): Likewise.
20995         (sc_prohibit_signal_without_use): Likewise.
20996         (sc_prohibit_intprops_without_use): Likewise.
20997
20998 2010-03-30  Eric Blake  <eblake@redhat.com>
20999
21000         maint: improve module indicators
21001         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
21002         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
21003         columns, and avoid extra macro expansion.
21004
21005         fdopendir: work around FreeBSD bug
21006         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
21007         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
21008         * modules/dirent (Makefile.am): Substitute it.
21009         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
21010         declaration.
21011         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
21012         fix.
21013         Reported by Christian Weisgerber <naddy@mips.inka.de>.
21014
21015 2010-03-29  Bruno Haible  <bruno@clisp.org>
21016
21017         Emit #pragma system_header after the inclusion guard, not before.
21018         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
21019         guard that spans the entire file, not before. This enables an
21020         optimization in GCC's preprocessor.
21021         * lib/ctype.in.h: Likewise.
21022         * lib/dirent.in.h: Likewise.
21023         * lib/errno.in.h: Likewise.
21024         * lib/float.in.h: Likewise.
21025         * lib/getopt.in.h: Likewise.
21026         * lib/iconv.in.h: Likewise.
21027         * lib/langinfo.in.h: Likewise.
21028         * lib/locale.in.h: Likewise.
21029         * lib/math.in.h: Likewise.
21030         * lib/netdb.in.h: Likewise.
21031         * lib/netinet_in.in.h: Likewise.
21032         * lib/pty.in.h: Likewise.
21033         * lib/sched.in.h: Likewise.
21034         * lib/se-selinux.in.h: Likewise.
21035         * lib/search.in.h: Likewise.
21036         * lib/spawn.in.h: Likewise.
21037         * lib/stdarg.in.h: Likewise.
21038         * lib/stdint.in.h: Likewise.
21039         * lib/string.in.h: Likewise.
21040         * lib/strings.in.h: Likewise.
21041         * lib/sys_file.in.h: Likewise.
21042         * lib/sys_ioctl.in.h: Likewise.
21043         * lib/sys_time.in.h: Likewise.
21044         * lib/sys_times.in.h: Likewise.
21045         * lib/sys_utsname.in.h: Likewise.
21046         * lib/sys_wait.in.h: Likewise.
21047         * lib/sysexits.in.h: Likewise.
21048         * lib/wctype.in.h: Likewise.
21049
21050 2010-03-28  James Youngman  <jay@gnu.org>
21051
21052         save-cwd: don't leak a file descriptor when the caller execs.
21053         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
21054         saved file descriptor.
21055         * modules/save-cwd (Depends-on): Depend on cloexec.
21056
21057 2010-03-29  Bruno Haible  <bruno@clisp.org>
21058
21059         Remove vestiges of fts-lgpl module.
21060         * lib/fts_.h: Assume GNULIB_FTS is 1.
21061         * lib/fts.c: Likewise.
21062         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
21063
21064 2010-03-28  Bruno Haible  <bruno@clisp.org>
21065
21066         Fix definition of tests witness macro.
21067         * gnulib-tool (func_import): Fix definition of witness macro.
21068
21069 2010-03-28  Bruno Haible  <bruno@clisp.org>
21070
21071         Fix ioctl's protoype on glibc systems.
21072         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
21073         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
21074         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
21075         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
21076         signature. If not, arrange to replace the ioctl function.
21077         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
21078         REPLACE_IOCTL.
21079         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
21080         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
21081         Reported by Ludovic Courtès <ludo@gnu.org>.
21082
21083 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
21084
21085         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
21086         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
21087         made it so grep -r --include=GLOB* ... did not work.
21088
21089 2010-03-26  Jim Meyering  <meyering@redhat.com>
21090             Eric Blake  <eblake@redhat.com>
21091
21092         maint.mk: prohibit use of test's -o and -a operators
21093         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
21094
21095 2010-03-28  Bruno Haible  <bruno@clisp.org>
21096
21097         Remove unused GNULIB_XYZ macro definitions.
21098         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
21099         invocation.
21100
21101 2010-03-28  Bruno Haible  <bruno@clisp.org>
21102
21103         Mark privileged tests modules.
21104         * modules/idpriv-drop-tests (Status): New section.
21105         * modules/idpriv-droptemp-tests (Status): New section.
21106
21107 2010-03-28  Bruno Haible  <bruno@clisp.org>
21108
21109         Split C++ tests into separate tests modules.
21110         * modules/dirent-c++-tests: New file, extracted from
21111         modules/dirent-tests.
21112         * modules/dirent-tests: Depend on it.
21113         * modules/fcntl-h-c++-tests: New file, extracted from
21114         modules/fcntl-h-tests.
21115         * modules/fcntl-h-tests: Depend on it.
21116         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
21117         * modules/glob-tests: Depend on it.
21118         * modules/iconv-h-c++-tests: New file, extracted from
21119         modules/iconv-h-tests.
21120         * modules/iconv-h-tests: Depend on it.
21121         * modules/langinfo-c++-tests: New file, extracted from
21122         modules/langinfo-tests.
21123         * modules/langinfo-tests: Depend on it.
21124         * modules/locale-c++-tests: New file, extracted from
21125         modules/locale-tests.
21126         * modules/locale-tests: Depend on it.
21127         * modules/math-c++-tests: New file, extracted from modules/math-tests.
21128         * modules/math-tests: Depend on it.
21129         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
21130         * modules/pty-tests: Depend on it.
21131         * modules/search-c++-tests: New file, extracted from
21132         modules/search-tests.
21133         * modules/search-tests: Depend on it.
21134         * modules/signal-c++-tests: New file, extracted from
21135         modules/signal-tests.
21136         * modules/signal-tests: Depend on it.
21137         * modules/spawn-c++-tests: New file, extracted from
21138         modules/spawn-tests.
21139         * modules/spawn-tests: Depend on it.
21140         * modules/stdio-c++-tests: New file, extracted from
21141         modules/stdio-tests.
21142         * modules/stdio-tests: Depend on it.
21143         * modules/stdlib-c++-tests: New file, extracted from
21144         modules/stdlib-tests.
21145         * modules/stdlib-tests: Depend on it.
21146         * modules/string-c++-tests: New file, extracted from
21147         modules/string-tests.
21148         * modules/string-tests: Depend on it.
21149         * modules/sys_ioctl-c++-tests: New file, extracted from
21150         modules/sys_ioctl-tests.
21151         * modules/sys_ioctl-tests: Depend on it.
21152         * modules/sys_select-c++-tests: New file, extracted from
21153         modules/sys_select-tests.
21154         * modules/sys_select-tests: Depend on it.
21155         * modules/sys_socket-c++-tests: New file, extracted from
21156         modules/sys_socket-tests.
21157         * modules/sys_socket-tests: Depend on it.
21158         * modules/sys_stat-c++-tests: New file, extracted from
21159         modules/sys_stat-tests.
21160         * modules/sys_stat-tests: Depend on it.
21161         * modules/sys_time-c++-tests: New file, extracted from
21162         modules/sys_time-tests.
21163         * modules/sys_time-tests: Depend on it.
21164         * modules/time-c++-tests: New file, extracted from modules/time-tests.
21165         * modules/time-tests: Depend on it.
21166         * modules/unistd-c++-tests: New file, extracted from
21167         modules/unistd-tests.
21168         * modules/unistd-tests: Depend on it.
21169         * modules/wchar-c++-tests: New file, extracted from
21170         modules/wchar-tests.
21171         * modules/wchar-tests: Depend on it.
21172         * modules/wctype-c++-tests: New file, extracted from
21173         modules/wctype-tests.
21174         * modules/wctype-tests: Depend on it.
21175         Reported by Simon Josefsson.
21176
21177 2010-03-28  Bruno Haible  <bruno@clisp.org>
21178
21179         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
21180         * gnulib-tool (func_exists_module): New function, extracted from
21181         func_verify_module.
21182         (func_verify_module): Use it.
21183         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
21184         'foo' only if 'foo' exists.
21185         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
21186         module.
21187
21188 2010-03-28  Bruno Haible  <bruno@clisp.org>
21189
21190         gnulib-tool: Add support for special categories of tests.
21191         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
21192         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
21193         (func_usage): Document them.
21194         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
21195         inc_unportable_tests, inc_all_tests): New variables.
21196         (func_acceptable): Consider these variables.
21197         (func_modules_transitive_closure): Make it work when the 'Status' field
21198         consists of multiple words.
21199         (func_import): Store and restore the values of inc_cxx_tests,
21200         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
21201         inc_all_tests in gnulib-comp.m4.
21202         (func_create_testdir): Set inc_all_tests to true.
21203         * doc/gnulib.texi (Extra tests modules): New section.
21204         Suggested by Jim Meyering.
21205
21206 2010-03-28  Bruno Haible  <bruno@clisp.org>
21207
21208         ansi-c++-opt: Allow turning off the C++ build by default.
21209         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
21210         gl_CXX_CHOICE_DEFAULT_NO is defined.
21211         Requested by Eric Blake.
21212
21213 2010-03-28  Bruno Haible  <bruno@clisp.org>
21214
21215         unistd: Avoid #define replacements in C++ mode.
21216         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
21217         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
21218         setsockopt, shutdown, select): In C++, attach a warning to the function
21219         if possible, rather than #defining the symbol to a dysfunctional alias.
21220         Reported by John W. Eaton <jwe@gnu.org>.
21221
21222 2010-03-28  Bruno Haible  <bruno@clisp.org>
21223
21224         Fix link errors on mingw.
21225         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
21226         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
21227         $(LIBSOCKET).
21228         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
21229         $(LIBSOCKET).
21230
21231 2010-03-28  Bruno Haible  <bruno@clisp.org>
21232             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21233
21234         lib-ignore: Determine different options for different compilers.
21235         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
21236         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
21237         Add comments.
21238         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
21239         * NEWS: Mention the change.
21240
21241 2010-03-27  Bruno Haible  <bruno@clisp.org>
21242
21243         Remove unused GNULIB_XYZ macro definitions.
21244         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
21245         * modules/fseek (configure.ac): Likewise.
21246         * modules/ioctl (configure.ac): Likewise.
21247         * modules/open (configure.ac): Likewise.
21248         * modules/stdlib-safer (configure.ac): Likewise.
21249
21250 2010-03-27  Bruno Haible  <bruno@clisp.org>
21251
21252         Add a remark about certain modules.
21253         * modules/malloc (Comment): New section.
21254         * modules/realloc (Comment): Likewise.
21255         * modules/sigpipe (Comment): Likewise.
21256
21257 2010-03-27  Bruno Haible  <bruno@clisp.org>
21258
21259         Resolve conflict between the two kinds of module indicators.
21260         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
21261         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
21262         * modules/canonicalize (configure.ac): Invoke
21263         gl_MODULE_INDICATOR_FOR_TESTS.
21264         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
21265         GNULIB_XYZ.
21266         * tests/test-dirent-c++.cc: Likewise.
21267         * tests/test-dirent-safer.c: Likewise.
21268         * tests/test-dup2.c: Likewise.
21269         * tests/test-fchdir.c: Likewise.
21270         * tests/test-fcntl-h-c++.cc: Likewise.
21271         * tests/test-getopt.c: Likewise.
21272         * tests/test-getopt.h: Likewise.
21273         * tests/test-langinfo-c++.cc: Likewise.
21274         * tests/test-locale-c++.cc: Likewise.
21275         * tests/test-math-c++.cc: Likewise.
21276         * tests/test-pty-c++.cc: Likewise.
21277         * tests/test-search-c++.cc: Likewise.
21278         * tests/test-signal-c++.cc: Likewise.
21279         * tests/test-spawn-c++.cc: Likewise.
21280         * tests/test-stdio-c++.cc: Likewise.
21281         * tests/test-stdlib-c++.cc: Likewise.
21282         * tests/test-string-c++.cc: Likewise.
21283         * tests/test-sys_ioctl-c++.cc: Likewise.
21284         * tests/test-sys_select-c++.cc: Likewise.
21285         * tests/test-sys_socket-c++.cc: Likewise.
21286         * tests/test-sys_stat-c++.cc: Likewise.
21287         * tests/test-sys_time-c++.cc: Likewise.
21288         * tests/test-time-c++.cc: Likewise.
21289         * tests/test-unistd-c++.cc: Likewise.
21290         * tests/test-wchar-c++.cc: Likewise.
21291         * tests/uninorm/test-u8-nfc.c: Likewise.
21292         * tests/uninorm/test-u8-nfd.c: Likewise.
21293         * tests/uninorm/test-u8-nfkc.c: Likewise.
21294         * tests/uninorm/test-u8-nfkd.c: Likewise.
21295         * tests/uninorm/test-u16-nfc.c: Likewise.
21296         * tests/uninorm/test-u16-nfd.c: Likewise.
21297         * tests/uninorm/test-u16-nfkc.c: Likewise.
21298         * tests/uninorm/test-u16-nfkd.c: Likewise.
21299         * tests/uninorm/test-u32-nfc.c: Likewise.
21300         * tests/uninorm/test-u32-nfc-big.c: Likewise.
21301         * tests/uninorm/test-u32-nfd.c: Likewise.
21302         * tests/uninorm/test-u32-nfd-big.c: Likewise.
21303         * tests/uninorm/test-u32-nfkc.c: Likewise.
21304         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
21305         * tests/uninorm/test-u32-nfkd.c: Likewise.
21306         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
21307         * tests/uninorm/test-u32-normalize-big.c: Likewise.
21308
21309 2010-03-27  Bruno Haible  <bruno@clisp.org>
21310
21311         Distinguish two kinds of module indicators.
21312         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
21313         gl_MODULE_INDICATOR.
21314         (gl_MODULE_INDICATOR): New macro.
21315         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
21316         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
21317         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
21318         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
21319         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
21320         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
21321         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
21322         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
21323         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
21324         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
21325         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
21326         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
21327         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
21328         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
21329         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
21330         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
21331         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
21332         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
21333         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
21334         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
21335         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
21336         * modules/cloexec (configure.ac): Likewise.
21337         * modules/getopt-gnu (configure.ac): Likewise.
21338         * modules/uninorm/u8-normalize (configure.ac): Likewise.
21339         * modules/uninorm/u16-normalize (configure.ac): Likewise.
21340         * modules/uninorm/u32-normalize (configure.ac): Likewise.
21341         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
21342
21343 2010-03-27  Bruno Haible  <bruno@clisp.org>
21344
21345         New module description field 'Comment'.
21346         * gnulib-tool: New option --extract-comment.
21347         (func_usage): Document it.
21348         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
21349         (func_get_comment): New function.
21350         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
21351
21352 2010-03-27  Bruno Haible  <bruno@clisp.org>
21353
21354         Addendum to 2010-02-07 commit.
21355         * gnulib-tool (func_usage): Document --extract-applicability option.
21356
21357 2010-03-27  Bruno Haible  <bruno@clisp.org>
21358
21359         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
21360         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
21361         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
21362         rather than link errors.
21363
21364 2010-03-27  Bruno Haible  <bruno@clisp.org>
21365
21366         Avoid side effects from tests-related modules on the compilation of lib.
21367         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
21368         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
21369         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
21370         parameter. Emit into AM_CPPFLAGS a definition of the designated C
21371         macro.
21372         (func_import): Define a witness macro. Assign it a value that depends
21373         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
21374         tests-related modules.
21375         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
21376         Reported by Jim Meyering.
21377
21378 2010-03-27  Bruno Haible  <bruno@clisp.org>
21379
21380         Factorize common .m4 code.
21381         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
21382         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
21383         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
21384         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
21385         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
21386         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
21387         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
21388         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
21389         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
21390         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
21391         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
21392         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
21393         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
21394         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
21395         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
21396         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
21397         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
21398         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
21399         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
21400         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
21401         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
21402         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
21403         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
21404         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
21405         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
21406         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
21407         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
21408         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
21409         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
21410         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
21411         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
21412         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
21413
21414 2010-03-27  Bruno Haible  <bruno@clisp.org>
21415
21416         Fix a compilation error on Cygwin with g++ >= 4.3.
21417         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
21418         if it is undefined or if we alias it to chmod.
21419         (lstat): Don't warn about the use of this function if it is undefined
21420         or if we alias it to stat.
21421         Reported by Simon Josefsson.
21422
21423 2010-03-27  Bruno Haible  <bruno@clisp.org>
21424
21425         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
21426         * modules/getlogin (configure.ac): Update.
21427
21428         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
21429         * modules/getlogin_r (configure.ac): Update.
21430
21431         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
21432         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
21433         * modules/inet_ntop (configure.ac): Update.
21434
21435         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
21436         * modules/inet_pton (configure.ac): Update.
21437
21438         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
21439         * modules/mbslen (configure.ac): Update.
21440
21441         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
21442         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
21443         * modules/forkpty (configure.ac): Update.
21444         * modules/openpty (configure.ac): Update.
21445
21446 2010-03-26  Simon Josefsson  <simon@josefsson.org>
21447
21448         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
21449         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
21450
21451 2010-03-25  Eric Blake  <eblake@redhat.com>
21452
21453         maint: use pragma consistently across replacement headers
21454         * lib/ctype.in.h (system_header): Hoist for consistent placement.
21455         * lib/dirent.in.h (system_header): Likewise.
21456         * lib/errno.in.h (system_header): Likewise.
21457         * lib/float.in.h (system_header): Likewise.
21458         * lib/getopt.in.h (system_header): Likewise.
21459         * lib/iconv.in.h (system_header): Likewise.
21460         * lib/inttypes.in.h (system_header): Likewise.
21461         * lib/langinfo.in.h (system_header): Likewise.
21462         * lib/locale.in.h (system_header): Likewise.
21463         * lib/math.in.h (system_header): Likewise.
21464         * lib/netdb.in.h (system_header): Likewise.
21465         * lib/netinet_in.in.h (system_header): Likewise.
21466         * lib/pty.in.h (system_header): Likewise.
21467         * lib/sched.in.h (system_header): Likewise.
21468         * lib/se-selinux.in.h (system_header): Likewise.
21469         * lib/search.in.h (system_header): Likewise.
21470         * lib/spawn.in.h (system_header): Likewise.
21471         * lib/stdarg.in.h (system_header): Likewise.
21472         * lib/stdint.in.h (system_header): Likewise.
21473         * lib/string.in.h (system_header): Likewise.
21474         * lib/strings.in.h (system_header): Likewise.
21475         * lib/sys_file.in.h (system_header): Likewise.
21476         * lib/sys_ioctl.in.h (system_header): Likewise.
21477         * lib/sys_socket.in.h (system_header): Likewise.
21478         * lib/sys_times.in.h (system_header): Likewise.
21479         * lib/sys_utsname.in.h (system_header): Likewise.
21480         * lib/sys_wait.in.h (system_header): Likewise.
21481         * lib/sysexits.in.h (system_header): Likewise.
21482         * lib/unistd.in.h (system_header): Likewise.
21483         * lib/wctype.in.h (system_header): Likewise.
21484
21485         arpa/inet: fix mingw compilation warning
21486         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
21487         Reported by Matthew Bolte.
21488
21489 2010-03-25  Bruno Haible  <bruno@clisp.org>
21490
21491         Avoid collision between gnulib wrapper and libintl wrapper.
21492         * lib/printf.c (printf): Don't define if a printf wrapper is already
21493         defined in intl/printf.c.
21494         Reported by Michel Boaventura <michel@michelboaventura.com>.
21495
21496 2010-03-25  Bruno Haible  <bruno@clisp.org>
21497
21498         Use ANSI C.
21499         * lib/readutmp.h (getutent): Provide ANSI C prototype.
21500
21501 2010-03-25  Bruno Haible  <bruno@clisp.org>
21502
21503         Minor formatting changes.
21504         * lib/acosl.c: Insert space before function argument list.
21505         * lib/argz.c: Likewise.
21506         * lib/asinl.c: Likewise.
21507         * lib/expl.c: Likewise.
21508         * lib/gen-uni-tables.c: Likewise.
21509         * lib/gettext.h: Likewise.
21510         * lib/glthread/lock.h: Likewise.
21511         * lib/tanl.c: Likewise.
21512         * lib/uniname/uniname.c: Likewise.
21513         * tests/test-idpriv-drop.c: Likewise.
21514         * tests/test-idpriv-droptemp.c: Likewise.
21515         * tests/test-lock.c: Likewise.
21516         * tests/test-tls.c: Likewise.
21517         * lib/argp-help.c: Insert space before function-like macro argument
21518         list.
21519         * lib/memcmp.c: Likewise.
21520         * tests/test-base64.c: Likewise.
21521         * lib/localename.c: Insert space before sizeof's argument list.
21522         * lib/safe-alloc.h: Likewise.
21523         * lib/file-set.h: Insert space before macro argument list.
21524         * tests/test-argp.c: Likewise.
21525         * lib/argp-namefrob.h: Insert space before function parameter list.
21526         * lib/getaddrinfo.c: Likewise.
21527         * lib/netdb.in.h: Likewise.
21528         * lib/parse-duration.h: Likewise.
21529         * lib/parse-duration.c: Likewise.
21530         * lib/poll.c: Likewise.
21531         * lib/select.c: Likewise.
21532         * lib/trim.h: Likewise.
21533         * tests/test-usleep.c: Likewise.
21534         * lib/ldexpl.c: Insert space before function parameter list and before
21535         function argument list.
21536         * lib/logl.c: Likewise.
21537         * lib/sqrtl.c: Likewise.
21538         * lib/trim.c: Likewise.
21539         * lib/cosl.c: Use GNU style indentation. Insert space before function
21540         argument list.
21541         * lib/sinl.c: Likewise.
21542         * lib/tsearch.c: Insert space after 'for'.
21543         Reported by Jim Meyering.
21544
21545 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
21546
21547         * maint.mk (sc_Wundef_boolean): Check for the presence of the
21548         config header before grepping, as it's not present before
21549         autoreconf/configure are run.  Reported by Simon Josefsson.
21550
21551 2010-03-23  Bruno Haible  <bruno@clisp.org>
21552
21553         pt_chown: Make it work with automake < 1.11.
21554         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
21555         Reported by Simon Josefsson.
21556
21557 2010-03-23  Bruno Haible  <bruno@clisp.org>
21558
21559         pt_chown: Don't depend on GPLed modules.
21560         * lib/pt_chown.c: Don't include idpriv.h.
21561         (main): Don't drop privileges.
21562         * modules/pt_chown (Depends-on): Remove idpriv-drop.
21563         Reported by Simon Josefsson.
21564
21565 2010-03-24  Simon Josefsson  <simon@josefsson.org>
21566
21567         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
21568         suggestions from karl@freefriends.org (Karl Berry).
21569
21570 2010-03-22  Eric Blake  <eblake@redhat.com>
21571
21572         gethostname: further tweaks
21573         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
21574         are overriding gethostname.
21575         Suggested by Bruno Haible.
21576
21577 2010-03-21  Bruno Haible  <bruno@clisp.org>
21578
21579         Fix comments.
21580         * lib/forkpty.c (rpl_forkpty): Fix comment.
21581         * lib/openpty.c (rpl_openpty): Likewise.
21582         Reported by Eric Blake.
21583
21584 2010-03-22  Eric Blake  <eblake@redhat.com>
21585
21586         gethostname: fix build on mingw
21587         * lib/unistd.in.h (includes): Work around fact that mingw
21588         <winsock2.h> re-includes <unistd.h>, by avoiding any
21589         redeclarations if we are being included by <winsock2.h>.
21590         Reported by Matthias Bolte.
21591
21592 2010-03-21  Bruno Haible  <bruno@clisp.org>
21593
21594         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
21595         * lib/forkpty.c (forkpty): New replacement function, from glibc with
21596         modifications.
21597         * lib/pty.in.h (forkpty): Update declaration. Add comments.
21598         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
21599         provide the replacement.
21600         * modules/forkpty (Depends-on): Add openpty, login_tty.
21601         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
21602         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
21603         * doc/glibc-functions/forkpty.texi: More supported platforms.
21604         * config/srclist.txt: Add forkpty.c (commented).
21605
21606 2010-03-21  Bruno Haible  <bruno@clisp.org>
21607
21608         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
21609         (Makefile.am): Verify that PTY_LIB is defined.
21610
21611         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
21612
21613 2010-03-21  Bruno Haible  <bruno@clisp.org>
21614
21615         Tests for module 'login_tty'.
21616         * modules/login_tty-tests: New file.
21617         * tests/test-login_tty.c: New file.
21618
21619         New module 'login_tty'.
21620         * lib/login_tty.c: New file.
21621         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
21622         * modules/login_tty: New file.
21623         * doc/glibc-functions/login_tty.texi: Mention the new module.
21624
21625 2010-03-21  Bruno Haible  <bruno@clisp.org>
21626
21627         login_tty: Documentation.
21628         * doc/glibc-functions/login_tty.texi: New file.
21629         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
21630
21631 2010-03-21  Bruno Haible  <bruno@clisp.org>
21632
21633         pty: Consistent macro naming.
21634         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
21635         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
21636         * modules/pty (configure.ac): Update.
21637
21638 2010-03-21  Bruno Haible  <bruno@clisp.org>
21639
21640         Tests for openpty: Make stricter.
21641         * tests/test-openpty.c (main): Add test of canonical processing and
21642         erase.
21643         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
21644
21645         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
21646         * lib/openpty.c (openpty): New replacement function.
21647         * lib/pty.in.h: Include <termios.h>.
21648         (openpty): Update declaration. Add comments.
21649         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
21650         is not declared, arrange to provide the replacement. Check for _getpty
21651         and posix_openpt.
21652         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
21653         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
21654         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
21655         * modules/pty-tests (test_pty_c___LDADD): New variable.
21656         * doc/glibc-functions/openpty.texi: More supported platforms.
21657
21658 2010-03-21  Bruno Haible  <bruno@clisp.org>
21659
21660         setenv: Tweaks.
21661         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
21662         the test program.
21663         * doc/posix-functions/setenv.texi: Update platforms list.
21664
21665 2010-03-21  Bruno Haible  <bruno@clisp.org>
21666
21667         New module 'unlockpt'.
21668         * lib/unlockpt.c: New file, from glibc with modifications.
21669         * m4/unlockpt.m4: New file.
21670         * modules/unlockpt: New file.
21671         * lib/stdlib.in.h (unlockpt): New declaration.
21672         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
21673         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
21674         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
21675         HAVE_UNLOCKPT.
21676         * doc/posix-functions/unlockpt.texi: Mention the new module.
21677         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
21678         * config/srclist.txt: Add unlockpt.c (commented).
21679
21680 2010-03-21  Jim Meyering  <meyering@redhat.com>
21681
21682         maint.mk: prohibit inclusion of "intprops.h" without use
21683         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
21684
21685 2010-03-21  Bruno Haible  <bruno@clisp.org>
21686
21687         New module 'grantpt'.
21688         * lib/grantpt.c: New file, from glibc with modifications.
21689         * m4/grantpt.m4: New file.
21690         * modules/grantpt: New file.
21691         * lib/stdlib.in.h (grantpt): New declaration.
21692         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
21693         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
21694         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
21695         HAVE_GRANTPT.
21696         * doc/posix-functions/grantpt.texi: Mention the new module.
21697         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
21698         * config/srclist.txt: Add grantpt.c (commented).
21699
21700 2010-03-21  Bruno Haible  <bruno@clisp.org>
21701
21702         New module 'pt_chown'.
21703         * lib/pt_chown.c: New file, from glibc with modifications.
21704         * lib/pty-private.h: New file, from glibc with modifications.
21705         * modules/pt_chown: New file.
21706         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
21707
21708 2010-03-21  Bruno Haible  <bruno@clisp.org>
21709
21710         Tests for module 'ptsname'.
21711         * modules/ptsname-tests: New file.
21712         * tests/test-ptsname.c: New file.
21713
21714         New module 'ptsname'.
21715         * lib/ptsname.c: New file, from glibc with modifications.
21716         * m4/ptsname.m4: New file.
21717         * modules/ptsname: New file.
21718         * lib/stdlib.in.h (ptsname): New declaration.
21719         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
21720         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
21721         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
21722         HAVE_PTSNAME.
21723         * doc/posix-functions/ptsname.texi: Mention the new module.
21724         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
21725         * config/srclist.txt: Add ptsname.c (commented).
21726
21727 2010-03-21  Bruno Haible  <bruno@clisp.org>
21728
21729         Tests for module 'ttyname_r'.
21730         * modules/ttyname_r-tests: New file.
21731         * tests/test-ttyname_r.c: New file.
21732
21733         New module 'ttyname_r'.
21734         * lib/ttyname_r.c: New file.
21735         * m4/ttyname_r.m4: New file.
21736         * modules/ttyname_r: New file.
21737         * lib/unistd.in.h (ttyname_r): New declaration.
21738         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
21739         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
21740         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
21741         HAVE_TTYNAME_R.
21742         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
21743         * doc/posix-functions/ttyname_r.texi: Mention the new module.
21744
21745 2010-03-20  Bruno Haible  <bruno@clisp.org>
21746
21747         signal: Undefine macro definitions in C++ mode.
21748         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
21749         sigfillset): Undefine macro definitions from the system header in C++
21750         mode.
21751         Reported by John W. Eaton <jwe@gnu.org>.
21752
21753 2010-03-20  Bruno Haible  <bruno@clisp.org>
21754
21755         Ensure no #include statements inside extern "C" { ... }.
21756         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
21757         contain #include statements.
21758         * lib/time.in.h: Likewise.
21759
21760 2010-03-20  Bruno Haible  <bruno@clisp.org>
21761
21762         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
21763         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
21764         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
21765         Reported by John W. Eaton <jwe@gnu.org>.
21766
21767 2010-03-20  Bruno Haible  <bruno@clisp.org>
21768
21769         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
21770         Reported by Jim Meyering.
21771
21772 2010-03-20  Bruno Haible  <bruno@clisp.org>
21773
21774         pipe: Set errno upon failure.
21775         * lib/pipe.h: Specify that when -1 is returned, errno is set.
21776         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
21777         errno value in error message.
21778
21779 2010-03-20  Bruno Haible  <bruno@clisp.org>
21780             Jim Meyering  <meyering@redhat.com>
21781
21782         lchown: Avoid "unused variable" warning.
21783         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
21784
21785 2010-03-20  Bruno Haible  <bruno@clisp.org>
21786
21787         Work around unlink() bug on MacOS X 10.5.6.
21788         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
21789         attempting to unlink a parent directory.
21790         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
21791         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
21792         activate for the replacement function.
21793         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
21794
21795 2010-03-20  Bruno Haible  <bruno@clisp.org>
21796
21797         Fix link errors on Solaris 8.
21798         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
21799         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
21800
21801 2010-03-19  Jim Meyering  <meyering@redhat.com>
21802
21803         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
21804         The _LIBC implementation of build_range_exp correctly honors the
21805         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
21806         However, the non-_LIBC implementation would ignore that syntax-bit
21807         flag and return REG_ERANGE unconditionally.
21808         This change makes it honor that flag.
21809         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
21810         Make two pointer parameters "const".
21811         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
21812         (parse_bracket_exp): Update caller.
21813
21814         regex.m4: correct the reversed range endpoint ([b-a]) test
21815         * m4/regex.m4: When requiring that [b-a] evoke failure,
21816         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
21817         test pass once again for x86-based systems.
21818
21819 2010-03-19  Bruno Haible  <bruno@clisp.org>
21820
21821         scandir: Fix link error on Solaris 8.
21822         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
21823         macros.
21824
21825 2010-03-19  Bruno Haible  <bruno@clisp.org>
21826
21827         getusershell: Fix documentation.
21828         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
21829         module.
21830         * doc/glibc-functions/setusershell.texi: Likewise.
21831
21832         getusershell: Provide declaration, missing on Solaris 9.
21833         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
21834         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
21835         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
21836         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
21837         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
21838         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
21839         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
21840         HAVE_GETUSERSHELL.
21841         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
21842
21843 2010-03-19  Bruno Haible  <bruno@clisp.org>
21844
21845         wctype: Provide iswblank function.
21846         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
21847         exists and is fine.
21848         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
21849         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
21850         * tests/test-wctype.c (main): Re-enable the iswblank tests.
21851         * doc/posix-functions/iswblank.texi: Update.
21852
21853 2010-03-19  Bruno Haible  <bruno@clisp.org>
21854
21855         Tests of module 'pty' in C++ mode.
21856         * modules/pty-tests: New file.
21857         * tests/test-pty-c++.cc: New file.
21858         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
21859
21860 2010-03-19  Eric Blake  <eblake@redhat.com>
21861
21862         logb: fix documentation
21863         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
21864         1.5 declaration bug.
21865
21866         forkpty, openpty: prefer glibc's const-safe prototype
21867         * lib/forkpty.c (rpl_forkpty): New file.
21868         * lib/openpty.c (rpl_openpty): Likewise.
21869         * modules/forkpty (Files): Distribute it.
21870         * modules/openpty (Files): Likewise.
21871         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
21872         check...
21873         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
21874         replacement for for non-const BSD signature.
21875         * modules/pty (Makefile.am): Substitute witnesses.
21876         * lib/pty.in.h (forkpty, openpty): Declare replacements.
21877         * tests/test-forkpty.c: Update signature check.
21878         * tests/test-openpty.c: Likewise.
21879         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
21880         * doc/glibc-functions/openpty.texi (openpty): Likewise.
21881
21882         forkpty, openpty: split functions into new modules
21883         * modules/pty (Makefile.am): Substitute new witnesses.
21884         (Libraries): Move library detection...
21885         * modules/forkpty: ...into new module.
21886         * modules/openpty: Another new module.
21887         * modules/pty-tests: Rename and split...
21888         * modules/forkpty-tests: ...to this...
21889         * modules/openpty-tests: ...and this.
21890         * tests/test-pty.c: Rename and split...
21891         * tests/test-forkpty.c: ...to this...
21892         * tests/test-openpty.c: ...and this.
21893         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
21894         (gl_PTY): Split library searching...
21895         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
21896         (gl_FORKPTY, gl_OPENPTY): New macros.
21897         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
21898         * NEWS: Mention the split.
21899         * MODULES.html.sh (Misc): Document the modules.
21900         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
21901         * doc/glibc-functions/openpty.texi (openpty): Likewise.
21902
21903         pty: improve replacement header
21904         * lib/pty.in.h: New file.
21905         * modules/pty (Files): Ship it.
21906         (Makefile.am): Always build replacement.
21907         * m4/pty.m4: Rename...
21908         * m4/pty_h.m4: ...to this.
21909         (gl_PTY): Modernize setting of witness macros; update check of
21910         forkpty to take proper advantage of cache.
21911         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
21912
21913         getopt: avoid compiler warning
21914         * lib/getopt.c (attribute_hidden): Remove unused macro.
21915
21916 2010-03-18  Bruno Haible  <bruno@clisp.org>
21917
21918         Fix link errors on Solaris 8.
21919         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
21920         * modules/search-tests (test_search_c___LDADD): Likewise.
21921         * modules/signal-tests (test_signal_c___LDADD): Likewise.
21922         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
21923         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
21924         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
21925         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
21926         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
21927         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
21928
21929 2010-03-18  Bruno Haible  <bruno@clisp.org>
21930
21931         Fix bug introduced on 2010-03-14.
21932         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
21933         (gl_SPAWN_H): Require it.
21934         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
21935         Reported by Simon Josefsson.
21936
21937 2010-03-18  Bruno Haible  <bruno@clisp.org>
21938
21939         Fix typo introduced on 2009-12-31.
21940         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
21941         posix_spawn_file_actions_adddup2.
21942
21943 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
21944         and Eric Blake  <eblake@redhat.com>
21945
21946         test-vc-list-files-git: make more robust
21947         * tests/test-vc-list-files-git.sh: Unset problematic environment
21948         variables.  Chain commands together.
21949
21950 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
21951
21952         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
21953         `AC_CHECK_DECL' invocation.
21954
21955 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
21956
21957         * lib/inttostr.c (inttostr): Make sure the invocation of verify
21958         appears before executable statements. Suggested by Petr Sumbera
21959         <Petr.Sumbera@Sun.COM>.
21960
21961 2010-03-14  Bruno Haible  <bruno@clisp.org>
21962
21963         * tests/test-flock.c (test_exclusive): Comment out a test that causes
21964         portability problems. Instead use a simpler test.
21965         (main): Check that invalid arguments are rejected only on Linux.
21966
21967 2010-03-14  Bruno Haible  <bruno@clisp.org>
21968
21969         Fix bug introduced on 2009-12-31.
21970         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
21971         gl_PREREQ_SYS_H_WINSOCK2 always.
21972         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
21973         SYS_SOCKET_H variable.
21974         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
21975         Update comments.
21976         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
21977         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
21978         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
21979         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
21980         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
21981
21982 2010-03-14  Bruno Haible  <bruno@clisp.org>
21983
21984         Fix values returned by sinl, cosl.
21985         * lib/trigl.h: Add specification comments.
21986         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
21987         that combines the values from the precomputed table with the values of
21988         the Chebyshev polynomials.
21989
21990 2010-03-14  Bruno Haible  <bruno@clisp.org>
21991
21992         Fix compilation error when modules 'posix_spawn[p]' are not used.
21993         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
21994         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
21995
21996 2010-03-14  Bruno Haible  <bruno@clisp.org>
21997
21998         Fix compilation error on mingw when module 'time_r' is not used.
21999         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
22000         is 1.
22001         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
22002         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
22003         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
22004         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
22005
22006 2010-03-14  Bruno Haible  <bruno@clisp.org>
22007
22008         Fix compilation error with Sun C.
22009         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
22010         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
22011         instead of GCC specific ULONG_LONG_MAX.
22012         * lib/xstrtoll.c: Likewise.
22013         * lib/xstrtoull.c: Likewise.
22014
22015 2010-03-13  Bruno Haible  <bruno@clisp.org>
22016
22017         Allow the user to disable C++ code and tests.
22018         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
22019         (gl_PROG_ANSI_CXX): Require it.
22020
22021 2010-03-13  Bruno Haible  <bruno@clisp.org>
22022
22023         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
22024         cases.
22025
22026 2010-03-13  Bruno Haible  <bruno@clisp.org>
22027
22028         Test that gnulib does not break the standard C++ headers.
22029         * tests/test-locale-c++2.cc: New file.
22030         * modules/locale-tests (Files): Add it.
22031         (Makefile.am): Compile it for test-locale-c++.
22032         * tests/test-math-c++2.cc: New file.
22033         * modules/math-tests (Files): Add it.
22034         (Makefile.am): Compile it for test-math-c++.
22035         * tests/test-signal-c++2.cc: New file.
22036         * modules/signal-tests (Files): Add it.
22037         (Makefile.am): Compile it for test-signal-c++.
22038         * tests/test-stdio-c++2.cc: New file.
22039         * modules/stdio-tests (Files): Add it.
22040         (Makefile.am): Compile it for test-stdio-c++.
22041         * tests/test-stdlib-c++2.cc: New file.
22042         * modules/stdlib-tests (Files): Add it.
22043         (Makefile.am): Compile it for test-stdlib-c++.
22044         * tests/test-string-c++2.cc: New file.
22045         * modules/string-tests (Files): Add it.
22046         (Makefile.am): Compile it for test-string-c++.
22047         * tests/test-time-c++2.cc: New file.
22048         * modules/time-tests (Files): Add it.
22049         (Makefile.am): Compile it for test-time-c++.
22050         Reported by John W. Eaton <jwe@gnu.org>.
22051
22052 2010-03-13  Bruno Haible  <bruno@clisp.org>
22053
22054         * gnulib-tool (func_usage): Clarify which options are available for
22055         --create-testdir and --create-megatestdir.
22056
22057 2010-03-13  Bruno Haible  <bruno@clisp.org>
22058
22059         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
22060         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
22061         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
22062         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
22063         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
22064         when appropriate.
22065         Reported by Jim Meyering.
22066
22067 2010-03-12  Simon Josefsson  <simon@josefsson.org>
22068
22069         * gnulib-tool (func_import): Explain origin of code.
22070
22071 2010-03-12  Bruno Haible  <bruno@clisp.org>
22072
22073         Fix problem with automake's definition of CXXLINK.
22074         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
22075         Reported by Simon Josefsson and Ludovic Courtès.
22076
22077 2010-03-12  Bruno Haible  <bruno@clisp.org>
22078
22079         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
22080         stable releases.
22081
22082 2010-03-11  Bruno Haible  <bruno@clisp.org>
22083
22084         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
22085         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
22086         whether the system provides one variant or multiple variants of the
22087         function.
22088         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
22089         C++ compilers.
22090         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
22091         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
22092         Reported by Jim Meyering.
22093
22094 2010-03-09  Simon Josefsson  <simon@josefsson.org>
22095
22096         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
22097
22098 2010-03-08  Bruno Haible  <bruno@clisp.org>
22099
22100         gnulib-tool: Add support for --libtool in --create-testdir.
22101         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
22102         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
22103
22104 2010-03-08  Eric Blake  <eblake@redhat.com>
22105
22106         gnulib-tool.texi: mention possibility of git submodule
22107         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
22108         submodules.
22109         * doc/.gitignore: Ignore another generated file.
22110
22111 2010-03-08  Karl Berry  <karl@gnu.org>
22112
22113         * doc/gnulib-tool.texi (VCS Issues): Mention third option
22114         of committing gnulib files while skipping others.
22115
22116 2010-03-07  Bruno Haible  <bruno@clisp.org>
22117
22118         Tests of module 'wctype' in C++ mode.
22119         * tests/test-wctype-c++.cc: New file.
22120         * modules/wctype-tests (Files): Add it and tests/signature.h.
22121         (Depends-on): Add ansi-c++-opt.
22122         (Makefile.am): Arrange to compile and run test-wctype-c++.
22123
22124         Tests of module 'wchar' in C++ mode.
22125         * tests/test-wchar-c++.cc: New file.
22126         * modules/wchar-tests (Files): Add it and tests/signature.h.
22127         (Depends-on): Add ansi-c++-opt.
22128         (Makefile.am): Arrange to compile and run test-wchar-c++.
22129         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
22130         gl_MODULE_INDICATOR.
22131
22132         Tests of module 'unistd' in C++ mode.
22133         * tests/test-unistd-c++.cc: New file.
22134         * modules/unistd-tests (Files): Add it and tests/signature.h.
22135         (Depends-on): Add ansi-c++-opt.
22136         (Makefile.am): Arrange to compile and run test-unistd-c++.
22137         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
22138         gl_MODULE_INDICATOR.
22139
22140         Tests of module 'time' in C++ mode.
22141         * tests/test-time-c++.cc: New file.
22142         * modules/time-tests (Files): Add it and tests/signature.h.
22143         (Depends-on): Add ansi-c++-opt.
22144         (Makefile.am): Arrange to compile and run test-time-c++.
22145         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
22146
22147         Tests of module 'sys_time' in C++ mode.
22148         * tests/test-sys_time-c++.cc: New file.
22149         * modules/sys_time-tests (Files): Add it and tests/signature.h.
22150         (Depends-on): Add ansi-c++-opt.
22151         (Makefile.am): Arrange to compile and run test-sys_time-c++.
22152         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
22153         gl_MODULE_INDICATOR.
22154
22155         Tests of module 'sys_stat' in C++ mode.
22156         * tests/test-sys_stat-c++.cc: New file.
22157         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
22158         (Depends-on): Add ansi-c++-opt.
22159         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
22160         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
22161         gl_MODULE_INDICATOR.
22162
22163         Tests of module 'sys_socket' in C++ mode.
22164         * tests/test-sys_socket-c++.cc: New file.
22165         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
22166         (Depends-on): Add ansi-c++-opt.
22167         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
22168         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
22169         gl_MODULE_INDICATOR.
22170
22171         Tests of module 'sys_select' in C++ mode.
22172         * tests/test-sys_select-c++.cc: New file.
22173         * modules/sys_select-tests (Files): Add it and tests/signature.h.
22174         (Depends-on): Add ansi-c++-opt.
22175         (Makefile.am): Arrange to compile and run test-sys_select-c++.
22176         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
22177         gl_MODULE_INDICATOR.
22178
22179         Tests of module 'sys_ioctl' in C++ mode.
22180         * tests/test-sys_ioctl-c++.cc: New file.
22181         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
22182         (Depends-on): Add ansi-c++-opt.
22183         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
22184         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
22185         gl_MODULE_INDICATOR.
22186
22187         Tests of module 'string' in C++ mode.
22188         * tests/test-string-c++.cc: New file.
22189         * modules/string-tests (Files): Add it and tests/signature.h.
22190         (Depends-on): Add ansi-c++-opt.
22191         (Makefile.am): Arrange to compile and run test-string-c++.
22192         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
22193         gl_MODULE_INDICATOR.
22194
22195         Tests of module 'stdlib' in C++ mode.
22196         * tests/test-stdlib-c++.cc: New file.
22197         * modules/stdlib-tests (Files): Add it and tests/signature.h.
22198         (Depends-on): Add ansi-c++-opt.
22199         (Makefile.am): Arrange to compile and run test-stdlib-c++.
22200         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
22201         gl_MODULE_INDICATOR.
22202
22203         Tests of module 'stdio' in C++ mode.
22204         * tests/test-stdio-c++.cc: New file.
22205         * modules/stdio-tests (Files): Add it and tests/signature.h.
22206         (Depends-on): Add ansi-c++-opt.
22207         (Makefile.am): Arrange to compile and run test-stdio-c++.
22208         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
22209         gl_MODULE_INDICATOR.
22210
22211         Tests of module 'spawn' in C++ mode.
22212         * tests/test-spawn-c++.cc: New file.
22213         * modules/spawn-tests (Files): Add it and tests/signature.h.
22214         (Depends-on): Add ansi-c++-opt.
22215         (Makefile.am): Arrange to compile and run test-spawn-c++.
22216         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
22217         gl_MODULE_INDICATOR.
22218
22219         Tests of module 'signal' in C++ mode.
22220         * tests/test-signal-c++.cc: New file.
22221         * modules/signal-tests (Files): Add it and tests/signature.h.
22222         (Depends-on): Add ansi-c++-opt.
22223         (Makefile.am): Arrange to compile and run test-signal-c++.
22224         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
22225         gl_MODULE_INDICATOR.
22226
22227         Tests of module 'search' in C++ mode.
22228         * tests/test-search-c++.cc: New file.
22229         * modules/search-tests (Files): Add it and tests/signature.h.
22230         (Depends-on): Add ansi-c++-opt.
22231         (Makefile.am): Arrange to compile and run test-search-c++.
22232         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
22233         gl_MODULE_INDICATOR.
22234
22235         Tests of module 'math' in C++ mode.
22236         * tests/test-math-c++.cc: New file.
22237         * modules/math-tests (Files): Add it and tests/signature.h.
22238         (Depends-on): Add ansi-c++-opt.
22239         (Makefile.am): Arrange to compile and run test-math-c++.
22240         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
22241
22242         Tests of module 'locale' in C++ mode.
22243         * tests/test-locale-c++.cc: New file.
22244         * modules/locale-tests (Files): Add it and tests/signature.h.
22245         (Depends-on): Add ansi-c++-opt.
22246         (Makefile.am): Arrange to compile and run test-locale-c++.
22247         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
22248         gl_MODULE_INDICATOR.
22249
22250         Tests of module 'langinfo' in C++ mode.
22251         * tests/test-langinfo-c++.cc: New file.
22252         * modules/langinfo-tests (Files): Add it and tests/signature.h.
22253         (Depends-on): Add ansi-c++-opt.
22254         (Makefile.am): Arrange to compile and run test-langinfo-c++.
22255         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
22256         gl_MODULE_INDICATOR.
22257
22258         Tests of module 'iconv-h' in C++ mode.
22259         * tests/test-iconv-h-c++.cc: New file.
22260         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
22261         (Depends-on): Add ansi-c++-opt.
22262         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
22263
22264         Tests of module 'glob' in C++ mode.
22265         * tests/test-glob-c++.cc: New file.
22266         * modules/glob-tests (Files): Add it.
22267         (Depends-on): Add ansi-c++-opt.
22268         (Makefile.am): Arrange to compile and run test-glob-c++.
22269
22270         Tests of module 'fcntl-h' in C++ mode.
22271         * tests/test-fcntl-h-c++.cc: New file.
22272         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
22273         (Depends-on): Add ansi-c++-opt.
22274         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
22275         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
22276         gl_MODULE_INDICATOR.
22277
22278         Tests of module 'dirent' in C++ mode.
22279         * tests/test-dirent-c++.cc: New file.
22280         * modules/dirent-tests (Files): Add it and tests/signature.h.
22281         (Depends-on): Add ansi-c++-opt.
22282         (Makefile.am): Arrange to compile and run test-dirent-c++.
22283         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
22284         gl_MODULE_INDICATOR.
22285
22286         New module 'ansi-c++-opt'.
22287         * modules/ansi-c++-opt: New file.
22288         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
22289
22290         Document C++ namespace mode.
22291         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
22292
22293         wctype: Avoid #define replacements in C++ mode.
22294         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
22295         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
22296         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
22297         In C++, define a namespaced alias symbol.
22298         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
22299         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
22300         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
22301         rule.
22302
22303         wchar: Avoid #define replacements in C++ mode.
22304         * lib/wchar.in.h: Include c++defs.h.
22305         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
22306         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
22307         symbol.
22308         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
22309         * modules/wchar (Depends-on): Add c++defs.
22310         (Makefile.am): Update wchar.h rule.
22311
22312         unistd: Avoid #define replacements in C++ mode.
22313         * lib/unistd.in.h: Include c++defs.h.
22314         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
22315         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
22316         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
22317         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
22318         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
22319         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
22320         symbol.
22321         (environ): Update.
22322         * modules/unistd (Depends-on): Add c++defs.
22323         (Makefile.am): Update unistd.h rule.
22324
22325         time: Avoid #define replacements in C++ mode.
22326         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
22327         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
22328         define a namespaced alias symbol.
22329         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
22330         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
22331         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
22332         * modules/time (Depends-on): Add c++defs, warn-on-use.
22333         (Makefile.am): Update time.h rule.
22334         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
22335         * modules/nanosleep (configure.ac): Likewise.
22336         * modules/strptime (configure.ac): Likewise.
22337         * modules/timegm (configure.ac): Likewise.
22338
22339         sys_time: Avoid #define replacements in C++ mode.
22340         * lib/sys_time.in.h: Include c++defs.h.
22341         (gettimeofday): In C++, define a namespaced alias symbol.
22342         * modules/sys_time (Depends-on): Add c++defs.
22343         (Makefile.am): Update sys/time.h rule.
22344
22345         sys_stat: Avoid #define replacements in C++ mode.
22346         * lib/sys_stat.in.h: Include c++defs.h.
22347         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
22348         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
22349         namespaced alias symbol.
22350         In C++, define a namespaced alias symbol.
22351         * modules/sys_stat (Depends-on): Add c++defs.
22352         (Makefile.am): Update sys/stat.h rule.
22353
22354         sys_socket: Avoid #define replacements in C++ mode.
22355         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
22356         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
22357         definitions also when the system has a <sys/socket.h>.
22358         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
22359         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
22360         In C++, define a namespaced alias symbol.
22361         * modules/sys_socket (Depends-on): Add c++defs.
22362         (Makefile.am): Update sys/socket.h rule.
22363
22364         sys_select: Avoid #define replacements in C++ mode.
22365         * lib/sys_select.in.h: Include c++defs.h. Enable the function
22366         definitions also when the system has a <sys/select.h>.
22367         (select): In C++, define a namespaced alias symbol.
22368         * modules/sys_select (Depends-on): Add c++defs.
22369         (Makefile.am): Update sys/select.h rule.
22370
22371         sys_ioctl: Avoid #define replacements in C++ mode.
22372         * lib/sys_ioctl.in.h: Include c++defs.h.
22373         (ioctl): In C++, define a namespaced alias symbol.
22374         * modules/sys_ioctl (Depends-on): Add c++defs.
22375         (Makefile.am): Update sys/ioctl.h rule.
22376
22377         string: Avoid #define replacements in C++ mode.
22378         * lib/string.in.h: Include c++defs.h.
22379         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
22380         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
22381         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
22382         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
22383         strsignal, strverscmp): In C++, define a namespaced alias symbol.
22384         * modules/string (Depends-on): Add c++defs.
22385         (Makefile.am): Update string.h rule.
22386
22387         stdlib: Avoid #define replacements in C++ mode.
22388         * lib/stdlib.in.h: Include c++defs.h.
22389         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
22390         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
22391         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
22392         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
22393         symbol.
22394         * modules/stdlib (Depends-on): Add c++defs.
22395         (Makefile.am): Update stdlib.h rule.
22396
22397         stdio: Avoid #define replacements in C++ mode.
22398         * lib/stdio.in.h: Include c++defs.h.
22399         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
22400         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
22401         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
22402         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
22403         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
22404         namespaced alias symbol.
22405         * modules/stdio (Depends-on): Add c++defs.
22406         (Makefile.am): Update stdio.h rule.
22407
22408         spawn: Avoid #define replacements in C++ mode.
22409         * lib/spawn.in.h: Include c++defs.h.
22410         (posix_spawn, posix_spawnp, posix_spawnattr_init,
22411         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
22412         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
22413         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
22414         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
22415         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
22416         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
22417         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
22418         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
22419         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
22420         In C++, define a namespaced alias symbol.
22421         * modules/spawn (Depends-on): Add c++defs.
22422         (Makefile.am): Update spawn.h rule.
22423
22424         signal: Avoid #define replacements in C++ mode.
22425         * lib/signal.in.h: Include c++defs.h.
22426         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
22427         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
22428         namespaced alias symbol.
22429         * modules/signal (Depends-on): Add c++defs.
22430         (Makefile.am): Update signal.h rule.
22431
22432         search: Avoid #define replacements in C++ mode.
22433         * lib/search.in.h: Include c++defs.h.
22434         (_gl_search_compar_fn, _gl_search_action_fn): New types.
22435         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
22436         symbol.
22437         * modules/search (Depends-on): Add c++defs.
22438         (Makefile.am): Update search.h rule.
22439
22440         math: Avoid #define replacements in C++ mode.
22441         * lib/math.in.h: Include c++defs.h.
22442         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
22443         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
22444         trunc, truncl): In C++, define a namespaced alias symbol.
22445         * modules/math (Depends-on): Add c++defs.
22446         (Makefile.am): Update math.h rule.
22447
22448         locale: Avoid #define replacements in C++ mode.
22449         * lib/locale.in.h: Include c++defs.h.
22450         (duplocale): In C++, define a namespaced alias symbol.
22451         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
22452         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
22453         * modules/locale (Depends-on): Add c++defs.
22454         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
22455
22456         langinfo: Avoid #define replacements in C++ mode.
22457         * lib/langinfo.in.h: Include c++defs.h.
22458         (nl_langinfo): In C++, define a namespaced alias symbol.
22459         * modules/langinfo (Depends-on): Add c++defs.
22460         (Makefile.am): Update langinfo.h rule.
22461
22462         iconv-h: Avoid #define replacements in C++ mode.
22463         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
22464         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
22465         symbol.
22466         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
22467         whenever iconv is present.
22468         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
22469         (Makefile.am): Update iconv.h rule.
22470
22471         glob: Avoid #define replacements in C++ mode.
22472         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
22473         (_gl_glob_errfunc_fn): New type.
22474         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
22475         symbol.
22476         * modules/glob (Depends-on): Add c++defs, warn-on-use.
22477         (Makefile.am): Update glob.h rule.
22478
22479         fcntl-h: Avoid #define replacements in C++ mode.
22480         * lib/fcntl.in.h: Include c++defs.h.
22481         (fcntl, open, openat): In C++, define a namespaced alias symbol.
22482         * modules/fcntl-h (Depends-on): Add c++defs.
22483         (Makefile.am): Update fcntl.h rule.
22484
22485         dirent: Avoid #define replacements in C++ mode.
22486         * lib/dirent.in.h: Include c++defs.h.
22487         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
22488         namespaced alias symbol.
22489         (dirfd): Update declaration.
22490         * modules/dirent (Depends-on): Add c++defs.
22491         (Makefile.am): Update dirent.h rule.
22492
22493         ctype: Make it usable in C++ code.
22494         * lib/ctype.in.h: Include c++defs.h.
22495         (isblank): Declare as extern "C".
22496         * modules/ctype (Depends-on): Add c++defs.
22497         (Makefile.am): Update ctype.h rule.
22498
22499         New module 'c++defs'.
22500         * modules/c++defs: New file.
22501         * build-aux/c++defs.h: New file.
22502         Reported by John W. Eaton <jwe@gnu.org>.
22503
22504 2010-03-07  Bruno Haible  <bruno@clisp.org>
22505
22506         logb: Provide missing declaration for Cygwin.
22507         * lib/math.in.h (logb): New declaration.
22508         * m4/logb.m4: New file.
22509         * modules/logb (Files): Add m4/logb.m4.
22510         (Depends-on): Add math.
22511         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
22512         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
22513         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
22514         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
22515         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
22516
22517 2010-03-07  Bruno Haible  <bruno@clisp.org>
22518
22519         Fix test-cond link error.
22520         * tests/test-cond.c: Include <stdio.h>.
22521
22522 2010-03-07  Bruno Haible  <bruno@clisp.org>
22523
22524         Fix test-dirent-safer link error.
22525         * modules/dirent-safer-tests (Makefile.am): Define
22526         test_dirent_safer_LDADD.
22527
22528 2010-03-07  Bruno Haible  <bruno@clisp.org>
22529
22530         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
22531         among default module list.
22532
22533 2010-03-07  Bruno Haible  <bruno@clisp.org>
22534
22535         Fix link error on platforms with GNU libiconv.
22536         * modules/unistr/u8-strcoll-tests (Makefile): Define
22537         test_u8_strcoll_LDADD.
22538         * modules/unistr/u16-strcoll-tests (Makefile): Define
22539         test_u16_strcoll_LDADD.
22540         * modules/unistr/u32-strcoll-tests (Makefile): Define
22541         test_u32_strcoll_LDADD.
22542
22543 2010-03-07  Bruno Haible  <bruno@clisp.org>
22544
22545         Use POSIX declarations for socket functions.
22546         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
22547         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
22548         rpl_sendto): Change declaration to match POSIX.
22549         * lib/connect.c (rpl_connect): Likewise.
22550         * lib/accept.c (rpl_accept): Likewise.
22551         * lib/bind.c (rpl_bind): Likewise.
22552         * lib/getpeername.c (rpl_getpeername): Likewise.
22553         * lib/getsockname.c (rpl_getsockname): Likewise.
22554         * lib/recv.c (rpl_recv): Likewise.
22555         * lib/send.c (rpl_send): Likewise.
22556         * lib/recvfrom.c (rpl_recvfrom): Likewise.
22557         * lib/sendto.c (rpl_sendto): Likewise.
22558
22559 2010-03-06  Bruno Haible  <bruno@clisp.org>
22560
22561         Clarify access, euidaccess, faccessat.
22562         * doc/posix-functions/faccessat.texi: Mention security problem under
22563         "Other problems", not "Portability problems".
22564         * doc/posix-functions/access.texi: Likewise. Mention a related security
22565         problem.
22566         * doc/glibc-functions/euidaccess.texi: Mention security problems.
22567         * lib/euidaccess.c: Add comments about platforms.
22568         * lib/unistd.in.h (access, euidaccess): Add warnings.
22569
22570 2010-03-07  Bruno Haible  <bruno@clisp.org>
22571
22572         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
22573         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
22574         (POSIX_SPAWN_SETSCHEDULER): Likewise.
22575         (POSIX_SPAWN_USEVFORK): Define in a way that works when
22576         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
22577         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
22578         declare when POSIX_SPAWN_SETSCHEDULER is zero.
22579         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
22580         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
22581         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
22582         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
22583         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
22584         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
22585         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
22586         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
22587         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
22588         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
22589         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
22590         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
22591         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
22592         Likewise.
22593         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
22594         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
22595         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
22596         Likewise.
22597         * tests/test-spawn.c (main): Make it work when
22598         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
22599
22600 2010-03-07  Bruno Haible  <bruno@clisp.org>
22601
22602         Fix incorrect Makefile.am generation in German locale.
22603         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
22604         Execute sed command with character range in C locale.
22605
22606 2010-03-06  Bruno Haible  <bruno@clisp.org>
22607
22608         Tests for module 'iconv-h'.
22609         * modules/iconv-h-tests: New file.
22610         * tests/test-iconv-h.c: New file.
22611
22612         New module 'iconv-h'.
22613         * modules/iconv-h: New file.
22614         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
22615         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
22616         (configure.ac): Remove gl_ICONV_H.
22617         (Makefile.am): Remove rule for iconv.h.
22618
22619 2010-03-06  Bruno Haible  <bruno@clisp.org>
22620
22621         More consistent naming of *.m4 files.
22622         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
22623         * modules/wctype (Files): Update.
22624
22625         More consistent naming of *.m4 files.
22626         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
22627         * modules/wchar (Files): Update.
22628
22629 2010-03-06  Jim Meyering  <meyering@redhat.com>
22630
22631         euidaccess: relax license to LGPLv2+
22632         * modules/euidaccess (License): Relax to LGPLv2+.
22633
22634 2010-03-06  Bruno Haible  <bruno@clisp.org>
22635
22636         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
22637         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
22638         (Makefile.am): Augment lib_SOURCES instead.
22639
22640 2010-03-04  Jim Meyering  <meyering@redhat.com>
22641
22642         utime: remove obsolete module
22643         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
22644         unnecessary for years, and has been marked as obsolete for 10 months.
22645         * modules/utime: Remove file.
22646         * lib/utime.c: Remove file.
22647         * m4/utime.m4: Remove file.
22648         * m4/utimes-null.m4: Remove file.
22649         * doc/posix-functions/utime.texi (utime): Remove reference to
22650         the module.  Move the sole "fixed by gnulib" item into the
22651         "problems not fixed by Gnulib" list.
22652         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
22653
22654 2010-03-05  Simon Josefsson  <simon@josefsson.org>
22655
22656         * modules/exit (License): Relax license to LGPLv2+.
22657         (Status): Mark as obsolete.
22658         * NEWS: Mention deprecated 'exit' module.
22659         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
22660         of now obsolete 'exit'.
22661
22662 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22663
22664         fts-lgpl: remove unused module
22665         * modules/fts-lgpl: Remove.
22666         * MODULES.html.sh (func_all_modules): Adjust.
22667         * check-module (find_included_lib_files): Adjust.
22668         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
22669
22670 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
22671
22672         copy-acl: enhance Solaris ACL error handling
22673         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
22674         * lib/set-mode-acl.c (qset_acl): Likewise.
22675
22676 2010-03-02  Bruno Haible  <bruno@clisp.org>
22677
22678         spawn: Don't override the system defined values on FreeBSD 8.
22679         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
22680         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
22681         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
22682         if HAVE_POSIX_SPAWN is 1.
22683         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
22684
22685 2010-03-01  Bruno Haible  <bruno@clisp.org>
22686
22687         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
22688         regarding Automake.
22689
22690 2010-02-25  Bruno Haible  <bruno@clisp.org>
22691
22692         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
22693         * gnulib-tool: Define 'echo' as a function only before the ksh alias
22694         setting, not afterwards.
22695         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
22696
22697 2010-02-24  Eric Blake  <eblake@redhat.com>
22698
22699         bootstrap, git-version-gen: use timestamp
22700         * build-aux/git-version-gen (scriptversion): Force UTC.
22701         * build-aux/bootstrap (scriptversion): New variable.
22702
22703         bootstrap: allow older git
22704         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
22705         older than 1.6.4.  Requested by the libvirt project.
22706
22707 2010-02-23  Eric Blake  <eblake@redhat.com>
22708
22709         warn-on-use: work with old autoconf
22710         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
22711         AS_VAR semantics of autoconf 2.60.
22712         Reported by Bruno Haible.
22713
22714         bootstrap: improve some comments
22715         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
22716         clarification comments.
22717
22718         gettimeofday: provide correct function
22719         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
22720         when replacement is declared, otherwise provide gettimeofday.
22721         Reported by Michael Goffioul.
22722
22723 2010-02-23  Jim Meyering  <meyering@redhat.com>
22724
22725         lib-ignore: relax license to "unlimited", not LGPLv2+
22726         * modules/lib-ignore (License): Relax to "unlimited".
22727
22728 2010-02-23  Jim Meyering  <meyering@redhat.com>
22729
22730         lib-ignore: relax license to LGPLv2+
22731         * modules/lib-ignore (License): Relax to LGPLv2+.
22732
22733 2010-02-22  Eric Blake  <eblake@redhat.com>
22734
22735         lseek: avoid bash 3.2 broken pipe bug
22736         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
22737         warning from bash 3.2.
22738         Reported by Ben Pfaff, with analysis from Bruno Haible.
22739
22740         bootstrap: support non-FSF copyright holder
22741         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
22742         bootstrap.conf override of COPYRIGHT_HOLDER.
22743         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
22744
22745         bootstrap: interoperate with gettext 0.14.1
22746         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
22747
22748         bootstrap: allow for alternate submodule location
22749         * build-aux/bootstrap (gnulib_path): New variable; use instead of
22750         hardcoding submodule location.
22751         (gnulib_mk): Allow direct use of Makefile.am.
22752
22753         bootstrap: use GNULIB_SRCDIR to reduce disk usage
22754         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
22755         rather than reconfiguring where the submodule points.
22756
22757         gettimeofday: restore support for platforms that lack function
22758         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
22759         replacement if function is missing.
22760         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
22761         * modules/sys_time (Makefile.am): Substitute it.
22762         * lib/sys_time.in.h (gettimeofday): Check it.
22763         Reported by Michael Goffioul.
22764
22765 2010-02-21  Bruno Haible  <bruno@clisp.org>
22766
22767         * lib/stdio.in.h (obstack_printf): Fix typo.
22768
22769 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
22770
22771         vc-list-files: use bzr ls's -R option
22772         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
22773         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
22774
22775 2010-02-21  Jim Meyering  <meyering@redhat.com>
22776
22777         init.sh: fix EXEEXT shims to work also for names like test-prog
22778         * tests/init.sh: Re-exec a better shell, when needed.
22779         If the current shell lacks support for posix $(...), an init.sh-using
22780         test will now try to find a shell that supports that.  If EXEEXT is
22781         nonempty, we also require support for hyphen-in-alias-name and shell
22782         substitutions like ${var#glob}.  Failure to find such a shell results
22783         in a skipped test.
22784
22785 2010-02-21  Bruno Haible  <bruno@clisp.org>
22786
22787         Really work around around "broken pipe" error message from bash 3.2.
22788         * gnulib-tool (func_reset_sigpipe): Remove function.
22789         (echo): In bash 3.2, define to a function that uses printf.
22790         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
22791
22792 2010-02-20  Bruno Haible  <bruno@clisp.org>
22793
22794         Restore support for automake 1.9.6 with autoconf 2.61.
22795         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
22796         Reported by James Youngman <jay@gnu.org>.
22797
22798 2010-02-20  Bruno Haible  <bruno@clisp.org>
22799
22800         Improve *printf warning condition.
22801         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
22802         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
22803         and the function is overridden due to SIGPIPE emulation.
22804
22805 2010-02-20  Bruno Haible  <bruno@clisp.org>
22806
22807         * lib/stdio.in.h: Tweak comments.
22808
22809 2010-02-19  Bruno Haible  <bruno@clisp.org>
22810
22811         Make it easier to find modules. New gnulib-tool option '--find'.
22812         * gnulib-tool: New option --find.
22813         (func_usage): Document it.
22814         (func_sanitize_modulelist): New function, extracted from
22815         func_all_modules.
22816         (func_all_modules): Invoke it.
22817         * doc/gnulib-tool.texi (Which modules?): New node.
22818
22819 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
22820
22821         * lib/sys_select.in.h: Provide select replacement even if
22822         sys/select.h exists on a system, for Interix.
22823
22824 2010-02-18  Jim Meyering  <meyering@redhat.com>
22825
22826         init.sh: don't use $(...) just yet
22827         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
22828         to accommodate e.g., Solaris' /bin/sh.
22829
22830 2010-02-17  Bruno Haible  <bruno@clisp.org>
22831
22832         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
22833         Reported by Ludovic Courtès <ludo@gnu.org>.
22834
22835 2010-02-16  Simon Josefsson  <simon@josefsson.org>
22836
22837         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
22838         linking with -lintl.
22839
22840 2010-02-17  Simon Josefsson  <simon@josefsson.org>
22841
22842         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
22843         if not provided by the system's netdb.h.  Reported by
22844         ludo@gnu.org (Ludovic Courtès).
22845
22846 2010-02-15  Jim Meyering  <meyering@redhat.com>
22847
22848         init.sh: improve portability and efficiency
22849         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
22850         "dummy" in a for loop.
22851         Use '!', not '^' to select the complement of a character set used
22852         in a "case" statement.
22853         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
22854         Suggestions from Eric Blake.
22855
22856         init.sh: automatically accommodate programs with the .exe suffix
22857         Automatically arrange for an invocation of "prog" to execute the
22858         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
22859         may use the simpler "prog", yet still work when built on a system
22860         that requires specifying the added suffix.
22861         Do this by constructing a function named "prog" that invokes
22862         "prog.exe" for each .exe file in selected directories.
22863         * tests/init.sh (find_exe_basenames_): New function.
22864         (create_exe_shim_functions_): New function.
22865         (path_prepend_): Use it.
22866
22867         maint.mk: mark syntax-check sc_*.m rules as .PHONY
22868         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
22869         "make -t syntax-check" doesn't create a ton of sc_*.m files.
22870
22871 2010-02-14  Jim Meyering  <meyering@redhat.com>
22872
22873         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
22874         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
22875         (sc_prohibit_hash_pjw_without_use): New rule.
22876
22877         maint.mk: allow the default upload destination dir to be overridden
22878         * top/maint.mk (upload_dest_dir_): Define with a default that
22879         preserves the status quo.
22880         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
22881         Reported by Peter Simons.
22882
22883         maint.mk: prohibit inclusion of "hash.h" without_use
22884         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
22885
22886 2010-02-10  Jim Meyering  <meyering@redhat.com>
22887
22888         maint.mk: prohibit inclusion of "ignore-value.h" without_use
22889         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
22890
22891 2010-02-09  Eric Blake  <ebb9@byu.net>
22892         and Bruno Haible  <bruno@clisp.org>
22893
22894         obstack-printf-posix: ensure declaration
22895         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
22896         extracted from gl_FUNC_OBSTACK_PRINTF.
22897         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
22898         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
22899         Likewise.
22900         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
22901         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
22902         0.
22903
22904 2010-02-08  Bruno Haible  <bruno@clisp.org>
22905
22906         gnulib-tool: Fix typo in 2010-02-07 commit.
22907         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
22908         Reported by Eric Blake.
22909
22910 2010-02-07  Bruno Haible  <bruno@clisp.org>
22911
22912         gnulib-tool: Fix up caching patches.
22913         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
22914         option --no-cache. Use associative arrays when supported by the shell.
22915         (sed_comments): New variable.
22916         (modcache): Renamed from do_cache.
22917         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
22918         abbreviate unnecessarily.
22919         (have_associative): New variable.
22920         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
22921         way also for ksh and zsh.
22922         (func_init_sed_convert_to_cache_statements): New function, extracted
22923         from func_cache_lookup_module. Add support for associative arrays.
22924         Don't set the c_MODULE_cached variable here. Ignore all lines before
22925         the first field header. Remove only the final newline, not all trailing
22926         newlines. Support empty fields correctly. Limit the use of 'eval' to
22927         assignments.
22928         (func_get_description, func_get_status, func_get_notice,
22929         func_get_applicability, func_get_filelist, func_get_dependencies,
22930         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
22931         func_get_automake_snippet, func_get_include_directive,
22932         func_get_link_directive, func_get_license, func_get_maintainer):
22933         Update documentation. List the unoptimized code first. Add support for
22934         associative arrays. Limit the use of 'eval' to assignments.
22935         (func_get_applicability): Undo stylistic pessimisations.
22936         (func_get_automake_snippet, func_get_include_directive): Reduce code
22937         duplication.
22938         (func_modules_transitive_closure, func_modules_add_dummy,
22939         func_modules_notice, func_modules_to_filelist, func_add_file,
22940         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
22941         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
22942         func_create_testdir, func_create_megatestdir): Update documentation.
22943
22944 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22945
22946         * gnulib-tool (func_cache_lookup_module): Store the module name
22947         belonging to the cache variable; error out if two different
22948         module names map to the same cache variable name.
22949
22950 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22951
22952         gnulib-tool: Make caching optional.
22953         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
22954         Update matching short versions of --no-changelog.
22955         (func_usage): Update.
22956         (sed_extract_cache_prog): Renamed from ...
22957         (sed_extract_prog): ... this; revert to old extraction script.
22958         (func_get_description, func_get_status)
22959         (func_get_notice, func_get_applicability, func_get_filelist)
22960         (func_get_dependencies, func_get_autoconf_early_snippet)
22961         (func_get_autoconf_snippet, func_get_automake_snippet)
22962         (func_get_include_directive, func_get_link_directive)
22963         (func_get_license, func_get_maintainer): If $do_cache is false,
22964         use old, non-caching extraction scripts.
22965         Suggestion by Bruno Haible.
22966
22967 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22968
22969         gnulib-tool: cache module metainformation.
22970         * gnulib-tool (sed_extract_prog): Match newline before each
22971         header, and rewrite header to a shell variable suffix.
22972         (func_cache_var, func_cache_lookup_module): New functions,
22973         to turn a module name into a cache variable prefix, and to
22974         look up and cache module metainformation.
22975         (func_get_description, func_get_status)
22976         (func_get_notice, func_get_applicability, func_get_filelist)
22977         (func_get_dependencies, func_get_autoconf_early_snippet)
22978         (func_get_autoconf_snippet, func_get_automake_snippet)
22979         (func_get_include_directive, func_get_link_directive)
22980         (func_get_license, func_get_maintainer): Use
22981         func_cache_lookup_module.
22982
22983 2010-02-07  Bruno Haible  <bruno@clisp.org>
22984
22985         fnctl: Fix missing dependency.
22986         * modules/fcntl (Depends-on): Add getdtablesize.
22987         Reported by John W. Eaton <jwe@gnu.org>.
22988
22989 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
22990
22991         Argp: fix recognition of short alias options.
22992
22993         * lib/argp-parse.c (convert_options): Fix improper use of
22994         `|' between character values.
22995         * tests/test-argp.c (group1_option): New alias option
22996         --read (-r).
22997         (group1_parser): Special handling for 'r'.
22998         (test15): New test case.
22999         (test_fun): Add test15.
23000         * tests/test-argp-2.sh: Update expected --help and --usage
23001         outputs.
23002
23003 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
23004
23005         * tests/test-argp.c: Fix indentation.
23006
23007 2010-02-04  Eric Blake  <ebb9@byu.net>
23008
23009         gettimeofday: expose type of second argument
23010         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
23011         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
23012         * tests/test-gettimeofday.c: Use it to silence warning.
23013         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
23014         the issue.
23015
23016 2010-02-03  Jim Meyering  <meyering@redhat.com>
23017
23018         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
23019         * lib/regcomp.c (TYPE_SIGNED): Define.
23020         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
23021
23022         regcomp.c: avoid a new -Wshadow warning
23023         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
23024
23025 2010-02-01  Jim Meyering  <meyering@redhat.com>
23026
23027         removing useless parentheses in cpp #define directives
23028         For motivation, see commit c0221df4, "define STREQ(a,b)
23029         consistently, removing useless parentheses"
23030         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
23031         * lib/mountlist.c (MNT_IGNORE): Likewise.
23032         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
23033
23034 2010-02-01  Eric Blake  <ebb9@byu.net>
23035
23036         sys_time: use link-warning
23037         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
23038         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
23039         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
23040         * modules/sys_time (Depends-on): Add warn-on-use.
23041         (Makefile.am): Always build replacement.
23042         (configure.ac): Update substitutions.
23043         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
23044         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
23045         bother with SYS_TIME_H.
23046         * modules/gettimeofday (configure.ac): Declare indicator.
23047         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
23048         in use.
23049
23050         closein-tests: silence compiler warning
23051         * tests/test-closein.c (main): Ignore fread result.
23052         * modules/closein-tests (Depends-on): Add ignore-value.
23053
23054         tests: silence warning about system return
23055         * tests/test-areadlink-with-size.c (main): Ignore system result.
23056         * tests/test-areadlink.c (main): Likewise.
23057         * tests/test-areadlinkat-with-size.c (main): Likewise.
23058         * tests/test-areadlinkat.c (main): Likewise.
23059         * tests/test-canonicalize-lgpl.c (main): Likewise.
23060         * tests/test-canonicalize.c (main): Likewise.
23061         * tests/test-chown.c (main): Likewise.
23062         * tests/test-fchownat.c (main): Likewise.
23063         * tests/test-fdutimensat.c (main): Likewise.
23064         * tests/test-fstatat.c (main): Likewise.
23065         * tests/test-futimens.c (main): Likewise.
23066         * tests/test-lchown.c (main): Likewise.
23067         * tests/test-link.c (main): Likewise.
23068         * tests/test-linkat.c (main): Likewise.
23069         * tests/test-lstat.c (main): Likewise.
23070         * tests/test-mkdir.c (main): Likewise.
23071         * tests/test-mkdirat.c (main): Likewise.
23072         * tests/test-mkfifo.c (main): Likewise.
23073         * tests/test-mkfifoat.c (main): Likewise.
23074         * tests/test-mknod.c (main): Likewise.
23075         * tests/test-readlink.c (main): Likewise.
23076         * tests/test-remove.c (main): Likewise.
23077         * tests/test-rename.c (main): Likewise.
23078         * tests/test-renameat.c (main): Likewise.
23079         * tests/test-rmdir.c (main): Likewise.
23080         * tests/test-symlink.c (main): Likewise.
23081         * tests/test-symlinkat.c (main): Likewise.
23082         * tests/test-unlink.c (main): Likewise.
23083         * tests/test-unlinkat.c (main): Likewise.
23084         * tests/test-utimens.c (main): Likewise.
23085         * tests/test-utimensat.c (main): Likewise.
23086         * modules/areadlink-tests (Depends-on): Add ignore-value.
23087         * modules/areadlink-with-size-tests (Depends-on): Likewise.
23088         * modules/areadlinkat-tests (Depends-on): Likewise.
23089         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
23090         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
23091         * modules/canonicalize-tests (Depends-on): Likewise.
23092         * modules/chown-tests (Depends-on): Likewise.
23093         * modules/fdutimensat-tests (Depends-on): Likewise.
23094         * modules/futimens-tests (Depends-on): Likewise.
23095         * modules/lchown-tests (Depends-on): Likewise.
23096         * modules/link-tests (Depends-on): Likewise.
23097         * modules/linkat-tests (Depends-on): Likewise.
23098         * modules/lstat-tests (Depends-on): Likewise.
23099         * modules/mkdir-tests (Depends-on): Likewise.
23100         * modules/mkfifo-tests (Depends-on): Likewise.
23101         * modules/mkfifoat-tests (Depends-on): Likewise.
23102         * modules/mknod-tests (Depends-on): Likewise.
23103         * modules/openat-tests (Depends-on): Likewise.
23104         * modules/readlink-tests (Depends-on): Likewise.
23105         * modules/remove-tests (Depends-on): Likewise.
23106         * modules/rename-tests (Depends-on): Likewise.
23107         * modules/renameat-tests (Depends-on): Likewise.
23108         * modules/rmdir-tests (Depends-on): Likewise.
23109         * modules/symlink-tests (Depends-on): Likewise.
23110         * modules/symlinkat-tests (Depends-on): Likewise.
23111         * modules/unlink-tests (Depends-on): Likewise.
23112         * modules/utimens-tests (Depends-on): Likewise.
23113         * modules/utimensat-tests (Depends-on): Likewise.
23114
23115 2010-01-31  Bruno Haible  <bruno@clisp.org>
23116
23117         Perform the same test for many <math.h> functions.
23118         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
23119         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
23120         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
23121         of gl_MATHFUNC.
23122         * modules/acos (configure.ac): Likewise.
23123         * modules/asin (configure.ac): Likewise.
23124         * modules/atan (configure.ac): Likewise.
23125         * modules/atan2 (configure.ac): Likewise.
23126         * modules/cbrt (configure.ac): Likewise.
23127         * modules/copysign (configure.ac): Likewise.
23128         * modules/cos (configure.ac): Likewise.
23129         * modules/cosh (configure.ac): Likewise.
23130         * modules/erf (configure.ac): Likewise.
23131         * modules/erfc (configure.ac): Likewise.
23132         * modules/exp (configure.ac): Likewise.
23133         * modules/fmod (configure.ac): Likewise.
23134         * modules/hypot (configure.ac): Likewise.
23135         * modules/j0 (configure.ac): Likewise.
23136         * modules/j1 (configure.ac): Likewise.
23137         * modules/jn (configure.ac): Likewise.
23138         * modules/lgamma (configure.ac): Likewise.
23139         * modules/log (configure.ac): Likewise.
23140         * modules/log10 (configure.ac): Likewise.
23141         * modules/log1p (configure.ac): Likewise.
23142         * modules/pow (configure.ac): Likewise.
23143         * modules/remainder (configure.ac): Likewise.
23144         * modules/sin (configure.ac): Likewise.
23145         * modules/sinh (configure.ac): Likewise.
23146         * modules/tan (configure.ac): Likewise.
23147         * modules/tanh (configure.ac): Likewise.
23148         * modules/y0 (configure.ac): Likewise.
23149         * modules/y1 (configure.ac): Likewise.
23150         * modules/yn (configure.ac): Likewise.
23151         Suggested by Paolo Bonzini.
23152
23153 2010-01-31  Bruno Haible  <bruno@clisp.org>
23154
23155         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
23156
23157 2010-01-31  Bruno Haible  <bruno@clisp.org>
23158
23159         Work around getdelim() bug on FreeBSD 8.0.
23160         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
23161         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
23162         not work.
23163         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
23164         is 1.
23165         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
23166         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
23167         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
23168         a non-zero size.
23169         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
23170
23171 2010-01-31  Bruno Haible  <bruno@clisp.org>
23172
23173         Work around getline() bug on FreeBSD 8.0.
23174         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
23175         and a non-zero size.
23176         * tests/test-getline.c (main): Likewise.
23177         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
23178         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
23179
23180 2010-01-28  Eric Blake  <ebb9@byu.net>
23181
23182         regex: fix build failure
23183         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
23184         platforms.
23185
23186 2010-01-28  Jim Meyering  <meyering@redhat.com>
23187
23188         regex: do not ignore memory allocation failure
23189         * lib/regex_internal.c (create_cd_newstate): Detect
23190         re_node_set_init_copy failure.   Extracted from glibc commit
23191         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
23192
23193         regex: sync more white-space changes from libc
23194         * lib/regex_internal.c: White-space only changes.
23195         * lib/regexec.c: Likewise.
23196
23197         regex: add many uses of __attribute_warn_unused_result__
23198         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
23199         * lib/regexec.c: Likewise.
23200         Extracted from a messy glibc commit.
23201
23202         regcomp.c: spelling and merge-artifact from glibc
23203         * lib/regcomp.c: Merge remainder of glibc's
23204         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
23205
23206         regcomp.c: sync white-space changes from glibc
23207         * lib/regcomp.c: Merge to accommodate white space
23208         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
23209
23210         regcomp.c: do not ignore internal return values
23211         * lib/regcomp.c: Do not ignore internal return values.
23212         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
23213         but without its white-space changes and spelling fixes.
23214
23215         regex_internal.h: define __attribute_warn_unused_result__
23216         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
23217
23218         maint: add a syntax-check rule to check for vulnerable Makefile.in
23219         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
23220
23221 2010-01-27  Jim Meyering  <meyering@redhat.com>
23222
23223         ncftpput-ftp: clean up spaces
23224         * build-aux/ncftpput-ftp: Make Copyright line consistent.
23225         Remove trailing blanks.
23226
23227 2010-01-27  Simon Josefsson  <simon@josefsson.org>
23228
23229         * build-aux/git-version-gen: Fix copyright statement.
23230         * build-aux/gnupload: Likewise.
23231         * tests/test-arcfour.c: Likewise.
23232         * tests/test-arctwo.c: Likewise.
23233         * tests/test-count-one-bits.c: Likewise.
23234         * tests/test-crc.c: Likewise.
23235         * tests/test-des.c: Likewise.
23236         * tests/test-gc-arcfour.c: Likewise.
23237         * tests/test-gc-arctwo.c: Likewise.
23238         * tests/test-gc-des.c: Likewise.
23239         * tests/test-gc-hmac-md5.c: Likewise.
23240         * tests/test-gc-hmac-sha1.c: Likewise.
23241         * tests/test-gc-md2.c: Likewise.
23242         * tests/test-gc-md4.c: Likewise.
23243         * tests/test-gc-md5.c: Likewise.
23244         * tests/test-gc-pbkdf2-sha1.c: Likewise.
23245         * tests/test-gc-rijndael.c: Likewise.
23246         * tests/test-gc-sha1.c: Likewise.
23247         * tests/test-gc.c: Likewise.
23248         * tests/test-gethostname.c: Likewise.
23249         * tests/test-gettimeofday.c: Likewise.
23250         * tests/test-hash.c: Likewise.
23251         * tests/test-hmac-md5.c: Likewise.
23252         * tests/test-hmac-sha1.c: Likewise.
23253         * tests/test-md2.c: Likewise.
23254         * tests/test-md4.c: Likewise.
23255         * tests/test-md5.c: Likewise.
23256         * tests/test-memchr.c: Likewise.
23257         * tests/test-memchr2.c: Likewise.
23258         * tests/test-memcmp.c: Likewise.
23259         * tests/test-memmem.c: Likewise.
23260         * tests/test-memrchr.c: Likewise.
23261         * tests/test-rawmemchr.c: Likewise.
23262         * tests/test-read-file.c: Likewise.
23263         * tests/test-rijndael.c: Likewise.
23264         * tests/test-sockets.c: Likewise.
23265         * tests/test-strchrnul.c: Likewise.
23266         * tests/test-strstr.c: Likewise.
23267         * tests/test-strtod.c: Likewise.
23268         * build-aux/ncftpput-ftp: Likewise.
23269
23270 2010-01-26  Eric Blake  <ebb9@byu.net>
23271
23272         ignore-value: update recommended header name
23273         * modules/ignore-value (Include): Only use <> for headers that
23274         exist in glibc.
23275
23276 2010-01-26  Jim Meyering  <meyering@redhat.com>
23277
23278         test-userspec.c: avoid compiler warnings
23279         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
23280         and "initialization discards qualifiers..." warnings.
23281         Put the first "uid" in its own scope, and make char* members "const".
23282
23283 2010-01-25  Bruno Haible  <bruno@clisp.org>
23284
23285         gnulib-tool: Make warning diagnostics consistent.
23286         * gnulib-tool (func_warning): New function.
23287         Use it everywhere where gnulib-tool produces output to stderr and it is
23288         not a fatal error.
23289
23290 2010-01-25  Bruno Haible  <bruno@clisp.org>
23291
23292         Fix test dependencies.
23293         * modules/xstrtol-tests (Depends-on): Add inttypes.
23294         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
23295
23296 2010-01-25 Pádraig Brady <P@draigBrady.com>
23297
23298         syntax-check: detect incorrect boolean macro values in config.h
23299         * modules/maintainer-makefile (configure.ac): Parameterize the location
23300         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
23301         The logic is from Eric Blake and the location indicated by Jim Meyering.
23302         Note the more natural CONFIG_HEADER name is prohibited by automake
23303         for backwards compatibility reasons.
23304         * top/maint.mk (sc_Wundef_boolean): New rule.
23305
23306 2010-01-25  Jim Meyering  <meyering@redhat.com>
23307
23308         bootstrap: detect MacOS 10.6's shasum, too
23309         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
23310         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
23311
23312 2010-01-23  Jim Meyering  <meyering@redhat.com>
23313
23314         xstrtoll: new module
23315         * modules/xstrtoll: New file.
23316         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
23317         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
23318         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
23319         ./configure fails if you use this module and lack "long long".
23320         * modules/xstrtoll-tests: New module.
23321         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
23322         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
23323         new init.sh-based test framework.
23324
23325 2010-01-24  Bruno Haible  <bruno@clisp.org>
23326
23327         Tests for module 'yn'.
23328         * modules/yn-tests: New file.
23329         * tests/test-yn.c: New file.
23330
23331         Tests for module 'y1'.
23332         * modules/y1-tests: New file.
23333         * tests/test-y1.c: New file.
23334
23335         Tests for module 'y0'.
23336         * modules/y0-tests: New file.
23337         * tests/test-y0.c: New file.
23338
23339         Tests for module 'tanh'.
23340         * modules/tanh-tests: New file.
23341         * tests/test-tanh.c: New file.
23342
23343         Tests for module 'tan'.
23344         * modules/tan-tests: New file.
23345         * tests/test-tan.c: New file.
23346
23347         Tests for module 'sqrt'.
23348         * modules/sqrt-tests: New file.
23349         * tests/test-sqrt.c: New file.
23350
23351         Tests for module 'sinh'.
23352         * modules/sinh-tests: New file.
23353         * tests/test-sinh.c: New file.
23354
23355         Tests for module 'sin'.
23356         * modules/sin-tests: New file.
23357         * tests/test-sin.c: New file.
23358
23359         Tests for module 'rint'.
23360         * modules/rint-tests: New file.
23361         * tests/test-rint.c: New file.
23362
23363         Tests for module 'remainder'.
23364         * modules/remainder-tests: New file.
23365         * tests/test-remainder.c: New file.
23366
23367         Tests for module 'pow'.
23368         * modules/pow-tests: New file.
23369         * tests/test-pow.c: New file.
23370
23371         Tests for module 'nextafter'.
23372         * modules/nextafter-tests: New file.
23373         * tests/test-nextafter.c: New file.
23374
23375         Tests for module 'modf'.
23376         * modules/modf-tests: New file.
23377         * tests/test-modf.c: New file.
23378
23379         Tests for module 'logb'.
23380         * modules/logb-tests: New file.
23381         * tests/test-logb.c: New file.
23382
23383         Tests for module 'log1p'.
23384         * modules/log1p-tests: New file.
23385         * tests/test-log1p.c: New file.
23386
23387         Tests for module 'log10'.
23388         * modules/log10-tests: New file.
23389         * tests/test-log10.c: New file.
23390
23391         Tests for module 'log'.
23392         * modules/log-tests: New file.
23393         * tests/test-log.c: New file.
23394
23395         Tests for module 'lgamma'.
23396         * modules/lgamma-tests: New file.
23397         * tests/test-lgamma.c: New file.
23398
23399         Tests for module 'ldexp'.
23400         * modules/ldexp-tests: New file.
23401         * tests/test-ldexp.c: New file.
23402
23403         Tests for module 'jn'.
23404         * modules/jn-tests: New file.
23405         * tests/test-jn.c: New file.
23406
23407         Tests for module 'j1'.
23408         * modules/j1-tests: New file.
23409         * tests/test-j1.c: New file.
23410
23411         Tests for module 'j0'.
23412         * modules/j0-tests: New file.
23413         * tests/test-j0.c: New file.
23414
23415         Tests for module 'hypot'.
23416         * modules/hypot-tests: New file.
23417         * tests/test-hypot.c: New file.
23418
23419         Tests for module 'fmod'.
23420         * modules/fmod-tests: New file.
23421         * tests/test-fmod.c: New file.
23422
23423         Tests for module 'fabs'.
23424         * modules/fabs-tests: New file.
23425         * tests/test-fabs.c: New file.
23426
23427         Tests for module 'exp'.
23428         * modules/exp-tests: New file.
23429         * tests/test-exp.c: New file.
23430
23431         Tests for module 'erfc'.
23432         * modules/erfc-tests: New file.
23433         * tests/test-erfc.c: New file.
23434
23435         Tests for module 'erf'.
23436         * modules/erf-tests: New file.
23437         * tests/test-erf.c: New file.
23438
23439         Tests for module 'cosh'.
23440         * modules/cosh-tests: New file.
23441         * tests/test-cosh.c: New file.
23442
23443         Tests for module 'cos'.
23444         * modules/cos-tests: New file.
23445         * tests/test-cos.c: New file.
23446
23447         Tests for module 'copysign'.
23448         * modules/copysign-tests: New file.
23449         * tests/test-copysign.c: New file.
23450
23451         Tests for module 'cbrt'.
23452         * modules/cbrt-tests: New file.
23453         * tests/test-cbrt.c: New file.
23454
23455         Tests for module 'atan2'.
23456         * modules/atan2-tests: New file.
23457         * tests/test-atan2.c: New file.
23458
23459         Tests for module 'atan'.
23460         * modules/atan-tests: New file.
23461         * tests/test-atan.c: New file.
23462
23463         Tests for module 'asin'.
23464         * modules/asin-tests: New file.
23465         * tests/test-asin.c: New file.
23466
23467         Tests for module 'acos'.
23468         * modules/acos-tests: New file.
23469         * tests/test-acos.c: New file.
23470
23471 2010-01-24  Bruno Haible  <bruno@clisp.org>
23472
23473         Fix tests for common <math.h> functions.
23474         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
23475         code snippet that references the function pointer, rather than merely
23476         calling the function. Substitute the FUNC_LIBM variable.
23477         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
23478         * modules/acos (configure.ac): Likewise.
23479         * modules/asin (configure.ac): Likewise.
23480         * modules/atan (configure.ac): Likewise.
23481         * modules/atan2 (configure.ac): Likewise.
23482         * modules/cbrt (configure.ac): Likewise.
23483         * modules/copysign (configure.ac): Likewise.
23484         * modules/cos (configure.ac): Likewise.
23485         * modules/cosh (configure.ac): Likewise.
23486         * modules/erf (configure.ac): Likewise.
23487         * modules/erfc (configure.ac): Likewise.
23488         * modules/exp (configure.ac): Likewise.
23489         * modules/fabs (configure.ac): Likewise.
23490         * modules/fmod (configure.ac): Likewise.
23491         * modules/hypot (configure.ac): Likewise.
23492         * modules/j0 (configure.ac): Likewise.
23493         * modules/j1 (configure.ac): Likewise.
23494         * modules/jn (configure.ac): Likewise.
23495         * modules/ldexp (configure.ac): Likewise.
23496         * modules/lgamma (configure.ac): Likewise.
23497         * modules/log (configure.ac): Likewise.
23498         * modules/log10 (configure.ac): Likewise.
23499         * modules/log1p (configure.ac): Likewise.
23500         * modules/logb (configure.ac): Likewise.
23501         * modules/modf (configure.ac): Likewise.
23502         * modules/nextafter (configure.ac): Likewise.
23503         * modules/pow (configure.ac): Likewise.
23504         * modules/remainder (configure.ac): Likewise.
23505         * modules/rint (configure.ac): Likewise.
23506         * modules/sin (configure.ac): Likewise.
23507         * modules/sinh (configure.ac): Likewise.
23508         * modules/tan (configure.ac): Likewise.
23509         * modules/tanh (configure.ac): Likewise.
23510         * modules/y0 (configure.ac): Likewise.
23511         * modules/y1 (configure.ac): Likewise.
23512         * modules/yn (configure.ac): Likewise.
23513
23514 2010-01-24  Bruno Haible  <bruno@clisp.org>
23515
23516         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
23517         * tests/test-acosl.c (x): New variable.
23518         (main): Store argument in x and fetch it from x.
23519         * tests/test-asinl.c (x): New variable.
23520         (main): Store argument in x and fetch it from x.
23521         * tests/test-atanl.c (x): New variable.
23522         (main): Store argument in x and fetch it from x.
23523         * tests/test-cosl.c (x): New variable.
23524         (main): Store argument in x and fetch it from x.
23525         * tests/test-expl.c (x): New variable.
23526         (main): Store argument in x and fetch it from x.
23527         * tests/test-logl.c (x): New variable.
23528         (main): Store argument in x and fetch it from x.
23529         * tests/test-sinl.c (x): New variable.
23530         (main): Store argument in x and fetch it from x.
23531         * tests/test-sqrtl.c (x): New variable.
23532         (main): Store argument in x and fetch it from x.
23533         * tests/test-tanl.c (x): New variable.
23534         (main): Store argument in x and fetch it from x.
23535
23536 2010-01-24  Bruno Haible  <bruno@clisp.org>
23537
23538         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
23539         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
23540         assignments to the initial TESTS_ENVIRONMENT.
23541         * doc/gnulib.texi (Unit test modules): Document it.
23542         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
23543         TESTS_ENVIRONMENT.
23544         * modules/btowc-tests (Makefile.am): Likewise.
23545         * modules/c-stack-tests (Makefile.am): Likewise.
23546         * modules/c-strcase-tests (Makefile.am): Likewise.
23547         * modules/copy-file-tests (Makefile.am): Likewise.
23548         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
23549         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
23550         * modules/mbrtowc-tests (Makefile.am): Likewise.
23551         * modules/mbscasecmp-tests (Makefile.am): Likewise.
23552         * modules/mbscasestr-tests (Makefile.am): Likewise.
23553         * modules/mbschr-tests (Makefile.am): Likewise.
23554         * modules/mbscspn-tests (Makefile.am): Likewise.
23555         * modules/mbsinit-tests (Makefile.am): Likewise.
23556         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
23557         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
23558         * modules/mbspbrk-tests (Makefile.am): Likewise.
23559         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
23560         * modules/mbsrchr-tests (Makefile.am): Likewise.
23561         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
23562         * modules/mbsspn-tests (Makefile.am): Likewise.
23563         * modules/mbsstr-tests (Makefile.am): Likewise.
23564         * modules/nl_langinfo-tests (Makefile.am): Likewise.
23565         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
23566         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
23567         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
23568         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
23569         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
23570         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
23571         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
23572         * modules/wcrtomb-tests (Makefile.am): Likewise.
23573         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
23574         * modules/wcsrtombs-tests (Makefile.am): Likewise.
23575         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
23576         assignments from TESTS_ENVIRONMENT.
23577         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
23578         augmentation.
23579         * modules/argp-version-etc-tests (Makefile.am): Likewise.
23580         * modules/atexit-tests (Makefile.am): Likewise.
23581         * modules/binary-io-tests (Makefile.am): Likewise.
23582         * modules/closein-tests (Makefile.am): Likewise.
23583         * modules/dprintf-posix-tests (Makefile.am): Likewise.
23584         * modules/exclude-tests (Makefile.am): Likewise.
23585         * modules/fflush-tests (Makefile.am): Likewise.
23586         * modules/fpending-tests (Makefile.am): Likewise.
23587         * modules/fprintf-posix-tests (Makefile.am): Likewise.
23588         * modules/freadahead-tests (Makefile.am): Likewise.
23589         * modules/freadptr-tests (Makefile.am): Likewise.
23590         * modules/freadseek-tests (Makefile.am): Likewise.
23591         * modules/fseek-tests (Makefile.am): Likewise.
23592         * modules/fseeko-tests (Makefile.am): Likewise.
23593         * modules/ftell-tests (Makefile.am): Likewise.
23594         * modules/ftello-tests (Makefile.am): Likewise.
23595         * modules/idpriv-drop-tests (Makefile.am): Likewise.
23596         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
23597         * modules/lseek-tests (Makefile.am): Likewise.
23598         * modules/parse-duration-tests (Makefile.am): Likewise.
23599         * modules/perror-tests (Makefile.am): Likewise.
23600         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
23601         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
23602         * modules/pipe-tests (Makefile.am): Likewise.
23603         * modules/pread-tests (Makefile.am): Likewise.
23604         * modules/printf-posix-tests (Makefile.am): Likewise.
23605         * modules/select-tests (Makefile.am): Likewise.
23606         * modules/sigpipe-tests (Makefile.am): Likewise.
23607         * modules/tsearch-tests (Makefile.am): Likewise.
23608         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
23609         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
23610         * modules/uniname/uniname-tests (Makefile.am): Likewise.
23611         * modules/uniwidth/width-tests (Makefile.am): Likewise.
23612         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
23613         * modules/version-etc-tests (Makefile.am): Likewise.
23614         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
23615         * modules/vprintf-posix-tests (Makefile.am): Likewise.
23616         * modules/xalloc-die-tests (Makefile.am): Likewise.
23617         * modules/xprintf-posix-tests (Makefile.am): Likewise.
23618         * modules/xstrtoimax-tests (Makefile.am): Likewise.
23619         * modules/xstrtol-tests (Makefile.am): Likewise.
23620         * modules/xstrtoumax-tests (Makefile.am): Likewise.
23621         * modules/yesno-tests (Makefile.am): Likewise.
23622         Suggested by Jim Meyering.
23623
23624 2010-01-24  Bruno Haible  <bruno@clisp.org>
23625
23626         More documentation.
23627         * doc/gnulib.texi (Writing modules): New chapter.
23628         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
23629         the new chapter.
23630
23631 2010-01-24  Jim Meyering  <meyering@redhat.com>
23632
23633         maint.mk: do not prepend "./" after filtering
23634         * top/maint.mk (_prepend_srcdir_prefix): New variable
23635         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
23636         "./" when $(srcdir) is ".".
23637
23638         define STREQ(a,b) consistently, removing useless parentheses
23639         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
23640         since the only risk is that "a" or "b" contains an unparenthesized
23641         comma, but if either did that, STREQ would have 3 or more arguments.
23642         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
23643         * lib/fts.c (STREQ): Remove unnecessary parentheses.
23644         * lib/hash-triple.c (STREQ): Likewise.
23645         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
23646         * lib/getugroups.c (STREQ): Likewise.
23647
23648 2010-01-23  Jim Meyering  <meyering@redhat.com>
23649
23650         maint.mk: fix syntax-check in a non-srcdir build directory
23651         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
23652         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
23653
23654 2010-01-22  Jim Meyering  <meyering@redhat.com>
23655
23656         userspec: add unit tests
23657         * tests/test-userspec.c: New file.
23658         * modules/userspec-tests: Likewise.
23659
23660 2010-01-21  Jim Meyering  <meyering@redhat.com>
23661
23662         maint.mk: handle source file names containing "." robustly
23663         * top/maint.mk (_dot_escaped_srcdir): Define.
23664         (VC_LIST): Use it in LHS of sed substitution.
23665
23666 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
23667
23668         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
23669         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
23670         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
23671         from a non-srcdir build.
23672
23673 2010-01-20  Eric Blake  <ebb9@byu.net>
23674
23675         warn-on-use: use instead of link-warning
23676         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
23677         * modules/unistd (Depends-on, Makefile.am): Likewise.
23678         * modules/arpa_inet (Depends-on): Replace link-warning with
23679         warn-on-use.
23680         (Makefile.am): Update rules accordingly.
23681         * modules/ctype (Depends-on, Makefile.am): Likewise.
23682         * modules/dirent (Depends-on, Makefile.am): Likewise.
23683         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
23684         * modules/inttypes (Depends-on, Makefile.am): Likewise.
23685         * modules/langinfo (Depends-on, Makefile.am): Likewise.
23686         * modules/locale (Depends-on, Makefile.am): Likewise.
23687         * modules/math (Depends-on, Makefile.am): Likewise.
23688         * modules/search (Depends-on, Makefile.am): Likewise.
23689         * modules/signal (Depends-on, Makefile.am): Likewise.
23690         * modules/spawn (Depends-on, Makefile.am): Likewise.
23691         * modules/stdlib (Depends-on, Makefile.am): Likewise.
23692         * modules/string (Depends-on, Makefile.am): Likewise.
23693         * modules/strings (Depends-on, Makefile.am): Likewise.
23694         * modules/sys_file (Depends-on, Makefile.am): Likewise.
23695         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
23696         * modules/sys_select (Depends-on, Makefile.am): Likewise.
23697         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
23698         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
23699         * modules/sys_times (Depends-on, Makefile.am): Likewise.
23700         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
23701         * modules/wchar (Depends-on, Makefile.am): Likewise.
23702         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
23703         should be poisoned.
23704         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
23705         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
23706         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
23707         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
23708         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
23709         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
23710         * m4/math_h.m4 (gl_MATH_H): Likewise.
23711         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
23712         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
23713         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
23714         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
23715         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
23716         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
23717         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
23718         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
23719         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
23720         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
23721         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
23722         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
23723         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
23724         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
23725         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
23726         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
23727         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
23728         GL_LINK_WARNING.
23729         * lib/ctype.in.h: Likewise.
23730         * lib/dirent.in.h: Likewise.
23731         * lib/fcntl.in.h: Likewise.
23732         * lib/inttypes.in.h: Likewise.
23733         * lib/langinfo.in.h: Likewise.
23734         * lib/locale.in.h: Likewise.
23735         * lib/math.in.h: Likewise.
23736         * lib/search.in.h: Likewise.
23737         * lib/signal.in.h: Likewise.
23738         * lib/spawn.in.h: Likewise.
23739         * lib/stdio.in.h: Likewise.
23740         * lib/stdlib.in.h: Likewise.
23741         * lib/string.in.h: Likewise.
23742         * lib/strings.in.h: Likewise.
23743         * lib/sys_file.in.h: Likewise.
23744         * lib/sys_ioctl.in.h: Likewise.
23745         * lib/sys_select.in.h: Likewise.
23746         * lib/sys_socket.in.h: Likewise.
23747         * lib/sys_stat.in.h: Likewise.
23748         * lib/sys_times.in.h: Likewise.
23749         * lib/sys_utsname.in.h: Likewise.
23750         * lib/unistd.in.h: Likewise.
23751         * lib/wchar.in.h: Likewise.
23752
23753 2010-01-20  Bruno Haible  <bruno@clisp.org>
23754
23755         Avoid duplicate -lm.
23756         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
23757         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
23758         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
23759         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
23760         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
23761         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
23762         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
23763         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
23764         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
23765         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
23766         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
23767         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
23768         Reported by Paolo Bonzini.
23769
23770 2010-01-19  Bruno Haible  <bruno@clisp.org>
23771
23772         langinfo, nl_langinfo: Relicense under LGPLv2+.
23773         * modules/langinfo (License): Change to LGPLv2+.
23774         * modules/nl_langinfo (License): Likewise.
23775         Patch by David Lutterkort <lutter@redhat.com>.
23776
23777 2010-01-19  Bruno Haible  <bruno@clisp.org>
23778
23779         Avoid compilation error with cc on OSF/1 5.1.
23780         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
23781         statement, not before.
23782         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
23783
23784 2010-01-18  Bruno Haible  <bruno@clisp.org>
23785
23786         Avoid a link error due to the __printf__ symbol.
23787         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
23788         and 2.6.x.
23789         (__format__, __printf__): Remove definitions.
23790         * lib/argp-fmtstream.h: Likewise.
23791         * lib/argp.h: Likewise.
23792         * lib/error.h: Likewise.
23793         * lib/vasnprintf.h: Likewise.
23794         * lib/xprintf.h: Likewise.
23795         * lib/xvasprintf.h: Likewise.
23796         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
23797
23798 2010-01-18  Bruno Haible  <bruno@clisp.org>
23799
23800         Tests for module 'tanl'.
23801         * modules/tanl-tests: New file.
23802         * tests/test-tanl.c: New file.
23803
23804         Tests for module 'sqrtl'.
23805         * modules/sqrtl-tests: New file.
23806         * tests/test-sqrtl.c: New file.
23807
23808         Tests for module 'sinl'.
23809         * modules/sinl-tests: New file.
23810         * tests/test-sinl.c: New file.
23811
23812         Tests for module 'logl'.
23813         * modules/logl-tests: New file.
23814         * tests/test-logl.c: New file.
23815
23816         Tests for module 'expl'.
23817         * modules/expl-tests: New file.
23818         * tests/test-expl.c: New file.
23819
23820         Tests for module 'cosl'.
23821         * modules/cosl-tests: New file.
23822         * tests/test-cosl.c: New file.
23823
23824         Tests for module 'atanl'.
23825         * modules/atanl-tests: New file.
23826         * tests/test-atanl.c: New file.
23827
23828         Tests for module 'asinl'.
23829         * modules/asinl-tests: New file.
23830         * tests/test-asinl.c: New file.
23831
23832         Tests for module 'acosl'.
23833         * modules/acosl-tests: New file.
23834         * tests/test-acosl.c: New file.
23835
23836         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
23837         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
23838         tanl): Use the standard gnulib idiom.
23839         * lib/cosl.c: Don't include trigl.c and sincosl.c.
23840         * lib/sinl.c: Likewise.
23841         * lib/tanl.c: Don't include trigl.c.
23842         (kernel_tanl): Make static.
23843         * lib/sincosl.c: Include trigl.h first.
23844         * lib/trigl.c: Likewise.
23845         * m4/acosl.m4: New file.
23846         * m4/asinl.m4: New file.
23847         * m4/atanl.m4: New file.
23848         * m4/cosl.m4: New file.
23849         * m4/expl.m4: New file.
23850         * m4/logl.m4: New file.
23851         * m4/sinl.m4: New file.
23852         * m4/sqrtl.m4: New file.
23853         * m4/tanl.m4: New file.
23854         * m4/mathl.m4: Remove file.
23855         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
23856         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
23857         Don't initialize GNULIB_MATHL.
23858         * modules/acosl: New file.
23859         * modules/asinl: New file.
23860         * modules/atanl: New file.
23861         * modules/cosl: New file.
23862         * modules/expl: New file.
23863         * modules/logl: New file.
23864         * modules/sinl: New file.
23865         * modules/sqrtl: New file.
23866         * modules/tanl: New file.
23867         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
23868         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
23869         substitute GNULIB_MATHL.
23870         * modules/mathl: Rewritten.
23871         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
23872         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
23873         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
23874         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
23875         * doc/posix-functions/expl.texi: Mention the 'expl' module.
23876         * doc/posix-functions/logl.texi: Mention the 'logl' module.
23877         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
23878         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
23879         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
23880
23881 2010-01-18  Bruno Haible  <bruno@clisp.org>
23882
23883         sqrt: Make gl_FUNC_SQRT requirable.
23884         * m4/sqrt.m4: New file.
23885         * modules/sqrt (Files): Add it.
23886         (configure.ac): Invoke gl_FUNC_SQRT.
23887
23888 2010-01-18  Bruno Haible  <bruno@clisp.org>
23889
23890         New modules for common <math.h> functions.
23891         * m4/mathfunc.m4: New file.
23892         * modules/acos: New file.
23893         * modules/asin: New file.
23894         * modules/atan: New file.
23895         * modules/atan2: New file.
23896         * modules/cbrt: New file.
23897         * modules/copysign: New file.
23898         * modules/cos: New file.
23899         * modules/cosh: New file.
23900         * modules/erf: New file.
23901         * modules/erfc: New file.
23902         * modules/exp: New file.
23903         * modules/fabs: New file.
23904         * modules/fmod: New file.
23905         * modules/hypot: New file.
23906         * modules/j0: New file.
23907         * modules/j1: New file.
23908         * modules/jn: New file.
23909         * modules/ldexp: New file.
23910         * modules/lgamma: New file.
23911         * modules/log: New file.
23912         * modules/log10: New file.
23913         * modules/log1p: New file.
23914         * modules/logb: New file.
23915         * modules/modf: New file.
23916         * modules/nextafter: New file.
23917         * modules/pow: New file.
23918         * modules/remainder: New file.
23919         * modules/rint: New file.
23920         * modules/sin: New file.
23921         * modules/sinh: New file.
23922         * modules/sqrt: New file.
23923         * modules/tan: New file.
23924         * modules/tanh: New file.
23925         * modules/y0: New file.
23926         * modules/y1: New file.
23927         * modules/yn: New file.
23928         * doc/posix-functions/acos.texi: Mention the 'acos' module.
23929         * doc/posix-functions/asin.texi: Mention the 'asin' module.
23930         * doc/posix-functions/atan.texi: Mention the 'atan' module.
23931         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
23932         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
23933         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
23934         * doc/posix-functions/cos.texi: Mention the 'cos' module.
23935         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
23936         * doc/posix-functions/erf.texi: Mention the 'erf' module.
23937         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
23938         * doc/posix-functions/exp.texi: Mention the 'exp' module.
23939         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
23940         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
23941         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
23942         * doc/posix-functions/j0.texi: Mention the 'j0' module.
23943         * doc/posix-functions/j1.texi: Mention the 'j1' module.
23944         * doc/posix-functions/jn.texi: Mention the 'jn' module.
23945         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
23946         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
23947         * doc/posix-functions/log.texi: Mention the 'log' module.
23948         * doc/posix-functions/log10.texi: Mention the 'log10' module.
23949         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
23950         * doc/posix-functions/logb.texi: Mention the 'logb' module.
23951         * doc/posix-functions/modf.texi: Mention the 'modf' module.
23952         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
23953         * doc/posix-functions/pow.texi: Mention the 'pow' module.
23954         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
23955         * doc/posix-functions/rint.texi: Mention the 'rint' module.
23956         * doc/posix-functions/sin.texi: Mention the 'sin' module.
23957         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
23958         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
23959         * doc/posix-functions/tan.texi: Mention the 'tan' module.
23960         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
23961         * doc/posix-functions/y0.texi: Mention the 'y0' module.
23962         * doc/posix-functions/y1.texi: Mention the 'y1' module.
23963         * doc/posix-functions/yn.texi: Mention the 'yn' module.
23964
23965 2010-01-18  Jim Meyering  <meyering@redhat.com>
23966
23967         ignore-value: relax license to LGPLv2+
23968         * modules/ignore-value (License): Relax to LGPLv2+.
23969
23970         getdate: don't leak when TZ contains two or more '"'s
23971         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
23972         double quote in TZ after the first one.
23973
23974         readtokens: do not leak internal token_lengths buffer
23975         * lib/readtokens.c (readtokens): Free the local, lengths,
23976         when the supplied "token_lengths" parameter is NULL.
23977
23978 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23979
23980         Fix a couple of missing LIBTHREAD link failures on AIX.
23981         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
23982         $(LIBTHREAD).
23983         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
23984
23985         Link test-poll against INET_PTON_LIB.
23986         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
23987         for inet_pton on Solaris 10.
23988
23989 2010-01-17  Bruno Haible  <bruno@clisp.org>
23990
23991         unistdio/*-sprintf: Fix typo in module description.
23992         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
23993         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
23994         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
23995         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
23996         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
23997         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
23998         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
23999         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24000
24001 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24002
24003         gnulib-tool: fix filelist for AIX, HP-UX ksh.
24004         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
24005         variables in shell case patterns, for AIX and HP-UX ksh.
24006
24007         Split large sed scripts, for HP-UX sed.
24008         * modules/stdio: Split sed scripts around 50 sed commands,
24009         to avoid HP-UX limit of 99 commands, in the near future.
24010         * modules/string: Likewise.
24011         * modules/unistd: Likewise.
24012
24013         gnulib-tool: avoid writing in the current directory.
24014         * gnulib-tool (func_emit_lib_Makefile_am)
24015         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
24016         not in the current directory, so concurrent gnulib-tool
24017         instances do not interfere.
24018
24019 2010-01-16  Jim Meyering  <meyering@redhat.com>
24020
24021         doc: update users.txt
24022         * users.txt: Add grep.
24023         (diffutils, gzip): Update URLs.
24024
24025 2010-01-12  Bruno Haible  <bruno@clisp.org>
24026
24027         posix_spawn: Avoid test failure on Cygwin.
24028         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
24029         characters.
24030         Reported by Simon Josefsson.
24031
24032 2010-01-12  Bruno Haible  <bruno@clisp.org>
24033
24034         * tests/test-cond.c (main): When skipping the test, show the reason.
24035
24036 2010-01-12  Simon Josefsson  <simon@josefsson.org>
24037
24038         * lib/striconv.c (str_cd_iconv): Avoid if before free.
24039
24040 2010-01-12  Simon Josefsson  <simon@josefsson.org>
24041
24042         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
24043         VC_LIST_ALWAYS_EXCLUDE_REGEX.
24044
24045 2010-01-12  Eric Blake  <ebb9@byu.net>
24046
24047         build: guarantee AS_VAR_IF
24048         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
24049         (gl_AS_VAR_IF): Move...
24050         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
24051         Reported by Simon Josefsson.
24052
24053 2010-01-12  Simon Josefsson  <simon@josefsson.org>
24054
24055         * lib/stdio.in.h: Fix typo.
24056
24057 2010-01-12  Simon Josefsson  <simon@josefsson.org>
24058
24059         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
24060         libgpg-error.
24061
24062 2010-01-12  Simon Josefsson  <simon@josefsson.org>
24063
24064         * tests/test-xalloc-die.sh: Use $EXEEXT.
24065
24066 2010-01-12  Simon Josefsson  <simon@josefsson.org>
24067             Bruno Haible  <bruno@clisp.org>
24068
24069         getlogin, getlogin_r: Avoid test failure.
24070         * tests/test-getlogin.c: Include <stdio.h>.
24071         (main): Skip the test when the function fails because stdin is not a
24072         tty.
24073         * tests/test-getlogin_r.c: Include <stdio.h>.
24074         (main): Skip the test when the function fails because stdin is not a
24075         tty.
24076
24077 2010-01-11  Eric Blake  <ebb9@byu.net>
24078
24079         tests: avoid more large file warnings
24080         * tests/test-fflush.c: Avoid warning about ftell use.
24081         * tests/test-fseek.c: Avoid warning about fseek use.
24082
24083 2010-01-10  Bruno Haible  <bruno@clisp.org>
24084
24085         nproc: Work better on Linux when /proc and /sys are not mounted.
24086         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
24087         as lower bound when, on glibc/Linux systems,
24088         sysconf (_SC_NPROCESSORS_CONF) returns 1.
24089         Suggested by Pádraig Brady <P@draigbrady.com>.
24090         Reported by Dmitry V. Levin <ldv@altlinux.org>.
24091
24092         nproc: Refactor.
24093         * lib/nproc.c (num_processors_via_affinity_mask): New function,
24094         extracted from num_processors.
24095         (num_processors): Call it.
24096
24097 2010-01-11  Jim Meyering  <meyering@redhat.com>
24098
24099         utimecmp: avoid new warning from upcoming gcc-4.5.0
24100         * lib/utimecmp.c (BILLION): Define using #define rather than an
24101         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
24102
24103 2010-01-11  Eric Blake  <ebb9@byu.net>
24104
24105         math: add portability warnings for classification macros
24106         * modules/math (Depends-on): Add warn-on-use.
24107         (Makefile.am): Provide new substitutions.
24108         * m4/math_h.m4 (gl_MATH_H): Require inline.
24109         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
24110         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
24111         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
24112         implement warnings.
24113
24114         unistd: warn on use of environ without module
24115         * modules/unistd (Depends-on): Add warn-on-use.
24116         (Makefile.am): Provide new substitutions.
24117         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
24118         * lib/unistd.in.h (environ): Wrap with a warning helper function.
24119
24120         stdio: warn on suspicious uses
24121         * modules/stdio (Depends-on): Add warn-on-use.
24122         (Makefile.am): Provide new substitutions.
24123         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
24124         fseeko.
24125         * lib/stdio.in.h (gets): Always warn on use.
24126         (fseek, ftell): Adjust when warnings are issued, and honor
24127         _GL_NO_LARGE_FILES as a way to silence the warning.
24128         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
24129         any warning about large file offsets.
24130         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
24131         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
24132         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
24133         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
24134         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
24135         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
24136         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
24137         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
24138
24139         warn-on-use: new module
24140         * modules/warn-on-use: New file.
24141         * build-aux/warn-on-use.h: Likewise.
24142         * m4/warn-on-use.m4: Likewise.
24143         * MODULES.html.sh (Support for building): Mention it.
24144
24145 2010-01-10  Bruno Haible  <bruno@clisp.org>
24146
24147         Tests for module 'unistr/u32-strdup'.
24148         * modules/unistr/u32-strdup-tests: New file.
24149         * tests/unistr/test-u32-strdup.c: New file.
24150
24151         Tests for module 'unistr/u16-strdup'.
24152         * modules/unistr/u16-strdup-tests: New file.
24153         * tests/unistr/test-u16-strdup.c: New file.
24154
24155         Tests for module 'unistr/u8-strdup'.
24156         * modules/unistr/u8-strdup-tests: New file.
24157         * tests/unistr/test-u8-strdup.c: New file.
24158         * tests/unistr/test-strdup.h: New file.
24159
24160         Tests for module 'unistr/u32-strncmp'.
24161         * modules/unistr/u32-strncmp-tests: New file.
24162         * tests/unistr/test-u32-strncmp.c: New file.
24163
24164         Tests for module 'unistr/u16-strncmp'.
24165         * modules/unistr/u16-strncmp-tests: New file.
24166         * tests/unistr/test-u16-strncmp.c: New file.
24167
24168         Tests for module 'unistr/u8-strncmp'.
24169         * modules/unistr/u8-strncmp-tests: New file.
24170         * tests/unistr/test-u8-strncmp.c: New file.
24171         * tests/unistr/test-strncmp.h: New file.
24172
24173         Tests for module 'unistr/u32-strcoll'.
24174         * modules/unistr/u32-strcoll-tests: New file.
24175         * tests/unistr/test-u32-strcoll.c: New file.
24176
24177         Tests for module 'unistr/u16-strcoll'.
24178         * modules/unistr/u16-strcoll-tests: New file.
24179         * tests/unistr/test-u16-strcoll.c: New file.
24180
24181         Tests for module 'unistr/u8-strcoll'.
24182         * modules/unistr/u8-strcoll-tests: New file.
24183         * tests/unistr/test-u8-strcoll.c: New file.
24184
24185         Tests for module 'unistr/u32-strcmp'.
24186         * modules/unistr/u32-strcmp-tests: New file.
24187         * tests/unistr/test-u32-strcmp.c: New file.
24188         * tests/unistr/test-u32-strcmp.h: New file.
24189
24190         Tests for module 'unistr/u16-strcmp'.
24191         * modules/unistr/u16-strcmp-tests: New file.
24192         * tests/unistr/test-u16-strcmp.c: New file.
24193         * tests/unistr/test-u16-strcmp.h: New file.
24194
24195         Tests for module 'unistr/u8-strcmp'.
24196         * modules/unistr/u8-strcmp-tests: New file.
24197         * tests/unistr/test-u8-strcmp.c: New file.
24198         * tests/unistr/test-u8-strcmp.h: New file.
24199         * tests/unistr/test-strcmp.h: New file.
24200
24201         Tests for module 'unistr/u32-strncat'.
24202         * modules/unistr/u32-strncat-tests: New file.
24203         * tests/unistr/test-u32-strncat.c: New file.
24204
24205         Tests for module 'unistr/u16-strncat'.
24206         * modules/unistr/u16-strncat-tests: New file.
24207         * tests/unistr/test-u16-strncat.c: New file.
24208
24209         Tests for module 'unistr/u8-strncat'.
24210         * modules/unistr/u8-strncat-tests: New file.
24211         * tests/unistr/test-u8-strncat.c: New file.
24212         * tests/unistr/test-strncat.h: New file.
24213
24214         Tests for module 'unistr/u32-strcat'.
24215         * modules/unistr/u32-strcat-tests: New file.
24216         * tests/unistr/test-u32-strcat.c: New file.
24217
24218         Tests for module 'unistr/u16-strcat'.
24219         * modules/unistr/u16-strcat-tests: New file.
24220         * tests/unistr/test-u16-strcat.c: New file.
24221
24222         Tests for module 'unistr/u8-strcat'.
24223         * modules/unistr/u8-strcat-tests: New file.
24224         * tests/unistr/test-u8-strcat.c: New file.
24225         * tests/unistr/test-strcat.h: New file.
24226
24227         Tests for module 'unistr/u32-stpncpy'.
24228         * modules/unistr/u32-stpncpy-tests: New file.
24229         * tests/unistr/test-u32-stpncpy.c: New file.
24230
24231         Tests for module 'unistr/u16-stpncpy'.
24232         * modules/unistr/u16-stpncpy-tests: New file.
24233         * tests/unistr/test-u16-stpncpy.c: New file.
24234
24235         Tests for module 'unistr/u8-stpncpy'.
24236         * modules/unistr/u8-stpncpy-tests: New file.
24237         * tests/unistr/test-u8-stpncpy.c: New file.
24238         * tests/unistr/test-stpncpy.h: New file.
24239
24240         Tests for module 'unistr/u32-strncpy'.
24241         * modules/unistr/u32-strncpy-tests: New file.
24242         * tests/unistr/test-u32-strncpy.c: New file.
24243
24244         Tests for module 'unistr/u16-strncpy'.
24245         * modules/unistr/u16-strncpy-tests: New file.
24246         * tests/unistr/test-u16-strncpy.c: New file.
24247
24248         Tests for module 'unistr/u8-strncpy'.
24249         * modules/unistr/u8-strncpy-tests: New file.
24250         * tests/unistr/test-u8-strncpy.c: New file.
24251         * tests/unistr/test-strncpy.h: New file.
24252
24253         Tests for module 'unistr/u32-stpcpy'.
24254         * modules/unistr/u32-stpcpy-tests: New file.
24255         * tests/unistr/test-u32-stpcpy.c: New file.
24256
24257         Tests for module 'unistr/u16-stpcpy'.
24258         * modules/unistr/u16-stpcpy-tests: New file.
24259         * tests/unistr/test-u16-stpcpy.c: New file.
24260
24261         Tests for module 'unistr/u8-stpcpy'.
24262         * modules/unistr/u8-stpcpy-tests: New file.
24263         * tests/unistr/test-u8-stpcpy.c: New file.
24264         * tests/unistr/test-stpcpy.h: New file.
24265
24266         Tests for module 'unistr/u32-strcpy'.
24267         * modules/unistr/u32-strcpy-tests: New file.
24268         * tests/unistr/test-u32-strcpy.c: New file.
24269
24270         Tests for module 'unistr/u16-strcpy'.
24271         * modules/unistr/u16-strcpy-tests: New file.
24272         * tests/unistr/test-u16-strcpy.c: New file.
24273
24274         Tests for module 'unistr/u8-strcpy'.
24275         * modules/unistr/u8-strcpy-tests: New file.
24276         * tests/unistr/test-u8-strcpy.c: New file.
24277         * tests/unistr/test-strcpy.h: New file.
24278
24279         Tests for module 'unistr/u32-strnlen'.
24280         * modules/unistr/u32-strnlen-tests: New file.
24281         * tests/unistr/test-u32-strnlen.c: New file.
24282
24283         Tests for module 'unistr/u16-strnlen'.
24284         * modules/unistr/u16-strnlen-tests: New file.
24285         * tests/unistr/test-u16-strnlen.c: New file.
24286
24287         Tests for module 'unistr/u8-strnlen'.
24288         * modules/unistr/u8-strnlen-tests: New file.
24289         * tests/unistr/test-u8-strnlen.c: New file.
24290         * tests/unistr/test-strnlen.h: New file.
24291
24292         Tests for module 'unistr/u32-strlen'.
24293         * modules/unistr/u32-strlen-tests: New file.
24294         * tests/unistr/test-u32-strlen.c: New file.
24295
24296         Tests for module 'unistr/u16-strlen'.
24297         * modules/unistr/u16-strlen-tests: New file.
24298         * tests/unistr/test-u16-strlen.c: New file.
24299
24300         Tests for module 'unistr/u8-strlen'.
24301         * modules/unistr/u8-strlen-tests: New file.
24302         * tests/unistr/test-u8-strlen.c: New file.
24303
24304         Tests for module 'unistr/u32-prev'.
24305         * modules/unistr/u32-prev-tests: New file.
24306         * tests/unistr/test-u32-prev.c: New file.
24307
24308         Tests for module 'unistr/u16-prev'.
24309         * modules/unistr/u16-prev-tests: New file.
24310         * tests/unistr/test-u16-prev.c: New file.
24311
24312         Tests for module 'unistr/u8-prev'.
24313         * modules/unistr/u8-prev-tests: New file.
24314         * tests/unistr/test-u8-prev.c: New file.
24315
24316         Tests for module 'unistr/u32-next'.
24317         * modules/unistr/u32-next-tests: New file.
24318         * tests/unistr/test-u32-next.c: New file.
24319
24320         Tests for module 'unistr/u16-next'.
24321         * modules/unistr/u16-next-tests: New file.
24322         * tests/unistr/test-u16-next.c: New file.
24323
24324         Tests for module 'unistr/u8-next'.
24325         * modules/unistr/u8-next-tests: New file.
24326         * tests/unistr/test-u8-next.c: New file.
24327
24328         Tests for module 'unistr/u32-strmbtouc'.
24329         * modules/unistr/u32-strmbtouc-tests: New file.
24330         * tests/unistr/test-u32-strmbtouc.c: New file.
24331
24332         Tests for module 'unistr/u16-strmbtouc'.
24333         * modules/unistr/u16-strmbtouc-tests: New file.
24334         * tests/unistr/test-u16-strmbtouc.c: New file.
24335
24336         Tests for module 'unistr/u8-strmbtouc'.
24337         * modules/unistr/u8-strmbtouc-tests: New file.
24338         * tests/unistr/test-u8-strmbtouc.c: New file.
24339
24340         Tests for module 'unistr/u32-strmblen'.
24341         * modules/unistr/u32-strmblen-tests: New file.
24342         * tests/unistr/test-u32-strmblen.c: New file.
24343
24344         Tests for module 'unistr/u16-strmblen'.
24345         * modules/unistr/u16-strmblen-tests: New file.
24346         * tests/unistr/test-u16-strmblen.c: New file.
24347
24348         Tests for module 'unistr/u8-strmblen'.
24349         * modules/unistr/u8-strmblen-tests: New file.
24350         * tests/unistr/test-u8-strmblen.c: New file.
24351
24352         Tests for module 'unistr/u32-cpy-alloc'.
24353         * modules/unistr/u32-cpy-alloc-tests: New file.
24354         * tests/unistr/test-u32-cpy-alloc.c: New file.
24355
24356         Tests for module 'unistr/u16-cpy-alloc'.
24357         * modules/unistr/u16-cpy-alloc-tests: New file.
24358         * tests/unistr/test-u16-cpy-alloc.c: New file.
24359
24360         Tests for module 'unistr/u8-cpy-alloc'.
24361         * modules/unistr/u8-cpy-alloc-tests: New file.
24362         * tests/unistr/test-u8-cpy-alloc.c: New file.
24363         * tests/unistr/test-cpy-alloc.h: New file.
24364
24365         Tests for module 'unistr/u32-mbsnlen'.
24366         * modules/unistr/u32-mbsnlen-tests: New file.
24367         * tests/unistr/test-u32-mbsnlen.c: New file.
24368
24369         Tests for module 'unistr/u16-mbsnlen'.
24370         * modules/unistr/u16-mbsnlen-tests: New file.
24371         * tests/unistr/test-u16-mbsnlen.c: New file.
24372
24373         Tests for module 'unistr/u8-mbsnlen'.
24374         * modules/unistr/u8-mbsnlen-tests: New file.
24375         * tests/unistr/test-u8-mbsnlen.c: New file.
24376
24377         Tests for module 'unistr/u32-chr'.
24378         * modules/unistr/u32-chr-tests: New file.
24379         * tests/unistr/test-u32-chr.c: New file.
24380
24381         Tests for module 'unistr/u16-chr'.
24382         * modules/unistr/u16-chr-tests: New file.
24383         * tests/unistr/test-u16-chr.c: New file.
24384
24385         Tests for module 'unistr/u8-chr'.
24386         * modules/unistr/u8-chr-tests: New file.
24387         * tests/unistr/test-u8-chr.c: New file.
24388         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
24389
24390         Tests for module 'unistr/u32-cmp2'.
24391         * modules/unistr/u32-cmp2-tests: New file.
24392         * tests/unistr/test-u32-cmp2.c: New file.
24393
24394         Tests for module 'unistr/u16-cmp2'.
24395         * modules/unistr/u16-cmp2-tests: New file.
24396         * tests/unistr/test-u16-cmp2.c: New file.
24397
24398         Tests for module 'unistr/u8-cmp2'.
24399         * modules/unistr/u8-cmp2-tests: New file.
24400         * tests/unistr/test-u8-cmp2.c: New file.
24401         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
24402
24403         Tests for module 'unistr/u32-cmp'.
24404         * modules/unistr/u32-cmp-tests: New file.
24405         * tests/unistr/test-u32-cmp.c: New file.
24406
24407         Tests for module 'unistr/u16-cmp'.
24408         * modules/unistr/u16-cmp-tests: New file.
24409         * tests/unistr/test-u16-cmp.c: New file.
24410
24411         Tests for module 'unistr/u8-cmp'.
24412         * modules/unistr/u8-cmp-tests: New file.
24413         * tests/unistr/test-u8-cmp.c: New file.
24414         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
24415
24416         Tests for module 'unistr/u32-set'.
24417         * modules/unistr/u32-set-tests: New file.
24418         * tests/unistr/test-u32-set.c: New file.
24419
24420         Tests for module 'unistr/u16-set'.
24421         * modules/unistr/u16-set-tests: New file.
24422         * tests/unistr/test-u16-set.c: New file.
24423
24424         Tests for module 'unistr/u8-set'.
24425         * modules/unistr/u8-set-tests: New file.
24426         * tests/unistr/test-u8-set.c: New file.
24427         * tests/unistr/test-set.h: New file.
24428
24429         Tests for module 'unistr/u32-move'.
24430         * modules/unistr/u32-move-tests: New file.
24431         * tests/unistr/test-u32-move.c: New file.
24432
24433         Tests for module 'unistr/u16-move'.
24434         * modules/unistr/u16-move-tests: New file.
24435         * tests/unistr/test-u16-move.c: New file.
24436
24437         Tests for module 'unistr/u8-move'.
24438         * modules/unistr/u8-move-tests: New file.
24439         * tests/unistr/test-u8-move.c: New file.
24440         * tests/unistr/test-move.h: New file.
24441
24442         Tests for module 'unistr/u32-cpy'.
24443         * modules/unistr/u32-cpy-tests: New file.
24444         * tests/unistr/test-u32-cpy.c: New file.
24445
24446         Tests for module 'unistr/u16-cpy'.
24447         * modules/unistr/u16-cpy-tests: New file.
24448         * tests/unistr/test-u16-cpy.c: New file.
24449
24450         Tests for module 'unistr/u8-cpy'.
24451         * modules/unistr/u8-cpy-tests: New file.
24452         * tests/unistr/test-u8-cpy.c: New file.
24453         * tests/unistr/test-cpy.h: New file.
24454
24455 2010-01-09  Bruno Haible  <bruno@clisp.org>
24456
24457         Tests for module 'unistr/u32-uctomb'.
24458         * modules/unistr/u32-uctomb-tests: New file.
24459         * tests/unistr/test-u32-uctomb.c: New file.
24460
24461         Tests for module 'unistr/u16-uctomb'.
24462         * modules/unistr/u16-uctomb-tests: New file.
24463         * tests/unistr/test-u16-uctomb.c: New file.
24464
24465         Tests for module 'unistr/u8-uctomb'.
24466         * modules/unistr/u8-uctomb-tests: New file.
24467         * tests/unistr/test-u8-uctomb.c: New file.
24468
24469         Tests for module 'unistr/u32-mbtoucr'.
24470         * modules/unistr/u32-mbtoucr-tests: New file.
24471         * tests/unistr/test-u32-mbtoucr.c: New file.
24472
24473         Tests for module 'unistr/u16-mbtoucr'.
24474         * modules/unistr/u16-mbtoucr-tests: New file.
24475         * tests/unistr/test-u16-mbtoucr.c: New file.
24476
24477         Tests for module 'unistr/u8-mbtoucr'.
24478         * modules/unistr/u8-mbtoucr-tests: New file.
24479         * tests/unistr/test-u8-mbtoucr.c: New file.
24480
24481         Tests for module 'unistr/u32-mbtouc'.
24482         * modules/unistr/u32-mbtouc-tests: New file.
24483         * tests/unistr/test-u32-mbtouc.c: New file.
24484
24485         Tests for module 'unistr/u16-mbtouc'.
24486         * modules/unistr/u16-mbtouc-tests: New file.
24487         * tests/unistr/test-u16-mbtouc.c: New file.
24488
24489         Tests for module 'unistr/u8-mbtouc'.
24490         * modules/unistr/u8-mbtouc-tests: New file.
24491         * tests/unistr/test-u8-mbtouc.c: New file.
24492
24493         Tests for module 'unistr/u32-mbtouc-unsafe'.
24494         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
24495         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
24496         * tests/unistr/test-u32-mbtouc.h: New file.
24497
24498         Tests for module 'unistr/u16-mbtouc-unsafe'.
24499         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
24500         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
24501         * tests/unistr/test-u16-mbtouc.h: New file.
24502
24503         Tests for module 'unistr/u8-mbtouc-unsafe'.
24504         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
24505         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
24506         * tests/unistr/test-u8-mbtouc.h: New file.
24507
24508         Tests for module 'unistr/u32-mblen'.
24509         * modules/unistr/u32-mblen-tests: New file.
24510         * tests/unistr/test-u32-mblen.c: New file.
24511
24512         Tests for module 'unistr/u16-mblen'.
24513         * modules/unistr/u16-mblen-tests: New file.
24514         * tests/unistr/test-u16-mblen.c: New file.
24515
24516         Tests for module 'unistr/u8-mblen'.
24517         * modules/unistr/u8-mblen-tests: New file.
24518         * tests/unistr/test-u8-mblen.c: New file.
24519
24520         Tests for module 'unistr/u32-to-u16'.
24521         * modules/unistr/u32-to-u16-tests: New file.
24522         * tests/unistr/test-u32-to-u16.c: New file.
24523
24524         Tests for module 'unistr/u32-to-u8'.
24525         * modules/unistr/u32-to-u8-tests: New file.
24526         * tests/unistr/test-u32-to-u8.c: New file.
24527
24528         Tests for module 'unistr/u16-to-u32'.
24529         * modules/unistr/u16-to-u32-tests: New file.
24530         * tests/unistr/test-u16-to-u32.c: New file.
24531
24532         Tests for module 'unistr/u16-to-u8'.
24533         * modules/unistr/u16-to-u8-tests: New file.
24534         * tests/unistr/test-u16-to-u8.c: New file.
24535
24536         Tests for module 'unistr/u8-to-u32'.
24537         * modules/unistr/u8-to-u32-tests: New file.
24538         * tests/unistr/test-u8-to-u32.c: New file.
24539
24540         Tests for module 'unistr/u8-to-u16'.
24541         * modules/unistr/u8-to-u16-tests: New file.
24542         * tests/unistr/test-u8-to-u16.c: New file.
24543
24544         Tests for module 'unistr/u32-check'.
24545         * modules/unistr/u32-check-tests: New file.
24546         * tests/unistr/test-u32-check.c: New file.
24547
24548         Tests for module 'unistr/u16-check'.
24549         * modules/unistr/u16-check-tests: New file.
24550         * tests/unistr/test-u16-check.c: New file.
24551
24552         Tests for module 'unistr/u8-check'.
24553         * modules/unistr/u8-check-tests: New file.
24554         * tests/unistr/test-u8-check.c: New file.
24555
24556         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
24557         (category_equals): New function.
24558         (main): Add more tests.
24559         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
24560
24561         * tests/unictype/test-bidi_byname.c (main): Add more tests.
24562
24563 2010-01-10  Bruno Haible  <bruno@clisp.org>
24564
24565         unistr/u*-strcoll: Try harder to distinguish different strings.
24566         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
24567         compare s1 and s2 to see if they are different.
24568
24569 2010-01-10  Bruno Haible  <bruno@clisp.org>
24570
24571         unistr/u*-stpncpy: Fix the return value.
24572         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
24573         description of the return value consistent with stpncpy in glibc.
24574         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
24575         written non-NUL unit.
24576
24577 2010-01-10  Bruno Haible  <bruno@clisp.org>
24578
24579         unistr/u*-next: Add missing dependencies.
24580         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
24581         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
24582         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
24583
24584 2010-01-10  Bruno Haible  <bruno@clisp.org>
24585
24586         unistr/u8-mbsnlen: Fix return value for incomplete character.
24587         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
24588         u8_mblen.
24589         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
24590         Remove unistr/u8-mblen.
24591         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
24592         u16_mblen.
24593         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
24594         Remove unistr/u16-mblen.
24595
24596 2010-01-10  Bruno Haible  <bruno@clisp.org>
24597
24598         wchar: Fix compilation error when <wchar.h> is used from coreutils.
24599         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
24600         Reported by Brian Gough <bjg@gnu.org> and
24601         Chris Clayton <chris2553@googlemail.com> via
24602         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
24603
24604 2010-01-09  Bruno Haible  <bruno@clisp.org>
24605
24606         unistr/u16-to-u32: Reject invalid input.
24607         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
24608         u16_mbtouc.
24609         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
24610         Remove unistr/u16-mbtouc.
24611
24612         unistr/u16-to-u8: Reject invalid input.
24613         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
24614         u16_mbtouc.
24615         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
24616         Remove unistr/u16-mbtouc.
24617
24618         unistr/u8-to-u32: Reject invalid input.
24619         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
24620         u8_mbtouc.
24621         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
24622         Remove unistr/u8-mbtouc.
24623
24624         unistr/u8-to-u16: Reject invalid input.
24625         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
24626         u8_mbtouc.
24627         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
24628         Remove unistr/u8-mbtouc.
24629
24630 2010-01-09  Bruno Haible  <bruno@clisp.org>
24631
24632         Tests for module 'getlogin'.
24633         * modules/getlogin-tests: New file.
24634         * tests/test-getlogin.c: New file.
24635
24636         New module 'getlogin'.
24637         * lib/unistd.in.h (getlogin): New declaration.
24638         * lib/getlogin.c: New file.
24639         * m4/getlogin.m4: New file.
24640         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
24641         HAVE_GETLOGIN.
24642         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
24643         HAVE_GETLOGIN.
24644         * modules/getlogin: New file.
24645         * doc/posix-functions/getlogin.texi: Mention the new module.
24646         Reported by John W. Eaton <jwe@gnu.org>.
24647
24648 2010-01-09  Bruno Haible  <bruno@clisp.org>
24649
24650         getlogin_r: Support for native Windows.
24651         * lib/getlogin_r.c: Include <windows.h>
24652         (getlogin_r): Implement for native Windows.
24653         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
24654         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
24655         via John W. Eaton <jwe@gnu.org>.
24656
24657 2010-01-09  Bruno Haible  <bruno@clisp.org>
24658
24659         getlogin_r: Small fixes.
24660         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
24661         succeeds.
24662         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
24663         before testing whether getlogin_r is declared. No need to set
24664         HAVE_DECL_GETLOGIN_R to 1.
24665         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
24666
24667 2010-01-09  Bruno Haible  <bruno@clisp.org>
24668
24669         * lib/unistd.in.h (getlogin_r): Add comment.
24670
24671 2010-01-09  Bruno Haible  <bruno@clisp.org>
24672
24673         Tests for module 'getlogin_r'.
24674         * modules/getlogin_r-tests: New file.
24675         * tests/test-getlogin_r.c: New file.
24676
24677 2010-01-09  Jim Meyering  <meyering@redhat.com>
24678
24679         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
24680         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
24681         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
24682
24683 2010-01-08  Simon Josefsson  <simon@josefsson.org>
24684
24685         * lib/dup2.c (rpl_dup2): Improve comment.
24686
24687 2010-01-08  Eric Blake  <ebb9@byu.net>
24688
24689         maint.mk: allow packages to add makefile @@ exceptions
24690         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
24691         (sc_makefile_check): Rename...
24692         (sc_makefile_at_at_check): ...to this, and use hook.
24693
24694         dup2: work around mingw bug
24695         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
24696         Reported by Simon Josefsson.
24697
24698 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
24699
24700         glob: Fix C++ compilation.
24701         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
24702         C++.
24703
24704 2010-01-07  Bruno Haible  <bruno@clisp.org>
24705
24706         Fix indentation of wctype.in.h, broken since 2007-01-06.
24707         * lib/wctype.in.h: Fix indentation of preprocessor directives.
24708
24709 2010-01-07  Bruno Haible  <bruno@clisp.org>
24710
24711         mbslen: Avoid collision with system function.
24712         * lib/string.in.h [MirBSD]: Include <wchar.h>.
24713         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
24714         * m4/mbslen.m4: New file.
24715         * modules/mbslen (Files): Add it.
24716         (configure.ac): Invoke gl_MBSLEN.
24717         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
24718         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
24719         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
24720         via Ian Beckwith <ianb@erislabs.net>.
24721
24722 2010-01-07  Bruno Haible  <bruno@clisp.org>
24723
24724         dirent: Document the last fix.
24725         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
24726
24727 2010-01-07  Bruno Haible  <bruno@clisp.org>
24728
24729         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
24730         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
24731         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
24732         va_list are defined.
24733         * doc/posix-headers/stdio.texi: Document the bug of missing types.
24734         Reported by Eric Blake.
24735
24736 2010-01-07  Bruno Haible  <bruno@clisp.org>
24737
24738         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
24739         * modules/xlist (Depends-on): Add 'list',
24740         * modules/xoset (Depends-on): Add 'oset'.
24741         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24742
24743 2010-01-07  Bruno Haible  <bruno@clisp.org>
24744
24745         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
24746         * doc/posix-functions/strncasecmp.texi: Likewise.
24747
24748 2010-01-07  Bruno Haible  <bruno@clisp.org>
24749
24750         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
24751
24752 2010-01-07  John W. Eaton  <jwe@octave.org>
24753
24754         wctype: allow C++ use
24755         * lib/wctype.in.h: Add extern "C" block for C++.
24756
24757 2010-01-06  Eric Blake  <ebb9@byu.net>
24758
24759         maint.mk: detect incorrect GFDL usage
24760         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
24761
24762 2010-01-06  Jim Meyering  <meyering@redhat.com>
24763         and Eric Blake  <ebb9@byu.net>
24764
24765         maint.mk: ignore multi-line copyright in NEWS
24766         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
24767
24768 2010-01-06  Eric Blake  <ebb9@byu.net>
24769
24770         select: add missing dependency
24771         * modules/select-tests (Depends-on): Move sockets dependency...
24772         * modules/select (Depends-on): ...here.
24773         Reported by Ian Beckwith.
24774
24775         doc: regenerate INSTALL
24776         * doc/INSTALL: Reflect recent autoconf update.
24777         * doc/INSTALL.ISO: Likewise.
24778         * doc/INSTALL.UTF-8: Likewise.
24779
24780         pread: fix compilation on glibc
24781         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
24782         Reported by Ralf Wildenhues.
24783
24784         dirent: fix test failure
24785         * lib/dirent.in.h (includes): Guarantee ino_t.
24786         Reported by Ralf Wildenhues.
24787
24788 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
24789
24790         linkat, renameat: avoid bad free
24791         * lib/at-func2.c (at_func2): Fix typo.
24792         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
24793
24794 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24795
24796         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
24797         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
24798         to avoid failure of symlink test later.
24799
24800 2010-01-06  Eric Blake  <ebb9@byu.net>
24801
24802         stdio, unistd: guarantee ssize_t
24803         * lib/unistd.in.h (includes): Ensure that types required by POSIX
24804         2008 are exposed when needed.
24805         * lib/stdio.in.h (includes): Likewise.
24806         Reported by Ralf Wildenhues.
24807
24808 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
24809
24810         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
24811         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
24812         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
24813
24814 2010-01-06  Jim Meyering  <meyering@redhat.com>
24815
24816         readtokens: this module *does* require xalloc.h
24817         It uses only functions that were omitted by the old syntax-check rule.
24818         * lib/readtokens.c: Include "xalloc.h" once again.
24819         * modules/readtokens (Depends-on): Add xalloc.
24820         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
24821
24822 2010-01-05  Eric Blake  <ebb9@byu.net>
24823
24824         maint: support 'make announcement' from a VPATH build
24825         * top/maint.mk (announcement): Look for correct NEWS file.
24826
24827 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
24828
24829         utimens (fdutimens): ignore a negative FD, per contract
24830         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
24831         when we have a valid file descriptor.  Otherwise, using a brand
24832         new glibc (with just-patched futimens that now fails with EBADF)
24833         would cause this function to fail with ENOSYS.
24834         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
24835         See also http://bugzilla.redhat.com/552320.
24836
24837 2010-01-05  Eric Blake  <ebb9@byu.net>
24838
24839         strcase: document what it provides
24840         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
24841         gnulib module.
24842         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
24843         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
24844
24845 2010-01-05  Jim Meyering  <meyering@redhat.com>
24846
24847         maint: remove useless inclusions of "xalloc.h"
24848         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
24849         * lib/readtokens.c: Likewise.
24850         * lib/same.c: Likewise.
24851         * modules/getloadavg (Depends-on): Remove xalloc.
24852         * modules/readtokens: Likewise.
24853         * modules/same: Likewise.
24854
24855         maint.mk: include 4 more function names in alloca.h-checking regexp
24856         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
24857         regexp.  Before, we would give a false-positive (saying alloca.h
24858         is included unnecessarily) when the only uses involved omitted symbols.
24859
24860         xalloc.h: use consistent formatting
24861         * lib/xalloc.h: Move declarations to start in the first column.
24862
24863 2010-01-05  Eric Blake  <ebb9@byu.net>
24864
24865         mkdir: avoid xalloc
24866         * lib/mkdir.c (includes): Drop unused header.
24867         Reported by John W. Eaton.
24868
24869 2010-01-04  Jim Meyering  <meyering@redhat.com>
24870
24871         nl_langinfo: avoid configure-time syntax error
24872         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
24873         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
24874         the empty string.  Don't let that provoke a shell syntax error.
24875
24876         regcomp, regexec, fnmatch: avoid array bounds read error
24877         * lib/regcomp.c (build_equiv_class): From glibc:
24878         Use only the low 24 bits of a findidx return value as an index
24879         into the weights array.  Patch by Ulrich Drepper:
24880         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
24881         * lib/regexec.c (check_node_accept_bytes): Likewise.
24882         * lib/fnmatch_loop.c (FCT): Likewise.
24883
24884         regcomp: skip collseq lookup when there are no rules
24885         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
24886         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
24887
24888         regcomp: recognize ill-formed { } expressions
24889         * lib/regcomp.c (parse_dup_op): From glibc:
24890         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
24891
24892         regcomp: fix typo in comment
24893         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
24894         s/satisfy/satisfies/.
24895
24896         regcomp: sync from glibc: remove dead store
24897         * lib/regcomp.c (duplicate_node_closure): Remove useless
24898         search_duplicated_node call and dead store.
24899
24900         regcomp: sync from glibc; always use nl_langinfo
24901         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
24902         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
24903         * modules/regex (Depends-on): Add nl_langinfo.
24904
24905 2010-01-04  Eric Blake  <ebb9@byu.net>
24906
24907         fdopendir: fix configure test
24908         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
24909
24910 2010-01-01  Bruno Haible  <bruno@clisp.org>
24911
24912         wchar: Remove unused configure check.
24913         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
24914
24915 2010-01-01  Eric Blake  <ebb9@byu.net>
24916
24917         headers: make check of system header explicit
24918         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
24919         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
24920         ourselves.
24921         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
24922         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
24923         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
24924         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
24925         internals.
24926         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
24927         missing.
24928         Suggested by Bruno Haible.
24929
24930 2010-01-01  Jim Meyering  <meyering@redhat.com>
24931
24932         ChangeLog: tweak to eliminate unnecessary copyright line
24933         * ChangeLog: Remove a copyright line that was mistakenly updated
24934         by today's update-copyright run.  Reported by Eric Blake.
24935
24936         test-update-copyright: don't let envvar setting cause test failure
24937         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
24938
24939 2010-01-01  Bruno Haible  <bruno@clisp.org>
24940
24941         localename: Avoid gcc warning.
24942         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
24943         function if it is not used.
24944
24945 2010-01-01  Jim Meyering  <meyering@redhat.com>
24946
24947         update nearly all FSF copyright year lists to include 2010
24948         Use the same procedure as for 2009, outlined in
24949         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
24950
24951         version-etc: set COPYRIGHT_YEAR to 2010
24952         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
24953
24954 2009-12-31  Eric Blake  <ebb9@byu.net>
24955
24956         doc: correct availability of cygwin 1.5.x getopt
24957         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
24958         variables.
24959         * doc/posix-functions/opterr.texi (opterr): Likewise.
24960         * doc/posix-functions/optind.texi (optind): Likewise.
24961         * doc/posix-functions/optopt.texi (optopt): Likewise.
24962         * doc/posix-functions/tzname.texi (tzname): Likewise.
24963
24964         openat: update maintainer
24965         * modules/openat (Maintainer): Add myself.
24966
24967         utimens: avoid shadowing warning
24968         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
24969         buffers into one, to avoid shadowing, as well as avoiding a
24970         redundant stat.
24971         Reported by Jim Meyering.
24972
24973         test-dup2: avoid compiler warning
24974         * tests/test-dup2.c (is_inheritable): Only define if used.
24975
24976 2010-01-01  Bruno Haible  <bruno@clisp.org>
24977
24978         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
24979         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
24980         defined, use wctomb instead of wcrtomb.
24981
24982 2010-01-01  Bruno Haible  <bruno@clisp.org>
24983
24984         iconv: Reject native Solaris iconv.
24985         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
24986         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
24987
24988 2009-12-31  Bruno Haible  <bruno@clisp.org>
24989
24990         * tests/test-signal.c (main): Remove test of 'SIG'.
24991
24992 2009-12-31  Bruno Haible  <bruno@clisp.org>
24993
24994         spawn: Fix incomplete fix.
24995         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
24996         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
24997         warnings for GNULIB_POSIXCHECK again.
24998         Reported by Eric Blake.
24999
25000 2009-12-31  Bruno Haible  <bruno@clisp.org>
25001
25002         Avoid namespace pollution on glibc systems.
25003         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
25004         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
25005         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
25006         glibc systems.
25007
25008 2009-12-31  Bruno Haible  <bruno@clisp.org>
25009
25010         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
25011         (gl_REPLACE_WCHAR_H): Turn into a no-op.
25012         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
25013         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
25014         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
25015         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
25016         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
25017
25018 2009-12-31  Bruno Haible  <bruno@clisp.org>
25019
25020         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
25021         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
25022         afterwards.
25023
25024 2009-12-31  Bruno Haible  <bruno@clisp.org>
25025
25026         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
25027         SYS_UTSNAME_H.
25028
25029 2009-12-31  Bruno Haible  <bruno@clisp.org>
25030
25031         spawn: Fix misapplied patch.
25032         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
25033         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
25034         warnings for GNULIB_POSIXCHECK.
25035
25036 2009-12-31  Bruno Haible  <bruno@clisp.org>
25037
25038         times: Update after sys_times changed.
25039         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
25040         * modules/times (Files): Add it.
25041         (configure.ac): Invoke gl_FUNC_TIMES.
25042
25043 2009-12-31  Bruno Haible  <bruno@clisp.org>
25044
25045         Use AC_C_INLINE where necessary.
25046         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
25047         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
25048         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
25049         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
25050         * m4/mbfile.m4 (gl_MBFILE): Likewise.
25051         * m4/mbiter.m4 (gl_MBITER): Likewise.
25052         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
25053         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
25054         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
25055         * modules/u64 (configure.ac): Likewise.
25056
25057 2009-12-31  Bruno Haible  <bruno@clisp.org>
25058
25059         Use AC_C_INLINE instead of module 'inline' where possible.
25060         * modules/inline (Description): Clarify purpose.
25061         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
25062         * modules/count-one-bits (Depends-on): Remove inline.
25063         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
25064         * modules/openat (Depends-on): Remove inline.
25065         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
25066         instead of depending on module 'inline'.
25067         * modules/filevercmp (Depends-on, configure.ac): Likewise.
25068         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
25069         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
25070         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
25071         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
25072         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
25073         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
25074         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
25075         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
25076         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
25077         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
25078         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
25079         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
25080         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
25081         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
25082         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
25083         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
25084         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
25085         Likewise.
25086         * modules/unictype/property-ascii-hex-digit (Depends-on,
25087         configure.ac): Likewise.
25088         * modules/unictype/property-bidi-arabic-digit (Depends-on,
25089         configure.ac): Likewise.
25090         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
25091         configure.ac): Likewise.
25092         * modules/unictype/property-bidi-block-separator (Depends-on,
25093         configure.ac): Likewise.
25094         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
25095         configure.ac): Likewise.
25096         * modules/unictype/property-bidi-common-separator (Depends-on,
25097         configure.ac): Likewise.
25098         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
25099         Likewise.
25100         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
25101         configure.ac): Likewise.
25102         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
25103         configure.ac): Likewise.
25104         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
25105         configure.ac): Likewise.
25106         * modules/unictype/property-bidi-european-digit (Depends-on,
25107         configure.ac): Likewise.
25108         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
25109         configure.ac): Likewise.
25110         * modules/unictype/property-bidi-left-to-right (Depends-on,
25111         configure.ac): Likewise.
25112         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
25113         configure.ac): Likewise.
25114         * modules/unictype/property-bidi-other-neutral (Depends-on,
25115         configure.ac): Likewise.
25116         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
25117         Likewise.
25118         * modules/unictype/property-bidi-segment-separator (Depends-on,
25119         configure.ac): Likewise.
25120         * modules/unictype/property-bidi-whitespace (Depends-on,
25121         configure.ac): Likewise.
25122         * modules/unictype/property-combining (Depends-on, configure.ac):
25123         Likewise.
25124         * modules/unictype/property-composite (Depends-on, configure.ac):
25125         Likewise.
25126         * modules/unictype/property-currency-symbol (Depends-on,
25127         configure.ac): Likewise.
25128         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
25129         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
25130         Likewise.
25131         * modules/unictype/property-default-ignorable-code-point (Depends-on,
25132         configure.ac): Likewise.
25133         * modules/unictype/property-deprecated (Depends-on, configure.ac):
25134         Likewise.
25135         * modules/unictype/property-diacritic (Depends-on, configure.ac):
25136         Likewise.
25137         * modules/unictype/property-extender (Depends-on, configure.ac):
25138         Likewise.
25139         * modules/unictype/property-format-control (Depends-on, configure.ac):
25140         Likewise.
25141         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
25142         Likewise.
25143         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
25144         Likewise.
25145         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
25146         Likewise.
25147         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
25148         Likewise.
25149         * modules/unictype/property-hyphen (Depends-on, configure.ac):
25150         Likewise.
25151         * modules/unictype/property-id-continue (Depends-on, configure.ac):
25152         Likewise.
25153         * modules/unictype/property-id-start (Depends-on, configure.ac):
25154         Likewise.
25155         * modules/unictype/property-ideographic (Depends-on, configure.ac):
25156         Likewise.
25157         * modules/unictype/property-ids-binary-operator (Depends-on,
25158         configure.ac): Likewise.
25159         * modules/unictype/property-ids-trinary-operator (Depends-on,
25160         configure.ac): Likewise.
25161         * modules/unictype/property-ignorable-control (Depends-on,
25162         configure.ac): Likewise.
25163         * modules/unictype/property-iso-control (Depends-on, configure.ac):
25164         Likewise.
25165         * modules/unictype/property-join-control (Depends-on, configure.ac):
25166         Likewise.
25167         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
25168         Likewise.
25169         * modules/unictype/property-line-separator (Depends-on, configure.ac):
25170         Likewise.
25171         * modules/unictype/property-logical-order-exception (Depends-on,
25172         configure.ac): Likewise.
25173         * modules/unictype/property-lowercase (Depends-on, configure.ac):
25174         Likewise.
25175         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
25176         * modules/unictype/property-non-break (Depends-on, configure.ac):
25177         Likewise.
25178         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
25179         Likewise.
25180         * modules/unictype/property-numeric (Depends-on, configure.ac):
25181         Likewise.
25182         * modules/unictype/property-other-alphabetic (Depends-on,
25183         configure.ac): Likewise.
25184         * modules/unictype/property-other-default-ignorable-code-point
25185         (Depends-on, configure.ac): Likewise.
25186         * modules/unictype/property-other-grapheme-extend (Depends-on,
25187         configure.ac): Likewise.
25188         * modules/unictype/property-other-id-continue (Depends-on,
25189         configure.ac): Likewise.
25190         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
25191         Likewise.
25192         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
25193         Likewise.
25194         * modules/unictype/property-other-math (Depends-on, configure.ac):
25195         Likewise.
25196         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
25197         Likewise.
25198         * modules/unictype/property-paired-punctuation (Depends-on,
25199         configure.ac): Likewise.
25200         * modules/unictype/property-paragraph-separator (Depends-on,
25201         configure.ac): Likewise.
25202         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
25203         Likewise.
25204         * modules/unictype/property-pattern-white-space (Depends-on,
25205         configure.ac): Likewise.
25206         * modules/unictype/property-private-use (Depends-on, configure.ac):
25207         Likewise.
25208         * modules/unictype/property-punctuation (Depends-on, configure.ac):
25209         Likewise.
25210         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
25211         Likewise.
25212         * modules/unictype/property-radical (Depends-on, configure.ac):
25213         Likewise.
25214         * modules/unictype/property-sentence-terminal (Depends-on,
25215         configure.ac): Likewise.
25216         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
25217         Likewise.
25218         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
25219         * modules/unictype/property-terminal-punctuation (Depends-on,
25220         configure.ac): Likewise.
25221         * modules/unictype/property-titlecase (Depends-on, configure.ac):
25222         Likewise.
25223         * modules/unictype/property-unassigned-code-value (Depends-on,
25224         configure.ac): Likewise.
25225         * modules/unictype/property-unified-ideograph (Depends-on,
25226         configure.ac): Likewise.
25227         * modules/unictype/property-uppercase (Depends-on, configure.ac):
25228         Likewise.
25229         * modules/unictype/property-variation-selector (Depends-on,
25230         configure.ac): Likewise.
25231         * modules/unictype/property-white-space (Depends-on, configure.ac):
25232         Likewise.
25233         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
25234         Likewise.
25235         * modules/unictype/property-xid-start (Depends-on, configure.ac):
25236         Likewise.
25237         * modules/unictype/property-zero-width (Depends-on, configure.ac):
25238         Likewise.
25239         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
25240         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
25241         Likewise.
25242
25243 2009-12-31  Bruno Haible  <bruno@clisp.org>
25244
25245         Remove unnecessary AC_C_INLINE invocation.
25246         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
25247         since 2009-08-21.
25248
25249 2009-12-31  Jim Meyering  <meyering@redhat.com>
25250
25251         maint.mk: don't require explicit gpg_key_ID in cfg.mk
25252         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
25253         With this change, we can all remove the gpg_key_ID = ... definition
25254         from our respective cfg.mk files.
25255
25256         maint.mk: create announcement template in ~/, not in /tmp
25257         * top/maint.mk (emit_upload_commands): Adjust.
25258         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
25259         Remove temporary file, .ci-msg.
25260
25261 2009-12-31  Eric Blake  <ebb9@byu.net>
25262
25263         link-warning: always build headers with link warnings
25264         * modules/arpa_inet (Makefile.am): Always build replacement
25265         header.
25266         * modules/ctype (Makefile.am): Likewise.
25267         * modules/dirent (Makefile.am): Likewise.
25268         * modules/inttypes (Makefile.am): Likewise.
25269         * modules/langinfo (Makefile.am): Likewise.
25270         * modules/locale (Makefile.am): Likewise.
25271         * modules/spawn (Makefile.am): Likewise.
25272         * modules/sys_file (Makefile.am): Likewise.
25273         * modules/sys_ioctl (Makefile.am): Likewise.
25274         * modules/sys_select (Makefile.am): Likewise.
25275         * modules/sys_socket (Makefile.am): Likewise.
25276         * modules/sys_times (Makefile.am): Likewise.
25277         * modules/sys_utsname (Makefile.am): Likewise.
25278         * modules/sys_wait (Makefile.am): Likewise.
25279         * modules/wchar (Makefile.am): Likewise.
25280         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
25281         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
25282         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
25283         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
25284         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
25285         Likewise.
25286         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
25287         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
25288         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
25289         Likewise.
25290         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
25291         Likewise.
25292         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
25293         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
25294         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
25295         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
25296         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
25297         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
25298         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
25299         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
25300         (gl_WCHAR_H_DEFAULTS): Likewise.
25301
25302 2009-12-31  Eric Blake  <ebb9@byu.net>
25303
25304         signal, spawn: use link warnings
25305         * lib/signal.in.h (sigset_t): Make unconditional.
25306         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
25307         (sigpending, sigprocmask, sigaction): Add link warnings.
25308         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
25309         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
25310         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
25311         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
25312         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
25313         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
25314         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
25315         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
25316         (posix_spawn_file_actions_destroy)
25317         (posix_spawn_file_actions_addopen)
25318         (posix_spawn_file_actions_addclose)
25319         (posix_spawn_file_actions_adddup2): Likewise.
25320         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
25321         * tests/test-signal.c (main): Enhance test.
25322
25323         spawn: improve wrapper support
25324         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
25325         (gl_SPAWN_H_DEFAULTS): New defaults.
25326         * modules/spawn (Makefile.am): Substitute them.
25327         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
25328         Only declare if missing or broken.
25329
25330         sys_times, sys_utsname: use include_next
25331         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
25332         header.
25333         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
25334         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
25335         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
25336         * modules/sys_times (Depends-on): Add include_next.
25337         (Makefile.am): Substitute additional values.
25338         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
25339         * lib/sys_times.in.h (includes): Include native header, if
25340         available.
25341         * lib/sys_utsname.in.h (includes): Likewise.
25342         * tests/test-sys_times.c (main): Enhance test.
25343
25344         fdutimensat: revert prior patch
25345         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
25346         utimens.h.
25347         Reported by Bruno Haible.
25348
25349 2009-12-30  Eric Blake  <ebb9@byu.net>
25350
25351         sys_wait: drop link-warning dependency
25352         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
25353         link-warning efforts.
25354         * lib/sys_wait.in.h: Likewise.
25355
25356         fdutimensat: remove bogus dependency
25357         * modules/fdutimensat (Depends-on): Drop inline.
25358
25359         unistd: fix typo
25360         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
25361
25362 2009-12-30  Bruno Haible  <bruno@clisp.org>
25363
25364         Fix compilation error with Solaris cc.
25365         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
25366         * lib/unicase/u16-is-invariant.c: Likewise.
25367         * lib/unicase/u32-is-invariant.c: Likewise.
25368         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
25369
25370 2009-12-30  Bruno Haible  <bruno@clisp.org>
25371
25372         Fix test crash.
25373         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
25374         locales.
25375         Reported by Simon Josefsson <simon@josefsson.org>.
25376
25377 2009-12-30  Bruno Haible  <bruno@clisp.org>
25378
25379         Fix compilation error on most platforms.
25380         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
25381         Reported by Simon Josefsson <simon@josefsson.org>
25382         and Nelson H. F. Beebe <beebe@math.utah.edu>.
25383
25384 2009-12-30  Eric Blake  <ebb9@byu.net>
25385
25386         futimens, utimensat: work around ntfs-3g bug
25387         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
25388         a ctime bug is present, and expand workaround to cover ntfs-3g.
25389         * lib/utimens.c (fdutimens, lutimens): Likewise.
25390         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
25391         (validate_timespec): Adjust return value.
25392         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
25393         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
25394         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
25395
25396 2009-12-29  Eric Blake  <ebb9@byu.net>
25397
25398         link-warning: make usage consistent
25399         * modules/ctype (Depends-on): Add link-warning.
25400         (Makefile.am): Update rules accordingly.
25401         * modules/langinfo (Depends-on, Makefile.am): Likewise.
25402         * modules/locale (Depends-on, Makefile.am): Likewise.
25403         * modules/sys_file (Makefile.am): Likewise.
25404         * modules/getopt-posix (Makefile.am): Delete unused link warning
25405         efforts.
25406         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
25407         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
25408         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
25409         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
25410
25411         stdio: remove unused variables
25412         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
25413         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
25414         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
25415
25416         tests: test more substitute headers
25417         * modules/ctype-tests: New file.
25418         * modules/dirent-tests: Likewise.
25419         * modules/spawn-tests: Likewise.
25420         * modules/sys_file-tests: Likewise.
25421         * modules/sys_ioctl-tests: Likewise.
25422         * modules/sys_wait-tests: Likewise.
25423         * tests/test-ctype.c: Likewise.
25424         * tests/test-dirent.c: Likewise.
25425         * tests/test-spawn.c: Likewise.
25426         * tests/test-sys_file.c: Likewise.
25427         * tests/test-sys_ioctl.c: Likewise.
25428         * tests/test-sys_wait.c: Likewise.
25429         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
25430         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
25431         whether or not flock is in use.
25432
25433         tests: remove License section from module
25434         * modules/arpa_inet-tests: Remove unneeded section.
25435         * modules/byteswap-tests: Likewise.
25436         * modules/ceilf-tests: Likewise.
25437         * modules/ceill-tests: Likewise.
25438         * modules/crypto/des-tests: Likewise.
25439         * modules/crypto/gc-arcfour-tests: Likewise.
25440         * modules/crypto/gc-arctwo-tests: Likewise.
25441         * modules/crypto/gc-des-tests: Likewise.
25442         * modules/crypto/gc-hmac-md5-tests: Likewise.
25443         * modules/crypto/gc-hmac-sha1-tests: Likewise.
25444         * modules/crypto/gc-md2-tests: Likewise.
25445         * modules/crypto/gc-md4-tests: Likewise.
25446         * modules/crypto/gc-md5-tests: Likewise.
25447         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
25448         * modules/crypto/gc-rijndael-tests: Likewise.
25449         * modules/crypto/gc-sha1-tests: Likewise.
25450         * modules/crypto/gc-tests: Likewise.
25451         * modules/crypto/md2-tests: Likewise.
25452         * modules/crypto/md4-tests: Likewise.
25453         * modules/fcntl-h-tests: Likewise.
25454         * modules/floorf-tests: Likewise.
25455         * modules/floorl-tests: Likewise.
25456         * modules/frexp-nolibm-tests: Likewise.
25457         * modules/frexp-tests: Likewise.
25458         * modules/frexpl-nolibm-tests: Likewise.
25459         * modules/frexpl-tests: Likewise.
25460         * modules/getaddrinfo-tests: Likewise.
25461         * modules/inttypes-tests: Likewise.
25462         * modules/isfinite-tests: Likewise.
25463         * modules/isinf-tests: Likewise.
25464         * modules/ldexpl-tests: Likewise.
25465         * modules/locale-tests: Likewise.
25466         * modules/math-tests: Likewise.
25467         * modules/netdb-tests: Likewise.
25468         * modules/netinet_in-tests: Likewise.
25469         * modules/printf-frexp-tests: Likewise.
25470         * modules/printf-frexpl-tests: Likewise.
25471         * modules/priv-set-tests: Likewise.
25472         * modules/random_r-tests: Likewise.
25473         * modules/round-tests: Likewise.
25474         * modules/roundf-tests: Likewise.
25475         * modules/roundl-tests: Likewise.
25476         * modules/search-tests: Likewise.
25477         * modules/select-tests: Likewise.
25478         * modules/signal-tests: Likewise.
25479         * modules/stdbool-tests: Likewise.
25480         * modules/stddef-tests: Likewise.
25481         * modules/stdint-tests: Likewise.
25482         * modules/stdio-tests: Likewise.
25483         * modules/stdlib-tests: Likewise.
25484         * modules/string-tests: Likewise.
25485         * modules/strings-tests: Likewise.
25486         * modules/sys_select-tests: Likewise.
25487         * modules/sys_socket-tests: Likewise.
25488         * modules/sys_stat-tests: Likewise.
25489         * modules/sys_time-tests: Likewise.
25490         * modules/sys_utsname-tests: Likewise.
25491         * modules/sysexits-tests: Likewise.
25492         * modules/time-tests: Likewise.
25493         * modules/trunc-tests: Likewise.
25494         * modules/truncf-tests: Likewise.
25495         * modules/truncl-tests: Likewise.
25496         * modules/tsearch-tests: Likewise.
25497         * modules/unistd-tests: Likewise.
25498         * modules/wchar-tests: Likewise.
25499         * modules/wctype-tests: Likewise.
25500
25501         tests: fix license on several tests
25502         * tests/test-des.c: Update to GPLv3+.
25503         * tests/test-flock.c: Likewise.
25504         * tests/test-fsync.c: Likewise.
25505         * tests/test-futimens.h: Likewise.
25506         * tests/test-gc-arcfour.c: Likewise.
25507         * tests/test-gc-arctwo.c: Likewise.
25508         * tests/test-gc-des.c: Likewise.
25509         * tests/test-gc-hmac-md5.c: Likewise.
25510         * tests/test-gc-hmac-sha1.c: Likewise.
25511         * tests/test-gc-md2.c: Likewise.
25512         * tests/test-gc-md4.c: Likewise.
25513         * tests/test-gc-md5.c: Likewise.
25514         * tests/test-gc-pbkdf2-sha1.c: Likewise.
25515         * tests/test-gc-rijndael.c: Likewise.
25516         * tests/test-gc-sha1.c: Likewise.
25517         * tests/test-gc.c: Likewise.
25518         * tests/test-getcwd.c: Likewise.
25519         * tests/test-link.c: Likewise.
25520         * tests/test-link.h: Likewise.
25521         * tests/test-lutimens.h: Likewise.
25522         * tests/test-md2.c: Likewise.
25523         * tests/test-md4.c: Likewise.
25524         * tests/test-mkdir.h: Likewise.
25525         * tests/test-rename.c: Likewise.
25526         * tests/test-rename.h: Likewise.
25527         * tests/test-safe-alloc.c: Likewise.
25528         * tests/test-utimens-common.h: Likewise.
25529         * tests/test-utimens.h: Likewise.
25530
25531         maint: sync license texts
25532         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
25533         * doc/gpl-3.0.texi: Revert copyright year update.
25534         * doc/lgpl-3.0.texi: Likewise.
25535
25536 2009-12-29  Jim Meyering  <meyering@redhat.com>
25537
25538         update nearly all FSF copyright year lists to include 2009
25539         The files named by the following are exempted:
25540             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
25541               test -f "$dst" && { echo "$dst"; continue; }
25542               test -d "$dst" || continue
25543               echo "$dst"/$(basename "$src")
25544             done > exempt
25545             git ls-files tests/unictype >> exempt
25546         In the remaining files, convert to all-interval notation if
25547         - there is already at least one year interval like 2000-2003
25548         - the file is maintained by me
25549         - the file is in lib/uni*/, where that style already prevails
25550         Otherwise, use update-copyright's default.
25551
25552 2009-12-29  Simon Josefsson  <simon@josefsson.org>
25553         and Eric Blake  <ebb9@byu.net>
25554
25555         tests: don't require debug system() to pass
25556         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
25557         * tests/test-rmdir.h (test_rmdir_func): Likewise.
25558         * tests/test-unlink.h (test_unlink_func): Likewise.
25559         * tests/test-fstatat.c (main): ...into callers.
25560         * tests/test-lstat.c (main): Likewise.
25561         * tests/test-rmdir.c (main): Likewise.
25562         * tests/test-unlink.c (main): Likewise.
25563         * tests/test-unlinkat.c (main): Likewise.
25564         * tests/test-areadlink-with-size.c (main): Don't require a
25565         debug-only system call to pass, aiding cross-testing to mingw.
25566         * tests/test-areadlink.c (main): Likewise.
25567         * tests/test-areadlinkat-with-size.c (main): Likewise.
25568         * tests/test-areadlinkat.c (main): Likewise.
25569         * tests/test-canonicalize-lgpl.c (main): Likewise.
25570         * tests/test-canonicalize.c (main): Likewise.
25571         * tests/test-chown.c (main): Likewise.
25572         * tests/test-fchownat.c (main): Likewise.
25573         * tests/test-lchown.c (main): Likewise.
25574         * tests/test-fdutimensat.c (main): Likewise.
25575         * tests/test-futimens.c (main): Likewise.
25576         * tests/test-link.c (main): Likewise.
25577         * tests/test-linkat.c (main): Likewise.
25578         * tests/test-mkdir.c (main): Likewise.
25579         * tests/test-mkdirat.c (main): Likewise.
25580         * tests/test-mkfifo.c (main): Likewise.
25581         * tests/test-mkfifoat.c (main): Likewise.
25582         * tests/test-mknod.c (main): Likewise.
25583         * tests/test-readlink.c (main): Likewise.
25584         * tests/test-remove.c (main): Likewise.
25585         * tests/test-rename.c (main): Likewise.
25586         * tests/test-renameat.c (main): Likewise.
25587         * tests/test-symlink.c (main): Likewise.
25588         * tests/test-symlinkat.c (main): Likewise.
25589         * tests/test-utimens.c (main): Likewise.
25590         * tests/test-utimensat.c (main): Likewise.
25591
25592 2009-12-29  Simon Josefsson  <simon@josefsson.org>
25593
25594         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
25595         on $(UNUSED_PARAMETER_H) to avoid build failure.
25596
25597 2009-12-28  Jim Meyering  <meyering@redhat.com>
25598
25599         update-copyright: you may specify a max. line length other than 72
25600         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
25601
25602         maint: use consistent FSF copyright line syntax
25603         * lib/posixtm.c: Add missing comma in FSF copyright line.
25604         * lib/posixtm.h: Likewise.
25605         * lib/getugroups.c: Add missing ", Inc.".
25606
25607         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
25608         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
25609         FSF copyright line.  Remove trailing blanks.
25610
25611 2009-12-28  Eric Blake  <ebb9@byu.net>
25612
25613         test-dup2: reduce dependencies
25614         * modules/cloexec (Configure.ac): Set witness.
25615         * modules/dup2-tests (Depends-on): Drop cloexec.
25616         * tests/test-dup2.c (main): Skip portion of test if cloexec module
25617         not present.
25618         Suggested by Bruno Haible.
25619
25620 2009-12-26  Bruno Haible  <bruno@clisp.org>
25621
25622         Remove an unneeded dependency.
25623         * modules/fseterr (Depends-on): Remove dup2.
25624
25625 2009-12-26  Eric Blake  <ebb9@byu.net>
25626
25627         tests: use macros.h in more places
25628         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
25629         (ASSERT_STREAM): Provide default of stderr.
25630         * tests/test-dirent-safer.c: Include macros.h, using alternate
25631         stream for assertions.
25632         * tests/test-dup-safer.c: Likewise.
25633         * tests/test-freopen-safer.c: Likewise.
25634         * tests/test-getopt.c: Likewise.
25635         * tests/test-openat-safer.c: Likewise.
25636         * tests/test-pipe.c: Likewise.
25637         * tests/test-popen-safer.c: Likewise.
25638         * modules/dirent-safer-tests (Files): Include macros.h.
25639         * modules/unistd-safer-tests (Files): Likewise.
25640         * modules/freopen-safer-tests (Files): Likewise.
25641         * modules/getopt-posix-tests (Files): Likewise.
25642         * modules/openat-safer-tests (Files): Likewise.
25643         * modules/pipe-tests (Files): Likewise.
25644
25645 2009-12-26  Bruno Haible  <bruno@clisp.org>
25646
25647         javacomp: Portability fix.
25648         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
25649         that it also works on Solaris.
25650
25651 2009-12-26  Bruno Haible  <bruno@clisp.org>
25652
25653         localename: Fix storage allocation of gl_locale_name_thread's result.
25654         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
25655         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
25656         all platforms that have 'uselocale'.
25657         (gl_locale_name_thread_unsafe): New function, extracted from
25658         gl_locale_name_thread.
25659         (gl_locale_name_thread): Call struniq on all platforms that have
25660         'uselocale'.
25661         * tests/test-localename.c (test_locale_name_thread): Check that the
25662         resulting strings are permanently allocated.
25663         * modules/localename-tests (Depends-on): Add strdup.
25664
25665 2009-12-26  Bruno Haible  <bruno@clisp.org>
25666
25667         * tests/test-localename.c (categories): Fill in the strings.
25668
25669 2009-12-26  Jim Meyering  <meyering@redhat.com>
25670
25671         isdir: complete the removal of m4/isdir.m4
25672         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
25673
25674         isdir: clean up, since at least grep still uses it
25675         * lib/isdir.c: Include "isdir.h".
25676         (S_ISDIR): Remove now-unneeded definition.
25677         * modules/isdir (Files): Add lib/isdir.h.
25678         * lib/isdir.h: New file, with declaration.
25679         * m4/isdir.m4: Remove file -- unneeded.
25680
25681 2009-12-25  Bruno Haible  <bruno@clisp.org>
25682
25683         selinux-h: Make generated .h files standalone.
25684         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
25685         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
25686         * lib/se-selinux.in.h: Likewise.
25687         * modules/selinux-h (Depends-on): Add unused-parameter.
25688         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
25689         selinux/selinux.h and selinux/context.h.
25690         Suggested by Eric Blake.
25691
25692 2009-12-25  Bruno Haible  <bruno@clisp.org>
25693
25694         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
25695         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
25696         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
25697         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
25698         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
25699
25700 2009-12-24  Bruno Haible  <bruno@clisp.org>
25701
25702         openat: Fix warning.
25703         * lib/openat-proc.c: Include <unistd.h>.
25704
25705 2009-12-24  Bruno Haible  <bruno@clisp.org>
25706
25707         New module 'unused-parameter'.
25708         * build-aux/unused-parameter.h: New file, extracted from earlier
25709         gnulib-common.m4.
25710         * modules/unused-parameter: New file.
25711         * lib/unistr.h: Include unused-parameter.h.
25712         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
25713         _GL_UNUSED.
25714         * modules/unistr/base (Depends-on): Add unused-parameter.
25715
25716 2009-12-24  Bruno Haible  <bruno@clisp.org>
25717
25718         Add missing dependencies to 'extensions' module.
25719         * m4/extensions.m4: Add comment.
25720         * modules/accept4 (Depends-on): Add extensions.
25721         * modules/dup3 (Depends-on): Likewise.
25722         * modules/fcntl (Depends-on): Likewise.
25723         * modules/futimens (Depends-on): Likewise.
25724         * modules/mknod (Depends-on): Likewise.
25725         * modules/pipe2 (Depends-on): Likewise.
25726         * modules/stat-time (Depends-on): Likewise.
25727         * modules/strcasestr-simple (Depends-on): Likewise.
25728         * modules/strsignal (Depends-on): Likewise.
25729         * modules/utimensat (Depends-on): Likewise.
25730         * modules/localcharset (Depends-on): Likewise. Needed because of
25731         gl_FCNTL_O_FLAGS.
25732         * modules/wcrtomb (Depends-on): Likewise. Needed because of
25733         AC_TYPE_MBSTATE_T.
25734         * modules/wcsnrtombs (Depends-on): Likewise.
25735         * modules/wcsrtombs (Depends-on): Likewise.
25736
25737 2009-12-24  Bruno Haible  <bruno@clisp.org>
25738
25739         binary-io: Avoid gcc warning due to SET_BINARY.
25740         * lib/binary-io.h (SET_BINARY): Cast the result to void.
25741         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
25742
25743 2009-12-24  Bruno Haible  <bruno@clisp.org>
25744
25745         Avoid future namespace pollution on glibc systems.
25746         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
25747         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
25748         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
25749         glibc systems.
25750
25751 2009-12-24  Bruno Haible  <bruno@clisp.org>
25752
25753         Refactor common macros used in tests.
25754         * tests/macros.h: New file.
25755         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
25756         and/or <stdlib.h>, if appropriate.
25757         (ASSERT, SIZEOF): Remove macros.
25758         * tests/test-areadlink-with-size.c: Likewise.
25759         * tests/test-areadlinkat.c: Likewise.
25760         * tests/test-areadlinkat-with-size.c: Likewise.
25761         * tests/test-argmatch.c: Likewise.
25762         * tests/test-argv-iter.c: Likewise.
25763         * tests/test-array-mergesort.c: Likewise.
25764         * tests/test-array_list.c: Likewise.
25765         * tests/test-array_oset.c: Likewise.
25766         * tests/test-avltree_list.c: Likewise.
25767         * tests/test-avltree_oset.c: Likewise.
25768         * tests/test-avltreehash_list.c: Likewise.
25769         * tests/test-base64.c: Likewise.
25770         * tests/test-binary-io.c: Likewise.
25771         * tests/test-bitrotate.c: Likewise.
25772         * tests/test-btowc.c: Likewise.
25773         * tests/test-byteswap.c: Likewise.
25774         * tests/test-c-ctype.c: Likewise.
25775         * tests/test-c-stack.c: Likewise.
25776         * tests/test-c-strcasecmp.c: Likewise.
25777         * tests/test-c-strcasestr.c: Likewise.
25778         * tests/test-c-strncasecmp.c: Likewise.
25779         * tests/test-c-strstr.c: Likewise.
25780         * tests/test-canonicalize-lgpl.c: Likewise.
25781         * tests/test-canonicalize.c: Likewise.
25782         * tests/test-carray_list.c: Likewise.
25783         * tests/test-ceilf1.c: Likewise.
25784         * tests/test-ceilf2.c: Likewise.
25785         * tests/test-ceill.c: Likewise.
25786         * tests/test-chown.c: Likewise.
25787         * tests/test-cloexec.c: Likewise.
25788         * tests/test-copy-acl.c: Likewise.
25789         * tests/test-copy-file.c: Likewise.
25790         * tests/test-count-one-bits.c: Likewise.
25791         * tests/test-dprintf-posix.c: Likewise.
25792         * tests/test-dup2.c: Likewise.
25793         * tests/test-dup3.c: Likewise.
25794         * tests/test-duplocale.c: Likewise.
25795         * tests/test-fbufmode.c: Likewise.
25796         * tests/test-fchdir.c: Likewise.
25797         * tests/test-fchownat.c: Likewise.
25798         * tests/test-fcntl-safer.c: Likewise.
25799         * tests/test-fcntl.c: Likewise.
25800         * tests/test-fdopendir.c: Likewise.
25801         * tests/test-fdutimensat.c: Likewise.
25802         * tests/test-fflush2.c: Likewise.
25803         * tests/test-file-has-acl.c: Likewise.
25804         * tests/test-filevercmp.c: Likewise.
25805         * tests/test-flock.c: Likewise.
25806         * tests/test-floorf1.c: Likewise.
25807         * tests/test-floorf2.c: Likewise.
25808         * tests/test-floorl.c: Likewise.
25809         * tests/test-fnmatch.c: Likewise.
25810         * tests/test-fopen.h: Likewise.
25811         * tests/test-fpending.c: Likewise.
25812         * tests/test-fprintf-posix.c: Likewise.
25813         * tests/test-fpurge.c: Likewise.
25814         * tests/test-freadable.c: Likewise.
25815         * tests/test-freadahead.c: Likewise.
25816         * tests/test-freading.c: Likewise.
25817         * tests/test-freadptr.c: Likewise.
25818         * tests/test-freadptr2.c: Likewise.
25819         * tests/test-freadseek.c: Likewise.
25820         * tests/test-freopen.c: Likewise.
25821         * tests/test-frexp.c: Likewise.
25822         * tests/test-frexpl.c: Likewise.
25823         * tests/test-fseek.c: Likewise.
25824         * tests/test-fseeko.c: Likewise.
25825         * tests/test-fstatat.c: Likewise.
25826         * tests/test-fstrcmp.c: Likewise.
25827         * tests/test-fsync.c: Likewise.
25828         * tests/test-ftell.c: Likewise.
25829         * tests/test-ftello.c: Likewise.
25830         * tests/test-func.c: Likewise.
25831         * tests/test-futimens.c: Likewise.
25832         * tests/test-fwritable.c: Likewise.
25833         * tests/test-fwriting.c: Likewise.
25834         * tests/test-getcwd.c: Likewise.
25835         * tests/test-getdate.c: Likewise.
25836         * tests/test-getdelim.c: Likewise.
25837         * tests/test-getdtablesize.c: Likewise.
25838         * tests/test-getgroups.c: Likewise.
25839         * tests/test-getline.c: Likewise.
25840         * tests/test-getndelim2.c: Likewise.
25841         * tests/test-glob.c: Likewise.
25842         * tests/test-hash.c: Likewise.
25843         * tests/test-i-ring.c: Likewise.
25844         * tests/test-iconv-utf.c: Likewise.
25845         * tests/test-iconv.c: Likewise.
25846         * tests/test-idpriv-drop.c: Likewise.
25847         * tests/test-idpriv-droptemp.c: Likewise.
25848         * tests/test-inet_ntop.c: Likewise.
25849         * tests/test-inet_pton.c: Likewise.
25850         * tests/test-isblank.c: Likewise.
25851         * tests/test-isfinite.c: Likewise.
25852         * tests/test-isinf.c: Likewise.
25853         * tests/test-isnan.c: Likewise.
25854         * tests/test-isnand.h: Likewise.
25855         * tests/test-isnanf.h: Likewise.
25856         * tests/test-isnanl.h: Likewise.
25857         * tests/test-lchown.c: Likewise.
25858         * tests/test-ldexpl.c: Likewise.
25859         * tests/test-link.c: Likewise.
25860         * tests/test-linkat.c: Likewise.
25861         * tests/test-linked_list.c: Likewise.
25862         * tests/test-linkedhash_list.c: Likewise.
25863         * tests/test-localename.c: Likewise.
25864         * tests/test-lseek.c: Likewise.
25865         * tests/test-lstat.c: Likewise.
25866         * tests/test-mbmemcasecmp.c: Likewise.
25867         * tests/test-mbmemcasecoll.c: Likewise.
25868         * tests/test-mbrtowc.c: Likewise.
25869         * tests/test-mbscasecmp.c: Likewise.
25870         * tests/test-mbscasestr1.c: Likewise.
25871         * tests/test-mbscasestr2.c: Likewise.
25872         * tests/test-mbscasestr3.c: Likewise.
25873         * tests/test-mbscasestr4.c: Likewise.
25874         * tests/test-mbschr.c: Likewise.
25875         * tests/test-mbscspn.c: Likewise.
25876         * tests/test-mbsinit.c: Likewise.
25877         * tests/test-mbsncasecmp.c: Likewise.
25878         * tests/test-mbsnrtowcs.c: Likewise.
25879         * tests/test-mbspbrk.c: Likewise.
25880         * tests/test-mbspcasecmp.c: Likewise.
25881         * tests/test-mbsrchr.c: Likewise.
25882         * tests/test-mbsrtowcs.c: Likewise.
25883         * tests/test-mbsspn.c: Likewise.
25884         * tests/test-mbsstr1.c: Likewise.
25885         * tests/test-mbsstr2.c: Likewise.
25886         * tests/test-mbsstr3.c: Likewise.
25887         * tests/test-memchr.c: Likewise.
25888         * tests/test-memchr2.c: Likewise.
25889         * tests/test-memcmp.c: Likewise.
25890         * tests/test-memmem.c: Likewise.
25891         * tests/test-memrchr.c: Likewise.
25892         * tests/test-mkdir.c: Likewise.
25893         * tests/test-mkdirat.c: Likewise.
25894         * tests/test-mkfifo.c: Likewise.
25895         * tests/test-mkfifoat.c: Likewise.
25896         * tests/test-mknod.c: Likewise.
25897         * tests/test-nanosleep.c: Likewise.
25898         * tests/test-nl_langinfo.c: Likewise.
25899         * tests/test-obstack-printf.c: Likewise.
25900         * tests/test-open.c: Likewise.
25901         * tests/test-openat.c: Likewise.
25902         * tests/test-pipe-filter-gi1.c: Likewise.
25903         * tests/test-pipe-filter-gi2-main.c: Likewise.
25904         * tests/test-pipe-filter-ii1.c: Likewise.
25905         * tests/test-pipe-filter-ii2-main.c: Likewise.
25906         * tests/test-pipe2.c: Likewise.
25907         * tests/test-popen.h: Likewise.
25908         * tests/test-posixtm.c: Likewise.
25909         * tests/test-pread.c: Likewise.
25910         * tests/test-printf-frexp.c: Likewise.
25911         * tests/test-printf-frexpl.c: Likewise.
25912         * tests/test-printf-posix.c: Likewise.
25913         * tests/test-priv-set.c: Likewise.
25914         * tests/test-quotearg.c: Likewise.
25915         * tests/test-random_r.c: Likewise.
25916         * tests/test-rawmemchr.c: Likewise.
25917         * tests/test-rbtree_list.c: Likewise.
25918         * tests/test-rbtree_oset.c: Likewise.
25919         * tests/test-rbtreehash_list.c: Likewise.
25920         * tests/test-readlink.c: Likewise.
25921         * tests/test-remove.c: Likewise.
25922         * tests/test-rename.c: Likewise.
25923         * tests/test-renameat.c: Likewise.
25924         * tests/test-rmdir.c: Likewise.
25925         * tests/test-round1.c: Likewise.
25926         * tests/test-roundf1.c: Likewise.
25927         * tests/test-roundl.c: Likewise.
25928         * tests/test-safe-alloc.c: Likewise.
25929         * tests/test-sameacls.c: Likewise.
25930         * tests/test-set-mode-acl.c: Likewise.
25931         * tests/test-setenv.c: Likewise.
25932         * tests/test-sigaction.c: Likewise.
25933         * tests/test-signbit.c: Likewise.
25934         * tests/test-sleep.c: Likewise.
25935         * tests/test-snprintf-posix.c: Likewise.
25936         * tests/test-snprintf.c: Likewise.
25937         * tests/test-sprintf-posix.c: Likewise.
25938         * tests/test-stat-time.c: Likewise.
25939         * tests/test-stat.c: Likewise.
25940         * tests/test-strcasestr.c: Likewise.
25941         * tests/test-strchrnul.c: Likewise.
25942         * tests/test-strerror.c: Likewise.
25943         * tests/test-striconv.c: Likewise.
25944         * tests/test-striconveh.c: Likewise.
25945         * tests/test-striconveha.c: Likewise.
25946         * tests/test-strsignal.c: Likewise.
25947         * tests/test-strstr.c: Likewise.
25948         * tests/test-strtod.c: Likewise.
25949         * tests/test-strverscmp.c: Likewise.
25950         * tests/test-symlink.c: Likewise.
25951         * tests/test-symlinkat.c: Likewise.
25952         * tests/test-trunc1.c: Likewise.
25953         * tests/test-trunc2.c: Likewise.
25954         * tests/test-truncf1.c: Likewise.
25955         * tests/test-truncf2.c: Likewise.
25956         * tests/test-truncl.c: Likewise.
25957         * tests/test-uname.c: Likewise.
25958         * tests/test-unlink.c: Likewise.
25959         * tests/test-unlinkat.c: Likewise.
25960         * tests/test-unsetenv.c: Likewise.
25961         * tests/test-usleep.c: Likewise.
25962         * tests/test-utimens.c: Likewise.
25963         * tests/test-utimensat.c: Likewise.
25964         * tests/test-vasnprintf-posix.c: Likewise.
25965         * tests/test-vasnprintf-posix2.c: Likewise.
25966         * tests/test-vasnprintf.c: Likewise.
25967         * tests/test-vasprintf-posix.c: Likewise.
25968         * tests/test-vasprintf.c: Likewise.
25969         * tests/test-vdprintf-posix.c: Likewise.
25970         * tests/test-vfprintf-posix.c: Likewise.
25971         * tests/test-vprintf-posix.c: Likewise.
25972         * tests/test-vsnprintf-posix.c: Likewise.
25973         * tests/test-vsnprintf.c: Likewise.
25974         * tests/test-vsprintf-posix.c: Likewise.
25975         * tests/test-wcrtomb.c: Likewise.
25976         * tests/test-wcsnrtombs.c: Likewise.
25977         * tests/test-wcsrtombs.c: Likewise.
25978         * tests/test-wctype.c: Likewise.
25979         * tests/test-wcwidth.c: Likewise.
25980         * tests/test-xfprintf-posix.c: Likewise.
25981         * tests/test-xmemdup0.c: Likewise.
25982         * tests/test-xprintf-posix.c: Likewise.
25983         * tests/test-xvasprintf.c: Likewise.
25984         * tests/unicase/test-locale-language.c: Likewise.
25985         * tests/unicase/test-mapping-part1.h: Likewise.
25986         * tests/unicase/test-predicate-part1.h: Likewise.
25987         * tests/unicase/test-u8-casecmp.c: Likewise.
25988         * tests/unicase/test-u8-casecoll.c: Likewise.
25989         * tests/unicase/test-u8-casefold.c: Likewise.
25990         * tests/unicase/test-u8-is-cased.c: Likewise.
25991         * tests/unicase/test-u8-is-casefolded.c: Likewise.
25992         * tests/unicase/test-u8-is-lowercase.c: Likewise.
25993         * tests/unicase/test-u8-is-titlecase.c: Likewise.
25994         * tests/unicase/test-u8-is-uppercase.c: Likewise.
25995         * tests/unicase/test-u8-tolower.c: Likewise.
25996         * tests/unicase/test-u8-totitle.c: Likewise.
25997         * tests/unicase/test-u8-toupper.c: Likewise.
25998         * tests/unicase/test-u16-casecmp.c: Likewise.
25999         * tests/unicase/test-u16-casecoll.c: Likewise.
26000         * tests/unicase/test-u16-casefold.c: Likewise.
26001         * tests/unicase/test-u16-is-cased.c: Likewise.
26002         * tests/unicase/test-u16-is-casefolded.c: Likewise.
26003         * tests/unicase/test-u16-is-lowercase.c: Likewise.
26004         * tests/unicase/test-u16-is-titlecase.c: Likewise.
26005         * tests/unicase/test-u16-is-uppercase.c: Likewise.
26006         * tests/unicase/test-u16-tolower.c: Likewise.
26007         * tests/unicase/test-u16-totitle.c: Likewise.
26008         * tests/unicase/test-u16-toupper.c: Likewise.
26009         * tests/unicase/test-u32-casecmp.c: Likewise.
26010         * tests/unicase/test-u32-casecoll.c: Likewise.
26011         * tests/unicase/test-u32-casefold.c: Likewise.
26012         * tests/unicase/test-u32-is-cased.c: Likewise.
26013         * tests/unicase/test-u32-is-casefolded.c: Likewise.
26014         * tests/unicase/test-u32-is-lowercase.c: Likewise.
26015         * tests/unicase/test-u32-is-titlecase.c: Likewise.
26016         * tests/unicase/test-u32-is-uppercase.c: Likewise.
26017         * tests/unicase/test-u32-tolower.c: Likewise.
26018         * tests/unicase/test-u32-totitle.c: Likewise.
26019         * tests/unicase/test-u32-toupper.c: Likewise.
26020         * tests/unicase/test-ulc-casecmp.c: Likewise.
26021         * tests/unicase/test-ulc-casecoll.c: Likewise.
26022         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
26023         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
26024         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
26025         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
26026         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
26027         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
26028         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
26029         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
26030         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
26031         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
26032         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
26033         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
26034         * tests/unictype/test-bidi_byname.c: Likewise.
26035         * tests/unictype/test-bidi_name.c: Likewise.
26036         * tests/unictype/test-bidi_of.c: Likewise.
26037         * tests/unictype/test-bidi_test.c: Likewise.
26038         * tests/unictype/test-block_list.c: Likewise.
26039         * tests/unictype/test-block_of.c: Likewise.
26040         * tests/unictype/test-block_test.c: Likewise.
26041         * tests/unictype/test-categ_and.c: Likewise.
26042         * tests/unictype/test-categ_and_not.c: Likewise.
26043         * tests/unictype/test-categ_byname.c: Likewise.
26044         * tests/unictype/test-categ_name.c: Likewise.
26045         * tests/unictype/test-categ_none.c: Likewise.
26046         * tests/unictype/test-categ_of.c: Likewise.
26047         * tests/unictype/test-categ_or.c: Likewise.
26048         * tests/unictype/test-categ_test_withtable.c: Likewise.
26049         * tests/unictype/test-combining.c: Likewise.
26050         * tests/unictype/test-decdigit.c: Likewise.
26051         * tests/unictype/test-digit.c: Likewise.
26052         * tests/unictype/test-mirror.c: Likewise.
26053         * tests/unictype/test-numeric.c: Likewise.
26054         * tests/unictype/test-pr_byname.c: Likewise.
26055         * tests/unictype/test-pr_test.c: Likewise.
26056         * tests/unictype/test-predicate-part1.h: Likewise.
26057         * tests/unictype/test-scripts.c: Likewise.
26058         * tests/unictype/test-sy_c_ident.c: Likewise.
26059         * tests/unictype/test-sy_java_ident.c: Likewise.
26060         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
26061         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
26062         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
26063         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
26064         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
26065         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
26066         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
26067         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
26068         * tests/uninorm/test-canonical-decomposition.c: Likewise.
26069         * tests/uninorm/test-compat-decomposition.c: Likewise.
26070         * tests/uninorm/test-composition.c: Likewise.
26071         * tests/uninorm/test-decomposing-form.c: Likewise.
26072         * tests/uninorm/test-decomposition.c: Likewise.
26073         * tests/uninorm/test-u8-nfc.c: Likewise.
26074         * tests/uninorm/test-u8-nfd.c: Likewise.
26075         * tests/uninorm/test-u8-nfkc.c: Likewise.
26076         * tests/uninorm/test-u8-nfkd.c: Likewise.
26077         * tests/uninorm/test-u8-normcmp.c: Likewise.
26078         * tests/uninorm/test-u8-normcoll.c: Likewise.
26079         * tests/uninorm/test-u16-nfc.c: Likewise.
26080         * tests/uninorm/test-u16-nfd.c: Likewise.
26081         * tests/uninorm/test-u16-nfkc.c: Likewise.
26082         * tests/uninorm/test-u16-nfkd.c: Likewise.
26083         * tests/uninorm/test-u16-normcmp.c: Likewise.
26084         * tests/uninorm/test-u16-normcoll.c: Likewise.
26085         * tests/uninorm/test-u32-nfc.c: Likewise.
26086         * tests/uninorm/test-u32-nfd.c: Likewise.
26087         * tests/uninorm/test-u32-nfkc.c: Likewise.
26088         * tests/uninorm/test-u32-nfkd.c: Likewise.
26089         * tests/uninorm/test-u32-normalize-big.c: Likewise.
26090         * tests/uninorm/test-u32-normcmp.c: Likewise.
26091         * tests/uninorm/test-u32-normcoll.c: Likewise.
26092         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
26093         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
26094         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
26095         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
26096         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
26097         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
26098         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
26099         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
26100         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
26101         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
26102         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
26103         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
26104         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
26105         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
26106         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
26107         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
26108         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
26109         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
26110         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
26111         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
26112         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
26113         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
26114         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
26115         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
26116         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
26117         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
26118         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
26119         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
26120         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
26121         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
26122         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
26123         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
26124         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
26125         * tests/uniwidth/test-u8-strwidth.c: Likewise.
26126         * tests/uniwidth/test-u8-width.c: Likewise.
26127         * tests/uniwidth/test-u16-strwidth.c: Likewise.
26128         * tests/uniwidth/test-u16-width.c: Likewise.
26129         * tests/uniwidth/test-u32-strwidth.c: Likewise.
26130         * tests/uniwidth/test-u32-width.c: Likewise.
26131         * tests/uniwidth/test-uc_width.c: Likewise.
26132         * tests/uniwidth/test-uc_width2.c: Likewise.
26133         * modules/acl-tests (Files): Add tests/macros.h.
26134         * modules/areadlink-tests (Files): Likewise.
26135         * modules/areadlink-with-size-tests (Files): Likewise.
26136         * modules/areadlinkat-tests (Files): Likewise.
26137         * modules/areadlinkat-with-size-tests (Files): Likewise.
26138         * modules/argmatch-tests (Files): Likewise.
26139         * modules/argv-iter-tests (Files): Likewise.
26140         * modules/array-list-tests (Files): Likewise.
26141         * modules/array-mergesort-tests (Files): Likewise.
26142         * modules/array-oset-tests (Files): Likewise.
26143         * modules/avltree-list-tests (Files): Likewise.
26144         * modules/avltree-oset-tests (Files): Likewise.
26145         * modules/avltreehash-list-tests (Files): Likewise.
26146         * modules/base64-tests (Files): Likewise.
26147         * modules/binary-io-tests (Files): Likewise.
26148         * modules/bitrotate-tests (Files): Likewise.
26149         * modules/btowc-tests (Files): Likewise.
26150         * modules/byteswap-tests (Files): Likewise.
26151         * modules/c-ctype-tests (Files): Likewise.
26152         * modules/c-stack-tests (Files): Likewise.
26153         * modules/c-strcase-tests (Files): Likewise.
26154         * modules/c-strcasestr-tests (Files): Likewise.
26155         * modules/c-strstr-tests (Files): Likewise.
26156         * modules/canonicalize-lgpl-tests (Files): Likewise.
26157         * modules/canonicalize-tests (Files): Likewise.
26158         * modules/carray-list-tests (Files): Likewise.
26159         * modules/ceilf-tests (Files): Likewise.
26160         * modules/ceill-tests (Files): Likewise.
26161         * modules/chown-tests (Files): Likewise.
26162         * modules/cloexec-tests (Files): Likewise.
26163         * modules/copy-file-tests (Files): Likewise.
26164         * modules/count-one-bits-tests (Files): Likewise.
26165         * modules/dprintf-posix-tests (Files): Likewise.
26166         * modules/dup2-tests (Files): Likewise.
26167         * modules/dup3-tests (Files): Likewise.
26168         * modules/duplocale-tests (Files): Likewise.
26169         * modules/fbufmode-tests (Files): Likewise.
26170         * modules/fchdir-tests (Files): Likewise.
26171         * modules/fcntl-safer-tests (Files): Likewise.
26172         * modules/fcntl-tests (Files): Likewise.
26173         * modules/fdopendir-tests (Files): Likewise.
26174         * modules/fdutimensat-tests (Files): Likewise.
26175         * modules/fflush-tests (Files): Likewise.
26176         * modules/filevercmp-tests (Files): Likewise.
26177         * modules/flock-tests (Files): Likewise.
26178         * modules/floorf-tests (Files): Likewise.
26179         * modules/floorl-tests (Files): Likewise.
26180         * modules/fnmatch-tests (Files): Likewise.
26181         * modules/fopen-safer-tests (Files): Likewise.
26182         * modules/fopen-tests (Files): Likewise.
26183         * modules/fpending-tests (Files): Likewise.
26184         * modules/fprintf-posix-tests (Files): Likewise.
26185         * modules/fpurge-tests (Files): Likewise.
26186         * modules/freadable-tests (Files): Likewise.
26187         * modules/freadahead-tests (Files): Likewise.
26188         * modules/freading-tests (Files): Likewise.
26189         * modules/freadptr-tests (Files): Likewise.
26190         * modules/freadseek-tests (Files): Likewise.
26191         * modules/freopen-tests (Files): Likewise.
26192         * modules/frexp-nolibm-tests (Files): Likewise.
26193         * modules/frexp-tests (Files): Likewise.
26194         * modules/frexpl-nolibm-tests (Files): Likewise.
26195         * modules/frexpl-tests (Files): Likewise.
26196         * modules/fseek-tests (Files): Likewise.
26197         * modules/fseeko-tests (Files): Likewise.
26198         * modules/fstrcmp-tests (Files): Likewise.
26199         * modules/fsync-tests (Files): Likewise.
26200         * modules/ftell-tests (Files): Likewise.
26201         * modules/ftello-tests (Files): Likewise.
26202         * modules/func-tests (Files): Likewise.
26203         * modules/futimens-tests (Files): Likewise.
26204         * modules/fwritable-tests (Files): Likewise.
26205         * modules/fwriting-tests (Files): Likewise.
26206         * modules/getcwd-tests (Files): Likewise.
26207         * modules/getdate-tests (Files): Likewise.
26208         * modules/getdelim-tests (Files): Likewise.
26209         * modules/getdtablesize-tests (Files): Likewise.
26210         * modules/getgroups-tests (Files): Likewise.
26211         * modules/getline-tests (Files): Likewise.
26212         * modules/getndelim2-tests (Files): Likewise.
26213         * modules/glob-tests (Files): Likewise.
26214         * modules/hash-tests (Files): Likewise.
26215         * modules/i-ring-tests (Files): Likewise.
26216         * modules/iconv-tests (Files): Likewise.
26217         * modules/iconv_open-utf-tests (Files): Likewise.
26218         * modules/idpriv-drop-tests (Files): Likewise.
26219         * modules/idpriv-droptemp-tests (Files): Likewise.
26220         * modules/inet_ntop-tests (Files): Likewise.
26221         * modules/inet_pton-tests (Files): Likewise.
26222         * modules/isblank-tests (Files): Likewise.
26223         * modules/isfinite-tests (Files): Likewise.
26224         * modules/isinf-tests (Files): Likewise.
26225         * modules/isnan-tests (Files): Likewise.
26226         * modules/isnand-nolibm-tests (Files): Likewise.
26227         * modules/isnand-tests (Files): Likewise.
26228         * modules/isnanf-nolibm-tests (Files): Likewise.
26229         * modules/isnanf-tests (Files): Likewise.
26230         * modules/isnanl-nolibm-tests (Files): Likewise.
26231         * modules/isnanl-tests (Files): Likewise.
26232         * modules/lchown-tests (Files): Likewise.
26233         * modules/ldexpl-tests (Files): Likewise.
26234         * modules/link-tests (Files): Likewise.
26235         * modules/linkat-tests (Files): Likewise.
26236         * modules/linked-list-tests (Files): Likewise.
26237         * modules/linkedhash-list-tests (Files): Likewise.
26238         * modules/localename-tests (Files): Likewise.
26239         * modules/lseek-tests (Files): Likewise.
26240         * modules/lstat-tests (Files): Likewise.
26241         * modules/mbmemcasecmp-tests (Files): Likewise.
26242         * modules/mbmemcasecoll-tests (Files): Likewise.
26243         * modules/mbrtowc-tests (Files): Likewise.
26244         * modules/mbscasecmp-tests (Files): Likewise.
26245         * modules/mbscasestr-tests (Files): Likewise.
26246         * modules/mbschr-tests (Files): Likewise.
26247         * modules/mbscspn-tests (Files): Likewise.
26248         * modules/mbsinit-tests (Files): Likewise.
26249         * modules/mbsncasecmp-tests (Files): Likewise.
26250         * modules/mbsnrtowcs-tests (Files): Likewise.
26251         * modules/mbspbrk-tests (Files): Likewise.
26252         * modules/mbspcasecmp-tests (Files): Likewise.
26253         * modules/mbsrchr-tests (Files): Likewise.
26254         * modules/mbsrtowcs-tests (Files): Likewise.
26255         * modules/mbsspn-tests (Files): Likewise.
26256         * modules/mbsstr-tests (Files): Likewise.
26257         * modules/memchr-tests (Files): Likewise.
26258         * modules/memchr2-tests (Files): Likewise.
26259         * modules/memcmp-tests (Files): Likewise.
26260         * modules/memmem-tests (Files): Likewise.
26261         * modules/memrchr-tests (Files): Likewise.
26262         * modules/mkdir-tests (Files): Likewise.
26263         * modules/mkfifo-tests (Files): Likewise.
26264         * modules/mkfifoat-tests (Files): Likewise.
26265         * modules/mknod-tests (Files): Likewise.
26266         * modules/nanosleep-tests (Files): Likewise.
26267         * modules/nl_langinfo-tests (Files): Likewise.
26268         * modules/obstack-printf-tests (Files): Likewise.
26269         * modules/open-tests (Files): Likewise.
26270         * modules/openat-tests (Files): Likewise.
26271         * modules/pipe-filter-gi-tests (Files): Likewise.
26272         * modules/pipe-filter-ii-tests (Files): Likewise.
26273         * modules/pipe2-tests (Files): Likewise.
26274         * modules/popen-safer-tests (Files): Likewise.
26275         * modules/popen-tests (Files): Likewise.
26276         * modules/posixtm-tests (Files): Likewise.
26277         * modules/pread-tests (Files): Likewise.
26278         * modules/printf-frexp-tests (Files): Likewise.
26279         * modules/printf-frexpl-tests (Files): Likewise.
26280         * modules/printf-posix-tests (Files): Likewise.
26281         * modules/priv-set-tests (Files): Likewise.
26282         * modules/quotearg-tests (Files): Likewise.
26283         * modules/random_r-tests (Files): Likewise.
26284         * modules/rawmemchr-tests (Files): Likewise.
26285         * modules/rbtree-list-tests (Files): Likewise.
26286         * modules/rbtree-oset-tests (Files): Likewise.
26287         * modules/rbtreehash-list-tests (Files): Likewise.
26288         * modules/readlink-tests (Files): Likewise.
26289         * modules/remove-tests (Files): Likewise.
26290         * modules/rename-tests (Files): Likewise.
26291         * modules/renameat-tests (Files): Likewise.
26292         * modules/rmdir-tests (Files): Likewise.
26293         * modules/round-tests (Files): Likewise.
26294         * modules/roundf-tests (Files): Likewise.
26295         * modules/roundl-tests (Files): Likewise.
26296         * modules/safe-alloc-tests (Files): Likewise.
26297         * modules/setenv-tests (Files): Likewise.
26298         * modules/sigaction-tests (Files): Likewise.
26299         * modules/signbit-tests (Files): Likewise.
26300         * modules/sleep-tests (Files): Likewise.
26301         * modules/snprintf-posix-tests (Files): Likewise.
26302         * modules/snprintf-tests (Files): Likewise.
26303         * modules/sprintf-posix-tests (Files): Likewise.
26304         * modules/stat-tests (Files): Likewise.
26305         * modules/stat-time-tests (Files): Likewise.
26306         * modules/strcasestr-tests (Files): Likewise.
26307         * modules/strchrnul-tests (Files): Likewise.
26308         * modules/strerror-tests (Files): Likewise.
26309         * modules/striconv-tests (Files): Likewise.
26310         * modules/striconveh-tests (Files): Likewise.
26311         * modules/striconveha-tests (Files): Likewise.
26312         * modules/strsignal-tests (Files): Likewise.
26313         * modules/strstr-tests (Files): Likewise.
26314         * modules/strtod-tests (Files): Likewise.
26315         * modules/strverscmp-tests (Files): Likewise.
26316         * modules/symlink-tests (Files): Likewise.
26317         * modules/symlinkat-tests (Files): Likewise.
26318         * modules/trunc-tests (Files): Likewise.
26319         * modules/truncf-tests (Files): Likewise.
26320         * modules/truncl-tests (Files): Likewise.
26321         * modules/uname-tests (Files): Likewise.
26322         * modules/unicase/cased-tests (Files): Likewise.
26323         * modules/unicase/ignorable-tests (Files): Likewise.
26324         * modules/unicase/locale-language-tests (Files): Likewise.
26325         * modules/unicase/tolower-tests (Files): Likewise.
26326         * modules/unicase/totitle-tests (Files): Likewise.
26327         * modules/unicase/toupper-tests (Files): Likewise.
26328         * modules/unicase/u8-casecmp-tests (Files): Likewise.
26329         * modules/unicase/u8-casecoll-tests (Files): Likewise.
26330         * modules/unicase/u8-casefold-tests (Files): Likewise.
26331         * modules/unicase/u8-is-cased-tests (Files): Likewise.
26332         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
26333         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
26334         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
26335         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
26336         * modules/unicase/u8-tolower-tests (Files): Likewise.
26337         * modules/unicase/u8-totitle-tests (Files): Likewise.
26338         * modules/unicase/u8-toupper-tests (Files): Likewise.
26339         * modules/unicase/u16-casecmp-tests (Files): Likewise.
26340         * modules/unicase/u16-casecoll-tests (Files): Likewise.
26341         * modules/unicase/u16-casefold-tests (Files): Likewise.
26342         * modules/unicase/u16-is-cased-tests (Files): Likewise.
26343         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
26344         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
26345         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
26346         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
26347         * modules/unicase/u16-tolower-tests (Files): Likewise.
26348         * modules/unicase/u16-totitle-tests (Files): Likewise.
26349         * modules/unicase/u16-toupper-tests (Files): Likewise.
26350         * modules/unicase/u32-casecmp-tests (Files): Likewise.
26351         * modules/unicase/u32-casecoll-tests (Files): Likewise.
26352         * modules/unicase/u32-casefold-tests (Files): Likewise.
26353         * modules/unicase/u32-is-cased-tests (Files): Likewise.
26354         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
26355         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
26356         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
26357         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
26358         * modules/unicase/u32-tolower-tests (Files): Likewise.
26359         * modules/unicase/u32-totitle-tests (Files): Likewise.
26360         * modules/unicase/u32-toupper-tests (Files): Likewise.
26361         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
26362         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
26363         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
26364         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
26365         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
26366         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
26367         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
26368         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
26369         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
26370         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
26371         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
26372         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
26373         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
26374         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
26375         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
26376         * modules/unictype/bidicategory-name-tests (Files): Likewise.
26377         * modules/unictype/bidicategory-of-tests (Files): Likewise.
26378         * modules/unictype/bidicategory-test-tests (Files): Likewise.
26379         * modules/unictype/block-list-tests (Files): Likewise.
26380         * modules/unictype/block-of-tests (Files): Likewise.
26381         * modules/unictype/block-test-tests (Files): Likewise.
26382         * modules/unictype/category-C-tests (Files): Likewise.
26383         * modules/unictype/category-Cc-tests (Files): Likewise.
26384         * modules/unictype/category-Cf-tests (Files): Likewise.
26385         * modules/unictype/category-Cn-tests (Files): Likewise.
26386         * modules/unictype/category-Co-tests (Files): Likewise.
26387         * modules/unictype/category-Cs-tests (Files): Likewise.
26388         * modules/unictype/category-L-tests (Files): Likewise.
26389         * modules/unictype/category-Ll-tests (Files): Likewise.
26390         * modules/unictype/category-Lm-tests (Files): Likewise.
26391         * modules/unictype/category-Lo-tests (Files): Likewise.
26392         * modules/unictype/category-Lt-tests (Files): Likewise.
26393         * modules/unictype/category-Lu-tests (Files): Likewise.
26394         * modules/unictype/category-M-tests (Files): Likewise.
26395         * modules/unictype/category-Mc-tests (Files): Likewise.
26396         * modules/unictype/category-Me-tests (Files): Likewise.
26397         * modules/unictype/category-Mn-tests (Files): Likewise.
26398         * modules/unictype/category-N-tests (Files): Likewise.
26399         * modules/unictype/category-Nd-tests (Files): Likewise.
26400         * modules/unictype/category-Nl-tests (Files): Likewise.
26401         * modules/unictype/category-No-tests (Files): Likewise.
26402         * modules/unictype/category-P-tests (Files): Likewise.
26403         * modules/unictype/category-Pc-tests (Files): Likewise.
26404         * modules/unictype/category-Pd-tests (Files): Likewise.
26405         * modules/unictype/category-Pe-tests (Files): Likewise.
26406         * modules/unictype/category-Pf-tests (Files): Likewise.
26407         * modules/unictype/category-Pi-tests (Files): Likewise.
26408         * modules/unictype/category-Po-tests (Files): Likewise.
26409         * modules/unictype/category-Ps-tests (Files): Likewise.
26410         * modules/unictype/category-S-tests (Files): Likewise.
26411         * modules/unictype/category-Sc-tests (Files): Likewise.
26412         * modules/unictype/category-Sk-tests (Files): Likewise.
26413         * modules/unictype/category-Sm-tests (Files): Likewise.
26414         * modules/unictype/category-So-tests (Files): Likewise.
26415         * modules/unictype/category-Z-tests (Files): Likewise.
26416         * modules/unictype/category-Zl-tests (Files): Likewise.
26417         * modules/unictype/category-Zp-tests (Files): Likewise.
26418         * modules/unictype/category-Zs-tests (Files): Likewise.
26419         * modules/unictype/category-and-not-tests (Files): Likewise.
26420         * modules/unictype/category-and-tests (Files): Likewise.
26421         * modules/unictype/category-byname-tests (Files): Likewise.
26422         * modules/unictype/category-name-tests (Files): Likewise.
26423         * modules/unictype/category-none-tests (Files): Likewise.
26424         * modules/unictype/category-of-tests (Files): Likewise.
26425         * modules/unictype/category-or-tests (Files): Likewise.
26426         * modules/unictype/category-test-withtable-tests (Files): Likewise.
26427         * modules/unictype/combining-class-tests (Files): Likewise.
26428         * modules/unictype/ctype-alnum-tests (Files): Likewise.
26429         * modules/unictype/ctype-alpha-tests (Files): Likewise.
26430         * modules/unictype/ctype-blank-tests (Files): Likewise.
26431         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
26432         * modules/unictype/ctype-digit-tests (Files): Likewise.
26433         * modules/unictype/ctype-graph-tests (Files): Likewise.
26434         * modules/unictype/ctype-lower-tests (Files): Likewise.
26435         * modules/unictype/ctype-print-tests (Files): Likewise.
26436         * modules/unictype/ctype-punct-tests (Files): Likewise.
26437         * modules/unictype/ctype-space-tests (Files): Likewise.
26438         * modules/unictype/ctype-upper-tests (Files): Likewise.
26439         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
26440         * modules/unictype/decimal-digit-tests (Files): Likewise.
26441         * modules/unictype/digit-tests (Files): Likewise.
26442         * modules/unictype/mirror-tests (Files): Likewise.
26443         * modules/unictype/numeric-tests (Files): Likewise.
26444         * modules/unictype/property-alphabetic-tests (Files): Likewise.
26445         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
26446         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
26447         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
26448         Likewise.
26449         * modules/unictype/property-bidi-block-separator-tests (Files):
26450         Likewise.
26451         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
26452         Likewise.
26453         * modules/unictype/property-bidi-common-separator-tests (Files):
26454         Likewise.
26455         * modules/unictype/property-bidi-control-tests (Files): Likewise.
26456         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
26457         Likewise.
26458         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
26459         Likewise.
26460         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
26461         Likewise.
26462         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
26463         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
26464         Likewise.
26465         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
26466         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
26467         Likewise.
26468         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
26469         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
26470         * modules/unictype/property-bidi-segment-separator-tests (Files):
26471         Likewise.
26472         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
26473         * modules/unictype/property-byname-tests (Files): Likewise.
26474         * modules/unictype/property-combining-tests (Files): Likewise.
26475         * modules/unictype/property-composite-tests (Files): Likewise.
26476         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
26477         * modules/unictype/property-dash-tests (Files): Likewise.
26478         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
26479         * modules/unictype/property-default-ignorable-code-point-tests (Files):
26480         Likewise.
26481         * modules/unictype/property-deprecated-tests (Files): Likewise.
26482         * modules/unictype/property-diacritic-tests (Files): Likewise.
26483         * modules/unictype/property-extender-tests (Files): Likewise.
26484         * modules/unictype/property-format-control-tests (Files): Likewise.
26485         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
26486         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
26487         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
26488         * modules/unictype/property-hex-digit-tests (Files): Likewise.
26489         * modules/unictype/property-hyphen-tests (Files): Likewise.
26490         * modules/unictype/property-id-continue-tests (Files): Likewise.
26491         * modules/unictype/property-id-start-tests (Files): Likewise.
26492         * modules/unictype/property-ideographic-tests (Files): Likewise.
26493         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
26494         * modules/unictype/property-ids-trinary-operator-tests (Files):
26495         Likewise.
26496         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
26497         * modules/unictype/property-iso-control-tests (Files): Likewise.
26498         * modules/unictype/property-join-control-tests (Files): Likewise.
26499         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
26500         * modules/unictype/property-line-separator-tests (Files): Likewise.
26501         * modules/unictype/property-logical-order-exception-tests (Files):
26502         Likewise.
26503         * modules/unictype/property-lowercase-tests (Files): Likewise.
26504         * modules/unictype/property-math-tests (Files): Likewise.
26505         * modules/unictype/property-non-break-tests (Files): Likewise.
26506         * modules/unictype/property-not-a-character-tests (Files): Likewise.
26507         * modules/unictype/property-numeric-tests (Files): Likewise.
26508         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
26509         * modules/unictype/property-other-default-ignorable-code-point-tests
26510         (Files): Likewise.
26511         * modules/unictype/property-other-grapheme-extend-tests (Files):
26512         Likewise.
26513         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
26514         * modules/unictype/property-other-id-start-tests (Files): Likewise.
26515         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
26516         * modules/unictype/property-other-math-tests (Files): Likewise.
26517         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
26518         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
26519         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
26520         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
26521         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
26522         * modules/unictype/property-private-use-tests (Files): Likewise.
26523         * modules/unictype/property-punctuation-tests (Files): Likewise.
26524         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
26525         * modules/unictype/property-radical-tests (Files): Likewise.
26526         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
26527         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
26528         * modules/unictype/property-space-tests (Files): Likewise.
26529         * modules/unictype/property-terminal-punctuation-tests (Files):
26530         Likewise.
26531         * modules/unictype/property-test-tests (Files): Likewise.
26532         * modules/unictype/property-titlecase-tests (Files): Likewise.
26533         * modules/unictype/property-unassigned-code-value-tests (Files):
26534         Likewise.
26535         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
26536         * modules/unictype/property-uppercase-tests (Files): Likewise.
26537         * modules/unictype/property-variation-selector-tests (Files): Likewise.
26538         * modules/unictype/property-white-space-tests (Files): Likewise.
26539         * modules/unictype/property-xid-continue-tests (Files): Likewise.
26540         * modules/unictype/property-xid-start-tests (Files): Likewise.
26541         * modules/unictype/property-zero-width-tests (Files): Likewise.
26542         * modules/unictype/scripts-tests (Files): Likewise.
26543         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
26544         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
26545         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
26546         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
26547         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
26548         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
26549         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
26550         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
26551         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
26552         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
26553         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
26554         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
26555         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
26556         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
26557         * modules/uninorm/composition-tests (Files): Likewise.
26558         * modules/uninorm/decomposing-form-tests (Files): Likewise.
26559         * modules/uninorm/decomposition-tests (Files): Likewise.
26560         * modules/uninorm/filter-tests (Files): Likewise.
26561         * modules/uninorm/nfc-tests (Files): Likewise.
26562         * modules/uninorm/nfd-tests (Files): Likewise.
26563         * modules/uninorm/nfkc-tests (Files): Likewise.
26564         * modules/uninorm/nfkd-tests (Files): Likewise.
26565         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
26566         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
26567         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
26568         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
26569         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
26570         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
26571         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
26572         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
26573         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
26574         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
26575         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
26576         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
26577         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
26578         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
26579         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
26580         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
26581         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
26582         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
26583         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
26584         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
26585         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
26586         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
26587         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
26588         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
26589         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
26590         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
26591         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
26592         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
26593         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
26594         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
26595         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
26596         * modules/uniwidth/u8-width-tests (Files): Likewise.
26597         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
26598         * modules/uniwidth/u16-width-tests (Files): Likewise.
26599         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
26600         * modules/uniwidth/u32-width-tests (Files): Likewise.
26601         * modules/uniwidth/width-tests (Files): Likewise.
26602         * modules/unlink-tests (Files): Likewise.
26603         * modules/unsetenv-tests (Files): Likewise.
26604         * modules/usleep-tests (Files): Likewise.
26605         * modules/utimens-tests (Files): Likewise.
26606         * modules/utimensat-tests (Files): Likewise.
26607         * modules/vasnprintf-posix-tests (Files): Likewise.
26608         * modules/vasnprintf-tests (Files): Likewise.
26609         * modules/vasprintf-posix-tests (Files): Likewise.
26610         * modules/vasprintf-tests (Files): Likewise.
26611         * modules/vdprintf-posix-tests (Files): Likewise.
26612         * modules/vfprintf-posix-tests (Files): Likewise.
26613         * modules/vprintf-posix-tests (Files): Likewise.
26614         * modules/vsnprintf-posix-tests (Files): Likewise.
26615         * modules/vsnprintf-tests (Files): Likewise.
26616         * modules/vsprintf-posix-tests (Files): Likewise.
26617         * modules/wcrtomb-tests (Files): Likewise.
26618         * modules/wcsnrtombs-tests (Files): Likewise.
26619         * modules/wcsrtombs-tests (Files): Likewise.
26620         * modules/wctype-tests (Files): Likewise.
26621         * modules/wcwidth-tests (Files): Likewise.
26622         * modules/xmemdup0-tests (Files): Likewise.
26623         * modules/xprintf-posix-tests (Files): Likewise.
26624         * modules/xvasprintf-tests (Files): Likewise.
26625
26626 2009-12-24  Eric Blake  <ebb9@byu.net>
26627
26628         test-nanosleep: fix typo
26629         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
26630         patch.
26631         Reported by Bruno Haible.
26632
26633 2009-12-24  Bruno Haible  <bruno@clisp.org>
26634
26635         Reduce namespace pollution on glibc systems.
26636         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
26637         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
26638         systems.
26639         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
26640         <getopt.h> on glibc systems.
26641         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
26642         systems.
26643         * lib/fcntl.c: Include <unistd.h> here instead.
26644
26645 2009-12-24  Bruno Haible  <bruno@clisp.org>
26646
26647         * lib/stdlib.in.h (includes): Fix typo in today's commit.
26648
26649 2009-12-24  Eric Blake  <ebb9@byu.net>
26650
26651         tests: add signature checks
26652         * tests/signature.h (SIGNATURE_CHECK): New file.
26653         * modules/atexit-tests (Files): Use it.
26654         * modules/btowc-tests (Files): Likewise.
26655         * modules/canonicalize-lgpl-tests (Files): Likewise.
26656         * modules/ceilf-tests (Files): Likewise.
26657         * modules/ceill-tests (Files): Likewise.
26658         * modules/chown-tests (Files): Likewise.
26659         * modules/dprintf-posix-tests (Files): Likewise.
26660         * modules/dup2-tests (Files): Likewise.
26661         * modules/dup3-tests (Files): Likewise.
26662         * modules/duplocale-tests (Files): Likewise.
26663         * modules/fchdir-tests (Files): Likewise.
26664         * modules/fcntl-tests (Files): Likewise.
26665         * modules/fdopendir-tests (Files): Likewise.
26666         * modules/fflush-tests (Files): Likewise.
26667         * modules/flock-tests (Files): Likewise.
26668         * modules/floorf-tests (Files): Likewise.
26669         * modules/floorl-tests (Files): Likewise.
26670         * modules/fnmatch-tests (Files): Likewise.
26671         * modules/fopen-tests (Files): Likewise.
26672         * modules/fprintf-posix-tests (Files): Likewise.
26673         * modules/freopen-tests (Files): Likewise.
26674         * modules/frexp-nolibm-tests (Files): Likewise.
26675         * modules/frexp-tests (Files): Likewise.
26676         * modules/frexpl-nolibm-tests (Files): Likewise.
26677         * modules/frexpl-tests (Files): Likewise.
26678         * modules/fseek-tests (Files): Likewise.
26679         * modules/fseeko-tests (Files): Likewise.
26680         * modules/fsync-tests (Files): Likewise.
26681         * modules/ftell-tests (Files): Likewise.
26682         * modules/ftello-tests (Files): Likewise.
26683         * modules/futimens-tests (Files): Likewise.
26684         * modules/getaddrinfo-tests (Files): Likewise.
26685         * modules/getcwd-tests (Files): Likewise.
26686         * modules/getdelim-tests (Files): Likewise.
26687         * modules/getdtablesize-tests (Files): Likewise.
26688         * modules/getgroups-tests (Files): Likewise.
26689         * modules/gethostname-tests (Files): Likewise.
26690         * modules/getline-tests (Files): Likewise.
26691         * modules/getopt-posix-tests (Files): Likewise.
26692         * modules/gettimeofday-tests (Files): Likewise.
26693         * modules/glob-tests (Files): Likewise.
26694         * modules/iconv-tests (Files): Likewise.
26695         * modules/inet_ntop-tests (Files): Likewise.
26696         * modules/inet_pton-tests (Files): Likewise.
26697         * modules/isblank-tests (Files): Likewise.
26698         * modules/lchown-tests (Files): Likewise.
26699         * modules/ldexpl-tests (Files): Likewise.
26700         * modules/link-tests (Files): Likewise.
26701         * modules/linkat-tests (Files): Likewise.
26702         * modules/lseek-tests (Files): Likewise.
26703         * modules/lstat-tests (Files): Likewise.
26704         * modules/mbrtowc-tests (Files): Likewise.
26705         * modules/mbsinit-tests (Files): Likewise.
26706         * modules/mbsnrtowcs-tests (Files): Likewise.
26707         * modules/mbsrtowcs-tests (Files): Likewise.
26708         * modules/memchr-tests (Files): Likewise.
26709         * modules/memcmp-tests (Files): Likewise.
26710         * modules/memmem-tests (Files): Likewise.
26711         * modules/memrchr-tests (Files): Likewise.
26712         * modules/mkdir-tests (Files): Likewise.
26713         * modules/mkfifo-tests (Files): Likewise.
26714         * modules/mkfifoat-tests (Files): Likewise.
26715         * modules/mknod-tests (Files): Likewise.
26716         * modules/nanosleep-tests (Files): Likewise.
26717         * modules/nl_langinfo-tests (Files): Likewise.
26718         * modules/obstack-printf-tests (Files): Likewise.
26719         * modules/open-tests (Files): Likewise.
26720         * modules/openat-tests (Files): Likewise.
26721         * modules/perror-tests (Files): Likewise.
26722         * modules/pipe2-tests (Files): Likewise.
26723         * modules/poll-tests (Files): Likewise.
26724         * modules/popen-tests (Files): Likewise.
26725         * modules/posix_spawn-tests (Files): Likewise.
26726         * modules/posix_spawnp-tests (Files): Likewise.
26727         * modules/pread-tests (Files): Likewise.
26728         * modules/printf-posix-tests (Files): Likewise.
26729         * modules/pty-tests (Files): Likewise.
26730         * modules/random_r-tests (Files): Likewise.
26731         * modules/rawmemchr-tests (Files): Likewise.
26732         * modules/readlink-tests (Files): Likewise.
26733         * modules/remove-tests (Files): Likewise.
26734         * modules/rename-tests (Files): Likewise.
26735         * modules/renameat-tests (Files): Likewise.
26736         * modules/rmdir-tests (Files): Likewise.
26737         * modules/round-tests (Files): Likewise.
26738         * modules/roundf-tests (Files): Likewise.
26739         * modules/roundl-tests (Files): Likewise.
26740         * modules/select-tests (Files): Likewise.
26741         * modules/setenv-tests (Files): Likewise.
26742         * modules/sigaction-tests (Files): Likewise.
26743         * modules/sleep-tests (Files): Likewise.
26744         * modules/snprintf-posix-tests (Files): Likewise.
26745         * modules/snprintf-tests (Files): Likewise.
26746         * modules/sprintf-posix-tests (Files): Likewise.
26747         * modules/stat-tests (Files): Likewise.
26748         * modules/strcasestr-tests (Files): Likewise.
26749         * modules/strchrnul-tests (Files): Likewise.
26750         * modules/strerror-tests (Files): Likewise.
26751         * modules/strsignal-tests (Files): Likewise.
26752         * modules/strstr-tests (Files): Likewise.
26753         * modules/strtod-tests (Files): Likewise.
26754         * modules/strverscmp-tests (Files): Likewise.
26755         * modules/symlink-tests (Files): Likewise.
26756         * modules/symlinkat-tests (Files): Likewise.
26757         * modules/times-tests (Files): Likewise.
26758         * modules/trunc-tests (Files): Likewise.
26759         * modules/truncf-tests (Files): Likewise.
26760         * modules/truncl-tests (Files): Likewise.
26761         * modules/tsearch-tests (Files): Likewise.
26762         * modules/uname-tests (Files): Likewise.
26763         * modules/unlink-tests (Files): Likewise.
26764         * modules/unsetenv-tests (Files): Likewise.
26765         * modules/usleep-tests (Files): Likewise.
26766         * modules/utimensat-tests (Files): Likewise.
26767         * modules/vasprintf-tests (Files): Likewise.
26768         * modules/vdprintf-posix-tests (Files): Likewise.
26769         * modules/vfprintf-posix-tests (Files): Likewise.
26770         * modules/vprintf-posix-tests (Files): Likewise.
26771         * modules/vsnprintf-posix-tests (Files): Likewise.
26772         * modules/vsnprintf-tests (Files): Likewise.
26773         * modules/vsprintf-posix-tests (Files): Likewise.
26774         * modules/wcrtomb-tests (Files): Likewise.
26775         * modules/wcsnrtombs-tests (Files): Likewise.
26776         * modules/wcsrtombs-tests (Files): Likewise.
26777         * modules/wcwidth-tests (Files): Likewise.
26778         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
26779         * tests/test-isinf.c (isinf): Likewise.
26780         * tests/test-isnan.c (isnan): Likewise.
26781         * tests/test-signbit.c (signbit): Likewise.
26782         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
26783         declaration, either as macro or with correct signature.
26784         (select): Ensure function under test is declared with correct
26785         signature in correct header.
26786         * tests/test-atexit.c (atexit): Likewise.
26787         * tests/test-btowc.c (btowc): Likewise.
26788         * tests/test-canonicalize-lgpl.c (realpath)
26789         (canonicalize_file_name): Likewise.
26790         * tests/test-ceilf1.c (ceilf): Likewise.
26791         * tests/test-ceill.c (ceill): Likewise.
26792         * tests/test-chown.c (chown): Likewise.
26793         * tests/test-dprintf-posix.c (dprintf): Likewise.
26794         * tests/test-dup2.c (dup2): Likewise.
26795         * tests/test-dup3.c (dup3): Likewise.
26796         * tests/test-duplocale.c (duplocale): Likewise.
26797         * tests/test-fchdir.c (fchdir): Likewise.
26798         * tests/test-fchownat.c (fchownat): Likewise.
26799         * tests/test-fcntl.c (fcntl): Likewise.
26800         * tests/test-fdopendir.c (fdopendir): Likewise.
26801         * tests/test-fflush.c (fflush): Likewise.
26802         * tests/test-flock.c (flock): Likewise.
26803         * tests/test-floorf1.c (floorf): Likewise.
26804         * tests/test-floorl.c (floorl): Likewise.
26805         * tests/test-fnmatch.c (fnmatch): Likewise.
26806         * tests/test-fopen.c (fopen): Likewise.
26807         * tests/test-fprintf-posix.c (fprintf): Likewise.
26808         * tests/test-freopen.c (freopen): Likewise.
26809         * tests/test-frexp.c (frexp): Likewise.
26810         * tests/test-frexpl.c (frexpl): Likewise.
26811         * tests/test-fseek.c (fseek): Likewise.
26812         * tests/test-fseeko.c (fseeko): Likewise.
26813         * tests/test-fstatat.c (fstatat): Likewise.
26814         * tests/test-fsync.c (fsync): Likewise.
26815         * tests/test-ftell.c (ftell): Likewise.
26816         * tests/test-ftello.c (ftello): Likewise.
26817         * tests/test-futimens.c (futimens): Likewise.
26818         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
26819         (gai_strerror): Likewise.
26820         * tests/test-getcwd.c (getcwd): Likewise.
26821         * tests/test-getdelim.c (getdelim): Likewise.
26822         * tests/test-getdtablesize.c (getdtablesize): Likewise.
26823         * tests/test-getgroups.c (getgroups): Likewise.
26824         * tests/test-gethostname.c (gethostname): Likewise.
26825         * tests/test-getline.c (getline): Likewise.
26826         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
26827         Likewise.
26828         * tests/test-gettimeofday.c (gettimeofday): Likewise.
26829         * tests/test-glob.c (glob, globfree): Likewise.
26830         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
26831         * tests/test-inet_ntop.c (inet_ntop): Likewise.
26832         * tests/test-inet_pton.c (inet_pton): Likewise.
26833         * tests/test-isblank.c (isblank): Likewise.
26834         * tests/test-lchown.c (lchown): Likewise.
26835         * tests/test-ldexpl.c (ldexpl): Likewise.
26836         * tests/test-link.c (link): Likewise.
26837         * tests/test-linkat.c (linkat): Likewise.
26838         * tests/test-lseek.c (lseek): Likewise.
26839         * tests/test-lstat.c (lstat): Likewise.
26840         * tests/test-mbrtowc.c (mbrtowc): Likewise.
26841         * tests/test-mbsinit.c (mbsinit): Likewise.
26842         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
26843         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
26844         * tests/test-memchr.c (memchr): Likewise.
26845         * tests/test-memcmp.c (memcmp): Likewise.
26846         * tests/test-memmem.c (memmem): Likewise.
26847         * tests/test-memrchr.c (memrchr): Likewise.
26848         * tests/test-mkdir.c (mkdir): Likewise.
26849         * tests/test-mkdirat.c (mkdirat): Likewise.
26850         * tests/test-mkfifo.c (mkfifo): Likewise.
26851         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
26852         * tests/test-mknod.c (mknod): Likewise.
26853         * tests/test-nanosleep.c (nanosleep): Likewise.
26854         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
26855         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
26856         Likewise.
26857         * tests/test-open.c (open): Likewise.
26858         * tests/test-openat.c (openat): Likewise.
26859         * tests/test-perror.c (perror): Likewise.
26860         * tests/test-pipe2.c (pipe2): Likewise.
26861         * tests/test-poll.c (poll): Likewise.
26862         * tests/test-popen.c (popen, pclose): Likewise.
26863         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
26864         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
26865         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
26866         (posix_spawn_file_actions_destroy)
26867         (posix_spawn_file_actions_addclose)
26868         (posix_spawn_file_actions_addopen)
26869         (posix_spawn_file_actions_adddup2): Likewise.
26870         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
26871         * tests/test-pread.c (pread): Likewise.
26872         * tests/test-printf-posix.c (printf): Likewise.
26873         * tests/test-pty.c (openpty, forkpty): Likewise.
26874         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
26875         (random_r): Likewise.
26876         * tests/test-rawmemchr.c (rawmemchr): Likewise.
26877         * tests/test-readlink.c (readlink): Likewise.
26878         * tests/test-remove.c (remove): Likewise.
26879         * tests/test-rename.c (rename): Likewise.
26880         * tests/test-renameat.c (renameat): Likewise.
26881         * tests/test-rmdir.c (rmdir): Likewise.
26882         * tests/test-round1.c (round): Likewise.
26883         * tests/test-roundf1.c (roundf): Likewise.
26884         * tests/test-roundl.c (roundl): Likewise.
26885         * tests/test-setenv.c (setenv): Likewise.
26886         * tests/test-sigaction.c (sigaction): Likewise.
26887         * tests/test-sleep.c (sleep): Likewise.
26888         * tests/test-snprintf.c (snprintf): Likewise.
26889         * tests/test-sprintf-posix.c (sprintf): Likewise.
26890         * tests/test-stat.c (stat): Likewise.
26891         * tests/test-stpncpy.c (stpncpy): Likewise.
26892         * tests/test-strcasestr.c (strcasestr): Likewise.
26893         * tests/test-strchrnul.c (strchrnul): Likewise.
26894         * tests/test-strerror.c (strerror): Likewise.
26895         * tests/test-strsignal.c (strsignal): Likewise.
26896         * tests/test-strstr.c (strstr): Likewise.
26897         * tests/test-strtod.c (strtod): Likewise.
26898         * tests/test-strverscmp.c (strverscmp): Likewise.
26899         * tests/test-symlink.c (symlink): Likewise.
26900         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
26901         * tests/test-times.c (times): Likewise.
26902         * tests/test-trunc1.c (trunc): Likewise.
26903         * tests/test-truncf1.c (truncf): Likewise.
26904         * tests/test-truncl.c (truncl): Likewise.
26905         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
26906         Likewise.
26907         * tests/test-uname.c (uname): Likewise.
26908         * tests/test-unlink.c (unlink): Likewise.
26909         * tests/test-unlinkat.c (unlinkat): Likewise.
26910         * tests/test-unsetenv.c (unsetenv): Likewise.
26911         * tests/test-usleep.c (usleep): Likewise.
26912         * tests/test-utimensat.c (utimensat): Likewise.
26913         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
26914         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
26915         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
26916         * tests/test-vprintf-posix.c (vprintf): Likewise.
26917         * tests/test-vsnprintf.c (vsnprintf): Likewise.
26918         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
26919         * tests/test-wcrtomb.c (wcrtomb): Likewise.
26920         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
26921         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
26922         * tests/test-wcwidth.c (wcwidth): Likewise.
26923
26924         build: pull in conditional headers during GNULIB_POSIXCHECK
26925         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
26926         definitions from any conditionally-included headers.
26927         * lib/stdlib.in.h (includes): Likewise.
26928         * lib/unistd.in.h (includes): Likewise.
26929
26930 2009-12-24  Bruno Haible  <bruno@clisp.org>
26931
26932         * tests/test-argv-iter.c: Include header file being tested immediately
26933         after config.h.
26934         * tests/test-base64.c: Likewise.
26935         * tests/test-flock.c: Likewise.
26936         * tests/test-fsync.c: Likewise.
26937         * tests/test-getdate.c: Likewise.
26938         * tests/test-getndelim2.c: Likewise.
26939         * tests/test-isfinite.c: Likewise.
26940         * tests/test-isinf.c: Likewise.
26941         * tests/test-strerror.c: Likewise.
26942         * tests/test-strsignal.c: Likewise.
26943
26944 2009-12-23  Eric Blake  <ebb9@byu.net>
26945
26946         unistd: work around cygwin bug
26947         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
26948         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
26949         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
26950
26951 2009-12-23  Bruno Haible  <bruno@clisp.org>
26952
26953         localename: More tests.
26954         * tests/test-localename.c (SIZEOF): New macro.
26955         (categories): New variable.
26956         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
26957         test_locale_name_default): Add test w.r.t. thread locale.
26958         (test_locale_name_thread): New function.
26959         (main): Invoke it.
26960
26961         localename: Make aware of thread locale.
26962         * lib/localename.h (gl_locale_name_thread): New declaration.
26963         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
26964         behaviour with respect to thread locale.
26965         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
26966         <langinfo.h>, glthread/lock.h.
26967         (SIZE_BITS): New macro.
26968         (string_hash): New function.
26969         (struct hash_node): New type.
26970         (HASH_TABLE_SIZE): New macro.
26971         (struniq_hash_table, struniq_lock): New variables.
26972         (struniq): New function.
26973         (gl_locale_name_thread): New function.
26974         (gl_locale_name): Invoke it.
26975         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
26976         * modules/localename (Depends-on): Add lock.
26977         Reported by Mike Gran <spk121@yahoo.com>.
26978
26979 2009-12-23  Eric Blake  <ebb9@byu.net>
26980
26981         va-args: new module
26982         * modules/va-args: New file.
26983         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
26984         * MODULES.html.sh (Core language properties): Mention it.
26985
26986         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
26987         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
26988         named alias for __attribute__((__unused__)).
26989         * lib/chown.c: Update client.
26990         * lib/fchmodat.c: Likewise.
26991         * lib/fts.c: Likewise.
26992         * lib/getdate.y: Likewise.
26993         * lib/getgroups.c: Likewise.
26994         * lib/getopt.c: Likewise.
26995         * lib/getugroups.c: Likewise.
26996         * lib/mkdir.c: Likewise.
26997         * lib/mkfifo.c: Likewise.
26998         * lib/mkfifoat.c: Likewise.
26999         * lib/mknod.c: Likewise.
27000         * lib/mknodat.c: Likewise.
27001         * lib/readlink.c: Likewise.
27002         * lib/se-context.in.h: Likewise.
27003         * lib/se-selinux.in.h: Likewise.
27004         * lib/sockets.c: Likewise.
27005         * lib/symlink.c: Likewise.
27006         * lib/symlinkat.c: Likewise.
27007         * lib/unicodeio.c: Likewise.
27008         * lib/unistr.h: Likewise.
27009         * tests/test-areadlink.c: Likewise.
27010         * tests/test-areadlinkat.c: Likewise.
27011         * tests/test-filenamecat.c: Likewise.
27012         * tests/test-fseeko.c: Likewise.
27013         * tests/test-ftello.c: Likewise.
27014         * tests/test-getdate.c: Likewise.
27015         * tests/test-getgroups.c: Likewise.
27016         * tests/test-gethostname.c: Likewise.
27017         * tests/test-quotearg.c: Likewise.
27018         * tests/test-version-etc.c: Likewise.
27019         * tests/test-xalloc-die.c: Likewise.
27020         * tests/test-xfprintf-posix.c: Likewise.
27021         * tests/test-xprintf-posix.c: Likewise.
27022         * tests/test-xvasprintf.c: Likewise.
27023
27024         tests: avoid compiler warnings
27025         * tests/test-fcntl.c (main): Delete unused parameters.
27026         * tests/test-freopen-safer.c (main): Likewise.
27027         * tests/test-xalloc-die.c (main): Mark unused parameters.
27028         * tests/test-fseeko.c (main): Likewise.
27029         * tests/test-ftello.c (main): Likewise.
27030         * tests/test-nanosleep.c (main): Avoid declaration warning.
27031         * tests/test-sleep.c (main): Likewise.
27032         * tests/test-unsetenv.c (main): Silence warning about string
27033         literal.
27034         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
27035
27036 2009-12-23  Bruno Haible  <bruno@clisp.org>
27037
27038         * tests/test-localename.c (test_locale_name): New function, extracted
27039         from main. Also test mixed situations.
27040         (test_locale_name_posix, test_locale_name_environ,
27041         test_locale_name_default): New functions.
27042         (main): Invoke them all.
27043         * modules/localename-tests (configure.ac): Test for newlocale.
27044
27045 2009-12-23  Bruno Haible  <bruno@clisp.org>
27046
27047         unistd: Ensure getcwd gets declared before being overridden.
27048         * lib/unistd.in.h: Conditionally include <io.h>.
27049
27050 2009-12-22  Bruno Haible  <bruno@clisp.org>
27051
27052         wchar: Diagnose broken combination of glibc and gcc versions and flags.
27053         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
27054         (gl_WCHAR_H): Invoke it.
27055         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
27056         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
27057         Reported by Karl Berry <karl@freefriends.org>.
27058
27059 2009-12-22  Eric Blake  <ebb9@byu.net>
27060
27061         math, unistd: avoid redundant includes
27062         * lib/math.in.h (isnan): No need to re-include <math.h>.
27063         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
27064
27065         getsubopt: work around cygwin bug
27066         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
27067         avoid conflicting with system getsubopt.
27068         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
27069         bug.
27070
27071         getopt: synchronize from glibc
27072         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
27073         parameter order.  Adjust all callers.
27074         (_getopt_internal_r, main): Adjust quoting in error messages.
27075         Drop considerations for outdated POSIX 1003.2 error message.
27076         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
27077         callers.
27078         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
27079
27080         test-getopt: test stderr behavior
27081         * modules/getopt-posix-tests (Depends-on): Add dup2.
27082         * tests/test-getopt.c (ASSERT): Avoid stderr.
27083         (main): Move stderr to a temporary file.
27084         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
27085         Instead, add parameter to inform caller if output occurred.
27086         (test_getopt): Adjust all existing tests to expect silence, and
27087         add new tests of leading ":".
27088         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
27089         glibc shortcomings with leading "-:" or "+:" in optstring.
27090         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
27091         Likewise.
27092         * doc/posix-functions/getopt.texi (getopt): Likewise.
27093
27094         test-getopt: enhance test
27095         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
27096         supports optind=0.
27097         * tests/test-getopt.c (OPTIND_MIN): Move...
27098         * tests/test-getopt.h (OPTIND_MIN): ...here.
27099         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
27100         Require that optind=0 works, since modern BSD supports it in
27101         addition to optreset, and since coreutils expects it.
27102         (test_getopt_long_only): New test.
27103         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
27104         glibc shortcomings with 'W;', and enforcement of optind=0.
27105         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
27106         Likewise.
27107
27108 2009-12-21  Bruno Haible  <bruno@clisp.org>
27109
27110         localename: Improvements for MacOS X and Cygwin.
27111         * lib/localename.h (gl_locale_name_environ): New declaration.
27112         * lib/localename.c (gl_locale_name_environ): New function, extracted from
27113         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
27114         (gl_locale_name_posix): Invoke it.
27115         (gl_locale_name_default): Add comments. Use Windows native API also on
27116         Cygwin.
27117
27118 2009-12-21  Bruno Haible  <bruno@clisp.org>
27119
27120         Update list of Win32 locale ids.
27121         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
27122         (LANG_SAMI): Renamed from LANG_SAAMI.
27123         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
27124         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
27125         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
27126         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
27127         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
27128         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
27129         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
27130         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
27131         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
27132         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
27133         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
27134         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
27135         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
27136         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
27137         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
27138         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
27139         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
27140         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
27141         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
27142         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
27143         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
27144         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
27145         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
27146         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
27147         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
27148         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
27149         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
27150         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
27151         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
27152         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
27153         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
27154         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
27155         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
27156         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
27157         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
27158         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
27159         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
27160         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
27161         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
27162         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
27163         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
27164         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
27165         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
27166         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
27167         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
27168         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
27169         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
27170         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
27171         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
27172         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
27173         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
27174         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
27175         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
27176         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
27177         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
27178         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
27179         Add more languages and countries for Sami, Sorbian. Add more countries
27180         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
27181         for Pashto. Change country for Syriac, Tswana.
27182
27183 2009-12-21  Eric Blake  <ebb9@byu.net>
27184
27185         test-utimens: avoid spurious failure
27186         * tests/test-chown.h (nap): Factor...
27187         * tests/nap.h: ...into new file.
27188         * tests/test-lchown.h (nap): Avoid duplication.
27189         * tests/test-utimens-common.h (nap): Use shared implementation,
27190         necessary on file systems with 1-second resolution.
27191         * modules/chown-tests (Files): Include new file.
27192         * modules/fdutimensat-tests (Files): Likewise.
27193         * modules/futimens-tests (Files): Likewise.
27194         * modules/lchown-tests (Files): Likewise.
27195         * modules/openat-tests (Files): Likewise.
27196         * modules/utimens-tests (Files): Likewise.
27197         * modules/utimensat-tests (Files): Likewise.
27198
27199 2009-12-19  Eric Blake  <ebb9@byu.net>
27200
27201         futimens, utimensat: work around Linux bug
27202         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
27203         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
27204         * lib/utimensat.c (rpl_utimensat): Work around it.
27205         * lib/futimens.c (rpl_futimens): Adjust comment.
27206
27207         utimens: work around Linux ctime bug
27208         * lib/utimens.c (detect_ctime_bug): New helper function.
27209         (update_timespec): Differentiate between workaround needed for
27210         this bug vs. what is needed for systems that lack utimensat.
27211         (fdutimens, lutimens): Work around bug.
27212
27213         utimens: check for ctime update
27214         * tests/test-utimens-common.h (check_ctime): Define.
27215         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
27216         * tests/test-futimens.h (test_futimens): Likewise.
27217         * tests/test-lutimens.h (test_lutimens): Likewise.
27218         * doc/posix-functions/futimens.texi (futimens): Document the bug.
27219         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
27220
27221 2009-12-19  Bruno Haible  <bruno@clisp.org>
27222
27223         dprintf-posix: Check against memory leak fixed on 2009-12-15.
27224         * tests/test-dprintf-posix2.sh: New file.
27225         * tests/test-dprintf-posix2.c: New file.
27226         * modules/dprintf-posix-tests (Files): Add them.
27227         (configure.ac): Check for getrlimit and setrlimit.
27228         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
27229
27230 2009-12-19  Bruno Haible  <bruno@clisp.org>
27231
27232         fprintf-posix: Check against memory leak fixed on 2009-12-15.
27233         * tests/test-fprintf-posix3.sh: New file.
27234         * tests/test-fprintf-posix3.c: New file.
27235         * modules/fprintf-posix-tests (Files): Add them.
27236         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
27237
27238 2009-12-19  Eric Blake  <ebb9@byu.net>
27239
27240         dirfd: fix prototype
27241         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
27242         * lib/dirfd.c (dirfd): Likewise.
27243
27244         canonicalize: reduce memory usage
27245         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
27246         allocation to size.
27247         Reported by Solar Designer <solar@openwall.com>.
27248
27249 2009-12-19  Bruno Haible  <bruno@clisp.org>
27250
27251         New module attribute 'Applicability'.
27252         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
27253         * gnulib-tool: New option --extract-applicability.
27254         (func_usage): Document it.
27255         (sed_extract_prog): Recognize it.
27256         (func_get_applicability): New function.
27257         (func_import): Generalize handling of 'link-warning' module.
27258         * modules/link-warning (Applicability): New section.
27259         * modules/arg-nonnull (Applicability): New section.
27260         Repoted by Simon Josefsson <simon@josefsson.org>.
27261
27262 2009-12-19  Bruno Haible  <bruno@clisp.org>
27263
27264         fflush: tweak
27265         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
27266         * lib/fseeko.c (rpl_fseeko): Likewise.
27267
27268 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
27269
27270         * lib/gl_list.h: Fix typo in comment.
27271
27272 2009-12-16  Eric Blake  <ebb9@byu.net>
27273
27274         fcntl: use to simplify other modules
27275         * modules/cloexec (Depends-on): Add fcntl.
27276         * modules/fchdir (Depends-on): Likewise.
27277         * modules/fd-safer-flag (Depends-on): Likewise.
27278         * modules/unistd-safer (Depends-on): Likewise.
27279         * modules/dup3 (configure.ac): Set module indicator.
27280         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
27281         missing.
27282         * lib/fchdir.c (_gl_register_dup): Fix comment.
27283         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
27284         * lib/dup-safer.c (dup_safer): Likewise.
27285         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
27286         * lib/dup3.c (dup3): Likewise.
27287         * tests/test-fchdir.c (main): Enhance test.
27288         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
27289
27290         fcntl: port portions of fcntl to mingw
27291         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
27292         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
27293         replacement for mingw.
27294         * modules/fcntl (Description): Update.
27295         (Depends-on): Add dup2.
27296         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
27297         * modules/fcntl-h (Makefile.am): Substitute it.
27298         * lib/fcntl.in.h (fcntl): Update declaration.
27299         (F_DUPFD, F_GETFD): New macros, when needed.
27300         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
27301         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
27302         * tests/test-fcntl.c (check_flags, main): Enhance test for items
27303         we now guarantee.
27304
27305         fcntl: work around cygwin bug in F_DUPFD
27306         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
27307         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
27308         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
27309         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
27310         * doc/posix-functions/fcntl.texi (fcntl): Document it.
27311
27312         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
27313         * modules/fcntl (Files): List new files.
27314         (configure.ac): Run a test.
27315         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
27316         * lib/fcntl.c (rpl_fcntl): Likewise.
27317         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
27318         (gl_FCNTL_H): Always replace fcntl.h.
27319         * modules/fcntl-h (Makefile.am): Substitute witnesses.
27320         * lib/fcntl.in.h (fcntl): Declare replacement.
27321         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
27322         needed, plus a witness.
27323         * doc/posix-functions/fcntl.texi (fcntl): Document this.
27324         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
27325         * tests/test-fcntl.c: New file.
27326         * modules/fcntl-tests: Likewise.
27327
27328         binary-io: avoid potential compilation warning
27329         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
27330         directives.
27331
27332         fflush: avoid compilation error on NetBSD
27333         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
27334         between off_t and fpos_t, since the latter is sometimes a struct.
27335         * lib/fseeko.c (rpl_fseeko): Likewise.
27336         Reported by Alexander Nasonov <alnsn@yandex.ru>.
27337
27338 2009-12-15  Eric Blake  <ebb9@byu.net>
27339
27340         fcntl-h, stdio, sys_ioctl: fix declarations
27341         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
27342         function must not take arguments.
27343         * lib/sys_ioctl.in.h (ioctl): Likewise.
27344         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
27345         (open): Add a link warning.
27346
27347 2009-12-15  Jim Meyering  <meyering@redhat.com>
27348
27349         areadlink, areadlink-with-size: relax license to LGPLv2+
27350         * modules/areadlink (License): Relax to LGPLv2+.
27351         * modules/areadlink-with-size (License): Likewise.
27352
27353 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
27354             Bruno Haible  <bruno@clisp.org>
27355
27356         *printf: Fix memory leak.
27357         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
27358         * lib/vfprintf.c (vfprintf): Likewise.
27359         * lib/dprintf.c (dprintf): Likewise.
27360         * lib/vdprintf.c (vdprintf): Likewise.
27361
27362 2009-12-14  Eric Blake  <ebb9@byu.net>
27363
27364         accept4: adjust module dependencies
27365         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
27366
27367         utimens: one more try at avoiding compiler warning
27368         * lib/utimens.c (lutimens): Lower scope of result.
27369
27370 2009-12-13  Bruno Haible  <bruno@clisp.org>
27371
27372         Move the malloc checking from module 'list' to new module 'xlist'.
27373         * modules/xlist: New file.
27374         * lib/gl_xlist.h: New file.
27375         * lib/gl_xlist.c: New file.
27376         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
27377         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
27378         gl_list_add_last, gl_list_add_before, gl_list_add_after,
27379         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
27380         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
27381         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
27382         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
27383         gl_sortedlist_nx_add): New declarations.
27384         (struct gl_list_implementation): Rename and change methods accordingly.
27385         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
27386         (gl_list_nx_create): Renamed from gl_list_create.
27387         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
27388         (gl_list_nx_set_at): Renamed from gl_list_set_at.
27389         (gl_list_nx_add_first): Renamed from gl_list_add_first.
27390         (gl_list_nx_add_last): Renamed from gl_list_add_last.
27391         (gl_list_nx_add_before): Renamed from gl_list_add_before.
27392         (gl_list_nx_add_after): Renamed from gl_list_add_after.
27393         (gl_list_nx_add_at): Renamed from gl_list_add_at.
27394         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
27395         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
27396         gl_list_create_empty.
27397         (gl_list_nx_create): Renamed from gl_list_create.
27398         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
27399         (gl_list_nx_set_at): Renamed from gl_list_set_at.
27400         (gl_list_nx_add_first): Renamed from gl_list_add_first.
27401         (gl_list_nx_add_last): Renamed from gl_list_add_last.
27402         (gl_list_nx_add_before): Renamed from gl_list_add_before.
27403         (gl_list_nx_add_after): Renamed from gl_list_add_after.
27404         (gl_list_nx_add_at): Renamed from gl_list_add_at.
27405         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
27406         * lib/gl_array_list.c: Don't include xalloc.h.
27407         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
27408         NULL upon out-of-memory.
27409         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
27410         out-of-memory.
27411         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
27412         Change return type to 'int'.
27413         (gl_array_nx_set_at): Renamed from gl_array_set_at.
27414         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
27415         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
27416         upon out-of-memory.
27417         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
27418         upon out-of-memory.
27419         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
27420         upon out-of-memory.
27421         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
27422         upon out-of-memory.
27423         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
27424         out-of-memory.
27425         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
27426         Update.
27427         (gl_array_list_implementation): Update.
27428         * lib/gl_carray_list.c: Don't include xalloc.h.
27429         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
27430         Return NULL upon out-of-memory.
27431         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
27432         out-of-memory.
27433         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
27434         Change return type to 'int'.
27435         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
27436         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
27437         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
27438         upon out-of-memory.
27439         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
27440         upon out-of-memory.
27441         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
27442         out-of-memory.
27443         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
27444         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
27445         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
27446         Update.
27447         (gl_carray_list_implementation): Update.
27448         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
27449         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
27450         gl_linked_create_empty. Return NULL upon out-of-memory.
27451         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
27452         out-of-memory.
27453         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
27454         Change return type to 'int'. Return -1 upon out-of-memory.
27455         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
27456         out-of-memory.
27457         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
27458         upon out-of-memory.
27459         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
27460         upon out-of-memory.
27461         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
27462         NULL upon out-of-memory.
27463         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
27464         upon out-of-memory.
27465         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
27466         out-of-memory.
27467         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
27468         Update.
27469         * lib/gl_linked_list.c: Don't include xalloc.h.
27470         (gl_linked_list_implementation): Update.
27471         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
27472         (add_to_bucket): Change return type to 'int'.
27473         (gl_linkedhash_list_implementation): Update.
27474         * lib/gl_anytree_list1.h (free_subtree): New function.
27475         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
27476         gl_tree_create_empty. Return NULL upon out-of-memory.
27477         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
27478         Change return type to 'int'. Return -1 upon out-of-memory.
27479         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
27480         out-of-memory.
27481         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
27482         (gl_tree_remove_node): New function, moved here from
27483         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
27484         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
27485         Update.
27486         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
27487         malloc, not xmalloc. Return NULL upon out-of-memory.
27488         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
27489         out-of-memory.
27490         (gl_tree_remove_node_from_tree): New function, extracted from
27491         gl_tree_remove_node.
27492         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
27493         upon out-of-memory.
27494         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
27495         out-of-memory.
27496         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
27497         upon out-of-memory.
27498         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
27499         upon out-of-memory.
27500         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
27501         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
27502         not xmalloc. Return NULL upon out-of-memory.
27503         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
27504         out-of-memory.
27505         (gl_tree_remove_node_from_tree): New function, extracted from
27506         gl_tree_remove_node.
27507         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
27508         upon out-of-memory.
27509         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
27510         out-of-memory.
27511         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
27512         upon out-of-memory.
27513         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
27514         upon out-of-memory.
27515         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
27516         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
27517         gl_anytree_list1.h before gl_anyavltree_list2.h.
27518         (gl_avltree_list_implementation): Update.
27519         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
27520         gl_anytree_list1.h before gl_anyavltree_list2.h.
27521         (gl_rbtree_list_implementation): Update.
27522         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
27523         Change return type to 'int'. Return -1 upon out-of-memory. Use
27524         __builtin_expect.
27525         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
27526         (gl_avltreehash_list_implementation): Update.
27527         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
27528         (gl_rbtreehash_list_implementation): Update.
27529         * modules/array-list (Depends-on): Remove xalloc.
27530         * modules/carray-list (Depends-on): Likewise.
27531         * modules/linked-list (Depends-on): Likewise.
27532         * modules/linkedhash-list (Depends-on): Likewise.
27533         * modules/avltree-list (Depends-on): Likewise.
27534         * modules/rbtree-list (Depends-on): Likewise.
27535         * modules/avltreehash-list (Depends-on): Likewise.
27536         * modules/rbtreehash-list (Depends-on): Likewise.
27537
27538         * modules/xsublist: New file.
27539         * lib/gl_xsublist.h: New file.
27540         * lib/gl_xsublist.c: New file.
27541         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
27542         (gl_sublist_nx_create): New declaration.
27543         * lib/gl_sublist.c: Don't include xalloc.h.
27544         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
27545         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
27546         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
27547         Change return type to 'int'. Return -1 upon out-of-memory.
27548         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
27549         upon out-of-memory.
27550         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
27551         NULL upon out-of-memory.
27552         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
27553         upon out-of-memory.
27554         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
27555         NULL upon out-of-memory.
27556         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
27557         NULL upon out-of-memory.
27558         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
27559         upon out-of-memory.
27560         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
27561         (gl_sublist_list_implementation): Update.
27562         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
27563         upon out-of-memory.
27564         * modules/sublist (Depends-on): Remove xalloc.
27565
27566         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
27567         * tests/test-carray_list.c: Likewise.
27568         * tests/test-linked_list.c: Likewise.
27569         * tests/test-linkedhash_list.c: Likewise.
27570         * tests/test-avltree_list.c: Likewise.
27571         * tests/test-rbtree_list.c: Likewise.
27572         * tests/test-avltreehash_list.c: Likewise.
27573         * tests/test-rbtreehash_list.c: Likewise.
27574         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
27575         * modules/carray-list-tests (Makefile.am): Likewise.
27576         * modules/linked-list-tests (Makefile.am): Likewise.
27577         * modules/linkedhash-list-tests (Makefile.am): Likewise.
27578         * modules/avltree-list-tests (Makefile.am): Likewise.
27579         * modules/rbtree-list-tests (Makefile.am): Likewise.
27580         * modules/avltreehash-list-tests (Makefile.am): Likewise.
27581         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
27582
27583         * NEWS: Mention the changes.
27584
27585         * lib/clean-temp.c: Include gl_xlist.h.
27586         * modules/clean-temp (Depends-on): Add xlist.
27587
27588         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
27589         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
27590
27591         * tests/test-array_oset.c: Include gl_xlist.h.
27592         * modules/array-oset-tests (Depends-on): Add xlist.
27593
27594         Reported by José E. Marchesi <jemarch@gnu.org>.
27595
27596 2009-12-13  Bruno Haible  <bruno@clisp.org>
27597
27598         Move the malloc checking from module 'oset' to new module 'xoset'.
27599         * modules/xoset: New file.
27600         * lib/gl_xoset.h: New file.
27601         * lib/gl_xoset.c: New file.
27602         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
27603         declarations.
27604         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
27605         (struct gl_oset_implementation): Rename and change methods accordingly.
27606         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
27607         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
27608         'int'. Mark as __warn_unused_result__.
27609         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
27610         gl_oset_create_empty.
27611         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
27612         'int'.
27613         * lib/gl_array_oset.c: Don't include xalloc.h.
27614         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
27615         malloc, not xmalloc.
27616         (grow): Change return type to 'int'. Don't call xalloc_die.
27617         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
27618         to 'int'.
27619         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
27620         'int'.
27621         (gl_array_oset_implementation): Update.
27622         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
27623         gl_tree_create_empty.
27624         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
27625         'int'.
27626         * lib/gl_avltree_oset.c: Don't include xalloc.h.
27627         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
27628         xmalloc.
27629         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
27630         not xmalloc.
27631         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
27632         xmalloc.
27633         (gl_avltree_oset_implementation): Update.
27634         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
27635         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
27636         xmalloc.
27637         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
27638         not xmalloc.
27639         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
27640         xmalloc.
27641         (gl_rbtree_oset_implementation): Update.
27642         * modules/array-oset (Depends-on): Remove xalloc.
27643         * modules/avltree-oset (Depends-on): Likewise.
27644         * modules/rbtree-oset (Depends-on): Likewise.
27645         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
27646         * tests/test-avltree_oset.c: Likewise.
27647         * tests/test-rbtree_oset.c: Likewise.
27648         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
27649         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
27650         * modules/rbtree-oset-tests (Makefile.am): Likewise.
27651         * NEWS: Mention the change.
27652
27653 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
27654
27655         maint.mk: allow a project to override release-prep commands
27656         * top/maint.mk (alpha, beta, stable): Move release-preparatory
27657         commands into a new rule.
27658         (release-prep): New rule.
27659         (release-prep-hook): New overridable variable.
27660
27661 2009-12-13  Bruno Haible  <bruno@clisp.org>
27662
27663         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
27664
27665 2009-12-13  Jim Meyering  <meyering@redhat.com>
27666
27667         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
27668         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
27669
27670 2009-12-12  Bruno Haible  <bruno@clisp.org>
27671
27672         duplocale: Tweak.
27673         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
27674
27675 2009-12-12  Karl Berry  <karl@gnu.org>
27676
27677         * config/srclist.txt (strtoll.c): tab changes, no more sync.
27678
27679 2009-12-12  Bruno Haible  <bruno@clisp.org>
27680
27681         * m4/po.m4: Undo incorrect untabification.
27682
27683 2009-12-12  Bruno Haible  <bruno@clisp.org>
27684
27685         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
27686         * modules/c-strtod (Depends-on): Add locale.
27687         * modules/c-strtold (Depends-on): Likewise.
27688
27689 2009-12-12  Bruno Haible  <bruno@clisp.org>
27690
27691         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
27692
27693 2009-12-11  Eric Blake  <ebb9@byu.net>
27694
27695         setenv: relax requirement in light of POSIX ruling
27696         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
27697         not NULL.
27698         * tests/test-setenv.c (main): Relax test.
27699         * tests/test-unsetenv.c (main): Likewise.
27700         * doc/posix-functions/setenv.texi (setenv): Document this.
27701         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
27702
27703 2009-12-11  Bruno Haible  <bruno@clisp.org>
27704
27705         New module 'fd-safer-flag'.
27706         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
27707         * lib/dup-safer.c (dup_safer_flag): Remove function.
27708         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
27709         * lib/fd-safer.c (fd_safer_flag): Remove function.
27710         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
27711         * modules/cloexec (configure.ac): Drop indicator macro.
27712         * modules/fd-safer-flag: New file.
27713         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
27714         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
27715         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
27716
27717 2009-12-11  Bruno Haible  <bruno@clisp.org>
27718
27719         Tests for module 'nl_langinfo'.
27720         * modules/nl_langinfo-tests: New file.
27721         * tests/test-nl_langinfo.sh: New file.
27722         * tests/test-nl_langinfo.c: New file.
27723
27724         New module 'nl_langinfo'.
27725         * lib/nl_langinfo.c: New file.
27726         * m4/nl_langinfo.m4: New file.
27727         * modules/nl_langinfo: New file.
27728         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
27729
27730 2009-12-11  Bruno Haible  <bruno@clisp.org>
27731
27732         Tests for module 'langinfo'.
27733         * modules/langinfo-tests: New file.
27734         * tests/test-langinfo.c: New file.
27735
27736         New module 'langinfo'.
27737         * lib/langinfo.in.h: New file.
27738         * m4/langinfo_h.m4: New file.
27739         * modules/langinfo: New file.
27740         * doc/posix-headers/langinfo.texi: Mention the new module.
27741
27742 2009-12-11  Bruno Haible  <bruno@clisp.org>
27743
27744         * lib/config.charset: Untabify.
27745
27746 2009-12-11  Bruno Haible  <bruno@clisp.org>
27747
27748         * modules/unistd-safer (configure.ac): Drop indicator macro.
27749
27750 2009-12-11  Bruno Haible  <bruno@clisp.org>
27751
27752         Move pipe2-safer code to its own file.
27753         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
27754         * lib/pipe-safer.c (pipe2_safer): Remove function.
27755         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
27756         (Makefile.am): Add it to lib_SOURCES.
27757
27758 2009-12-10  Bruno Haible  <bruno@clisp.org>
27759
27760         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
27761
27762 2009-12-10  Bruno Haible  <bruno@clisp.org>
27763
27764         Declare which arguments expect non-NULL values, for GCC and clang.
27765         * build-aux/arg-nonnull.h: New file.
27766         * modules/arg-nonnull: New file.
27767         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
27768         (inet_ntop, inet_pton): Use it.
27769         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
27770         (closedir, dirfd, opendir, scandir, alphasort): Use it.
27771         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
27772         (open, openat): Use it.
27773         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
27774         (fnmatch): Use it.
27775         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
27776         (getopt, getopt_long, getopt_long_only): Use it.
27777         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
27778         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
27779         Use it.
27780         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
27781         (iconv_open): Use it.
27782         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
27783         (strtoimax, strtoumax): Use it.
27784         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
27785         (duplocale): Use it.
27786         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
27787         (frexp, frexpl): Use it.
27788         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
27789         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
27790         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
27791         (tsearch, tfind, tdelete, twalk): Use it.
27792         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
27793         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
27794         sigpending): Use it.
27795         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
27796         (posix_spawn, posix_spawnp, posix_spawnattr_init,
27797         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
27798         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
27799         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
27800         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
27801         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
27802         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
27803         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
27804         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
27805         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
27806         Use it.
27807         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
27808         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
27809         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
27810         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
27811         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
27812         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
27813         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
27814         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
27815         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
27816         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
27817         strtoull, unsetenv): Use it.
27818         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
27819         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
27820         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
27821         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
27822         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
27823         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
27824         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
27825         (strcasecmp, strncasecmp): Use it.
27826         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
27827         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
27828         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
27829         rpl_setsockopt): Use it.
27830         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
27831         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
27832         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
27833         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
27834         (gettimeofday): Use it.
27835         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
27836         (times): Use it.
27837         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
27838         (uname): Use it.
27839         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
27840         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
27841         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
27842         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
27843         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
27844         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
27845         unlinkat, write): Use it.
27846         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
27847         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
27848         * lib/argv-iter.h: Include arg-nonnull.h.
27849         (_ATTRIBUTE_NONNULL_): Remove macro.
27850         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
27851         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
27852         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
27853         optimization.
27854         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
27855         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
27856         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
27857         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
27858         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
27859         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
27860         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
27861         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
27862         * modules/arpa_inet (Depends-on): Add arg-nonnull.
27863         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
27864         * modules/dirent (Depends-on): Add arg-nonnull.
27865         (Makefile.am): Insert arg-nonnull.h into dirent.h.
27866         * modules/fcntl-h (Depends-on): Add arg-nonnull.
27867         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
27868         * modules/fnmatch (Depends-on): Add arg-nonnull.
27869         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
27870         * modules/getopt-posix (Depends-on): Add arg-nonnull.
27871         (Makefile.am): Insert arg-nonnull.h into getopt.h.
27872         * modules/glob (Depends-on): Add arg-nonnull.
27873         (Makefile.am): Insert arg-nonnull.h into glob.h.
27874         * modules/iconv_open (Depends-on): Add arg-nonnull.
27875         (Makefile.am): Insert arg-nonnull.h into iconv.h.
27876         * modules/inttypes (Depends-on): Add arg-nonnull.
27877         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
27878         * modules/locale (Depends-on): Add arg-nonnull.
27879         (Makefile.am): Insert arg-nonnull.h into locale.h.
27880         * modules/math (Depends-on): Add arg-nonnull.
27881         (Makefile.am): Insert arg-nonnull.h into math.h.
27882         * modules/netdb (Depends-on): Add arg-nonnull.
27883         (Makefile.am): Insert arg-nonnull.h into netdb.h.
27884         * modules/search (Depends-on): Add arg-nonnull.
27885         (Makefile.am): Insert arg-nonnull.h into search.h.
27886         * modules/signal (Depends-on): Add arg-nonnull.
27887         (Makefile.am): Insert arg-nonnull.h into signal.h.
27888         * modules/spawn (Depends-on): Add arg-nonnull.
27889         (Makefile.am): Insert arg-nonnull.h into spawn.h.
27890         * modules/stdio (Depends-on): Add arg-nonnull.
27891         (Makefile.am): Insert arg-nonnull.h into stdio.h.
27892         * modules/stdlib (Depends-on): Add arg-nonnull.
27893         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
27894         * modules/string (Depends-on): Add arg-nonnull.
27895         (Makefile.am): Insert arg-nonnull.h into string.h.
27896         * modules/strings (Depends-on): Add arg-nonnull.
27897         (Makefile.am): Insert arg-nonnull.h into strings.h.
27898         * modules/sys_socket (Depends-on): Add arg-nonnull.
27899         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
27900         * modules/sys_stat (Depends-on): Add arg-nonnull.
27901         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
27902         * modules/sys_time (Depends-on): Add arg-nonnull.
27903         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
27904         * modules/sys_times (Depends-on): Add arg-nonnull.
27905         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
27906         * modules/sys_utsname (Depends-on): Add arg-nonnull.
27907         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
27908         * modules/time (Depends-on): Add arg-nonnull.
27909         (Makefile.am): Insert arg-nonnull.h into time.h.
27910         * modules/unistd (Depends-on): Add arg-nonnull.
27911         (Makefile.am): Insert arg-nonnull.h into unistd.h.
27912         * modules/wchar (Depends-on): Add arg-nonnull.
27913         (Makefile.am): Insert arg-nonnull.h into wchar.h.
27914         * modules/argv-iter (Depends-on): Add arg-nonnull.
27915         * tests/test-canonicalize.c (null_ptr): New function.
27916         (main): Use it.
27917         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
27918         (main): Use it.
27919         * tests/test-memmem.c (null_ptr): New function.
27920         (main): Use it.
27921         Reported by Jim Meyering.
27922
27923 2009-12-10  Bruno Haible  <bruno@clisp.org>
27924
27925         Use spaces for indentation, not tabs.
27926         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
27927         * m4/*.m4: Untabify.
27928         * build-aux/*.h: Untabify.
27929         * tests/**/*.[hc]: Untabify.
27930         * README: New section "Indent with spaces, not TABs", based on
27931         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
27932         * NEWS: Mention the change.
27933
27934 2009-12-10  Bruno Haible  <bruno@clisp.org>
27935
27936         pty test: Fix link error.
27937         * modules/pty-tests (Makefile.am): Add the default LDADD value to
27938         test_pty_LDADD.
27939
27940 2009-12-07  Simon Josefsson  <simon@josefsson.org>
27941
27942         * modules/pty: New file.
27943         * modules/pty-tests: New file.
27944         * m4/pty.m4: New file.
27945         * tests/test-pty.c: New file.
27946         * doc/glibc-headers/pty.texi: Modified.
27947         * doc/glibc-functions/forkpty.texi: Modified.
27948         * doc/glibc-functions/openpty.texi: Modified.
27949
27950 2009-12-10  Bruno Haible  <bruno@clisp.org>
27951
27952         Avoid syntax error in C++ mode.
27953         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
27954
27955 2009-12-10  Bruno Haible  <bruno@clisp.org>
27956
27957         Use sed with option -e.
27958         * gnulib-tool (func_version, func_emit_copyright_notice,
27959         func_emit_initmacro_end, func_import, func_create_testdir): Pass
27960         option -e to sed.
27961         * modules/link-warning (Makefile.am): Likewise.
27962
27963 2009-12-10  Jim Meyering  <meyering@redhat.com>
27964
27965         mgetgroups: do not write bytes beyond end of malloc'd buffer
27966         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
27967         username, we call getgroups with a one-element-shorter buffer,
27968         but still told it the length was original, max_n_groups.
27969
27970 2009-12-09  Eric Blake  <ebb9@byu.net>
27971
27972         cloexec: relax license
27973         * modules/cloexec (Maintainer): Add myself.
27974         (License): Use LGPL, not GPL.
27975
27976         link-warning: optimize generation
27977         * modules/link-warning (Makefile.am): Reduce process usage.
27978
27979 2009-12-09  Bruno Haible  <bruno@clisp.org>
27980
27981         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
27982         workaround was added on 2009-11-17.
27983
27984 2009-12-09  Jim Meyering  <meyering@redhat.com>
27985             Bruno Haible  <bruno@clisp.org>
27986
27987         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
27988         * modules/link-warning (Makefile.am): Make the comment-removing sed
27989         command more robust in the face of bootstrap-prepended comment lines.
27990
27991 2009-12-09  Bruno Haible  <bruno@clisp.org>
27992
27993         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
27994         most one group.
27995
27996 2009-12-09  Simon Josefsson <simon@josefsson.org>
27997             Bruno Haible  <bruno@clisp.org>
27998
27999         * build-aux/link-warning.h: Add copyright notice.
28000         * modules/link-warning (Makefile.am): Generate link-warning.h from
28001         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
28002         * NEWS: Mention change in link-warning module.
28003         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
28004         * modules/dirent (Makefile.am): Add dependency to dirent.h.
28005         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
28006         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
28007         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
28008         * modules/math (Makefile.am): Add dependency to math.h.
28009         * modules/search (Makefile.am): Add dependency to search.h.
28010         * modules/signal (Makefile.am): Add dependency to signal.h.
28011         * modules/spawn (Makefile.am): Add dependency to spawn.h.
28012         * modules/stdio (Makefile.am): Add dependency to stdio.h.
28013         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
28014         * modules/string (Makefile.am): Add dependency to string.h.
28015         * modules/strings (Makefile.am): Add dependency to strings.h.
28016         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
28017         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
28018         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
28019         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
28020         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
28021         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
28022         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
28023         * modules/unistd (Makefile.am): Add dependency to unistd.h.
28024         * modules/wchar (Makefile.am): Add dependency to wchar.h.
28025
28026 2009-12-09  Bruno Haible  <bruno@clisp.org>
28027
28028         fchdir: Optimize away rpl_fstat when possible.
28029         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
28030         REPLACE_OPEN_DIRECTORY.
28031         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
28032
28033 2009-12-09  Bruno Haible  <bruno@clisp.org>
28034
28035         * lib/fchdir.c: Update comment.
28036
28037 2009-12-09  Bruno Haible  <bruno@clisp.org>
28038
28039         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
28040
28041 2009-12-08  Eric Blake  <ebb9@byu.net>
28042
28043         fchdir: avoid memory leak on re-registration.
28044         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
28045
28046 2009-12-08  Jim Meyering  <meyering@redhat.com>
28047
28048         init.sh: avoid Solaris 10 /bin/sh portability problem
28049         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
28050         sourced script:
28051           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
28052           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
28053           bar
28054         tests/init.sh relied on that, accepting a --set-path=DIR argument,
28055         and two tests used that idiom.
28056         * tests/init.sh: Update suggested usage comments.
28057         (path_prepend_): New function, to be used in place
28058         of the --src-path=DIR option.
28059         (setup_): Move PATH-prepending code into path_prepend_.
28060         * tests/test-pread.sh: Adapt to new usage.
28061         * tests/test-xalloc-die.sh: Likewise.
28062
28063 2009-12-08  Simon Josefsson  <simon@josefsson.org>
28064
28065         * doc/gnulib.texi (Glibc pty.h): Add.
28066         * doc/glibc-functions/forkpty.texi: Add.
28067         * doc/glibc-functions/openpty.texi: Add.
28068         Suggested by Bruno Haible.
28069
28070 2009-12-08  Eric Blake  <ebb9@byu.net>
28071
28072         fchdir: fix logic bugs
28073         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
28074         * tests/test-fchdir.c (main): Enhance test.
28075         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
28076         is in use.
28077
28078         dup2: fix logic bugs
28079         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
28080         REPLACE_DUP2 to decide when rpl_dup2 is needed.
28081         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
28082         exists.
28083         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
28084
28085 2009-12-07  Eric Blake  <ebb9@byu.net>
28086
28087         unlink: fix m4 detection
28088         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
28089
28090         unistd-safer: add unit test
28091         * modules/unistd-safer-tests: New file.
28092         * tests/test-dup-safer.c: Likewise.
28093         * tests/test-cloexec.c (setmode): Avoid compiler warning.
28094         * tests/test-dup2.c (setmode): Likewise.
28095         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
28096
28097         cloexec: preserve text vs. binary across dup_cloexec
28098         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
28099         mode.
28100         * modules/dup2-tests (Depends-on): Add binary-io.
28101         * modules/cloexec-tests (Depends-on): Likewise.
28102         * tests/test-dup2.c (setmode, is_mode): New helpers.
28103         (main): Add tests that translation mode is preserved.
28104         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
28105         Reported by Bruno Haible.
28106
28107         mgetgroups: reduce duplicate listings
28108         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
28109         resulting array.
28110         * tests/test-chown.h (test_chown): Simplify client.
28111         * tests/test-lchown.h (test_lchown): Likewise.
28112
28113 2009-12-06  Bruno Haible  <bruno@clisp.org>
28114
28115         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
28116         value.
28117
28118 2009-12-06  Bruno Haible  <bruno@clisp.org>
28119
28120         * lib/progname.c: Include stdio.h, stdlib.h.
28121         (set_program_name): Reject a NULL argument.
28122
28123 2009-12-05  Eric Blake  <ebb9@byu.net>
28124
28125         pipe2-safer: new module
28126         * modules/pipe2-safer: New file.
28127         * lib/unistd-safer.h (pipe2_safer): New prototype.
28128         * lib/unistd--.h (pipe2): New wrapper.
28129         * lib/pipe-safer.c (pipe2_safer): New function.
28130         * modules/pipe (Depends-on): Add pipe2-safer.
28131         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
28132
28133         stdlib-safer: preserve cloexec flag for mkostemp[s]
28134         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
28135         fd_safer_flag.
28136
28137         unistd-safer: allow preservation of cloexec status via flag
28138         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
28139         prototypes.
28140         * lib/dup-safer.c (dup_safer_flag): New function.
28141         * lib/fd-safer.c (fd_safer_flag): Likewise.
28142         * modules/cloexec (configure.ac): Set witness.
28143
28144         test-dup2: enhance test
28145         * modules/dup2-tests (Depends-on): Add cloexec.
28146         * tests/test-dup2.c (main): Enhance test.
28147
28148         cloexec: add dup_cloexec
28149         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
28150         header and comments.
28151         * lib/cloexec.c (set_cloexec_flag): Add comments.
28152         (dup_cloexec): New function, with mingw implementation borrowed
28153         from...
28154         * lib/w32spawn.h (dup_noinherit): ...here.
28155         * modules/execute (Depends-on): Add cloexec.
28156         * modules/pipe (Depends-on): Likewise.
28157         * modules/cloexec (Depends-on): Add dup2.
28158         * modules/cloexec-tests (Files): New file.
28159         * tests/test-cloexec.c: Likewise.
28160
28161         test-xalloc-die: fix test for mingw
28162         * modules/xalloc-die-tests (Files): Add tests/init.sh.
28163         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
28164         directory and .exe suffix off argv[0] output.
28165
28166         test-fseeko: fix test for mingw
28167         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
28168         than undefining fseek, so test will pass on mingw.
28169
28170 2009-12-05  Bruno Haible  <bruno@clisp.org>
28171
28172         * lib/progname.h (set_program_name): Clarify specification.
28173         * lib/progname.c (set_program_name): Likewise.
28174         Reported by Jim Meyering.
28175
28176 2009-12-05  Jim Meyering  <meyering@redhat.com>
28177
28178         maint.mk: backslash-escape parens in default regexp
28179         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
28180         backslash-escape the literal parentheses.
28181
28182         maint.mk: news-date-check: use grep -E
28183         * top/maint.mk (today): Define a Make variable, not a...
28184         (news-date-check): ...shell variable.
28185         (news-date-regexp): Use the Make variable.
28186         Use grep's -E option.  Change the failing diagnostic to mention
28187         the variable, $(news-date-regexp).
28188
28189 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
28190
28191         maintainer-makefile: allow customization of NEWS entry format
28192         * top/maint.mk (news-date-regexp): New overridable variable.
28193         (news-date-check): Use it.
28194
28195 2009-12-04  Eric Blake  <ebb9@byu.net>
28196
28197         mgetgroups: add xgetgroups, and avoid ENOSYS failures
28198         * lib/mgetgroups.h (xgetgroups): New prototype.
28199         * lib/mgetgroups.c (xgetgroups): New wrapper.
28200         (mgetgroups): Handle ENOSYS.
28201         * modules/mgetgroups (Depends-on): Add realloc.
28202         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
28203
28204         mgetgroups: avoid argument promotion issues with -1
28205         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
28206         for invalid gid_t.
28207         * tests/test-chown.h (getegid, test_chown): Likewise.
28208         * tests/test-lchown.h (getegid, test_lchown): Likewise.
28209
28210 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
28211
28212         exclude: Fix header file problems.
28213         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
28214
28215 2009-12-01  Jim Meyering  <meyering@redhat.com>
28216
28217         fts: fts_open: do not let an empty string cause immediate failure
28218         This is required in support of GNU rm, for which the command
28219         "rm A '' B" must process and remove both A and B, in spite of
28220         the empty string argument.
28221         * lib/fts.c (fts_open): Do not let the presence of an empty string
28222         cause fts_open to fail immediately.  Most fts-using tools must be
28223         able to process all arguments, in order, and can be expected to
28224         diagnose such arguments themselves.
28225
28226 2009-11-30  Eric Blake  <ebb9@byu.net>
28227
28228         utimens: fix compilation error
28229         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
28230         Declare variable at right scope.
28231
28232 2009-11-29  Jim Meyering  <meyering@redhat.com>
28233
28234         bootstrap: handle perl-5.11's changed --version output
28235         * build-aux/bootstrap (get_version): Handle perl separately,
28236         since perl-5.11's --version output is different.
28237
28238 2009-11-28  Jim Meyering  <meyering@redhat.com>
28239
28240         userspec: depend on the inttostr module, too
28241         * modules/userspec (Depends-on): Add inttostr.
28242
28243         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
28244         * lib/userspec.c (parse_with_separator): Do not accept a user ID
28245         number of MAXUID when it evaluates to (uid_t) -1.
28246         Likewise for group ID.  Reported by Matt McCutchen in
28247         <http://savannah.gnu.org/bugs/?28113>
28248
28249         userspec: reformat to use spaces, not TABs
28250         * lib/userspec.c: Expand TABs to spaces.
28251         Add Emacs' "indent-tabs-mode: nil" hint.
28252
28253 2009-11-27  Eric Blake  <ebb9@byu.net>
28254
28255         getopt-gnu: flush out another BSD bug
28256         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
28257         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
28258         flush out BSD bug.
28259         * tests/test-getopt.h (test_getopt): End lists with NULL.
28260         * tests/test-getopt_long.h (test_getopt_long): Likewise.
28261         (test_getopt_long_posix): Enhance test.
28262         * modules/getopt-posix-tests (Depends-on): Add stdbool.
28263         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
28264         getopt-gnu.
28265         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
28266         Likewise.
28267
28268 2009-11-27  Simon Josefsson  <simon@josefsson.org>
28269
28270         * modules/idpriv-droptemp-tests (Notice): Fix text.
28271
28272 2009-11-27  Jim Meyering  <meyering@redhat.com>
28273
28274         test-xalloc-die: avoid spurious failure due to libtool argv difference
28275         In a libtool-enabled project, this test would fail due to a difference
28276         in the emitted program name, e.g.,
28277         -test-xalloc-die: memory exhausted
28278         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
28279         Use program to avoid that.
28280         * modules/xalloc-die-tests (Depends-on): Add progname.
28281         * tests/test-xalloc-die.c: Include progname.h".
28282         (program_name): Remove decl.
28283         (main): Call set_program_name.
28284         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
28285
28286 2009-11-26  Richard Jones  <rjones@redhat.com>
28287
28288         w32sock: leave win32 error in place.
28289         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
28290
28291 2009-11-26  Eric Blake  <ebb9@byu.net>
28292
28293         init.sh: suggest to use skip_ and fail_ functions in comments
28294         * tests/init.sh: Add a sentence.
28295
28296 2009-11-25  Bruno Haible  <bruno@clisp.org>
28297
28298         init.sh: add documentation in comments
28299         * tests/init.sh: Add some developer and user documentation.
28300
28301 2009-11-26  Jim Meyering  <meyering@redhat.com>
28302
28303         init.sh: accommodate even those who specify bogus srcdir manually
28304         * tests/init.sh: Normally, srcdir is guaranteed by automake and
28305         configure-time tests to be sanitized, so that there is no need to
28306         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
28307         (with no double quotes) suffices.  However, since tests may be
28308         invoked manually, and since you may explicitly set srcdir to the
28309         name of a directory containing spaces, do quote its uses here.
28310         * tests/test-pread.sh: Likewise.
28311         Suggested by Bruno Haible.
28312
28313         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
28314         * tests/test-pread.sh: Write no data into the pipe, because
28315         test-pread actually reads none.  This avoids a diagnostic,
28316         "bash: echo: write error: Broken pipe", that arises in the unusual
28317         event something is ignoring SIGPIPE, and might be interpreted
28318         as some sort of failure.  Reported by Bruno Haible.
28319
28320 2009-11-25  Jim Meyering  <meyering@redhat.com>
28321
28322         test-pread: cover failure with ESPIPE and EINVAL
28323         * tests/test-pread.c (main): Test for failure, too.
28324         * tests/test-pread.sh: Invoke with stdin on a pipe.
28325         Suggested by Eric Blake.
28326
28327         pread: improvement and fix
28328         * modules/pread (Depends-on): Depend on lseek, for portability to
28329         e.g., mingw.  Suggested by Eric Blake.
28330         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
28331
28332         unistd.in.h: correct declaration of pread
28333         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
28334         Reported by Richard W.M. Jones.
28335
28336         test-pread.sh: distribute the test script
28337         * modules/pread-tests (Files): Include test-pread.sh.
28338
28339         test-pread.sh: clean up
28340         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
28341         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
28342         That is unnecessary, since it's always ".".
28343         Suggestion from Eric Blake.
28344
28345         test-pread.sh: make executable
28346         * tests/test-pread.sh: Set executable bit.
28347         Reported by Eric Blake.
28348
28349         correct typo in test-pread.sh
28350         * tests/test-pread.sh: Add #! line.
28351
28352         test pread
28353         * tests/test-pread.c: New file.
28354         * tests/test-pread.sh: Likewise.
28355         * modules/pread-tests: Likewise.
28356
28357         pread: new module
28358         * modules/pread: New file.
28359         * lib/unistd.in.h (pread): Define/declare.
28360         * lib/pread.c (pread): New file.
28361         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
28362         * modules/unistd (Makefile.am): Substitute witnesses.
28363         * doc/posix-functions/pread.texi (pread): Update.
28364         * MODULES.html.sh: Add pread.
28365
28366 2009-11-25  Jim Meyering  <meyering@redhat.com>
28367
28368         tests/init.sh: new file to be used via most *.sh tests
28369         * tests/init.sh: New file.
28370
28371 2009-11-25  Eric Blake  <ebb9@byu.net>
28372
28373         utimens: work around older Linux failure with symlinks
28374         * lib/utimens.c (lutimensat_works_really): New variable.
28375         (fdutimens, lutimens): Use it to manage kernels that support
28376         nanosecond times on files, but not on symlinks.
28377         Reported by OndÅ™ej Vašík.
28378
28379         utimes: fix configure grammar
28380         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
28381
28382 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
28383
28384         regex: Fix fastmap for multibyte character ranges.
28385         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
28386         characters when a multibyte character range is included.
28387
28388 2009-11-22  Andy Wingo  <wingo@pobox.com>
28389
28390         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
28391         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
28392
28393 2009-11-24  Bruno Haible  <bruno@clisp.org>
28394
28395         doc: Most *_l functions exist in MacOS X 10.5.
28396         * doc/posix-functions/duplocale.texi: Update platforms list.
28397         * doc/posix-functions/freelocale.texi: Likewise.
28398         * doc/posix-functions/newlocale.texi: Likewise.
28399         * doc/posix-functions/uselocale.texi: Likewise.
28400         * doc/posix-functions/isalnum_l.texi: Likewise.
28401         * doc/posix-functions/isalpha_l.texi: Likewise.
28402         * doc/posix-functions/isblank_l.texi: Likewise.
28403         * doc/posix-functions/iscntrl_l.texi: Likewise.
28404         * doc/posix-functions/isdigit_l.texi: Likewise.
28405         * doc/posix-functions/isgraph_l.texi: Likewise.
28406         * doc/posix-functions/islower_l.texi: Likewise.
28407         * doc/posix-functions/isprint_l.texi: Likewise.
28408         * doc/posix-functions/ispunct_l.texi: Likewise.
28409         * doc/posix-functions/isspace_l.texi: Likewise.
28410         * doc/posix-functions/isupper_l.texi: Likewise.
28411         * doc/posix-functions/iswalnum_l.texi: Likewise.
28412         * doc/posix-functions/iswalpha_l.texi: Likewise.
28413         * doc/posix-functions/iswblank_l.texi: Likewise.
28414         * doc/posix-functions/iswcntrl_l.texi: Likewise.
28415         * doc/posix-functions/iswctype_l.texi: Likewise.
28416         * doc/posix-functions/iswdigit_l.texi: Likewise.
28417         * doc/posix-functions/iswgraph_l.texi: Likewise.
28418         * doc/posix-functions/iswlower_l.texi: Likewise.
28419         * doc/posix-functions/iswprint_l.texi: Likewise.
28420         * doc/posix-functions/iswpunct_l.texi: Likewise.
28421         * doc/posix-functions/iswspace_l.texi: Likewise.
28422         * doc/posix-functions/iswupper_l.texi: Likewise.
28423         * doc/posix-functions/iswxdigit_l.texi: Likewise.
28424         * doc/posix-functions/isxdigit_l.texi: Likewise.
28425         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
28426         * doc/posix-functions/strcasecmp_l.texi: Likewise.
28427         * doc/posix-functions/strcoll_l.texi: Likewise.
28428         * doc/posix-functions/strfmon_l.texi: Likewise.
28429         * doc/posix-functions/strftime_l.texi: Likewise.
28430         * doc/posix-functions/strncasecmp_l.texi: Likewise.
28431         * doc/posix-functions/strxfrm_l.texi: Likewise.
28432         * doc/posix-functions/tolower_l.texi: Likewise.
28433         * doc/posix-functions/toupper_l.texi: Likewise.
28434         * doc/posix-functions/towctrans_l.texi: Likewise.
28435         * doc/posix-functions/towlower_l.texi: Likewise.
28436         * doc/posix-functions/towupper_l.texi: Likewise.
28437         * doc/posix-functions/wcscoll_l.texi: Likewise.
28438         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
28439         * doc/posix-functions/wctrans_l.texi: Likewise.
28440         * doc/posix-functions/wctype_l.texi: Likewise.
28441         * doc/glibc-functions/strptime_l.texi: Likewise.
28442         * doc/glibc-functions/strtod_l.texi: Likewise.
28443         * doc/glibc-functions/strtof_l.texi: Likewise.
28444         * doc/glibc-functions/strtol_l.texi: Likewise.
28445         * doc/glibc-functions/strtold_l.texi: Likewise.
28446         * doc/glibc-functions/strtoll_l.texi: Likewise.
28447         * doc/glibc-functions/strtoul_l.texi: Likewise.
28448         * doc/glibc-functions/strtoull_l.texi: Likewise.
28449         * doc/glibc-functions/wcsftime_l.texi: Likewise.
28450         * doc/glibc-functions/wcstod_l.texi: Likewise.
28451         * doc/glibc-functions/wcstof_l.texi: Likewise.
28452         * doc/glibc-functions/wcstol_l.texi: Likewise.
28453         * doc/glibc-functions/wcstold_l.texi: Likewise.
28454         * doc/glibc-functions/wcstoll_l.texi: Likewise.
28455         * doc/glibc-functions/wcstoul_l.texi: Likewise.
28456         * doc/glibc-functions/wcstoull_l.texi: Likewise.
28457
28458 2009-11-24  Bruno Haible  <bruno@clisp.org>
28459
28460         duplocale: Fix logic bug.
28461         * lib/duplocale.c: Don't include <langinfo.h>.
28462         (_NL_LOCALE_NAME): Remove macro.
28463         (rpl_duplocale): Use setlocale instead of nl_langinfo.
28464         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
28465
28466 2009-11-23  Jim Meyering  <meyering@redhat.com>
28467
28468         test-update-copyright: don't hard-code /usr/bin/perl
28469         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
28470         perl to print the current year.  Gilles Espinasse reported that
28471         the replaced use of perl was hard-coded as /usr/bin/perl.
28472
28473 2009-11-23  Bruno Haible  <bruno@clisp.org>
28474
28475         duplocale: Add support for glibc 2.3.x.
28476         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
28477
28478 2009-11-22  Bruno Haible  <bruno@clisp.org>
28479
28480         vasnprintf: Tiny optimization.
28481         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
28482         MacOS X.
28483
28484 2009-11-22  Bruno Haible  <bruno@clisp.org>
28485
28486         Tests for module 'duplocale'.
28487         * modules/duplocale-tests: New file.
28488         * tests/test-duplocale.c: New file.
28489
28490         New module 'duplocale'.
28491         * m4/duplocale.m4: New file.
28492         * lib/locale.in.h (duplocale): New declaration.
28493         * lib/duplocale.c: New file.
28494         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
28495         gl_LOCALE_H_DEFAULTS): New macros.
28496         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
28497         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
28498         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
28499         REPLACE_DUPLOCALE.
28500         * modules/duplocale: New file.
28501         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
28502
28503 2009-11-22  Bruno Haible  <bruno@clisp.org>
28504
28505         * modules/locale-tests (configure.ac): Test for newlocale function.
28506         * tests/test-locale.c: When the system has extended locale functions,
28507         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
28508
28509         locale: Make locale_t available when possible.
28510         * lib/locale.in.h: Include <xlocale.h> when it exists.
28511         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
28512         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
28513         * modules/locale (Depends-on): Add extensions.
28514         (Makefile.am): Also substitute HAVE_XLOCALE_H.
28515         * doc/posix-headers/locale.texi: Document the problem with locale_t.
28516
28517 2009-11-22  Bruno Haible  <bruno@clisp.org>
28518
28519         Add comments.
28520         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
28521         invocation.
28522         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
28523         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
28524         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
28525
28526 2009-11-22  Bruno Haible  <bruno@clisp.org>
28527
28528         error: account for the possibility of freopen (stdout).
28529         * lib/error.c: Include <unistd.h>.
28530         (flush_stdout): New function, extracted from error and error_at_line.
28531         Determine stdout's fd dynamically.
28532         (error, error_at_line): Invoke flush_stdout.
28533         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
28534         * modules/error (Depends-on): Add unistd.
28535
28536 2009-11-22  Bruno Haible  <bruno@clisp.org>
28537
28538         diffseq: Add comment.
28539         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
28540
28541 2009-11-22  Jim Meyering  <meyering@redhat.com>
28542
28543         c-stack: avoid defining an unused static function
28544         * lib/c-stack.c (find_stack_direction): Do not define this function
28545         when it will not be used.
28546
28547         diffseq: avoid spurious gcc warnings
28548         * lib/diffseq.h (IF_LINT2): Define.
28549         (compareseq): Use it to initialize two members of "part".
28550         This avoids two used-uninitialized warnings.
28551
28552 2009-11-21  Jim Meyering  <meyering@redhat.com>
28553
28554         c-stack: avoid "ignoring return value of `write'" warning
28555         * lib/c-stack.c: Include "ignore-value.h".
28556         (die): Explicitly ignore each write return value.
28557         * modules/c-stack (Depends-on): Add ignore-value.
28558
28559 2009-11-21  Bruno Haible  <bruno@clisp.org>
28560
28561         diffseq: reduce scope of variable 'best'.
28562         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
28563         variable, earlier used for two different purposes.
28564
28565 2009-11-21  Jim Meyering  <meyering@redhat.com>
28566
28567         diffseq: remove useless assignment to "best"
28568         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
28569         assignment.  At that point "best" is already guaranteed to be zero.
28570
28571 2009-11-20  Eric Blake  <ebb9@byu.net>
28572
28573         build: mention ftp redirector in release announcements
28574         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
28575         values that used to come from cfg.mk; mention FTP redirect URL.
28576         * build-aux/announce-gen: Mention the mirror list.
28577         Suggested by Karl Berry.
28578
28579         nanosleep: improve port to mingw
28580         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
28581         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
28582         LIB_NANOSLEEP, but only when needed.
28583         * modules/select (Link): Document LIBSOCKET.
28584         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
28585         enough.
28586
28587         nanosleep: work around cygwin bug
28588         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
28589         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
28590         bug.
28591         (getnow): Delete, not needed.
28592         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
28593         LIB_CLOCK_GETTIME.
28594         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
28595         clock-time, gettime.
28596         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
28597         bug.
28598         * modules/nanosleep-tests: New test.
28599         * tests/test-nanosleep.c: New file.
28600
28601         sleep: work around cygwin bug
28602         * lib/sleep.c (rpl_sleep): Work around the bug.
28603         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
28604         (gl_PREREQ_SLEEP): Delete unused macro.
28605         * modules/sleep (Depends-on): Add verify.
28606         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
28607         * modules/unistd (Makefile.am): Substitute witness.
28608         * lib/unistd.in.h (sleep): Update prototype.
28609         * doc/posix-functions/sleep.texi (sleep): Document the bug.
28610         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
28611         * modules/sleep-tests (Depends-on): Check for alarm.
28612
28613 2009-11-20  Jim Meyering  <meyering@redhat.com>
28614
28615         maint.mk: improve sc_prohibit_magic_number_exit
28616         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
28617         so it does not match uses like System.exit(1).
28618         Add comments showing how to correct all offenders.
28619
28620 2009-11-19  Eric Blake  <ebb9@byu.net>
28621
28622         xalloc-die-tests: add missing library
28623         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
28624
28625         test-xvasprintf: silence compiler warnings
28626         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
28627         empty string from gcc.
28628
28629 2009-11-19  Jim Meyering  <meyering@redhat.com>
28630
28631         xfreopen: new module, from coreutils
28632         * modules/xfreopen: New module.
28633         * lib/xfreopen.c: New file.
28634         * lib/xfreopen.h: New file.
28635         * MODULES.html.sh (File stream based Input/Output"): Add it.
28636
28637 2009-11-19  Eric Blake  <ebb9@byu.net>
28638
28639         manywarnings: depend on warnings
28640         * modules/manywarnings (Depends-on): Add warnings.
28641
28642         build: avoid compiler warnings
28643         * lib/select.c (rpl_select): Delete unused variable.
28644         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
28645
28646 2009-11-18  Eric Blake  <ebb9@byu.net>
28647
28648         tests: avoid false negative with --with-packager
28649         * tests/test-version-etc.sh: Discard packager information.
28650         * tests/test-argp-version-etc-1.sh: Likewise.
28651         Reported by Mike Frysinger.
28652
28653         utimens: fix regression on Solaris
28654         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
28655         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
28656         can only change fd timestamps via futimesat.  Instead, use an
28657         additional witness macro to avoid BSD bug.
28658         Reported by Jim Meyering.
28659
28660 2009-11-17  Eric Blake  <ebb9@byu.net>
28661
28662         usleep: use it to simplify tests
28663         * modules/stat-time-tests (Depends-on): Add usleep.
28664         (configure.ac): Drop usleep check.
28665         * modules/chown-tests (Depends-on, configure.ac): Likewise.
28666         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
28667         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
28668         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
28669         * modules/openat-tests (Depends-on, configure.ac): Likewise.
28670         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
28671         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
28672         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
28673         Likewise.
28674         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
28675         * tests/test-lchown.h (nap): Likewise.
28676         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
28677         * tests/test-stat-time.c (nap): Likewise.
28678         * tests/test-utimens-common.h (nap): Update comments.
28679
28680         usleep: new module
28681         * modules/usleep: New file.
28682         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
28683         * lib/usleep.c (usleep): Likewise.
28684         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
28685         * modules/unistd (Makefile.am): Substitute witnesses.
28686         * lib/unistd.in.h (usleep): Add declaration.
28687         * doc/pastposix-functions/usleep.texi (usleep): Document this.
28688         * MODULES.html.sh (Date and time): Likewise.
28689         * modules/usleep-tests (Depends-on): New test.
28690         * tests/test-usleep.c: New file.
28691
28692         chown: work around OpenBSD bug
28693         * lib/chown.c (rpl_chown): Work around the bug.
28694         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
28695         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
28696         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
28697         * modules/chown (Depends-on): Add stdbool.
28698         * modules/lchown (Depends-on): Likewise.
28699         * doc/posix-functions/chown.texi (chown): Document the bug.
28700         * doc/posix-functions/lchown.texi (lchown): Likewise.
28701         * tests/test-lchown.h (test_chown): Relax test.
28702
28703         mkstemp: avoid conflict with C++ keyword template
28704         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
28705         * lib/mkostemp.c (mkostemp): Likewise.
28706         * lib/mkostemps.c (mkostemps): Likewise.
28707         * lib/mkstemp.c (mkstemp): Likewise.
28708         * lib/mkstemps.c (mkstemps): Likewise.
28709
28710         xalloc-die-tests: optimize
28711         * tests/test-xalloc-die.sh: Reduce number of processes.
28712
28713 2009-11-17  Simon Josefsson  <simon@josefsson.org>
28714
28715         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
28716         patch from ludo@gnu.org (Ludovic Courtès).
28717
28718 2009-11-17  Jim Meyering  <meyering@redhat.com>
28719
28720         version-etc: use proper license string
28721         * modules/version-etc (License): Use LGPL, not LGPLv3+.
28722         * modules/version-etc-fsf: Likewise.
28723
28724 2009-11-17  Simon Josefsson  <simon@josefsson.org>
28725
28726         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
28727         printed to stdout.  Deal with EOL differences.
28728
28729 2009-11-17  Eric Blake  <ebb9@byu.net>
28730
28731         unsetenv: work around Solaris bug
28732         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
28733         * lib/unsetenv.c (rpl_unsetenv): Work around it.
28734         Reported by Jim Meyering.
28735
28736         vasnprintf: avoid compiler warnings
28737         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
28738         variables.
28739         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
28740
28741 2009-11-17  Simon Josefsson  <simon@josefsson.org>
28742
28743         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
28744         settings since xalloc-die is no longer the self test,
28745         xalloc-die.sh is.
28746
28747 2009-11-17  Jim Meyering  <meyering@redhat.com>
28748
28749         test-xalloc-die.sh: make the code agree with the commit log
28750         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
28751         at the end, just in case you happen to have a test-xalloc-die
28752         program in some other PATH directory.
28753
28754         test-xalloc-die.sh: fix a portability bug
28755         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
28756         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
28757         Otherwise, argv[0] (as often seen in diagnostics) would be too
28758         system-dependent, sometimes with, and sometimes without the leading "./".
28759
28760         version-etc-fsf: relax license to LGPLv3+
28761         * modules/version-etc-fsf (License): Relax license.
28762
28763 2009-11-16  Eric Blake  <ebb9@byu.net>
28764
28765         xalloc-die-tests: avoid printing null pointer
28766         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
28767         shell script.
28768         * tests/test-xalloc-die.c (program_name): Declare.
28769         * tests/test-xalloc-die.sh (tmpfiles): New file.
28770
28771         setenv, unsetenv: work around various bugs
28772         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
28773         (setenv) [HAVE_SETENV]: Work around bugs.
28774         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
28775         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
28776         for bugs.
28777         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
28778         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
28779         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
28780         * modules/stdlib (Makefile.am): Update substitutions.
28781         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
28782         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
28783         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
28784         * modules/setenv-tests: New test.
28785         * modules/unsetenv-tests: Likewise.
28786         * tests/test-setenv.c: New file.
28787         * tests/test-unsetenv.c: Likewise.
28788
28789 2009-11-16  Jim Meyering  <meyering@redhat.com>
28790
28791         version-etc: relax license to LGPLv3+
28792         * modules/version-etc (License): Relax license.
28793
28794         better AC_REQUIRE expanded-before-required-warning avoidance
28795         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
28796         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
28797         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
28798         which is no longer needed.
28799
28800 2009-11-16  Eric Blake  <ebb9@byu.net>
28801
28802         test-freading: clean up temporary file
28803         * tests/test-freading.c (main): Remove file on success, and use
28804         ASSERT more liberally.
28805         Reported by Jim Meyering.
28806
28807 2009-11-16  Jim Meyering  <meyering@redhat.com>
28808
28809         avoid new AC_REQUIRE expanded-before-required warnings
28810         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
28811         merely using it.
28812         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
28813         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
28814
28815 2009-11-15  Simon Josefsson  <simon@josefsson.org>
28816
28817         * tests/test-xalloc-die.c: New file.
28818         * modules/xalloc-die-tests: New file.
28819         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
28820         XFAIL_TESTS so it can be appended by modules.
28821
28822 2009-11-15  Simon Josefsson  <simon@josefsson.org>
28823
28824         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
28825         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
28826
28827 2009-11-14  Eric Blake  <ebb9@byu.net>
28828
28829         fnmatch: avoid compiler warning
28830         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
28831         to silence compiler warning about mismatch signedness in ?:.
28832         Reported by Robert Millan.
28833
28834         intprops: add double-inclusion guard
28835         * lib/intprops.h: Allow idempotent includes.
28836         Suggested by Bruce Korb.
28837
28838         openat: detect Solaris fchownat bug
28839         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
28840         penalizing glibc chownat when only lchownat is broken.
28841         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
28842         trailing slash bugs.
28843         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
28844         * modules/openat-tests (Files): Include more files.
28845         (Depends-on): Add mgetgroups, sleep, stat-time.
28846         (configure.ac): Add additional checks.
28847         (Makefile.am): Build new test.
28848         * tests/test-fchownat.c: New file.
28849
28850         lchown: detect Solaris and FreeBSD bug
28851         * lib/lchown.c (rpl_lchown): Work around bug.
28852         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
28853         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
28854         * modules/unistd (Makefile.am): Populate it.
28855         * lib/unistd.in.h (lchown): Update declaration.
28856         * doc/posix-functions/lchown.texi (lchown): Document the bug.
28857         * modules/lchown-tests: New file.
28858         * tests/test-lchown.h (test_lchown): Likewise.
28859         * tests/test-lchown.c (main): Likewise.
28860
28861         chown: detect Solaris and FreeBSD bug
28862         * lib/chown.c (rpl_chown): Work around bug.
28863         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
28864         (gl_PREREQ_CHOWN): Delete.
28865         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
28866         * modules/unistd (Makefile.am): Populate it.
28867         * lib/unistd.in.h (chown): Update declaration.
28868         * lib/lchown.c (chown): Update client.
28869         * modules/lchown (Depends-on): Add lstat.
28870         * doc/posix-functions/chown.texi (chown): Document the bug.
28871         * doc/posix-functions/getgroups.texi (getgroups): Document
28872         getgroups pitfall.
28873         * modules/chown-tests: New file.
28874         * tests/test-chown.h (test_chown): Likewise.
28875         * tests/test-chown.c (main): Likewise.
28876
28877 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
28878
28879         gnulib-tool: correctly detect absence of m4 directories
28880         * gnulib-tool: Avoid extra newline on data passed to wc -l.
28881
28882 2009-11-14  Jim Meyering  <meyering@redhat.com>
28883
28884         maint.mk: Prohibit inclusion of "xalloc.h" without use.
28885         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
28886
28887 2009-11-14  John W. Eaton  <jwe@gnu.org>
28888
28889         strftime.h: wrap funtion declaration in extern "C" block
28890         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
28891
28892 2009-11-13  Eric Blake  <ebb9@byu.net>
28893
28894         getgroups: avoid compiler warning
28895         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
28896
28897         getgroups: work around FreeBSD bug
28898         * lib/getgroups.c (rpl_getgroups): Work around the bug.
28899         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
28900         * doc/posix-functions/getgroups.texi (getgroups): Document it.
28901         * tests/test-getgroups.c (main): Fix buffer overrun.
28902
28903         getgroups: avoid compilation failure
28904         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
28905         * modules/getgroups (Depends-on): Add stdint.
28906
28907 2009-11-13  Jim Meyering  <meyering@redhat.com>
28908
28909         test-getgroups: avoid compilation failure
28910         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
28911
28912 2009-11-13  Eric Blake  <ebb9@byu.net>
28913
28914         mgetgroups: new module, taken from coreutils
28915         * modules/mgetgroups: New file.
28916         * lib/mgetgroups.h: Likewise.
28917         * lib/mgetgroups.c (mgetgroups): Likewise.
28918         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
28919         * MODULES.html.sh (Users and groups): Mention it.
28920
28921         getgroups: don't expose GETGROUPS_T to user
28922         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
28923         an element at a time if GETGROUPS_T is wrong size.
28924         * lib/getugroups.h (getugroups): Change signature.
28925         * lib/unistd.in.h (getgroups): Likewise.
28926         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
28927         signature needs fixing.
28928         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
28929         AC_TYPE_GETGROUPS.
28930         * modules/group-member (Depends-on): Add getgroups.
28931         * lib/group-member.c (group_info, get_group_info): Use gid_t.
28932         (group_member): Rely on getgroups replacement.
28933         * lib/getugroups.c (getugroups): Use gid_t.
28934         * tests/test-getgroups.c (main): Likewise.
28935         * NEWS: Mention the signature change.
28936         * doc/posix-functions/getgroups.texi (getgroups): Mention the
28937         problem with signature.
28938         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
28939         GETGROUPS_T is still useful for setgroups.
28940
28941         getgroups, getugroups: provide stubs for mingw
28942         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
28943         * lib/getugroups.c (getugroups): Likewise.
28944         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
28945         function.  Modernize replacement scheme.
28946         (gl_PREREQ_GETGROUPS): Delete.
28947         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
28948         * modules/getgroups (configure.ac): Declare witness.
28949         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
28950         * modules/unistd (Depends-on): Substitute witness.
28951         * lib/unistd.in.h (getgroups): Declare replacement.
28952
28953         getgroups: avoid calling exit
28954         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
28955         drop xalloc.
28956         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
28957         dependencies.
28958         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
28959         exiting, in the rare case of malloc failure.
28960
28961         getgroups: fix logic error
28962         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
28963         has more than 20 groups.
28964         * modules/getgroups-tests: New test.
28965         * tests/test-getgroups.c: New file.
28966
28967 2009-11-13  Simon Josefsson  <simon@josefsson.org>
28968
28969         * tests/test-base64.c: Improve.
28970
28971 2009-11-13  Simon Josefsson  <simon@josefsson.org>
28972
28973         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
28974         Blake <ebb9@byu.net>.
28975
28976 2009-11-13  Simon Josefsson  <simon@josefsson.org>
28977
28978         * tests/test-xvasprintf.c: Add %s%s related checks.
28979
28980 2009-11-12  Eric Blake  <ebb9@byu.net>
28981
28982         version-etc: match standards.texi style
28983         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
28984         and use <> only for URLs.
28985
28986 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
28987
28988         fts: do not fail on a submount during traversal
28989         * lib/fts.c (fts_build): Read the stat info again after opening
28990         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
28991         Original report at http://bugzilla.redhat.com/501848.
28992
28993 2009-11-12  Jim Meyering  <meyering@redhat.com>
28994
28995         bootstrap: sync from coreutils
28996         * build-aux/bootstrap (bootstrap_epilogue): New function.
28997         Use git_modules_config in one more place.  This make bootstrap's
28998         --gnulib-srcdir option more useful for testing.
28999
29000         bootstrap: generalize autoheader check
29001         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
29002         AC_CONFIG_HEADERS.
29003
29004 2009-11-11  Eric Blake  <ebb9@byu.net>
29005
29006         mkfifoat: use new modules for Solaris and BSD bugs
29007         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
29008         * lib/mkfifoat.c (mknodat): Split...
29009         * lib/mknodat.c (mknodat): ...into new file.
29010         * modules/mkfifoat (Files): Ship new file.
29011         (Depends-on): Add mkfifo, mknod.
29012         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
29013         (Depends-on): Add symlink.
29014         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
29015         redundant with test_mkfifo.h.
29016         (do_mkfifoat, do_mknodat): New helpers.
29017
29018         mknod: new module
29019         * modules/mknod: New file.
29020         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
29021         * lib/mknod.c (mknod): Likewise.
29022         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
29023         defaults.
29024         * modules/sys_stat (Makefile.am): Substitute them.
29025         * lib/sys_stat.in.h (mknod): Declare replacement.
29026         * MODULES.html.sh (Support for systems lacking POSIX:2008):
29027         Document it.
29028         * doc/posix-functions/mknod.texi (mknod): Likewise.
29029         * modules/mknod-tests: New test.
29030         * tests/test-mknod.c: Likewise.
29031
29032         mkfifo: new module
29033         * modules/mkfifo: New file.
29034         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
29035         * lib/mkfifo.c (mkfifo): Likewise.
29036         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
29037         defaults.
29038         * modules/sys_stat (Makefile.am): Substitute them.
29039         * lib/sys_stat.in.h (mkfifo): Declare replacement.
29040         * MODULES.html.sh (Support for systems lacking POSIX:2008):
29041         Document it.
29042         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
29043         * modules/mkfifo-tests: New test.
29044         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
29045         from test-mkfifoat.c.
29046         * tests/test-mkfifo.c: New file.
29047
29048         readlink: detect FreeBSD bug
29049         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
29050         slash on symlink.
29051         * doc/posix-functions/readlink.texi (readlink): Document the bug.
29052         * tests/test-readlink.h (test_readlink): Enhance test.
29053
29054         symlink: detect FreeBSD bug
29055         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
29056         slash on symlink.
29057         * doc/posix-functions/symlink.texi (symlink): Document the bug.
29058         * tests/test-symlink.h (test_symlink): Enhance test.
29059
29060 2009-11-10  Eric Blake  <ebb9@byu.net>
29061
29062         link: detect FreeBSD bug
29063         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
29064         symlink.
29065         * doc/posix-functions/link.texi (link): Document the bug.
29066         * tests/test-link.h (test_link): Enhance test.
29067         * tests/test-linkat.c (main): Update caller.
29068
29069         unlink, remove: detect FreeBSD bug
29070         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
29071         slash on symlink.
29072         * doc/posix-functions/unlink.texi (unlink): Document the bug.
29073         * doc/posix-functions/remove.texi (remove): Likewise.
29074         * tests/test-unlink.h (test_unlink): Enhance test.
29075         * tests/test-remove.c (main): Likewise.
29076
29077 2009-11-09  Eric Blake  <ebb9@byu.net>
29078
29079         rename: detect FreeBSD bug
29080         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
29081         slash on symlink.
29082         * modules/renameat-tests (Depends-on): Add filenamecat.
29083         * tests/test-rename.h (test_rename): Allow one more errno.
29084         * tests/test-renameat.c (main): Likewise.
29085         * doc/posix-functions/rename.texi (rename): Document the bug.
29086
29087         open: detect FreeBSD bug
29088         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
29089         symlink.
29090         * doc/posix-functions/open.texi (open): Document the bug.
29091         * doc/posix-functions/utimes.texi (utimes): Likewise.
29092         * tests/test-open.h (test_open): Add parameters, and test symlink
29093         handling.
29094         * tests/test-open.c (main): Adjust caller.
29095         * tests/test-fcntl-safer.c (main): Likewise.
29096         * modules/open-tests (Depends-on): Add stdbool, symlink.
29097         * modules/fcntl-safer-tests (Depends-on): Likewise.
29098         * tests/test-openat.c (main): Add test-open tests.
29099
29100         stat: detect FreeBSD bug
29101         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
29102         symlink.
29103         * doc/posix-functions/stat.texi (stat): Document the bug.
29104         * tests/test-stat.h (test_stat_func): Add argument.
29105         * tests/test-stat.c (main): Adjust caller.
29106         * tests/test-fstatat.c (main): Likewise.
29107         * modules/stat-tests (Depends-on): Add stdbool, symlink.
29108         Reported by Jim Meyering.
29109
29110 2009-11-09  James Youngman  <jay@gnu.org>
29111
29112         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
29113         * lib/strftime.c: Correct placement of #include "ignore-value.h".
29114
29115 2009-11-08  Jim Meyering  <meyering@redhat.com>
29116
29117         utimens: remove invalid futimesat call
29118         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
29119         It used the file descriptor of the target file as the DIR_FD
29120         parameter and NULL as the file name.  That caused failure with
29121         errno == EFAULT on FreeBSD-8.0-rc2
29122
29123 2009-11-07  Eric Blake  <ebb9@byu.net>
29124
29125         fflush, freadseek: use fseeko, not fseek
29126         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
29127         (clear_ungetc_buffer): Avoid potential problems on large files.
29128         * lib/freadseek.c (freadseek): Likewise.
29129         * modules/freadseek (Depends-on): Add fseeko.
29130         * modules/fseek (configure.ac): Set a witness.
29131         * tests/test-fflush.c (main): Use fseeko.
29132         * tests/test-fpurge.c (fseek): Disable link warning.
29133         * tests/test-freadable.c (fseek): Likewise.
29134         * tests/test-freading.c (fseek): Likewise.
29135         * tests/test-fseeko.c (fseek): Likewise.
29136         * tests/test-ftell.c (fseek): Likewise.
29137         * tests/test-ftello.c (fseek): Likewise.
29138         * tests/test-fwritable.c (fseek): Likewise.
29139         * tests/test-fwriting.c (fseek): Likewise.
29140
29141 2009-11-06  Simon Josefsson  <simon@josefsson.org>
29142
29143         * modules/memchr (Depends-on): Drop getpagesize dependency.
29144
29145 2009-11-06  Simon Josefsson  <simon@josefsson.org>
29146
29147         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
29148         Reported by Ludovic Courtès.
29149         * build-aux/pmccabe2html: Improve example usage.
29150         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
29151
29152 2009-11-06  Jim Meyering  <meyering@redhat.com>
29153
29154         do-release-commit-and-tag: New module.
29155         Automate the release-commit and tag process.
29156         * build-aux/do-release-commit-and-tag: New script, from coreutils.
29157         * modules/do-release-commit-and-tag: New file.
29158         * MODULES.html.sh (Support for maintaining and releasing): Add it.
29159
29160 2009-11-06  Simon Josefsson  <simon@josefsson.org>
29161
29162         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
29163         because test-select.c uses inet_pton.
29164
29165 2009-11-06  Simon Josefsson  <simon@josefsson.org>
29166
29167         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
29168         GETADDRINFO_LIB.  Bump serial number.
29169         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
29170         Suggested by Eric Blake <ebb9@byu.net>.
29171
29172 2009-11-05  Eric Blake  <ebb9@byu.net>
29173
29174         strtod: detect darwin bug
29175         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
29176         Reported by Leo Davis.
29177
29178         freopen-safer: new module
29179         * modules/freopen-safer: New module.
29180         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
29181         * lib/freopen-safer.c (freopen_safer): New file.
29182         * lib/stdio-safer.h (freopen_safer): New declaration.
29183         * lib/stdio--.h (freopen): New override.
29184         * MODULES.html.sh (File stream based Input/Output): Mention it.
29185         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
29186         freopen-safer module.
29187         * doc/posix-functions/stderr.texi (stderr): Likewise.
29188         * doc/posix-functions/stdin.texi (stdin): Likewise.
29189         * doc/posix-functions/stdout.texi (stdout): Likewise.
29190         * modules/freopen-safer-tests: New test.
29191         * tests/test-reopen-safer.c: New file.
29192
29193 2009-11-05  Jim Meyering  <meyering@redhat.com>
29194
29195         maint.mk: Prohibit inclusion of "close-stream.h" without use.
29196         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
29197
29198 2009-11-05  Simon Josefsson  <simon@josefsson.org>
29199
29200         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
29201
29202 2009-11-05  Simon Josefsson  <simon@josefsson.org>
29203
29204         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
29205
29206 2009-11-05  Simon Josefsson  <simon@josefsson.org>
29207
29208         Fix link error.
29209         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
29210         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
29211
29212 2009-11-05  Simon Josefsson  <simon@josefsson.org>
29213
29214         * tests/test-func.c: Also test value of __func__.
29215
29216 2009-11-05  Simon Josefsson  <simon@josefsson.org>
29217
29218         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
29219         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
29220
29221 2009-11-05  Bruno Haible  <bruno@clisp.org>
29222
29223         Fix link error.
29224         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
29225         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
29226         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
29227
29228 2009-11-05  Bruno Haible  <bruno@clisp.org>
29229
29230         Tests for module 'inet_pton'.
29231         * modules/inet_pton-tests: New file.
29232         * tests/test-inet_pton.c: New file.
29233
29234 2009-11-05  Bruno Haible  <bruno@clisp.org>
29235
29236         Tests for module 'inet_ntop'.
29237         * modules/inet_ntop-tests: New file.
29238         * tests/test-inet_ntop.c: New file.
29239
29240 2009-11-04  Eric Blake  <ebb9@byu.net>
29241
29242         stdlib-safer: wrap all mkstemp variants
29243         * modules/mkostemp (configure.ac): Set witness.
29244         * modules/mkostemps (configure.ac): Likewise.
29245         * modules/mkstemps (configure.ac): Likewise.
29246         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
29247         (mkstemps_safer): Wrap more functions.
29248         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
29249         wrapping.
29250         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
29251         (mkstemps_safer): Implement the wrappers.
29252
29253         mkstemps, mkostemps: new modules
29254         * modules/mkostemps: New module.
29255         * modules/mkstemps: Likewise.
29256         * lib/mkostemps.c (mkostemps): New file.
29257         * lib/mkstemps.c (mkstemps): Likewise.
29258         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
29259         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
29260         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
29261         * modules/stdlib (Makefile.am): Substitute them.
29262         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
29263         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
29264         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
29265         * doc/gnulib.texi (Glibc stdlib.h): Include them.
29266         * MODULES.html.sh (File system functions): Mention them.
29267
29268         tempname: resync from glibc
29269         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
29270         same values for __GT_FILE as glibc.  Abort even when assertions
29271         are disabled.
29272         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
29273         match its value otherwise.  Allow idempotent inclusion.
29274         * lib/mkdtemp.c (mkdtemp): Adjust caller.
29275         * lib/mkostemp.c (mkostemp): Likewise.
29276         * lib/mkstemp.c (mkstemp): Likewise.
29277         * lib/tmpfile.c (tmpfile): Likewise.
29278         * NEWS: Document this.
29279
29280         utimens: fix use of futimens on older Linux
29281         * lib/utimens.c (fdutimens): Use updated, rather than original,
29282         timespec to avoid bug in older Linux kernel.
29283         Reported by Simon Josefsson.
29284
29285 2009-11-04  Bruno Haible  <bruno@clisp.org>
29286
29287         Make num_processors more flexible and consistent.
29288         * lib/nproc.h (enum nproc_query): New type.
29289         (num_processors): Add a 'query' argument.
29290         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
29291         (num_processors): Add a 'query' argument. Test the value of the
29292         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
29293         mingw, count the number of CPUs available for the current process.
29294         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
29295         Check for sched_getaffinity and sched_getaffinity_np.
29296         * modules/nproc (Depends-on): Add c-ctype, extensions.
29297         * NEWS: Mention the change.
29298
29299 2009-11-03  Bruno Haible  <bruno@clisp.org>
29300
29301         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
29302
29303 2009-11-03  Jim Meyering  <meyering@redhat.com>
29304
29305         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
29306         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
29307         if it is defined.
29308
29309 2009-11-02  Eric Blake  <ebb9@byu.net>
29310
29311         mktime, timegm: share common declaration
29312         * lib/mktime-internal.h: New file.
29313         * lib/mktime.c: Use it rather than open-coding a declaration.
29314         * lib/timegm.c: Likewise.
29315         * modules/mktime (Files): Ship it.
29316         * modules/timegm (Files): Likewise.
29317         Suggested by Bruno Haible.
29318
29319         test-update-copyright: update test to match script changes
29320         * tests/test-update-copyright.sh: Avoid hard-coding perl
29321         location.  Don't update *.bak created by earlier runs.
29322
29323 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
29324             Simon Josefsson  <simon@josefsson.org>
29325             Bruno Haible  <bruno@clisp.org>
29326
29327         Fix link error on Solaris 8.
29328         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
29329         also in libnsl. Define also INET_PTON_LIB.
29330         * modules/inet_pton (Link): New section.
29331
29332 2009-11-02  Simon Josefsson  <simon@josefsson.org>
29333             Bruno Haible  <bruno@clisp.org>
29334
29335         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
29336         * modules/inet_ntop (Link): New section.
29337         Reported by Boyan Kasarov <bkasarov@gmail.com>.
29338
29339 2009-11-02  Eric Blake  <ebb9@byu.net>
29340
29341         maint: avoid compiler warnings in m4 macros
29342         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
29343         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
29344
29345 2009-11-02  Simon Josefsson  <simon@josefsson.org>
29346
29347         * m4/pmccabe2html.m4: Remove file.
29348         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
29349         function.  Change maintainer.
29350         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
29351         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
29352         Courtès).
29353
29354 2009-10-31  Eric Blake  <ebb9@byu.net>
29355
29356         fseeko: fix m4 regression
29357         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
29358         regression from 2009-10-27.
29359         Reported by Ralf Wildenhues.
29360
29361 2009-10-31  Jim Meyering  <meyering@redhat.com>
29362
29363         inttostr: aesthetics and improved (compile-time) safety
29364         Define inttype_is_signed rather than inttype_is_unsigned,
29365         since the sole use is via "#if inttype_is_signed".
29366         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
29367         inttype_is_unsigned.
29368         * lib/offtostr.c (inttype_is_signed): Likewise.
29369         * lib/uinttostr.c (inttype_is_signed): Likewise.
29370         * lib/umaxtostr.c (inttype_is_signed): Likewise.
29371         * lib/inttostr.c (inttostr): Use verify to cross-check the
29372         inttype_is_signed value and the signedness of the actual type.
29373         * modules/inttostr (Depends-on): Add verify.
29374
29375 2009-10-30  Eric Blake  <ebb9@byu.net>
29376
29377         build: avoid compiler warnings
29378         * lib/fchmodat.c (lchmod): Mark unused variables.
29379         * lib/getopt.c (_getopt_initialize): Likewise.
29380         * lib/mktime.c (__mktime_internal): Provide prototype.
29381         * lib/inttostr.c (inttostr): Avoid compiler warning even with
29382         older gcc that do not understand #pragma GCC diagnostic.
29383         * lib/uinttostr.c (inttype_is_unsigned): Define.
29384         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
29385
29386 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
29387
29388         stat: fix compilation on AIX
29389         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
29390         only see struct stat64.
29391
29392 2009-10-30  Eric Blake  <ebb9@byu.net>
29393
29394         exclude: make more robust
29395         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
29396         rather than masking a coding bug.
29397         Suggested by Bruno Haible.
29398
29399 2009-10-30  Jim Meyering  <meyering@redhat.com>
29400
29401         perl scripts: remove #!/usr/bin/perl in favor of more portable...
29402         Rather than putting #!/usr/bin/perl on the first line,
29403         start with a variant of what's recommended by "man perlrun" that
29404         invokes the first "perl" program from your shell's search path.
29405         * build-aux/gitlog-to-changelog: Replace #!... as above.
29406         Add a "Local Variables" perl mode setting.
29407         Prompted by a patch from Ludovic Courtès.
29408         Improved by Eric Blake.
29409         * build-aux/useless-if-before-free: Likewise.
29410         * build-aux/announce-gen: Likewise.
29411         * build-aux/update-copyright: Likewise.
29412
29413 2009-10-29  Eric Blake  <ebb9@byu.net>
29414
29415         filenamecat-lgpl: adjust clients
29416         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
29417         filenamecat.
29418         * modules/renameat (Depends-on): Likewise.
29419
29420         filenamecat: split into filenamecat-lgpl
29421         * modules/filenamecat-lgpl: New module.
29422         * modules/filenamecat (Files): Move library-safe files into
29423         filenamecat-lgpl.
29424         (Depends-on): Add filenamecat-lgpl.
29425         (configure.ac): Declare witness.
29426         * lib/filenamecat.h (file_name_concat): Only declare when using
29427         GPL module.
29428         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
29429         Move...
29430         * lib/filenamecat-lgpl.c: ...into new file.
29431         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
29432         (gl_FILE_NAME_CONCAT): Use it.
29433         * MODULES.html.sh (File system functions): Mention new module.
29434
29435         argp: avoid memory leak
29436         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
29437         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
29438         base_name, since the latter malloc()s and can call exit().
29439         Leak introduced 2006-07-03.
29440
29441         dirname-lgpl: adjust clients that don't need full dirname
29442         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
29443         * modules/filenamecat (Depends-on): Likewise.
29444         * modules/linkat (Depends-on): Likewise.
29445         * modules/mkancesdirs (Depends-on): Likewise.
29446         * modules/mkdir (Depends-on): Likewise.
29447         * modules/openat (Depends-on): Likewise.
29448         * modules/savewd (Depends-on): Likewise.
29449         * modules/rename (Depends-on): Likewise.
29450         (License): Relax license.
29451         * modules/mkdir-tests (Depends-on): Drop progname.
29452         (Makefile.am): Delete unneeded LDADD.
29453         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
29454
29455         dirname: split into dirname-lgpl
29456         * modules/dirname-lgpl: New module.
29457         * modules/dirname (Files): Move library-safe files into
29458         dirname-lgpl.
29459         (Depends-on): Add dirname-lgpl.
29460         (configure.ac): Declare witness.
29461         * modules/double-slash-root (License): Relax license.
29462         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
29463         module.
29464         * lib/dirname.c (dir_len, mdir_name): Move...
29465         * lib/dirname-lgpl.c: ...into new file.
29466         * lib/basename.c (last_component, base_len): Move...
29467         * lib/basename-lgpl.c: ...into new file.
29468         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
29469         (gl_DIRNAME): Use it.
29470         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
29471         Mention new module.
29472         * modules/dirname-tests (Depends-on): Add progname.
29473         * tests/test-dirname.c (program_name): Delete.
29474
29475         mkdir: make safe for libraries
29476         * modules/mkdir (Depends-on): Drop xalloc.
29477         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
29478         exit.
29479
29480         tests: avoid some compiler warnings
29481         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
29482         literals.
29483         * tests/test-memchr.c (main): Avoid type mismatch.
29484         * tests/test-arpa_inet.c (main): Avoid unused parameters.
29485         * tests/test-base64.c (main): Likewise.
29486         * tests/test-getdelim.c (main): Likewise.
29487         * tests/test-gethostname.c (main): Likewise.
29488         * tests/test-getline.c (main): Likewise.
29489         * tests/test-netinet_in.c (main): Likewise.
29490         * tests/test-select.c (open_server_socket, main): Likewise.
29491         * tests/test-select-stdin.c (main): Likewise.
29492         * tests/test-sockets.c (main): Likewise.
29493         * tests/test-strsignal.c (main): Likewise.
29494         * tests/test-sys_select.c (main): Likewise.
29495         * tests/test-sys_socket.c (main): Likewise.
29496         * tests/test-u64.c (main): Likewise.
29497         * tests/test-xfprintf-posix.c (main): Likewise.
29498         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
29499
29500         sockets: avoid compiler warning
29501         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
29502
29503         maint: detect usage(1) and other suspicious exits
29504         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
29505
29506 2009-10-29  Jim Meyering  <meyering@redhat.com>
29507
29508         timespec: long-to-int truncation could make timespec_cmp malfunction
29509         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
29510         a multiple of 2^32 nanoseconds as no difference.
29511
29512 2009-10-28  Jim Meyering  <meyering@redhat.com>
29513
29514         fprintftime: wrap macro code argument in "do {...} while(0)"
29515         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
29516         cpy macro must be a statement that can be followed by a semicolon.
29517         Now that the else clause contains a comment and is hence longer
29518         than one line, I require curly braces.  That in turn requires
29519         that we wrap this code block in the standard do...while(0).
29520
29521         fprintftime: remove stray semicolon from previous change
29522         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
29523
29524         fprintftime: avoid a warning about ignored fwrite return value
29525         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
29526         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
29527         that is unsafe.
29528         * modules/fprintftime (Depends-on): Add ignore-value.
29529
29530         exclude: avoid an unwarranted warning
29531         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
29532
29533 2009-10-27  Eric Blake  <ebb9@byu.net>
29534
29535         fseek: avoid compilation failure when fflush is replaced
29536         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
29537         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
29538         module is in use.
29539         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
29540         module is not in use; since REPLACE_FSEEK worked otherwise.
29541         (GNULIB_FTELLO): Likewise for ftell.
29542         Reported by Ian Beckwith and others.
29543
29544 2009-10-27  Bruno Haible  <bruno@clisp.org>
29545
29546         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
29547         Reported by Jim Meyering.
29548
29549 2009-10-27  Jim Meyering  <jim@meyering.net>
29550             Bruno Haible  <bruno@clisp.org>
29551
29552         Avoid warning despite dropping the return value of fwrite.
29553         * lib/unicodeio.c: Include ignore-value.h.
29554         (fwrite_success_callback): Explicitly ignore fwrite's return value.
29555         * modules/unicodeio (Depends-on): Add ignore-value.
29556
29557 2009-10-26  Eric Blake  <ebb9@byu.net>
29558
29559         areadlinkat: fix fallback path
29560         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
29561         pointer and zero.
29562
29563 2009-10-22  Pádraig Brady  <P@draigBrady.com>
29564
29565         Use a better IO block size for modern systems
29566         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
29567         * lib/md2.c: Likewise.
29568         * lib/md4.c: Likewise.
29569         * lib/md5.c: Likewise.
29570         * lib/sha1.c: Likewise.
29571         * lib/sha256.c: Likewise.
29572         * lib/sha512.c: Likewise.
29573
29574 2009-10-22  Eric Blake  <ebb9@byu.net>
29575
29576         tests: avoid several compiler warnings
29577         * tests/test-getcwd.c (main): Avoid buffer underflow.
29578         * tests/test-getdate.c (main): String literals are not safe with
29579         putenv, so use setenv.  Declare unused argument.
29580         * modules/getdate-tests (Depends-on): Add setenv.
29581         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
29582         problems with string literals in char *.
29583         * tests/test-hash.c (main): Avoid shadowing declaration.
29584         (insert_new): Treat string literals as char const *.
29585         * tests/test-getopt.h (test_getopt): Likewise.
29586         (getopt_loop): Alter types to minimize casting elsewhere.
29587         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
29588         (test_getopt_long_posix): Likewise.
29589         (do_getopt_long): Add wrapper to minimize casting.
29590         * tests/test-atexit.c (clear_temp_file): Use void.
29591         * tests/test-areadlink-with-size.c (main): Declare unused
29592         arguments.
29593         * tests/test-areadlink.c (main): Likewise.
29594         * tests/test-areadlinkat-with-size.c (main): Likewise.
29595         * tests/test-areadlinkat.c (main): Likewise.
29596         * tests/test-canonicalize-lgpl.c (main): Likewise.
29597         * tests/test-canonicalize.c (main): Likewise.
29598         * tests/test-dirent-safer.c (main): Likewise.
29599         * tests/test-dirname.c (main): Likewise.
29600         * tests/test-dup2.c (main): Likewise.
29601         * tests/test-fchdir.c (main): Likewise.
29602         * tests/test-fcntl-h.c (main): Likewise.
29603         * tests/test-fcntl-safer.c (main): Likewise.
29604         * tests/test-fdopendir.c (main): Likewise.
29605         * tests/test-fdutimensat.c (main): Likewise.
29606         * tests/test-fflush.c (main): Likewise.
29607         * tests/test-filenamecat.c (main): Likewise.
29608         * tests/test-filevercmp.c (main): Likewise.
29609         * tests/test-fopen-safer.c (main): Likewise.
29610         * tests/test-fopen.c (main): Likewise.
29611         * tests/test-fpending.c (main): Likewise.
29612         * tests/test-fpurge.c (main): Likewise.
29613         * tests/test-freading.c (main): Likewise.
29614         * tests/test-fstatat.c (main): Likewise.
29615         * tests/test-fsync.c (main): Likewise.
29616         * tests/test-futimens.c (main): Likewise.
29617         * tests/test-getndelim2.c (main): Likewise.
29618         * tests/test-gettimeofday.c (main): Likewise.
29619         * tests/test-getopt.c (main): Likewise.
29620         * tests/test-i-ring.c (main): Likewise.
29621         * tests/test-inttypes.c (main): Likewise.
29622         * tests/test-link.c (main): Likewise.
29623         * tests/test-lstat.c (main): Likewise.
29624         * tests/test-math.c (main): Likewise.
29625         * tests/test-md5.c (main): Likewise.
29626         * tests/test-memchr2.c (main): Likewise.
29627         * tests/test-memrchr.c (main): Likewise.
29628         * tests/test-mkdir.c (main): Likewise.
29629         * tests/test-mkdirat.c (main): Likewise.
29630         * tests/test-mkfifoat.c (main): Likewise.
29631         * tests/test-open.c (main): Likewise.
29632         * tests/test-openat-safer.c (main): Likewise.
29633         * tests/test-openat.c (main): Likewise.
29634         * tests/test-quotearg.c (main): Likewise.
29635         * tests/test-rawmemchr.c (main): Likewise.
29636         * tests/test-readlink.c (main): Likewise.
29637         * tests/test-remove.c (main): Likewise.
29638         * tests/test-rename.c (main): Likewise.
29639         * tests/test-renameat.c (main): Likewise.
29640         * tests/test-rmdir.c (main): Likewise.
29641         * tests/test-sha1.c (main): Likewise.
29642         * tests/test-signal.c (main): Likewise.
29643         * tests/test-sigaction.c (main): Likewise.
29644         * tests/test-stat.c (main): Likewise.
29645         * tests/test-stat-time.c (main): Likewise.
29646         * tests/test-stddef.c (main): Likewise.
29647         * tests/test-stdint.c (main): Likewise.
29648         * tests/test-stdio.c (main): Likewise.
29649         * tests/test-stdlib.c (main): Likewise.
29650         * tests/test-strchrnul.c (main): Likewise.
29651         * tests/test-strerror.c (main): Likewise.
29652         * tests/test-string.c (main): Likewise.
29653         * tests/test-strtod.c (main): Likewise.
29654         * tests/test-strverscmp.c (main): Likewise.
29655         * tests/test-symlink.c (main): Likewise.
29656         * tests/test-symlinkat.c (main): Likewise.
29657         * tests/test-sys_stat.c (main): Likewise.
29658         * tests/test-sys_time.c (main): Likewise.
29659         * tests/test-time.c (main): Likewise.
29660         * tests/test-unistd.c (main): Likewise.
29661         * tests/test-unlink.c (main): Likewise.
29662         * tests/test-unlinkat.c (main): Likewise.
29663         * tests/test-utimens.c (main): Likewise.
29664         * tests/test-utimensat.c (main): Likewise.
29665         * tests/test-version-etc.c (main): Likewise.
29666         * tests/test-wchar.c (main): Likewise.
29667         * tests/test-wctype.c (main): Likewise.
29668         * tests/test-xprintf-posix.c (main): Likewise.
29669         * tests/test-posixtm.c (main): Likewise.
29670         (STREQ): Delete unused macro.
29671         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
29672         shadowed variables.
29673         * tests/test-memchr.c (main): Likewise.
29674
29675 2009-10-21  Eric Blake  <ebb9@byu.net>
29676
29677         areadlinkat: avoid failure on older glibc
29678         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
29679         rather than mis-comparing 0 against FUNC_RESULT of char*.
29680
29681 2009-10-21  Bruno Haible  <bruno@clisp.org>
29682
29683         * modules/stpncpy (License): Relicense under LGPLv2+.
29684         Reported by David Lutterkort <lutter@redhat.com>.
29685
29686 2009-10-20  Eric Blake  <ebb9@byu.net>
29687
29688         utimensat: work around Solaris 9 bug
29689         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
29690         has trailing slash bugs.
29691         * tests/test-lutimens.h (test_lutimens): Enhance test.
29692         * tests/test-utimens.h (test_utimens): Likewise.
29693         * doc/posix-functions/utime.texi (utime): Enhance documentation.
29694         * doc/posix-functions/utimes.texi (utimes): Likewise.
29695         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
29696         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
29697         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
29698         * doc/posix-functions/futimens.texi (futimens): Likewise.
29699
29700         fdutimensat: new module
29701         * modules/fdutimensat: New file.
29702         * lib/fdutimensat.c (fdutimensat): Likewise.
29703         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
29704         * MODULES.html.sh (File system functions): Mention module.
29705         * modules/fdutimensat-tests: New test.
29706         * tests/test-fdutimensat.c: Likewise.
29707
29708         doc: regenerate INSTALL
29709         * doc/INSTALL: Reflect recent autoconf update.
29710         * doc/INSTALL.ISO: Likewise.
29711         * doc/INSTALL.UTF-8: Likewise.
29712
29713 2009-10-20  Pádraig Brady  <P@draigBrady.com>
29714
29715         acl: warn if ACL support is not detected
29716         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
29717
29718 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
29719
29720         * lib/nproc.h: Add extern "C" block for C++.
29721
29722 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
29723             Bruno Haible  <bruno@clisp.org>
29724
29725         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
29726         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
29727         * doc/posix-functions/isalpha.texi: Likewise.
29728         * doc/posix-functions/isblank.texi: Likewise.
29729         * doc/posix-functions/iscntrl.texi: Likewise.
29730         * doc/posix-functions/isdigit.texi: Likewise.
29731         * doc/posix-functions/isgraph.texi: Likewise.
29732         * doc/posix-functions/islower.texi: Likewise.
29733         * doc/posix-functions/isprint.texi: Likewise.
29734         * doc/posix-functions/ispunct.texi: Likewise.
29735         * doc/posix-functions/isspace.texi: Likewise.
29736         * doc/posix-functions/isupper.texi: Likewise.
29737         * doc/posix-functions/isxdigit.texi: Likewise.
29738
29739 2009-10-18  Bruno Haible  <bruno@clisp.org>
29740
29741         Tests for module 'isblank'.
29742         * modules/isblank-tests: New file.
29743         * tests/test-isblank.c: New file.
29744
29745         New module 'isblank'.
29746         * lib/isblank.c: New file.
29747         * m4/isblank.m4: New file.
29748         * modules/isblank: New file.
29749         * doc/posix-functions/isblank.texi: Mention the new module.
29750
29751 2009-10-18  Bruno Haible  <bruno@clisp.org>
29752
29753         New module 'ctype'.
29754         * lib/ctype.in.h: New file.
29755         * m4/ctype.m4: New file.
29756         * modules/ctype: New file.
29757         * doc/posix-headers/ctype.texi: Mention the new module.
29758
29759 2009-10-18  Jim Meyering  <meyering@redhat.com>
29760
29761         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
29762         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
29763         right after its initialization, rather than farther down.
29764         Keeping these in close proximity makes it easier to ensure
29765         that each such variable is initialized.  E.g.,
29766
29767             LIB_CLOCK_GETTIME=
29768             AC_SUBST([LIB_CLOCK_GETTIME])
29769
29770         This change also increments these serial numbers.
29771         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
29772         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
29773         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
29774
29775 2009-10-18  Bruno Haible  <bruno@clisp.org>
29776
29777         Don't let environment variables perturb build.
29778         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
29779         (gl_PREREQ_GETHRXTIME): ... not here.
29780
29781 2009-10-18  Bruno Haible  <bruno@clisp.org>
29782
29783         Avoid symlink attack in localcharset module.
29784         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
29785         (O_NOFOLLOW): Define fallback.
29786         (get_charset_aliases): Don't open the file if it is a symbolic link.
29787         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
29788         gl_FCNTL_H.
29789         (gl_FCNTL_H): Require it.
29790         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
29791         * modules/localcharset (Files): Add m4/fcntl_h.m4.
29792         Reported by Fergal Glynn <fglynn@veracode.com>.
29793
29794 2009-10-18  Bruno Haible  <bruno@clisp.org>
29795
29796         Implement nproc for mingw.
29797         * lib/nproc.c: Include <windows.h>
29798         (num_processors): On native Windows platforms, try GetSystemInfo.
29799
29800 2009-10-18  Bruno Haible  <bruno@clisp.org>
29801
29802         Implement nproc for IRIX.
29803         * lib/nproc.c: Include <sys/sysmp.h>.
29804         (num_processors): On IRIX systems, try sysmp.
29805         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
29806
29807 2009-10-18  Bruno Haible  <bruno@clisp.org>
29808
29809         Implement nproc for HP-UX.
29810         * lib/nproc.c: Include <sys/pstat.h>
29811         (num_processors): On HP-UX systems, try pstat_getdynamic.
29812         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
29813         pstat_getdynamic.
29814
29815 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
29816             Bruno Haible  <bruno@clisp.org>
29817
29818         Implement nproc for NetBSD, OpenBSD.
29819         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
29820         (ARRAY_SIZE): New macro.
29821         (num_processors): On BSD systems, try sysctl of HW_NCPU.
29822         * m4/nproc.m4: New file.
29823         * modules/nproc (Files): Add m4/nproc.m4.
29824         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
29825         (Makefile.am): Instead, augment lib_SOURCES.
29826
29827 2009-10-18  Bruno Haible  <bruno@clisp.org>
29828
29829         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
29830         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
29831         sys/param.h.
29832
29833 2009-10-16  Eric Blake  <ebb9@byu.net>
29834
29835         utimensat: new module
29836         * modules/utimensat: New file.
29837         * lib/utimensat.c (utimensat): Likewise.
29838         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
29839         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
29840         so we can work around Linux bugs.
29841         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
29842         * modules/sys_stat (Makefile.am): Substitute them.
29843         * lib/sys_stat.in.h (utimensat): Declare it.
29844         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
29845         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
29846         * modules/utimensat-tests: New test.
29847         * tests/test-utimensat.c: Likewise.
29848
29849         utimens: let lutimens work on non-symlinks
29850         * lib/utimens.c (lutimens): Fall back to utimens rather than
29851         failing with ENOSYS, when file is not a symlink.
29852         (utimens): Reduce redirection.
29853         * tests/test-lutimens.h (test_lutimens): Update test to cover
29854         non-symlinks.
29855         * tests/test-utimens.h (test_utimens): Update test to cover
29856         symlinks.
29857         * tests/test-utimens.c (main): Update caller.
29858
29859         utimens: cache whether utimensat syscall works
29860         * lib/utimens.c (utimensat_works_really): New cache variable.
29861         (fdutimens, lutimens): Use it to avoid failing syscall.
29862
29863         test-stat-time, test-utimens: improve portability
29864         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
29865         ext4 on alpha, and for cygwin.
29866         * tests/test-utimens-common.h: New file.
29867         (nap): Factor delays into single function.
29868         * tests/test-lutimens.h (test_lutimens): Use new header.
29869         * tests/test-futimens.h (test_futimens): Likewise.
29870         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
29871         timestamps to occur from same machine, as was done previously for
29872         test_utimens.
29873         * modules/utimens-tests (Files): Ship new file.
29874         * modules/futimens-tests (Files): Likewise.
29875         Reported in part by Jim Meyering.
29876
29877         sys_stat: sort replacement declarations
29878         * lib/sys_stat.in.h: Sort declarations.
29879         * lib/futimens.c (futimens): Fix typo.
29880
29881 2009-10-15  Jim Meyering  <meyering@redhat.com>
29882
29883         don't let environment settings perturb build
29884         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
29885         could cause a configure-time and/or build-time malfunction.
29886         Typically, a configure-time function-in-library test is performed
29887         via code like this:
29888
29889           LIB_VAR=
29890           AC_SUBST([LIB_VAR])
29891           prefix_saved_LIBS=$LIBS
29892             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
29893                        [test "$ac_cv_search_FUNC" = "none required" ||
29894                         LIB_VAR=$ac_cv_search_FUNC])
29895           LIBS=$prefix_saved_LIBS
29896
29897         However, in each of the files affected by this change, the LIB_VAR=
29898         initialization was omitted.  Thus, when set in the environment, its
29899         value would propagate into generated Makefiles when FUNC is not found
29900         in LIB_NAME.
29901         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
29902         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
29903         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
29904
29905 2009-10-14  Eric Blake  <ebb9@byu.net>
29906
29907         fchdir: avoid infinite recursion in mingw
29908         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
29909         recursing.
29910
29911         test-stat-time: port to mingw
29912         * tests/test-stat-time.c (force_unlink): Return a value.
29913         (test_ctime) [W32]: Fix compilation error.
29914         (nap): Don't call usleep with too large an argument.  Use
29915         force_unlink.
29916         * doc/pastposix-functions/usleep.texi (usleep): Document the
29917         portability issue.
29918
29919 2009-10-13  Jim Meyering  <meyering@redhat.com>
29920
29921         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
29922         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
29923         * modules/pipe-filter-ii: Likewise.
29924         * modules/sys_socket-tests: Likewise.
29925         * modules/tsearch-tests: Likewise.
29926         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
29927         (check): Depend on it.
29928
29929 2009-10-12  Eric Blake  <ebb9@byu.net>
29930
29931         utimens-tests: port to NFS file systems
29932         * tests/test-utimens.h (test_utimens): Refactor utimecmp
29933         comparisons to avoid spurious failures from timestamp drift
29934         between NFS machines.
29935
29936 2009-10-12  Eric Blake  <ebb9@byu.net>
29937
29938         stat-time-tests: minor cleanups
29939         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
29940         * tests/test-stat-time.c (nap): Separate assignment from call.
29941         Suggested by Paolo Bonzini and Bruno Haible.
29942
29943         sys_stat: guarantee struct timespec
29944         * lib/sys_stat.in.h (includes): Always include <time.h>
29945         * modules/sys_stat (Depends-on): Add time.
29946         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
29947         mode_t permission values.
29948         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
29949         get at subsecond timestamps.
29950
29951 2009-10-10  Eric Blake  <ebb9@byu.net>
29952
29953         futimens: new module
29954         * modules/futimens: New file.
29955         * lib/futimens.c (futimens): Likewise.
29956         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
29957         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
29958         we can work around Linux bugs.
29959         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
29960         * modules/sys_stat (Makefile.am): Substitute them.
29961         * lib/sys_stat.in.h (futimens): Declare it.
29962         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
29963         * doc/posix-functions/futimens.texi (futimens): Likewise.
29964         * modules/futimens-tests: New test.
29965         * tests/test-futimens.c: Likewise.
29966
29967         utimens: introduce fdutimens
29968         * lib/utimens.h (fdutimens): New prototype.
29969         * lib/utimens.c (gl_futimens): Move guts...
29970         (fdutimens): ...to new interface.
29971         * tests/test-utimens.c (do_fdutimens): Use it.
29972
29973         utimens: add UTIME_NOW and UTIME_OMIT support
29974         * lib/utimens.c (validate_timespec, update_timespec): New helper
29975         functions.
29976         (gl_futimens, lutimens): Use them.
29977         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
29978         stdbool, sys_stat.
29979         (Link): Mention resulting library dependency.
29980         * modules/utimecmp (Link): Likewise.
29981         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
29982         (Makefile.am): Pick up library dependency.
29983         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
29984         definition.
29985         * tests/test-sys_stat.c: Test the definitions.
29986         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
29987         * NEWS: Document library dependency.
29988
29989         utimecmp: support symlink timestamps
29990         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
29991         hashing when possible.  Use pathconf when available.
29992         (SYSCALL_RESOLUTION): Recognize tighter resolution.
29993         * modules/utimecmp (Depends-on): Add lstat.
29994
29995         utimens: add lutimens interface
29996         * lib/utimens.c (lutimens): New function.
29997         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
29998         * lib/utimens.h (lutimens): Declare new interface.
29999         * tests/test-utimens.c (main): Enhance test.
30000         * tests/test-lutimens.h (test_lutimens): New file.
30001         * modules/utimens-tests (Files): Distribute it.
30002         (Depends-on): Add symlink.
30003         (configure.ac): Check for usleep.
30004
30005         utimens: validate futimens usage
30006         * lib/utimens.c (gl_futimens): Require valid fd up front, using
30007         fewer syscalls on failure later on.  Avoid compiler warning on
30008         mingw.
30009         * modules/utimens (Depends-on): Add dup2.
30010
30011         utimens: add test
30012         * modules/utimens-tests: New test.
30013         * tests/test-utimens.h: New file.
30014         * tests/test-futimens.h: Likewise.
30015         * tests/test-utimens.c: Likewise.
30016
30017         doc: mention timestamp portability issues
30018         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
30019         instead.
30020         * doc/posix-functions/utime.texi (utime): Likewise.
30021         * doc/posix-functions/utimes.texi (utimes): Likewise.
30022         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
30023         instead.
30024         * doc/posix-functions/futimens.texi (futimens): Mention utimens
30025         module.
30026         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
30027         Mention weakness with symlink timestamps.
30028         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
30029         to utimensat/futimens instead.
30030         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
30031
30032         test-dup2: enhance test
30033         * tests/test-dup2.c (main): Also check AT_FDCWD.
30034
30035         test-stat-time: avoid more spurious failures
30036         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
30037         xfs; and avoid race if the two timestamps cross quantization edge.
30038
30039         relocatable: prefer 'file system' over 'filesystem'
30040         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
30041         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
30042         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
30043         * doc/relocatable.texi (Enabling Relocatability): Likewise.
30044         * lib/relocatable.c (compute_curr_prefix): Likewise.
30045
30046 2009-10-10  Jim Meyering  <meyering@redhat.com>
30047
30048         stat-time-tests: check for the usleep function
30049         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
30050
30051 2009-10-10  Bruno Haible  <bruno@clisp.org>
30052
30053         * modules/xnanosleep: Put the Link section after the Include section.
30054
30055 2009-10-09  Eric Blake  <ebb9@byu.net>
30056
30057         dup2: work around FreeBSD 6.1 bug
30058         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
30059         * doc/posix-functions/dup2.texi (dup2): Document it.
30060         Reported by Nelson H. F. Beebe and Jim Meyering.
30061
30062         test-stat-time: port to buggy NFS clients
30063         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
30064         (test_ctime): Also skip test if mtime and ctime are skewed.
30065
30066         maint: prefer 'file system' over 'filesystem'
30067         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
30068         * doc/posix-functions/lstat.texi (lstat): Likewise.
30069         * lib/file-has-acl.c (file_has_acl): Likewise.
30070         * lib/fwriteerror.c [TEST]: Likewise.
30071         * tests/test-areadlink.h (test_areadlink): Likewise.
30072         * tests/test-areadlinkat-with-size.c (main): Likewise.
30073         * tests/test-areadlinkat.c (main): Likewise.
30074         * tests/test-canonicalize-lgpl.c (main): Likewise.
30075         * tests/test-canonicalize.c (main): Likewise.
30076         * tests/test-fstatat.c (main): Likewise.
30077         * tests/test-linkat.c (main): Likewise.
30078         * tests/test-lstat.h (test_lstat_func): Likewise.
30079         * tests/test-mkdir.h (test_mkdir): Likewise.
30080         * tests/test-readlink.h (test_readlink): Likewise.
30081         * tests/test-remove.c (main): Likewise.
30082         * tests/test-rename.h (test_rename): Likewise.
30083         * tests/test-renameat.c (main): Likewise.
30084         * tests/test-rmdir.h (test_rmdir_func): Likewise.
30085         * tests/test-symlink.h (test_symlink): Likewise.
30086         * tests/test-symlinkat.c (main): Likewise.
30087         * tests/test-unlink.h (test_unlink_func): Likewise.
30088         * tests/test-unlinkat.c (main): Likewise.
30089
30090         maint: make realtime library usage explicit
30091         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
30092         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
30093         * modules/settime (Link): Likewise.
30094         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
30095
30096         test-stat-time: speed up execution
30097         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
30098         warning on mingw.
30099         (nap): New helper function.
30100         (prepare_test): Use it to reduce sleep time.
30101         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
30102         execution.
30103         * modules/stat-time-tests (configure.ac): Check for usleep.
30104
30105 2009-10-09  Jim Meyering  <meyering@redhat.com>
30106
30107         selinux-h: always use getfilecon wrappers
30108         * lib/getfilecon.c: New file.
30109         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
30110         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
30111         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
30112         (fgetfilecon): Provide a stub.
30113         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
30114         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
30115         file unconditionally.
30116         When <selinux/selinux.h> is found, arrange to use wrappers.
30117         * modules/selinux-h (Files): Add getfilecon.c.
30118         (Makefile.am): Substitute include-next-related bits
30119         into the now-always-generated selinux/selinux.h file.
30120         * doc/glibc-functions/lgetfilecon.texi: New file.
30121         * doc/glibc-functions/fgetfilecon.texi: New file.
30122         * doc/glibc-functions/getfilecon.texi: New file.
30123         * doc/glibc-functions/getfilecon-desc.texi: New file.
30124         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
30125         which to pull in the new files.
30126         * MODULES.html.sh (Misc): Add selinux-h.
30127
30128 2009-10-08  Jim Meyering  <meyering@redhat.com>
30129
30130         unistd: fix comment typo
30131         * lib/unistd.in.h (euidaccess): Fix a comment typo.
30132
30133 2009-10-08  Eric Blake  <ebb9@byu.net>
30134
30135         areadlink: use SIZE_MAX consistently
30136         * modules/areadlink (Depends-on): Add stdint.
30137         * modules/areadlink-with-size (Depends-on): Likewise.
30138         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
30139         gives NULL; drop sys/types, since unistd gives size_t; and add
30140         stdint for SIZE_MAX.
30141         (SIZE_MAX): Rely on headers.
30142         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
30143         and add stdint.
30144         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
30145         (SIZE_MAX): Likewise.
30146         (INITIAL_BUF_SIZE): Turn into enum.
30147         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
30148
30149 2009-10-08  Jim Meyering  <meyering@redhat.com>
30150
30151         areadlinkat: avoid compilation failure
30152         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
30153         Fix typo in comment.
30154
30155 2009-10-07  Eric Blake  <ebb9@byu.net>
30156
30157         areadlinkat-with-size: new module
30158         * modules/areadlinkat-with-size: New module.
30159         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
30160         * lib/areadlink.h (areadlinkat): Declare it.
30161         * MODULES.html.sh (File system functions): Mention it.
30162         * modules/areadlinkat-with-size-tests: New test.
30163         * tests/test-areadlinkat-with-size.c: New file.
30164
30165         xreadlinkat: new module
30166         * modules/xreadlinkat: New module.
30167         * lib/xreadlinkat.c (xreadlinkat): New file.
30168         * lib/xreadlink.h (xreadlinkat): Declare it.
30169         * MODULES.html.sh (File system functions): Mention it.
30170
30171         areadlinkat: new module
30172         * lib/at-func.c (FUNC_FAIL): New define.
30173         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
30174         * modules/areadlinkat: New module.
30175         * lib/linkat.c (areadlinkat): Move...
30176         * lib/areadlinkat.c (areadlinkat): ...to new file.
30177         * lib/areadlink.h (areadlinkat): Declare it.
30178         * modules/linkat (Depends-on): Add areadlinkat.
30179         * MODULES.html.sh (File system functions): Mention it.
30180         * modules/areadlinkat-tests: New test.
30181         * tests/test-areadlinkat.c: New file.
30182
30183         areadlink, areadlink-with-size: add tests
30184         * modules/areadlink-tests: New test.
30185         * modules/areadlink-with-size-tests: Likewise.
30186         * tests/test-areadlink.h: New file.
30187         * tests/test-areadlink.c: Likewise.
30188         * tests/test-areadlink-with-size.c: Likewise.
30189
30190         maint: minor cleanups
30191         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
30192         _UNUSED_PARAMETER_ instead.
30193         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
30194         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
30195         * modules/linkat-tests (Files): Distribute test-link.h.
30196
30197         openat, utimens: whitespace cleanup
30198         * lib/openat.c: Prefer space throughout, rather than mix of 8
30199         spaces vs. tabs.
30200         * lib/at-func.c: Likewise.
30201         * lib/utimens.c: Likewise.
30202
30203         openat: avoid using wrong fd
30204         * lib/openat.c (openat_permissive): Reject user's fd if saving the
30205         working directory chooses same fd.
30206         * lib/at-func.c (AT_FUNC_NAME): Likewise.
30207
30208         mkdir, mkdirat: fix cygwin 1.5.x bug
30209         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
30210         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
30211         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
30212         bug.
30213         (gl_PREREQ_MKDIR): Delete unused macro.
30214         * modules/mkdir (Files): Track file rename.
30215         (configure.ac): Update macro name.
30216         * modules/openat (Depends-on): Add mkdir.
30217         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
30218
30219         mkdir, mkdirat: add tests
30220         * modules/mkdir-tests: New test.
30221         * tests/test-mkdir.h: New file.
30222         * tests/test-mkdir.c: Likewise.
30223         * tests/test-mkdirat.c: Likewise.
30224         * modules/openat-tests (Files): Add new files.
30225         (Makefile.am): Run new test.
30226
30227 2009-10-06  Eric Blake  <ebb9@byu.net>
30228
30229         doc: tweak *at function documentation
30230         * doc/posix-functions/faccessat.texi (faccessat): Mention
30231         known issue with replacement.
30232         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
30233         * doc/posix-functions/linkat.texi (linkat): Likewise.
30234         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
30235         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
30236         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
30237         * doc/posix-functions/renameat.texi (renameat): Likewise.
30238         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
30239
30240         openat: fix GNU/Hurd bug in unlinkat
30241         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
30242         broken.
30243         * doc/posix-functions/unlink.texi (unlink): Document this.
30244         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
30245
30246         fdopendir: fix GNU/Hurd bug
30247         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
30248         allowing non-directory fds.
30249         * lib/fdopendir.c (rpl_fdopendir): Work around it.
30250         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
30251         * modules/dirent (Makefile.am): Substitute it.
30252         * lib/dirent.in.h (fdopendir): Declare replacement.
30253         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
30254         * tests/test-fdopendir.c (main): Test something other than
30255         /dev/null, since on Hurd that behaves like a directory.
30256
30257         test-symlink: port to GNU/Hurd
30258         * tests/test-symlink.h (test_symlink): Relax expected errno.
30259
30260         doc: tweak more cygwin information
30261         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
30262         now compatible with glibc.
30263         * doc/posix-functions/getopt.texi (getopt): Likewise.
30264
30265         getopt-gnu: add another test
30266         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
30267         guarantee behavior relied on by m4.
30268         * tests/test-getopt.c (main): Use it.
30269         * modules/getopt-posix-tests (Depends-on): Add setenv.
30270         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
30271
30272         getopt: fix compilation on darwin
30273         * lib/getopt.in.h (includes): Leave breadcrumbs during system
30274         include.
30275         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
30276         Reported by Ludovic Courtès.
30277
30278 2009-10-06  Bruno Haible  <bruno@clisp.org>
30279
30280         * modules/size_max (Description): Discourage its use.
30281         Reported by Simon Josefsson.
30282
30283 2009-10-06  Jim Meyering  <meyering@redhat.com>
30284
30285         linkat: avoid compilation failure
30286         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
30287
30288 2009-10-05  Eric Blake  <ebb9@byu.net>
30289
30290         linkat: support Linux 2.6.17
30291         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
30292         linkat on Linux, but allow cache variable override.
30293         * lib/linkat.c (rpl_linkat): Define override.
30294         * modules/linkat (Depends-on): Add symlinkat.
30295         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
30296         * modules/unistd (Makefile.am): Substitute it.
30297         * lib/unistd.in.h (linkat): Declare replacement.
30298         Reported by Pádraig Brady.
30299
30300         quotearg: port test to systems with C.UTF-8 locale
30301         * tests/test-quotearg.c (struct result_strings): Add another
30302         member, differentiating between C.ASCII and C.UTF-8 handling.
30303         (compare_strings): Add parameter.
30304         (main): Adjust all callers.
30305
30306         getopt: avoid clash with FreeBSD _getopt_internal
30307         * lib/getopt.in.h (_getopt_internal): Override the name.
30308         * lib/getopt_int.h (includes): Pick up any overrides.
30309         Reported by Reuben Thomas.
30310
30311         hash: allow C89 compilation
30312         * lib/hash.c (check_tuning): Move declaration before statement.
30313         Reported by Reuben Thomas.
30314
30315 2009-10-05  Karl Berry  <karl@gnu.org>
30316
30317         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
30318
30319 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
30320             Bruno Haible  <bruno@clisp.org>
30321
30322         * lib/uname.c (uname): Use a table-driven algorithm to compute
30323         Windows NT versions.
30324
30325 2009-10-04  Bruno Haible  <bruno@clisp.org>
30326
30327         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
30328         program_invocation_short_name.
30329         * modules/progname (configure.ac): Test for presence of
30330         program_invocation_short_name.
30331         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
30332
30333 2009-10-04  Bruno Haible  <bruno@clisp.org>
30334
30335         * lib/progname.c (set_program_name): Fix comment.
30336         Reported by Jim Meyering.
30337
30338 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
30339             Bruno Haible  <bruno@clisp.org>
30340
30341         * lib/uname.c: Include <string.h>.
30342         (uname): Do only one call to GetVersionEx in the common case.
30343
30344 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
30345             Bruno Haible  <bruno@clisp.org>
30346
30347         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
30348         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
30349         (uname): Add support for Windows CE and various non-x86 CPU types.
30350
30351 2009-10-03  Bruno Haible  <bruno@clisp.org>
30352
30353         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
30354         invocation to tests/configure.ac.
30355         Reported by Ian Beckwith <ianb@erislabs.net>.
30356
30357 2009-10-02  Eric Blake  <ebb9@byu.net>
30358
30359         fchdir: avoid compiler warning
30360         * lib/fchdir.c (canonicalize_file_name)
30361         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
30362
30363         test-open: support mingw errno values
30364         * tests/test-open.h (test_open): Relax test.
30365         * tests/test-fopen.h (test_fopen): Likewise.
30366         * tests/test-openat-safer.c (main): Likewise.
30367
30368         open: fix opening directory on mingw
30369         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
30370
30371         test-open: on GNU/Hurd, /dev/null is a directory
30372         * tests/test-fopen.h (main): Rename...
30373         (test_fopen): ...to this.  Use a guaranteed non-directory when
30374         confirming open behavior on trailing slash.
30375         * tests/test-openat-safer.c (main): Likewise.
30376         * tests/test-open.h (main): Likewise....
30377         (test_open): ...to this.
30378         * tests/test-fopen.c (main): Adjust caller.
30379         * tests/test-fopen-safer.c (main): Likewise.
30380         * tests/test-open.c (main): Likewise.
30381         * tests/test-fcntl-safer.c (main): Likewise.
30382         Reported by Samuel Thibault.
30383
30384         rename, fchdir: don't ignore chdir failure
30385         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
30386         * lib/rename.c (rpl_rename) [W32]: Likewise.
30387         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
30388         an empty destination directory if source cannot be renamed,
30389         although there is still possibility for failure.
30390         * doc/posix-functions/rename.texi (rename): Document the race.
30391         Reported by Jim Meyering.
30392
30393         maint: cleanup whitespace in recent commits
30394         * lib/rename.c (rpl_rename): Remove tabs.
30395         * tests/test-link.h (test_link): Likewise.
30396         * lib/fchdir.c (get_name): Likewise.
30397         Reported by Jim Meyering.
30398
30399 2009-10-02  Ben Pfaff  <blp@gnu.org>
30400
30401         relocatable-prog-wrapper: Add missing dependency on
30402         double-slash-root.
30403         * modules/relocatable-prog-wrapper: Add dependency.
30404         Reported by Ian Beckwith <ianb@erislabs.net>.
30405
30406 2009-10-02  Eric Blake  <ebb9@byu.net>
30407
30408         renameat: fix Solaris bugs
30409         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
30410         needed fixing.
30411         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
30412         * modules/stdio (Makefile.am): Substitute it.
30413         * lib/stdio.in.h (renameat): Declare replacement.
30414         * lib/renameat.c (rpl_renameat): Implement fix.
30415
30416         renameat: new module
30417         * modules/renameat: New file.
30418         * lib/renameat.c (renameat): Likewise.
30419         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
30420         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
30421         * modules/stdio (Makefile.am): Substitute them.
30422         * lib/stdio.in.h (renameat): Declare it.
30423         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
30424         * doc/posix-functions/renameat.texi (renameat): Likewise.
30425         * modules/renameat-tests: New test.
30426         * tests/test-renameat.c: Likewise.
30427
30428         rename: fix mingw bugs
30429         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
30430         directory overwrite bugs.
30431
30432         rename: fix another cygwin 1.5 bug
30433         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
30434         checks.
30435         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
30436         unnecessary cygwin workarounds.  Also work around bug with moving
30437         full directory onto an empty one.
30438         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
30439
30440         rename-dest-slash: merge into rename module
30441         * modules/rename-dest-slash (Status): Mark obsolete.
30442         (Depends-on): Add rename.
30443         (Files): Let rename do it all.
30444         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
30445         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
30446         * m4/rename-dest-slash.m4: ...so this file can be deleted.
30447         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
30448         * lib/rename.c (rpl_rename): Update comments.
30449
30450         rename: fix cygwin 1.5.x bugs
30451         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
30452         * lib/rename.c (rpl_rename): Work around them.
30453         * modules/rename (Depends-on): Add same-inode.
30454
30455         rename: fix Solaris 10 bug
30456         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
30457         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
30458         was the only bug.
30459
30460         rename: fix Solaris 9 bug
30461         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
30462         on non-directory.  Avoid calling exit.
30463         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
30464         strdup.
30465         * modules/rename-tests (Depends-on): Drop lstat.
30466         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
30467         (gl_PREREQ_RENAME): Delete unused macro.
30468
30469         rename-dest-slash: fix NetBSD bug
30470         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
30471         links.
30472         * modules/rename-dest-slash (Depends-on): Add same-inode.
30473
30474         rename-tests: new test, exposes several platform bugs
30475         * modules/rename-tests: New file.
30476         * tests/test-rename.h: Likewise.
30477         * tests/test-rename.c: Likewise.
30478         * doc/posix-functions/rename.texi (rename): Improve documentation,
30479         including bugs that will eventually be fixed in gnulib.
30480
30481 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
30482
30483         * lib/uname.c: Include <stdlib.h>
30484         (uname): Assume version info is available.
30485
30486 2009-10-02  Jim Meyering  <meyering@redhat.com>
30487
30488         gnu-web-doc-update: correct --help output
30489         * build-aux/gnu-web-doc-update: Make --help output relevant.
30490
30491         gnu-web-doc-update: add standard options
30492         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
30493
30494         gnu-web-doc-update: New module.
30495         Use this script to automatically update the on-line web documentation
30496         for your GNU project at http://www.gnu.org/software/$pkg/manual/
30497         * modules/gnu-web-doc-update: New file, from coreutils.
30498         * build-aux/gnu-web-doc-update: New script.
30499
30500 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
30501
30502         link: LoadLibrary is not needed.
30503         * lib/link.c: Use GetModuleHandle.
30504
30505 2009-10-01  Eric Blake  <ebb9@byu.net>
30506
30507         getopt: bump serial number
30508         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
30509         change.
30510
30511         tests: tighten link, rmdir, and remove tests
30512         * tests/test-link.h (includes): No need to use <config.h> here.
30513         Clean up if directory hard link was created, otherwise test for
30514         trailing '.'.
30515         * tests/test-linkat.c (main): Simplify.
30516         * tests/test-remove.c (main): Enhance test for trailing '.'.
30517         * tests/test-rmdir.h (test_rmdir_func): Likewise.
30518
30519 2009-10-01  Jim Meyering  <meyering@redhat.com>
30520
30521         maint.mk: requiring "make major" was annoying, for a "minor" release.
30522         What is intended is "stable", to contrast with alpha and beta,
30523         so require "make stable", not "make major".
30524         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
30525         (get_tool_versions): Likewise.
30526         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
30527
30528 2009-09-30  Ben Pfaff  <blp@gnu.org>
30529
30530         Fix broken build of replacement for Windows tmpfile().
30531         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
30532         flags argument added along with the 'mkostemp' module.
30533
30534 2009-09-28  Bruno Haible  <bruno@clisp.org>
30535
30536         Avoid identifier clash with POSIX function 'remove' defined as a macro.
30537         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
30538         to 'remove_elt'.
30539         (gl_list_remove): Update.
30540         * lib/gl_list.c (gl_list_remove): Update.
30541         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
30542         to 'remove_elt'.
30543         (gl_oset_remove): Update.
30544         * lib/gl_list.c (gl_oset_remove): Update.
30545         Reported by Eric Blake.
30546
30547 2009-09-28  Eric Blake  <ebb9@byu.net>
30548
30549         doc: mention yet more cygwin 1.7 status
30550         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
30551         cygwin.
30552         * doc/glibc-functions/execvpe.texi (execvpe): New file.
30553         * doc/gnulib.texi (Glibc unistd.h): Mention it.
30554
30555         argp: fix test failure
30556         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
30557         that are not upper-case.  Pass correct range to tolower.
30558
30559 2009-09-27  Jim Meyering  <meyering@redhat.com>
30560
30561         test-yesno: work around sparc-dash here-document infelicity
30562         Without this change, the literal \177 byte in a here document
30563         would make dash 0.5.5.1-3 access uninitialized memory.
30564         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
30565         Instead, use a marker, "@", and filter through tr to create the desired
30566         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
30567
30568 2009-09-27  Bruno Haible  <bruno@clisp.org>
30569
30570         Disable untested support for new flavours of ACLs on AIX.
30571         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
30572         progress.
30573         * lib/set-mode-acl.c (qset_acl): Likewise.
30574
30575 2008-12-07  Bruno Haible  <bruno@clisp.org>
30576
30577         Add support for new flavours of ACLs on AIX. (Untested.)
30578         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
30579         (file_has_acl): Add support for newer AIX.
30580         * lib/set-mode-acl.c (qset_acl): Likewise.
30581         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
30582         Rainer Tammer <tammer@tammer.net>.
30583
30584 2009-09-26  Eric Blake  <ebb9@byu.net>
30585
30586         argp: fix compilation of getopt
30587         * lib/getopt.in.h (includes): Use different guard than glibc.
30588         Reported by Sergey Poznyakoff.
30589
30590         doc: mention more cygwin 1.7 status
30591         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
30592         bug.
30593         * doc/posix-functions/execl.texi (execl): Likewise.
30594         * doc/posix-functions/execle.texi (execle): Likewise.
30595         * doc/posix-functions/execlp.texi (execlp): Likewise.
30596         * doc/posix-functions/execv.texi (execv): Likewise.
30597         * doc/posix-functions/execve.texi (execve): Likewise.
30598         * doc/posix-functions/execvp.texi (execvp): Likewise.
30599         * doc/glibc-functions/canonicalize_file_name.texi
30600         (canonicalize_file_name): Cygwin 1.7 now provides this.
30601         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
30602         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
30603         on AT_SYMLINK_NOFOLLOW.
30604
30605 2009-09-24  Eric Blake  <ebb9@byu.net>
30606
30607         test-linkat: make test more robust
30608         * tests/test-linkat.c (main): Avoid collision with EEXIST.
30609
30610         getopt: fix inclusion guards for cygwin
30611         * modules/getopt-posix (Depends-on): Add include-next.
30612         (Makefile.am): Substitute more items in replacement header.
30613         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
30614         <getopt.h>.
30615         * lib/getopt.in.h (includes): Use split inclusion guard, and
30616         prefer <getopt.h> over include <unistd.h> when one is present.
30617         (option): Also override name of 'struct option'.
30618
30619         same-inode: revert prior change; it is not yet ready
30620         * NEWS: Undo mention of this change.
30621         * lib/same-inode.h (same-inode.h): Undo tri-state change.
30622         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
30623         * lib/cycle-check.c (cycle_check): Likewise.
30624         * lib/same.c (same_name): Likewise.
30625         * lib/at-func2.c (at_func2): Likewise.
30626
30627 2009-09-23  Eric Blake  <ebb9@byu.net>
30628
30629         linkat: new module
30630         * modules/linkat: New file.
30631         * lib/at-func2.c (at_func2): Likewise.
30632         * lib/linkat.c (linkat): Likewise.
30633         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
30634         * lib/openat-priv.h (at_func2): Add declaration.
30635         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
30636         * modules/unistd (Makefile.am): Substitute them.
30637         * lib/unistd.in.h (linkat): Declare it.
30638         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
30639         * doc/posix-functions/linkat.texi (linkat): Likewise.
30640         * doc/posix-functions/link.texi (link): Tweak wording.
30641         * tests/test-link.c (main): Move guts...
30642         * tests/test-link.h (test_link): ...into new file.
30643         * modules/linkat-tests: New test.
30644         * tests/test-linkat.c: Likewise.
30645         * modules/link-tests (Files): Ship new file.
30646         (Depends-on): Add stdbool.
30647
30648         dirname: add library-safe mdir_name
30649         * lib/dirname.h (mdir_name): New prototype.
30650         * lib/dirname.c (dir_name): Move guts...
30651         (mdir_name): ...to new function that avoids xalloc_die.
30652
30653         fchdir: another mingw fix
30654         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
30655         * lib/fchdir.c (get_name): New helper method; skips canonicalize
30656         on mingw (where it has not yet been ported), and make it optional
30657         elsewhere.
30658         (_gl_register_fd): Use it.
30659
30660         same-inode: make SAME_INODE tri-state, to port to mingw
30661         * NEWS: Mention this change.
30662         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
30663         st_ino always being 0.
30664         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
30665         * lib/cycle-check.c (cycle_check): Likewise.
30666         * lib/same.c (same_name): Likewise.
30667
30668         lstat: avoid mingw compilation error
30669         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
30670         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
30671         lstat ourselves.
30672         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
30673         was adequate.
30674         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
30675         the checks for lstat.
30676         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
30677
30678         link: fix test failure on Solaris 9
30679         * lib/link.c (rpl_link): Don't assume link will catch bogus
30680         trailing slash on source.
30681
30682         test-symlinkat: enhance test
30683         * tests/test-readlink.c (main): Move guts...
30684         * tests/test-readlink.h (test_readlink): ...into new file.
30685         * tests/test-symlink.c (main): Move guts...
30686         * tests/test-symlink.h (test_symlink): ...into new file.
30687         * tests/test-symlinkat.c (main): Use new files for further
30688         coverage.
30689         (do_symlink, do_readlink): New helper functions.
30690         * modules/symlink-tests (Files): Ship new file.
30691         (Depends-on): Add stdbool.
30692         * modules/readlink-tests (Files): Ship new file.
30693         (Depends-on): Add stdbool.
30694         * modules/symlinkat-tests (Files): Use new files.
30695
30696 2009-09-23  Eric Blake  <ebb9@byu.net>
30697
30698         readlink: document portability issue with symlink length
30699         * doc/posix-functions/lstat.texi (lstat): Mention that some file
30700         systems have bogus st_size on symlinks, and mention the
30701         areadlink-with-size module.
30702         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
30703         * doc/posix-functions/readlink.texi (readlink): Mention the
30704         areadlink module, and ERANGE failure.
30705         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
30706         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
30707
30708         readlink: fix Solaris 9 bug with trailing slash
30709         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
30710         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
30711         * doc/posix-functions/readlink.texi (readlink): Document this.
30712         * modules/readlink-tests: New test.
30713         * tests/test-readlink.c: Likewise.
30714
30715         readlink: fix cygwin 1.5.x bug with return type
30716         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
30717         * lib/unistd.in.h (readlink): Use ssize_t.
30718         * lib/readlink.c (readlink): Likewise.
30719         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
30720         * modules/unistd (Makefile.am): Substitute it.
30721         * lib/unistd.in.h (readlink): Declare replacement.
30722         * doc/posix-functions/readlink.texi (readlink): Document this.
30723
30724         symlink: use throughout gnulib
30725         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
30726         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
30727         symlink is not used.
30728         * modules/symlinkat (Depends-on): Add symlink.
30729         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
30730         * modules/canonicalize-tests (Depends-on): Likewise.
30731         * modules/lstat-tests (Depends-on): Likewise.
30732         * modules/openat-tests (Depends-on): Likewise.
30733         * modules/remove-tests (Depends-on): Likewise.
30734         * modules/rmdir-tests (Depends-on): Likewise.
30735         * modules/unlink-tests (Depends-on): Likewise.
30736         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
30737         * tests/test-canonicalize.c (symlink): Likewise.
30738         * tests/test-fstatat.c (symlink): Likewise.
30739         * tests/test-lstat.c (symlink): Likewise.
30740         * tests/test-remove.c (symlink): Likewise.
30741         * tests/test-rmdir.c (symlink): Likewise.
30742         * tests/test-unlink.c (symlink): Likewise.
30743         * tests/test-unlinkat.c (symlink): Likewise.
30744
30745         symlink: new module, for Solaris 9 bug
30746         * modules/symlink: New file.
30747         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
30748         * lib/symlink.c: Likewise.
30749         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
30750         * modules/unistd (Makefile.am): Substitute them.
30751         * lib/unistd.in.h (symlink): Declare replacement.
30752         * MODULES.html.sh (File system functions): Mention it.
30753         * doc/posix-functions/symlink.texi (symlink): Likewise.
30754         * modules/symlink-tests: New test.
30755         * tests/test-symlink.c: Likewise.
30756
30757 2009-09-23  Bruno Haible  <bruno@clisp.org>
30758
30759         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
30760         when needed.
30761         Test case: gnulib-tool --import --with-tests atexit inttypes.
30762         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
30763
30764 2009-09-23  Bruno Haible  <bruno@clisp.org>
30765
30766         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
30767         subcommand, not in a subshell.
30768
30769 2009-09-22  Eric Blake  <ebb9@byu.net>
30770
30771         unistd: sort replacement declarations
30772         * lib/unistd.in.h: Sort declarations.
30773
30774         open, openat: minor optimization
30775         * lib/open.c (open): If open succeeded, len is non-zero.
30776         * lib/openat.c (rpl_openat): Likewise.
30777
30778         link-follow: ensure correct result
30779         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
30780         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
30781         distinguish between possible failures.
30782
30783 2009-09-21  Eric Blake  <ebb9@byu.net>
30784
30785         fts: avoid compiler warning
30786         * lib/fts.c (dirent_inode_sort_may_be_useful)
30787         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
30788
30789 2009-09-19  Bruno Haible  <bruno@clisp.org>
30790
30791         * lib/progreloc.c (canonicalize_file_name): New declaration.
30792
30793 2009-09-19  Eric Blake  <ebb9@byu.net>
30794
30795         link: fix quoting
30796         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
30797
30798         openat: fix openat bugs on Solaris 9
30799         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
30800         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
30801         * modules/openat (Depends-on): Add open.
30802         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
30803         * modules/fcntl-h (Makefile.am): Substitute it.
30804         * lib/fcntl.in.h (openat): Declare replacement.
30805         * doc/posix-functions/openat.texi (openat): Document this.
30806
30807         openat: move fstatat and unlinkat into correct files
30808         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
30809         compiled.
30810         * lib/openat.c (fstatat, unlinkat): Move...
30811         * lib/fstatat.c (fstatat): ...into correct files.
30812         * lib/unlinkat.c (unlinkat): Likewise.
30813
30814         openat: fix unlinkat bugs on Solaris 9
30815         * lib/unlinkat.c (unlinkat): New file.
30816         * modules/openat (Depends-on): Add unlink.
30817         (Files): Distribute it.
30818         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
30819         trailing slash behavior is broken.
30820         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
30821         * modules/unistd (Makefile.am): Substitute it.
30822         * lib/unistd.in.h (unlinkat): Declare replacement.
30823         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
30824
30825         openat: fix fstatat bugs on Solaris 9
30826         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
30827         stat.
30828         * doc/posix-functions/fstatat.texi (fstatat): Document this.
30829
30830         test-unlinkat: enhance test, to expose Solaris 9 bug
30831         * tests/test-unlink.c (main): Factor guts...
30832         * tests/test-unlink.h (test_rmdir_func): ...into new file.
30833         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
30834         * tests/test-rmdir.c (main): Adjust caller.
30835         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
30836         (unlinker): New helper function.
30837         (rmdirat): Enhance check.
30838         * modules/rmdir-tests (Depends-on): Add stdbool.
30839         * modules/unlink-tests (Depends-on): Likewise.
30840         (Files): Add test-unlink.h.
30841         * modules/openat-tests (Files): Likewise.
30842         (Depends-on): Add unlinkdir.
30843
30844         test-fstatat: new test, to expose Solaris 9 bugs
30845         * tests/test-stat.c (main): Factor guts...
30846         * tests/test-stat.h (test_stat_func): ...into new file.
30847         * tests/test-lstat.c (main): Factor guts...
30848         * tests/test-lstat.h (test_lstat_func): ...into new file.
30849         * tests/test-fstatat.c: New file.
30850         * modules/stat-tests (Files): Add test-stat.h.
30851         * modules/lstat-tests (Files): Add test-lstat.h.
30852         (Depends-on): Add stdbool.
30853         * modules/openat-tests (Depends-on): Add pathmax.
30854         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
30855         (Makefile.am): Run new test.
30856
30857         remove: new module, for mingw and Solaris 9 bugs
30858         * modules/remove: New file.
30859         * lib/remove.c: Likewise.
30860         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
30861         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
30862         * modules/stdio (Makefile.am): Use them.
30863         * lib/stdio.in.h (remove): Declare replacement.
30864         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
30865         * doc/posix-functions/remove.texi (remove): Likewise.
30866         * modules/remove-tests: New test.
30867         * tests/test-remove.c: Likewise.
30868
30869         unlink: new module, for Solaris 9 bug
30870         * modules/unlink: New file.
30871         * lib/unlink.c: Likewise.
30872         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
30873         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
30874         * modules/unistd (Makefile.am): Use them.
30875         * lib/unistd.in.h (stat): Declare replacement.
30876         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
30877         * doc/posix-functions/unlink.texi (unlink): Likewise.
30878         * modules/unlink-tests: New test.
30879         * tests/test-unlink.c: Likewise.
30880
30881         lstat: fix Solaris 9 bug
30882         * lib/lstat.c (lstat): Also check for trailing slash on
30883         non-symlink, non-directories.  Use stat module to simplify logic.
30884         * doc/posix-functions/lstat.texi (lstat): Document it.
30885         * modules/lstat-tests (Depends-on): Add errno, same-inode.
30886         (configure.ac): Check for symlink.
30887         * tests/test-lstat.c (main): Add more tests.
30888
30889         stat: add as dependency to other modules
30890         * modules/chown (Depends-on): Add stat.
30891         * modules/euidaccess (Depends-on): Likewise.
30892         * modules/fchdir (Depends-on): Likewise.
30893         * modules/isdir (Depends-on): Likewise.
30894         * modules/link (Depends-on): Likewise.
30895         * modules/lstat (Depends-on): Likewise.
30896         * modules/mkdir-p (Depends-on): Likewise.
30897         * modules/modechange (Depends-on): Likewise.
30898         * modules/open (Depends-on): Likewise.
30899         * modules/readlink (Depends-on): Likewise.
30900         * modules/same (Depends-on): Likewise.
30901
30902         stat: fix Solaris 9 bug
30903         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
30904         slash.
30905         * lib/stat.c (rpl_stat): Work around it.
30906         * doc/posix-functions/stat.texi (stat): Update documentation.
30907
30908         stat: new module, for mingw bug
30909         * modules/stat: New file.
30910         * lib/stat.c: Likewise.
30911         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
30912         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
30913         * modules/sys_stat (Makefile.am): Use them.
30914         * lib/sys_stat.in.h (stat): Declare replacement.
30915         * lib/openat.c (fstatat): Deal with lstat and stat being function
30916         macros.
30917         * modules/openat (Depends-on): Add inline.
30918         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
30919         * doc/posix-functions/stat.texi (stat): Likewise.
30920         * modules/stat-tests: New test.
30921         * tests/test-stat.c: Likewise.
30922
30923 2009-09-19  Jim Meyering  <meyering@redhat.com>
30924
30925         syntax-check: detect unnecessary inclusion of canonicalize.h
30926         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
30927
30928 2009-09-19  Eric Blake  <ebb9@byu.net>
30929
30930         canonicalize-lgpl: adjust clients to use correct header
30931         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
30932         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
30933         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
30934         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
30935         * lib/progreloc.c (includes): Likewise.
30936
30937 2009-09-19  Jim Meyering  <meyering@redhat.com>
30938
30939         test-posixtm.c: correct a comment
30940         * tests/test-posixtm.c: Correct first-line comment.
30941         Spotted by Eric Blake.
30942
30943 2009-09-16  Jim Meyering  <meyering@redhat.com>
30944
30945         posixtm-tests: make T const-correct; add a test case
30946         * tests/test-posixtm.c (T): Declare const.
30947         Add a test for -(2^31+1).
30948         Remove useless can-succeed-only-in-2002 test.
30949
30950         posixtm-tests: adjust the sole failing test
30951         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
30952         expected output matches what mktime now produces.  Cross-checked via
30953         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
30954
30955         posixtm: move #ifdef'd tests into a new module
30956         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
30957         * tests/test-posixtm.c: ... this new file.
30958         * modules/posixtm-tests: New module.
30959
30960 2009-09-19  Eric Blake  <ebb9@byu.net>
30961
30962         openat: simplify use of at-func.c
30963         * lib/at-func.c (includes): Include prerequisites here, to
30964         simplify requirements on client files.
30965         * lib/openat-priv.h: Add double-inclusion guard.
30966         * lib/faccessat.c (includes): Simplify.
30967         * lib/fchmodat.c (includes): Likewise.
30968         * lib/fchownat.c (includes): Likewise.
30969         * lib/mkdirat.c (includes): Likewise.
30970         * lib/mkfifoat.c (includes): Likewise.
30971         * lib/symlinkat.c (includes): Likewise.
30972
30973         openat: allow return of fd 0
30974         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
30975         * modules/save-cwd (Depends-on): Replace fcntl-safer with
30976         unistd-safer.
30977         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
30978         <fcntl.h>; this module does not leak fds.
30979         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
30980         must be allowed to return 0, leaving openat_safer to add the
30981         safety.
30982         (openat_permissive): Avoid writing to just-opened fd 2 if
30983         restoring the current directory fails.
30984         * lib/openat-die.c (openat_restore_fail): Add comment.
30985         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
30986         (save_cwd): Guarantee safe fd, but without use of open_safer.
30987         * tests/test-openat.c: New test.
30988         * modules/openat-tests (Files, Makefile.am): Distribute and build
30989         new file.
30990
30991         relocatable-prog-wrapper: fix build
30992         * modules/relocatable-prog-wrapper (Files): Update name of
30993         canonicalize m4 file, broken on 2009-09-17.
30994         Reported by emad hajjar <aleppos@hotmail.com>.
30995
30996 2009-09-19  Bruno Haible  <bruno@clisp.org>
30997
30998         * lib/safe-alloc.h: Use the standard header with GPL copyright.
30999         * lib/safe-alloc.c: Likewise.
31000         Reported by Ian Beckwith <ianb@erislabs.net>.
31001
31002 2009-09-18  Bruno Haible  <bruno@clisp.org>
31003
31004         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
31005         Reported by <erobles@sensacd.com.mx>.
31006
31007 2009-09-17  Eric Blake  <ebb9@byu.net>
31008
31009         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
31010         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
31011         slashes when checking if last component is missing.
31012         * tests/test-canonicalize.c (main): Test this.
31013
31014         canonicalize, canonicalize-lgpl: honor // if distinct from /
31015         * modules/canonicalize (Files): Add double-slash-root.m4.
31016         * modules/canonicalize-lgpl (Files): Likewise.
31017         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
31018         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
31019         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
31020         fallback definition.
31021         (canonicalize_filename_mode): Use it to protect //.
31022         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
31023         (__realpath): Likewise.
31024         * tests/test-canonicalize.c (main): Test this.
31025         * tests/test-canonicalize-lgpl.c (main): Likewise.
31026         * modules/canonicalize-tests (Depends-on): Add same-inode.
31027         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
31028
31029         canonicalize-lgpl: fix glibc bug with trailing slash
31030         * m4/canonicalize-lgpl.m4: Move contents...
31031         * m4/canonicalize.m4: ...here.
31032         (gl_CANONICALIZE_LGPL): Factor realpath check...
31033         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
31034         glibc 2.3.5 bug, fixed 2005-04-27.
31035         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
31036         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
31037         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
31038         * modules/canonicalize-lgpl (Files): Manage file rename.
31039         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
31040         * modules/stdlib (Makefile.am): Substitute witness.
31041         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
31042         is needed.
31043         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
31044         replacement is required.
31045         * lib/canonicalize.c (canonicalize_file_name): Likewise.
31046         * doc/glibc-functions/canonicalize_file_name.texi
31047         (canonicalize_file_name): Document this.
31048         * doc/posix-functions/realpath.texi (realpath): Likewise.
31049
31050         canonicalize-lgpl: reject non-directory with trailing slash
31051         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
31052         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
31053         catches failures in glibc 2.3.5.
31054         * tests/test-canonicalize.c (main): Likewise.
31055
31056         canonicalize-lgpl: use native realpath if it works
31057         * lib/canonicalize-lgpl.c (realpath): Guard with
31058         FUNC_REALPATH_WORKS.
31059         * lib/stdlib.in.h (realpath): Make declaration optional based on
31060         HAVE_REALPATH.
31061         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
31062         native realpath works.
31063         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
31064         * modules/stdlib (Makefile.am): Substitute witness.
31065
31066         canonicalize, canonicalize-lgpl: use <stdlib.h>
31067         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
31068         (Include): Mention <stdlib.h>.
31069         (configure.ac): Mention functions we provide.
31070         * modules/canonicalize (configure.ac): Likewise.
31071         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
31072         realpath if canonicalize_file_name is missing.
31073         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
31074         * modules/stdlib (Makefile.am): Substitute witnesses.
31075         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
31076         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
31077         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
31078         * NEWS: Document this.
31079         * doc/glibc-functions/canonicalize_file_name.texi
31080         (canonicalize_file_name): Likewise.
31081         * doc/posix-functions/realpath.texi (realpath): Likewise.
31082         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
31083
31084         test-canonicalize: consolidate into single C program
31085         * tests/test-canonicalize.sh: Delete; move setup into...
31086         * tests/test-canonicalize.c (main): ...the program, making it
31087         easier to run in debugger.  Add some tests.
31088         * modules/canonicalize-tests (Files): Remove unused file.
31089         (Depends-on): Add progname.
31090         (configure.ac, Makefile.am): Simplify.
31091
31092         test-canonicalize-lgpl: consolidate into single C program
31093         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
31094         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
31095         easier to run in debugger.  Add some tests.
31096         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
31097         (configure.ac, Makefile.am): Simplify.
31098
31099         canonicalize: avoid resolvepath
31100         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
31101         unnecessary checks.
31102         * lib/canonicalize.c (includes): Simplify.
31103         (canonicalize_file_name): Drop resolvepath implementation.
31104         * modules/canonicalize (Depends-on): Drop filenamecat.
31105
31106         canonicalize: don't lose errno
31107         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
31108         over calls to free.
31109
31110         canonicalize: simplify errno handling
31111         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
31112         assignment.
31113
31114         canonicalize, canonicalize-lgpl: update module dependencies
31115         * modules/canonicalize (Depends-on): Add extensions, lstat,
31116         pathmax, stdlib.
31117         (Files): Drop pathmax.h.
31118         (configure.ac): Adjust macro name.
31119         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
31120         lstat, stdlib, sys_stat.
31121         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
31122         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
31123         extensions.
31124         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
31125         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
31126         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
31127         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
31128         declaration, if available.
31129         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
31130         we can rely on the readlink module.
31131         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
31132         (includes): Use <unistd.h> unconditionally.
31133
31134 2009-09-17  Eric Blake  <ebb9@byu.net>
31135
31136         maint: make Include sections of modules consistent
31137         * modules/alloca: Use only header name; no need to list #include.
31138         * modules/alloca-opt: Likewise.
31139         * modules/arpa_inet: Likewise.
31140         * modules/canon-host: Likewise.
31141         * modules/configmake: Likewise.
31142         * modules/dirent: Likewise.
31143         * modules/eealloc: Likewise.
31144         * modules/environ: Likewise.
31145         * modules/fchdir: Likewise.
31146         * modules/fcntl: Likewise.
31147         * modules/fcntl-h: Likewise.
31148         * modules/gethrxtime: Likewise.
31149         * modules/gettime: Likewise.
31150         * modules/ignore-value: Likewise.
31151         * modules/inet_ntop: Likewise.
31152         * modules/inet_pton: Likewise.
31153         * modules/inttypes: Likewise.
31154         * modules/isnand-nolibm: Likewise.
31155         * modules/isnanf-nolibm: Likewise.
31156         * modules/mbchar: Likewise.
31157         * modules/mbfile: Likewise.
31158         * modules/mbiter: Likewise.
31159         * modules/mbuiter: Likewise.
31160         * modules/netdb: Likewise.
31161         * modules/netinet_in: Likewise.
31162         * modules/nproc: Likewise.
31163         * modules/pagealign_alloc: Likewise.
31164         * modules/poll: Likewise.
31165         * modules/printf-frexp: Likewise.
31166         * modules/pthread: Likewise.
31167         * modules/putenv: Likewise.
31168         * modules/random_r: Likewise.
31169         * modules/relocatable-prog: Likewise.
31170         * modules/search: Likewise.
31171         * modules/select: Likewise.
31172         * modules/selinux-h: Likewise.
31173         * modules/settime: Likewise.
31174         * modules/signal: Likewise.
31175         * modules/size_max: Likewise.
31176         * modules/socklen: Likewise.
31177         * modules/ssize_t: Likewise.
31178         * modules/stdarg: Likewise.
31179         * modules/stdbool: Likewise.
31180         * modules/stddef: Likewise.
31181         * modules/stdint: Likewise.
31182         * modules/stdio: Likewise.
31183         * modules/stdlib: Likewise.
31184         * modules/string: Likewise.
31185         * modules/strings: Likewise.
31186         * modules/sys_file: Likewise.
31187         * modules/sys_ioctl: Likewise.
31188         * modules/sys_select: Likewise.
31189         * modules/sys_socket: Likewise.
31190         * modules/sys_stat: Likewise.
31191         * modules/sys_time: Likewise.
31192         * modules/sys_times: Likewise.
31193         * modules/sys_utsname: Likewise.
31194         * modules/sys_wait: Likewise.
31195         * modules/sysexits: Likewise.
31196         * modules/time: Likewise.
31197         * modules/times: Likewise.
31198         * modules/tmpfile: Likewise.
31199         * modules/trim: Likewise.
31200         * modules/unistd: Likewise.
31201         * modules/wchar: Likewise.
31202         * modules/wctype: Likewise.
31203
31204 2009-09-17  Bruno Haible  <bruno@clisp.org>
31205
31206         Make getdate.y compile on QNX and NetBSD 5 / i386.
31207         * m4/getdate.m4 (gl_GETDATE): Conditionally define
31208         TIME_T_FITS_IN_LONG_INT.
31209         * lib/getdate.y (long_time_t): New type.
31210         (relative_time): Change type of 'seconds' field to long_time_t.
31211         (get_date): Update types of local variables. Check against overflow
31212         during conversion from long_time_t to time_t.
31213         Reported by Matt Kraai <kraai@ftbfs.org>
31214         and Hasso Tepper <hasso@netbsd.org>.
31215
31216 2009-09-17  Bruno Haible  <bruno@clisp.org>
31217
31218         * modules/COPYING: Update copyright years.
31219         * modules/README: Likeiwse.
31220         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
31221         Reported by Ian Beckwith <ianb@erislabs.net>.
31222
31223 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
31224
31225         * users.txt: Update references for gnuit package.
31226
31227 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
31228
31229         * m4/getdelim.m4: Fix typo in copyright line.
31230
31231 2009-09-17  Bruno Haible  <bruno@clisp.org>
31232
31233         * lib/atoll.c: Use the standard header with GPL copyright.
31234         * lib/argz.in.h: Likewise.
31235         * lib/glob.c: Likewise.
31236         * lib/glob-libc.h: Likewise.
31237         * lib/random_r.c: Likewise.
31238         * lib/siglist.h: Likewise.
31239         * lib/strsignal.c: Likewise.
31240         Reported by Ian Beckwith <ianb@erislabs.net>.
31241
31242 2009-09-17  Eric Blake  <ebb9@byu.net>
31243
31244         rmdir: ensure correct dependency order
31245         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
31246
31247 2009-09-17  Bruno Haible  <bruno@clisp.org>
31248
31249         Disable assertion that fails on NetBSD 5 / i386.
31250         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
31251         Reported by Sam Steingold <sds@gnu.org>
31252         and Hasso Tepper <hasso@netbsd.org>.
31253
31254 2009-09-16  Eric Blake  <ebb9@byu.net>
31255
31256         unlinkdir: port to mingw
31257         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
31258         on which no one can unlink a directory.
31259
31260         stdlib: sort witness names
31261         * modules/stdlib (Makefile.am): Sort replacements.
31262         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
31263         * lib/stdlib.in.h: Likewise.
31264
31265         parse-duration-tests: avoid link failure
31266         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
31267         LIBINTL.
31268         Reported by Tom G. Christensen.
31269
31270         openat-tests: ensure unlinkat behaves like rmdir
31271         * tests/test-rmdir.c (main): Factor guts...
31272         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
31273         * modules/rmdir-tests (Files): Ship new file.
31274         * modules/openat-tests: New test.
31275         * tests/test-unlinkat.c: Likewise.
31276
31277         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
31278         * modules/rmdir-errno (Status, Notice): Now obsolete.
31279
31280         rmdir: work around cygwin 1.5.x and mingw bugs
31281         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
31282         * lib/rmdir.c (rmdir): Work around it.
31283         * modules/rmdir (Status, Notice): No longer obsolete.
31284         (Files): Add dos.m4.
31285         (Depends-on): Add unistd.
31286         (configure.ac): Set witnesses.
31287         (License): Relax to LGPLv2+.
31288         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
31289         * modules/unistd (Makefile.am): Substitute witnesses.
31290         * lib/unistd.in.h (rmdir): Declare replacement.
31291         * doc/posix-functions/rmdir.texi (rmdir): Document this.
31292         * modules/rmdir-tests: New tests.
31293         * tests/test-rmdir.c: Likewise.
31294
31295 2009-09-15  Eric Blake  <ebb9@byu.net>
31296
31297         fchdir: improve use of replacement functions
31298         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
31299         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
31300         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
31301         REPLACE_CLOSEDIR.
31302         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
31303         * modules/sys_stat (Makefile.am): Substitute correct witness.
31304         * modules/dirent (Makefile.am): Likewise.
31305         * modules/unistd (Makefile.am): Likewise.
31306         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
31307         * lib/unistd.in.h (dup): Likewise.
31308         * lib/sys_stat.in.h (fstat): Likewise.
31309
31310         maint: ignore gnulib-tool temp files
31311         * .gitignore: Ignore files created during gnulib-tool --test.
31312
31313 2009-09-13  Jim Meyering  <meyering@redhat.com>
31314
31315         posixtm: don't reject a time that specify "60" as the number of seconds
31316         * lib/posixtm.c (posixtime): The code to reject invalid dates
31317         would also reject a time specified with the .60 suffix.
31318         But POSIX allows that, in order to accommodate leap seconds.
31319         So don't reject it.
31320         (main): Adjust tests accordingly.
31321         * modules/posixtm (Depends-on): Add stpcpy.
31322
31323 2009-09-11  Jim Meyering  <meyering@redhat.com>
31324
31325         announce-gen: include [$release_type] in emitted Subject:
31326         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
31327         e.g., [stable] in the emitted Subject: line.
31328
31329 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31330
31331         Remove obsolete macros from several modules.
31332         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
31333         obsolete Autoconf macros with their modern counterparts.
31334         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
31335         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
31336         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
31337         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
31338         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
31339         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
31340         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
31341         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
31342         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
31343         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
31344         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
31345         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
31346         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
31347         * m4/sockets.m4 (gl_SOCKETS): Likewise.
31348         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
31349         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
31350         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
31351         * m4/time_r.m4 (gl_TIME_R): Likewise.
31352         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
31353         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
31354         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
31355
31356         Fix copyright header in build-aux scripts.
31357         * build-aux/git-version-gen: Fix copyright header to match GPLv3
31358         recommendation.
31359         * build-aux/ncftpput-ftp: Likewise.
31360         * build-aux/update-copyright: Likewise.
31361
31362 2009-09-09  Eric Blake  <ebb9@byu.net>
31363
31364         test-link: allow Linux choice of errno
31365         * tests/test-link.c (main): Relax test for alternate error.
31366
31367         strndup: fix improper m4 caching
31368         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
31369         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
31370         (gl_PREREQ_STRNDUP): Delete.
31371         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
31372         * modules/string (Makefile.am): Substitute it.
31373         * lib/string.in.h (strndup): Modernize prototype.
31374
31375         getcwd: port to mingw
31376         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
31377         different from the POSIX assumptions made throughout the getcwd
31378         module; fortunately, the mingw getcwd does not need replacement.
31379         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
31380         * modules/getcwd-tests: New test.
31381         * tests/test-getcwd.c: Likewise.
31382
31383         link: fix platform bugs
31384         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
31385         * lib/link.c (link): Work around them.  Fix related mingw bug.
31386         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
31387         * modules/unistd (Makefile.am): Substitute it.
31388         * lib/unistd.in.h (link): Declare replacement.
31389         * doc/posix-functions/link.texi (link): Document this.
31390         * modules/link (Depends-on): Add strdup-posix, sys_stat.
31391
31392         test-link: consolidate into single C program, test more cases
31393         * tests/test-link.sh: Delete.
31394         * tests/test-link.c: Test more error conditions.  Exposes bugs on
31395         at least Cygwin and Solaris.
31396         * modules/link-tests (Files): Remove unused file.
31397         (Depends-on): Add errno, sys_stat.
31398         (Makefile.am): Simplify.
31399
31400 2009-09-08  Bruno Haible  <bruno@clisp.org>
31401
31402         Work around towlower, towupper bug on mingw.
31403         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
31404         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
31405         * doc/posix-functions/towlower.texi: Mention the mingw bug.
31406         * doc/posix-functions/towupper.texi: Likewise.
31407         Reported by Eric Blake.
31408
31409 2009-09-08  Jim Meyering  <meyering@redhat.com>
31410
31411         build: don't try to run autoheader if we don't use it
31412         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
31413         is not used in configure.ac.
31414
31415 2009-09-08  Eric Blake  <ebb9@byu.net>
31416
31417         euidaccess: fix compilation error
31418         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
31419
31420         rawmemchr: relax license
31421         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
31422         okay.
31423         Reported by Jim Meyering.
31424
31425         mkfifoat: new module
31426         * modules/mkfifoat: New file.
31427         * lib/mkfifoat.c: Likewise.
31428         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
31429         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
31430         * modules/sys_stat (Makefile.am): Use them.
31431         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
31432         * MODULES.html.sh (File system functions): Mention module.
31433         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
31434         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
31435         * modules/mkfifoat-tests: New test.
31436         * tests/test-mkfifoat.c: Likewise.
31437
31438         strchrnul: relax license
31439         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
31440         okay.
31441         Reported by Jim Meyering.
31442
31443 2009-09-08  Eric Blake  <ebb9@byu.net>
31444
31445         fstatat: fix compilation on Solaris
31446         * lib/fstatat.c (includes): Add fcntl.h.
31447         Reported by Pádraig Brady.
31448
31449 2009-09-07  Eric Blake  <ebb9@byu.net>
31450
31451         rename: modernize replacement
31452         * modules/rename (Depends-on): Add stdio.
31453         (configure.ac): Declare witness.
31454         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
31455         stdio take care of replacement.
31456         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
31457         * modules/stdio (Makefile.am): Substitute them.
31458         * lib/stdio.in.h (rename): Declare replacement.
31459         * lib/rename.c (includes): Allow cross-compilation to non-windows
31460         machines.
31461         * doc/posix-functions/rename.texi (rename): Improve
31462         documentation.
31463
31464         stdio: sort witness names
31465         * modules/stdio (Makefile.am): Sort replacements.
31466         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
31467         * lib/stdio.in.h: Likewise.
31468
31469         getcwd: minor cleanups
31470         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
31471         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
31472
31473         openat: provide more convenience names
31474         * modules/faccessat (configure.ac): Add C witness.
31475         * lib/unistd.in.h (readlinkat): Fix typo.
31476         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
31477         convenience wrappers.
31478         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
31479         wrappers in syntax checks.
31480
31481 2009-09-06  Eric Blake  <ebb9@byu.net>
31482
31483         doc: fix comments in recent patches
31484         * lib/faccessat.c: Mention correct function.
31485         * lib/fchmodat.c: Likewise.
31486         * lib/fchownat.c: Likewise.
31487         * lib/symlinkat.c: Likewise.
31488         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
31489         constants.
31490
31491         faccessat, symlinkat: continue cleanup of previous patch
31492         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
31493         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
31494         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
31495         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
31496         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
31497         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
31498         set.
31499
31500 2009-09-06  Bruno Haible  <bruno@clisp.org>
31501
31502         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
31503         (fstatat): Declare if GNULIB_FSTATAT is set.
31504         (mkdirat): Declare if GNULIB_MKDIRAT is set.
31505         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
31506         (unlinkat): Declare if GNULIB_UNLINKAT is set.
31507         * modules/fcntl-h (Files): Remove m4/openat.m4.
31508         * modules/sys_stat (Files): Remove m4/openat.m4.
31509         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
31510         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
31511         * modules/unistd (Files): Remove m4/openat.m4.
31512         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
31513         GNULIB_OPENAT.
31514         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
31515         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
31516         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
31517         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
31518         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
31519         gl_OPENAT_DEFAULTS.
31520         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
31521         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
31522         Don't require gl_OPENAT_DEFAULTS.
31523         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
31524         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
31525         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
31526         (gl_OPENAT_DEFAULTS): Remove macro.
31527
31528 2009-09-06  Bruno Haible  <bruno@clisp.org>
31529
31530         * modules/openat (configure.ac): Remove unneeded witness.
31531
31532 2009-09-06  Bruno Haible  <bruno@clisp.org>
31533
31534         Set errno to ENOSYS when a function is entirely unsupported.
31535         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
31536         EOPNOTSUPP.
31537         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
31538         * modules/chown (Depends-on): Remove errno.
31539
31540 2009-09-06  Bruno Haible  <bruno@clisp.org>
31541
31542         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
31543
31544 2009-09-06  Bruno Haible  <bruno@clisp.org>
31545
31546         * lib/sys_stat.in.h: Fix preprocessor command indentation.
31547
31548 2009-09-06  Ben Pfaff  <blp@gnu.org>
31549             Bruno Haible  <bruno@clisp.org>
31550
31551         Work around a glibc bug in strtok_r.
31552         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
31553         Undefine if UNDEFINE_STRTOK_R is set.
31554         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
31555         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
31556         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
31557         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
31558         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
31559         UNDEFINE_STRTOK_R.
31560         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
31561
31562 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
31563
31564         exclude: minor fix
31565         * lib/exclude.c: Include wctype.h
31566
31567 2009-09-06  Akim Demaille  <demaille@gostai.com>
31568
31569         bootstrap: improve error message
31570         * build-aux/bootstrap (find_tool): Upon failure, report the list
31571         of candidates.
31572         Honor the initial value of the envvar.
31573
31574 2009-09-05  Eric Blake  <ebb9@byu.net>
31575
31576         symlinkat: new module
31577         * modules/symlinkat: New file.
31578         * lib/symlinkat.c: Likewise.
31579         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
31580         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
31581         * modules/unistd (Makefile.am): Use them.
31582         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
31583         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
31584         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
31585         * MODULES.html.sh (File system functions): Mention module.
31586         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
31587         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
31588         * modules/symlinkat-tests: New test.
31589         * tests/test-symlinkat.c: Likewise.
31590
31591         test-openat-safer: add more checks
31592         * tests/test-openat-safer.c (main): Check more code paths.
31593
31594 2009-09-05  Jim Meyering  <meyering@redhat.com>
31595
31596         syntax-check: detect unnecessary inclusion of openat.h
31597         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
31598
31599 2009-09-05  Bruno Haible  <bruno@clisp.org>
31600
31601         Support towlower, towupper.
31602         * doc/posix-functions/towlower.texi: Mention module wctype.
31603         * doc/posix-functions/towupper.texi: Likewise.
31604         * lib/wctype.in.h (towlower, towupper): New functions.
31605         * tests/test-wctype.c: Include stdio.h, stdlib.h.
31606         (ASSERT): New macro.
31607         (e): New variable.
31608         (main): Test also towlower, towupper. Test WEOF argument.
31609         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
31610
31611 2009-09-05  Bruno Haible  <bruno@clisp.org>
31612
31613         Fix conversion behaviour when the input is invalid.
31614         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
31615         mark occurring in first pass of indirect conversion.
31616         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
31617         input.
31618         Found by clang's static analyzer.
31619
31620 2009-09-05  Bruno Haible  <bruno@clisp.org>
31621
31622         * tests/test-striconveh.c (main): Test indirect conversion on platforms
31623         where direct conversion is possible.
31624
31625 2009-09-04  Eric Blake  <ebb9@byu.net>
31626
31627         openat: fail with ENOENT on empty name
31628         * lib/openat-proc.c (openat_proc_name): Special-case the empty
31629         buffer.
31630
31631         link-follow: fix logic bug in prior patch
31632         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
31633         reversed sense of yes and no in prior patch.  Avoid confusing
31634         compilation failure with desired semantics.
31635
31636         link-follow: accomodate mingw and cross-compilation
31637         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
31638         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
31639         cross-compilation results to -1, to make linkat easier to
31640         implement when cross-compiling.  Trivially support mingw.
31641         * modules/link-follow (configure.ac): Call new name.
31642         * NEWS: Mention this.
31643
31644 2009-09-03  Eric Blake  <ebb9@byu.net>
31645
31646         faccessat: compile replacement
31647         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
31648         needed.
31649
31650         fts: fix compilation error
31651         * lib/fts.c (includes): Re-add "openat.h", for
31652         openat_needs_fchdir.
31653
31654         faccessat: new module
31655         * modules/faccessat: New file.
31656         * lib/faccessat.c: Likewise.
31657         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
31658         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
31659         * modules/unistd (Makefile.am): Use it.
31660         * lib/unistd.in.h (faccessat): Declare it.
31661         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
31662         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
31663         * MODULES.html.sh (File system functions): Mention it.
31664         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
31665         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
31666
31667         euidaccess: prefer POSIX over non-standard implementation
31668         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
31669         * lib/euidaccess.c (euidaccess): Use it if available.
31670
31671         openat: make template easier to use
31672         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
31673         AT_FUNC_F2 to be undefined.
31674         (VALIDATE_FLAG): New macro; use it to reject bad flags.
31675         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
31676         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
31677         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
31678         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
31679         Likewise.
31680         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
31681         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
31682         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
31683         Likewise.
31684
31685         openat: declare in POSIX headers
31686         * NEWS: Mention this.
31687         * modules/openat (configure.ac): Declare witnesses.
31688         (Depends-on): Add fcntl-h, sys_stat, unistd.
31689         (Include): Mention correct headers.
31690         * modules/fcntl-h (Depends-on): Add link-warning.
31691         (Files): Add openat.m4.
31692         (Makefile.am): Substitute witnesses.
31693         * modules/sys_stat (Files, Makefile.am): Likewise.
31694         * modules/unistd (Files, Makefile.am): Likewise.
31695         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
31696         (gl_OPENAT_DEFAULTS): New macro.
31697         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
31698         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
31699         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
31700         (SYS_STAT_H): Remove unused variable.
31701         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
31702         * lib/fcntl--.h (includes): Remove unneeded header.
31703         * lib/openat-safer.c (includes): Likewise.
31704         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
31705         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
31706         appropriate headers.
31707         (__OPENAT_PREFIX): Delete.
31708         * lib/fcntl.in.h (openat): Provide declaration.
31709         (AT_FDCWD): Fix Solaris bug.
31710         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
31711         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
31712         * lib/fchmodat.c (includes):  Adjust to find declaration.
31713         * lib/fchownat.c (includes): Likewise.
31714         * lib/mkdirat.c (includes): Likewise.
31715         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
31716         still visible.
31717
31718 2009-09-02  Eric Blake  <ebb9@byu.net>
31719
31720         errno: use consistently
31721         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
31722         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
31723         * lib/canonicalize.c (ELOOP): Likewise.
31724         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
31725         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
31726         * lib/lchown.c (EOPNOTSUPP): Likewise.
31727         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
31728         * lib/savewd.c (ESTALE): Likewise.
31729         * lib/settime.c (ENOSYS): Likewise.
31730         * lib/utimens.c (ENOSYS): Likewise.
31731         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
31732         * lib/chdir-safer.c (ELOOP): Likewise.
31733         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
31734         * modules/c-stack (Depends-on): Add errno.
31735         * modules/canonicalize (Depends-on): Likewise.
31736         * modules/chdir-safer (Depends-on): Likewise.
31737         * modules/fdopendir (Depends-on): Likewise.
31738         * modules/inet_ntop (Depends-on): Likewise.
31739         * modules/inet_pton (Depends-on): Likewise.
31740         * modules/lchown (Depends-on): Likewise.
31741         * modules/openat (Depends-on): Likewise.
31742         * modules/savewd (Depends-on): Likewise.
31743         * modules/settime (Depends-on): Likewise.
31744         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
31745
31746         fts: avoid leaking fds
31747         * modules/fts (Depends-on): Add cloexec.
31748         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
31749         flag.
31750
31751         fts: make directory fds more robust
31752         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
31753         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
31754
31755         backupfile, chdir-long, fts, savedir: make safer
31756         * lib/backupfile.c (includes): Use "dirent--.h", since
31757         numbered_backup can write to stderr during readdir.
31758         * lib/savedir.c (includes): Likewise.
31759         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
31760         emulation can write to stderr on failure.
31761         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
31762         * lib/getcwd.c: Document why opendir_safer is unused.
31763         * lib/glob.c: Likewise.
31764         * lib/scandir.c: Likewise.
31765         * lib/openat-proc.c: Likewise, for open_safer.
31766         * modules/backupfile (Depends-on): Add dirent-safer.
31767         * modules/savedir (Depends-on): Likewise.
31768         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
31769         * modules/chdir-long (Depends-on): Add openat-safer.
31770
31771         openat-safer: new module
31772         * modules/openat-safer: New file.
31773         * lib/openat-safer.c: Likewise.
31774         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
31775         * lib/fcntl-safer.h (openat_safer): Declare.
31776         * lib/fcntl--.h (openat): Override.
31777         * MODULES.html.sh (File descriptor based I/O): Mention it.
31778         * lib/openat.h: Add double-inclusion guards.
31779         * lib/openat.c (includes): Only include "fcntl-safer.h", not
31780         "fcntl--.h", so we can implement openat.
31781         * modules/openat-safer-tests: New test.
31782         * tests/test-openat-safer.c: New file.
31783
31784         dirent-safer: new module
31785         * modules/dirent-safer: New file.
31786         * lib/dirent--.h: Likewise.
31787         * lib/dirent-safer.h: Likewise.
31788         * lib/opendir-safer.c: Likewise.
31789         * m4/dirent-safer.m4: Likewise.
31790         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
31791         * modules/dirent-safer-tests: New test.
31792         * tests/test-dirent-safer.c: New file.
31793         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
31794
31795         fdopendir: optimize on mingw
31796         * lib/unistd.in.h (_gl_directory_name): New prototype.
31797         * lib/fchdir.c (_gl_directory_name): Implement it.
31798         (fchdir): Use it to simplify implementation.
31799         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
31800         fchdir, when available, to avoid calling [f]chdir().
31801
31802         fdopendir: split into its own module
31803         * lib/openat.c (fdopendir): Move...
31804         * lib/fdopendir.c: ...into new file.
31805         * modules/fdopendir: New module.
31806         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
31807         * modules/openat (Depends-on): Add fdopendir.
31808         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
31809         fdopendir here.
31810         * modules/savedir (Depends-on): Only need fdopendir, not full
31811         openat.
31812         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
31813         * lib/openat.h (fdopendir): Drop prototype.
31814         * lib/dirent.in.h (fdopendir): Provide prototype.
31815         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
31816         * modules/dirent (Makefile.am): Substitute them.
31817         * MODULES.html.sh (File system functions): Mention it.
31818         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
31819         * modules/fdopendir-tests: New file.
31820         * tests/test-fdopendir.c: Likewise.
31821
31822         fchdir: use more consistent macro convention
31823         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
31824         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
31825         REPLACE_FCHDIR, rather than relying on config.h macros.
31826         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
31827         inside a single make-time REPLACE_FCHDIR block, rather than using
31828         the config.h FCHDIR_REPLACEMENT.
31829         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
31830         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
31831         Manage fstat replacement.
31832         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
31833         REPLACE_FCHDIR.
31834         * modules/sys_stat (Files): Add m4/unistd_h.m4.
31835         (Makefile.am): Substitute REPLACE_FCHDIR.
31836         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
31837         FCHDIR_REPLACEMENT.
31838         * lib/dup-safer.c (dup_safer): Likewise.
31839         * lib/dup2.c (rpl_dup2): Likewise.
31840         * lib/dup3.c (rpl_dup3): Likewise.
31841         * lib/open.c (rpl_open): Likewise.
31842
31843         fchdir: simplify error handling, and support dup3
31844         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
31845         stdbool, malloc-posix, realloc-posix.
31846         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
31847         (ensure_dirs_slot): Return false on allocation failure.
31848         (rpl_dup2): Delete.
31849         (_gl_register_dup): New function.
31850         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
31851         (_gl_register_fd): Close fd on allocation failure.
31852         * lib/fcntl.in.h (_gl_register_fd): Update signature.
31853         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
31854         prototype.
31855         (rpl_dup2_fchdir): Delete prototype.
31856         * lib/open.c (open): Update caller.
31857         * lib/dup2.c (dup2): Track fchdir metadata.
31858         * lib/dup3.c (dup3): Likewise.
31859         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
31860         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
31861
31862 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31863
31864         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
31865         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
31866         don't pass arguments to AC_OUTPUT.
31867
31868 2009-09-02  Bruno Haible  <bruno@clisp.org>
31869
31870         * modules/mkdtemp (License): Relicense under LGPLv2+.
31871         Reported by Paolo Bonzini.
31872
31873 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31874
31875         Replace uses of obsolete autoconf macros in Jim's modules.
31876         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
31877         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
31878         can evoke a warning from autoconf when run with -Wobsolete
31879         enabled.  They were declared obsolete for good reasons (see
31880         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
31881         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
31882         should not continue using the deprecated macros.
31883         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
31884         obsolete Autoconf macros with modern counterparts.
31885         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
31886         * m4/dos.m4 (gl_AC_DOS): Likewise.
31887         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
31888         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
31889         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
31890         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
31891         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
31892         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
31893         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
31894         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
31895         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
31896         Likewise.
31897         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
31898         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
31899         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
31900         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
31901         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
31902         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
31903
31904 2009-09-01  Eric Blake  <ebb9@byu.net>
31905
31906         fchdir: fix off-by-one bug in previous patch
31907         * lib/fchdir.c (rpl_fstat): Use correct bounds.
31908         (_gl_unregister_fd): Delete useless if.
31909
31910 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
31911
31912         maint.mk: sort the list of syntax-check rules
31913         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
31914         easier to get a sense of progress when the rules are run sequentially
31915         and take a long time.
31916
31917 2009-09-01  Simon Josefsson  <simon@josefsson.org>
31918
31919         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
31920         * modules/netinet_in: Likewise.
31921         * modules/sys_file: Likewise.
31922         * modules/sys_ioctl: Likewise.
31923         * modules/sys_select: Likewise.
31924         * modules/sys_socket: Likewise.
31925         * modules/sys_stat: Likewise.
31926         * modules/sys_time: Likewise.
31927         * modules/sys_times: Likewise.
31928         * modules/sys_utsname: Likewise.
31929         * modules/sys_wait: Likewise.
31930
31931 2009-09-01  Jim Meyering  <meyering@redhat.com>
31932
31933         fts: help ensure that return values are not ignored
31934         * lib/fts_.h (__GNUC_PREREQ): Define.
31935         (__attribute_warn_unused_result__): Define.
31936         (fts_children, fts_close, fts_open, fts_read): Declare with
31937         __attribute_warn_unused_result__.
31938
31939         fts: fts_close now fails also when closing a dir file descriptor fails
31940         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
31941         and propagate to caller, along with errno.
31942
31943         announce-gen: correct formatting in --help output
31944         * build-aux/announce-gen (usage): Move the one-line description in
31945         --help output "up", to where it belongs, just after Usage:.
31946
31947 2009-08-31  Eric Blake  <ebb9@byu.net>
31948
31949         fchdir: port to mingw
31950         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
31951         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
31952         opened, then use a substitute.
31953         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
31954         replacement.
31955         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
31956         (_gl_register_fd): No need to check stat if open already filters
31957         all directories.
31958         (fchdir): Fix error condition to match POSIX.
31959         * modules/fchdir (Depends-on): Add sys_stat.
31960         * doc/posix-functions/open.texi (open): Document the limitation.
31961         * modules/fchdir-tests: New file.
31962         * tests/test-fchdir.c: Likewise.
31963
31964         canonicalize: allow cross-testing from cygwin to mingw
31965         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
31966         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
31967         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
31968         Likewise.
31969         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
31970         target does not support symlinks.
31971         * tests/test-canonicalize-lgpl.sh: Likewise.
31972
31973         chown: avoid compilation warning on mingw
31974         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
31975         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
31976         mingw.
31977         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
31978         * modules/chown (Depends-on): Add errno.
31979
31980 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
31981
31982         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
31983         command.
31984
31985 2009-08-31  Jim Meyering  <meyering@redhat.com>
31986
31987         canonicalize: remove useless initialization
31988         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
31989         initialization of local, "end".
31990
31991 2009-08-30  Bruno Haible  <bruno@clisp.org>
31992
31993         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
31994         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
31995         ENOSYS.
31996
31997 2009-08-30  Bruno Haible  <bruno@clisp.org>
31998
31999         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
32000         /usr/xpg4/bin/tr when it exists.
32001         * tests/test-pipe-filter-gi1.sh: Likewise.
32002
32003 2009-08-30  Bruno Haible  <bruno@clisp.org>
32004
32005         Work around deficient /usr/bin/id program on Solaris.
32006         * tests/test-file-has-acl.sh (ID): New variable.
32007         * tests/test-set-mode-acl.sh (ID): Likewise.
32008         * tests/test-copy-acl.sh (ID): Likewise.
32009         * tests/test-copy-file.sh (ID): Likewise.
32010
32011 2009-08-30  Bruno Haible  <bruno@clisp.org>
32012
32013         New module 'xstriconveh'.
32014         * lib/xstriconveh.h: New file.
32015         * lib/xstriconveh.c: New file.
32016         * modules/xstriconveh: New file.
32017
32018 2009-08-30  Bruno Haible  <bruno@clisp.org>
32019
32020         Make it easier to use mem_cd_iconveh.
32021         * lib/striconveh.h (iconveh_t): New type.
32022         (iconveh_open, iconveh_close): New declarations.
32023         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
32024         with a single 'const iconveh_t *' argument.
32025         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
32026         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
32027         with a single 'const iconveh_t *' argument.
32028         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
32029         * tests/test-striconveh.c (main): Update.
32030         * NEWS: Mention the change.
32031
32032 2009-08-30  Bruno Haible  <bruno@clisp.org>
32033
32034         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
32035         problem.
32036
32037 2009-08-30  Bruno Haible  <bruno@clisp.org>
32038
32039         Work around iconv_open problem on Solaris.
32040         * lib/iconv_open-solaris.gperf: New file.
32041         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
32042         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
32043         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
32044         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
32045         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
32046         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
32047
32048 2009-08-29  Jim Meyering  <meyering@redhat.com>
32049
32050         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
32051         * top/maint.mk (cvs-check): Remove target; it was just an alias
32052         to the better-named vc-diff-check.
32053         (maintainer-distcheck): Remove rule.  It was used only from
32054         the (alpha/beta/major) target, and all of its commands but one
32055         were coreutils-specific.
32056         (vc-dist): Remove rule.
32057         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
32058         Run vc-diff-check, not vc-dist.
32059         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
32060
32061 2009-08-27  Bruno Haible  <bruno@clisp.org>
32062
32063         * tests/test-bitrotate.c (main): Remove test that uses a shift count
32064         of 0.
32065
32066 2009-08-27  Bruno Haible  <bruno@clisp.org>
32067
32068         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
32069         compilers.
32070         * doc/func.texi: Document the SunPRO C bug.
32071
32072 2009-08-27  Bruno Haible  <bruno@clisp.org>
32073
32074         Fix link error on Solaris.
32075         * tests/test-parse-duration.c (xstrdup): Remove function.
32076
32077 2009-08-26  Pádraig Brady  <P@draigbrady.com>
32078
32079         ignore-value: handle pointer types, too
32080         * lib/ignore-value.h (__attribute__): Remove definition.
32081         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
32082         of a more concise and more-often effective "(void) i" statement.
32083         (ignore_ptr): New function to suppress warnings from functions that
32084         return pointers, and to make it explicit that one function doesn't
32085         handle all cases.
32086
32087 2009-08-25  Bruno Haible  <bruno@clisp.org>
32088
32089         dup2: work around a Linux bug.
32090         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
32091         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
32092         * doc/posix-functions/dup2.texi: Mention the Linux bug.
32093         Reported by Simon Josefsson.
32094
32095 2009-08-25  Jim Meyering  <meyering@redhat.com>
32096
32097         libguestfs uses gnulib
32098         * users.txt: Add libguestfs.
32099
32100 2009-08-24  Eric Blake  <ebb9@byu.net>
32101
32102         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
32103         * lib/pipe2.c (includes): Add binary-io.h.
32104         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
32105
32106 2009-08-24  Bruno Haible  <bruno@clisp.org>
32107
32108         Tolerate declared but missing accept4 syscall.
32109         * lib/accept4.c (accept4): Invoke original accept4 function first, if
32110         available.
32111         * lib/sys_socket.in.h (accept4): If the function is already present,
32112         override it.
32113         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
32114         * modules/accept4 (Makefile.am): Compile accept4.c always.
32115         Reported by Paolo Bonzini and Eric Blake.
32116
32117 2009-08-23  Bruno Haible  <bruno@clisp.org>
32118
32119         New module 'accept4'.
32120         * lib/sys_socket.in.h (accept4): New declaration.
32121         * lib/accept4.c: New file.
32122         * m4/accept4.m4: New file.
32123         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
32124         GNULIB_ACCEPT4, HAVE_ACCEPT4.
32125         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
32126         HAVE_ACCEPT4.
32127         * modules/accept4: New file.
32128         * doc/glibc-functions/accept4.texi: Mention the new module.
32129
32130 2009-08-24  Jim Meyering  <meyering@redhat.com>
32131
32132         progname: also set global program_invocation_name, when possible
32133         Before this change, a libtool-enabled program that calls glibc's
32134         error function would report the program name as
32135         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
32136         * modules/progname (configure.ac): Check for a declaration of
32137         program_invocation_name.
32138         * lib/progname.c:  Include <errno.h>.
32139         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
32140         Set program_invocation_name.
32141
32142 2009-08-23  Bruno Haible  <bruno@clisp.org>
32143
32144         * lib/dup3.c: Include <string.h>.
32145
32146 2009-08-23  Bruno Haible  <bruno@clisp.org>
32147
32148         * lib/dup3.c (dup3): Test only once whether the system actually exists.
32149         * lib/pipe2.c (pipe2): Likewise.
32150         Suggested by Eric Blake.
32151
32152 2009-08-23  Bruno Haible  <bruno@clisp.org>
32153
32154         Tolerate declared but missing dup3 syscall.
32155         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
32156         * lib/unistd.in.h (dup3): If the function is already present,
32157         override it.
32158         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
32159         * modules/dup3 (Makefile.am): Compile dup3.c always.
32160         Reported by Paolo Bonzini.
32161
32162 2009-08-23  Bruno Haible  <bruno@clisp.org>
32163
32164         Tolerate declared but missing pipe2 syscall.
32165         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
32166         available.
32167         * lib/unistd.in.h (pipe2): If the function is already present,
32168         override it.
32169         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
32170         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
32171         Reported by Paolo Bonzini.
32172
32173 2009-08-23  Bruno Haible  <bruno@clisp.org>
32174
32175         * lib/pipe2.c (pipe2): Move #ifs inside function.
32176
32177 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
32178
32179         quotearg: document limitations of quote_these_too
32180         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
32181         those limitations are created.
32182         * lib/quotearg.h (set_char_quoting): Document that digits and
32183         letters that are special after backslash are not permitted.
32184         (quotearg_char): Cross-reference set_char_quoting documentation.
32185
32186 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
32187
32188         quotearg: implement custom_quoting_style
32189         * lib/quotearg.c: (struct quoting_options): Add left_quote and
32190         right_quote fields.
32191         (set_custom_quoting): New public function.
32192         (quotearg_buffer_restyled): Add left_quote and right_quote
32193         arguments, handle them very much like locale quoting, and update
32194         all uses.
32195         (quotearg_n_custom): New public function.
32196         (quotearg_n_custom_mem): New public function.
32197         (quotearg_custom): New public function.
32198         (quotearg_custom_mem): New public function.
32199         * lib/quotearg.h: Prototype and document new public functions.
32200         (enum quoting_style): For escape_quoting_style and
32201         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
32202         ignored even though they're otherwise like c_quoting_style.
32203         Add custom_quoting_style member and document with comparison to
32204         clocale_quoting_style.
32205         * tests/test-quotearg.c (custom_quotes): New array.
32206         (custom_results): New array.
32207         (main): Extend to test custom quoting.
32208
32209 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
32210
32211         quotearg: fix right quote escaping when it's in quote_these_too
32212         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
32213         quote, be sure to prepend only one backslash.
32214         * tests/test-quotearg.c (use_quote_double_quotes): New function.
32215         (main): Test it.
32216
32217 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
32218
32219         quotearg-tests: test escaping of embedded locale quotes
32220         * tests/test-quotearg.c (struct result_strings): Add member for
32221         new input.
32222         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
32223         (inputs): Add new input.
32224         (results_g): Add expected results.
32225         (flag_results): Likewise.
32226         (locale_results): Likewise.
32227         (compare_strings): Check those.
32228
32229 2009-08-23  Bruno Haible  <bruno@clisp.org>
32230
32231         Tests for module 'dup3'.
32232         * modules/dup3-tests: New file.
32233         * tests/test-dup3.c: New file.
32234
32235         New module 'dup3'.
32236         * lib/unistd.in.h (dup3): New declaration.
32237         * lib/dup3.c: New file.
32238         * m4/dup3.m4: New file.
32239         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
32240         HAVE_DUP3.
32241         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
32242         * modules/dup3: New file.
32243         * doc/glibc-functions/dup3.texi: Mention the new module.
32244
32245 2009-08-23  Bruno Haible  <bruno@clisp.org>
32246
32247         Tweak the dup2 test.
32248         * tests/test-dup2.c (main): Create the test file empty. Verify that an
32249         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
32250         the test file is still empty. Fix argument order of lseek.
32251
32252 2009-08-23  Bruno Haible  <bruno@clisp.org>
32253
32254         Avoid test link errors when the modules getopt-gnu, gettext are used.
32255         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
32256         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
32257
32258 2009-08-23  Bruno Haible  <bruno@clisp.org>
32259
32260         Fix getdtablesize() on mingw.
32261         * lib/getdtablesize.c (getdtablesize): Implement differently.
32262         * lib/unistd.in.h (getdtablesize): Improve comment.
32263
32264 2009-08-23  Bruno Haible  <bruno@clisp.org>
32265
32266         New module 'mkostemp'.
32267         Based on Ulrich Drepper's 2007-08-10 change in glibc.
32268         * lib/stdlib.in.h (mksotemp): New declaration.
32269         * lib/mkostemp.c: New file, from glibc with modifications.
32270         * lib/tempname.h (GT_FILE): Remove outdated comment.
32271         (gen_tempname): Add flags argument.
32272         * lib/tempname.c (__GT_BIGFILE): Remove macro.
32273         (__GT_FILE): Map to 1.
32274         (small_open, large_open): Remove macros.
32275         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
32276         * lib/mkstemp.c (mkstemp): Update.
32277         * lib/mkdtemp.c (mkdtemp): Likewise.
32278         * m4/mkostemp.m4: New file.
32279         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
32280         HAVE_MKOSTEMP.
32281         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
32282         HAVE_MKOSTEMP.
32283         * modules/mkostemp: New file, based on modules/mkstemp.
32284         * doc/glibc-functions/mkostemp.texi: Mention the new module.
32285         * NEWS: Mention the change.
32286
32287 2009-08-23  Bruno Haible  <bruno@clisp.org>
32288
32289         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
32290         Reported by Eric Blake.
32291
32292 2009-08-23  Bruno Haible  <bruno@clisp.org>
32293
32294         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
32295         Reported by Eric Blake.
32296
32297 2009-08-23  Bruno Haible  <bruno@clisp.org>
32298
32299         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
32300         * modules/pipe2 (Depends-on): Likewise.
32301
32302 2009-08-23  Eric Blake  <ebb9@byu.net>
32303
32304         fcntl-h: add O_TTY_INIT support
32305         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
32306         * tests/test-fcntl-h.c (o): Test it.
32307         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
32308
32309         fcntl-h: rename from fcntl, in preparation for fcntl(2)
32310         * modules/fcntl: Move <fcntl.h> header replacement...
32311         * modules/fcntl-h: ...to new name, so as not to collide with
32312         like-named function.
32313         * tests/test-fcntl.c: Rename...
32314         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
32315         * modules/fcntl-tests: Rename...
32316         * modules/fcntl-h-tests: ...to this.  Update test file name.
32317         * modules/chdir-long (Depends-on): Update clients.
32318         * modules/chdir-safer (Depends-on): Likewise.
32319         * modules/fcntl-safer (Depends-on): Likewise.
32320         * modules/fts (Depends-on): Likewise.
32321         * modules/mkancesdirs (Depends-on): Likewise.
32322         * modules/mkdir-p (Depends-on): Likewise.
32323         * modules/open (Depends-on): Likewise.
32324         * modules/savewd (Depends-on): Likewise.
32325         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
32326         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
32327
32328 2009-08-22  Bruno Haible  <bruno@clisp.org>
32329
32330         * modules/binary-io (License): Relicense under LGPL.
32331         * modules/pipe2 (License): Likewise.
32332
32333 2009-08-22  Bruno Haible  <bruno@clisp.org>
32334
32335         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
32336         return value.
32337         * lib/pipe-filter-gi.c (filter_init): Likewise.
32338         Reported by Eric Blake.
32339
32340 2009-08-22  Bruno Haible  <bruno@clisp.org>
32341
32342         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
32343         * modules/pipe (Depends-on): Add pipe2.
32344
32345 2009-08-22  Bruno Haible  <bruno@clisp.org>
32346
32347         Tests for module 'pipe2'.
32348         * modules/pipe2-tests: New file.
32349         * tests/test-pipe2.c: New file.
32350
32351         New module 'pipe2'.
32352         * lib/unistd.in.h (pipe2): New declaration.
32353         * lib/pipe2.c: New file.
32354         * m4/pipe2.m4: New file.
32355         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
32356         HAVE_PIPE2.
32357         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
32358         * modules/pipe2: New file.
32359         * doc/glibc-functions/pipe2.texi: Mention the new module.
32360
32361 2009-08-22  Bruno Haible  <bruno@clisp.org>
32362
32363         Reference some new glibc functions.
32364         * doc/glibc-functions/accept4.texi: New file.
32365         * doc/glibc-functions/dup3.texi: New file.
32366         * doc/glibc-functions/mkostemp.texi: New file.
32367         * doc/glibc-functions/pipe2.texi: New file.
32368         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
32369         (Glibc sys/socket.h): Refer to accept4.
32370         (Glibc unistd.h): Refer to dup3, pipe2.
32371         Reported by Eric Blake.
32372
32373 2009-08-22  Jim Meyering  <meyering@redhat.com>
32374             Bruno Haible  <bruno@clisp.org>
32375
32376         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
32377         This makes it so packages using automake-1.11's silent-rules option
32378         can print e.g., a single "GEN    configmake.h" line, rather than
32379         the 30+ statements that perform the job.  If you want to see the
32380         actual commands, you can still run "make V=1".
32381         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
32382         so that make output is abbreviated when those variables are defined
32383         appropriately.
32384         * modules/argz: Likewise.
32385         * modules/arpa_inet: Likewise.
32386         * modules/byteswap: Likewise.
32387         * modules/configmake: Likewise.
32388         * modules/dirent: Likewise.
32389         * modules/errno: Likewise.
32390         * modules/fcntl: Likewise.
32391         * modules/float: Likewise.
32392         * modules/fnmatch: Likewise.
32393         * modules/getopt-posix: Likewise.
32394         * modules/glob: Likewise.
32395         * modules/iconv_open: Likewise.
32396         * modules/inttypes: Likewise.
32397         * modules/localcharset: Likewise.
32398         * modules/locale: Likewise.
32399         * modules/math: Likewise.
32400         * modules/netdb: Likewise.
32401         * modules/netinet_in: Likewise.
32402         * modules/poll: Likewise.
32403         * modules/posix_spawnp-tests: Likewise.
32404         * modules/sched: Likewise.
32405         * modules/search: Likewise.
32406         * modules/selinux-h: Likewise.
32407         * modules/signal: Likewise.
32408         * modules/spawn: Likewise.
32409         * modules/stdarg: Likewise.
32410         * modules/stdbool: Likewise.
32411         * modules/stddef: Likewise.
32412         * modules/stdint: Likewise.
32413         * modules/stdio: Likewise.
32414         * modules/stdlib: Likewise.
32415         * modules/string: Likewise.
32416         * modules/strings: Likewise.
32417         * modules/sys_file: Likewise.
32418         * modules/sys_ioctl: Likewise.
32419         * modules/sys_select: Likewise.
32420         * modules/sys_socket: Likewise.
32421         * modules/sys_stat: Likewise.
32422         * modules/sys_time: Likewise.
32423         * modules/sys_times: Likewise.
32424         * modules/sys_utsname: Likewise.
32425         * modules/sys_wait: Likewise.
32426         * modules/sysexits: Likewise.
32427         * modules/time: Likewise.
32428         * modules/unistd: Likewise.
32429         * modules/wchar: Likewise.
32430         * modules/wctype: Likewise.
32431
32432 2009-08-22  Jim Meyering  <meyering@redhat.com>
32433
32434         announce-gen: detect write failure
32435         * build-aux/announce-gen: Add Coda at end.
32436         Remove equivalent-but-more-verbose block at top.
32437
32438 2009-08-19  Akim Demaille  <demaille@gostai.com>
32439
32440         bootstrap: --help to stdout.
32441         * bootstrap (usage): Don't send --help to stderr.
32442         Use a here doc instead of a long string.
32443
32444 2009-08-21  Eric Blake  <ebb9@byu.net>
32445
32446         test-popen-safer: split from test-popen
32447         * tests/test-popen.c (main): Move...
32448         * tests/test-popen.h: ...into new file.
32449         * tests/test-popen-safer2.c: New file.
32450         * modules/popen-tests (Files): Add test-popen.h.
32451         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
32452         Suggested by Bruno Haible.
32453
32454         test-fcntl-safer: split from test-open
32455         * tests/test-open.c (main): Move...
32456         * tests/test-open.h: ...into new file.
32457         * tests/test-fcntl-safer.c: New file.
32458         * modules/open-tests (Files): Add test-open.h.
32459         * modules/fcntl-safer-tests: New file.
32460         Suggested by Bruno Haible.
32461
32462         test-fopen-safer: split from test-fopen
32463         * tests/test-fopen.c (main): Move...
32464         * tests/test-fopen.h: ...into new file.
32465         * tests/test-fopen-safer.c: New file.
32466         * modules/fopen-tests (Files): Add test-fopen.h.
32467         * modules/fopen-safer-tests: New file.
32468         Suggested by Bruno Haible.
32469
32470 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
32471
32472         popen-safer: test O_CLOEXEC at run-time.
32473         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
32474
32475 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
32476
32477         fcntl: move more flags to the header
32478         * lib/cloexec.c: Do not define FD_CLOEXEC here.
32479         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
32480         * lib/fcntl.in.h: Do both things here.
32481
32482 2009-08-21  Jim Meyering  <meyering@redhat.com>
32483
32484         consistently remove $@-t before redirecting to it
32485         * modules/argz: Remove $@-t and $@ before redirecting to the former.
32486         * modules/alloca-opt: Likewise.
32487         * modules/byteswap: Likewise.
32488         * modules/fnmatch: Likewise.
32489         * modules/getopt-posix: Likewise.
32490         * modules/glob: Likewise.
32491         * modules/poll: Likewise.
32492         * modules/posix_spawnp-tests: Likewise.
32493         * modules/sys_socket: Likewise.
32494         * modules/sysexits: Likewise.
32495
32496 2009-08-21  Eric Blake  <ebb9@byu.net>
32497
32498         popen: simplify access to original popen
32499         * lib/popen.c (rpl_popen): No need to worry about popen being a
32500         macro.
32501         Reported by Bruno Haible.
32502
32503 2009-08-20  Eric Blake  <ebb9@byu.net>
32504
32505         build: avoid some compiler warnings
32506         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
32507         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
32508         type.
32509         (new_exclude_segment, excluded_file_pattern_p)
32510         (excluded_file_name_p): Reduce scope.
32511         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
32512         old-style declaration.
32513
32514 2009-08-20  Simon Josefsson  <simon@josefsson.org>
32515
32516         * tests/test-exclude1.sh: Handle Windows EOL.
32517         * tests/test-exclude2.sh: Likewise.
32518         * tests/test-exclude3.sh: Likewise.
32519         * tests/test-exclude4.sh: Likewise.
32520         * tests/test-exclude5.sh: Likewise.
32521         * tests/test-exclude6.sh: Likewise.
32522         * tests/test-exclude7.sh: Likewise.
32523
32524 2009-08-19  Akim Demaille  <demaille@gostai.com>
32525
32526         bootstrap: find sha1sum when named gsha1sum.
32527         * bootstrap (find_tool): New.
32528         ($SHA1SUM): New.
32529         Use it.
32530
32531 2009-08-20  Jim Meyering  <meyering@redhat.com>
32532
32533         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
32534         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
32535         expression that converts "." in a file name to "\." in the resulting
32536         regexp.  Start with a dummy statement, so that prior shell variable
32537         definitions are expanded portably.  Reported by Simon Josefsson.
32538
32539 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
32540
32541         Fix polling for writeability of a screen buffer.
32542         * lib/poll.c: Distinguish input and screen buffers for the
32543         Win32 implementation.
32544         * lib/select.c: Likewise.
32545
32546 2009-08-19  Eric Blake  <ebb9@byu.net>
32547
32548         popen-safer: prevent popen from clobbering std descriptors
32549         * modules/popen-safer: New file.
32550         * lib/popen-safer.c: Likewise.
32551         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
32552         * lib/stdio--.h (popen): Provide override.
32553         * lib/stdio-safer.h (popen_safer): Provide declaration.
32554         * tests/test-popen.c (includes): Partially test this.
32555         * modules/popen-safer-tests: New file, for more tests.
32556         * tests/test-popen-safer.c: Likewise.
32557         * MODULES.html.sh (file stream based Input/Output): Mention it.
32558
32559         tests: test some of the *-safer modules
32560         * modules/fopen-safer (Depends-on): Add fopen.
32561         * modules/fcntl-safer (Depends-on): Add fcntl.
32562         * modules/stdlib-safer (Depends-on): Add stdlib.
32563         (configure.ac): Set indicator.
32564         * modules/unistd-safer (configure.ac): Likewise.
32565         * modules/tmpfile-safer (configure.ac): Likewise.
32566         (Depends-on): Add tmpfile.
32567         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
32568         active.
32569         * tests/test-fopen.c (includes): Test safer versions when they are
32570         in use.
32571         * tests/test-open.c (includes): Likewise.
32572
32573         popen: fix cygwin 1.5 bug when stdin closed
32574         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
32575         * modules/popen: New file.
32576         * modules/popen-tests: Likewise.
32577         * tests/test-popen.c: Likewise.
32578         * m4/popen.m4: Likewise.
32579         * lib/popen.c: Likewise.
32580         * lib/stdio.in.h (popen): New declaration.
32581         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
32582         * modules/stdio (Makefile.am): Likewise.
32583         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
32584
32585 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
32586
32587         maint.mk: give full control over update-copyright exclusions
32588         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
32589         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
32590         (update-copyright): Don't force inclusion of top-level
32591         ChangeLog.  Don't force exclusion of all COPYING files, but make
32592         them the default exclusion instead.
32593
32594 2009-08-16  Bruno Haible  <bruno@clisp.org>
32595
32596         Fix test failures on Solaris 10.
32597         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
32598         tests when Solaris iconv() is used.
32599         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
32600         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
32601         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
32602         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
32603         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
32604
32605 2009-08-16  Bruno Haible  <bruno@clisp.org>
32606
32607         Fix test failures on Solaris 10.
32608         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
32609         'tr' program and pass it as first argument.
32610         * tests/test-pipe-filter-gi1.sh: Likewise.
32611         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
32612         program as first argument.
32613         * tests/test-pipe-filter-gi1.c (main): Likewise.
32614
32615 2009-08-16  Eric Blake  <ebb9@byu.net>
32616
32617         fpurge: fix previous commits
32618         * modules/fpurge (Makefile.am): Make replacement conditional,
32619         partially reverting 2007-04-29 change; missed in previous
32620         attempt.
32621         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
32622         is missing.
32623
32624 2009-08-16  Bruno Haible  <bruno@clisp.org>
32625
32626         Clarify fpurge's effect on the file position.
32627         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
32628         * tests/test-fpurge.c (main): Make a second pass for checking the file
32629         position.
32630
32631 2009-08-16  Bruno Haible  <bruno@clisp.org>
32632
32633         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
32634         declaration of fpurge is missing.
32635         * tests/test-fpurge.c (main): Check that the file has not more contents
32636         than expected. Close the file before removing it.
32637
32638 2009-08-15  Eric Blake  <ebb9@byu.net>
32639
32640         fpurge: don't wrap working cygwin implementation
32641         * lib/fpurge.c (fpurge): Fix comment typo.
32642         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
32643         1.7 to avoid replacement.
32644         * tests/test-fpurge.c (main): Enhance test.
32645
32646 2009-08-15  Eric Blake  <ebb9@byu.net>
32647         and Jim Meyering  <meyering@redhat.com>
32648
32649         test-update-copyright: skip if perl is insufficient
32650         * tests/test-update-copyright.sh: Failure to run maintainer tool
32651         should not cause testsuite failure on cygwin 1.5.
32652
32653 2009-08-14  Eric Blake  <ebb9@byu.net>
32654
32655         doc: mention more functions added in cygwin 1.7.0
32656         * doc/posix-headers/limits.texi (limits.h): Update for recent
32657         cygwin additions.
32658         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
32659         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
32660         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
32661         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
32662         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
32663
32664 2009-08-14  Eric Blake  <ebb9@byu.net>
32665
32666         maint.mk: simplify update-copyright rule
32667         * top/maint.mk (update-copyright-local): Delete, and document how
32668         to do it in cfg.mk instead.
32669         (update-copyright-exclude-regexp): Delete, and document how to do
32670         it in .x-update-copyright instead.
32671         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
32672         exclude ChangeLog.
32673
32674 2009-08-14  Bruno Haible  <bruno@clisp.org>
32675
32676         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
32677
32678 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
32679
32680         maint.mk: support update-copyright-env
32681         * top/maint.mk (update-copyright-env): Define place-holder.
32682         (update-copyright): Expand $(update-copyright-env) before
32683         invoking update-copyright.
32684
32685 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
32686
32687         update-copyright: implement forced reformatting
32688         * build-aux/update-copyright: Implement and document
32689         UPDATE_COPYRIGHT_FORCE.
32690         * tests/test-update-copyright.sh: Test it.
32691
32692 2009-08-14  Eric Blake  <ebb9@byu.net>
32693         and Bruno Haible  <bruno@clisp.org>
32694
32695         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
32696         * tests/test-locale.c: Revert previous patch related to NULL.
32697         * tests/test-stdio.c: Likewise.
32698         * tests/test-stdlib.c: Likewise.
32699         * tests/test-string.c: Likewise.
32700         * tests/test-unistd.c: Likewise.
32701         * modules/time-tests (Depends-on): Add verify.
32702         * modules/wchar-tests (Depends-on): Likewise.
32703         * tests/test-time.c: Test for NULL compliance.
32704         * tests/test-wchar.c: Likewise.
32705         * modules/locale (Depends-on): Add stddef.
32706         * modules/stdio (Depends-on): Likewise.
32707         * modules/stdlib (Depends-on): Likewise.
32708         * modules/string (Depends-on): Likewise.
32709         * modules/time (Depends-on): Likewise.
32710         * modules/unistd (Depends-on): Likewise.
32711         * modules/wchar (Depends-on): Likewise.
32712         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
32713         * lib/stdlib.in.h (includes): Likewise.
32714         * lib/string.in.h (includes): Likewise.
32715         * lib/time.in.h (includes): Likewise.
32716         * lib/unistd.in.h (includes): Likewise.
32717         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
32718         replaced.
32719         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
32720         * m4/stddef_h.m4: New file.
32721         * modules/stddef: Likewise.
32722         * lib/stddef.in.h: Likewise.
32723         * modules/stddef-tests: Likewise.
32724         * tests/test-stddef.c: Likewise.
32725         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
32726         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
32727         * doc/posix-headers/locale.texi (locale.h): Likewise.
32728         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
32729         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
32730         * doc/posix-headers/string.texi (string.h): Likewise.
32731         * doc/posix-headers/time.texi (time.h): Likewise.
32732         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
32733         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
32734
32735 2009-08-14  Eric Blake  <ebb9@byu.net>
32736
32737         doc: improve git diff of texinfo files
32738         * .gitattributes: Add rule for *.texi files, with hint on how to
32739         use it.
32740         Copied from m4, and based on a report by Bruno Haible.
32741
32742 2009-08-14  Bruno Haible  <bruno@clisp.org>
32743
32744         Disable multithread support by default on Cygwin 1.5.x for real.
32745         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
32746
32747 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
32748
32749         update-copyright: much ado about intervals
32750         * build-aux/update-copyright: Implement and document
32751         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
32752         of copyright year intervals.
32753         Also, document UPDATE_COPYRIGHT_YEAR.
32754         * tests/test-update-copyright.sh: Test it.
32755
32756         update-copyright: convert 2-digit to 4-digit years
32757         * build-aux/update-copyright: Implement and document.
32758         * tests/test-update-copyright.sh: Update.
32759
32760 2009-08-14  Jim Meyering  <meyering@redhat.com>
32761
32762         test-exclude: avoid coreutils "make check" failure
32763         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
32764         just as in test-argmatch.c.
32765
32766 2009-08-13  Eric Blake  <ebb9@byu.net>
32767
32768         test-dup2: fix bad assumption
32769         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
32770         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
32771
32772         test-version-etc: fix CRLF portability issue
32773         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
32774         recognize \r.
32775         * tests/test-argp-version-etc-1.sh: Likewise.
32776
32777         getopt: update client modules
32778         * modules/argp (Depends-on): Use getopt-gnu.
32779         * modules/git-merge-changelog (Depends-on): Likewise.
32780         * modules/long-options (Depends-on): Likewise.
32781         * modules/xstrtol (Depends-on): Likewise.
32782
32783 2009-08-13  Simon Josefsson  <simon@josefsson.org>
32784
32785         * tests/test-version-etc.sh: Don't fail on different
32786         project/version.  Don't fail on CRLF differences.  Rewrite to use
32787         multiple -e instead of multiple sed forks, suggested by Eric Blake
32788         <ebb9@byu.net>.
32789         * tests/test-argp-version-etc-1.sh: Likewise.
32790
32791 2009-08-13  Simon Josefsson  <simon@josefsson.org>
32792
32793         * tests/test-version-etc.sh: Don't fail on different
32794         project/version.
32795
32796 2009-08-12  Bruno Haible  <bruno@clisp.org>
32797
32798         Tests for modules 'getopt-posix', 'getopt-gnu'.
32799         * modules/getopt-posix-tests: New file.
32800         * tests/test-getopt.c: New file.
32801         * tests/test-getopt.h: New file.
32802         * tests/test-getopt_long.h: New file.
32803
32804         New modules 'getopt-posix', 'getopt-gnu'.
32805         * modules/getopt-gnu: New file, renamed from modules/getopt.
32806         * modules/getopt-posix: New file.
32807         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
32808         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
32809         (gl_GETOPT): Remove macro.
32810         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
32811         Disable the test against BSD systems that declare optreset. Test
32812         against mingw bug. Test against lack of support of optional arguments
32813         on many platforms.
32814         * doc/glibc-headers/getopt.texi: Update module name and list of
32815         relevant platforms.
32816         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
32817         'getopt-gnu' and more portability problems.
32818         * NEWS: Mention the changes.
32819
32820 2009-08-12  Bruno Haible  <bruno@clisp.org>
32821
32822         Ensure that optarg etc. get declared by <unistd.h>.
32823         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
32824         AC_USE_SYSTEM_EXTENSIONS.
32825         * modules/getopt (Depends-on): Add 'extensions'.
32826
32827 2009-08-12  Bruno Haible  <bruno@clisp.org>
32828
32829         Avoid test link errors.
32830         * modules/pipe-filter-ii-tests (Makefile.am): Define
32831         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
32832         * modules/pipe-filter-gi-tests (Makefile.am): Define
32833         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
32834         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
32835
32836 2009-08-12  Bruno Haible  <bruno@clisp.org>
32837
32838         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
32839         gl_GETOPT_SUBSTITUTE before.
32840         (gl_GETOPT): Use it.
32841         * m4/argp.m4 (gl_ARGP): Update.
32842         Reported by Sergey Poznyakoff.
32843
32844         * m4/getopt.m4: Reorder macros.
32845         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
32846         (gl_GETOPT_SUBSTITUTE): Remove macro.
32847
32848 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
32849
32850         Minor improvement in gitlog-to-changelog
32851
32852         * build-aux/gitlog-to-changelog: New option `--format' makes
32853         output format string configurable.
32854
32855 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
32856
32857         Optimize exclude: use hash tables for non-wildcard patterns.
32858
32859         * lib/exclude.c: Include hash.h and mbuiter.h
32860         (struct exclude_pattern, exclude_segment): New data types.
32861         (struct exclude): Rewrite.
32862         (fnmatch_pattern_has_wildcards): New function.
32863         (new_exclude_segment, free_exclude_segment): New functions.
32864         (excluded_file_pattern_p, excluded_file_name_p): New functions.
32865         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
32866         * lib/exclude.h (is_fnmatch_pattern): New prototype.
32867         * modules/exclude: Depend on hash and mbuiter.
32868
32869         * modules/exclude-tests: New file.
32870         * tests/test-exclude.c: New file.
32871         * tests/test-exclude1.sh: New file.
32872         * tests/test-exclude2.sh: New file.
32873         * tests/test-exclude3.sh: New file.
32874         * tests/test-exclude4.sh: New file.
32875         * tests/test-exclude5.sh: New file.
32876         * tests/test-exclude6.sh: New file.
32877         * tests/test-exclude7.sh: New file.
32878
32879 2009-08-12  Bruno Haible  <bruno@clisp.org>
32880
32881         Ensure that getopt() gets declared by <unistd.h>.
32882         * lib/unistd.in.h: Conditionally include getopt.h.
32883         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
32884         Set GNULIB_UNISTD_H_GETOPT.
32885         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
32886         GNULIB_UNISTD_H_GETOPT.
32887         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
32888
32889 2009-08-12  Bruno Haible  <bruno@clisp.org>
32890
32891         Clarify logic.
32892         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
32893         gl_replace_getopt instead of GETOPT_H.
32894
32895 2009-08-12  Bruno Haible  <bruno@clisp.org>
32896
32897         * m4/getopt.m4: Add comments.
32898
32899 2009-08-12  Bruno Haible  <bruno@clisp.org>
32900
32901         Disable multithread support by default on Cygwin 1.5.x.
32902         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
32903         set gl_use_threads=no if not specified otherwise.
32904
32905 2009-08-11  Bruno Haible  <bruno@clisp.org>
32906
32907         Avoid compilation error on NetBSD 5.0.
32908         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
32909         * tests/test-stdio.c: Likewise.
32910         * tests/test-stdlib.c: Likewise.
32911         * tests/test-string.c: Likewise.
32912         * tests/test-unistd.c: Likewise.
32913         Reported by Greg Troxel <gdt@ir.bbn.com>
32914         at <https://savannah.gnu.org/support/?106973>.
32915
32916 2009-08-11  Bruno Haible  <bruno@clisp.org>
32917
32918         * modules/dup2-tests (Depends-on): Remove close.
32919
32920         Undo 2009-07-19 commit.
32921         * modules/acl-tests (Depends-on): Remove close.
32922         * modules/binary-io-tests (Depends-on): Likewise.
32923         * modules/closein-tests (Depends-on): Likewise.
32924         * modules/flock-tests (Depends-on): Likewise.
32925         * modules/fsync-tests (Depends-on): Likewise.
32926         * modules/lseek-tests (Depends-on): Likewise.
32927         * modules/pipe-tests (Depends-on): Likewise.
32928         * modules/posix_spawn-tests (Depends-on): Likewise.
32929         * modules/posix_spawnp-tests (Depends-on): Likewise.
32930         * modules/stat-time-tests (Depends-on): Likewise.
32931         * modules/yesno-tests (Depends-on): Likewise.
32932
32933 2009-08-10  Bruno Haible  <bruno@clisp.org>
32934
32935         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
32936
32937 2009-08-10  Bruno Haible  <bruno@clisp.org>
32938
32939         Fix a gcc warning.
32940         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
32941
32942 2009-08-10  Bruno Haible  <bruno@clisp.org>
32943
32944         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
32945         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
32946         not only the first time.
32947         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
32948         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
32949         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
32950         is 1, not only the the first time.
32951
32952 2009-08-10  Bruno Haible  <bruno@clisp.org>
32953
32954         Make it possible to use module 'gethostname' without module 'close'.
32955         * lib/unistd.in.h (close): Evoke a link error only if
32956         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
32957         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
32958         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
32959         * modules/unistd (Makefile.am): Substitute
32960         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
32961         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
32962         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
32963         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
32964         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
32965         * modules/sys_ioctl (Makefile.am): Substitute
32966         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
32967         * modules/socket (configure.ac): On native Windows, set
32968         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
32969         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
32970         Reported by Sam Steingold <sds@gnu.org>.
32971
32972 2009-08-10  Bruno Haible  <bruno@clisp.org>
32973
32974         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
32975         * modules/ioctl (configure.ac): Likewise.
32976
32977 2009-08-10  Bruno Haible  <bruno@clisp.org>
32978
32979         Avoid collision between gnulib wrapper and libintl wrapper.
32980         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
32981         already defined in intl/printf.c.
32982         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
32983         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
32984
32985 2009-08-09  Bruno Haible  <bruno@clisp.org>
32986
32987         Make <sys/select.h> really self-contained, also on Solaris 10.
32988         * lib/sys_select.in.h: Include <string.h>.
32989         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
32990         Solaris 10 problem.
32991         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
32992         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
32993         Reported by Jim Meyering.
32994
32995 2009-08-09  Bruno Haible  <bruno@clisp.org>
32996
32997         Avoid warnings from 'aclocal' that are due to a use of macro name
32998         AM_XGETTEXT_OPTION that is not defined in automake.
32999         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
33000         automake.
33001         * modules/error (configure.ac): Likewise.
33002         * modules/propername (configure.ac): Likewise.
33003         * modules/vasprintf (configure.ac): Likewise.
33004         * modules/verror (configure.ac): Likewise.
33005         * modules/xprintf (configure.ac): Likewise.
33006         * modules/xvasprintf (configure.ac): Likewise.
33007
33008 2009-08-08  Bruno Haible  <bruno@clisp.org>
33009
33010         Avoid compilation error in C++ mode.
33011         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
33012         Reported by Sam Steingold <sds@gnu.org>.
33013
33014 2009-08-08  Bruno Haible  <bruno@clisp.org>
33015
33016         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
33017         for the various Unix platforms.
33018         * doc/posix-headers/limits.texi: Update platforms list regarding
33019         HOST_NAME_MAX.
33020         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
33021
33022 2009-08-07  Jim Meyering  <meyering@redhat.com>
33023
33024         selinux-at: fix typo in a comment
33025         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
33026         Spotted by Paolo Bonzini.
33027
33028         selinux-at: remove redundant m4 code, add documentation
33029         * modules/selinux-at (configure.ac): Remove redundant code.
33030         LIB_SELINUX is already set via the dependent module, selinux-h.
33031         (Include): Add quotes around selinux-at.h.
33032         * lib/selinux-at.h: Add documentation.
33033         Reported by Bruno Haible in
33034         http://marc.info/?l=gnulib-bug&m=124958988300749
33035
33036 2009-08-07  Bruno Haible  <bruno@clisp.org>
33037
33038         Avoid link error on MacOS X 10.3 and 10.4.
33039         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
33040         on non-ELF systems.
33041         * lib/argp-pv.c (argp_program_version): Likewise.
33042         Reported by Simon Josefsson.
33043
33044 2009-08-07  Simon Josefsson  <simon@josefsson.org>
33045
33046         * tests/test-version-etc.sh: Use $EXEEXT.
33047
33048 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
33049
33050         update-copyright: update documentation to point to maint.mk
33051         * build-aux/update-copyright: Here.
33052
33053 2009-08-06  Jim Meyering  <meyering@redhat.com>
33054
33055         maint.mk: support update-copyright-local
33056         * top/maint.mk (update-copyright-local): Define place-holder.
33057         (update-copyright): Depend on $(update-copyright-local).
33058
33059 2009-08-06  Jim Meyering  <meyering@redhat.com>
33060
33061         selinux-at: new module
33062         Initially written for coreutils, this module will soon be
33063         used by findutils, too.
33064         * MODULES.html.sh [Misc]: Add selinux-at.
33065         * lib/selinux-at.h: New file, from coreutils.
33066         * lib/selinux-at.c: Likewise.
33067         * modules/selinux-at: Likewise.
33068         (License): Change from LGPL to GPL, since it depends
33069         on the GPL'd openat module.
33070
33071         doc: update README
33072         * README: Remove references to cogito.
33073         Remove cvs-repo-updating instructions from 2007.
33074         Don't imply that CVS is better if you have limited disk space.
33075
33076 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
33077
33078         update-copyright: support C-style comments
33079         * build-aux/update-copyright: Implement and document.
33080         * tests/test-update-copyright.sh: Test.
33081
33082 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
33083
33084         update-copyright: support omitted "(C)"
33085         * build-aux/update-copyright: Implement and document.  Also,
33086         allow variable whitespace before "(C)".
33087         * tests/test-update-copyright.sh: Test.
33088
33089 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
33090
33091         update-copyright: don't trip on non-FSF copyright statements
33092         * build-aux/update-copyright: Fix so that the first correctly
33093         formatted FSF copyright statement is recognized no matter what
33094         appears before it.  Update documentation.
33095         * tests/test-update-copyright.sh: Test that.
33096
33097 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
33098
33099         update-copyright: clean up code a little
33100         * build-aux/update-copyright: Append "_re" to the name of any
33101         variable holding a regular expression.
33102         Replace "old" and "new" with "stmt" in variable names.
33103         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
33104         handled correctly.
33105         Format code more consistently.
33106
33107 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
33108
33109         update-copyright-tests: improve portability
33110         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
33111         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
33112
33113 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
33114
33115         update-copyright: support @copyright{} and &copy;
33116         * build-aux/update-copyright: Implement and document.
33117         * tests/test-update-copyright.sh: Test.
33118
33119 2009-08-04  Jim Meyering  <meyering@redhat.com>
33120
33121         update-copyright-tests: correctly test EOL=\r\n handling
33122         * tests/test-update-copyright.sh: Put \r at the end of some lines
33123         for the dos-eol tests.  Based on a patch by Joel E. Denny.
33124
33125         maint.mk: make update-copyright exclusion list more configurable
33126         * top/maint.mk (update-copyright): Default to excluding COPYING,
33127         but allow an override, in case someone does want to update that file.
33128
33129         maint.mk: don't update copyright date in COPYING
33130         * top/maint.mk (update-copyright): Exclude COPYING.
33131
33132         maint.mk: add a copyright-updating rule
33133         * top/maint.mk (update-copyright): New rule.
33134         Derived from coreutils/Makefile.am.
33135
33136         update-copyright: rename some variables
33137         * build-aux/update-copyright: Rename a few variables for clarity.
33138         Tweak syntax.  List Joel E. Denny as coauthor.
33139
33140 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
33141
33142         update-copyright: fix bug for 2-digit last year and add tests
33143         * build-aux/update-copyright: Fix bug.
33144         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
33145         specified.
33146         * modules/update-copyright-tests: New
33147         * tests/test-update-copyright.sh: New.
33148
33149 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
33150
33151         update-copyright: handle leading tabs in line prefix
33152         * build-aux/update-copyright: Count leading tabs as 8 spaces
33153         when computing margin.  This helps with the formatting of
33154         ChangeLogs, for example.
33155         Fix documentation a little.
33156
33157 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
33158
33159         update-copyright: support EOL=\r\n
33160         * build-aux/update-copyright: Implement that.
33161
33162 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
33163
33164         update-copyright: automatically format copyright statements
33165         * build-aux/update-copyright: Implement that.
33166         Also, be a little more predictable and safer by always failing
33167         when the full copyright format is not perfectly recognized as an
33168         unbroken whole.  Discussed at
33169         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
33170         Rewrite documentation.
33171
33172 2009-08-03  Bruno Haible  <bruno@clisp.org>
33173
33174         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
33175
33176 2009-08-02  Bruno Haible  <bruno@clisp.org>
33177
33178         Tests for module 'uname'.
33179         * modules/uname-tests: New file.
33180         * tests/test-uname.c: New file.
33181
33182         New module 'uname'.
33183         * lib/uname.c: New file.
33184         * m4/uname.m4: New file.
33185         * modules/uname: New file.
33186         * doc/posix-functions/uname.texi: Mention the new module.
33187
33188 2009-08-02  Bruno Haible  <bruno@clisp.org>
33189
33190         Tests for module 'sys_utsname'.
33191         * modules/sys_utsname-tests: New file.
33192         * tests/test-sys_utsname.c: New file.
33193
33194         New module 'sys_utsname'.
33195         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
33196         * m4/sys_utsname_h.m4: New file.
33197         * modules/sys_utsname: New file.
33198         * doc/posix-headers/sys_utsname.texi: Mention the new module.
33199
33200 2009-08-02  Bruno Haible  <bruno@clisp.org>
33201
33202         Implicitly initialize the sockets library.
33203         * lib/gethostname.c: Include sockets.h.
33204         (rpl_gethostname): Invoke gl_sockets_startup.
33205         * lib/socket.c: Include sockets.h.
33206         (rpl_socket): Invoke gl_sockets_startup.
33207         * modules/gethostname (Depends-on): Add sockets.
33208         * modules/socket (Depends-on): Likewise.
33209         * tests/test-poll.c: Don't include sockets.h.
33210         (main): Don't invoke gl_sockets_startup.
33211         * tests/test-select.c: Don't include sockets.h.
33212         (main): Don't invoke gl_sockets_startup.
33213
33214 2009-08-02  Bruno Haible  <bruno@clisp.org>
33215
33216         Allow multiple calls to gl_sockets_startup.
33217         * lib/sockets.c (initialized_sockets_version): New variable.
33218         (gl_sockets_startup): Do nothing if already called for this or a higher
33219         version.
33220         (gl_sockets_cleanup): Reset initialized_sockets_version.
33221
33222 2009-08-03  Simon Josefsson  <simon@josefsson.org>
33223
33224         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
33225         different project/version.
33226
33227 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
33228             Bruno Haible  <bruno@clisp.org>
33229
33230         Tests for module 'pipe-filter-gi'.
33231         * modules/pipe-filter-gi-tests: New file.
33232         * tests/test-pipe-filter-gi1.sh: New file.
33233         * tests/test-pipe-filter-gi1.c: New file.
33234         * tests/test-pipe-filter-gi2.sh: New file.
33235         * tests/test-pipe-filter-gi2-main.c: New file.
33236         * tests/test-pipe-filter-gi2-child.c: New file.
33237
33238         New module 'pipe-filter-gi'.
33239         * lib/pipe-filter-gi.c: New file.
33240         * modules/pipe-filter-gi: New file.
33241
33242 2009-08-02  Bruno Haible  <bruno@clisp.org>
33243             Paolo Bonzini  <bonzini@gnu.org>
33244
33245         Tests for module 'pipe-filter-ii'.
33246         * modules/pipe-filter-ii-tests: New file.
33247         * tests/test-pipe-filter-ii1.sh: New file.
33248         * tests/test-pipe-filter-ii1.c: New file.
33249         * tests/test-pipe-filter-ii2.sh: New file.
33250         * tests/test-pipe-filter-ii2-main.c: New file.
33251         * tests/test-pipe-filter-ii2-child.c: New file.
33252
33253         New module 'pipe-filter-ii'.
33254         * lib/pipe-filter.h: New file.
33255         * lib/pipe-filter-ii.c: New file.
33256         * lib/pipe-filter-aux.h: New file.
33257         * modules/pipe-filter-ii: New file.
33258
33259 2009-08-02  Simon Josefsson  <simon@josefsson.org>
33260
33261         * lib/gc-libgcrypt.c: Change copyright to FSF.
33262         * lib/gc-gnulib.c: Likewise.
33263
33264 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
33265
33266         * lib/gethostname.c: Include limits.h.
33267
33268 2009-08-02  Simon Josefsson  <simon@josefsson.org>
33269             Bruno Haible  <bruno@clisp.org>
33270
33271         Ensure HOST_NAME_MAX as part of the gethostname module.
33272         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
33273         define also HOST_NAME_MAX.
33274         * tests/test-gethostname.c: Include <limits.h>.
33275         (main): Check also HOST_NAME_MAX.
33276         * doc/posix-headers/limits.texi: Document the mingw problem.
33277
33278 2009-08-02  Bruno Haible  <bruno@clisp.org>
33279
33280         * lib/gethostname.c (gethostname): Fix handling of large len argument.
33281         Add comments.
33282
33283 2009-03-31  Simon Josefsson  <simon@josefsson.org>
33284
33285         * lib/gethostname.c: Add Windows wrapper.
33286         * m4/gethostname.m4: Look for gethostname in -lws2_32.
33287         * modules/gethostname: Depend on sys_socket & errno, for also
33288         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
33289         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
33290
33291 2009-07-31  Jim Meyering  <meyering@redhat.com>
33292
33293         getloadavg: fix symbol name in comment
33294         * lib/getloadavg.c: Correct a typo I introduced when adding
33295         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
33296         Matt Kraai spotted the problem.
33297
33298 2009-07-29  Matt Kraai  <mkraai@beckman.com>
33299
33300         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
33301         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
33302         code also if ! defined N_NAME_POINTER.
33303         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
33304         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
33305         but the n_name member is a 12-byte array.
33306
33307 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
33308
33309         update-copyright: generalize comment handling
33310         * build-aux/update-copyright: Handle copyright statements
33311         within more comment styles.
33312         Document usage.
33313         Report any file with an external copyright holder or parse failure.
33314
33315 2009-07-29  Jim Meyering  <meyering@redhat.com>
33316
33317         mktime: correct setting of REPLACE_MKTIME
33318         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
33319
33320         update-copyright: new module
33321         * modules/update-copyright: New file.
33322         * build-aux/update-copyright: New file.
33323         * MODULES.html.sh (maint+release support): Add update-copyright.
33324
33325 2009-07-27  Bruno Haible  <bruno@clisp.org>
33326
33327         Fix compilation error when <ctime> is used and mktime is replaced.
33328         * lib/time.in.h (mktime): New declaration.
33329         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
33330         REPLACE_MKTIME instead of defining mktime in config.h.
33331         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
33332         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
33333         Reported by Ross McFarland <rwmcfa1@neces.com>.
33334
33335 2009-07-27  Bruno Haible  <bruno@clisp.org>
33336
33337         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
33338         Reported by Matt Kraai <mkraai@beckman.com>.
33339
33340 2009-07-25  Jim Meyering  <meyering@redhat.com>
33341
33342         maint.mk: avoid warnings about missing files
33343         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
33344         diagnostic when .prev-version does not exist.
33345         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
33346         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
33347         nonexistent cfg.mk.
33348         Suggestions from Simon Josefsson.
33349
33350 2009-07-25  Bruno Haible  <bruno@clisp.org>
33351
33352         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
33353         defined as macros. Needed on QNX 6.4.1.
33354         Reported by Matt Kraai <mkraai@beckman.com>.
33355
33356 2009-07-23  Jim Meyering  <meyering@redhat.com>
33357
33358         maint.mk: invoke "make dist" with a working value of XZ_OPT
33359         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
33360
33361 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
33362
33363         Make fseeko.c compile on QNX.
33364         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
33365
33366 2009-07-22  Peter Simons  <simons@cryp.to>
33367
33368         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
33369         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
33370         * lib/md4.h: Likewise.
33371         * lib/md5.h: Likewise.
33372         * lib/sha1.h: Likewise.
33373         * lib/sha256.h: Likewise.
33374         * lib/sha512.h: Likewise.
33375
33376         tests-sha1: don't assign literal string to 'char *' variable
33377         * tests/test-sha1.c (main): Declare locals with "const" to match
33378         attributes of the right hand side.
33379
33380 2009-07-21  Eric Blake  <ebb9@byu.net>
33381
33382         dup2: fix more mingw problems
33383         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
33384         fd to itself.
33385         * doc/posix-functions/dup2.texi (dup2): Document the bug.
33386         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
33387         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
33388         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
33389         care of mingw bugs.
33390
33391 2009-07-21  Jim Meyering  <meyering@redhat.com>
33392
33393         vc-list-files: avoid failure when /bin/sh is dash
33394         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
33395         On some Debian based systems, /bin/sh is a symlink to dash, and running
33396         this command would omit the "/" following each 'tests' prefix:
33397           dash -x build-aux/vc-list-files -C . tests
33398         That is because bash and dash work differently:
33399           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
33400           bash ok
33401           dash odd
33402
33403 2009-07-21  Eric Blake  <ebb9@byu.net>
33404
33405         dup2-tests: test previous patch
33406         * modules/dup2-tests: New file.
33407         * tests/test-dup2.c: Likewise.
33408         * tests/test-open.c (main): Avoid unspecified behavior.
33409         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
33410         test.
33411
33412         dup2: work around mingw and cygwin 1.5 bug
33413         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
33414         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
33415         * modules/unistd (Makefile.am): Substitute it.
33416         * lib/unistd.in.h (dup2): Declare the replacement.
33417         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
33418         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
33419         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
33420         * modules/execute (Depends-on): Add dup2.
33421         * modules/fseterr (Depends-on): Likewise.
33422         * modules/pipe (Depends-on): Likewise.
33423         * modules/posix_spawn-internal (Depends-on): Likewise.
33424
33425 2009-07-21  Bruno Haible  <bruno@clisp.org>
33426
33427         * modules/.gitattributes: New file.
33428
33429 2009-07-20  Bruno Haible  <bruno@clisp.org>
33430
33431         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
33432         (main): Use it.
33433
33434 2009-07-20  Eric Blake  <ebb9@byu.net>
33435
33436         test-pipe: make a bit more robust.
33437         * tests/test-pipe.c (myerr): Allow error messages regardless of
33438         what we do to stderr.
33439         (test_pipe): Rearrange to avoid deadlock.
33440         (child_main): Try a larger read, to ensure we avoided deadlock.
33441         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
33442         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
33443         if misused.
33444
33445 2009-07-19  Jim Meyering  <meyering@redhat.com>
33446
33447         fts: avoid false-positive cycle-detection
33448         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
33449         for each new command line argument.
33450
33451 2009-07-19  Bruno Haible  <bruno@clisp.org>
33452
33453         Fix build error on mingw with the modules sys_select and unistd.
33454         * modules/acl-tests (Depends-on): Add close.
33455         * modules/binary-io-tests (Depends-on): Likewise.
33456         * modules/closein-tests (Depends-on): Likewise.
33457         * modules/flock-tests (Depends-on): Likewise.
33458         * modules/fsync-tests (Depends-on): Likewise.
33459         * modules/lseek-tests (Depends-on): Likewise.
33460         * modules/pipe-tests (Depends-on): Likewise.
33461         * modules/posix_spawn-tests (Depends-on): Likewise.
33462         * modules/posix_spawnp-tests (Depends-on): Likewise.
33463         * modules/stat-time-tests (Depends-on): Likewise.
33464         * modules/yesno-tests (Depends-on): Likewise.
33465
33466 2009-07-19  Bruno Haible  <bruno@clisp.org>
33467
33468         Unify conditionals.
33469         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
33470         macros, not at the compiler macros.
33471         * lib/pipe.c: Likewise.
33472         * lib/execute.c: Likewise.
33473         * lib/spawni.c: Likewise.
33474
33475 2009-07-19  Bruno Haible  <bruno@clisp.org>
33476
33477         Fix handling of closed stdin/stdout/stderr on mingw.
33478         * lib/w32spawn.h: Include unistd.h.
33479         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
33480         file descriptor with O_NOINHERIT flag.
33481         (fd_safer_noinherit): New function, based on fd-safer.c.
33482         (dup_safer_noinherit): New function, based on dup-safer.c.
33483         (undup_safer_noinherit): New function.
33484         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
33485         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
33486         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
33487         instead of fd_safer.
33488         * tests/test-pipe.c: Include <windows.h>.
33489         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
33490         result.
33491
33492         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
33493         from main.
33494         (test_pipe): Pass an extra argument for disambiguation.
33495         (main): Invoke parent_main or child_main.
33496
33497         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
33498         consistently.
33499
33500 2009-07-18  Eric Blake  <ebb9@byu.net>
33501
33502         test-pipe: fix mingw build
33503         * tests/test-pipe.c (main): Avoid fcntl on mingw.
33504
33505 2009-07-18  Bruno Haible  <bruno@clisp.org>
33506
33507         * modules/pipe-tests (Makefile.am): Fix typo.
33508
33509 2009-07-18  Eric Blake  <ebb9@byu.net>
33510
33511         error: fix mingw build
33512         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
33513         Reported by Bruno Haible.
33514
33515         error: avoid undefined use of stdout
33516         * lib/error.c (error, error_at_line): Check that fd 1 is open
33517         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
33518         is handling faults and the close_stdout module wants to report the
33519         detection of closed stdout as an error.
33520
33521 2009-07-17  Eric Blake  <ebb9@byu.net>
33522
33523         pipe: be robust in face of closed fds
33524         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
33525         should cause child to misbehave.
33526         * modules/pipe-tests: New module.
33527         * tests/test-pipe.c: New file.
33528         * tests/test-pipe.sh: New file.
33529         Reported by Akim Demaille.
33530
33531 2009-07-14  Bruno Haible  <bruno@clisp.org>
33532
33533         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
33534         Reported by anonymous kc.
33535
33536 2009-07-07  Jim Meyering  <meyering@redhat.com>
33537
33538         maint.mk: don't look for translatable strings in *.m4 or *.mk
33539         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
33540         when searching for translatable strings.
33541
33542 2009-07-05  Jim Meyering  <meyering@redhat.com>
33543
33544         remove superfluous parentheses in STREQ definition
33545         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
33546         * lib/getugroups.c (STREQ): Likewise.
33547         * lib/fnmatch.c (STREQ): Likewise.
33548         Spotted by Bruno Haible.
33549
33550 2009-07-04  Jim Meyering  <meyering@redhat.com>
33551
33552         argv-iter: new module
33553         * MODULES.html.sh: Add argv-iter.
33554         * lib/argv-iter.c, lib/argv-iter.h: New files.
33555         * modules/argv-iter: New file.
33556         * modules/argv-iter-tests: New file.
33557         * tests/test-argv-iter.c: Test it.
33558
33559 2009-07-04  Bruno Haible  <bruno@clisp.org>
33560
33561         Fix assertion.
33562         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
33563         contains more exact copies of a given entry than file2, leave the extra
33564         copies unpaired rather than aborting.
33565         Reported by Eric Blake.
33566
33567 2009-07-02  Bruno Haible  <bruno@clisp.org>
33568
33569         Speedup git-merge-changelog for git cherry-pick.
33570         * lib/git-merge-changelog.c (struct entries_mapping): New type.
33571         (entries_mapping_get): New function, extracted from compute_mapping.
33572         (entries_mapping_reverse_get): New function.
33573         (compute_mapping): Add a 'full' argument. Return the result in a
33574         'struct entries_mapping'.
33575         (main): Update. Access the mappings through entries_mapping_get.
33576         Reported by Eric Blake.
33577
33578 2009-07-02  Bruno Haible  <bruno@clisp.org>
33579
33580         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
33581         best_i.
33582
33583 2009-07-02  Bruno Haible  <bruno@clisp.org>
33584
33585         Speed up approximate search for matching ChangeLog entries.
33586         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
33587         argument. Call fstrcmp_bounded instead of fstrcmp.
33588         (compute_mapping, try_split_merged_entry, main): Update callers.
33589
33590 2009-07-02  Bruno Haible  <bruno@clisp.org>
33591
33592         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
33593
33594 2009-06-30  Bruno Haible  <bruno@clisp.org>
33595
33596         Reduce the number of uc_is_cased calls.
33597         * lib/unicase.h (casing_suffix_context_t): Add
33598         'first_char_except_ignorable' field.
33599         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
33600         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
33601         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
33602         Update initializer.
33603         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
33604         case-ignorable characters.
33605         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
33606         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
33607         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
33608         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
33609         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
33610
33611 2009-06-30  Bruno Haible  <bruno@clisp.org>
33612
33613         Tests for module 'unicase/ignorable'.
33614         * modules/unicase/ignorable-tests: New file.
33615         * tests/unicase/test-ignorable.c: New file, generated by
33616         gen-uni-tables.
33617
33618         Tests for module 'unicase/cased'.
33619         * modules/unicase/cased-tests: New file.
33620         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
33621         * tests/unicase/test-predicate-part1.h: New file, derived from
33622         tests/unictype/test-predicate-part1.h.
33623         * tests/unicase/test-predicate-part2.h: New file, same as
33624         tests/unictype/test-predicate-part2.h.
33625
33626         Fix evaluation of "Before C" condition of FINAL_SIGMA.
33627         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
33628         (output_casing_properties): New function.
33629         (main): Call it.
33630         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
33631         * lib/unicase/cased.c: Include unictype/bitmap.h.
33632         (uc_is_cased): Define through a bitmap lookup.
33633         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
33634         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
33635         (uc_is_case_ignorable): Define through a bitmap lookup.
33636         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
33637         lib/unictype/bitmap.h.
33638         (Depends-on): Add inline. Clean up.
33639         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
33640         lib/unictype/bitmap.h.
33641         (Depends-on): Add inline. Clean up.
33642         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
33643         recognition.
33644         * tests/unicase/test-u16-tolower.c (main): Likewise.
33645         * tests/unicase/test-u32-tolower.c (main): Likewise.
33646
33647 2009-06-30  Bruno Haible  <bruno@clisp.org>
33648
33649         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
33650         * lib/unicase/u16-casemap.c: Likewise.
33651         * lib/unicase/u32-casemap.c: Likewise.
33652
33653 2009-06-29  Bruno Haible  <bruno@clisp.org>
33654
33655         Define u32_casefold as a wrapper around u32_ct_casefold.
33656         * lib/unicase/u32-casefold.c: Update.
33657         * modules/unicase/u32-casefold (Depends-on): Add
33658         unicase/u32-ct-casefold, unicase/empty-prefix-context,
33659         unicase/empty-suffix-context. Clean up.
33660
33661         Define u16_casefold as a wrapper around u16_ct_casefold.
33662         * lib/unicase/u16-casefold.c: Update.
33663         * modules/unicase/u16-casefold (Depends-on): Add
33664         unicase/u16-ct-casefold, unicase/empty-prefix-context,
33665         unicase/empty-suffix-context. Clean up.
33666
33667         Define u8_casefold as a wrapper around u8_ct_casefold.
33668         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
33669         * lib/unicase/u8-casefold.c: Update.
33670         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
33671         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
33672
33673         Define u32_totitle as a wrapper around u32_ct_totitle.
33674         * lib/unicase/u32-totitle.c: Update.
33675         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
33676         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
33677
33678         Define u16_totitle as a wrapper around u16_ct_totitle.
33679         * lib/unicase/u16-totitle.c: Update.
33680         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
33681         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
33682
33683         Define u8_totitle as a wrapper around u8_ct_totitle.
33684         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
33685         functions.
33686         (FUNC): Delegate to U_CT_TOTITLE.
33687         * lib/unicase/u8-totitle.c: Update.
33688         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
33689         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
33690
33691         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
33692         invocation.
33693         * modules/unicase/u32-tolower (Depends-on): Add
33694         unicase/empty-prefix-context, unicase/empty-suffix-context.
33695
33696         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
33697         invocation.
33698         * modules/unicase/u16-tolower (Depends-on): Add
33699         unicase/empty-prefix-context, unicase/empty-suffix-context.
33700
33701         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
33702         * modules/unicase/u8-tolower (Depends-on): Add
33703         unicase/empty-prefix-context, unicase/empty-suffix-context.
33704
33705         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
33706         invocation.
33707         * modules/unicase/u32-toupper (Depends-on): Add
33708         unicase/empty-prefix-context, unicase/empty-suffix-context.
33709
33710         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
33711         invocation.
33712         * modules/unicase/u16-toupper (Depends-on): Add
33713         unicase/empty-prefix-context, unicase/empty-suffix-context.
33714
33715         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
33716         * modules/unicase/u8-toupper (Depends-on): Add
33717         unicase/empty-prefix-context, unicase/empty-suffix-context.
33718
33719         New module 'unicase/u32-ct-casefold'.
33720         * lib/unicase/u32-ct-casefold.c: New file.
33721         * modules/unicase/u32-ct-casefold: New file.
33722
33723         New module 'unicase/u16-ct-casefold'.
33724         * lib/unicase/u16-ct-casefold.c: New file.
33725         * modules/unicase/u16-ct-casefold: New file.
33726
33727         New module 'unicase/u8-ct-casefold'.
33728         * lib/unicase/u8-ct-casefold.c: New file.
33729         * lib/unicase/u-ct-casefold.h: New file, derived from
33730         lib/unicase/u-casefold.h.
33731         * modules/unicase/u8-ct-casefold: New file.
33732
33733         New module 'unicase/u32-ct-totitle'.
33734         * lib/unicase/u32-ct-totitle.c: New file.
33735         * modules/unicase/u32-ct-totitle: New file.
33736
33737         New module 'unicase/u16-ct-totitle'.
33738         * lib/unicase/u16-ct-totitle.c: New file.
33739         * modules/unicase/u16-ct-totitle: New file.
33740
33741         New module 'unicase/u8-ct-totitle'.
33742         * lib/unicase/u8-ct-totitle.c: New file.
33743         * lib/unicase/u-ct-totitle.h: New file, derived from
33744         lib/unicase/u-totitle.h.
33745         * modules/unicase/u8-ct-totitle: New file.
33746
33747         New module 'unicase/u32-ct-tolower'.
33748         * lib/unicase/u32-ct-tolower.c: New file.
33749         * modules/unicase/u32-ct-tolower: New file.
33750
33751         New module 'unicase/u16-ct-tolower'.
33752         * lib/unicase/u16-ct-tolower.c: New file.
33753         * modules/unicase/u16-ct-tolower: New file.
33754
33755         New module 'unicase/u8-ct-tolower'.
33756         * lib/unicase/u8-ct-tolower.c: New file.
33757         * modules/unicase/u8-ct-tolower: New file.
33758
33759         New module 'unicase/u32-ct-toupper'.
33760         * lib/unicase/u32-ct-toupper.c: New file.
33761         * modules/unicase/u32-ct-toupper: New file.
33762
33763         New module 'unicase/u16-ct-toupper'.
33764         * lib/unicase/u16-ct-toupper.c: New file.
33765         * modules/unicase/u16-ct-toupper: New file.
33766
33767         New module 'unicase/u8-ct-toupper'.
33768         * lib/unicase/u8-ct-toupper.c: New file.
33769         * modules/unicase/u8-ct-toupper: New file.
33770
33771         Add context arguments to u*_casemap functions.
33772         * lib/unicase/unicasemap.h: Include unicase.h.
33773         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
33774         suffix_context arguments.
33775         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
33776         functions.
33777         (FUNC): Add prefix_context and suffix_context arguments. Use
33778         uc_is_cased and uc_is_case_ignorable.
33779         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
33780         * lib/unicase/u16-casemap.c: Likewise.
33781         * lib/unicase/u32-casemap.c: Likewise.
33782         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
33783         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
33784         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
33785         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
33786         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
33787         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
33788
33789         New module 'unicase/u32-suffix-context'.
33790         * lib/unicase/u32-suffix-context.c: New file.
33791         * modules/unicase/u32-suffix-context: New file.
33792
33793         New module 'unicase/u16-suffix-context'.
33794         * lib/unicase/u16-suffix-context.c: New file.
33795         * modules/unicase/u16-suffix-context: New file.
33796
33797         New module 'unicase/u8-suffix-context'.
33798         * lib/unicase/u8-suffix-context.c: New file.
33799         * lib/unicase/u-suffix-context.h: New file.
33800         * modules/unicase/u8-suffix-context: New file.
33801
33802         New module 'unicase/empty-suffix-context'.
33803         * lib/unicase/empty-suffix-context.c: New file.
33804         * modules/unicase/empty-suffix-context: New file.
33805
33806         New module 'unicase/u32-prefix-context'.
33807         * lib/unicase/u32-prefix-context.c: New file.
33808         * modules/unicase/u32-prefix-context: New file.
33809
33810         New module 'unicase/u16-prefix-context'.
33811         * lib/unicase/u16-prefix-context.c: New file.
33812         * modules/unicase/u16-prefix-context: New file.
33813
33814         New module 'unicase/u8-prefix-context'.
33815         * lib/unicase/u8-prefix-context.c: New file.
33816         * lib/unicase/u-prefix-context.h: New file.
33817         * lib/unicase/context.h: New file.
33818         * modules/unicase/u8-prefix-context: New file.
33819
33820         New module 'unicase/empty-prefix-context'.
33821         * lib/unicase/empty-prefix-context.c: New file.
33822         * modules/unicase/empty-prefix-context: New file.
33823
33824         New module 'unicase/ignorable'.
33825         * lib/unicase/ignorable.c: New file.
33826         * modules/unicase/ignorable: New file.
33827
33828         New module 'unicase/cased'.
33829         * lib/unicase/caseprop.h: New file.
33830         * lib/unicase/cased.c: New file.
33831         * modules/unicase/cased: New file.
33832
33833         New functions for case mapping of substrings.
33834         * lib/unicase.h (casing_prefix_context_t): New type.
33835         (unicase_empty_prefix_context): New variable.
33836         (u8_casing_prefix_context, u16_casing_prefix_context,
33837         u32_casing_prefix_context, u8_casing_prefixes_context,
33838         u16_casing_prefixes_context, u32_casing_prefixes_context): New
33839         declarations.
33840         (casing_suffix_context_t): New type.
33841         (unicase_empty_suffix_context): New variable.
33842         (u8_casing_suffix_context, u16_casing_suffix_context,
33843         u32_casing_suffix_context, u8_casing_suffixes_context,
33844         u16_casing_suffixes_context, u32_casing_suffixes_context,
33845         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
33846         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
33847         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
33848         declarations.
33849
33850 2009-06-28  Jim Meyering  <meyering@redhat.com>
33851
33852         boostrap: indent only with spaces
33853         * build-aux/bootstrap: Indent only with spaces, never TABs.
33854
33855         bootstrap: split long lines
33856         * build-aux/bootstrap: Keep line length < 80.
33857
33858         bootstrap: sync from coreutils
33859         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
33860         just as autoreconf does.  Verify a list of prerequisite
33861         package-name,version-number pairs if defined in bootstrap.conf.
33862         Refer to README-prereq, if prerequisites are not satisfied.
33863
33864 2009-06-27  Eric Blake  <ebb9@byu.net>
33865
33866         tests: add test for bogus NULL definition
33867         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
33868         * tests/test-stdlib.c: Likewise.
33869         * tests/test-string.c: Likewise.
33870         * tests/test-locale.c: Likewise.
33871         * tests/test-unistd.c: Likewise.
33872         * modules/stdio-tests (Depends-on): Add verify.
33873         * modules/stdlib-tests (Depends-on): Likewise.
33874         * modules/string-tests (Depends-on): Likewise.
33875         * modules/locale-tests (Depends-on): Likewise.
33876         * modules/unistd-tests (Depends-on): Likewise.
33877
33878 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
33879
33880         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
33881         self-explaining comment.
33882         * m4/selinux-selinux-h: Update serial.
33883         (gl_LIBSELINUX): New macro, adding a warning for missing development
33884         packages to code extracted from...
33885         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
33886         Add warning for missing development packages here, too.
33887
33888 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
33889
33890         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
33891
33892 2009-06-25  Eric Blake  <ebb9@byu.net>
33893
33894         version-etc: fix regression
33895         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
33896         gcc.
33897         (version_etc): Use it, to catch bugs with trailing NULL.
33898         * lib/version-etc.c (version_etc_arn): Delete unused argument.
33899         (version_etc_va): Fix logic bug.
33900         * modules/version-etc-tests: Add test.
33901         * tests/test-version-etc.c: New file.
33902         * tests/test-version-etc.sh: Likewise.
33903
33904 2009-06-25  Sam Steingold  <sds@gnu.org>
33905
33906         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
33907         mbtowc declaration.
33908
33909 2009-06-25  Eric Blake  <ebb9@byu.net>
33910
33911         fpurge: migrate into <stdio.h>
33912         * lib/fpurge.h: Delete...
33913         * lib/stdio.in.h (fpurge): ...and declare here, instead.
33914         * lib/fpurge.c (fpurge): Change declaring header.
33915         * modules/fpurge (Files): Drop deleted file.
33916         (Depends-on): Add stdio.
33917         (configure.ac): Set witness.
33918         * modules/stdio (Makefile.am): Support fpurge macros.
33919         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
33920         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
33921         * lib/fflush.c: Update client.
33922         * tests/test-fpurge.c: Likewise.
33923         * NEWS: Mention the change.
33924
33925 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
33926
33927         * lib/argp-version-etc.c (program_authors): Add const
33928         qualifier.
33929         * lib/version-etc.c: Fix typos in the comments.
33930         * modules/argp-version-etc: Depends on version-etc.
33931
33932 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
33933
33934         argp-version-etc: new module.
33935
33936         * lib/argp-version-etc.c: New file.
33937         * lib/argp-version-etc.h: New file.
33938         * modules/argp-version-etc: New file.
33939         * modules/argp-version-etc-tests: New file.
33940         * tests/test-argp-version-etc.c: New test.
33941         * tests/test-argp-version-etc-1.sh: New test.
33942
33943 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
33944
33945         Provide additional interfaces and documentation for version-etc
33946         module.
33947
33948         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
33949         interfaces.
33950         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
33951         prototypes.
33952
33953 2009-06-24  Bruno Haible  <bruno@clisp.org>
33954
33955         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
33956         HAVE_LIB${NAME} macro.
33957         Reported by Sam Steingold <sds@gnu.org>.
33958
33959 2009-06-23  Simon Josefsson  <simon@josefsson.org>
33960
33961         * modules/hash-tests (test_hash_LDADD): Link to libintl when
33962         needed.
33963
33964 2009-06-21  Bruno Haible  <bruno@clisp.org>
33965
33966         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
33967         work.
33968         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
33969         together with LIB${NAME}, LTLIB${NAME}.
33970         Reported by Sam Steingold <sds@gnu.org>.
33971
33972 2009-06-20  Jim Meyering  <meyering@redhat.com>
33973
33974         tests: make sc_require_test_exit_idiom more generic
33975         * top/maint.mk (Exit_witness_file): New overridable variable.
33976         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
33977         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
33978
33979 2009-06-19  Jim Meyering  <meyering@redhat.com>
33980
33981         hash: reverse order of src/dst parameters in an internal interface
33982         * lib/hash.c (transfer_entries): Reverse order of parameters to
33983         put DST before SRC.  Adjust callers.
33984
33985         tests: test-hash: avoid wholesale duplication
33986         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
33987         Instead, use a loop and add a single conditional.
33988
33989         tests: test-hash: allow seed selection via a command line argument
33990         * tests/test-hash.c (get_seed): New function.
33991         (main): Use it.
33992
33993 2009-06-19  Eric Blake  <ebb9@byu.net>
33994
33995         hash: avoid memory leak on allocation failure
33996         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
33997         failure.  Factor repeated algorithm...
33998         (transfer_entries): ...into new helper routine.
33999         (hash_delete): React to hash_rehash return value.
34000
34001         hash: reduce memory pressure in hash_rehash no-op case
34002         * lib/hash.c (next_prime): Avoid overflow.
34003         (hash_initialize): Factor bucket size computation...
34004         (compute_bucket_size): ...into new helper function.
34005         (hash_rehash): Use new function and open coding to reduce memory
34006         pressure, and avoid a memory leak in USE_OBSTACK code.
34007         Reported by Jim Meyering.
34008
34009 2009-06-18  Eric Blake  <ebb9@byu.net>
34010
34011         hash: make rotation more obvious
34012         * modules/hash (Depends-on): Add bitrotate and stdint.
34013         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
34014         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
34015         (SIZE_MAX): Rely on headers for definition.
34016         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
34017         (raw_hasher): Use rotr_sz.
34018         Suggested by Jim Meyering.
34019
34020         hash: fix memory leak in last patch
34021         * lib/hash.c (hash_rehash): Avoid memory leak.
34022
34023         hash: avoid no-op rehashing
34024         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
34025
34026         hash: provide default callback functions
34027         * lib/hash.c (raw_hasher, raw_comparator): New functions.
34028         (hash_initialize): Use them as defaults.
34029         * tests/test-hash.c (main): Test this.
34030
34031         hash: minor optimization
34032         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
34033         when possible.
34034         (hash_initialize): Document this promise.
34035         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
34036         * tests/test-hash.c (hash_compare_strings): Test this.
34037
34038 2009-06-18  Bruno Haible  <bruno@clisp.org>
34039
34040         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
34041         going to be replaced anyway.
34042
34043 2009-06-18  Bruno Haible  <bruno@clisp.org>
34044
34045         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
34046         in one place.
34047         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
34048         be replaced anyway.
34049
34050 2009-06-18  Eric Blake  <ebb9@byu.net>
34051
34052         hash: check for resize before insertion
34053         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
34054         threshold before insertion, so that a pathological hash_rehash
34055         that fills every bucket can still trigger another rehash.
34056
34057 2009-06-18  Jim Meyering  <meyering@redhat.com>
34058
34059         hash-tests: add a loop around the small tests
34060         * tests/test-hash.c (main): Repeat small tests with selected
34061         small initial table sizes.
34062
34063 2009-06-17  Eric Blake  <ebb9@byu.net>
34064
34065         hash: minor cleanups
34066         * lib/hash.h (hash_entry): Make opaque, by moving...
34067         * lib/hash.c (hash_entry): ...here.
34068         (hash_insert): Clarify restrictions on what can be inserted.
34069         (hash_get_next): Clarify when it is safe to remove an element
34070         during traversal.
34071         (check_tuning): Skip verification when tuning is known safe.
34072         (hash_initialize): Clarify restrictions on tuning.
34073
34074 2009-06-17  Jim Meyering  <jim@meyering.net>
34075         and Eric Blake  <ebb9@byu.net>
34076
34077         hash-tests: new module
34078         * modules/hash-tests: New file.
34079         * tests/test-hash.c: New file.
34080
34081 2009-06-17  Eric Blake  <ebb9@byu.net>
34082
34083         strstr-simple: document new module
34084         * MODULES.html.sh: Document new module.
34085
34086         strstr, strcasestr: replace on platforms with broken memchr
34087         * modules/strstr: Split into...
34088         * modules/strstr-simple: ...new module that does not care about
34089         performance, but does care about glibc bug.
34090         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
34091         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
34092         if platform memchr is broken, per Debian bug 521737.
34093         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
34094         memchr.
34095         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
34096         * doc/posix-functions/strstr.texi (strstr): Document the fix.
34097         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
34098         * modules/mountlist (Depends-on): Add strstr-simple.
34099         * modules/gen-uni-tables (Depends-on): Likewise.
34100         * modules/argz (Depends-on): Add strstr.
34101
34102 2009-06-17  Bruno Haible  <bruno@clisp.org>
34103
34104         * modules/posix_spawn-internal (Depends-on): Add errno.
34105
34106 2009-06-17  Bruno Haible  <bruno@clisp.org>
34107
34108         Define missing ESTALE on Interix 3.5.
34109         * lib/errno.in.h (ESTALE): Assign a value if missing.
34110         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
34111         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
34112         missing.
34113         * doc/posix-headers/errno.texi: Mention the Interix bug.
34114         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
34115
34116 2009-06-15  Eric Blake  <ebb9@byu.net>
34117
34118         memchr, memchr2: add valgrind exception
34119         * lib/memchr.valgrind: New file.
34120         * lib/memchr2.valgrind: New file.
34121         * modules/memchr (Files): Distribute valgrind file.
34122         * modules/memchr2 (Files): Likewise.
34123
34124         docs: memchr is no longer obsolete
34125         * MODULES.html.sh: Move memchr from obsolete to string.h section.
34126         * lib/string.in.h (memchr): Simplify logic.
34127
34128 2009-06-14  Jim Meyering  <meyering@redhat.com>
34129
34130         link-follow: fix the "checking..." message to not mention trailing slash
34131         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
34132         never considered trailing slashes.
34133
34134 2009-06-14  Bruno Haible  <bruno@clisp.org>
34135
34136         * m4/memchr.m4: Mention also the bug on IA-64.
34137         * doc/posix-functions/memchr.texi: Likewise.
34138
34139 2009-06-12  Eric Blake  <ebb9@byu.net>
34140
34141         memchr: detect broken x86_64 and alpha implementations
34142         * modules/memchr-tests (Depends-on): Move mmap detection...
34143         * modules/memchr (Depends-on): ...here.
34144         (configure.ac): Set indicator.
34145         * lib/string.in.h (memchr): Declare replacement.
34146         * modules/string (Makefile.am): Trigger replacement.
34147         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
34148         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
34149         bugs.
34150         * doc/posix-functions/memchr.texi (memchr): Document the bug.
34151         * modules/getpagesize (License): Relax license.
34152
34153 2009-06-11  Bruno Haible  <bruno@clisp.org>
34154
34155         * lib/idpriv.h: Add more references.
34156
34157 2009-06-08  Bruno Haible  <bruno@clisp.org>
34158
34159         Tests for module 'idpriv-droptemp'.
34160         * modules/idpriv-droptemp-tests: New file.
34161         * tests/test-idpriv-droptemp.sh: New file.
34162         * tests/test-idpriv-droptemp.su.sh: New file.
34163         * tests/test-idpriv-droptemp.c: New file.
34164
34165         New module 'idpriv-droptemp'.
34166         * lib/idpriv-droptemp.c: New file.
34167         * modules/idpriv-droptemp: New file.
34168
34169 2009-06-08  Bruno Haible  <bruno@clisp.org>
34170
34171         Tests for module 'idpriv-drop'.
34172         * modules/idpriv-drop-tests: New file.
34173         * tests/test-idpriv-drop.sh: New file.
34174         * tests/test-idpriv-drop.su.sh: New file.
34175         * tests/test-idpriv-drop.c: New file.
34176
34177         New module 'idpriv-drop'.
34178         * lib/idpriv.h: New file.
34179         * lib-idpriv-drop.c: New file.
34180         * m4/idpriv.m4: New file.
34181         * modules/idpriv-drop: New file.
34182
34183 2009-06-08  Bruno Haible  <bruno@clisp.org>
34184
34185         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
34186         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
34187         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
34188         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
34189         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
34190         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
34191         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
34192
34193 2009-06-08  Eric Blake  <ebb9@byu.net>
34194
34195         test-strstr: use memory fence, when possible
34196         * tests/test-strstr.c (main): Use memory fence, in order to be
34197         more likely to trigger Debian bug 521737.
34198         * modules/strstr-tests (Files): Pull in additional files.
34199
34200         memchr: no longer obsolete, for wider field testing
34201         * modules/memchr (Status, Notice): Delete, this module is no
34202         longer obsolete.
34203         * modules/vasnprintf (Depends-on): Add memchr.
34204
34205 2009-06-07  Jim Meyering  <meyering@redhat.com>
34206
34207         hash: declare some functions with the warn_unused_result attribute
34208         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
34209
34210 2009-06-07  Bruno Haible  <bruno@clisp.org>
34211
34212         * tests/test-alignof.c: Don't test int64_t if it does not exist.
34213         Reported by Eric Blake.
34214
34215 2009-06-06  Eric Blake  <ebb9@byu.net>
34216
34217         test-alignof: fix typo with long double
34218         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
34219         compiler error.
34220
34221 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
34222
34223         Escape non-texinfo { and }s.
34224         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
34225         markup error.
34226
34227 2009-06-04  Jim Meyering  <meyering@redhat.com>
34228
34229         gitlog-to-changelog: don't infloop on an empty commit log
34230         * build-aux/gitlog-to-changelog: Warn about an empty log message.
34231         Reported by Boris Petersen <transacid@centerim.org>.
34232
34233 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
34234
34235         version-etc: extend for packagers
34236         Add three new configure options, intended for packagers:
34237           --with-packager="packager name"
34238           --with-packager-version="packager-specific version"
34239           --with-packager-bug-reports="packager bug reporting"
34240         An example with coreutils:
34241           $ ./configure \
34242             --with-packager=Gentoo \
34243             --with-packager-bug-report=http://bugs.gentoo.org/ \
34244             --with-packager-version="patchset 1.6"
34245           $ ./src/ls --version | head -n2
34246           ls (GNU coreutils) 7.1-dirty
34247           Packaged by Gentoo (patchset 1.6)
34248         Note that the bug reporting info via --help doesn't show up because
34249         coreutils uses its own custom emit_bug_reporting_address() implementation
34250         in src/system.h.  If it didn't, it'd look like:
34251           $ ./src/ls --help | tail -n4
34252           Report bugs to <bug-coreutils@gnu.org>.
34253           Report Gentoo bugs to <http://bugs.gentoo.org/>.
34254           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
34255           General help using GNU software: <http://www.gnu.org/gethelp/>.
34256         * lib/version-etc.c: Print new information, if provided.
34257         * m4/version-etc.m4: New file.
34258         * modules/version-etc (Files): Add m4/version-etc.m4.
34259         (configure.ac): Add gl_VERSION_ETC.
34260
34261 2009-05-31  Bruno Haible  <bruno@clisp.org>
34262
34263         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
34264         and 'int64_t'.
34265         * modules/alignof-tests (Dependencies): Add stdint.
34266         Reported by Eric Blake.
34267
34268 2009-05-31  Bruno Haible  <bruno@clisp.org>
34269
34270         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
34271         restriction due to compiler bugs.
34272         Reported by Eric Blake.
34273
34274 2009-05-31  Simon Josefsson  <simon@josefsson.org>
34275             Bruno Haible  <bruno@clisp.org>
34276
34277         Fix test-alignof failure.
34278         * lib/alignof.h (alignof_slot): New macro.
34279         (alignof_type): New macro, with the same semantics as the previous
34280         'alignof'.
34281         (alignof): Alias to alignof_slot.
34282         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
34283         check that the results are usable as constant expressions.
34284
34285 2009-05-31  Bruno Haible  <bruno@clisp.org>
34286
34287         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
34288         * tests/test-memchr.c (main): Check that memchr does not read past the
34289         first occurrence of the byte.
34290         * tests/test-strstr.c (main): Update comment.
34291         Suggested by Eric Blake.
34292
34293 2009-05-30  Bruno Haible  <bruno@clisp.org>
34294
34295         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
34296         detail how to use dumpbin.
34297         Reported by David Byron <dbyron@dbyron.com>.
34298
34299 2009-06-02  Simon Josefsson  <simon@josefsson.org>
34300
34301         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
34302
34303 2009-06-02  Simon Josefsson  <simon@josefsson.org>
34304
34305         * m4/manywarnings.m4: Add GCC 4.4 warnings.
34306
34307 2009-05-28  Bruno Haible  <bruno@clisp.org>
34308
34309         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
34310         build-aux/ files.
34311
34312 2009-05-28  Simon Josefsson  <simon@josefsson.org>
34313
34314         * gnulib-tool (func_import): Transform license on build-aux/ files too.
34315
34316 2009-05-27  Simon Josefsson  <simon@josefsson.org>
34317
34318         * gnulib-tool (sed_transform_main_lib_file)
34319         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
34320         regexps.
34321
34322 2009-05-26  Simon Josefsson  <simon@josefsson.org>
34323
34324         * tests/test-strstr.c: Add another self-test.
34325         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
34326         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
34327
34328 2009-05-23  Bruno Haible  <bruno@clisp.org>
34329
34330         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
34331         change.
34332
34333 2009-05-21  Bruno Haible  <bruno@clisp.org>
34334
34335         Simplify use of mode_t varargs.
34336         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
34337         uses 'mode_t' or 'int'.
34338         * lib/openat.c (openat): Likewise.
34339         * lib/open-safer.c (open_safer): Likewise.
34340         * m4/mode_t.m4: New file.
34341         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
34342         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
34343         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
34344         * modules/open (Files): Add m4/mode_t.m4.
34345         * modules/openat (Files): Likewise.
34346         * modules/fcntl-safer (Files): Likewise.
34347         Suggested by Eric Blake.
34348
34349 2009-05-21  Pádraig Brady  <P@draigbrady.com>
34350
34351         * doc/glibc-functions/fallocate.texi: New file.
34352         * doc/gnulib.texi: Include it.
34353
34354 2009-05-21  Eric Blake  <ebb9@byu.net>
34355             Bruno Haible  <bruno@clisp.org>
34356
34357         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
34358         invocations.
34359         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
34360
34361 2009-05-21  Eric Blake  <ebb9@byu.net>
34362             Bruno Haible  <bruno@clisp.org>
34363
34364         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
34365         include_next. Fix of 2008-11-20 commit.
34366         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
34367         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
34368         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
34369         NEXT_MATH_H.
34370         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
34371         instead of NEXT_MATH_H.
34372
34373 2009-05-21  Bruno Haible  <bruno@clisp.org>
34374
34375         Avoid redefinition warnings for SIZE_MAX.
34376         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
34377         Reported by Simon Josefsson.
34378
34379 2009-05-21  Bruno Haible  <bruno@clisp.org>
34380
34381         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
34382         AC_CACHE_VAL.
34383
34384 2009-05-20  Bruno Haible  <bruno@clisp.org>
34385
34386         Make zeroptr.h work on mingw.
34387         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
34388         mprotect.
34389         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
34390         * modules/memchr2-tests (configure.ac): Likewise.
34391         * modules/memcmp-tests (configure.ac): Likewise.
34392         * modules/memmem-tests (configure.ac): Likewise.
34393         * modules/memrchr-tests (configure.ac): Likewise.
34394         Reported by Simon Josefsson.
34395
34396 2009-05-20  Simon Josefsson  <simon@josefsson.org>
34397
34398         * tests/test-glob.c: Include string.h for strcmp prototype.
34399
34400 2009-05-20  Simon Josefsson  <simon@josefsson.org>
34401
34402         * modules/getdelim (Depends-on): Add explicit stdint, although it
34403         was implicitly already pulled in via realloc-posix.
34404         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
34405
34406 2009-05-20  Simon Josefsson  <simon@josefsson.org>
34407
34408         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
34409         G. Christensen" <tgc@jupiterrise.com>.
34410         * m4/sys_socket_h.m4: Check for sa_family_t.
34411         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
34412         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
34413         * tests/test-sys_socket.c: Check that sa_family_t works.
34414
34415 2009-05-18  Eric Blake  <ebb9@byu.net>
34416
34417         maint.mk: allow gnulib_dir in VPATH build
34418         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
34419
34420 2009-05-15  Jim Meyering  <meyering@redhat.com>
34421
34422         maint.mk: Give gnulib_dir a default definition.
34423         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
34424         Thus, most packages no longer need to specify this variable in cfg.mk
34425
34426 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
34427
34428         rename.m4: fix typos that would make non-mingw cross-configure fail
34429         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
34430
34431 2009-05-13  Eric Blake  <ebb9@byu.net>
34432
34433         mmap-anon: avoid out-of-order autoconf expansion
34434         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
34435         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
34436         * modules/memchr-tests (Depends-on): Add extensions.
34437         * modules/memchr2-tests (Depends-on): Add extensions.
34438         * modules/memcmp-tests (Depends-on): Add extensions.
34439         * modules/memmem-tests (Depends-on): Add extensions.
34440         * modules/memrchr-tests (Depends-on): Add extensions.
34441
34442 2009-05-13  Bruno Haible  <bruno@clisp.org>
34443
34444         Make some tests ISO C 99 compliant.
34445         * tests/zerosize-ptr.h: New file.
34446         * tests/test-memchr.c: Include zerosize-ptr.h.
34447         (main): Use a zero-size object pointer instead of NULL.
34448         * tests/test-memchr2.c: Include zerosize-ptr.h.
34449         (main): Use a zero-size object pointer instead of NULL.
34450         * tests/test-memcmp.c: Include zerosize-ptr.h.
34451         (main): Use a zero-size object pointer instead of NULL.
34452         * tests/test-memmem.c: Include zerosize-ptr.h.
34453         (main): Use a zero-size object pointer instead of NULL.
34454         * tests/test-memrchr.c: Include zerosize-ptr.h.
34455         (main): Use a zero-size object pointer instead of NULL.
34456         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
34457         m4/mmap-anon.m4.
34458         (Depends-on): Add getpagesize.
34459         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
34460         * modules/memchr2-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/memcmp-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/memmem-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/memrchr-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
34477 2009-05-12  Bruno Haible  <bruno@clisp.org>
34478
34479         Tests for module 'alignof'.
34480         * modules/alignof-tests: New file.
34481         * tests/test-alignof.c: New file.
34482
34483 2009-05-12  Bruno Haible  <bruno@clisp.org>
34484
34485         Fix alignof macro.
34486         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
34487         vendor compilers that are always correct.
34488
34489 2009-05-12  Bruno Haible  <bruno@clisp.org>
34490
34491         Make the MAP_ANONYMOUS detection work on HP-UX 11.
34492         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
34493         not whether its fully works.
34494
34495 2009-05-12  Bruno Haible  <bruno@clisp.org>
34496
34497         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
34498
34499 2009-05-12  Jim Meyering  <meyering@redhat.com>
34500
34501         * top/maint.mk: Adjust backslash alignment.
34502
34503 2009-05-11  Simon Josefsson  <simon@josefsson.org>
34504
34505         * top/maint.mk: Make $(srcdir)/build-aux configurable.
34506
34507 2009-05-11  Eric Blake  <ebb9@byu.net>
34508
34509         argp: avoid undefined behavior
34510         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
34511         macros.
34512
34513 2009-05-08  Simon Josefsson  <simon@josefsson.org>
34514
34515         * tests/test-vc-list-files-git.sh: Do git config of user.email and
34516         user.name to prevent git commit from complaining.
34517
34518 2009-05-10  Bruno Haible  <bruno@clisp.org>
34519
34520         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
34521         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
34522         it rewrites every file name only once.
34523         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
34524
34525 2009-05-08  Bruno Haible  <bruno@clisp.org>
34526
34527         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
34528         instead of 'max'.
34529
34530 2009-05-08  Simon Josefsson  <simon@josefsson.org>
34531
34532         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
34533         sockaddr_storage test.
34534
34535 2009-05-07  Simon Josefsson  <simon@josefsson.org>
34536
34537         * modules/sys_socket (Makefile.am): Substitute
34538         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
34539         * m4/sys_socket_h.m4: Check for sockaddr_storage.
34540         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
34541         * tests/test-sys_socket.c: Check sockaddr_storage.
34542
34543 2009-05-08  Bruno Haible  <bruno@clisp.org>
34544
34545         New module 'alignof'.
34546         * lib/alignof.h: New file.
34547         * modules/alignof: New file.
34548
34549 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
34550             Bruno Haible  <bruno@clisp.org>
34551
34552         Fix test-file-has-acl on FreeBSD.
34553         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
34554         mask is implicitly added.
34555         * tests/test-file-has-acl.c: Include <signal.h>.
34556         (main): Terminate the test after 5 seconds.
34557         * modules/acl-tests (configure.ac): Check for alarm function.
34558
34559 2009-05-04  Bruno Haible  <bruno@clisp.org>
34560
34561         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
34562         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
34563         * modules/errno (configure.ac): Drop AC_REQUIRE.
34564         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
34565         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
34566
34567 2009-05-04  Simon Josefsson  <simon@josefsson.org>
34568
34569         * modules/glob-tests: New module.
34570         * tests/test-glob.c: Add.
34571
34572 2009-05-04  Simon Josefsson  <simon@josefsson.org>
34573
34574         * modules/fnmatch-tests: New module.
34575         * tests/test-fnmatch.c: Add.
34576
34577 2009-05-04  Eric Blake  <ebb9@byu.net>
34578
34579         maint: make the new no-submodule-changes rule VPATH-safe
34580         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
34581
34582 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
34583             Bruno Haible  <bruno@clisp.org>
34584
34585         acl: Fix infinite loop on FreeBSD.
34586         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
34587         of return value from acl_get_entry.
34588         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
34589         Likewise.
34590
34591 2009-05-03  Bruno Haible  <bruno@clisp.org>
34592
34593         * lib/acl-internal.h (acl_entries): Clarify return value.
34594         * lib/acl_entries.c (acl_entries): Likewise.
34595
34596 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
34597
34598         Bug fix in acl module.
34599         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
34600
34601 2009-05-03  Bruno Haible  <bruno@clisp.org>
34602
34603         Create gperf-generated file in the source dir, not in the build dir.
34604         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
34605         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
34606         * modules/unicase/locale-language (unicase/locale-languages.h):
34607         Likewise.
34608         * modules/unicase/special-casing (unicase/special-casing-table.h):
34609         Likewise.
34610         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
34611         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
34612         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
34613         Reported by Ralf Wildenhues.
34614
34615 2009-05-03  Bruno Haible  <bruno@clisp.org>
34616
34617         * modules/fnmatch (Description, configure.ac): Taken from
34618         fnmatch-posix.
34619         * modules/fnmatch-posix: Turn into a symbolic reference to the
34620         'fnmatch' module, and deprecate.
34621         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
34622
34623 2009-05-03  Bruno Haible  <bruno@clisp.org>
34624
34625         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
34626         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
34627         Reported by Ralf Wildenhues.
34628
34629 2009-05-04  Simon Josefsson  <simon@josefsson.org>
34630
34631         * m4/fnmatch.m4: Fix fnmatch re-define.
34632
34633 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
34634
34635         priv-set: new module and tests; adapt write-any-file
34636         * lib/priv-set.c: New file.
34637         * lib/priv-set.h: New file.
34638         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
34639         * lib/write-any-file.c: Simplify by using priv-set module.
34640         * m4/priv-set.m4: New file.
34641         * modules/priv-set: New file.
34642         * modules/unlinkdir: Add dependency on priv-set module.
34643         * modules/write-any-file: Likewise.
34644
34645         Tests for module 'priv-set'.
34646         * modules/priv-set-tests: New file.
34647         * tests/test-priv-set.c: New file.
34648
34649 2009-05-03  Jim Meyering  <meyering@redhat.com>
34650             Bruno Haible  <bruno@clisp.org>
34651
34652         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
34653         use the converted UTF-8 variant of the name instead.
34654
34655 2009-05-03  Jim Meyering  <meyering@redhat.com>
34656
34657         tests: tighten some getdate tests
34658         * tests/test-getdate.c (main): Tighten tests: require equality,
34659         not just greater than.  Set TZ envvar to UTC0.
34660
34661 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
34662
34663         getdate: correctly interpret "next monday" when run on a Monday
34664         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
34665         that e.g., "next tues" (when run on a tuesday) results in a date
34666         that is one week in the future, and not today's date.
34667         I.e., add a week when the wday is the same as the current one.
34668         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
34669         and earlier by Martin Bernreuther and Jan Minář.
34670         * tests/test-getdate.c (main): Check that "next DAY" is always in
34671         the future and that "last DAY" is always in the past.
34672
34673 2009-05-02  Jim Meyering  <meyering@redhat.com>
34674
34675         build: ensure that a release build fails when a submodule is unclean
34676         * top/maint.mk (no-submodule-changes): New rule.
34677         (alpha beta major): Depend on it.
34678
34679 2009-05-02  Bruno Haible  <bruno@clisp.org>
34680
34681         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
34682         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
34683         shell variable gl_fnmatch_required to detect which variant is
34684         requested.
34685         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
34686         gl_FUNC_FNMATCH_POSIX.
34687         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
34688         exclude fnmatch-posix.
34689
34690 2009-05-02  Bruno Haible  <bruno@clisp.org>
34691
34692         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
34693         * modules/mbsrtowcs (License): Change to LGPLv2+.
34694         * modules/strnlen1 (License): Likewise.
34695         Reported by Simon Josefsson.
34696
34697 2009-05-02  Bruno Haible  <bruno@clisp.org>
34698
34699         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
34700         "cross".
34701         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
34702         gnulib-tool was called with option --source-base=lib.
34703
34704 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34705
34706         Use automake *-local hooks without commands, for extensibility.
34707         * modules/localcharset (Makefile.am): Rename install-exec-local
34708         rule to install-exec-localcharset, and make it a prerequisite of
34709         install-exec-local.  Likewise, rename the uninstall-local rule to
34710         uninstall-localcharset, and make it a prerequisite of the former.
34711
34712 2009-05-01  Bruno Haible  <bruno@clisp.org>
34713
34714         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
34715         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
34716         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
34717         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
34718         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
34719         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
34720         m4/locale-zh.m4, m4/codeset.m4.
34721
34722         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
34723         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
34724         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
34725         m4/locale-zh.m4.
34726
34727         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
34728         REPLACE_WCRTOMB if mbstate_t must be replaced.
34729         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
34730         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
34731
34732 2009-05-01  Bruno Haible  <bruno@clisp.org>
34733
34734         Avoid compiler warnings when redefining macros defined by <libintl.h>.
34735         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
34736         dngettext, dcngettext, textdomain, bindtextdomain,
34737         bind_textdomain_codeset): Undefine before redefining.
34738
34739 2009-04-30  Bruno Haible  <bruno@clisp.org>
34740
34741         Fix bug introduced on 2009-04-25.
34742         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
34743         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
34744         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
34745         is defined.
34746         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
34747         is defined.
34748         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
34749         is defined.
34750         Reported by Elbert_Pol <elbert.pol@gmail.com>.
34751
34752 2009-04-28  Bruno Haible  <bruno@clisp.org>
34753
34754         Comment tweaks.
34755         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
34756         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
34757         * lib/unicase.h (u*_casexfrm): Likewise.
34758         Reported by Paolo Bonzini.
34759
34760 2009-04-28  Bruno Haible  <bruno@clisp.org>
34761
34762         Fix a compilation error.
34763         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
34764         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
34765         Reported by Jim Meyering.
34766
34767 2009-04-27  Bruno Haible  <bruno@clisp.org>
34768
34769         New module 'libunistring'.
34770         * modules/libunistring: New file.
34771         * m4/libunistring.m4: New file.
34772         * MODULES.html.sh (Unicode string functions): Add it.
34773
34774 2009-04-27  Eric Blake  <ebb9@byu.net>
34775
34776         maint.mk: allow package-specific header to provide <config.h>
34777         * top/maint.mk (sc_require_config_h): New variable.
34778         (sc_require_config_h, sc_require_config_h_first): Use it.
34779
34780 2009-04-27  Simon Josefsson  <simon@josefsson.org>
34781
34782         * top/maint.mk (sc_avoid_if_before_free): Except
34783         useless-if-before-free script.
34784
34785 2009-04-27  Eric Blake  <ebb9@byu.net>
34786
34787         maintainer-makefile: depend on all required helper scripts
34788         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
34789         useless-if-before-free.
34790         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
34791         version, rather than assuming gnulib checkout is available.
34792         Reported by Simen Josefsson.
34793
34794 2009-04-26  Bruno Haible  <bruno@clisp.org>
34795
34796         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
34797         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
34798         "../" or "..".
34799
34800 2009-04-26  Bruno Haible  <bruno@clisp.org>
34801
34802         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
34803         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
34804         AC_LIB_HAVE_LINKFLAGS.
34805
34806 2009-04-26  Bruno Haible  <bruno@clisp.org>
34807
34808         Simplify calling convention of u*_conv_from_encoding.
34809         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
34810         u32_conv_from_encoding): Expect a resultbuf argument and return the
34811         result directly as a pointer.
34812         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
34813         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
34814         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
34815         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
34816         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
34817         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
34818         Update.
34819         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
34820         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
34821         * lib/vasnprintf.c (VASNPRINTF): Update.
34822         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
34823         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
34824         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
34825         * NEWS: Mention the change.
34826
34827 2009-04-26  Bruno Haible  <bruno@clisp.org>
34828
34829         Simplify calling convention of u*_conv_to_encoding.
34830         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
34831         u32_conv_to_encoding): Expect a resultbuf argument and return the
34832         result directly as a pointer.
34833         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
34834         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
34835         freeing scaled_offsets if mem_iconveha failed.
34836         * lib/unicase/u-casexfrm.h (FUNC): Update.
34837         * lib/uninorm/u-normxfrm.h (FUNC): Update.
34838         * lib/vasnprintf.c (VASNPRINTF): Update.
34839         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
34840         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
34841         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
34842         * NEWS: Mention the change.
34843
34844 2009-04-26  Bruno Haible  <bruno@clisp.org>
34845
34846         Avoid test failures on AIX and OSF/1.
34847         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
34848         malloc(0).
34849         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
34850         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
34851         Likewise.
34852         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
34853         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
34854         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
34855         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
34856         * doc/posix-functions/malloc.texi: Document the portability problem
34857         related to malloc(0).
34858
34859 2009-04-26  Bruno Haible  <bruno@clisp.org>
34860
34861         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
34862         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
34863         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
34864
34865 2009-04-25  Bruno Haible  <bruno@clisp.org>
34866
34867         Avoid link error when creating a namespace clean library.
34868         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
34869         as macro with arguments if already defined as an alias.
34870         * lib/signbitf.c (gl_signbitf): Don't undefine.
34871         * lib/signbitd.c (gl_signbitd): Don't undefine.
34872         * lib/signbitl.c (gl_signbitl): Don't undefine.
34873
34874 2009-04-25  Jim Meyering  <meyering@redhat.com>
34875
34876         vc-list-files: fix another quoting bug
34877         * build-aux/vc-list-files: Avoid sed backslash expansion
34878         of pathological directory names.
34879
34880 2009-04-25  Eric Blake  <ebb9@byu.net>
34881
34882         vc-list-files: fix shell quoting error
34883         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
34884         timestamp.
34885
34886 2009-04-25  Jim Meyering  <meyering@redhat.com>
34887
34888         vc-list-files: restore lost functionality with subdir argument
34889         * build-aux/vc-list-files: When given a non-"." sub-directory
34890         argument, substitute the $dir/ prefix back onto each resulting name.
34891         Otherwise, coreutils' root_tests check would fail.
34892
34893 2009-04-24  Eric Blake  <ebb9@byu.net>
34894
34895         vc-list-files: ignore git symlinks
34896         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
34897         than ls-files, to ignore git symlinks.
34898
34899         maint.mk: import improvements from m4
34900         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
34901         (move_if_change): Delete unused macro.
34902         (news-date-check, vc-diff-check): Support VPATH builds.
34903         (announcement): Likewise.  Split --bootstrap-tools list...
34904         (boostrap-tools): ...into separate list, which can be overridden
34905         in cfg.mk.
34906         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
34907         requiring dependency on useless-if-before-free module.
34908         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
34909         Support VPATH builds.
34910
34911 2009-04-24  Jim Meyering  <meyering@redhat.com>
34912
34913         maint.mk: remove coreutils-specific rules and variables
34914         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
34915         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
34916         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
34917
34918         maint.mk: remove obsolete rule
34919         * top/maint.mk (rel-check): Remove rule.
34920         (WGET, WGETFLAGS): Remove now-unused variables.
34921
34922 2009-04-24  Simon Josefsson  <simon@josefsson.org>
34923
34924         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
34925         consistency.
34926
34927         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
34928         '$(PATH_SEPARATOR)' instead of ':'.
34929
34930 2009-04-24  Simon Josefsson  <simon@josefsson.org>
34931
34932         * lib/getopt1.c (main): Use 'const' for static array.
34933
34934 2009-04-24  Simon Josefsson  <simon@josefsson.org>
34935
34936         * top/maint.mk: Sync with coreutils.
34937         * NEWS: Explain incompatibilities.
34938
34939 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
34940             Bruno Haible  <bruno@clisp.org>
34941
34942         Fix cross-compilation results.
34943         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
34944         statement, as third argument of AC_TRY_RUN.
34945         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
34946         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
34947         Likewise.
34948         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
34949         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
34950         Likewise.
34951         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
34952         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
34953         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
34954
34955 2009-04-20  Bruno Haible  <bruno@clisp.org>
34956
34957         Avoid test failure on mingw.
34958         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
34959
34960 2009-04-20  Bruno Haible  <bruno@clisp.org>
34961
34962         Avoid compilation error on mingw.
34963         * modules/localename-tests (Depends-on): Add locale.
34964
34965 2009-04-19  Bruno Haible  <bruno@clisp.org>
34966
34967         Support for building a shared library on Windows platforms.
34968         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
34969         (main): Test the presence of UNINORM_NFC here.
34970         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
34971         (main): Test the presence of UNINORM_NFD here.
34972         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
34973         (main): Test the presence of UNINORM_NFKC here.
34974         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
34975         (main): Test the presence of UNINORM_NFKD here.
34976
34977 2009-04-19  Bruno Haible  <bruno@clisp.org>
34978
34979         Avoid a compiler warning.
34980         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
34981         Change type of variable 'sequence'.
34982
34983 2009-04-19  Bruno Haible  <bruno@clisp.org>
34984
34985         * modules/configmake (Makefile.am): When the contents of configmake.h
34986         does not change, arrange to preserve its modification time.
34987
34988 2009-04-17  Simon Josefsson  <simon@josefsson.org>
34989
34990         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
34991         gettext domain.
34992
34993 2009-04-16  Jim Meyering  <meyering@redhat.com>
34994
34995         useless-if-before-free: improve conversion code
34996         * build-aux/useless-if-before-free: Adjust code-in-comment to match
34997         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
34998
34999 2009-04-14  Bruno Haible  <bruno@clisp.org>
35000
35001         * modules/fcntl (Depends-on): Add extensions.
35002         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
35003
35004 2009-04-12  Ben Pfaff  <blp@gnu.org>
35005
35006         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
35007         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
35008
35009 2009-03-20  Ben Pfaff  <blp@gnu.org>
35010
35011         Make rename replace existing destinations on Windows.
35012         * m4/rename.m4: Add test for Mingw.
35013         * lib/rename.c: Add rename replacement that uses MoveFileEx with
35014         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
35015         * doc/posix-functions/rename.texi: Document.
35016
35017 2009-04-10  Bruno Haible  <bruno@clisp.org>
35018
35019         New include file "iconveh.h".
35020         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
35021         * lib/striconveh.h: Include it.
35022         (enum iconv_ilseq_handler): Remove definition.
35023         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
35024         striconveh.h.
35025         * lib/striconveha.c: Include striconveh.h.
35026         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
35027         * modules/striconveh (Files): Add lib/iconveh.h.
35028         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
35029         lib/striconveh.h.
35030
35031 2009-04-10  Bruno Haible  <bruno@clisp.org>
35032
35033         * lib/uniconv.h: Update comment.
35034
35035 2009-04-10  Bruno Haible  <bruno@clisp.org>
35036
35037         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
35038         always.
35039         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
35040         * lib/unistr/u16-mbtouc-aux.c: Likewise.
35041         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
35042         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
35043         "unistring-notinline.h", so that the function gets defined always.
35044         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
35045         * lib/unistr/u8-uctomb.c: Likewise.
35046         * lib/unistr/u16-mbtouc.c: Likewise.
35047         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
35048         * lib/unistr/u16-uctomb.c: Likewise.
35049         * lib/unistr/u32-mbtouc.c: Likewise.
35050         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
35051         * lib/unistr/u32-uctomb.c: Likewise.
35052
35053 2009-04-10  Bruno Haible  <bruno@clisp.org>
35054
35055         Mark 'utime' obsolete.
35056         * modules/utime (Status, Notice): New sections.
35057         Suggested by Jim Meyering.
35058
35059         Fix cross-compile guess for utime test.
35060         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
35061         autoconf.
35062         * doc/posix-functions/utime.texi: Give more precisions.
35063         Reported by Jan <ipif@ymail.com>.
35064
35065 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
35066
35067         filevercmp: correct today's change
35068         * lib/filevercmp.c: Also handle coreutils' test inputs.
35069         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
35070
35071         Fix regression in 'filevercmp' module. Thanks Sven Joachim
35072         for reporting it.
35073         * lib/filevercmp.c: Special handle for "", "." and "..".
35074         * tests/test-filevercmp.c: Enlarge the set suite.
35075
35076 2009-04-07  Jim Meyering  <meyering@redhat.com>
35077
35078         useless-if-before-free: show how to remove braced useless free, too
35079         * build-aux/useless-if-before-free: still only in a comment, though.
35080
35081 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
35082
35083         maint.mk: import changes to syntax-check macros from coreutils
35084         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
35085         Use them in the relevant macros.
35086
35087 2009-04-06  Bruno Haible  <bruno@clisp.org>
35088
35089         Fix unportable use of bit-fields.
35090         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
35091         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
35092         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
35093
35094 2009-04-06  Bruno Haible  <bruno@clisp.org>
35095
35096         Avoid test failures on AIX and OSF/1.
35097         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
35098         that malloc(0) = NULL.
35099         * tests/unicase/test-u8-tolower.c (check): Likewise.
35100         * tests/unicase/test-u8-totitle.c (check): Likewise.
35101         * tests/unicase/test-u8-toupper.c (check): Likewise.
35102         * tests/unicase/test-u16-casefold.c (check): Likewise.
35103         * tests/unicase/test-u16-tolower.c (check): Likewise.
35104         * tests/unicase/test-u16-totitle.c (check): Likewise.
35105         * tests/unicase/test-u16-toupper.c (check): Likewise.
35106         * tests/unicase/test-u32-casefold.c (check): Likewise.
35107         * tests/unicase/test-u32-tolower.c (check): Likewise.
35108         * tests/unicase/test-u32-totitle.c (check): Likewise.
35109         * tests/unicase/test-u32-toupper.c (check): Likewise.
35110         * tests/uninorm/test-u8-nfc.c (check): Likewise.
35111         * tests/uninorm/test-u8-nfd.c (check): Likewise.
35112         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
35113         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
35114         * tests/uninorm/test-u16-nfc.c (check): Likewise.
35115         * tests/uninorm/test-u16-nfd.c (check): Likewise.
35116         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
35117         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
35118         * tests/uninorm/test-u32-nfc.c (check): Likewise.
35119         * tests/uninorm/test-u32-nfd.c (check): Likewise.
35120         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
35121         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
35122
35123 2009-04-05  Bruno Haible  <bruno@clisp.org>
35124
35125         Work around an autoconf limitation.
35126         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
35127         comment line if it would be longer than 3 KB.
35128
35129 2009-04-05  Bruno Haible  <bruno@clisp.org>
35130
35131         Avoid test failure with libiconv-1.13.
35132         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
35133         of the expected test results.
35134
35135 2009-04-05  Bruno Haible  <bruno@clisp.org>
35136
35137         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
35138         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
35139         that it should be installed.
35140
35141 2009-04-05  Bruno Haible  <bruno@clisp.org>
35142
35143         * gnulib-tool: New option --copy-file.
35144         (func_usage): Document it.
35145         (func_dest_tmpfilename): Moved out of func_import.
35146         (func_add_file, func_update_file): New functions, extracted from
35147         func_import.
35148         (func_import): Update.
35149
35150 2009-04-05  Karl Berry  <karl@gnu.org>
35151
35152         * README: prominently mention gnulib-tool.
35153         Rearrange sections so getting the code is near the top.
35154
35155 2009-04-05  Bruno Haible  <bruno@clisp.org>
35156
35157         * lib/unicase.h: Mention u*_cmp2.
35158         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
35159         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
35160         * lib/unicase/ulc-casecmp.c: Likewise.
35161         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
35162         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
35163         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
35164         unistr/u8-cmp.
35165         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
35166         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
35167         unistr/u16-cmp.
35168         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
35169         unistr/u32-cmp.
35170
35171         * lib/uninorm.h: Mention u*_cmp2.
35172         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
35173         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
35174         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
35175         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
35176         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
35177         unistr/u8-cmp.
35178         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
35179         unistr/u16-cmp.
35180         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
35181         unistr/u32-cmp.
35182
35183         New module 'unistr/u32-cmp2'.
35184         * lib/unistr/u32-cmp2.c: New file.
35185         * modules/unistr/u32-cmp2: New file.
35186
35187         New module 'unistr/u16-cmp2'.
35188         * lib/unistr/u16-cmp2.c: New file.
35189         * modules/unistr/u16-cmp2: New file.
35190
35191         New module 'unistr/u8-cmp2'.
35192         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
35193         * lib/unistr/u8-cmp2.c: New file.
35194         * lib/unistr/u-cmp2.h: New file.
35195         * modules/unistr/u8-cmp2: New file.
35196
35197 2009-04-05  Bruno Haible  <bruno@clisp.org>
35198
35199         * lib/unictype.h (uc_property_is_valid): New macro.
35200         * tests/unictype/test-pr_byname.c (main): Use it.
35201
35202         * lib/unistr.h: Doc fixes.
35203         * lib/uniconv.h: Doc fixes.
35204         * lib/unictype.h: Doc fixes.
35205
35206 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
35207
35208         Port coreutils 7.2 to Solaris 8.
35209
35210         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
35211         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
35212         for Solaris 8.  This is a bit of a hack, as it means it's the
35213         caller's responsibility to add -lnsl if needed, but most likely it
35214         won't be needed since only getaddrinfo uses this and getaddrinfo
35215         isn't needed on Solaris 8.
35216
35217         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
35218         problem to Solaris 8 encountered with coreutils 7.2, which
35219         resulted in a message "fnmatch.c:292: warning: passing argument 4
35220         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
35221         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
35222
35223 2009-04-03  Simon Josefsson  <simon@josefsson.org>
35224
35225         * m4/ld-version-script.m4: Add FIXME comment.
35226
35227 2009-04-02  Simon Josefsson  <simon@josefsson.org>
35228
35229         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
35230         SOVERSION variable.
35231
35232 2009-04-02  Bruno Haible  <bruno@clisp.org>
35233
35234         * Makefile (info, html, dvi, pdf): Combine the rules.
35235         Suggested by Jim Meyering.
35236
35237 2009-04-01  Bruno Haible  <bruno@clisp.org>
35238
35239         * Makefile (info, html, dvi, pdf): New targets.
35240         Reported by Reuben Thomas <rrt@sc3d.org>.
35241
35242 2009-04-01  Bruno Haible  <bruno@clisp.org>
35243
35244         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
35245         can be put into PATH.
35246         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
35247
35248 2009-04-01  Bruno Haible  <bruno@clisp.org>
35249
35250         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
35251
35252 2009-04-01  Bruno Haible  <bruno@clisp.org>
35253
35254         Rename module 'visibility'.
35255         * modules/lib-symbol-visibility: Renamed from modules/visibility.
35256         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
35257         * doc/gnulib.texi: Update.
35258         * MODULES.html.sh (Misc): Update.
35259         * NEWS: Mention the change.
35260
35261 2009-04-01  Simon Josefsson  <simon@josefsson.org>
35262
35263         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
35264         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
35265         Eric Blake <ebb9@byu.net> for review.
35266         * MODULES.html.sh: Add lib-msvc-compat.
35267         * doc/gnulib.texi: Link to new section.
35268         * m4/ld-output-def.m4: New file.
35269         * doc/ld-output-def.texi: New file.
35270
35271 2009-04-01  Simon Josefsson  <simon@josefsson.org>
35272
35273         Rename ld-version-script to lib-symbol-versions.  Suggested by
35274         Bruno Haible <bruno@clisp.org>.
35275         * modules/ld-version-script: Renamed to lib-symbol-versions.
35276         * doc/ld-version-script.texi: Fix module name.
35277         * MODULES.html.sh: Add lib-symbol-versions.
35278
35279 2009-03-31  Simon Josefsson  <simon@josefsson.org>
35280
35281         * modules/u64-tests: New file.
35282         * tests/test-u64.c: New file.
35283
35284 2009-03-04  Simon Josefsson  <simon@josefsson.org>
35285
35286         * MODULES.html.sh: Mention u64.
35287         * modules/u64: New module.
35288         * modules/crypto/sha512: Depend on u64 module instead of providing
35289         u64.h.
35290
35291 2009-03-27  Eric Blake  <ebb9@byu.net>
35292
35293         test-strerror: make debugging EAI_SYSTEM easier
35294         * modules/getaddrinfo-tests (Depends-on): Add strerror.
35295         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
35296         failure was EAI_SYSTEM.
35297
35298 2009-03-25  Bruno Haible  <bruno@clisp.org>
35299
35300         Fix a problem with --enable-relocatable on Solaris 7.
35301         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
35302         since 2008-02-24.
35303
35304 2009-03-25  Eric Blake  <ebb9@byu.net>
35305
35306         test-sockets: avoid gcc warning
35307         * tests/test-sockets.c (main): Silence compiler warning.
35308
35309 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
35310
35311         New modules nproc, pthread, contributed by Glen Lenker.
35312
35313         * MODULES.html.sh: Add pthread, nproc.
35314         * lib/nproc.c: New file.
35315         * lib/nproc.h: New file.
35316         * lib/pthread.in.h: New file.
35317         * m4/pthread.m4: New file.
35318         * modules/nproc: New file.
35319         * modules/pthread: New file.
35320
35321 2009-03-24  Simon Josefsson  <simon@josefsson.org>
35322
35323         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
35324         New variable.
35325
35326 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
35327
35328         filevercmp: handle simple~ and numbered.~3~ backup suffixes
35329         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
35330         * tests/test-filevercmp.c: Add tests for backup suffixes.
35331
35332 2009-03-24  Simon Josefsson  <simon@josefsson.org>
35333
35334         * modules/stdlib (Depends-on): Add stdint, needed when defining
35335         struct random_data on, for example, HP-UX 10.20.  Reported by
35336         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
35337
35338 2009-03-24  Simon Josefsson  <simon@josefsson.org>
35339
35340         * lib/readline.c (readline): Call fflush on stdout after printing
35341         prompt.
35342
35343 2009-03-20  Bruno Haible  <bruno@clisp.org>
35344
35345         Remove dependency from 'close' module to -lws2_32 on native Windows.
35346         * lib/close-hook.h: New file.
35347         * lib/close-hook.c: New file.
35348         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
35349         w32sock.h.
35350         (_gl_close_fd_maybe_socket): Remove function.
35351         (rpl_close): Invoke execute_all_close_hooks instead of
35352         _gl_close_fd_maybe_socket.
35353         * lib/sockets.c: Include close-hook.h, w32sock.h.
35354         (close_fd_maybe_socket): New function, essentially from lib/close.c.
35355         (close_sockets_hook): New variable.
35356         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
35357         (gl_sockets_cleanup): Unregister it.
35358         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
35359         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
35360         * modules/close-hook: New file.
35361         * modules/close (Files): Remove lib/w32sock.h.
35362         (Depends-on): Add close-hook.
35363         (Link): Remove section.
35364         * modules/sockets (Files): Add lib/w32sock.h.
35365         (Depends-on): Add close-hook.
35366         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
35367         invocation.
35368         * NEWS: Mention that LIB_CLOSE is gone.
35369
35370 2009-03-23  Eric Blake  <ebb9@byu.net>
35371
35372         signal-tests: test previous patch
35373         * tests/test-signal.c: New file.
35374         * modules/signal-tests: Likewise.
35375
35376         signal.h: always support 'volatile sig_atomic_t'
35377         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
35378         (gl_SIGNAL_H_DEFAULTS): Add a default.
35379         * modules/signal (Makefile.am): Substitute if needed.
35380         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
35381         users can blindly add volatile.
35382         * doc/posix-headers/signal.texi (signal.h): Document it.
35383         Reported by Matthew Woehlke.
35384
35385 2009-03-23  Jim Meyering  <meyering@redhat.com>
35386
35387         pathmax: PATH_MAX: use pathconf only when available
35388         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
35389         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
35390         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
35391         This avoids a link failure in a PSP cross-compilation environment
35392         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
35393
35394         * lib/vasnprintf.c (divide): Fix typo in comment.
35395
35396 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35397
35398         * gnulib-tool (func_filter_filelist): Fix comment.
35399
35400 2009-03-20  Bruno Haible  <bruno@clisp.org>
35401
35402         Make sockets.h self-contained.
35403         * lib/sockets.c: Include sockets.h first.
35404         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
35405
35406 2009-03-19  Eric Blake  <ebb9@byu.net>
35407
35408         doc: mention more functions added in cygwin 1.7.0
35409         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
35410         addition.
35411         * doc/posix-functions/log2f.texi: Likewise.
35412
35413 2009-03-19  Jim Meyering  <meyering@redhat.com>
35414
35415         fsusage: avoid syntax error due to statement-before-declaration
35416         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
35417         after all declarations.  Reported by Matthew Woehlke in
35418         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
35419
35420 2009-03-18  Eric Blake  <ebb9@byu.net>
35421
35422         build-aux/compile: sync from automake
35423         * build-aux/compile: New file, from automake.
35424         * config/srclist.txt: Mention build-aux/compile.
35425
35426 2009-03-17  Bruno Haible  <bruno@clisp.org>
35427
35428         * lib/git-merge-changelog.c: Fix typo in comment.
35429         Reported by Reuben Thomas <rrt@sc3d.org>.
35430
35431 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
35432
35433         * m4/regex.m4: update and improve help for
35434         --without-included-regex.
35435
35436 2009-03-17  Simon Josefsson  <simon@josefsson.org>
35437
35438         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
35439         failure on missing include files.
35440
35441 2009-03-17  Eric Blake  <ebb9@byu.net>
35442
35443         doc: mention more functions added in cygwin 1.7.0
35444         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
35445         addition.
35446         * doc/posix-functions/fwscanf.texi: Likewise.
35447         * doc/posix-functions/swprintf.texi: Likewise.
35448         * doc/posix-functions/swscanf.texi: Likewise.
35449         * doc/posix-functions/vfwprintf.texi: Likewise.
35450         * doc/posix-functions/vfwscanf.texi: Likewise.
35451         * doc/posix-functions/vswprintf.texi: Likewise.
35452         * doc/posix-functions/vswscanf.texi: Likewise.
35453         * doc/posix-functions/vwprintf.texi: Likewise.
35454         * doc/posix-functions/vwscanf.texi: Likewise.
35455         * doc/posix-functions/wcscasecmp.texi: Likewise.
35456         * doc/posix-functions/wcsdup.texi: Likewise.
35457         * doc/posix-functions/wcsftime.texi: Likewise.
35458         * doc/posix-functions/wcsncasecmp.texi: Likewise.
35459         * doc/posix-functions/wprintf.texi: Likewise.
35460         * doc/posix-functions/wscanf.texi: Likewise.
35461         * doc/glibc-functions/gethostbyname2.texi: Likewise.
35462
35463 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35464
35465         maint.mk: really add $(AM_MAKEFLAGS)
35466         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
35467         was inadvertently omitted in the last commit.
35468         Spotted by Bruno Haible.
35469
35470         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
35471         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
35472         $(AM_MAKEFLAGS)' rather than plain `make'.
35473
35474         gnulib-tool: execute $MAKE not make
35475         * gnulib-tool: Default $MAKE to 'make'.
35476         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
35477         than make.  Initialize $MAKE in the do-autobuild script.
35478
35479         gnulib-tool: use $MAKE not make in generated files
35480         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
35481         make, in generated files.  Initialize $MAKE in the do-autobuild
35482         script.
35483
35484         * top/GNUmakefile (_have-git-version-gen): Fix typo.
35485
35486         GNUmakefile: disable parallelism only for multiple, recursive targets
35487         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
35488         additions in the Makefile.
35489         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
35490         by Automake.
35491         (.NOTPARALLEL): Only disable parallel builds if multiple targets
35492         are listed on the command line and at least one of them is
35493         listed in $(ALL_RECURSIVE_TARGETS).
35494
35495 2009-03-14  Bruno Haible  <bruno@clisp.org>
35496
35497         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
35498         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
35499         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
35500         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
35501         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
35502         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
35503         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
35504         unistr/u8-uctomb.
35505         * modules/unistr/u8-strchr (Depends-on): Likewise.
35506         * modules/unistr/u8-strrchr (Depends-on): Likewise.
35507         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
35508         unistr/u16-uctomb.
35509         * modules/unistr/u16-strchr (Depends-on): Likewise.
35510         * modules/unistr/u16-strrchr (Depends-on): Likewise.
35511
35512 2009-03-12  Bruno Haible  <bruno@clisp.org>
35513
35514         Work around select() bug on Interix 3.5.
35515         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
35516         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
35517         * m4/select.m4: New file.
35518         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
35519         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
35520         * modules/select (Files): Add m4/select.m4.
35521         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
35522         * modules/nanosleep (Depends-on): Add select.
35523         * modules/poll (Depends-on): Likewise.
35524         * doc/posix-functions/select.texi: Mention the Interix bug.
35525         Reported by Markus Duft <mduft@gentoo.org>.
35526
35527         * lib/select.c: Renamed from lib/winsock-select.c.
35528         * modules/select (Files): Add lib/select.c, remove
35529         lib/winsock-select.c.
35530         (configure.ac): Update.
35531
35532 2009-03-12  Jim Meyering  <meyering@redhat.com>
35533
35534         avoid gcc warnings about unused macro definitions
35535         * lib/readtokens.c (STREQ): Remove unused definition.
35536         * lib/xmalloc.c (SIZE_MAX): Likewise.
35537         * lib/openat-die.c (N_): Likewise.
35538         * lib/mountlist.c (SIZE_MAX): Remove definition.
35539         Instead, include <stdint.h>.
35540         * lib/readutmp.c: Likewise.
35541         * modules/readutmp (Depends-on): Add stdint.
35542         * modules/mountlist (Depends-on): Add stdint.
35543         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
35544
35545 2009-03-10  Bruno Haible  <bruno@clisp.org>
35546
35547         Tests for module 'mbmemcasecoll'.
35548         * modules/mbmemcasecoll-tests: New file.
35549         * tests/test-mbmemcasecoll1.sh: New file.
35550         * tests/test-mbmemcasecoll2.sh: New file.
35551         * tests/test-mbmemcasecoll3.sh: New file.
35552         * tests/test-mbmemcasecoll.c: New file.
35553
35554         New module 'mbmemcasecoll'.
35555         * lib/mbmemcasecoll.h: New file.
35556         * lib/mbmemcasecoll.c: New file.
35557         * modules/mbmemcasecoll: New file.
35558
35559         * tests/test-mbmemcasecmp.h: New file, extracted from
35560         tests/test-mbmemcasecmp.c.
35561         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
35562         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
35563         (main): Update.
35564         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
35565
35566 2009-03-09  Bruno Haible  <bruno@clisp.org>
35567
35568         Tests for module 'mbmemcasecmp'.
35569         * modules/mbmemcasecmp-tests: New file.
35570         * tests/test-mbmemcasecmp1.sh: New file.
35571         * tests/test-mbmemcasecmp2.sh: New file.
35572         * tests/test-mbmemcasecmp3.sh: New file.
35573         * tests/test-mbmemcasecmp.c: New file.
35574
35575         New module 'mbmemcasecmp'.
35576         * lib/mbmemcasecmp.h: New file.
35577         * lib/mbmemcasecmp.c: New file.
35578         * modules/mbmemcasecmp: New file.
35579
35580 2009-03-09  Bruno Haible  <bruno@clisp.org>
35581
35582         Tests for module 'unicase/ulc-casecoll'.
35583         * modules/unicase/ulc-casecoll-tests: New file.
35584         * tests/unicase/test-ulc-casecoll1.sh: New file.
35585         * tests/unicase/test-ulc-casecoll2.sh: New file.
35586         * tests/unicase/test-ulc-casecoll.c: New file.
35587
35588         New module 'unicase/ulc-casecoll'.
35589         * lib/unicase.h (ulc_casecoll): New declaration.
35590         * lib/unicase/ulc-casecoll.c: New file.
35591         * modules/unicase/ulc-casecoll: New file.
35592
35593         New module 'unicase/ulc-casexfrm'.
35594         * lib/unicase.h (ulc_casexfrm): New declaration.
35595         * lib/unicase/ulc-casexfrm.c: New file.
35596         * modules/unicase/ulc-casexfrm: New file.
35597
35598 2009-03-09  Bruno Haible  <bruno@clisp.org>
35599
35600         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
35601         invocations.
35602
35603         * m4/mbscasecmp.m4: Remove file.
35604         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
35605         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
35606
35607         * m4/mbscasestr.m4: Remove file.
35608         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
35609         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
35610
35611         * m4/mbschr.m4: Remove file.
35612         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
35613         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
35614
35615         * m4/mbscspn.m4: Remove file.
35616         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
35617         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
35618
35619         * m4/mbslen.m4: Remove file.
35620         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
35621         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
35622
35623         * m4/mbsncasecmp.m4: Remove file.
35624         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
35625         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
35626
35627         * m4/mbsnlen.m4: Remove file.
35628         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
35629         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
35630
35631         * m4/mbspbrk.m4: Remove file.
35632         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
35633         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
35634
35635         * m4/mbspcasecmp.m4: Remove file.
35636         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
35637         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
35638
35639         * m4/mbsrchr.m4: Remove file.
35640         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
35641         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
35642
35643         * m4/mbssep.m4: Remove file.
35644         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
35645         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
35646
35647         * m4/mbsspn.m4: Remove file.
35648         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
35649         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
35650
35651         * m4/mbsstr.m4: Remove file.
35652         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
35653         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
35654
35655         * m4/mbstok_r.m4: Remove file.
35656         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
35657         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
35658
35659         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
35660
35661         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
35662         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
35663
35664         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
35665
35666 2009-03-08  Bruno Haible  <bruno@clisp.org>
35667
35668         Tests for module 'unicase/ulc-casecmp'.
35669         * modules/unicase/ulc-casecmp-tests: New file.
35670         * tests/unicase/test-ulc-casecmp1.sh: New file.
35671         * tests/unicase/test-ulc-casecmp2.sh: New file.
35672         * tests/unicase/test-ulc-casecmp.c: New file.
35673
35674         New module 'unicase/ulc-casecmp'.
35675         * lib/unicase.h (ulc_casecmp): New declaration.
35676         * lib/unicase/ulc-casecmp.c: New file.
35677         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
35678         'const SRC_UNIT *'.
35679         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
35680         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
35681         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
35682         * modules/unicase/ulc-casecmp: New file.
35683
35684         Tests for module 'unicase/u32-is-cased'.
35685         * modules/unicase/u32-is-cased-tests: New file.
35686         * tests/unicase/test-u32-is-cased.c: New file.
35687
35688         Tests for module 'unicase/u16-is-cased'.
35689         * modules/unicase/u16-is-cased-tests: New file.
35690         * tests/unicase/test-u16-is-cased.c: New file.
35691
35692         Tests for module 'unicase/u8-is-cased'.
35693         * modules/unicase/u8-is-cased-tests: New file.
35694         * tests/unicase/test-u8-is-cased.c: New file.
35695         * tests/unicase/test-is-cased.h: New file.
35696
35697         New module 'unicase/u32-is-cased'.
35698         * lib/unicase/u32-is-cased.c: New file.
35699         * modules/unicase/u32-is-cased: New file.
35700
35701         New module 'unicase/u16-is-cased'.
35702         * lib/unicase/u16-is-cased.c: New file.
35703         * modules/unicase/u16-is-cased: New file.
35704
35705         New module 'unicase/u8-is-cased'.
35706         * lib/unicase/u8-is-cased.c: New file.
35707         * lib/unicase/u-is-cased.h: New file.
35708         * modules/unicase/u8-is-cased: New file.
35709
35710         Tests for module 'unicase/u32-is-casefolded'.
35711         * modules/unicase/u32-is-casefolded-tests: New file.
35712         * tests/unicase/test-u32-is-casefolded.c: New file.
35713
35714         Tests for module 'unicase/u16-is-casefolded'.
35715         * modules/unicase/u16-is-casefolded-tests: New file.
35716         * tests/unicase/test-u16-is-casefolded.c: New file.
35717
35718         Tests for module 'unicase/u8-is-casefolded'.
35719         * modules/unicase/u8-is-casefolded-tests: New file.
35720         * tests/unicase/test-u8-is-casefolded.c: New file.
35721         * tests/unicase/test-is-casefolded.h: New file.
35722
35723         New module 'unicase/u32-is-casefolded'.
35724         * lib/unicase/u32-is-casefolded.c: New file.
35725         * modules/unicase/u32-is-casefolded: New file.
35726
35727         New module 'unicase/u16-is-casefolded'.
35728         * lib/unicase/u16-is-casefolded.c: New file.
35729         * modules/unicase/u16-is-casefolded: New file.
35730
35731         New module 'unicase/u8-is-casefolded'.
35732         * lib/unicase/u8-is-casefolded.c: New file.
35733         * modules/unicase/u8-is-casefolded: New file.
35734
35735         Tests for module 'unicase/u32-is-titlecase'.
35736         * modules/unicase/u32-is-titlecase-tests: New file.
35737         * tests/unicase/test-u32-is-titlecase.c: New file.
35738
35739         Tests for module 'unicase/u16-is-titlecase'.
35740         * modules/unicase/u16-is-titlecase-tests: New file.
35741         * tests/unicase/test-u16-is-titlecase.c: New file.
35742
35743         Tests for module 'unicase/u8-is-titlecase'.
35744         * modules/unicase/u8-is-titlecase-tests: New file.
35745         * tests/unicase/test-u8-is-titlecase.c: New file.
35746         * tests/unicase/test-is-titlecase.h: New file.
35747
35748         New module 'unicase/u32-is-titlecase'.
35749         * lib/unicase/u32-is-titlecase.c: New file.
35750         * modules/unicase/u32-is-titlecase: New file.
35751
35752         New module 'unicase/u16-is-titlecase'.
35753         * lib/unicase/u16-is-titlecase.c: New file.
35754         * modules/unicase/u16-is-titlecase: New file.
35755
35756         New module 'unicase/u8-is-titlecase'.
35757         * lib/unicase/u8-is-titlecase.c: New file.
35758         * modules/unicase/u8-is-titlecase: New file.
35759
35760         Tests for module 'unicase/u32-is-lowercase'.
35761         * modules/unicase/u32-is-lowercase-tests: New file.
35762         * tests/unicase/test-u32-is-lowercase.c: New file.
35763
35764         Tests for module 'unicase/u16-is-lowercase'.
35765         * modules/unicase/u16-is-lowercase-tests: New file.
35766         * tests/unicase/test-u16-is-lowercase.c: New file.
35767
35768         Tests for module 'unicase/u8-is-lowercase'.
35769         * modules/unicase/u8-is-lowercase-tests: New file.
35770         * tests/unicase/test-u8-is-lowercase.c: New file.
35771         * tests/unicase/test-is-lowercase.h: New file.
35772
35773         New module 'unicase/u32-is-lowercase'.
35774         * lib/unicase/u32-is-lowercase.c: New file.
35775         * modules/unicase/u32-is-lowercase: New file.
35776
35777         New module 'unicase/u16-is-lowercase'.
35778         * lib/unicase/u16-is-lowercase.c: New file.
35779         * modules/unicase/u16-is-lowercase: New file.
35780
35781         New module 'unicase/u8-is-lowercase'.
35782         * lib/unicase/u8-is-lowercase.c: New file.
35783         * modules/unicase/u8-is-lowercase: New file.
35784
35785         Tests for module 'unicase/u32-is-uppercase'.
35786         * modules/unicase/u32-is-uppercase-tests: New file.
35787         * tests/unicase/test-u32-is-uppercase.c: New file.
35788
35789         Tests for module 'unicase/u16-is-uppercase'.
35790         * modules/unicase/u16-is-uppercase-tests: New file.
35791         * tests/unicase/test-u16-is-uppercase.c: New file.
35792
35793         Tests for module 'unicase/u8-is-uppercase'.
35794         * modules/unicase/u8-is-uppercase-tests: New file.
35795         * tests/unicase/test-u8-is-uppercase.c: New file.
35796         * tests/unicase/test-is-uppercase.h: New file.
35797
35798         New module 'unicase/u32-is-uppercase'.
35799         * lib/unicase/u32-is-uppercase.c: New file.
35800         * modules/unicase/u32-is-uppercase: New file.
35801
35802         New module 'unicase/u16-is-uppercase'.
35803         * lib/unicase/u16-is-uppercase.c: New file.
35804         * modules/unicase/u16-is-uppercase: New file.
35805
35806         New module 'unicase/u8-is-uppercase'.
35807         * lib/unicase/u8-is-uppercase.c: New file.
35808         * modules/unicase/u8-is-uppercase: New file.
35809
35810         New module 'unicase/u32-is-invariant'.
35811         * lib/unicase/u32-is-invariant.c: New file.
35812         * modules/unicase/u32-is-invariant: New file.
35813
35814         New module 'unicase/u16-is-invariant'.
35815         * lib/unicase/u16-is-invariant.c: New file.
35816         * modules/unicase/u16-is-invariant: New file.
35817
35818         New module 'unicase/u8-is-invariant'.
35819         * lib/unicase/u8-is-invariant.c: New file.
35820         * lib/unicase/invariant.h: New file.
35821         * lib/unicase/u-is-invariant.h: New file.
35822         * modules/unicase/u8-is-invariant: New file.
35823
35824         Tests for module 'unicase/u32-casecoll'.
35825         * modules/unicase/u32-casecoll-tests: New file.
35826         * tests/unicase/test-u32-casecoll.c: New file.
35827
35828         Tests for module 'unicase/u16-casecoll'.
35829         * modules/unicase/u16-casecoll-tests: New file.
35830         * tests/unicase/test-u16-casecoll.c: New file.
35831
35832         Tests for module 'unicase/u8-casecoll'.
35833         * modules/unicase/u8-casecoll-tests: New file.
35834         * tests/unicase/test-u8-casecoll.c: New file.
35835
35836         New module 'unicase/u32-casecoll'.
35837         * lib/unicase/u32-casecoll.c: New file.
35838         * modules/unicase/u32-casecoll: New file.
35839
35840         New module 'unicase/u16-casecoll'.
35841         * lib/unicase/u16-casecoll.c: New file.
35842         * modules/unicase/u16-casecoll: New file.
35843
35844         New module 'unicase/u8-casecoll'.
35845         * lib/unicase/u8-casecoll.c: New file.
35846         * lib/unicase/u-casecoll.h: New file.
35847         * modules/unicase/u8-casecoll: New file.
35848
35849         New module 'unicase/u32-casexfrm'.
35850         * lib/unicase/u32-casexfrm.c: New file.
35851         * modules/unicase/u32-casexfrm: New file.
35852
35853         New module 'unicase/u16-casexfrm'.
35854         * lib/unicase/u16-casexfrm.c: New file.
35855         * modules/unicase/u16-casexfrm: New file.
35856
35857         New module 'unicase/u8-casexfrm'.
35858         * lib/unicase/u8-casexfrm.c: New file.
35859         * lib/unicase/u-casexfrm.h: New file.
35860         * modules/unicase/u8-casexfrm: New file.
35861
35862         Tests for module 'unicase/u32-casecmp'.
35863         * modules/unicase/u32-casecmp-tests: New file.
35864         * tests/unicase/test-u32-casecmp.c: New file.
35865
35866         Tests for module 'unicase/u16-casecmp'.
35867         * modules/unicase/u16-casecmp-tests: New file.
35868         * tests/unicase/test-u16-casecmp.c: New file.
35869
35870         Tests for module 'unicase/u8-casecmp'.
35871         * modules/unicase/u8-casecmp-tests: New file.
35872         * tests/unicase/test-u8-casecmp.c: New file.
35873         * tests/unicase/test-casecmp.h: New file.
35874
35875         New module 'unicase/u32-casecmp'.
35876         * lib/unicase/u32-casecmp.c: New file.
35877         * modules/unicase/u32-casecmp: New file.
35878
35879         New module 'unicase/u16-casecmp'.
35880         * lib/unicase/u16-casecmp.c: New file.
35881         * modules/unicase/u16-casecmp: New file.
35882
35883         New module 'unicase/u8-casecmp'.
35884         * lib/unicase/u8-casecmp.c: New file.
35885         * lib/unicase/u-casecmp.h: New file.
35886         * modules/unicase/u8-casecmp: New file.
35887
35888         Tests for module 'unicase/u32-casefold'.
35889         * modules/unicase/u32-casefold-tests: New file.
35890         * tests/unicase/test-u32-casefold.c: New file.
35891
35892         Tests for module 'unicase/u16-casefold'.
35893         * modules/unicase/u16-casefold-tests: New file.
35894         * tests/unicase/test-u16-casefold.c: New file.
35895
35896         Tests for module 'unicase/u8-casefold'.
35897         * modules/unicase/u8-casefold-tests: New file.
35898         * tests/unicase/test-u8-casefold.c: New file.
35899
35900         New module 'unicase/u32-casefold'.
35901         * lib/unicase/u32-casefold.c: New file.
35902         * modules/unicase/u32-casefold: New file.
35903
35904         New module 'unicase/u16-casefold'.
35905         * lib/unicase/u16-casefold.c: New file.
35906         * modules/unicase/u16-casefold: New file.
35907
35908         New module 'unicase/u8-casefold'.
35909         * lib/unicase/u8-casefold.c: New file.
35910         * lib/unicase/u-casefold.h: New file.
35911         * modules/unicase/u8-casefold: New file.
35912
35913         New module 'unicase/tocasefold'.
35914         * lib/unicase/casefold.h: New file.
35915         * lib/unicase/tocasefold.c: New file.
35916         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
35917         * modules/unicase/tocasefold: New file.
35918
35919         Tests for module 'unicase/u32-totitle'.
35920         * modules/unicase/u32-totitle-tests: New file.
35921         * tests/unicase/test-u32-totitle.c: New file.
35922
35923         Tests for module 'unicase/u16-totitle'.
35924         * modules/unicase/u16-totitle-tests: New file.
35925         * tests/unicase/test-u16-totitle.c: New file.
35926
35927         Tests for module 'unicase/u8-totitle'.
35928         * modules/unicase/u8-totitle-tests: New file.
35929         * tests/unicase/test-u8-totitle.c: New file.
35930
35931         New module 'unicase/u32-totitle'.
35932         * lib/unicase/u32-totitle.c: New file.
35933         * modules/unicase/u32-totitle: New file.
35934
35935         New module 'unicase/u16-totitle'.
35936         * lib/unicase/u16-totitle.c: New file.
35937         * modules/unicase/u16-totitle: New file.
35938
35939         New module 'unicase/u8-totitle'.
35940         * lib/unicase/u8-totitle.c: New file.
35941         * lib/unicase/u-totitle.h: New file.
35942         * modules/unicase/u8-totitle: New file.
35943
35944         Tests for module 'unicase/u32-tolower'.
35945         * modules/unicase/u32-tolower-tests: New file.
35946         * tests/unicase/test-u32-tolower.c: New file.
35947
35948         Tests for module 'unicase/u16-tolower'.
35949         * modules/unicase/u16-tolower-tests: New file.
35950         * tests/unicase/test-u16-tolower.c: New file.
35951
35952         Tests for module 'unicase/u8-tolower'.
35953         * modules/unicase/u8-tolower-tests: New file.
35954         * tests/unicase/test-u8-tolower.c: New file.
35955
35956         New module 'unicase/u32-tolower'.
35957         * lib/unicase/u32-tolower.c: New file.
35958         * modules/unicase/u32-tolower: New file.
35959
35960         New module 'unicase/u16-tolower'.
35961         * lib/unicase/u16-tolower.c: New file.
35962         * modules/unicase/u16-tolower: New file.
35963
35964         New module 'unicase/u8-tolower'.
35965         * lib/unicase/u8-tolower.c: New file.
35966         * modules/unicase/u8-tolower: New file.
35967
35968         Tests for module 'unicase/u32-toupper'.
35969         * modules/unicase/u32-toupper-tests: New file.
35970         * tests/unicase/test-u32-toupper.c: New file.
35971
35972         Tests for module 'unicase/u16-toupper'.
35973         * modules/unicase/u16-toupper-tests: New file.
35974         * tests/unicase/test-u16-toupper.c: New file.
35975
35976         Tests for module 'unicase/u8-toupper'.
35977         * modules/unicase/u8-toupper-tests: New file.
35978         * tests/unicase/test-u8-toupper.c: New file.
35979
35980         New module 'unicase/u32-toupper'.
35981         * lib/unicase/u32-toupper.c: New file.
35982         * modules/unicase/u32-toupper: New file.
35983
35984         New module 'unicase/u16-toupper'.
35985         * lib/unicase/u16-toupper.c: New file.
35986         * modules/unicase/u16-toupper: New file.
35987
35988         New module 'unicase/u8-toupper'.
35989         * lib/unicase/u8-toupper.c: New file.
35990         * modules/unicase/u8-toupper: New file.
35991
35992         New module 'unicase/u32-casemap'.
35993         * lib/unicase/u32-casemap.c: New file.
35994         * modules/unicase/u32-casemap: New file.
35995
35996         New module 'unicase/u16-casemap'.
35997         * lib/unicase/u16-casemap.c: New file.
35998         * modules/unicase/u16-casemap: New file.
35999
36000         New module 'unicase/u8-casemap'.
36001         * lib/unicase/unicasemap.h: New file.
36002         * lib/unicase/u8-casemap.c: New file.
36003         * lib/unicase/u-casemap.h: New file.
36004         * modules/unicase/u8-casemap: New file.
36005
36006         New module 'unicase/special-casing'.
36007         * lib/unicase/special-casing.h: New file.
36008         * lib/unicase/special-casing.c: New file.
36009         * lib/unicase/special-casing-table.gperf: New file, generated by
36010         gen-uni-tables.c.
36011         * modules/unicase/special-casing: New file.
36012
36013         Tests for module 'unicase/locale-language'.
36014         * modules/unicase/locale-language-tests: New file.
36015         * tests/unicase/test-locale-language.sh: New file.
36016         * tests/unicase/test-locale-language.c: New file.
36017
36018         New module 'unicase/locale-language'.
36019         * lib/unicase/locale-language.c: New file.
36020         * lib/unicase/locale-languages.gperf: New file.
36021         * modules/unicase/locale-language: New file.
36022
36023         Generate more tables for case conversion and case folding.
36024         * lib/gen-uni-tables.c (SCC_*): New enum items.
36025         (struct special_casing_rule): New type.
36026         (casing_rules, num_casing_rules, allocated_casing_rules): New
36027         variables.
36028         (add_casing_rule, fill_casing_rules): New functions.
36029         (struct casefold_rule): New type.
36030         (casefolding_rules, num_casefolding_rules,
36031         allocated_casefolding_rules): New variables.
36032         (fill_casefolding_rules): New function.
36033         (unicode_casefold): New variable.
36034         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
36035         sort_casing_rules, output_casing_rules): New functions.
36036         (main): Accept to more arguments: SpecialCasing.txt and
36037         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
36038         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
36039         Output mapping for casefolding.
36040
36041         * lib/unicase.h: Include stdbool.h, uninorm.h.
36042         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
36043         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
36044         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
36045         arguments.
36046         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
36047         resultp arguments.
36048         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
36049         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
36050         resultp arguments.
36051         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
36052         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
36053         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
36054         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
36055         declarations.
36056         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
36057
36058 2009-03-08  Bruno Haible  <bruno@clisp.org>
36059
36060         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
36061         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
36062         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
36063         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
36064
36065 2009-03-07  Bruno Haible  <bruno@clisp.org>
36066
36067         Adjust u*_normcmp, u*_normcoll API.
36068         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
36069         u16_normcoll, u32_normcoll): Change failure conventions.
36070         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
36071         errno and return -1.
36072         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
36073
36074 2009-03-07  Bruno Haible  <bruno@clisp.org>
36075
36076         Tests for module 'uninorm/u32-normcoll'.
36077         * modules/uninorm/u32-normcoll-tests: New file.
36078         * tests/uninorm/test-u32-normcoll.c: New file.
36079
36080         Tests for module 'uninorm/u16-normcoll'.
36081         * modules/uninorm/u16-normcoll-tests: New file.
36082         * tests/uninorm/test-u16-normcoll.c: New file.
36083
36084         Tests for module 'uninorm/u8-normcoll'.
36085         * modules/uninorm/u8-normcoll-tests: New file.
36086         * tests/uninorm/test-u8-normcoll.c: New file.
36087
36088 2009-03-07  Bruno Haible  <bruno@clisp.org>
36089
36090         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
36091         tests/uninorm/test-u32-normcmp.c.
36092         * tests/uninorm/test-u32-normcmp.c: Include it.
36093         (test_nonascii): New function, extracted from main. Add some more
36094         tests.
36095         (main): Invoke test_ascii and test_nonascii.
36096         * modules/uninorm/u32-normcmp-tests (Files): Add
36097         tests/uninorm/test-u32-normcmp.h.
36098         (Depends-on): Remove uninorm/u32-normcmp.
36099
36100         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
36101         tests/uninorm/test-u16-normcmp.c.
36102         * tests/uninorm/test-u16-normcmp.c: Include it.
36103         (test_nonascii): New function, extracted from main. Add some more
36104         tests.
36105         (main): Invoke test_ascii and test_nonascii.
36106         * modules/uninorm/u16-normcmp-tests (Files): Add
36107         tests/uninorm/test-u16-normcmp.h.
36108         (Depends-on): Remove uninorm/u16-normcmp.
36109
36110         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
36111         tests/uninorm/test-u8-normcmp.c.
36112         * tests/uninorm/test-u8-normcmp.c: Include it.
36113         (test_nonascii): New function, extracted from main. Add some more
36114         tests.
36115         (main): Invoke test_ascii and test_nonascii.
36116         * modules/uninorm/u8-normcmp-tests (Files): Add
36117         tests/uninorm/test-u8-normcmp.h.
36118         (Depends-on): Remove uninorm/u8-normcmp.
36119
36120 2009-03-07  Bruno Haible  <bruno@clisp.org>
36121
36122         New module 'uninorm/u32-normcoll'.
36123         * lib/uninorm/u32-normcoll.c: New file.
36124         * modules/uninorm/u32-normcoll: New file.
36125
36126         New module 'uninorm/u16-normcoll'.
36127         * lib/uninorm/u16-normcoll.c: New file.
36128         * modules/uninorm/u16-normcoll: New file.
36129
36130         New module 'uninorm/u8-normcoll'.
36131         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
36132         declarations.
36133         * lib/uninorm/u8-normcoll.c: New file.
36134         * lib/uninorm/u-normcoll.h: New file.
36135         * modules/uninorm/u8-normcoll: New file.
36136
36137         New module 'uninorm/u32-normxfrm'.
36138         * lib/uninorm/u32-normxfrm.c: New file.
36139         * modules/uninorm/u32-normxfrm: New file.
36140
36141         New module 'uninorm/u16-normxfrm'.
36142         * lib/uninorm/u16-normxfrm.c: New file.
36143         * modules/uninorm/u16-normxfrm: New file.
36144
36145         New module 'uninorm/u8-normxfrm'.
36146         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
36147         declarations.
36148         * lib/uninorm/u8-normxfrm.c: New file.
36149         * lib/uninorm/u-normxfrm.h: New file.
36150         * modules/uninorm/u8-normxfrm: New file.
36151
36152 2009-03-07  Bruno Haible  <bruno@clisp.org>
36153
36154         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
36155         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
36156         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
36157
36158 2009-03-07  Bruno Haible  <bruno@clisp.org>
36159
36160         New module 'memxfrm'.
36161         * lib/memxfrm.h: New file.
36162         * lib/memxfrm.c: New file.
36163         * modules/memxfrm: New file.
36164
36165 2009-03-07  Bruno Haible  <bruno@clisp.org>
36166
36167         New module 'memcmp2'.
36168         * lib/memcmp2.h: New file.
36169         * lib/memcmp2.c: New file.
36170         * modules/memcmp2: New file.
36171
36172 2009-03-07  Bruno Haible  <bruno@clisp.org>
36173
36174         Tests for module 'uninorm/decomposing-form'.
36175         * modules/uninorm/decomposing-form-tests: New file.
36176         * tests/uninorm/test-decomposing-form.c: New file.
36177
36178         New module 'uninorm/decomposing-form'.
36179         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
36180         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
36181         Add 'decomposing_variant' field.
36182         * lib/uninorm/decomposing-form.c: New file.
36183         * lib/uninorm/nfc.c (uninorm_nfc): Update.
36184         * lib/uninorm/nfd.c (uninorm_nfd): Update.
36185         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
36186         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
36187         * modules/uninorm/decomposing-form: New file.
36188         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
36189         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
36190
36191 2009-03-07  Bruno Haible  <bruno@clisp.org>
36192
36193         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
36194         strings.
36195
36196 2009-03-06  Bruno Haible  <bruno@clisp.org>
36197
36198         Tests for module 'uninorm/u32-normcmp'.
36199         * tests/uninorm/test-u32-normcmp.c: New file.
36200         * modules/uninorm/u32-normcmp-tests: New file.
36201
36202         Tests for module 'uninorm/u16-normcmp'.
36203         * tests/uninorm/test-u16-normcmp.c: New file.
36204         * modules/uninorm/u16-normcmp-tests: New file.
36205
36206         Tests for module 'uninorm/u8-normcmp'.
36207         * tests/uninorm/test-u8-normcmp.c: New file.
36208         * modules/uninorm/u8-normcmp-tests: New file.
36209
36210         New module 'uninorm/u32-normcmp'.
36211         * lib/uninorm/u32-normcmp.c: New file.
36212         * modules/uninorm/u32-normcmp: New file.
36213
36214         New module 'uninorm/u16-normcmp'.
36215         * lib/uninorm/u16-normcmp.c: New file.
36216         * modules/uninorm/u16-normcmp: New file.
36217
36218         New module 'uninorm/u8-normcmp'.
36219         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
36220         declarations.
36221         * lib/uninorm/u8-normcmp.c: New file.
36222         * lib/uninorm/u-normcmp.h: New file.
36223         * modules/uninorm/u8-normcmp: New file.
36224
36225 2009-03-06  Bruno Haible  <bruno@clisp.org>
36226
36227         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
36228         Reported by Eric Blake.
36229
36230 2009-03-06  Eric Blake  <ebb9@byu.net>
36231             Bruno Haible  <bruno@clisp.org>
36232
36233         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
36234         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
36235         condition.
36236         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
36237         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
36238         condition.
36239         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
36240
36241 2009-03-06  Eric Blake  <ebb9@byu.net>
36242
36243         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
36244         to avoid compiler warnings.
36245         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
36246
36247 2009-03-05  Bruno Haible  <bruno@clisp.org>
36248
36249         * tests/test-ftell.c (main): Disable test beyond end of file on
36250         FreeMiNT.
36251         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
36252
36253 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
36254
36255         * lib/filevercmp.c: Move hidden files up in ordering.
36256         * tests/test-filevercmp.c: Add tests for hidden files.
36257
36258 2009-03-04  Bruno Haible  <bruno@clisp.org>
36259
36260         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
36261         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
36262         AM_CFLAGS.
36263         Reported by Simon Josefsson.
36264
36265 2009-03-03  Bruno Haible  <bruno@clisp.org>
36266
36267         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
36268         Reported by Simon Josefsson.
36269
36270         * doc/ld-version-script.texi: Update node reference.
36271
36272 2009-03-03  Bruno Haible  <bruno@clisp.org>
36273
36274         * modules/visibility (License): Change to 'unlimited'.
36275         Suggested by Simon Josefsson.
36276
36277 2009-03-03  Jim Meyering  <meyering@redhat.com>
36278
36279         unlinkdir: cannot_unlink_dir may modify process state
36280         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
36281         it's neither thread-safe nor appropriate for use in a library.
36282
36283 2009-03-03  Eric Blake  <ebb9@byu.net>
36284
36285         test-closein: silence test under Darwin
36286         * tests/test-closein.sh: Ignore stderr from cat, since we don't
36287         care if it dies from EPIPE or EBADF.
36288
36289 2009-03-03  Bruno Haible  <bruno@clisp.org>
36290
36291         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
36292         earlier.
36293         * doc/visibility.texi: Fix @node and @section.
36294
36295 2009-03-03  Simon Josefsson  <simon@josefsson.org>
36296
36297         * doc/gnulib.texi: Link to sections for ld version script and
36298         visibility.
36299         * doc/visibility.texi: Add @node and @section.
36300         * modules/ld-version-script: New module.
36301         * m4/ld-version-script.m4: New file.
36302         * doc/ld-version-script.texi: New file.
36303
36304 2009-03-02  David Lutterkort  <lutter@redhat.com>
36305
36306         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
36307         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36308
36309 2009-03-02  Bruno Haible  <bruno@clisp.org>
36310
36311         * doc/visibility.texi: Mention libtool's -export-symbols option.
36312
36313 2009-03-02  Jim Meyering  <meyering@redhat.com>
36314
36315         announce-gen: new option: --no-print-checksums
36316         * build-aux/announce-gen (usage): Describe it.
36317         (print_checksums): Print a newline here, not in the [*] footnote.
36318         (main): Honor it.
36319
36320 2009-03-01  Bruno Haible  <bruno@clisp.org>
36321
36322         Use socklen_t in the native Windows replacements prototypes.
36323         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
36324         instead of 'int'.
36325         * lib/getsockopt.c (rpl_getsockopt): Likewise.
36326         * lib/setsockopt.c (rpl_setsockopt): Likewise.
36327         * modules/getsockopt (Depends-on): Add socklen.
36328         * modules/setsockopt (Depends-on): Add socklen.
36329
36330 2009-03-01  Bruno Haible  <bruno@clisp.org>
36331
36332         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
36333         least 4.2.
36334
36335 2009-03-01  Eric Blake  <ebb9@byu.net>
36336             Bruno Haible  <bruno@clisp.org>
36337
36338         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
36339         error messages.
36340         * lib/wait-process.c (wait_subprocess): Omit error message about
36341         deadly signal sent to the child of termsigp != NULL.
36342
36343 2009-03-01  Eric Blake  <ebb9@byu.net>
36344
36345         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
36346
36347 2009-03-01  Bruno Haible  <bruno@clisp.org>
36348
36349         Avoid a gcc warning.
36350         * tests/test-sched.c (b): Make global.
36351         Reported by Eric Blake.
36352
36353 2009-01-19  Martin Lambers  <marlam@marlam.de>
36354
36355         Provide POSIX semantics for socket timeout options on W32.
36356         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
36357         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
36358         * modules/setsockopt: Depend on sys_time module for struct timeval.
36359         * modules/getsockopt: Depend on sys_time module for struct timeval.
36360
36361 2009-03-01  Simon Josefsson  <simon@josefsson.org>
36362
36363         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
36364         __USE_GNU, for consistency with netdb.in.h.
36365         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
36366
36367 2009-03-01  Bruno Haible  <bruno@clisp.org>
36368
36369         More support for FreeMiNT.
36370         * lib/fseeko.c (rpl_fseeko): Complete last commit.
36371         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
36372
36373 2009-03-01  Bruno Haible  <bruno@clisp.org>
36374
36375         More support for FreeMiNT.
36376         * lib/fpurge.c (fpurge): Correct last commit.
36377         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
36378
36379 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36380
36381         Fix unportable awk script in vc-list-files.
36382         * build-aux/vc-list-files: In the replacement awk script, use
36383         substr with a second argument of 1, not zero.
36384         Report by Simon Josefsson.
36385
36386 2009-02-28  Bruno Haible  <bruno@clisp.org>
36387
36388         More support for FreeMiNT.
36389         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
36390         to FreeMiNT today.
36391         * lib/fwriting.c (fwriting): Likewise.
36392         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
36393
36394 2009-02-28  Bruno Haible  <bruno@clisp.org>
36395
36396         * tests/test-freadseek.c (main): Disable test beyond end of file on
36397         FreeMiNT.
36398         * tests/test-ftello.c (main): Likewise.
36399         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
36400
36401 2009-02-28  Bruno Haible  <bruno@clisp.org>
36402
36403         Add tentative support for FreeMiNT.
36404         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
36405         * lib/fpurge.c (fpurge): Likewise.
36406         * lib/freadable.c (freadable): Likewise.
36407         * lib/freading.c (freading): Likewise.
36408         * lib/freadptr.c (freadptr): Likewise.
36409         * lib/freadseek.c (freadptrinc): Likewise.
36410         * lib/fseeko.c (rpl_fseeko): Likewise.
36411         * lib/fseterr.c (fseterr): Likewise.
36412         * lib/fwritable.c (fwritable): Likewise.
36413         * lib/fwriting.c (fwriting): Likewise.
36414         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
36415         Hourihane.
36416         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
36417
36418 2009-02-28  Bruno Haible  <bruno@clisp.org>
36419
36420         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
36421         SIGCHLD.
36422         Reported by Jim Meyering.
36423
36424 2009-02-28  Bruno Haible  <bruno@clisp.org>
36425
36426         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
36427         Mention the results of these tests on various platforms.
36428         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
36429         order.
36430         * doc/posix-functions/printf.texi: Likewise.
36431         * doc/posix-functions/snprintf.texi: Likewise.
36432         * doc/posix-functions/sprintf.texi: Likewise.
36433         * doc/posix-functions/vfprintf.texi: Likewise.
36434         * doc/posix-functions/vprintf.texi: Likewise.
36435         * doc/posix-functions/vsnprintf.texi: Likewise.
36436         * doc/posix-functions/vsprintf.texi: Likewise.
36437         * doc/glibc-functions/obstack_printf.texi: Likewise.
36438         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
36439
36440 2009-02-28  Bruno Haible  <bruno@clisp.org>
36441
36442         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
36443         Reported by Loïc Minier <lool@dooz.org>.
36444
36445 2009-02-27  Bruno Haible  <bruno@clisp.org>
36446
36447         * gnulib-tool (func_import): Make the sed expression used to create the
36448         sed script for updating the .gitignore file POSIX compliant.
36449         Reported by Eric Blake.
36450
36451 2009-02-27  Bruno Haible  <bruno@clisp.org>
36452
36453         * gnulib-tool (sed): Don't alias as "sed --posix".
36454         Reported by Eric Blake.
36455
36456 2009-02-27  Bruno Haible  <bruno@clisp.org>
36457
36458         Avoid test link errors.
36459         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
36460         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
36461         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
36462         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
36463         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36464
36465 2009-02-27  Bruno Haible  <bruno@clisp.org>
36466
36467         Avoid spurious "(cached)" in configure output.
36468         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
36469         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
36470         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
36471         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
36472         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
36473         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
36474         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
36475         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
36476         Reported by Eric Blake.
36477
36478 2009-02-27  Eric Blake  <ebb9@byu.net>
36479
36480         printf: fix regression in previous patch
36481         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
36482
36483 2009-02-27  Bruno Haible  <bruno@clisp.org>
36484
36485         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
36486         value.
36487         * lib/stdint.in.h: Likewise.
36488         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
36489
36490 2009-02-27  Eric Blake  <ebb9@byu.net>
36491
36492         doc: mention more functions added in cygwin 1.7.0
36493         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
36494         addition.
36495         * doc/posix-functions/open_wmemstream.texi: Likewise.
36496         * doc/posix-functions/wcsnlen.texi: Likewise.
36497         * doc/posix-functions/wcsnrtombs.texi: Likewise.
36498         * doc/posix-functions/wcstod.texi: Likewise.
36499         * doc/posix-functions/wcstof.texi: Likewise.
36500         * doc/posix-functions/wcstoimax.texi: Likewise.
36501         * doc/posix-functions/wcstok.texi: Likewise.
36502         * doc/posix-functions/wcstoumax.texi: Likewise.
36503
36504         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
36505         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
36506         * doc/posix-functions/fprintf.texi: Update.
36507         * doc/posix-functions/printf.texi: Update.
36508         * doc/posix-functions/snprintf.texi: Update.
36509         * doc/posix-functions/sprintf.texi: Update.
36510         * doc/posix-functions/vfprintf.texi: Update.
36511         * doc/posix-functions/vprintf.texi: Update.
36512         * doc/posix-functions/vsnprintf.texi: Update.
36513         * doc/posix-functions/vsprintf.texi: Update.
36514         * doc/glibc-functions/obstack_printf.texi: Update.
36515         * doc/glibc-functions/obstack_vprintf.texi: Update.
36516
36517 2009-02-26  Eric Blake  <ebb9@byu.net>
36518
36519         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
36520         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
36521         compilation bug by using runtime conversion.
36522         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
36523         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
36524         * modules/ceill-tests (Files): Use nan.h.
36525         * modules/floorl-tests (Files): Likewise.
36526         * modules/frexpl-tests (Files): Likewise.
36527         * modules/isnanl-tests (Files): Likewise.
36528         * modules/ldexpl-tests (Files): Likewise.
36529         * modules/roundl-tests (Files): Likewise.
36530         * modules/truncl-tests (Files): Likewise.
36531         * tests/test-ceill.c (main): Use a working NaN.
36532         * tests/test-floorl.c (main): Likewise.
36533         * tests/test-frexpl.c (main): Likewise.
36534         * tests/test-isnan.c (test_long_double): Likewise.
36535         * tests/test-isnanl.h (main): Likewise.
36536         * tests/test-ldexpl.h (main): Likewise.
36537         * tests/test-roundl.h (main): Likewise.
36538         * tests/test-truncl.h (main): Likewise.
36539         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
36540
36541 2009-02-26  Eric Blake  <ebb9@byu.net>
36542             Bruno Haible  <bruno@clisp.org>
36543
36544         Work around a *printf bug with %ls on Solaris.
36545         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
36546         precision is specified, sprintf stops converting the wide string
36547         argument when the number of bytes that have been produced by this
36548         conversion equals or exceeds the precision.
36549         * doc/posix-functions/fprintf.texi: Update.
36550         * doc/posix-functions/printf.texi: Update.
36551         * doc/posix-functions/snprintf.texi: Update.
36552         * doc/posix-functions/sprintf.texi: Update.
36553         * doc/posix-functions/vfprintf.texi: Update.
36554         * doc/posix-functions/vprintf.texi: Update.
36555         * doc/posix-functions/vsnprintf.texi: Update.
36556         * doc/posix-functions/vsprintf.texi: Update.
36557         * doc/glibc-functions/obstack_printf.texi: Update.
36558         * doc/glibc-functions/obstack_vprintf.texi: Update.
36559
36560 2009-02-26  Eric Blake  <ebb9@byu.net>
36561
36562         stdlib: favor compiler check of random.h
36563         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
36564         to avoid an ObjC random.h installed by Swarm.
36565
36566 2009-02-26  Bruno Haible  <bruno@clisp.org>
36567
36568         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
36569         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
36570         Reported by Gary V. Vaughan <gary@gnu.org>.
36571
36572 2009-02-26  Bruno Haible  <bruno@clisp.org>
36573
36574         Fix *printf behaviour regarding the %ls directive.
36575         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
36576         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
36577         NEED_PRINTF_DIRECTIVE_LS.
36578         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
36579         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
36580         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
36581         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
36582         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
36583         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
36584         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
36585         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
36586         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
36587         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
36588         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
36589         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
36590         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
36591         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
36592         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
36593         * doc/posix-functions/fprintf.texi: Update.
36594         * doc/posix-functions/printf.texi: Update.
36595         * doc/posix-functions/snprintf.texi: Update.
36596         * doc/posix-functions/sprintf.texi: Update.
36597         * doc/posix-functions/vfprintf.texi: Update.
36598         * doc/posix-functions/vprintf.texi: Update.
36599         * doc/posix-functions/vsnprintf.texi: Update.
36600         * doc/posix-functions/vsprintf.texi: Update.
36601         * doc/glibc-functions/obstack_printf.texi: Update.
36602         * doc/glibc-functions/obstack_vprintf.texi: Update.
36603         Reported by Eric Blake.
36604
36605 2009-02-25  Bruno Haible  <bruno@clisp.org>
36606
36607         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
36608         with known value.
36609         Reported by Gary V. Vaughan <gary@gnu.org>.
36610
36611 2009-02-25  Bruno Haible  <bruno@clisp.org>
36612
36613         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
36614         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
36615         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
36616         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
36617         Reported by Gary V. Vaughan <gary@gnu.org>.
36618
36619 2009-02-25  Bruno Haible  <bruno@clisp.org>
36620
36621         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
36622         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
36623         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
36624         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
36625         Reported by Gary V. Vaughan <gary@gnu.org>.
36626
36627 2009-02-25  Eric Blake  <ebb9@byu.net>
36628
36629         tests: skip fseek/ftell tests if ungetc is broken
36630         * m4/ungetc.m4: New file.
36631         * modules/fseek-tests: Split test, so ungetc dependency is
36632         separate from rest of test.
36633         * modules/fseeko-tests: Likewise.
36634         * modules/ftell-tests: Likewise.
36635         * modules/ftello-tests: Likewise.
36636         * tests/test-fseek.c (main): Isolate ungetc dependency.
36637         * tests/test-fseeko.c (main): Likewise.
36638         * tests/test-ftell.c (main): Likewise.
36639         * tests/test-ftello.c (main): Likewise.
36640         * tests/test-fseek2.sh: New file.
36641         * tests/test-fseeko2.sh: Likewise.
36642         * tests/test-ftell2.sh: Likewise.
36643         * tests/test-ftello2.sh: Likewise.
36644
36645 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
36646
36647         test-getaddrinfo: fix usage of skip return code 77
36648         * tests/test-gettaddrinfo.c: Return skip code 77 only
36649         for first occurance of skip (4x77 is not 77)
36650
36651 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
36652
36653         strtod: avoid C99 decl-after-statement
36654         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
36655
36656 2009-02-24  Eric Blake  <ebb9@byu.net>
36657
36658         strtod: detect HP-UX 11.31 bug
36659         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
36660         Reported by Gary V. Vaughan.
36661
36662 2009-02-23  Bruno Haible  <bruno@clisp.org>
36663
36664         Fix invalid read past end of memory block.
36665         * lib/vasnprintf.c (DCHAR_SET): Define.
36666         (local_wcslen): Define only when needed.
36667         (local_strnlen, local_wcsnlen): New functions.
36668         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
36669         directives that involve a conversion ourselves.
36670         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
36671         wcsnlen, mbrtowc, wcrtomb.
36672         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
36673         * tests/test-vasprintf-posix.c (test_function): Likewise.
36674         * tests/test-snprintf-posix.h (test_function): Likewise.
36675         * tests/test-sprintf-posix.h (test_function): Likewise.
36676         Reported by Ben Pfaff <blp@cs.stanford.edu>.
36677
36678 2009-02-22  Bruno Haible  <bruno@clisp.org>
36679
36680         Implement new clarified decomposition of Hangul syllables.
36681         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
36682         of type LTV, return only a pairwise decomposition.
36683         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
36684         Likewise.
36685         * tests/uninorm/test-decomposition.c (main): Updated expected result.
36686         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
36687         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
36688
36689 2009-02-22  Bruno Haible  <bruno@clisp.org>
36690
36691         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
36692         zero-length results and shrink excess allocated memory.
36693         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
36694         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
36695         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
36696         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
36697         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
36698         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
36699         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
36700         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
36701         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
36702         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
36703         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
36704         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
36705
36706 2009-02-21  Bruno Haible  <bruno@clisp.org>
36707
36708         * doc/gnulib.texi: Include safe-alloc.texi earlier.
36709         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
36710         spaces after a period. Put a space between a macro name and its
36711         argument list. Trivial rewordings.
36712         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
36713         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
36714         (main): Return 0 explicitly.
36715
36716 2009-02-21  Bruno Haible  <bruno@clisp.org>
36717
36718         Tests for module 'uninorm/filter'.
36719         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
36720         * modules/uninorm/filter-tests: New file.
36721
36722         New module 'uninorm/filter'.
36723         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
36724         uninorm_filter_flush, uninorm_filter_free): New declarations.
36725         * lib/uninorm/uninorm-filter.c: New file.
36726         * modules/uninorm/filter: New file.
36727
36728 2009-02-21  Bruno Haible  <bruno@clisp.org>
36729
36730         Tests for module 'uninorm/nfkc'.
36731         * tests/uninorm/test-nfkc.c: New file.
36732         * tests/uninorm/test-u8-nfkc.c: New file.
36733         * tests/uninorm/test-u16-nfkc.c: New file.
36734         * tests/uninorm/test-u32-nfkc.c: New file.
36735         * tests/uninorm/test-u32-nfkc-big.sh: New file.
36736         * tests/uninorm/test-u32-nfkc-big.c: New file.
36737         * modules/uninorm/nfkc-tests: New file.
36738
36739         New module 'uninorm/nfkc'.
36740         * lib/uninorm/nfkc.c: New file.
36741         * modules/uninorm/nfkc: New file.
36742
36743         Tests for module 'uninorm/nfkd'.
36744         * tests/uninorm/test-nfkd.c: New file.
36745         * tests/uninorm/test-u8-nfkd.c: New file.
36746         * tests/uninorm/test-u16-nfkd.c: New file.
36747         * tests/uninorm/test-u32-nfkd.c: New file.
36748         * tests/uninorm/test-u32-nfkd-big.sh: New file.
36749         * tests/uninorm/test-u32-nfkd-big.c: New file.
36750         * modules/uninorm/nfkd-tests: New file.
36751
36752         New module 'uninorm/nfkd'.
36753         * lib/uninorm/nfkd.c: New file.
36754         * modules/uninorm/nfkd: New file.
36755
36756         Tests for module 'uninorm/nfc'.
36757         * tests/uninorm/test-nfc.c: New file.
36758         * tests/uninorm/test-u8-nfc.c: New file.
36759         * tests/uninorm/test-u16-nfc.c: New file.
36760         * tests/uninorm/test-u32-nfc.c: New file.
36761         * tests/uninorm/test-u32-nfc-big.sh: New file.
36762         * tests/uninorm/test-u32-nfc-big.c: New file.
36763         * modules/uninorm/nfc-tests: New file.
36764
36765         New module 'uninorm/nfc'.
36766         * lib/uninorm/nfc.c: New file.
36767         * modules/uninorm/nfc: New file.
36768
36769         Tests for module 'uninorm/nfd'.
36770         * tests/uninorm/test-nfd.c: New file.
36771         * tests/uninorm/test-u8-nfd.c: New file.
36772         * tests/uninorm/test-u16-nfd.c: New file.
36773         * tests/uninorm/test-u32-nfd.c: New file.
36774         * tests/uninorm/test-u32-nfd-big.sh: New file.
36775         * tests/uninorm/test-u32-nfd-big.c: New file.
36776         * tests/uninorm/test-u32-normalize-big.h: New file.
36777         * tests/uninorm/test-u32-normalize-big.c: New file.
36778         * tests/uninorm/NormalizationTest.txt: New file, created from
36779         Unicode 5.1.0 NormalizationTest.txt.
36780         * modules/uninorm/nfd-tests: New file.
36781
36782         New module 'uninorm/nfd'.
36783         * lib/uninorm/nfd.c: New file.
36784         * modules/uninorm/nfd: New file.
36785
36786         New module 'uninorm/u32-normalize'.
36787         * lib/uninorm/u32-normalize.c: New file.
36788         * modules/uninorm/u32-normalize: New file.
36789
36790         New module 'uninorm/u16-normalize'.
36791         * lib/uninorm/u16-normalize.c: New file.
36792         * modules/uninorm/u16-normalize: New file.
36793
36794         New module 'uninorm/u8-normalize'.
36795         * lib/uninorm/u8-normalize.c: New file.
36796         * lib/uninorm/normalize-internal.h: New file.
36797         * lib/uninorm/u-normalize-internal.h: New file.
36798         * modules/uninorm/u8-normalize: New file.
36799
36800         New module 'uninorm/decompose-internal'.
36801         * lib/uninorm/decompose-internal.c: New file.
36802         * modules/uninorm/decompose-internal: New file.
36803
36804         Tests for module 'uninorm/composition'.
36805         * tests/uninorm/test-composition.c: New file.
36806         * modules/uninorm/composition-tests: New file.
36807
36808         New module 'uninorm/composition'.
36809         * lib/uninorm/composition.c: New file.
36810         * lib/uninorm/composition-table.gperf: New file, generated by
36811         gen-uni-tables.
36812         * modules/uninorm/composition: New file.
36813
36814         Tests for module 'uninorm/compat-decomposition'.
36815         * tests/uninorm/test-compat-decomposition.c: New file.
36816         * modules/uninorm/compat-decomposition-tests: New file.
36817
36818         New module 'uninorm/compat-decomposition'.
36819         * lib/uninorm/decompose-internal.h: New file.
36820         * lib/uninorm/compat-decomposition.c: New file.
36821         * modules/uninorm/compat-decomposition: New file.
36822
36823         Tests for module 'uninorm/canonical-decomposition'.
36824         * tests/uninorm/test-canonical-decomposition.c: New file.
36825         * modules/uninorm/canonical-decomposition-tests: New file.
36826
36827         New module 'uninorm/canonical-decomposition'.
36828         * lib/uninorm/canonical-decomposition.c: New file.
36829         * modules/uninorm/canonical-decomposition: New file.
36830
36831         Tests for module 'uninorm/decomposition'.
36832         * tests/uninorm/test-decomposition.c: New file.
36833         * modules/uninorm/decomposition-tests: New file.
36834
36835         New module 'uninorm/decomposition'.
36836         * lib/uninorm/decomposition.c: New file.
36837         * modules/uninorm/decomposition: New file.
36838
36839         New module 'uninorm/decomposition-table'.
36840         * lib/uninorm/decomposition-table.h: New file.
36841         * lib/uninorm/decomposition-table.c: New file.
36842         * lib/uninorm/decomposition-table1.h: New file, generated by
36843         gen-uni-tables.
36844         * lib/uninorm/decomposition-table2.h: New file, generated by
36845         gen-uni-tables.
36846         * modules/uninorm/decomposition-table: New file.
36847
36848         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
36849         (UC_DECOMP_*): New enumeration items.
36850         (get_decomposition): New function.
36851         (struct decomp_table): New type.
36852         (output_decomposition, output_decomposition_tables): New functions.
36853         (unicode_composition_exclusions): New variable.
36854         (fill_composition_exclusions, debug_output_composition_tables): New
36855         functions.
36856         (main): Accept one more argument. Invoke fill_composition_exclusions.
36857         Output decomposition and composition tables.
36858
36859         New module 'uninorm/base'.
36860         * lib/uninorm.h: New file.
36861         * lib/unictype.h: Update comment.
36862         * modules/uninorm/base: New file.
36863
36864 2009-02-21  David Lutterkort  <lutter@redhat.com>
36865
36866         Tests for module 'safe-alloc'.
36867         * tests/test-safe-alloc.c: New file.
36868         * modules/safe-alloc-tests: New file.
36869
36870         New module 'safe-alloc'.
36871         * lib/safe-alloc.h: New file.
36872         * lib/safe-alloc.c: New file.
36873         * m4/safe-alloc.m4: New file.
36874         * modules/safe-alloc: New file.
36875         * doc/safe-alloc.texi: New file.
36876         * doc/gnulib.texi: Include it.
36877         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
36878         safe-alloc.
36879
36880 2009-02-18  Bruno Haible  <bruno@clisp.org>
36881
36882         Fix link error on non-glibc systems.
36883         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
36884         variable.
36885         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36886
36887 2009-02-18  Jim Meyering  <meyering@redhat.com>
36888
36889         fts: avoid used-uninitialized error due to recent change
36890         * lib/fts.c (fts_read): Guard uses of the new member,
36891         parent->fts_n_dirs_remaining, since it's not relevant for
36892         the parent of a directory specified on the command-line.
36893
36894 2009-02-17  James Youngman  <jay@gnu.org>
36895             Bruno Haible  <bruno@clisp.org>
36896
36897         * m4/include_next.m4: Reformulate comment.
36898
36899 2009-02-16  Jim Meyering  <meyering@redhat.com>
36900
36901         fts: add #if guards so that the fts_lgpl module still builds
36902         * lib/fts.c: Guard just-added hash-table-using parts with
36903         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
36904         Reported by Simon Josefsson.
36905
36906 2009-02-15  Bruno Haible  <bruno@clisp.org>
36907
36908         * modules/array-mergesort-tests: New file.
36909         * tests/test-array-mergesort.c: New file.
36910
36911         New module 'array-mergesort'.
36912         * modules/array-mergesort: New file.
36913         * lib/array-mergesort.h: New file.
36914
36915 2009-02-15  Bruno Haible  <bruno@clisp.org>
36916
36917         Fix 2009-02-07 commit.
36918         * lib/gen-uni-tables.c (output_predicate, output_category,
36919         output_combclass, output_bidi_category, output_decimal_digit,
36920         output_digit, output_numeric, output_mirror, output_scripts,
36921         output_ident_category, output_simple_mapping): Fix format directives.
36922         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
36923
36924 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
36925
36926         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
36927         fixes are available from IBM.
36928
36929 2009-02-13  Jim Meyering  <meyering@redhat.com>
36930
36931         fts: arrange not to stat non-directories in more cases
36932         This makes GNU find (when it doesn't need to stat each file)
36933         *much* more efficient at traversing reiserfs file systems.
36934         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
36935         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
36936         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
36937         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
36938         (leaf_optimization_applies): New function.
36939         (LCO_hash, LCO_compare): New helper functions.
36940         (link_count_optimize_ok): New function.
36941         (fts_stat): Initialize new member (if dir).
36942         (fts_read): Decrement parent's fts_n_dirs_remaining count if
36943         we've just stat'ed a directory.  Skip the stat call when possible.
36944         ---
36945         Note this AFS-related exchange:
36946         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
36947         and note find's pioctl call in find/fstype.c.
36948         But that is necessary only if you want to enable the
36949         optimization for AFS, and for now, I don't.
36950
36951         fts: move a function definition "up" (no semantic change)
36952         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
36953         "up" to precede upcoming use of a related function.
36954
36955 2009-02-11  Jim Meyering  <meyering@redhat.com>
36956
36957         fts: correct internal computation of nlinks (optimization-related)
36958         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
36959         whether the current entry is a directory, so don't test it.
36960
36961 2009-02-10  Bruno Haible  <bruno@clisp.org>
36962
36963         Tests for module 'uniwbrk/ulc-wordbreaks'.
36964         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
36965         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
36966         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
36967
36968         Tests for module 'uniwbrk/u32-wordbreaks'.
36969         * modules/uniwbrk/u32-wordbreaks-tests: New file.
36970         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
36971
36972         Tests for module 'uniwbrk/u16-wordbreaks'.
36973         * modules/uniwbrk/u16-wordbreaks-tests: New file.
36974         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
36975
36976         Tests for module 'uniwbrk/u8-wordbreaks'.
36977         * modules/uniwbrk/u8-wordbreaks-tests: New file.
36978         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
36979
36980 2009-02-10  Bruno Haible  <bruno@clisp.org>
36981
36982         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
36983         property.
36984         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
36985         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
36986         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
36987
36988 2009-02-10  Simon Josefsson  <simon@josefsson.org>
36989
36990         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
36991         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
36992
36993 2009-02-10  Bruno Haible  <bruno@clisp.org>
36994
36995         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
36996         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
36997         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
36998         * lib/unilbrk/u8-possible-linebreaks.c: Update.
36999         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
37000         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
37001
37002 2009-02-09  Simon Josefsson  <simon@josefsson.org>
37003
37004         * lib/sockets.h (gl_fd_to_handle): New function.
37005
37006         * tests/test-sockets.c: Call gl_fd_to_handle.
37007
37008 2009-02-09  Bruno Haible  <bruno@clisp.org>
37009
37010         * doc/havelib.texi: Document the conventions on bi-arch systems.
37011
37012 2009-02-08  Bruno Haible  <bruno@clisp.org>
37013
37014         Document the AC_LIB_LINKFLAGS macro.
37015         * doc/havelib.texi: New file, mostly written on 2005-05-24.
37016         * doc/gnulib.texi: Include it.
37017
37018 2009-02-08  Bruno Haible  <bruno@clisp.org>
37019
37020         Fix wrong order of sections, compared to TOC.
37021         * doc/gnulib.texi: Include relocatable-maint.texi after the
37022         "Regular expressions" node, not before.
37023
37024 2009-02-08  Bruno Haible  <bruno@clisp.org>
37025
37026         Tests for module 'unicase/totitle'.
37027         * modules/unicase/totitle-tests: New file.
37028
37029         Tests for module 'unicase/tolower'.
37030         * modules/unicase/tolower-tests: New file.
37031
37032         Tests for module 'unicase/toupper'.
37033         * modules/unicase/toupper-tests: New file.
37034         * tests/unicase/test-mapping-part1.h: New file.
37035         * tests/unicase/test-mapping-part2.h: New file.
37036
37037         New module 'unicase/totitle'.
37038         * modules/unicase/totitle: New file.
37039         * lib/unicase/totitle.c: New file.
37040
37041         New module 'unicase/tolower'.
37042         * modules/unicase/tolower: New file.
37043         * lib/unicase/tolower.c: New file.
37044
37045         New module 'unicase/toupper'.
37046         * modules/unicase/toupper: New file.
37047         * lib/unicase/toupper.c: New file.
37048         * lib/unicase/simple-mapping.h: New file.
37049
37050         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
37051         (mapping_table): New structure.
37052         (output_simple_mapping): New function.
37053         (main): Invoke output_simple_mapping_test and output_simple_mapping.
37054         * modules/gen-uni-tables (Description): Update.
37055         * lib/unicase/toupper.h: New file, automatically generated by
37056         gen-uni-tables.
37057         * lib/unicase/tolower.h: New file, automatically generated by
37058         gen-uni-tables.
37059         * lib/unicase/totitle.h: New file, automatically generated by
37060         gen-uni-tables.
37061         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
37062         gen-uni-tables.
37063         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
37064         gen-uni-tables.
37065         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
37066         gen-uni-tables.
37067
37068         New module 'unicase/base'.
37069         * modules/unicase/base: New file.
37070         * lib/unicase.h: New file.
37071
37072 2009-02-08  Bruno Haible  <bruno@clisp.org>
37073
37074         New module 'uniwbrk/ulc-wordbreaks'.
37075         * modules/uniwbrk/ulc-wordbreaks: New file.
37076         * lib/uniwbrk/ulc-wordbreaks.c: New file.
37077
37078         New module 'uniwbrk/u32-wordbreaks'.
37079         * modules/uniwbrk/u32-wordbreaks: New file.
37080         * lib/uniwbrk/u32-wordbreaks.c: New file.
37081
37082         New module 'uniwbrk/u16-wordbreaks'.
37083         * modules/uniwbrk/u16-wordbreaks: New file.
37084         * lib/uniwbrk/u16-wordbreaks.c: New file.
37085
37086         New module 'uniwbrk/u8-wordbreaks'.
37087         * modules/uniwbrk/u8-wordbreaks: New file.
37088         * lib/uniwbrk/u8-wordbreaks.c: New file.
37089         * lib/uniwbrk/u-wordbreaks.h: New file.
37090
37091         New module 'uniwbrk/table'.
37092         * modules/uniwbrk/table: New file.
37093         * lib/uniwbrk/wbrktable.h: New file.
37094         * lib/uniwbrk/wbrktable.c: New file.
37095
37096         New module 'uniwbrk/wordbreak-property'.
37097         * modules/uniwbrk/wordbreak-property: New file.
37098         * lib/uniwbrk/wordbreak-property.c: New file.
37099
37100         * lib/gen-uni-tables.c (WBP_*): New enum items.
37101         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
37102         (unicode_org_wbp): New variable.
37103         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
37104         New functions.
37105         (wbp_table): New structure.
37106         (output_wbp, output_wbrk_tables): New functions.
37107         (main): Accept additional argument. Invoke fill_org_wbp,
37108         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
37109         output_wbrk_tables.
37110         * modules/gen-uni-tables (Description): Update.
37111         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
37112         gen-uni-tables.
37113
37114         New module 'uniwbrk/base'.
37115         * modules/uniwbrk/base: New file.
37116         * lib/uniwbrk.h: New file.
37117
37118 2009-02-08  Bruno Haible  <bruno@clisp.org>
37119
37120         Update to Unicode 5.1.0.
37121         * lib/gen-uni-tables.c (is_property_alphabetic): Include
37122         U+2185..U+2188.
37123         (is_property_default_ignorable_code_point): Don't include characters
37124         of category Cc or Cs and not-a-characters.
37125         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
37126         U+0D79, U+109E, U+109F, U+A60C.
37127         * lib/unictype/bidi_of.h: Regenerated.
37128         * lib/unictype/blocks.h: Regenerated.
37129         * lib/unictype/categ_C.h: Regenerated.
37130         * lib/unictype/categ_Cf.h: Regenerated.
37131         * lib/unictype/categ_Cn.h: Regenerated.
37132         * lib/unictype/categ_L.h: Regenerated.
37133         * lib/unictype/categ_Ll.h: Regenerated.
37134         * lib/unictype/categ_Lm.h: Regenerated.
37135         * lib/unictype/categ_Lo.h: Regenerated.
37136         * lib/unictype/categ_Lu.h: Regenerated.
37137         * lib/unictype/categ_M.h: Regenerated.
37138         * lib/unictype/categ_Mc.h: Regenerated.
37139         * lib/unictype/categ_Me.h: Regenerated.
37140         * lib/unictype/categ_Mn.h: Regenerated.
37141         * lib/unictype/categ_N.h: Regenerated.
37142         * lib/unictype/categ_Nd.h: Regenerated.
37143         * lib/unictype/categ_Nl.h: Regenerated.
37144         * lib/unictype/categ_No.h: Regenerated.
37145         * lib/unictype/categ_P.h: Regenerated.
37146         * lib/unictype/categ_Pd.h: Regenerated.
37147         * lib/unictype/categ_Pe.h: Regenerated.
37148         * lib/unictype/categ_Pf.h: Regenerated.
37149         * lib/unictype/categ_Pi.h: Regenerated.
37150         * lib/unictype/categ_Po.h: Regenerated.
37151         * lib/unictype/categ_Ps.h: Regenerated.
37152         * lib/unictype/categ_S.h: Regenerated.
37153         * lib/unictype/categ_Sk.h: Regenerated.
37154         * lib/unictype/categ_Sm.h: Regenerated.
37155         * lib/unictype/categ_So.h: Regenerated.
37156         * lib/unictype/categ_of.h: Regenerated.
37157         * lib/unictype/combining.h: Regenerated.
37158         * lib/unictype/ctype_alnum.h: Regenerated.
37159         * lib/unictype/ctype_alpha.h: Regenerated.
37160         * lib/unictype/ctype_graph.h: Regenerated.
37161         * lib/unictype/ctype_lower.h: Regenerated.
37162         * lib/unictype/ctype_print.h: Regenerated.
37163         * lib/unictype/ctype_punct.h: Regenerated.
37164         * lib/unictype/ctype_upper.h: Regenerated.
37165         * lib/unictype/decdigit.h: Regenerated.
37166         * lib/unictype/digit.h: Regenerated.
37167         * lib/unictype/mirror.h: Regenerated.
37168         * lib/unictype/numeric.h: Regenerated.
37169         * lib/unictype/pr_alphabetic.h: Regenerated.
37170         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
37171         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
37172         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
37173         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
37174         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
37175         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
37176         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
37177         * lib/unictype/pr_combining.h: Regenerated.
37178         * lib/unictype/pr_dash.h: Regenerated.
37179         * lib/unictype/pr_decimal_digit.h: Regenerated.
37180         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
37181         * lib/unictype/pr_deprecated.h: Regenerated.
37182         * lib/unictype/pr_diacritic.h: Regenerated.
37183         * lib/unictype/pr_extender.h: Regenerated.
37184         * lib/unictype/pr_format_control.h: Regenerated.
37185         * lib/unictype/pr_grapheme_base.h: Regenerated.
37186         * lib/unictype/pr_grapheme_extend.h: Regenerated.
37187         * lib/unictype/pr_grapheme_link.h: Regenerated.
37188         * lib/unictype/pr_id_continue.h: Regenerated.
37189         * lib/unictype/pr_id_start.h: Regenerated.
37190         * lib/unictype/pr_ideographic.h: Regenerated.
37191         * lib/unictype/pr_ignorable_control.h: Regenerated.
37192         * lib/unictype/pr_lowercase.h: Regenerated.
37193         * lib/unictype/pr_math.h: Regenerated.
37194         * lib/unictype/pr_numeric.h: Regenerated.
37195         * lib/unictype/pr_other_alphabetic.h: Regenerated.
37196         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
37197         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
37198         * lib/unictype/pr_other_id_continue.h: Regenerated.
37199         * lib/unictype/pr_other_lowercase.h: Regenerated.
37200         * lib/unictype/pr_other_math.h: Regenerated.
37201         * lib/unictype/pr_punctuation.h: Regenerated.
37202         * lib/unictype/pr_sentence_terminal.h: Regenerated.
37203         * lib/unictype/pr_soft_dotted.h: Regenerated.
37204         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
37205         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
37206         * lib/unictype/pr_unified_ideograph.h: Regenerated.
37207         * lib/unictype/pr_uppercase.h: Regenerated.
37208         * lib/unictype/pr_xid_continue.h: Regenerated.
37209         * lib/unictype/pr_xid_start.h: Regenerated.
37210         * lib/unictype/pr_zero_width.h: Regenerated.
37211         * lib/unictype/scripts.h: Regenerated.
37212         * lib/unictype/scripts_byname.gperf: Regenerated.
37213         * lib/unictype/sy_java_ident.h: Regenerated.
37214         * lib/unilbrk/lbrkprop1.h: Regenerated.
37215         * lib/unilbrk/lbrkprop2.h: Regenerated.
37216         * tests/unictype/test-categ_C.c: Regenerated.
37217         * tests/unictype/test-categ_Cf.c: Regenerated.
37218         * tests/unictype/test-categ_Cn.c: Regenerated.
37219         * tests/unictype/test-categ_L.c: Regenerated.
37220         * tests/unictype/test-categ_Ll.c: Regenerated.
37221         * tests/unictype/test-categ_Lm.c: Regenerated.
37222         * tests/unictype/test-categ_Lo.c: Regenerated.
37223         * tests/unictype/test-categ_Lu.c: Regenerated.
37224         * tests/unictype/test-categ_M.c: Regenerated.
37225         * tests/unictype/test-categ_Mc.c: Regenerated.
37226         * tests/unictype/test-categ_Me.c: Regenerated.
37227         * tests/unictype/test-categ_Mn.c: Regenerated.
37228         * tests/unictype/test-categ_N.c: Regenerated.
37229         * tests/unictype/test-categ_Nd.c: Regenerated.
37230         * tests/unictype/test-categ_Nl.c: Regenerated.
37231         * tests/unictype/test-categ_No.c: Regenerated.
37232         * tests/unictype/test-categ_P.c: Regenerated.
37233         * tests/unictype/test-categ_Pd.c: Regenerated.
37234         * tests/unictype/test-categ_Pe.c: Regenerated.
37235         * tests/unictype/test-categ_Pf.c: Regenerated.
37236         * tests/unictype/test-categ_Pi.c: Regenerated.
37237         * tests/unictype/test-categ_Po.c: Regenerated.
37238         * tests/unictype/test-categ_Ps.c: Regenerated.
37239         * tests/unictype/test-categ_S.c: Regenerated.
37240         * tests/unictype/test-categ_Sk.c: Regenerated.
37241         * tests/unictype/test-categ_Sm.c: Regenerated.
37242         * tests/unictype/test-categ_So.c: Regenerated.
37243         * tests/unictype/test-ctype_alnum.c: Regenerated.
37244         * tests/unictype/test-ctype_alpha.c: Regenerated.
37245         * tests/unictype/test-ctype_graph.c: Regenerated.
37246         * tests/unictype/test-ctype_lower.c: Regenerated.
37247         * tests/unictype/test-ctype_print.c: Regenerated.
37248         * tests/unictype/test-ctype_punct.c: Regenerated.
37249         * tests/unictype/test-ctype_upper.c: Regenerated.
37250         * tests/unictype/test-decdigit.h: Regenerated.
37251         * tests/unictype/test-digit.h: Regenerated.
37252         * tests/unictype/test-numeric.h: Regenerated.
37253         * tests/unictype/test-pr_alphabetic.c: Regenerated.
37254         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
37255         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
37256         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
37257         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
37258         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
37259         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
37260         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
37261         * tests/unictype/test-pr_combining.c: Regenerated.
37262         * tests/unictype/test-pr_dash.c: Regenerated.
37263         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
37264         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
37265         * tests/unictype/test-pr_deprecated.c: Regenerated.
37266         * tests/unictype/test-pr_diacritic.c: Regenerated.
37267         * tests/unictype/test-pr_extender.c: Regenerated.
37268         * tests/unictype/test-pr_format_control.c: Regenerated.
37269         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
37270         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
37271         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
37272         * tests/unictype/test-pr_id_continue.c: Regenerated.
37273         * tests/unictype/test-pr_id_start.c: Regenerated.
37274         * tests/unictype/test-pr_ideographic.c: Regenerated.
37275         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
37276         * tests/unictype/test-pr_lowercase.c: Regenerated.
37277         * tests/unictype/test-pr_math.c: Regenerated.
37278         * tests/unictype/test-pr_numeric.c: Regenerated.
37279         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
37280         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
37281         Regenerated.
37282         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
37283         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
37284         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
37285         * tests/unictype/test-pr_other_math.c: Regenerated.
37286         * tests/unictype/test-pr_punctuation.c: Regenerated.
37287         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
37288         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
37289         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
37290         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
37291         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
37292         * tests/unictype/test-pr_uppercase.c: Regenerated.
37293         * tests/unictype/test-pr_xid_continue.c: Regenerated.
37294         * tests/unictype/test-pr_xid_start.c: Regenerated.
37295         * tests/unictype/test-pr_zero_width.c: Regenerated.
37296
37297         Update to Unicode 5.1.0.
37298         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
37299         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
37300         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
37301         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
37302         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
37303         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
37304         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
37305         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
37306         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
37307         (nonspacing_table_ind): Update.
37308         * tests/uniwidth/test-uc_width2.sh: Update expected result.
37309
37310         Update to Unicode 5.1.0.
37311         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
37312         code transform.
37313         * lib/uniname/uniname.c (unicode_character_name,
37314         unicode_name_character): Add the range 0x1Fxxx to the code transform.
37315         * lib/uniname/uninames.h: Regenerated.
37316         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
37317
37318 2009-02-07  Bruno Haible  <bruno@clisp.org>
37319
37320         Merge gen-ctype and gen-lbrk into a single program.
37321         * lib/gen-uni-tables.c: New file, incorporating
37322         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
37323         Add directory prefixes to the names of the generated files.
37324         * lib/unictype/gen-ctype.c: Remove file.
37325         * lib/unilbrk/gen-lbrk.c: Remove file.
37326         * modules/gen-uni-tables: New file.
37327         * modules/unictype/gen-ctype: Remove file.
37328         * modules/unilbrk/gen-lbrk: Remove file.
37329
37330 2009-02-07  Bruno Haible  <bruno@clisp.org>
37331
37332         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
37333
37334         New module 'unistr/u32-strcoll'.
37335         * modules/unistr/u32-strcoll: New file.
37336         * lib/unistr/u32-strcoll.c: New file.
37337
37338         New module 'unistr/u16-strcoll'.
37339         * modules/unistr/u16-strcoll: New file.
37340         * lib/unistr/u16-strcoll.c: New file.
37341
37342         New module 'unistr/u8-strcoll'.
37343         * modules/unistr/u8-strcoll: New file.
37344         * lib/unistr/u8-strcoll.c: New file.
37345         * lib/unistr/u-strcoll.h: New file.
37346
37347 2009-02-07  Bruno Haible  <bruno@clisp.org>
37348
37349         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
37350         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
37351         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
37352         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
37353         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
37354         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
37355
37356 2009-02-07  Bruno Haible  <bruno@clisp.org>
37357
37358         Make 64-bit clean.
37359         * lib/unictype/gen-ctype.c (output_predicate, output_category,
37360         output_combclass, output_bidi_category, output_decimal_digit,
37361         output_digit, output_numeric, output_mirror, output_scripts,
37362         output_ident_category): Use proper width specifier in format strings.
37363
37364 2009-02-07  Bruno Haible  <bruno@clisp.org>
37365
37366         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
37367         failure behaviour.
37368
37369 2009-02-07  Jim Meyering  <meyering@redhat.com>
37370
37371         regex: avoid compilation failure with upcoming gcc-4.4
37372         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
37373         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
37374         "... error: integer overflow in preprocessor expression".
37375
37376 2009-02-05  Ben Pfaff  <blp@gnu.org>
37377
37378         Fix link errors on Windows when close module is used.
37379         * modules/close: Add $(LIB_CLOSE) to Link section.
37380         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
37381         $(LIB_CLOSE) on Windows.
37382
37383 2009-02-05  Jim Meyering  <meyering@redhat.com>
37384
37385         still avoid unused-parameter warnings, but do it cleanly
37386         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
37387         (get_fs_usage): Cast to void instead.
37388         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
37389         (dev_from_mount_options, read_file_system_list): Cast to void.
37390         Prompted by Bruno Haible.
37391
37392 2009-02-04  Jim Meyering  <meyering@redhat.com>
37393
37394         fsusage.c: correct copyright year
37395         * lib/fsusage.c: Reflect year in which the change is pushed into
37396
37397         avoid misc. warnings
37398         * lib/fsusage.c (UNUSED_PARAM): Define.
37399         (get_fs_usage): Mark parameter "disk" as unused.
37400         * lib/getugroups.c (getgrent): Use "void" in prototype.
37401         * lib/mountlist.c: Mark unused parameters.
37402         (read_file_system_list): Declare a local with "const".
37403         * lib/nanosleep.c (getnow): Declare static.
37404         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
37405
37406         dirfd: set errno upon failure
37407         * lib/dirfd.c: Include <errno.h>.
37408         Set errno to ENOTSUP when returning -1.
37409         * modules/dirfd (Depends-on): Add errno.
37410         Suggested by John Kodis <kodis@comcast.net>.
37411
37412 2009-02-01  Bruno Haible  <bruno@clisp.org>
37413
37414         Don't assume sizeof (long) >= sizeof (void *).
37415         * lib/memcmp.c: Include stdint.h.
37416         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
37417         srcp2 to 'const byte *'.
37418         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
37419         types to uintptr_t.
37420         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
37421         * modules/memcmp (Depends-on): Add stdint.
37422         Reported by Ozkan Sezer <sezeroz@gmail.com>.
37423
37424 2009-01-30  Eric Blake  <ebb9@byu.net>
37425
37426         fix more require-before-expand issues
37427         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
37428         expand, AC_PROG_AWK.
37429         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
37430
37431 2009-01-28  Eric Blake  <ebb9@byu.net>
37432
37433         version-etc: use consistent URL formatting
37434         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
37435         Improve formatting.  Use fputs for string without %.
37436
37437 2009-01-28  Jim Meyering  <meyering@redhat.com>
37438
37439         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
37440         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
37441         "underquoted definition of NAME" from autoconf-2.59.
37442
37443 2009-01-28  Bruno Haible  <bruno@clisp.org>
37444
37445         * doc/gnulib.texi: Add "Obsolete modules" to index.
37446
37447 2009-01-28  Jim Meyering  <meyering@redhat.com>
37448
37449         useless-if-before-free: recognize more variants
37450         * build-aux/useless-if-before-free: Also recognize e.g.,
37451         if (NULL != p) free (p);
37452
37453 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
37454
37455         test-getaddrinfo: skip (don't fail) this test when there's no network
37456         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
37457         on the presumption that it means you lack network access.
37458
37459 2009-01-26  Jim Meyering  <meyering@redhat.com>
37460
37461         fflush: avoid warnings on modern systems
37462         * lib/fflush.c (rpl_fflush): Move declarations of locals,
37463         pos and result, into scopes where they're used.
37464
37465 2009-01-26  Eric Blake  <ebb9@byu.net>
37466
37467         Silence warning reintroduced by recent extensions patch.
37468         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
37469         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
37470         autoconf.
37471
37472         Backport improved autoconf semantics of AC_DEFUN_ONCE.
37473         * m4/00gnulib.m4: New file.
37474         * gnulib-tool (func_get_filelist): Always use it.
37475         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
37476         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
37477
37478 2009-01-25  Bruno Haible  <bruno@clisp.org>
37479
37480         Make test-quotearg work on MacOS X and AIX.
37481         * tests/test-quotearg.sh: New file.
37482         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
37483         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
37484         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
37485         include <libintl.h>.
37486         (fake_locale): Remove variable.
37487         (gettext, dgettext, dcgettext): Remove functions.
37488         (main): Instead of setting a fake locale, set a real locale. Call
37489         textdomain and bindtextdomain.
37490         * modules/quotearg-tests (Files): Add the new files.
37491         (Depends-on): Add gettext, setenv, unsetenv.
37492         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
37493         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
37494         Augment TESTS_ENVIRONMENT.
37495
37496 2009-01-25  Bruno Haible  <bruno@clisp.org>
37497
37498         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
37499         fr_FR.ISO8859-1 locale on MacOS X.
37500         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
37501         ja_JP.eucJP locale on MacOS X.
37502         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
37503         zh_CN.GB18030 locale on MacOS X.
37504
37505 2009-01-25  Bruno Haible  <bruno@clisp.org>
37506
37507         Avoid link errors on MacOS X 10.3.
37508         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
37509         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
37510
37511 2009-01-25  Bruno Haible  <bruno@clisp.org>
37512
37513         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
37514         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
37515         * modules/pipe (Files): Remove m4/posix_spawn.m4.
37516         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
37517         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
37518         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
37519         posix_spawnattr_init, posix_spawnattr_setsigmask,
37520         posix_spawnattr_setflags, posix_spawnattr_destroy.
37521
37522         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
37523         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
37524         * modules/execute (Files): Remove m4/posix_spawn.m4.
37525         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
37526         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
37527         posix_spawnattr_init, posix_spawnattr_setsigmask,
37528         posix_spawnattr_setflags, posix_spawnattr_destroy.
37529
37530 2009-01-25  Bruno Haible  <bruno@clisp.org>
37531
37532         * lib/glthread/threadlib.c: Include <stdlib.h>.
37533
37534 2009-01-25  Bruno Haible  <bruno@clisp.org>
37535
37536         * lib/glthread/threadlib.c (dummy): New declaration.
37537
37538 2009-01-25  Bruno Haible  <bruno@clisp.org>
37539
37540         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
37541         multibyte characters also for the GB18030 encoding. Don't crash when
37542         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
37543
37544 2009-01-25  Bruno Haible  <bruno@clisp.org>
37545
37546         Avoid redefining 'struct random_data' on OSF/1 5.1.
37547         * lib/stdlib.in.h: Include <random.h> if it exists.
37548         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
37549         HAVE_RANDOM_H. Include <random.h> when testing whether
37550         'struct random_data' exists.
37551         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
37552
37553 2009-01-25  Bruno Haible  <bruno@clisp.org>
37554
37555         Don't install charset.alias on MacOS X >= 10.3.
37556         * lib/localcharset.c (DARWIN7): New macro.
37557         (get_charset_aliases): Hardcode the result for Darwin7.
37558         * modules/localcharset (install-exec-local): Don't install
37559         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
37560
37561 2009-01-25  Bruno Haible  <bruno@clisp.org>
37562
37563         Don't install charset.alias on mingw and Cygwin.
37564         * modules/localcharset (install-exec-local): Don't install
37565         charset.alias on mingw and Cygwin, if the file does not yet exist.
37566         The result for these platforms is hardcoded in localcharset.c.
37567
37568 2009-01-25  Bruno Haible  <bruno@clisp.org>
37569
37570         Make it possible again to use AC_GNU_SOURCE together with gnulib.
37571         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
37572         before requiring AC_USE_SYSTEM_EXTENSIONS.
37573
37574 2009-01-25  Jim Meyering  <meyering@redhat.com>
37575
37576         c-strtod: avoid warnings
37577         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
37578         "assignment discards qualifiers from pointer target type" warnings.
37579
37580 2009-01-24  Bruno Haible  <bruno@clisp.org>
37581
37582         Add support for non-UTF-8 locales on MacOS X.
37583         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
37584         canonical encodings. For Darwin 7 and newer, don't map traditional
37585         encodings to UTF-8.
37586         Reported by Vincent Lefevre <vincent@vinc17.org>
37587         at <http://savannah.gnu.org/bugs/?25235>.
37588
37589 2009-01-24  Bruno Haible  <bruno@clisp.org>
37590
37591         * doc/gnulib.texi (Obsolete modules): New section.
37592         Reported by Mike Frysinger <vapier@gentoo.org>.
37593
37594 2009-01-24  Bruno Haible  <bruno@clisp.org>
37595
37596         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
37597         (%.dvi): New rule.
37598
37599 2009-01-24  Bruno Haible  <bruno@clisp.org>
37600
37601         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
37602         Reported by Eric Blake.
37603
37604 2009-01-24  Bruno Haible  <bruno@clisp.org>
37605
37606         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
37607         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
37608         Reported by Gary V. Vaughan <gary@gnu.org>.
37609
37610 2009-01-24  Bruno Haible  <bruno@clisp.org>
37611
37612         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
37613
37614 2009-01-23  Bruno Haible  <bruno@clisp.org>
37615
37616         Make c-strtod, c-strtold usable in libraries.
37617         * lib/c-strtod.c: Include string.h instead of xalloc.h.
37618         (C_STRTOD): Call strdup instead of xstrdup.
37619         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
37620         * modules/c-strtold (Depends-on): Likewise.
37621         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
37622         * NEWS: Mention the change.
37623         Reported by Michael Gold <mgold@ncf.ca>.
37624
37625 2009-01-23  Jim Meyering  <meyering@redhat.com>
37626
37627         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
37628         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
37629         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
37630
37631 2009-01-23  Simon Josefsson  <simon@josefsson.org>
37632
37633         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
37634         GNU CoreUtils.
37635         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
37636         * modules/version-etc (Description): Update.
37637
37638 2009-01-22  Bruno Haible  <bruno@clisp.org>
37639
37640         Cache the C locale object.
37641         * lib/c-strtod.c (c_locale_cache): New variable.
37642         (c_locale): New function.
37643         (C_STRTOD): Use it, and don't call freelocale.
37644         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
37645         Suggested by Paolo Bonzini.
37646
37647 2009-01-21  Bruno Haible  <bruno@clisp.org>
37648
37649         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
37650         conditions other than overflow.
37651
37652 2009-01-21  Bruno Haible  <bruno@clisp.org>
37653
37654         * lib/c-strtod.c: Include errno.h.
37655         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
37656         value from STRTOD_L and STRTOD.
37657
37658 2009-01-21  Bruno Haible  <bruno@clisp.org>
37659         and Jim Meyering  <meyering@redhat.com>
37660
37661         nanosleep: skip configure test (fail it) for apple universal builds
37662         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
37663         universal builds, assume that nanosleep does not work.
37664         * modules/nanosleep (Depends-on): Add multiarch.
37665
37666         mktime: skip configure test (fail it) for apple universal builds
37667         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
37668         universal builds, assume that mktime does not work.
37669         * modules/mktime (Depends-on): Add multiarch.
37670
37671 2009-01-21  Eric Blake  <ebb9@byu.net>
37672
37673         multiarch: avoid expand-before-require warning
37674         * modules/multiarch (configure.ac): Require, rather than expand,
37675         gl_MULTIARCH.
37676         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
37677         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
37678         enforce that all clients require it.  Partial reversion of
37679         2008-12-29 patch.
37680
37681         error: avoid expand-before-require warning
37682         * modules/errno (configure.ac): Require, rather than expand,
37683         gl_HEADER_ERRNO_H.
37684         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
37685         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
37686         enforce that all clients require it.
37687
37688         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
37689         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
37690         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
37691         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
37692
37693 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
37694
37695         Revert:
37696         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
37697
37698         regex: do not depend on obsolete modules.
37699         * modules/regex: Remove memcmp and memmove.
37700
37701 2009-01-20  Bruno Haible  <bruno@clisp.org>
37702
37703         Make the 'link' module link on Windows NT 4.
37704         * lib/link.c (_WIN32_WINNT): Don't define.
37705         (CreateHardLinkFuncType): New type.
37706         (CreateHardLinkFunc, initialized): New variables.
37707         (initialize): New function.
37708         (link): Invoke CreateHardLink indirectly through the function pointer.
37709
37710 2009-01-20  Bruno Haible  <bruno@clisp.org>
37711
37712         Fix compilation failure on mingw.
37713         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
37714
37715 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
37716
37717         * doc/c-strtod.texi: Mention a couple of restrictions.
37718
37719 2009-01-20  Jim Meyering  <meyering@redhat.com>
37720
37721         gettimeofday: move more declarations out of functions
37722         * lib/gettimeofday.c: Move extern declarations of tzset and
37723         gmtime out of containing functions.  Prompted by Bruno Haible.
37724
37725 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
37726
37727         regex: do not depend on obsolete modules.
37728         * modules/regex: Remove memcmp and memmove.
37729
37730 2009-01-19  Bruno Haible  <bruno@clisp.org>
37731
37732         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
37733         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
37734         gl_BIGENDIAN, not AC_C_BIGENDIAN.
37735         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
37736         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
37737
37738 2009-01-19  Bruno Haible  <bruno@clisp.org>
37739
37740         * tests/test-link.c: Include <errno.h>.
37741         (main): Exit with code 77 when a hard link cannot be created due to
37742         the file system.
37743         * tests/test-link.sh: Skip test when a hard link cannot be created due
37744         to the file system.
37745         Suggested by Eric Blake.
37746
37747 2009-01-19  Martin Lambers  <marlam@marlam.de>
37748
37749         * modules/link-tests: New file.
37750         * tests/test-link.sh: New file.
37751         * tests/test-link.c: New file.
37752
37753 2009-01-19  Eric Blake  <ebb9@byu.net>
37754
37755         doc: mention another function added in cygwin 1.7.0
37756         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
37757         Another new function in cygwin 1.7.
37758
37759 2009-01-19  Bruno Haible  <bruno@clisp.org>
37760
37761         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
37762         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
37763         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
37764         gl_BIGENDIAN, not AC_C_BIGENDIAN.
37765         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
37766         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
37767         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
37768         * m4/md4.m4 (gl_MD4): Likewise.
37769         * m4/md5.m4 (gl_MD5): Likewise.
37770         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
37771         * m4/sha1.m4 (gl_SHA1): Likewise.
37772         * m4/sha256.m4 (gl_SHA256): Likewise.
37773         * m4/sha512.m4 (gl_SHA512): Likewise.
37774
37775 2009-01-19  Bruno Haible  <bruno@clisp.org>
37776
37777         * modules/uniname/uniname-tests (Depends-on): Add progname.
37778         * tests/uniname/test-uninames.c: Include progname.h.
37779         (main): Call set_program_name.
37780
37781         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
37782         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
37783         (main): Call set_program_name.
37784
37785         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
37786         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
37787         (main): Call set_program_name.
37788
37789         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
37790         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
37791         (main): Call set_program_name.
37792
37793         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
37794         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
37795         (main): Call set_program_name.
37796
37797         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
37798         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
37799         (main): Call set_program_name.
37800
37801         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
37802         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
37803         (main): Call set_program_name.
37804
37805         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
37806         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
37807         (main): Call set_program_name.
37808
37809         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
37810         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
37811         (main): Call set_program_name.
37812
37813 2009-01-19  Eric Blake  <ebb9@byu.net>
37814
37815         test-unistd: test previous patch
37816         * tests/test-unistd.c: Test *_FILENO macros.
37817
37818         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
37819         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
37820         Guarantee a definition.
37821         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
37822         * modules/unistd-safer (Depends-on): Add dependency on unistd.
37823         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
37824         * lib/dup-safer.c (STDERR_FILENO): Likewise.
37825         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
37826         Likewise.
37827         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
37828         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
37829         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
37830         Likewise.
37831         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
37832         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
37833         (STDERR_FILENO): Likewise.
37834         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
37835         (STDERR_FILENO): Likewise.
37836         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
37837         (STDERR_FILENO): Likewise.
37838         Reported by Elbert Pol.
37839
37840 2009-01-19  Eric Blake  <ebb9@byu.net>
37841
37842         doc: mention more functions added in cygwin 1.7.0
37843         * doc/posix-functions/abort.texi (abort): Update wording related
37844         to cygwin.
37845         * doc/posix-functions/daylight.texi (daylight): Likewise.
37846         * doc/posix-functions/optarg.texi (optarg): Likewise.
37847         * doc/posix-functions/optarg.texi (opterr): Likewise.
37848         * doc/posix-functions/optarg.texi (optind): Likewise.
37849         * doc/posix-functions/optarg.texi (optopt): Likewise.
37850         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
37851         worked in 1.5.x, and was withdrawn in 1.7.
37852         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
37853         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
37854         cygwin versions.
37855         * doc/posix-functions/perror.texi (perror): Likewise.
37856         * doc/posix-functions/printf.texi (printf): Likewise.
37857         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
37858         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
37859         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
37860         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
37861         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
37862         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
37863         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
37864         Likewise.
37865         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
37866         Likewise.
37867         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
37868         this function.
37869         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
37870         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
37871         Likewise.
37872         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
37873         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
37874         * doc/posix-functions/confstr.texi (confstr): Likewise.
37875         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
37876         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
37877         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
37878         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
37879         * doc/posix-functions/fputws.texi (fputws): Likewise.
37880         * doc/posix-functions/fwide.texi (fwide): Likewise.
37881         * doc/posix-functions/getwc.texi (getwc): Likewise.
37882         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
37883         * doc/posix-functions/putwc.texi (putwc): Likewise.
37884         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
37885         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
37886         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
37887         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
37888         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
37889         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
37890         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
37891         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
37892         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
37893         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
37894         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
37895
37896 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
37897
37898         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
37899         * lib/ioctl.c: Include <sys/ioctl.h>.
37900
37901 2009-01-19  Simon Josefsson  <simon@josefsson.org>
37902
37903         * modules/getdate-tests (Depends-on): Add progname.
37904         * tests/test-getdate.c: Use progname module, to avoid link errors
37905         on non-glibc systems.
37906
37907 2009-01-18  Simon Josefsson  <simon@josefsson.org>
37908
37909         * modules/filenamecat-tests (Depends-on): Add progname.
37910         * modules/fstrcmp-tests (Depends-on): Likewise.
37911
37912         * tests/test-filenamecat.c: Use progname module, to avoid link
37913         errors on non-glibc systems.
37914         * tests/test-fstrcmp.c: Likewise.
37915
37916 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
37917
37918         gettimeofday: avoid warning: nested extern declaration of 'localtime'
37919         * lib/gettimeofday.c: Move extern declaration out of function.
37920
37921 2009-01-18  Bruno Haible  <bruno@clisp.org>
37922
37923         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
37924         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
37925         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
37926
37927 2009-01-18  Bruno Haible  <bruno@clisp.org>
37928
37929         * lib/strftime.c (MEMPCPY): Remove unused macro.
37930         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
37931
37932 2009-01-18  Martin Lambers  <marlam@marlam.de>
37933
37934         New module 'link'.
37935         * lib/unistd.in.h (link): New declaration.
37936         * lib/link.c: New file.
37937         * m4/link.m4: New file.
37938         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
37939         HAVE_LINK.
37940         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
37941         * modules/link: New file.
37942         * doc/posix-functions/link.texi: Mention the new module.
37943
37944 2009-01-18  Bruno Haible  <bruno@clisp.org>
37945
37946         * tests/test-avltree_list.c (main): Call set_program_name.
37947         * tests/test-avltree_oset.c (main): Likewise.
37948         * tests/test-obstack-printf.c: Include progname.h.
37949         (main): Call set_program_name.
37950         * tests/test-quotearg.c: Include progname.h.
37951         (main): Call set_program_name.
37952         * tests/test-xmemdup0.c: Include progname.h.
37953         (main): Call set_program_name.
37954
37955 2009-01-18  Bruno Haible  <bruno@clisp.org>
37956
37957         New module 'alphasort'.
37958         * lib/dirent.in.h (alphasort): New declaration.
37959         * lib/alphasort.c: New file, from glibc with modifications.
37960         * m4/alphasort.m4: New file.
37961         * modules/alphasort: New file.
37962         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
37963         HAVE_ALPHASORT.
37964         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
37965         HAVE_ALPHASORT.
37966         * doc/posix-functions/alphasort.texi: Mention the new module and the
37967         portability problems.
37968
37969 2009-01-18  Bruno Haible  <bruno@clisp.org>
37970
37971         New module 'scandir'.
37972         * lib/dirent.in.h (scandir): New declaration.
37973         * lib/scandir.c: New file, from glibc with modifications.
37974         * m4/scandir.m4: New file.
37975         * modules/scandir: New file.
37976         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
37977         HAVE_SCANDIR.
37978         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
37979         HAVE_SCANDIR.
37980         * doc/posix-functions/scandir.texi: Mention the new module and the
37981         portability problems.
37982
37983 2009-01-17  Bruno Haible  <bruno@clisp.org>
37984
37985         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
37986         Update documentation.
37987         (func_remove_suffix): Escape all dots in the suffix. Update
37988         documentation.
37989         (func_filter_filelist): Update documentation.
37990         Reported by Ralf Wildenhues.
37991
37992 2009-01-17  Bruno Haible  <bruno@clisp.org>
37993
37994         * modules/dprintf-posix-tests: New file.
37995         * tests/test-dprintf-posix.sh: New file.
37996         * tests/test-dprintf-posix.c: New file.
37997
37998         New modules 'dprintf', 'dprintf-posix'.
37999         * lib/stdio.in.h (dprintf): New declaration.
38000         * lib/dprintf.c: New file.
38001         * m4/dprintf.m4: New file.
38002         * m4/dprintf-posix.m4: New file.
38003         * modules/dprintf: New file.
38004         * modules/dprintf-posix: New file.
38005         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
38006         HAVE_DPRINTF, REPLACE_DPRINTF.
38007         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
38008         HAVE_DPRINTF, REPLACE_DPRINTF.
38009         * doc/posix-functions/dprintf.texi: Mention the new modules.
38010
38011 2009-01-17  Bruno Haible  <bruno@clisp.org>
38012
38013         * modules/vdprintf-posix-tests: New file.
38014         * tests/test-vdprintf-posix.sh: New file.
38015         * tests/test-vdprintf-posix.c: New file.
38016
38017         New modules 'vdprintf', 'vdprintf-posix'.
38018         * lib/stdio.in.h (vdprintf): New declaration.
38019         * lib/vdprintf.c: New file.
38020         * m4/vdprintf.m4: New file.
38021         * m4/vdprintf-posix.m4: New file.
38022         * modules/vdprintf: New file.
38023         * modules/vdprintf-posix: New file.
38024         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
38025         HAVE_VDPRINTF, REPLACE_VDPRINTF.
38026         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
38027         HAVE_VDPRINTF, REPLACE_VDPRINTF.
38028         * doc/posix-functions/vdprintf.texi: Mention the new modules.
38029
38030 2009-01-17  Bruno Haible  <bruno@clisp.org>
38031
38032         Fix replacement of fopen on mingw.
38033         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
38034         mingw.
38035
38036 2009-01-17  Bruno Haible  <bruno@clisp.org>
38037
38038         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
38039         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
38040
38041 2009-01-17  Bruno Haible  <bruno@clisp.org>
38042
38043         Avoid test-fflush2.sh failure on mingw.
38044         * tests/test-fflush2.c: Include binary-io.h.
38045         (main): Put standard input into binary mode.
38046         * modules/fflush-tests (Depends-on): Add binary-io.
38047
38048 2009-01-17  Bruno Haible  <bruno@clisp.org>
38049
38050         * lib/wchar.in.h: In another particular situation, include only the
38051         system's <wchar.h> file.
38052         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
38053         Reported by Albert Chin-A-Young <china@thewrittenword.com>
38054         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
38055
38056 2009-01-17  Bruno Haible  <bruno@clisp.org>
38057
38058         Support for stripping executables in --enable-relocatable.
38059         * build-aux/install-reloc: Expect one more argument, or an environment
38060         variable RELOC_STRIP_PROG. If set, strip the destination program and
38061         its wrapper.
38062         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
38063         RELOC_STRIP_PROG.
38064         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
38065         to set RELOCATABLE_STRIP.
38066         * NEWS: Mention the new Makefile requirement.
38067
38068 2009-01-17  Bruno Haible  <bruno@clisp.org>
38069
38070         * build-aux/install-reloc: Remove debugging information left over by
38071         C compiler on MacOS X.
38072
38073 2009-01-17  Bruno Haible  <bruno@clisp.org>
38074
38075         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
38076         * lib/progreloc.c (find_executable): Fix type of pointer passed to
38077         _NSGetExecutablePath.
38078
38079 2009-01-16  Jim Meyering  <meyering@redhat.com>
38080
38081         strerror: avoid warnings about discarding "const"
38082         * lib/strerror.c (rpl_strerror): Instead of returning a const
38083         string from each and every "case", use a variable, and add a single
38084         cast after the switch.
38085
38086 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
38087
38088         * lib/arpa_inet.in.h: Add extern "C" block for C++.
38089
38090 2009-01-16  Bruno Haible  <bruno@clisp.org>
38091
38092         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
38093         array initializer syntax that also works in C++ mode.
38094         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
38095
38096 2009-01-16  Jim Meyering  <meyering@redhat.com>
38097
38098         poll: suppress a warning
38099         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
38100         to ignore "...unsigned expression < 0 is always false" warnings.
38101
38102 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
38103
38104         poll: remove declarations of unused variables
38105         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
38106         sockbuf and optlen.
38107
38108 2009-01-15  Bruno Haible  <bruno@clisp.org>
38109
38110         Make fflush-after-ungetc POSIX compliant on BSD systems.
38111         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
38112         (clear_ungetc_buffer): Implement also for other systems.
38113         (rpl_fflush): On glibc systems, invoke
38114         clear_ungetc_buffer_preserving_position. Otherwise, invoke
38115         clear_ungetc_buffer after fetching the stream's position, not before.
38116
38117 2009-01-15  Bruno Haible  <bruno@clisp.org>
38118
38119         Make fflush-after-ungetc POSIX compliant on glibc systems.
38120         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
38121         after ungetc.
38122         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
38123         (rpl_fflush): On glibc systems, simply call the system's fflush
38124         function after clearing the ungetc buffer.
38125         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
38126         Instead, lseek only to the end of file, then use the system's fseeko
38127         for the rest. On glibc systems, reset the EOF indicator bit.
38128
38129 2009-01-15  Jim Meyering  <meyering@redhat.com>
38130
38131         openmp.m4: revert quote-adding change, for portability to older autoconf
38132         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
38133         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
38134         Simon Josefsson noticed the problem when using autoconf-2.61.
38135
38136 2009-01-15  Bruno Haible  <bruno@clisp.org>
38137
38138         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
38139         * tests/test-fflush2.c (ASSERT): Always fail.
38140         (main): Add two tests for fflush() after ungetc(), taking into account
38141         the Austin Group's clarification.
38142         Suggested by Eric Blake.
38143
38144 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
38145
38146         mktime.m4: remove K&R-style function prototypes
38147         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
38148         for the Sun C++ compiler.
38149
38150 2009-01-14  Bruno Haible  <bruno@clisp.org>
38151
38152         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
38153         while including <wchar.h>.
38154         * lib/wchar.in.h: In two particular situations on HP-UX, include only
38155         the system's <wchar.h> file.
38156         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
38157
38158 2009-01-14  Bruno Haible  <bruno@clisp.org>
38159
38160         * m4/csharp.m4: Don't mention gettext on the serial number line.
38161         * m4/csharpexec.m4: Likewise.
38162         * m4/eaccess.m4: Likewise.
38163         * m4/javaexec.m4: Likewise.
38164         * m4/sig_atomic_t.m4: Likewise.
38165         * m4/tmpdir.m4: Likewise.
38166         * m4/intldir.m4: Bump gettext version.
38167         * m4/lib-ld.m4: Likewise.
38168
38169 2009-01-14  Bruno Haible  <bruno@clisp.org>
38170
38171         * lib/progname.c (set_program_name): Add more comments.
38172         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
38173
38174 2009-01-14  Simon Josefsson  <simon@josefsson.org>
38175
38176         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
38177         were sys/stat.h does not define it.
38178
38179 2009-01-14  Jim Meyering  <meyering@redhat.com>
38180
38181         many *.m4 files: improve m4 quoting
38182         99% of this change was performed by running the following commands:
38183         git ls-files | grep '\.m4$' | xargs perl -pi \
38184           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
38185           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
38186           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
38187           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
38188         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
38189         The remainder were to add Copyright dates, increment serial numbers,
38190         undo some changes in comments, exclude m4/intl.m4, and add quotes
38191         around the "1" in ",1" where the unusual spacing prohibited the
38192         above regexps from doing the job.  For more details, see
38193         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
38194         * m4/acl.m4: Modified.
38195         * m4/afs.m4: Likewise.
38196         * m4/alloca.m4: Likewise.
38197         * m4/argp.m4: Likewise.
38198         * m4/argz.m4: Likewise.
38199         * m4/atexit.m4: Likewise.
38200         * m4/bison-i18n.m4: Likewise.
38201         * m4/bison.m4: Likewise.
38202         * m4/byteswap.m4: Likewise.
38203         * m4/c-stack.m4: Likewise.
38204         * m4/c-strtod.m4: Likewise.
38205         * m4/calloc.m4: Likewise.
38206         * m4/canonicalize-lgpl.m4: Likewise.
38207         * m4/chown.m4: Likewise.
38208         * m4/clock_time.m4: Likewise.
38209         * m4/codeset.m4: Likewise.
38210         * m4/copy-file.m4: Likewise.
38211         * m4/csharp.m4: Likewise.
38212         * m4/csharpcomp.m4: Likewise.
38213         * m4/csharpexec.m4: Likewise.
38214         * m4/d-ino.m4: Likewise.
38215         * m4/d-type.m4: Likewise.
38216         * m4/dirfd.m4: Likewise.
38217         * m4/double-slash-root.m4: Likewise.
38218         * m4/eaccess.m4: Likewise.
38219         * m4/eealloc.m4: Likewise.
38220         * m4/environ.m4: Likewise.
38221         * m4/errno_h.m4: Likewise.
38222         * m4/euidaccess.m4: Likewise.
38223         * m4/execute.m4: Likewise.
38224         * m4/fatal-signal.m4: Likewise.
38225         * m4/fchdir.m4: Likewise.
38226         * m4/fcntl_h.m4: Likewise.
38227         * m4/fileblocks.m4: Likewise.
38228         * m4/filenamecat.m4: Likewise.
38229         * m4/findprog.m4: Likewise.
38230         * m4/flexmember.m4: Likewise.
38231         * m4/fnmatch.m4: Likewise.
38232         * m4/fopen.m4: Likewise.
38233         * m4/fpending.m4: Likewise.
38234         * m4/fprintf-posix.m4: Likewise.
38235         * m4/free.m4: Likewise.
38236         * m4/frexp.m4: Likewise.
38237         * m4/frexpl.m4: Likewise.
38238         * m4/fsusage.m4: Likewise.
38239         * m4/ftruncate.m4: Likewise.
38240         * m4/gc-camellia.m4: Likewise.
38241         * m4/gc-random.m4: Likewise.
38242         * m4/gc.m4: Likewise.
38243         * m4/getaddrinfo.m4: Likewise.
38244         * m4/getcwd-abort-bug.m4: Likewise.
38245         * m4/getcwd-path-max.m4: Likewise.
38246         * m4/getdate.m4: Likewise.
38247         * m4/getdomainname.m4: Likewise.
38248         * m4/getgroups.m4: Likewise.
38249         * m4/gethostname.m4: Likewise.
38250         * m4/gethrxtime.m4: Likewise.
38251         * m4/getline.m4: Likewise.
38252         * m4/getloadavg.m4: Likewise.
38253         * m4/getndelim2.m4: Likewise.
38254         * m4/getpass.m4: Likewise.
38255         * m4/gettext.m4: Likewise.
38256         * m4/gettime.m4: Likewise.
38257         * m4/gettimeofday.m4: Likewise.
38258         * m4/gnulib-common.m4: Likewise.
38259         * m4/group-member.m4: Likewise.
38260         * m4/host-os.m4: Likewise.
38261         * m4/iconv.m4: Likewise.
38262         * m4/iconv_open.m4: Likewise.
38263         * m4/inet_ntop.m4: Likewise.
38264         * m4/inet_pton.m4: Likewise.
38265         * m4/inline.m4: Likewise.
38266         * m4/intldir.m4: Likewise.
38267         * m4/intlmacosx.m4: Likewise.
38268         * m4/intmax.m4: Likewise.
38269         * m4/intmax_t.m4: Likewise.
38270         * m4/inttypes.m4: Likewise.
38271         * m4/inttypes_h.m4: Likewise.
38272         * m4/inttypes-pri.m4: Likewise.
38273         * m4/isapipe.m4: Likewise.
38274         * m4/isnand.m4: Likewise.
38275         * m4/isnanf.m4: Likewise.
38276         * m4/isnanl.m4: Likewise.
38277         * m4/javacomp.m4: Likewise.
38278         * m4/javaexec.m4: Likewise.
38279         * m4/jm-winsz1.m4: Likewise.
38280         * m4/jm-winsz2.m4: Likewise.
38281         * m4/lchown.m4: Likewise.
38282         * m4/lcmessage.m4: Likewise.
38283         * m4/ldexpl.m4: Likewise.
38284         * m4/lib-ld.m4: Likewise.
38285         * m4/lib-link.m4: Likewise.
38286         * m4/libsigsegv.m4: Likewise.
38287         * m4/link-follow.m4: Likewise.
38288         * m4/localcharset.m4: Likewise.
38289         * m4/locale-fr.m4: Likewise.
38290         * m4/locale-ja.m4: Likewise.
38291         * m4/locale-tr.m4: Likewise.
38292         * m4/locale-zh.m4: Likewise.
38293         * m4/lock.m4: Likewise.
38294         * m4/longlong.m4: Likewise.
38295         * m4/ls-mntd-fs.m4: Likewise.
38296         * m4/lstat.m4: Likewise.
38297         * m4/malloc.m4: Likewise.
38298         * m4/mathl.m4: Likewise.
38299         * m4/mbrtowc.m4: Likewise.
38300         * m4/mbstate_t.m4: Likewise.
38301         * m4/mbswidth.m4: Likewise.
38302         * m4/memchr.m4: Likewise.
38303         * m4/memcmp.m4: Likewise.
38304         * m4/memcpy.m4: Likewise.
38305         * m4/memmem.m4: Likewise.
38306         * m4/memmove.m4: Likewise.
38307         * m4/mempcpy.m4: Likewise.
38308         * m4/memrchr.m4: Likewise.
38309         * m4/memset.m4: Likewise.
38310         * m4/minmax.m4: Likewise.
38311         * m4/mkdir-slash.m4: Likewise.
38312         * m4/mkdtemp.m4: Likewise.
38313         * m4/mktime.m4: Likewise.
38314         * m4/mmap-anon.m4: Likewise.
38315         * m4/mountlist.m4: Likewise.
38316         * m4/nanosleep.m4: Likewise.
38317         * m4/nls.m4: Likewise.
38318         * m4/nocrash.m4: Likewise.
38319         * m4/open.m4: Likewise.
38320         * m4/openat.m4: Likewise.
38321         * m4/openmp.m4: Likewise.
38322         * m4/pathmax.m4: Likewise.
38323         * m4/perl.m4: Likewise.
38324         * m4/physmem.m4: Likewise.
38325         * m4/pipe.m4: Likewise.
38326         * m4/po.m4: Likewise.
38327         * m4/poll.m4: Likewise.
38328         * m4/posixtm.m4: Likewise.
38329         * m4/posixver.m4: Likewise.
38330         * m4/printf-frexp.m4: Likewise.
38331         * m4/printf-frexpl.m4: Likewise.
38332         * m4/printf-posix.m4: Likewise.
38333         * m4/printf-posix-rpl.m4: Likewise.
38334         * m4/printf.m4: Likewise.
38335         * m4/progtest.m4: Likewise.
38336         * m4/putenv.m4: Likewise.
38337         * m4/readline.m4: Likewise.
38338         * m4/readlink.m4: Likewise.
38339         * m4/readutmp.m4: Likewise.
38340         * m4/realloc.m4: Likewise.
38341         * m4/regex.m4: Likewise.
38342         * m4/relocatable.m4: Likewise.
38343         * m4/relocatable-lib.m4: Likewise.
38344         * m4/rename-dest-slash.m4: Likewise.
38345         * m4/rename.m4: Likewise.
38346         * m4/rmdir-errno.m4: Likewise.
38347         * m4/rmdir.m4: Likewise.
38348         * m4/roundf.m4: Likewise.
38349         * m4/roundl.m4: Likewise.
38350         * m4/rpmatch.m4: Likewise.
38351         * m4/save-cwd.m4: Likewise.
38352         * m4/selinux-selinux-h.m4: Likewise.
38353         * m4/setenv.m4: Likewise.
38354         * m4/settime.m4: Likewise.
38355         * m4/sig2str.m4: Likewise.
38356         * m4/sig_atomic_t.m4: Likewise.
38357         * m4/signalblocking.m4: Likewise.
38358         * m4/signbit.m4: Likewise.
38359         * m4/sigpipe.m4: Likewise.
38360         * m4/sockets.m4: Likewise.
38361         * m4/sockpfaf.m4: Likewise.
38362         * m4/st_dm_mode.m4: Likewise.
38363         * m4/stat-time.m4: Likewise.
38364         * m4/stdbool.m4: Likewise.
38365         * m4/stdint.m4: Likewise.
38366         * m4/stdint_h.m4: Likewise.
38367         * m4/stpcpy.m4: Likewise.
38368         * m4/stpncpy.m4: Likewise.
38369         * m4/strcase.m4: Likewise.
38370         * m4/strchrnul.m4: Likewise.
38371         * m4/strcspn.m4: Likewise.
38372         * m4/strdup.m4: Likewise.
38373         * m4/strftime.m4: Likewise.
38374         * m4/strndup.m4: Likewise.
38375         * m4/strnlen.m4: Likewise.
38376         * m4/strpbrk.m4: Likewise.
38377         * m4/strptime.m4: Likewise.
38378         * m4/strsep.m4: Likewise.
38379         * m4/strtod.m4: Likewise.
38380         * m4/strtoimax.m4: Likewise.
38381         * m4/strtok_r.m4: Likewise.
38382         * m4/strtol.m4: Likewise.
38383         * m4/strtoll.m4: Likewise.
38384         * m4/strtoul.m4: Likewise.
38385         * m4/strtoull.m4: Likewise.
38386         * m4/strtoumax.m4: Likewise.
38387         * m4/strverscmp.m4: Likewise.
38388         * m4/threadlib.m4: Likewise.
38389         * m4/timegm.m4: Likewise.
38390         * m4/tm_gmtoff.m4: Likewise.
38391         * m4/tmpdir.m4: Likewise.
38392         * m4/tmpfile.m4: Likewise.
38393         * m4/tzset.m4: Likewise.
38394         * m4/uintmax_t.m4: Likewise.
38395         * m4/unlinkdir.m4: Likewise.
38396         * m4/unlocked-io.m4: Likewise.
38397         * m4/uptime.m4: Likewise.
38398         * m4/userspec.m4: Likewise.
38399         * m4/utimbuf.m4: Likewise.
38400         * m4/utime.m4: Likewise.
38401         * m4/utimes-null.m4: Likewise.
38402         * m4/utimes.m4: Likewise.
38403         * m4/vararrays.m4: Likewise.
38404         * m4/vasnprintf.m4: Likewise.
38405         * m4/vfprintf-posix.m4: Likewise.
38406         * m4/vprintf-posix.m4: Likewise.
38407         * m4/wait-process.m4: Likewise.
38408         * m4/wchar_t.m4: Likewise.
38409         * m4/wint_t.m4: Likewise.
38410         * m4/write-any-file.m4: Likewise.
38411         * m4/yield.m4: Likewise.
38412
38413 2009-01-13  Bruno Haible  <bruno@clisp.org>
38414
38415         Avoid test-copy-file.sh failures when ACL support insufficient.
38416         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
38417         TESTS_ENVIRONMENT.
38418         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
38419         Reported by Jim Meyering.
38420
38421 2009-01-13  Bruno Haible  <bruno@clisp.org>
38422
38423         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
38424         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
38425         * modules/unistdio/u8-printf-parse (Files): Likewise.
38426         * modules/unistdio/u32-printf-parse (Files): Likewise.
38427         * modules/unistdio/ulc-printf-parse (Files): Likewise.
38428
38429 2009-01-13  Simon Josefsson  <simon@josefsson.org>
38430
38431         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
38432         and m4/inttypes_h.m4 too.
38433
38434 2009-01-12  Eric Blake  <ebb9@byu.net>
38435
38436         tests: IRIX 6.2 cc can't compile -0.0 into .data
38437         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
38438         rather than at compile-time.
38439         * tests/test-floorl.c (minus_zero): Likewise.
38440         * tests/test-frexpl.c (minus_zero): Likewise.
38441         * tests/test-isnan.c (minus_zerol): Likewise.
38442         * tests/test-isnanl.h (minus_zero): Likewise.
38443         * tests/test-ldexpl.c (minus_zero): Likewise.
38444         * tests/test-roundl.c (minus_zero): Likewise.
38445         * tests/test-signbit.c (minus_zerol): Likewise.
38446         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
38447         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
38448         * tests/test-truncl.c (minus_zero): Likewise.
38449         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
38450         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
38451         Reported by Tom G. Christensen and Nelson H. F. Beebe.
38452
38453 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
38454
38455         regex: fix glibc bug 9697
38456         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
38457         handling.
38458
38459 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
38460
38461         regex: fix glibc bug 697
38462         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
38463         being NULL also if there are no backreferences.
38464
38465 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
38466
38467         regex: merge glibc changes
38468         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
38469         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
38470         re_string_skip_chars, re_string_reconstruct): Likewise.
38471         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
38472
38473 2009-01-07  Jim Meyering  <meyering@redhat.com>
38474
38475         poll: filter through cppi
38476         * lib/poll.c: Indent cpp directives to reflect nesting.
38477
38478 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
38479
38480         poll: don't return uninitialized
38481         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
38482
38483 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
38484
38485         avoid compile failure on AIX 6.1
38486         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
38487         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
38488
38489 2009-01-04  Jim Meyering  <meyering@redhat.com>
38490
38491         remove duplicate inclusion of <stdio.h>
38492         * tests/test-fprintf-posix.c: Likewise.
38493         * tests/test-printf-posix.c: Likewise.
38494         * tests/test-snprintf-posix.c: Likewise.
38495         * tests/test-sprintf-posix.c: Likewise.
38496         * tests/test-vasprintf-posix.c: Likewise.
38497         * tests/test-vfprintf-posix.c: Likewise.
38498         * tests/test-vprintf-posix.c: Likewise.
38499         * tests/test-vsnprintf-posix.c: Likewise.
38500         * tests/test-vsprintf-posix.c: Likewise.
38501
38502 2009-01-03  Jim Meyering  <meyering@redhat.com>
38503
38504         gnulib-tool: fix sed-based filtering
38505         * gnulib-tool (func_filter_filelist): Remove extra backslash
38506         in sed_fff_filter definition.
38507
38508 2009-01-02  Jim Meyering  <meyering@redhat.com>
38509
38510         strftime: avoid compilation failure on Solaris 2.6
38511         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
38512         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
38513         Don't #define mbrlen or mbsinit, since now they're guaranteed to
38514         be available.  Reported by Tom G. Christensen.  Details in
38515         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
38516
38517 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38518             Bruno Haible  <bruno@clisp.org>
38519
38520         Speed up gnulib-tool by doing more string processing through shell
38521         built-ins.
38522         * gnulib-tool (fast_func_append): New variable.
38523         (func_remove_prefix, func_remove_suffix): New functions.
38524         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
38525         (func_filter_filelist): New function.
38526         (func_get_dependencies): Use func_remove_suffix instead of sed.
38527         (func_get_automake_snippet): Use func_filter_filelist instead of a
38528         subshell and sed invocation.
38529
38530 2009-01-01  Bruno Haible  <bruno@clisp.org>
38531
38532         Fix a security bug.
38533         * gnulib-tool (func_import, import, update): Don't allow the characters
38534         '"', '$', '`', '\' in macro arguments that become part of commands that
38535         are evaluated.
38536
38537 2009-01-01  Bruno Haible  <bruno@clisp.org>
38538
38539         * gnulib-tool (func_reset_sigpipe): Add more comments.
38540
38541 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38542
38543         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
38544         func_emit_tests_Makefile_am, func_import): Abort loops early if we
38545         already know the answer.
38546
38547 2009-01-01  Jim Meyering  <meyering@redhat.com>
38548
38549         * lib/version-etc.c (version_etc_va): Update copyright year.
38550
38551 2008-12-30  Bruno Haible  <bruno@clisp.org>
38552
38553         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
38554         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
38555         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
38556
38557 2008-12-29  Eric Blake  <ebb9@byu.net>
38558
38559         multiarch: avoid autoconf AC_REQUIRE bug
38560         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
38561         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
38562         2.63 and older.
38563         Reported by Bruno Haible, and analyzed in
38564         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
38565
38566 2008-12-29  Bruno Haible  <bruno@clisp.org>
38567
38568         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
38569         files in subdirectories correctly.
38570         Reported by Ralf Wildenhues.
38571
38572 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38573
38574         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
38575         rather than 'join FILE -', for Solaris join.
38576
38577 2008-12-29  Bruno Haible  <bruno@clisp.org>
38578
38579         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
38580         quoting.
38581         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
38582         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
38583         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
38584         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
38585         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
38586         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
38587         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
38588         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
38589         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
38590         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
38591         * m4/nls.m4 (AM_NLS): Likewise.
38592         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
38593         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
38594         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
38595         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
38596         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
38597         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
38598         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
38599         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
38600         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
38601         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
38602         * m4/xsize.m4 (gl_XSIZE): Likewise.
38603         Suggested by Jim Meyering.
38604
38605 2008-11-17  Bruce Korb  <bkorb@gnu.org>
38606
38607         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
38608         * lib/parse-duration.c: use a switch instead of cascading if's.
38609
38610 2008-12-29  Eric Blake  <ebb9@byu.net>
38611
38612         wchar.h: supply WEOF on Irix 5.3
38613         * lib/wchar.in.h (wint_t): Also supply WEOF.
38614         * lib/wctype.in.h (wint_t): Likewise.
38615         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
38616         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
38617         Reported by Tom G. Christensen.
38618
38619 2008-12-26  Bruno Haible  <bruno@clisp.org>
38620
38621         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
38622         i486, i586, i686.
38623
38624 2008-12-26  Bruno Haible  <bruno@clisp.org>
38625
38626         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
38627
38628 2008-12-26  Bruno Haible  <bruno@clisp.org>
38629
38630         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
38631         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
38632         not __STDC_CONSTANT_MACROS.
38633         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
38634
38635 2008-12-25  Bruno Haible  <bruno@clisp.org>
38636
38637         Add support for universal builds to vasnprintf.
38638         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
38639         universal builds, guess no.
38640         * modules/vasnprintf-posix (Depends-on): Add multiarch.
38641         * modules/vasprintf-posix (Depends-on): Likewise.
38642         * modules/fprintf-posix (Depends-on): Likewise.
38643         * modules/vfprintf-posix (Depends-on): Likewise.
38644         * modules/snprintf-posix (Depends-on): Likewise.
38645         * modules/vsnprintf-posix (Depends-on): Likewise.
38646         * modules/sprintf-posix (Depends-on): Likewise.
38647         * modules/vsprintf-posix (Depends-on): Likewise.
38648         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
38649         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
38650         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
38651         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
38652         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
38653         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
38654         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
38655
38656         Add support for universal builds to <inttypes.h>.
38657         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
38658         _SCNu64_PREFIX): In Apple
38659         universal builds, define directly, using _LP64.
38660         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
38661         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
38662         * modules/inttypes (Depends-on): Add multiarch.
38663         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
38664
38665         Add support for universal builds to <stdint.h>.
38666         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
38667         universal builds, define directly, using _LP64.
38668         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
38669         Apple universal builds, don't test for the size and suffix of ptrdiff_t
38670         and size_t.
38671         * modules/stdint (Depends-on): Add multiarch.
38672         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
38673
38674         New module 'multiarch'.
38675         * modules/multiarch: New file.
38676         * m4/multiarch.m4: New file.
38677
38678 2008-12-25  Bruno Haible  <bruno@clisp.org>
38679
38680         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
38681
38682 2008-12-25  Bruno Haible  <bruno@clisp.org>
38683
38684         * modules/btowc (License): Relicense under LGPLv2+.
38685         * modules/mbsinit (License): Likewise.
38686         * modules/mbrtowc (License): Likewise.
38687         * modules/wcrtomb (License): Likewise.
38688         * modules/streq (License): Likewise.
38689         Reported by David Lutterkort <lutter@redhat.com>.
38690
38691 2008-12-23  Bruno Haible  <bruno@clisp.org>
38692
38693         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
38694
38695 2008-12-23  Bruno Haible  <bruno@clisp.org>
38696
38697         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
38698         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
38699         GETADDRINFO_LIB, not in LIBS.
38700         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
38701         * modules/canon-host (Link): Likewise.
38702         * NEWS: Mention the change.
38703         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
38704         GETADDRINFO_LIB.
38705
38706 2008-12-22  Bruno Haible  <bruno@clisp.org>
38707
38708         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
38709         * doc/posix-functions/iswalpha_l.texi: Likewise.
38710         * doc/posix-functions/iswblank_l.texi: Likewise.
38711         * doc/posix-functions/iswcntrl_l.texi: Likewise.
38712         * doc/posix-functions/iswctype_l.texi: Likewise.
38713         * doc/posix-functions/iswdigit_l.texi: Likewise.
38714         * doc/posix-functions/iswgraph_l.texi: Likewise.
38715         * doc/posix-functions/iswlower_l.texi: Likewise.
38716         * doc/posix-functions/iswprint_l.texi: Likewise.
38717         * doc/posix-functions/iswpunct_l.texi: Likewise.
38718         * doc/posix-functions/iswspace_l.texi: Likewise.
38719         * doc/posix-functions/iswupper_l.texi: Likewise.
38720         * doc/posix-functions/iswxdigit_l.texi: Likewise.
38721         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
38722         * doc/posix-functions/open_wmemstream.texi: Likewise.
38723         * doc/posix-functions/swscanf.texi: Likewise.
38724         * doc/posix-functions/towctrans_l.texi: Likewise.
38725         * doc/posix-functions/towlower.texi: Likewise.
38726         * doc/posix-functions/towlower_l.texi: Likewise.
38727         * doc/posix-functions/towupper.texi: Likewise.
38728         * doc/posix-functions/towupper_l.texi: Likewise.
38729         * doc/posix-functions/vfwprintf.texi: Likewise.
38730         * doc/posix-functions/vfwscanf.texi: Likewise.
38731         * doc/posix-functions/vswscanf.texi: Likewise.
38732         * doc/posix-functions/vwprintf.texi: Likewise.
38733         * doc/posix-functions/vwscanf.texi: Likewise.
38734         * doc/posix-functions/wcpcpy.texi: Likewise.
38735         * doc/posix-functions/wcpncpy.texi: Likewise.
38736         * doc/posix-functions/wcscasecmp.texi: Likewise.
38737         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
38738         * doc/posix-functions/wcscoll_l.texi: Likewise.
38739         * doc/posix-functions/wcsdup.texi: Likewise.
38740         * doc/posix-functions/wcsncasecmp.texi: Likewise.
38741         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
38742         * doc/posix-functions/wcsnlen.texi: Likewise.
38743         * doc/posix-functions/wcsnrtombs.texi: Likewise.
38744         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
38745         * doc/posix-functions/wctrans_l.texi: Likewise.
38746         * doc/posix-functions/wctype_l.texi: Likewise.
38747         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
38748         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
38749         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
38750         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
38751         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
38752         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
38753         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
38754         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
38755         * doc/glibc-functions/wcschrnul.texi: Likewise.
38756         * doc/glibc-functions/wcsftime_l.texi: Likewise.
38757         * doc/glibc-functions/wcstod_l.texi: Likewise.
38758         * doc/glibc-functions/wcstof_l.texi: Likewise.
38759         * doc/glibc-functions/wcstol_l.texi: Likewise.
38760         * doc/glibc-functions/wcstold_l.texi: Likewise.
38761         * doc/glibc-functions/wcstoll_l.texi: Likewise.
38762         * doc/glibc-functions/wcstoq.texi: Likewise.
38763         * doc/glibc-functions/wcstoul_l.texi: Likewise.
38764         * doc/glibc-functions/wcstoull_l.texi: Likewise.
38765         * doc/glibc-functions/wcstouq.texi: Likewise.
38766         * doc/glibc-functions/wmempcpy.texi: Likewise.
38767
38768 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
38769             Eric Blake  <ebb9@byu.net>
38770             Paolo Bonzini  <bonzini@gnu.org>
38771             Bruno Haible  <bruno@clisp.org>
38772
38773         Make c-stack work on Haiku.
38774         * lib/c-stack.c (SA_ONSTACK): Define fallback.
38775         (c_stack_action): Use SA_ONSTACK flag.
38776
38777 2008-12-22  Bruno Haible  <bruno@clisp.org>
38778
38779         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
38780
38781 2008-12-22  Bruno Haible  <bruno@clisp.org>
38782
38783         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
38784         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
38785         being overridden.
38786         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
38787         New macros.
38788         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
38789         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
38790         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
38791         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
38792
38793 2008-12-22  Bruno Haible  <bruno@clisp.org>
38794
38795         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
38796         from test code.
38797
38798 2008-12-22  Eric Blake  <ebb9@byu.net>
38799
38800         Avoid gcc warnings on cygwin.
38801         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
38802         Avoid unused variable.
38803         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
38804         Likewise.
38805
38806 2008-12-22  Bruno Haible  <bruno@clisp.org>
38807
38808         Remove HAVE_MBRTOWC conditionals.
38809         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
38810         (mbscasecmp): Assume mbrtowc function.
38811         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
38812         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
38813         * lib/mbschr.c: Include mbuiter.h unconditionally.
38814         (mbschr): Assume mbrtowc function.
38815         * lib/mbscspn.c: Include mbuiter.h unconditionally.
38816         (mbscspn): Assume mbrtowc function.
38817         * lib/mbslen.c: Include mbuiter.h unconditionally.
38818         (mbslen): Assume mbrtowc function.
38819         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
38820         (mbsncasecmp): Assume mbrtowc function.
38821         * lib/mbsnlen.c: Include mbiter.h unconditionally.
38822         (mbsnlen): Assume mbrtowc function.
38823         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
38824         (mbspbrk): Assume mbrtowc function.
38825         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
38826         (mbspcasecmp): Assume mbrtowc function.
38827         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
38828         (mbsrchr): Assume mbrtowc function.
38829         * lib/mbssep.c: Include mbuiter.h unconditionally.
38830         (mbssep): Assume mbrtowc function.
38831         * lib/mbsspn.c: Include mbuiter.h unconditionally.
38832         (mbsspn): Assume mbrtowc function.
38833         * lib/mbsstr.c: Include mbuiter.h unconditionally.
38834         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
38835         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
38836         (mbstok_r): Assume mbrtowc function.
38837         * lib/propername.c: Include mbuiter.h unconditionally.
38838         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
38839         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
38840         (trim2): Assume mbrtowc function.
38841         * lib/mbswidth.c (mbsinit): Remove fallback definition.
38842         (mbsnwidth): Assume mbrtowc function.
38843         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
38844         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
38845         fallback definitions.
38846         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
38847
38848 2008-12-22  Bruno Haible  <bruno@clisp.org>
38849
38850         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
38851
38852 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
38853
38854         * modules/regex: Request emulations for the mb*/wc* functions we need.
38855         * m4/regex.m4: Don't look for those functions here.
38856         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
38857
38858 2008-12-22  Bruno Haible  <bruno@clisp.org>
38859
38860         * modules/fnmatch (Depends-on): Remove duplicated dependency.
38861
38862 2008-12-21  Bruno Haible  <bruno@clisp.org>
38863
38864         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
38865         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
38866         (Include): Remove conditionalization.
38867         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
38868         (Include): Remove conditionalization.
38869         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
38870         (Include): Remove conditionalization.
38871         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
38872         * m4/mbfile.m4 (gl_MBFILE): Likewise.
38873         * NEWS: Mention the change.
38874         Reported by Alan Hourihane <alanh@fairlite.co.uk>
38875         via Sergey Poznyakoff <gray@gnu.org.ua>.
38876
38877 2008-12-21  Bruno Haible  <bruno@clisp.org>
38878
38879         * MODULES.html.sh (Extended multibyte and wide character utilities
38880         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
38881         wcrtomb, wcsrtombs.
38882         (Support for systems lacking POSIX:2008): Add accept, bind, close,
38883         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
38884         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
38885         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
38886
38887 2008-12-21  Bruno Haible  <bruno@clisp.org>
38888
38889         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
38890
38891 2008-12-21  Bruno Haible  <bruno@clisp.org>
38892
38893         * modules/wcsnrtombs-tests: New file.
38894         * tests/test-wcsnrtombs1.sh: New file.
38895         * tests/test-wcsnrtombs2.sh: New file.
38896         * tests/test-wcsnrtombs3.sh: New file.
38897         * tests/test-wcsnrtombs4.sh: New file.
38898         * tests/test-wcsnrtombs.c: New file.
38899
38900         New module 'wcsnrtombs'.
38901         * lib/wchar.in.h (wcsnrtombs): New declaration.
38902         * lib/wcsnrtombs.c: New file.
38903         * lib/wcsrtombs-state.c: New file.
38904         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
38905         (internal_state): Remove variable.
38906         * m4/wcsnrtombs.m4: New file.
38907         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
38908         compilation units.
38909         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
38910         HAVE_WCSNRTOMBS.
38911         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
38912         HAVE_WCSNRTOMBS.
38913         * modules/wcsnrtombs: New file.
38914         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
38915         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
38916
38917 2008-12-21  Bruno Haible  <bruno@clisp.org>
38918
38919         * modules/wcsrtombs-tests: New file.
38920         * tests/test-wcsrtombs1.sh: New file.
38921         * tests/test-wcsrtombs2.sh: New file.
38922         * tests/test-wcsrtombs3.sh: New file.
38923         * tests/test-wcsrtombs4.sh: New file.
38924         * tests/test-wcsrtombs.c: New file.
38925
38926         New module 'wcsrtombs'.
38927         * lib/wchar.in.h (wcsrtombs): New declaration.
38928         * lib/wcsrtombs.c: New file.
38929         * m4/wcsrtombs.m4: New file.
38930         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
38931         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
38932         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
38933         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
38934         * modules/wcsrtombs: New file.
38935         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
38936         bugs.
38937
38938 2008-12-21  Bruno Haible  <bruno@clisp.org>
38939
38940         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
38941         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
38942         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
38943         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
38944         if not correct.
38945         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
38946         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
38947         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
38948         m4/locale-zh.m4, m4/codeset.m4.
38949         * doc/posix-functions/wcrtomb.texi: Document the bug.
38950
38951 2008-12-21  Bruno Haible  <bruno@clisp.org>
38952
38953         Work around a btowc() bug on IRIX 6.5.
38954         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
38955         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
38956         REPLACE_WTOBC if not.
38957         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
38958         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
38959         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
38960
38961 2008-12-21  Bruno Haible  <bruno@clisp.org>
38962
38963         * modules/wcrtomb-tests: New file.
38964         * tests/test-wcrtomb.sh: New file.
38965         * tests/test-wcrtomb.c: New file.
38966
38967         New module 'wcrtomb'.
38968         * lib/wchar.in.h (wcrtomb): New declaration.
38969         * lib/wcrtomb.c: New file.
38970         * m4/wcrtomb.m4: New file.
38971         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
38972         HAVE_WCRTOMB.
38973         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
38974         HAVE_WCRTOMB.
38975         * modules/wcrtomb: New file.
38976         * doc/posix-functions/wcrtomb.texi: Mention the new module.
38977
38978 2008-12-21  Bruno Haible  <bruno@clisp.org>
38979
38980         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
38981         * modules/mbsrtowcs (Files): Likewise.
38982         * modules/wctob (Files): Likewise.
38983         * modules/c-strcase-tests (Files): Likewise.
38984         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
38985         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
38986         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
38987         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
38988         * modules/vasnprintf-posix-tests (Files): Likewise.
38989
38990 2008-12-21  William Pursell  <bill.pursell@gmail.com>
38991
38992         gitlog-to-changelog: pass all command-line arguments to git-log
38993         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
38994         it is sometimes convenient to filter the commits in various ways.
38995         gitlog-to-changelog only allows --since to specify a start date,
38996         but git-log itself supports many other filtering mechanisms.
38997         At the moment, I want to filter by branch name.  Rather than
38998         adding a --branch option to gitlog-to-changelog, it seems more
38999         flexible to simply pass all options directly to git-log and let
39000         git do the work.  Notice that this effectively makes --since a
39001         redundant option for gitlog-to-changelog, but removing it would
39002         require current usage to change since calls would then require
39003         an additional '--'.
39004
39005 2008-12-21  Bruno Haible  <bruno@clisp.org>
39006
39007         * modules/mbsnrtowcs-tests: New file.
39008         * tests/test-mbsnrtowcs1.sh: New file.
39009         * tests/test-mbsnrtowcs2.sh: New file.
39010         * tests/test-mbsnrtowcs3.sh: New file.
39011         * tests/test-mbsnrtowcs4.sh: New file.
39012         * tests/test-mbsnrtowcs.c: New file.
39013
39014         New module 'mbsnrtowcs'.
39015         * lib/wchar.in.h (mbsnrtowcs): New declaration.
39016         * lib/mbsnrtowcs.c: New file.
39017         * lib/mbsrtowcs-state.c: New file.
39018         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
39019         (internal_state): Remove variable.
39020         * m4/mbsnrtowcs.m4: New file.
39021         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
39022         compilation units.
39023         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
39024         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
39025         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
39026         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
39027         * modules/mbsnrtowcs: New file.
39028         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
39029         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
39030         portability problem.
39031
39032 2008-12-21  Bruno Haible  <bruno@clisp.org>
39033
39034         Work around mbsrtowcs bug.
39035         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
39036         (gl_FUNC_MBSRTOWCS): Invoke it.
39037         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
39038         m4/locale-zh.m4.
39039         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
39040
39041 2008-12-21  Bruno Haible  <bruno@clisp.org>
39042
39043         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
39044
39045 2008-12-21  Bruno Haible  <bruno@clisp.org>
39046
39047         Update doc for AIX.
39048         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
39049         16-bit wchar_t type.
39050         * doc/posix-functions/btowc.texi: Likewise.
39051         * doc/posix-functions/fgetwc.texi: Likewise.
39052         * doc/posix-functions/fgetws.texi: Likewise.
39053         * doc/posix-functions/fputwc.texi: Likewise.
39054         * doc/posix-functions/fputws.texi: Likewise.
39055         * doc/posix-functions/fwide.texi: Likewise.
39056         * doc/posix-functions/fwprintf.texi: Likewise.
39057         * doc/posix-functions/fwscanf.texi: Likewise.
39058         * doc/posix-functions/getwchar.texi: Likewise.
39059         * doc/posix-functions/getwc.texi: Likewise.
39060         * doc/posix-functions/iswalnum.texi: Likewise.
39061         * doc/posix-functions/iswalpha.texi: Likewise.
39062         * doc/posix-functions/iswblank.texi: Likewise.
39063         * doc/posix-functions/iswcntrl.texi: Likewise.
39064         * doc/posix-functions/iswctype.texi: Likewise.
39065         * doc/posix-functions/iswdigit.texi: Likewise.
39066         * doc/posix-functions/iswgraph.texi: Likewise.
39067         * doc/posix-functions/iswlower.texi: Likewise.
39068         * doc/posix-functions/iswprint.texi: Likewise.
39069         * doc/posix-functions/iswpunct.texi: Likewise.
39070         * doc/posix-functions/iswspace.texi: Likewise.
39071         * doc/posix-functions/iswupper.texi: Likewise.
39072         * doc/posix-functions/iswxdigit.texi: Likewise.
39073         * doc/posix-functions/mbrtowc.texi: Likewise.
39074         * doc/posix-functions/mbsrtowcs.texi: Likewise.
39075         * doc/posix-functions/mbstowcs.texi: Likewise.
39076         * doc/posix-functions/mbtowc.texi: Likewise.
39077         * doc/posix-functions/putwchar.texi: Likewise.
39078         * doc/posix-functions/putwc.texi: Likewise.
39079         * doc/posix-functions/swprintf.texi: Likewise.
39080         * doc/posix-functions/tolower.texi: Likewise.
39081         * doc/posix-functions/toupper.texi: Likewise.
39082         * doc/posix-functions/towctrans.texi: Likewise.
39083         * doc/posix-functions/ungetwc.texi: Likewise.
39084         * doc/posix-functions/vswprintf.texi: Likewise.
39085         * doc/posix-functions/wcrtomb.texi: Likewise.
39086         * doc/posix-functions/wcscat.texi: Likewise.
39087         * doc/posix-functions/wcschr.texi: Likewise.
39088         * doc/posix-functions/wcscmp.texi: Likewise.
39089         * doc/posix-functions/wcscoll.texi: Likewise.
39090         * doc/posix-functions/wcscpy.texi: Likewise.
39091         * doc/posix-functions/wcscspn.texi: Likewise.
39092         * doc/posix-functions/wcsftime.texi: Likewise.
39093         * doc/posix-functions/wcslen.texi: Likewise.
39094         * doc/posix-functions/wcsncat.texi: Likewise.
39095         * doc/posix-functions/wcsncmp.texi: Likewise.
39096         * doc/posix-functions/wcsncpy.texi: Likewise.
39097         * doc/posix-functions/wcspbrk.texi: Likewise.
39098         * doc/posix-functions/wcsrchr.texi: Likewise.
39099         * doc/posix-functions/wcsrtombs.texi: Likewise.
39100         * doc/posix-functions/wcsspn.texi: Likewise.
39101         * doc/posix-functions/wcsstr.texi: Likewise.
39102         * doc/posix-functions/wcstod.texi: Likewise.
39103         * doc/posix-functions/wcstof.texi: Likewise.
39104         * doc/posix-functions/wcstoimax.texi: Likewise.
39105         * doc/posix-functions/wcstok.texi: Likewise.
39106         * doc/posix-functions/wcstold.texi: Likewise.
39107         * doc/posix-functions/wcstoll.texi: Likewise.
39108         * doc/posix-functions/wcstol.texi: Likewise.
39109         * doc/posix-functions/wcstombs.texi: Likewise.
39110         * doc/posix-functions/wcstoull.texi: Likewise.
39111         * doc/posix-functions/wcstoul.texi: Likewise.
39112         * doc/posix-functions/wcstoumax.texi: Likewise.
39113         * doc/posix-functions/wcswidth.texi: Likewise.
39114         * doc/posix-functions/wcsxfrm.texi: Likewise.
39115         * doc/posix-functions/wctob.texi: Likewise.
39116         * doc/posix-functions/wctomb.texi: Likewise.
39117         * doc/posix-functions/wctrans.texi: Likewise.
39118         * doc/posix-functions/wctype.texi: Likewise.
39119         * doc/posix-functions/wcwidth.texi: Likewise.
39120         * doc/posix-functions/wmemchr.texi: Likewise.
39121         * doc/posix-functions/wmemcmp.texi: Likewise.
39122         * doc/posix-functions/wmemcpy.texi: Likewise.
39123         * doc/posix-functions/wmemmove.texi: Likewise.
39124         * doc/posix-functions/wmemset.texi: Likewise.
39125         * doc/posix-functions/wprintf.texi: Likewise.
39126         * doc/posix-functions/wscanf.texi: Likewise.
39127
39128 2008-12-21  Bruno Haible  <bruno@clisp.org>
39129
39130         Update doc for HP-UX 11.11.
39131         * doc/posix-functions/btowc.texi: Clarify that the function is missing
39132         in HP-UX version 11.00, not in all versions of HP-UX 11.
39133         * doc/posix-functions/fwide.texi: Likewise.
39134         * doc/posix-functions/fwprintf.texi: Likewise.
39135         * doc/posix-functions/fwscanf.texi: Likewise.
39136         * doc/posix-functions/inet_ntop.texi: Likewise.
39137         * doc/posix-functions/inet_pton.texi: Likewise.
39138         * doc/posix-functions/mbrlen.texi: Likewise.
39139         * doc/posix-functions/mbrtowc.texi: Likewise.
39140         * doc/posix-functions/mbsinit.texi: Likewise.
39141         * doc/posix-functions/mbsrtowcs.texi: Likewise.
39142         * doc/posix-functions/swprintf.texi: Likewise.
39143         * doc/posix-functions/swscanf.texi: Likewise.
39144         * doc/posix-functions/towctrans.texi: Likewise.
39145         * doc/posix-functions/vfwprintf.texi: Likewise.
39146         * doc/posix-functions/vswprintf.texi: Likewise.
39147         * doc/posix-functions/vwprintf.texi: Likewise.
39148         * doc/posix-functions/wcrtomb.texi: Likewise.
39149         * doc/posix-functions/wcsrtombs.texi: Likewise.
39150         * doc/posix-functions/wcsstr.texi: Likewise.
39151         * doc/posix-functions/wctob.texi: Likewise.
39152         * doc/posix-functions/wctrans.texi: Likewise.
39153         * doc/posix-functions/wmemchr.texi: Likewise.
39154         * doc/posix-functions/wmemcmp.texi: Likewise.
39155         * doc/posix-functions/wmemcpy.texi: Likewise.
39156         * doc/posix-functions/wmemmove.texi: Likewise.
39157         * doc/posix-functions/wmemset.texi: Likewise.
39158         * doc/posix-functions/wprintf.texi: Likewise.
39159         * doc/posix-functions/wscanf.texi: Likewise.
39160
39161 2008-12-21  Bruno Haible  <bruno@clisp.org>
39162
39163         Work around a portability problem.
39164         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
39165         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
39166
39167 2008-12-20  Bruno Haible  <bruno@clisp.org>
39168
39169         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
39170         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
39171         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
39172         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
39173         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
39174
39175         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
39176         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
39177         set.
39178         (GNULIB_defined_mbstate_t): New macro.
39179         (mbsinit): Redefine if REPLACE_MBSINIT is set.
39180         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
39181         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
39182         reuses the system's mbrtowc function but works around the bugs.
39183         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
39184         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
39185         macros.
39186         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
39187         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
39188         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
39189         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
39190         REPLACE_MBSINIT if mbsinit needs to be overridden.
39191         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
39192         REPLACE_MBSINIT, REPLACE_MBRTOWC.
39193         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
39194         REPLACE_MBSINIT, REPLACE_MBRTOWC.
39195         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
39196         m4/locale-zh.m4.
39197         (Depends): Add mbsinit.
39198         * modules/mbsinit (Depends): Add mbrtowc.
39199         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
39200
39201 2008-12-20  Bruno Haible  <bruno@clisp.org>
39202
39203         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
39204         so that there are no conversion errors on AIX.
39205         * tests/test-mbsrtowcs.c (main): LIkewise.
39206
39207 2008-12-20  Bruno Haible  <bruno@clisp.org>
39208
39209         Work around wctob bug on Solaris <= 9.
39210         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
39211         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
39212         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
39213         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
39214         * modules/wctob (Files): Add m4/locale-fr.m4.
39215         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
39216
39217 2008-12-20  Bruno Haible  <bruno@clisp.org>
39218
39219         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
39220         /dev/null.
39221         * tests/test-select-in.sh: Likewise.
39222         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
39223
39224 2008-12-20  Bruno Haible  <bruno@clisp.org>
39225
39226         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
39227         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
39228         Cygwin 1.5.x.
39229
39230 2008-12-20  Bruno Haible  <bruno@clisp.org>
39231
39232         Ensure mbstate_t is defined on HP-UX 11.11.
39233         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
39234         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
39235         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
39236         AC_USE_SYSTEM_EXTENSIONS.
39237         * modules/fnmatch (Depends-on): Add extensions.
39238         * modules/mbrlen (Depends-on): Likewise.
39239         * modules/mbrtowc (Depends-on): Likewise.
39240         * modules/mbsinit (Depends-on): Likewise.
39241         * modules/mbsrtowcs (Depends-on): Likewise.
39242         * modules/mbswidth (Depends-on): Likewise.
39243         * modules/quotearg (Depends-on): Likewise.
39244         * modules/strftime (Depends-on): Likewise.
39245
39246 2008-12-20  Bruno Haible  <bruno@clisp.org>
39247
39248         Ensure wctob is declared on IRIX 6.5.
39249         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
39250         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
39251         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
39252         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
39253         of HAVE_WCTOB.
39254         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
39255         HAVE_WCTOB.
39256         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
39257
39258 2008-12-19  Bruno Haible  <bruno@clisp.org>
39259
39260         * modules/mbsrtowcs-tests: New file.
39261         * tests/test-mbsrtowcs1.sh: New file.
39262         * tests/test-mbsrtowcs2.sh: New file.
39263         * tests/test-mbsrtowcs3.sh: New file.
39264         * tests/test-mbsrtowcs4.sh: New file.
39265         * tests/test-mbsrtowcs.c: New file.
39266
39267         New module 'mbsrtowcs'.
39268         * lib/wchar.in.h (mbsrtowcs): New declaration.
39269         * lib/mbsrtowcs.c: New file.
39270         * m4/mbsrtowcs.m4: New file.
39271         * modules/mbsrtowcs: New file.
39272         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
39273         HAVE_MBSRTOWCS.
39274         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
39275         HAVE_MBSRTOWCS.
39276         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
39277
39278 2008-12-19  Bruno Haible  <bruno@clisp.org>
39279
39280         New module 'mbrlen'.
39281         * lib/wchar.in.h (mbrlen): New declaration.
39282         * lib/mbrlen.c: New file.
39283         * m4/mbrlen.m4: New file.
39284         * modules/mbrlen: New file.
39285         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
39286         HAVE_MBRLEN.
39287         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
39288         HAVE_MBRLEN.
39289         * doc/posix-functions/mbrlen.texi: Document the new module.
39290
39291 2008-12-19  Bruno Haible  <bruno@clisp.org>
39292
39293         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
39294         * modules/mbrtowc (Depends-on): Add verify.
39295         Suggested by Paul Eggert.
39296
39297 2008-12-18  Bruno Haible  <bruno@clisp.org>
39298
39299         * modules/mbsinit-tests: New file.
39300         * tests/test-mbsinit.sh: New file.
39301         * tests/test-mbsinit.c: New file.
39302
39303 2008-12-18  Bruno Haible  <bruno@clisp.org>
39304
39305         * modules/mbrtowc-tests: New file.
39306         * tests/test-mbrtowc1.sh: New file.
39307         * tests/test-mbrtowc2.sh: New file.
39308         * tests/test-mbrtowc3.sh: New file.
39309         * tests/test-mbrtowc4.sh: New file.
39310         * tests/test-mbrtowc.c: New file.
39311
39312         New module 'mbrtowc'.
39313         * lib/wchar.in.h (mbstate_t): Override when the system does not have
39314         mbsinit and mbrtowc.
39315         (mbrtowc): New declaration.
39316         * lib/mbrtowc.c: New file.
39317         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
39318         * modules/mbrtowc: New file.
39319         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
39320         HAVE_MBRTOWC.
39321         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
39322         HAVE_MBRTOWC.
39323         * doc/posix-functions/mbrtowc.texi: Document the new module.
39324
39325 2008-12-18  Bruno Haible  <bruno@clisp.org>
39326
39327         New module 'wctob'.
39328         * lib/wchar.in.h (wctob): New declaration.
39329         * lib/wctob.c: New file.
39330         * m4/wctob.m4: New file.
39331         * modules/wctob: New file.
39332         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
39333         HAVE_WCTOB.
39334         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
39335         * doc/posix-functions/wctob.texi: Document the new module.
39336
39337 2008-12-18  Bruno Haible  <bruno@clisp.org>
39338
39339         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
39340         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
39341
39342 2008-12-18  Simon Josefsson  <simon@josefsson.org>
39343
39344         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
39345         G. Christensen" <tgc@jupiterrise.com>.
39346
39347         * lib/flock.c: Need to include errno.h.  Reported by "Tom
39348         G. Christensen" <tgc@jupiterrise.com>.
39349
39350         * lib/flock.c: Need to include string.h.  Reported by "Tom
39351         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
39352         <ebb9@byu.net>.
39353
39354 2008-12-18  Bruno Haible  <bruno@clisp.org>
39355
39356         * m4/locale-ja.m4: New file, from GNU gettext.
39357
39358 2008-12-17  Bruno Haible  <bruno@clisp.org>
39359
39360         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
39361         Suggested by Eric Blake.
39362
39363 2008-12-17  Bruno Haible  <bruno@clisp.org>
39364
39365         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
39366
39367 2008-12-17  Bruno Haible  <bruno@clisp.org>
39368
39369         * lib/mbsinit.c: Include verify.h. Verify an assumption.
39370         * modules/mbsinit (Depends-on): Add verify.
39371         Suggested by Paul Eggert.
39372
39373 2008-12-17  Bruno Haible  <bruno@clisp.org>
39374
39375         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
39376         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
39377         gl_FUNC_MBRTOWC.
39378         * m4/mbiter.m4 (gl_MBITER): LIkewise.
39379         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
39380         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
39381         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
39382         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
39383         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
39384         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
39385         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
39386         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
39387         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
39388         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
39389         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
39390         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
39391         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
39392         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
39393         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
39394         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
39395         * modules/trim (configure.ac): Likewise.
39396
39397 2008-12-17  Bruno Haible  <bruno@clisp.org>
39398
39399         * modules/btowc-tests: New file.
39400         * tests/test-btowc1.sh: New file.
39401         * tests/test-btowc2.sh: New file.
39402         * tests/test-btowc.c: New file.
39403
39404         New module 'btowc'.
39405         * lib/wchar.in.h (btowc): New declaration.
39406         * lib/btowc.c: New file.
39407         * m4/btowc.m4: New file.
39408         * modules/btowc: New file.
39409         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
39410         HAVE_BTOWC.
39411         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
39412         * doc/posix-functions/btowc.texi: Document the new module.
39413
39414 2008-12-17  Bruno Haible  <bruno@clisp.org>
39415
39416         New module 'mbsinit'.
39417         * lib/wchar.in.h (mbsinit): New declaration.
39418         * lib/mbsinit.c: New file.
39419         * m4/mbsinit.m4: New file.
39420         * modules/mbsinit: New file.
39421         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
39422         HAVE_MBSINIT.
39423         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
39424         HAVE_MBSINIT.
39425         * doc/posix-functions/mbsinit.texi: Document the new module.
39426
39427 2008-12-16  Bruno Haible  <bruno@clisp.org>
39428
39429         * lib/unistd.in.h: Add comment.
39430         * tests/test-environ.c: Don't include <stdlib.h>.
39431
39432 2008-12-16  Bruno Haible  <bruno@clisp.org>
39433
39434         * lib/parse-duration.h (parse_duration): Document return value
39435         convention.
39436         * lib/parse-duration.c: Include specification header first. Add
39437         comments.
39438         (_): Remove macro.
39439         (parse_year_month_day, parse_hour_minute_second): Move side effects
39440         outside of strchr call.
39441         (parse_non_iso8601): Move side effects outside of isspace call.
39442         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
39443         call.
39444
39445 2008-12-16  Bruno Haible  <bruno@clisp.org>
39446
39447         * tests/test-parse-duration.sh: Produce no output when the test
39448         succeeds.
39449
39450 2008-12-16  Bruno Haible  <bruno@clisp.org>
39451
39452         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
39453         expressions.
39454
39455 2008-12-15  Bruno Haible  <bruno@clisp.org>
39456
39457         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
39458         * doc/glibc-functions/flistxattr.texi: Likewise.
39459         * doc/glibc-functions/fopencookie.texi: Likewise.
39460         * doc/glibc-functions/fremovexattr.texi: Likewise.
39461         * doc/glibc-functions/fsetxattr.texi: Likewise.
39462         * doc/glibc-functions/getxattr.texi: Likewise.
39463         * doc/glibc-functions/lgetxattr.texi: Likewise.
39464         * doc/glibc-functions/listxattr.texi: Likewise.
39465         * doc/glibc-functions/llistxattr.texi: Likewise.
39466         * doc/glibc-functions/lremovexattr.texi: Likewise.
39467         * doc/glibc-functions/lsetxattr.texi: Likewise.
39468         * doc/glibc-functions/removexattr.texi: Likewise.
39469         * doc/glibc-functions/setxattr.texi: Likewise.
39470         * doc/posix-functions/open_memstream.texi: Likewise.
39471
39472 2008-12-15  Eric Blake  <ebb9@byu.net>
39473
39474         Update doc for cygwin 1.7.
39475         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
39476         functions.
39477         * doc/posix-functions/fchmodat.texi: Likewise.
39478         * doc/posix-functions/fchownat.texi: Likewise.
39479         * doc/posix-functions/fdopendir.texi: Likewise.
39480         * doc/posix-functions/fmemopen.texi: Likewise.
39481         * doc/posix-functions/freeaddrinfo.texi: Likewise.
39482         * doc/posix-functions/fstatat.texi: Likewise.
39483         * doc/posix-functions/futimens.texi: Likewise.
39484         * doc/posix-functions/gai_strerror.texi: Likewise.
39485         * doc/posix-functions/getaddrinfo.texi: Likewise.
39486         * doc/posix-functions/getnameinfo.texi: Likewise.
39487         * doc/posix-functions/if_freenameindex.texi: Likewise.
39488         * doc/posix-functions/if_indextoname.texi: Likewise.
39489         * doc/posix-functions/if_nameindex.texi: Likewise.
39490         * doc/posix-functions/if_nametoindex.texi: Likewise.
39491         * doc/posix-functions/insque.texi: Likewise.
39492         * doc/posix-functions/linkat.texi: Likewise.
39493         * doc/posix-functions/llrint.texi: Likewise.
39494         * doc/posix-functions/llrintf.texi: Likewise.
39495         * doc/posix-functions/llrintl.texi: Likewise.
39496         * doc/posix-functions/lockf.texi: Likewise.
39497         * doc/posix-functions/lrintl.texi: Likewise.
39498         * doc/posix-functions/mkdirat.texi: Likewise.
39499         * doc/posix-functions/mkfifoat.texi: Likewise.
39500         * doc/posix-functions/mknodat.texi: Likewise.
39501         * doc/posix-functions/mq_close.texi: Likewise.
39502         * doc/posix-functions/mq_getattr.texi: Likewise.
39503         * doc/posix-functions/mq_notify.texi: Likewise.
39504         * doc/posix-functions/mq_open.texi: Likewise.
39505         * doc/posix-functions/mq_receive.texi: Likewise.
39506         * doc/posix-functions/mq_send.texi: Likewise.
39507         * doc/posix-functions/mq_setattr.texi: Likewise.
39508         * doc/posix-functions/mq_timedreceive.texi: Likewise.
39509         * doc/posix-functions/mq_timedsend.texi: Likewise.
39510         * doc/posix-functions/mq_unlink.texi: Likewise.
39511         * doc/posix-functions/open_memstream.texi: Likewise.
39512         * doc/posix-functions/openat.texi: Likewise.
39513         * doc/posix-functions/posix_fadvise.texi: Likewise.
39514         * doc/posix-functions/posix_fallocate.texi: Likewise.
39515         * doc/posix-functions/posix_madvise.texi: Likewise.
39516         * doc/posix-functions/posix_memalign.texi: Likewise.
39517         * doc/posix-functions/posix_openpt.texi: Likewise.
39518         * doc/posix-functions/readlinkat.texi: Likewise.
39519         * doc/posix-functions/remque.texi: Likewise.
39520         * doc/posix-functions/renameat.texi: Likewise.
39521         * doc/posix-functions/rintl.texi: Likewise.
39522         * doc/posix-functions/sem_unlink.texi: Likewise.
39523         * doc/posix-functions/shm_open.texi: Likewise.
39524         * doc/posix-functions/shm_unlink.texi: Likewise.
39525         * doc/posix-functions/signgam.texi: Likewise.
39526         * doc/posix-functions/sigset.texi: Likewise.
39527         * doc/posix-functions/stpcpy.texi: Likewise.
39528         * doc/posix-functions/stpncpy.texi: Likewise.
39529         * doc/posix-functions/strerror.texi: Likewise.
39530         * doc/posix-functions/strtod.texi: Likewise.
39531         * doc/posix-functions/symlinkat.texi: Likewise.
39532         * doc/posix-functions/unlinkat.texi: Likewise.
39533         * doc/posix-functions/utimensat.texi: Likewise.
39534         * doc/glibc-functions/bindresvport.texi: Likewise.
39535         * doc/glibc-functions/dn_expand.texi: Likewise.
39536         * doc/glibc-functions/exp10.texi: Likewise.
39537         * doc/glibc-functions/exp10f.texi: Likewise.
39538         * doc/glibc-functions/fgetxattr.texi: Likewise.
39539         * doc/glibc-functions/flistxattr.texi: Likewise.
39540         * doc/glibc-functions/fopencookie.texi: Likewise.
39541         * doc/glibc-functions/freeifaddrs.texi: Likewise.
39542         * doc/glibc-functions/fremovexattr.texi: Likewise.
39543         * doc/glibc-functions/fsetxattr.texi: Likewise.
39544         * doc/glibc-functions/getifaddrs.texi: Likewise.
39545         * doc/glibc-functions/getxattr.texi: Likewise.
39546         * doc/glibc-functions/lgetxattr.texi: Likewise.
39547         * doc/glibc-functions/listxattr.texi: Likewise.
39548         * doc/glibc-functions/llistxattr.texi: Likewise.
39549         * doc/glibc-functions/lremovexattr.texi: Likewise.
39550         * doc/glibc-functions/lsetxattr.texi: Likewise.
39551         * doc/glibc-functions/pow10.texi: Likewise.
39552         * doc/glibc-functions/pow10f.texi: Likewise.
39553         * doc/glibc-functions/rcmd_af.texi: Likewise.
39554         * doc/glibc-functions/removexattr.texi: Likewise.
39555         * doc/glibc-functions/res_init.texi: Likewise.
39556         * doc/glibc-functions/res_mkquery.texi: Likewise.
39557         * doc/glibc-functions/res_query.texi: Likewise.
39558         * doc/glibc-functions/res_querydomain.texi: Likewise.
39559         * doc/glibc-functions/res_send.texi: Likewise.
39560         * doc/glibc-functions/rresvport_af.texi: Likewise.
39561         * doc/glibc-functions/setxattr.texi: Likewise.
39562         * doc/glibc-functions/strcasestr.texi: Likewise.
39563
39564 2008-12-15  Bruno Haible  <bruno@clisp.org>
39565
39566         Fix compilation error on OSF/1 4.0.
39567         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
39568         <sys/time.h>, simply delegate to the system header.
39569         Reported by Daniel Richard G. <oss@teragram.com>.
39570
39571 2008-12-15  Bruno Haible  <bruno@clisp.org>
39572
39573         * doc/posix-functions/openat.texi: Mention the 'openat' module.
39574         * doc/posix-functions/fchmodat.texi: Likewise.
39575         * doc/posix-functions/fchownat.texi: Likewise.
39576         * doc/posix-functions/fdopendir.texi: Likewise.
39577         * doc/posix-functions/fstatat.texi: Likewise.
39578         * doc/posix-functions/mkdirat.texi: Likewise.
39579         * doc/posix-functions/unlinkat.texi: Likewise.
39580
39581 2008-12-14  Bruno Haible  <bruno@clisp.org>
39582
39583         Update doc for POSIX:2008.
39584         * doc/posix-functions/faccessat.texi: New file.
39585         * doc/posix-functions/fchmodat.texi: New file.
39586         * doc/posix-functions/fchownat.texi: New file.
39587         * doc/posix-functions/fdopendir.texi: New file.
39588         * doc/posix-functions/fstatat.texi: New file.
39589         * doc/posix-functions/futimens.texi: New file.
39590         * doc/posix-functions/linkat.texi: New file.
39591         * doc/posix-functions/mkdirat.texi: New file.
39592         * doc/posix-functions/mkfifoat.texi: New file.
39593         * doc/posix-functions/mknodat.texi: New file.
39594         * doc/posix-functions/open_wmemstream.texi: New file.
39595         * doc/posix-functions/openat.texi: New file.
39596         * doc/posix-functions/psiginfo.texi: New file.
39597         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
39598         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
39599         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
39600         * doc/posix-functions/readlinkat.texi: New file.
39601         * doc/posix-functions/renameat.texi: New file.
39602         * doc/posix-functions/strerror_l.texi: New file.
39603         * doc/posix-functions/symlinkat.texi: New file.
39604         * doc/posix-functions/unlinkat.texi: New file.
39605         * doc/posix-functions/utimensat.texi: New file.
39606         * doc/gnulib.texi (Function Substitutes): Add these subsections.
39607
39608 2008-12-14  Bruno Haible  <bruno@clisp.org>
39609
39610         Update doc for POSIX:2008.
39611         * doc/posix-functions/alphasort.texi: Renamed from
39612         doc/glibc-functions/alphasort.texi.
39613         * doc/posix-functions/dirfd.texi: Renamed from
39614         doc/glibc-functions/dirfd.texi.
39615         * doc/posix-functions/dprintf.texi: Renamed from
39616         doc/glibc-functions/dprintf.texi.
39617         * doc/posix-functions/duplocale.texi: Renamed from
39618         doc/glibc-functions/duplocale.texi.
39619         * doc/posix-functions/fexecve.texi: Renamed from
39620         doc/glibc-functions/fexecve.texi.
39621         * doc/posix-functions/fmemopen.texi: Renamed from
39622         doc/glibc-functions/fmemopen.texi.
39623         * doc/posix-functions/freelocale.texi: Renamed from
39624         doc/glibc-functions/freelocale.texi.
39625         * doc/posix-functions/getdate_err.texi: Renamed from
39626         doc/glibc-functions/getdate_err.texi.
39627         * doc/posix-functions/isalnum_l.texi: Renamed from
39628         doc/glibc-functions/isalnum_l.texi.
39629         * doc/posix-functions/isalpha_l.texi: Renamed from
39630         doc/glibc-functions/isalpha_l.texi.
39631         * doc/posix-functions/isblank_l.texi: Renamed from
39632         doc/glibc-functions/isblank_l.texi.
39633         * doc/posix-functions/iscntrl_l.texi: Renamed from
39634         doc/glibc-functions/iscntrl_l.texi.
39635         * doc/posix-functions/isdigit_l.texi: Renamed from
39636         doc/glibc-functions/isdigit_l.texi.
39637         * doc/posix-functions/isgraph_l.texi: Renamed from
39638         doc/glibc-functions/isgraph_l.texi.
39639         * doc/posix-functions/islower_l.texi: Renamed from
39640         doc/glibc-functions/islower_l.texi.
39641         * doc/posix-functions/isprint_l.texi: Renamed from
39642         doc/glibc-functions/isprint_l.texi.
39643         * doc/posix-functions/ispunct_l.texi: Renamed from
39644         doc/glibc-functions/ispunct_l.texi.
39645         * doc/posix-functions/isspace_l.texi: Renamed from
39646         doc/glibc-functions/isspace_l.texi.
39647         * doc/posix-functions/isupper_l.texi: Renamed from
39648         doc/glibc-functions/isupper_l.texi.
39649         * doc/posix-functions/iswalnum_l.texi: Renamed from
39650         doc/glibc-functions/iswalnum_l.texi.
39651         * doc/posix-functions/iswalpha_l.texi: Renamed from
39652         doc/glibc-functions/iswalpha_l.texi.
39653         * doc/posix-functions/iswblank_l.texi: Renamed from
39654         doc/glibc-functions/iswblank_l.texi.
39655         * doc/posix-functions/iswcntrl_l.texi: Renamed from
39656         doc/glibc-functions/iswcntrl_l.texi.
39657         * doc/posix-functions/iswctype_l.texi: Renamed from
39658         doc/glibc-functions/iswctype_l.texi.
39659         * doc/posix-functions/iswdigit_l.texi: Renamed from
39660         doc/glibc-functions/iswdigit_l.texi.
39661         * doc/posix-functions/iswgraph_l.texi: Renamed from
39662         doc/glibc-functions/iswgraph_l.texi.
39663         * doc/posix-functions/iswlower_l.texi: Renamed from
39664         doc/glibc-functions/iswlower_l.texi.
39665         * doc/posix-functions/iswprint_l.texi: Renamed from
39666         doc/glibc-functions/iswprint_l.texi.
39667         * doc/posix-functions/iswpunct_l.texi: Renamed from
39668         doc/glibc-functions/iswpunct_l.texi.
39669         * doc/posix-functions/iswspace_l.texi: Renamed from
39670         doc/glibc-functions/iswspace_l.texi.
39671         * doc/posix-functions/iswupper_l.texi: Renamed from
39672         doc/glibc-functions/iswupper_l.texi.
39673         * doc/posix-functions/iswxdigit_l.texi: Renamed from
39674         doc/glibc-functions/iswxdigit_l.texi.
39675         * doc/posix-functions/isxdigit_l.texi: Renamed from
39676         doc/glibc-functions/isxdigit_l.texi.
39677         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
39678         doc/glibc-functions/mbsnrtowcs.texi.
39679         * doc/posix-functions/mkdtemp.texi: Renamed from
39680         doc/glibc-functions/mkdtemp.texi.
39681         * doc/posix-functions/newlocale.texi: Renamed from
39682         doc/glibc-functions/newlocale.texi.
39683         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
39684         doc/glibc-functions/nl_langinfo_l.texi.
39685         * doc/posix-functions/open_memstream.texi: Renamed from
39686         doc/glibc-functions/open_memstream.texi.
39687         * doc/posix-functions/opterr.texi: Renamed from
39688         doc/glibc-functions/opterr.texi.
39689         * doc/posix-functions/optind.texi: Renamed from
39690         doc/glibc-functions/optind.texi.
39691         * doc/posix-functions/optopt.texi: Renamed from
39692         doc/glibc-functions/optopt.texi.
39693         * doc/posix-functions/psignal.texi: Renamed from
39694         doc/glibc-functions/psignal.texi.
39695         * doc/posix-functions/scandir.texi: Renamed from
39696         doc/glibc-functions/scandir.texi.
39697         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
39698         doc/glibc-functions/sched_get_priority_min.texi.
39699         * doc/posix-functions/signgam.texi: Renamed from
39700         doc/glibc-functions/signgam.texi.
39701         * doc/posix-functions/stpcpy.texi: Renamed from
39702         doc/glibc-functions/stpcpy.texi.
39703         * doc/posix-functions/stpncpy.texi: Renamed from
39704         doc/glibc-functions/stpncpy.texi.
39705         * doc/posix-functions/strcasecmp_l.texi: Renamed from
39706         doc/glibc-functions/strcasecmp_l.texi.
39707         * doc/posix-functions/strcoll_l.texi: Renamed from
39708         doc/glibc-functions/strcoll_l.texi.
39709         * doc/posix-functions/strfmon_l.texi: Renamed from
39710         doc/glibc-functions/strfmon_l.texi.
39711         * doc/posix-functions/strftime_l.texi: Renamed from
39712         doc/glibc-functions/strftime_l.texi.
39713         * doc/posix-functions/strncasecmp_l.texi: Renamed from
39714         doc/glibc-functions/strncasecmp_l.texi.
39715         * doc/posix-functions/strndup.texi: Renamed from
39716         doc/glibc-functions/strndup.texi.
39717         * doc/posix-functions/strnlen.texi: Renamed from
39718         doc/glibc-functions/strnlen.texi.
39719         * doc/posix-functions/strsignal.texi: Renamed from
39720         doc/glibc-functions/strsignal.texi.
39721         * doc/posix-functions/strxfrm_l.texi: Renamed from
39722         doc/glibc-functions/strxfrm_l.texi.
39723         * doc/posix-functions/timer_gettime.texi: Renamed from
39724         doc/glibc-functions/timer_gettime.texi.
39725         * doc/posix-functions/tolower_l.texi: Renamed from
39726         doc/glibc-functions/tolower_l.texi.
39727         * doc/posix-functions/toupper_l.texi: Renamed from
39728         doc/glibc-functions/toupper_l.texi.
39729         * doc/posix-functions/towctrans_l.texi: Renamed from
39730         doc/glibc-functions/towctrans_l.texi.
39731         * doc/posix-functions/towlower_l.texi: Renamed from
39732         doc/glibc-functions/towlower_l.texi.
39733         * doc/posix-functions/towupper_l.texi: Renamed from
39734         doc/glibc-functions/towupper_l.texi.
39735         * doc/posix-functions/uselocale.texi: Renamed from
39736         doc/glibc-functions/uselocale.texi.
39737         * doc/posix-functions/vdprintf.texi: Renamed from
39738         doc/glibc-functions/vdprintf.texi.
39739         * doc/posix-functions/wcpcpy.texi:
39740         Renamed from doc/glibc-functions/wcpcpy.texi.
39741         * doc/posix-functions/wcpncpy.texi: Renamed from
39742         doc/glibc-functions/wcpncpy.texi.
39743         * doc/posix-functions/wcscasecmp.texi: Renamed from
39744         doc/glibc-functions/wcscasecmp.texi.
39745         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
39746         doc/glibc-functions/wcscasecmp_l.texi.
39747         * doc/posix-functions/wcscoll_l.texi: Renamed from
39748         doc/glibc-functions/wcscoll_l.texi.
39749         * doc/posix-functions/wcsdup.texi: Renamed from
39750         doc/glibc-functions/wcsdup.texi.
39751         * doc/posix-functions/wcsncasecmp.texi: Renamed from
39752         doc/glibc-functions/wcsncasecmp.texi.
39753         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
39754         doc/glibc-functions/wcsncasecmp_l.texi.
39755         * doc/posix-functions/wcsnlen.texi: Renamed from
39756         doc/glibc-functions/wcsnlen.texi.
39757         * doc/posix-functions/wcsnrtombs.texi: Renamed from
39758         doc/glibc-functions/wcsnrtombs.texi.
39759         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
39760         doc/glibc-functions/wcsxfrm_l.texi.
39761         * doc/posix-functions/wctrans_l.texi: Renamed from
39762         doc/glibc-functions/wctrans_l.texi.
39763         * doc/posix-functions/wctype_l.texi: Renamed from
39764         doc/glibc-functions/wctype_l.texi.
39765         * doc/gnulib.texi (Function Substitutes): Add these subsections.
39766         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
39767         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
39768         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
39769         these subsections.
39770         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
39771         Remove sections.
39772
39773 2008-12-14  Bruno Haible  <bruno@clisp.org>
39774
39775         Update doc for POSIX:2008.
39776         * doc/posix-functions/*.texi: Update URL of POSIX specification.
39777
39778 2008-12-14  Bruno Haible  <bruno@clisp.org>
39779
39780         Update doc for POSIX:2008.
39781         * doc/pastposix-functions/bcmp.texi: Renamed from
39782         doc/posix-functions/bcmp.texi.
39783         * doc/pastposix-functions/bcopy.texi: Renamed from
39784         doc/posix-functions/bcopy.texi.
39785         * doc/pastposix-functions/bsd_signal.texi: Renamed from
39786         doc/posix-functions/bsd_signal.texi.
39787         * doc/pastposix-functions/bzero.texi: Renamed from
39788         doc/posix-functions/bzero.texi.
39789         * doc/pastposix-functions/ecvt.texi: Renamed from
39790         doc/posix-functions/ecvt.texi.
39791         * doc/pastposix-functions/fcvt.texi: Renamed from
39792         doc/posix-functions/fcvt.texi.
39793         * doc/pastposix-functions/ftime.texi: Renamed from
39794         doc/posix-functions/ftime.texi.
39795         * doc/pastposix-functions/gcvt.texi: Renamed from
39796         doc/posix-functions/gcvt.texi.
39797         * doc/pastposix-functions/getcontext.texi: Renamed from
39798         doc/posix-functions/getcontext.texi.
39799         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
39800         doc/posix-functions/gethostbyaddr.texi.
39801         * doc/pastposix-functions/gethostbyname.texi: Renamed from
39802         doc/posix-functions/gethostbyname.texi.
39803         * doc/pastposix-functions/getwd.texi: Renamed from
39804         doc/posix-functions/getwd.texi.
39805         * doc/pastposix-functions/h_errno.texi: Renamed from
39806         doc/posix-functions/h_errno.texi.
39807         * doc/pastposix-functions/index.texi: Renamed from
39808         doc/posix-functions/index.texi.
39809         * doc/pastposix-functions/makecontext.texi: Renamed from
39810         doc/posix-functions/makecontext.texi.
39811         * doc/pastposix-functions/mktemp.texi: Renamed from
39812         doc/posix-functions/mktemp.texi.
39813         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
39814         doc/posix-functions/pthread_attr_getstackaddr.texi.
39815         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
39816         doc/posix-functions/pthread_attr_setstackaddr.texi.
39817         * doc/pastposix-functions/rindex.texi: Renamed from
39818         doc/posix-functions/rindex.texi.
39819         * doc/pastposix-functions/scalb.texi: Renamed from
39820         doc/posix-functions/scalb.texi.
39821         * doc/pastposix-functions/setcontext.texi: Renamed from
39822         doc/posix-functions/setcontext.texi.
39823         * doc/pastposix-functions/swapcontext.texi: Renamed from
39824         doc/posix-functions/swapcontext.texi.
39825         * doc/pastposix-functions/ualarm.texi: Renamed from
39826         doc/posix-functions/ualarm.texi.
39827         * doc/pastposix-functions/usleep.texi: Renamed from
39828         doc/posix-functions/usleep.texi.
39829         * doc/pastposix-functions/vfork.texi: Renamed from
39830         doc/posix-functions/vfork.texi.
39831         * doc/pastposix-functions/wcswcs.texi: Renamed from
39832         doc/posix-functions/wcswcs.texi.
39833         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
39834         (Function Substitutes): Update.
39835
39836 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39837
39838         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
39839         m4/strerror.m4.
39840
39841 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39842             Bruno Haible  <bruno@clisp.org>
39843
39844         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
39845
39846 2008-12-13  Bruno Haible  <bruno@clisp.org>
39847
39848         * modules/strtoull (Depends-on): Remove unistd.
39849
39850 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39851
39852         * modules/strtoull (Depends-on): Add stdlib.
39853
39854 2008-12-11  Simon Josefsson  <simon@josefsson.org>
39855
39856         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
39857
39858 2008-12-10  Jim Meyering  <meyering@redhat.com>
39859
39860         gl_ASSERT: don't say assertions are disabled when they're not
39861         * m4/assert.m4 (gl_ASSERT): Do not make configure report
39862         "checking whether to enable assertions... no", when they are in
39863         fact enabled.  This is solely a bug in the output of configure.
39864         In spite of saying "no", NDEBUG was not defined in that case.
39865         Also, as noted by Eric Blake, leave assertions enabled upon
39866         --enable-assert=INVALID.
39867
39868 2008-12-10  Bruno Haible  <bruno@clisp.org>
39869
39870         Change MODULES.html to refer to POSIX:2008 where possible.
39871         * MODULES.html.sh (POSIX2008_URL): New variable.
39872         (posix_headers): Remove sys/timeb, ucontext.
39873         (posix2001_headers): New variable.
39874         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
39875         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
39876         index, makecontext, mktemp, pthread_attr_getstackaddr,
39877         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
39878         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
39879         (posix2001_functions): New variable.
39880         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
39881         otherwise.
39882
39883 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39884
39885         add missing include to parse-duration.c
39886         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
39887         * modules/parse-duration (Depends-on): Add xalloc.
39888
39889         fix sed script reading maint.mk
39890         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
39891         (syntax-check-rules): Use it.
39892
39893 2008-12-09  Bruno Haible  <bruno@clisp.org>
39894
39895         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
39896         MacOS X 10.4/PowerPC.
39897         Reported by Simon Josefsson.
39898
39899 2008-12-08  Jim Meyering  <meyering@redhat.com>
39900
39901         work around mingw's lack of some S_IF definitions
39902         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
39903         Reported by Simon Josefsson.
39904
39905 2008-12-08  Bruno Haible  <bruno@clisp.org>
39906
39907         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
39908         applied to variables. Needed on MacOS X 10.4/PowerPC.
39909         Reported by Simon Josefsson.
39910
39911 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
39912         and Eric Blake  <ebb9@byu.net>
39913
39914         assert: honor --enable-assert
39915         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
39916         order to honor --enable-assert, rather than treating it as a
39917         synonym for --disable-assert.
39918
39919 2008-12-08  Jim Meyering  <meyering@redhat.com>
39920
39921         * lib/posixtm.c: Remove now-useless declaration of mktime.
39922
39923         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
39924
39925 2008-12-07  Bruno Haible  <bruno@clisp.org>
39926
39927         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
39928         test_once): Mark functions as static.
39929         * tests/test-tls.c (test_tls): Likewise.
39930
39931 2008-12-07  Bruno Haible  <bruno@clisp.org>
39932
39933         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
39934         iconv_register_autodetect.
39935
39936 2008-12-07  Jim Meyering  <meyering@redhat.com>
39937
39938         posixtm.c: avoid a warning
39939         * lib/posixtm.c (posixtime): Don't initialize tm0.
39940         It's no longer needed to placate gcc4's -Wuninitialized,
39941         and the attempt to placate would elicit a new warning.
39942
39943         unicodeio.c: mark unused parameters
39944         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
39945         (fallback_failure_callback): Likewise.
39946
39947 2008-12-07  Bruno Haible  <bruno@clisp.org>
39948
39949         * gnulib-tool (func_create_testdir): When building the tests
39950         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
39951         Reported by Simon Josefsson.
39952
39953 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39954
39955         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
39956
39957 2008-12-06  Bruno Haible  <bruno@clisp.org>
39958
39959         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
39960         Suggested by Eric Blake.
39961
39962 2008-12-06  Bruno Haible  <bruno@clisp.org>
39963
39964         Fix a c-stack test failure on MacOS X.
39965         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
39966         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
39967         handler for SIGBUS as well.
39968         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
39969         install a signal handler for SIGBUS as well.
39970         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
39971
39972 2008-12-06  Bruno Haible  <bruno@clisp.org>
39973
39974         Advocacy documentation.
39975         * doc/gnulib-intro.texi (Benefits): New section.
39976         * doc/gnulib.texi: Update.
39977
39978 2008-12-06  Bruno Haible  <bruno@clisp.org>
39979
39980         Document the 'manywarnings' module.
39981         * doc/manywarnings.texi: New file.
39982         * doc/gnulib.texi: Include it.
39983
39984 2008-12-05  Eric Blake  <ebb9@byu.net>
39985
39986         tests: silence some gcc warnings
39987         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
39988         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
39989         type mismatches.
39990
39991 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39992             Bruno Haible  <bruno@clisp.org>
39993
39994         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
39995
39996 2008-11-29  Jim Meyering  <meyering@redhat.com>
39997
39998         unicodeio.c: mark unused parameters
39999         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
40000         (fallback_failure_callback): Likewise.
40001
40002         fts: fix a thinko
40003         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
40004         (set_stat_type): Return S_IF*-valued "type" directly.
40005         Prompted by James Youngman's spotting a related bug.
40006         Confirmed by further testing through find.
40007
40008         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
40009         * lib/fts.c (D_TYPE): Define.
40010         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
40011         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
40012         (s_ifmt_shift_bits): New function.
40013         (set_stat_type): New function.
40014         (fts_build): When not calling fts_stat, call set_stat_type
40015         to propagate dirent.d_type info to fts_read caller.
40016         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
40017         fts_statp->st_mode type information may be valid.
40018
40019 2008-11-28  Simon Josefsson  <simon@josefsson.org>
40020
40021         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
40022         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
40023         <sds@gnu.org>.
40024
40025 2008-11-20  Bruno Haible  <bruno@clisp.org>
40026
40027         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
40028         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
40029         INCLUDE_NEXT.
40030         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
40031         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
40032         * modules/math (Makefile.am): Substitute
40033         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
40034         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
40035
40036 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
40037             Bruno Haible  <bruno@clisp.org>
40038
40039         * lib/stdint.in.h: Define all type macros so that their expansion is
40040         a single typedef'ed token. Fixes a compilation failure in Boost which
40041         does "using ::int8_t;".
40042
40043 2008-11-18  Simon Josefsson  <simon@josefsson.org>
40044
40045         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
40046         gl_MANYWARN_ALL_GCC.
40047         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
40048         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
40049         * modules/manywarnings: New file.
40050         * MODULES.html.sh: Mention manywarnings module.
40051
40052 2008-11-18  Bruno Haible  <bruno@clisp.org>
40053
40054         * doc/gnulib-tool.texi (Unit tests): New section.
40055
40056 2008-11-18  Simon Josefsson  <simon@josefsson.org>
40057
40058         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
40059         paths like 'lib/po/foo.po'.
40060
40061 2008-11-17  Simon Josefsson  <simon@josefsson.org>
40062
40063         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
40064         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
40065
40066 2008-11-17  Simon Josefsson  <simon@josefsson.org>
40067
40068         * m4/warnings.m4: Use CPPFLAGS to really check whether the
40069         parameter works.
40070
40071 2008-11-17  Simon Josefsson  <simon@josefsson.org>
40072
40073         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
40074
40075 2008-11-17  Bruce Korb  <bkorb@gnu.org>
40076
40077         * modules/parse-duration-tests: New file.
40078         * tests/test-parse-duration.sh: New file.
40079         * tests/test-parse-duration.c: New file.
40080
40081         New module 'parse-duration'.
40082         * lib/parse-duration.h: New file.
40083         * lib/parse-duration.c: New file.
40084         * modules/parse-duration: New file.
40085
40086 2008-11-17  Bruno Haible  <bruno@clisp.org>
40087
40088         * tests/test-select-out.sh: Comment out the first pipe test.
40089         Reported by Simon Josefsson.
40090
40091 2008-11-17  Bruno Haible  <bruno@clisp.org>
40092
40093         * modules/getaddrinfo (Depends-on): Add servent, hostent.
40094         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
40095         gl_HOSTENT.
40096
40097 2008-11-17  Bruno Haible  <bruno@clisp.org>
40098
40099         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
40100         -lnetwork and -lnet. Needed for Haiku and BeOS.
40101
40102 2008-11-16  Bruno Haible  <bruno@clisp.org>
40103
40104         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
40105
40106 2008-11-16  Bruno Haible  <bruno@clisp.org>
40107
40108         Avoid test failure on Haiku.
40109         * tests/test-fsync.c: Include <errno.h>.
40110         (main): Don't require that fsync (0) fails.
40111
40112 2008-11-15  Bruno Haible  <bruno@clisp.org>
40113
40114         New module 'hostent'.
40115         * modules/hostent: New file.
40116         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
40117
40118 2008-11-15  Bruno Haible  <bruno@clisp.org>
40119
40120         New module 'servent'.
40121         * modules/servent: New file.
40122         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
40123
40124 2008-11-15  Bruno Haible  <bruno@clisp.org>
40125
40126         Avoid generating same test program with two different rules.
40127         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
40128         test-frexp to test-frexp-nolibm.
40129         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
40130         test-frexpl to test-frexpl-nolibm.
40131
40132 2008-11-15  Bruno Haible  <bruno@clisp.org>
40133
40134         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
40135         $(FREXPL_LIBM).
40136
40137 2008-11-15  Bruno Haible  <bruno@clisp.org>
40138
40139         * lib/netdb.in.h: Activate the definitions also when the system's
40140         <netdb.h> has 'struct addrinfo'.
40141         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
40142         EAI_OVERFLOW or AI_NUMERICSERV.
40143         * doc/posix-headers/netdb.texi: Document the problem.
40144
40145 2008-11-15  Bruno Haible  <bruno@clisp.org>
40146
40147         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
40148
40149         Make the 'sched' module work on platforms where <sched.h> exists but
40150         is incomplete (such as Haiku).
40151         * lib/sched.in.h; Include the system's <sched.h> if it exists.
40152         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
40153         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
40154         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
40155         HAVE_STRUCT_SCHED_PARAM.
40156         * modules/sched (Depends-on): Add include_next.
40157         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
40158         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
40159         * doc/posix-headers/sched.texi: Document the issue.
40160
40161 2008-11-13  Jim Meyering  <meyering@redhat.com>
40162
40163         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
40164         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
40165         test would fail due to the difference in the Report bugs to ...
40166         line.  The expected address is empty, "<>", while the actual
40167         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
40168
40169 2008-11-12  Bruno Haible  <bruno@clisp.org>
40170
40171         lstat: don't compile lstat.c on systems lacking lstat
40172         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
40173         which don't have lstat; this is handled by lib/sys_stat.in.h already.
40174         Reported by Daniel P. Berrange via Jim Meyering.
40175
40176 2008-11-12  Jim Meyering  <meyering@redhat.com>
40177
40178         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
40179
40180 2008-11-12  Simon Josefsson  <simon@josefsson.org>
40181
40182         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
40183         instead.
40184
40185 2008-11-12  Bruno Haible  <bruno@clisp.org>
40186
40187         * lib/unicodeio.c: Include unistr.h.
40188         (utf8_wctomb): Remove function.
40189         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
40190
40191 2008-11-12  Simon Josefsson  <simon@josefsson.org>
40192
40193         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
40194         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
40195         <bruno@clisp.org>.
40196         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
40197
40198 2008-11-12  Simon Josefsson  <simon@josefsson.org>
40199
40200         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
40201         * doc/gnulib.texi: Add section for warnings.
40202
40203 2008-11-11  Bruno Haible  <bruno@clisp.org>
40204
40205         * lib/sockets.h: Add a comment.
40206
40207 2008-11-11  Karl Berry  <karl@gnu.org>
40208
40209         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
40210
40211 2008-11-11  Eric Blake  <ebb9@byu.net>
40212
40213         fdl.texi: avoid git symlinks
40214         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
40215
40216 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
40217
40218         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
40219
40220 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
40221
40222         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
40223         (gl_WARN_ADD): Substitute $2 if literal.
40224
40225 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
40226
40227         * m4/warning.m4: Remove.
40228
40229 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
40230
40231         * m4/warnings.m4: Almost complete rewrite. :-)
40232
40233 2008-11-10  Simon Josefsson  <simon@josefsson.org>
40234
40235         * modules/warnings: New module.
40236         * m4/warnings.m4: New file.
40237         * MODULES.html.sh: Mention warnings module.
40238         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
40239         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
40240
40241 2008-11-10  Eric Blake  <ebb9@byu.net>
40242
40243         fdl.texi: make a symlink to the latest version
40244         * doc/standards.texi: Revert today's earlier change.
40245         * doc/fdl-1.2.texi: Rename from old fdl.texi...
40246         * doc/fdl.texi: ...and replace this with a symlink to the newer
40247         fdl-1.3.texi.
40248
40249 2008-11-10  Bruno Haible  <bruno@clisp.org>
40250
40251         * tests/test-select-fd.c (main): Accept the result file name as fourth
40252         argument.
40253         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
40254         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
40255
40256 2008-11-10  Bruno Haible  <bruno@clisp.org>
40257
40258         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
40259         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
40260         as autoconf-substituted macros.
40261         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
40262         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
40263         gl_NETDB_H_DEFAULTS. Set these variables.
40264         * modules/netdb (Makefile.am): Substitute these variables.
40265
40266 2008-11-10  Eric Blake  <ebb9@byu.net>
40267
40268         standards.texi: include correct file for FDL 1.3
40269         * doc/standards.texi (GNU Free Documentation License): Change
40270         include file to pull in FDL 1.3, not 1.2.
40271
40272         fdl.texi: revert accidental change to license
40273         * doc/fdl.texi: This is FDL 1.2, not 1.3.
40274
40275 2008-11-10  Bruno Haible  <bruno@clisp.org>
40276
40277         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
40278         cross-compiling guesses also when the native compile gives no result.
40279
40280 2008-11-10  Bruno Haible  <bruno@clisp.org>
40281
40282         * lib/spawni.c (__spawni): Force variable into the stack.
40283
40284 2008-11-10  Bruno Haible  <bruno@clisp.org>
40285
40286         Add support for Haiku.
40287         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
40288         glibc and BeOS, but also on Haiku.
40289         * lib/fpurge.c (fpurge): Likewise.
40290         * lib/freadable.c (freadable): Likewise.
40291         * lib/freadahead.c (freadahead): Likewise.
40292         * lib/freading.c (freading): Likewise.
40293         * lib/freadptr.c (freadptr): Likewise.
40294         * lib/freadseek.c (freadptrinc): Likewise.
40295         * lib/fseeko.c (rpl_fseeko): Likewise.
40296         * lib/fseterr.c (fseterr): Likewise.
40297         * lib/fwritable.c (fwritable): Likewise.
40298         * lib/fwriting.c (fwriting): Likewise.
40299         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
40300
40301 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
40302
40303         * lib/config.charset: Treat Haiku like BeOS.
40304
40305 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
40306
40307         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
40308         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
40309
40310 2008-11-08  Bruno Haible  <bruno@clisp.org>
40311
40312         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
40313         AC_CACHE_CHECK.
40314
40315 2008-11-08  Bruno Haible  <bruno@clisp.org>
40316
40317         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
40318
40319 2008-11-08  Bruno Haible  <bruno@clisp.org>
40320
40321         * tests/test-select-fd.c: New file.
40322         * tests/test-select-in.sh: New file.
40323         * tests/test-select-out.sh: New file.
40324         * tests/test-select-stdin.c: New file.
40325         * modules/select-tests (Files): Add the new files.
40326         (Depends-on): Add gettimeofday.
40327         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
40328         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
40329         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
40330
40331 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
40332             Bruno Haible  <bruno@clisp.org>
40333
40334         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
40335
40336 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
40337
40338         * build-aux/pmccabe2html: Added support for C++ source files.
40339
40340 2008-11-05  Ben Pfaff  <blp@gnu.org>
40341
40342         Fix lib/close.c build on Windows.
40343         * modules/close (Files): Add lib/w32sock.h.
40344
40345 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
40346
40347         Accept Bison's NEWS format.
40348         * build-aux/announce-gen (print_news_deltas): Tweak
40349         $re_prefix.
40350
40351 2008-11-04  Bruno Haible  <bruno@clisp.org>
40352
40353         * modules/random_r (Maintainer): Add glibc.
40354
40355 2008-11-04  Simon Josefsson  <simon@josefsson.org>
40356
40357         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
40358         by karl@freefriends.org (Karl Berry).
40359         * doc/alloca.texi: Likewise.
40360         * doc/c-ctype.texi: Likewise.
40361         * doc/c-strcase.texi: Likewise.
40362         * doc/c-strcaseeq.texi: Likewise.
40363         * doc/c-strcasestr.texi: Likewise.
40364         * doc/c-strstr.texi: Likewise.
40365         * doc/c-strtod.texi: Likewise.
40366         * doc/c-strtold.texi: Likewise.
40367         * doc/ctime.texi: Likewise.
40368         * doc/error.texi: Likewise.
40369         * doc/fdl.texi: Likewise.
40370         * doc/gcd.texi: Likewise.
40371         * doc/getdate.texi: Likewise.
40372         * doc/gnulib-intro.texi: Likewise.
40373         * doc/gnulib-tool.texi: Likewise.
40374         * doc/gnulib.texi: Likewise.
40375         * doc/inet_ntoa.texi: Likewise.
40376         * doc/maintain.texi: Likewise.
40377         * doc/make-stds.texi: Likewise.
40378         * doc/quote.texi: Likewise.
40379         * doc/regexprops-generic.texi: Likewise.
40380         * doc/standards.texi: Likewise.
40381         * doc/verify.texi: Likewise.
40382         * doc/visibility.texi: Likewise.
40383         * doc/gnulib.texi (GNU Free Documentation License): Include
40384         fdl-1.3.texi instead of fdl.texi.
40385
40386 2008-11-04  Simon Josefsson  <simon@josefsson.org>
40387
40388         * doc/fdl-1.3.texi: New file, from
40389         <http://www.gnu.org/licenses/fdl-1.3.texi>.
40390         * modules/fdl-1.3: Add.
40391         * MODULES.html.sh: Add fdl-1.3.
40392
40393 2008-11-03  Bruno Haible  <bruno@clisp.org>
40394
40395         Make determination of absolute name of header file work with AIX xlc.
40396         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
40397         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
40398         preprocessing.
40399         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
40400         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
40401
40402 2008-11-03  Simon Josefsson  <simon@josefsson.org>
40403
40404         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
40405         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
40406         <ludo@gnu.org>.
40407
40408 2008-11-02  Bruno Haible  <bruno@clisp.org>
40409
40410         Mark 'strpbrk' obsolete.
40411         * modules/strpbrk (Status, Notice): New sections.
40412         * modules/strtok_r (Depends-on): Add strpbrk.
40413
40414 2008-11-02  Bruno Haible  <bruno@clisp.org>
40415
40416         Mark 'strdup' obsolete.
40417         * modules/strdup (Status, Notice): New sections.
40418         * modules/findprog (Depends-on): Add strdup.
40419         * modules/getaddrinfo (Depends-on): Likewise.
40420         * modules/localename (Depends-on): Likewise.
40421         * modules/relocatable-lib (Depends-on): Likewise.
40422         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
40423         * modules/relocatable-prog (Depends-on): Likewise.
40424         * modules/trim (Depends-on): Likewise.
40425         * modules/unictype/gen-ctype (Depends-on): Likewise.
40426         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
40427
40428 2008-11-02  Bruno Haible  <bruno@clisp.org>
40429
40430         Mark 'strcspn' obsolete.
40431         * modules/strcspn (Status, Notice): New sections.
40432
40433 2008-11-02  Bruno Haible  <bruno@clisp.org>
40434
40435         Mark 'rmdir' obsolete.
40436         * modules/rmdir (Status, Notice): New sections.
40437         * modules/clean-temp (Depends-on): Add rmdir.
40438         * modules/openat (Depends-on): Likewise.
40439
40440 2008-11-02  Bruno Haible  <bruno@clisp.org>
40441
40442         Mark 'raise' obsolete.
40443         * modules/raise (Status, Notice): New sections.
40444         (Include): Specify <signal.h>.
40445         * modules/stdio (Depends-on): Add raise.
40446         * modules/write (Depends-on): Likewise.
40447
40448 2008-11-02  Bruno Haible  <bruno@clisp.org>
40449
40450         Mark 'memset' obsolete.
40451         * modules/memset (Status, Notice): New sections.
40452
40453 2008-11-02  Bruno Haible  <bruno@clisp.org>
40454
40455         Mark 'memmove' obsolete.
40456         * modules/memmove (Status, Notice): New sections.
40457         * modules/argp (Depends-on): Add memmove.
40458         * modules/argz (Depends-on): Likewise.
40459         * modules/canonicalize (Depends-on): Likewise.
40460         * modules/canonicalize-lgpl (Depends-on): Likewise.
40461         * modules/fts (Depends-on): Likewise.
40462         * modules/getcwd (Depends-on): Likewise.
40463         * modules/human (Depends-on): Likewise.
40464         * modules/regex (Depends-on): Likewise.
40465         * modules/striconveh (Depends-on): Likewise.
40466         * modules/trim (Depends-on): Likewise.
40467         * modules/unistr/u8-move (Depends-on): Likewise.
40468         * modules/unistr/u16-move (Depends-on): Likewise.
40469         * modules/unistr/u32-move (Depends-on): Likewise.
40470
40471 2008-11-02  Bruno Haible  <bruno@clisp.org>
40472
40473         Mark 'memcpy' obsolete.
40474         * modules/memcpy (Status, Notice): New sections.
40475
40476 2008-11-02  Bruno Haible  <bruno@clisp.org>
40477
40478         Mark 'memcmp' obsolete.
40479         * modules/memcmp (Status, Notice): New sections.
40480         * modules/argmatch (Depends-on): Add memchr.
40481         * modules/backupfile (Depends-on): Likewise.
40482         * modules/c-strcasestr (Depends-on): Likewise.
40483         * modules/crypto/des (Depends-on): Likewise.
40484         * modules/csharpcomp (Depends-on): Likewise.
40485         * modules/fnmatch (Depends-on): Likewise.
40486         * modules/git-merge-changelog (Depends-on): Likewise.
40487         * modules/isnand (Depends-on): Likewise.
40488         * modules/isnand-nolibm (Depends-on): Likewise.
40489         * modules/isnanf (Depends-on): Likewise.
40490         * modules/isnanf-nolibm (Depends-on): Likewise.
40491         * modules/isnanl (Depends-on): Likewise.
40492         * modules/isnanl-nolibm (Depends-on): Likewise.
40493         * modules/mbchar (Depends-on): Likewise.
40494         * modules/memcoll (Depends-on): Likewise.
40495         * modules/quotearg (Depends-on): Likewise.
40496         * modules/regex (Depends-on): Likewise.
40497         * modules/relocatable-prog (Depends-on): Likewise.
40498         * modules/same (Depends-on): Likewise.
40499         * modules/signbit (Depends-on): Likewise.
40500         * modules/strcasestr-simple (Depends-on): Likewise.
40501         * modules/unictype/gen-ctype (Depends-on): Likewise.
40502         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
40503         * modules/uniname/uniname (Depends-on): Likewise.
40504         * modules/unistr/u8-cmp (Depends-on): Likewise.
40505
40506 2008-11-02  Bruno Haible  <bruno@clisp.org>
40507
40508         Mark 'memchr' obsolete.
40509         * modules/memchr (Status, Notice): New sections.
40510         * modules/argp (Depends-on): Add memchr.
40511         * modules/base64 (Depends-on): Likewise.
40512         * modules/c-strcasestr (Depends-on): Likewise.
40513         * modules/chdir-long (Depends-on): Likewise.
40514         * modules/fnmatch (Depends-on): Likewise.
40515         * modules/getsubopt (Depends-on): Likewise.
40516         * modules/git-merge-changelog (Depends-on): Likewise.
40517         * modules/glob (Depends-on): Likewise.
40518         * modules/strcasestr-simple (Depends-on): Likewise.
40519         * modules/strnlen (Depends-on): Likewise.
40520
40521 2008-11-02  Bruno Haible  <bruno@clisp.org>
40522
40523         Mark 'atexit' obsolete.
40524         * modules/atexit (Status, Notice): New sections.
40525         * modules/chdir-long (Depends-on): Add atexit.
40526         * modules/wait-process (Depends-on): Likewise.
40527
40528 2008-11-02  Bruno Haible  <bruno@clisp.org>
40529
40530         * gnulib-tool: New option --with-obsolete.
40531         (func_usage): Document it.
40532         (func_modules_transitive_closure): Drop obsolete dependencies if
40533         incobsolete is not true.
40534         (func_import): Read and save the incobsolete variable to the cache.
40535
40536 2008-11-02  Bruno Haible  <bruno@clisp.org>
40537
40538         * modules/TEMPLATE-EXTENDED: New field 'Status'.
40539         * gnulib-tool: New option --extract-status.
40540         (func_usage): Document it.
40541         (sed_extract_prog): Recognize it.
40542         (func_get_status): New function.
40543
40544 2008-10-30  Simon Josefsson  <simon@josefsson.org>
40545
40546         * modules/sockets (License): Change from LGPL to LGPLv2+.
40547
40548 2008-10-28  Simon Josefsson  <simon@josefsson.org>
40549
40550         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
40551
40552 2008-10-28  Simon Josefsson  <simon@josefsson.org>
40553
40554         * MODULES.html.sh (Support for systems lacking POSIX:2001):
40555         Mention times and sys_times.
40556         * modules/sys_times, modules/sys_times-tests: New modules.
40557         * modules/times, modules/times-tests: Likewise
40558         * m4/sys_times_h.m4: New file.
40559         * lib/sys_times.in.h: Likewise
40560         * lib/times.c: Likewise.
40561         * tests/test-sys_times.c: Likewise.
40562         * tests/test-times.c: Likewise.
40563         * doc/posix-headers/sys_times.texi: Update.
40564         * doc/posix-functions/times.texi: Update.
40565
40566 2008-10-28  Jim Meyering  <meyering@redhat.com>
40567
40568         * modules/tempname (Depends-on): Add lstat.
40569
40570         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
40571
40572 2008-10-28  Simon Josefsson  <simon@josefsson.org>
40573
40574         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
40575         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
40576         using idiom used elsewhere in gnulib.
40577
40578 2008-10-27  Jim Meyering  <meyering@redhat.com>
40579
40580         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
40581
40582 2008-10-27  Simon Josefsson  <simon@josefsson.org>
40583
40584         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
40585         TESTS_ENVIRONMENT, for shell scripts that needs to call built
40586         programs.
40587         * tests/test-argp-2.sh: Use $EXEEXT when needed.
40588
40589 2008-10-27  Simon Josefsson  <simon@josefsson.org>
40590
40591         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
40592
40593 2008-10-27  Bruno Haible  <bruno@clisp.org>
40594
40595         * tests/test-lstat.c: Include <stdio.h>.
40596
40597 2008-10-27  Simon Josefsson  <simon@josefsson.org>
40598
40599         * modules/lstat-tests: New module.
40600         * tests/test-lstat.c: New file.
40601
40602 2008-10-26  Jim Meyering  <meyering@redhat.com>
40603
40604         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
40605
40606 2008-10-26  Simon Josefsson  <simon@josefsson.org>
40607             Bruno Haible  <bruno@clisp.org>
40608
40609         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
40610         * modules/configmake (Include): Add a note that the include must come
40611         after all system headers.
40612         * lib/javaversion.c: Include configmake.h after all other includes.
40613
40614 2008-10-26  Bruno Haible  <bruno@clisp.org>
40615
40616         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
40617         HAVE_STRUCT_RANDOM_DATA to 1.
40618         (gl_STDLIB_H): Simplify.
40619
40620 2008-10-26  Simon Josefsson  <simon@josefsson.org>
40621
40622         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
40623         substitute HAVE_STRUCT_RANDOM_DATA.
40624         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
40625         random_data.
40626         * modules/stdlib (Makefile.am): Substitute
40627         HAVE_STRUCT_RANDOM_DATA.
40628
40629 2008-10-26  Simon Josefsson  <simon@josefsson.org>
40630
40631         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
40632         * doc/gnulib-intro.texi (Copyright): Likewise.
40633
40634 2008-10-26  Simon Josefsson  <simon@josefsson.org>
40635
40636         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
40637         findings.
40638
40639 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
40640             Bruno Haible  <bruno@clisp.org>
40641
40642         * lib/unistd.in.h: Include <winsock2.h>.
40643         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
40644         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
40645         Provide dummy declarations.
40646         (gethostname): Override.
40647         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
40648         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
40649         gl_PREREQ_SYS_H_WINSOCK2.
40650         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
40651         * doc/posix-functions/gethostname.texi: More details.
40652
40653 2008-10-25  Bruno Haible  <bruno@clisp.org>
40654
40655         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
40656         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
40657         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
40658
40659         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
40660         here ...
40661         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
40662         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
40663         gl_UNISTD_H_DEFAULTS.
40664
40665 2008-10-25  Eric Blake  <ebb9@byu.net>
40666
40667         signbit: avoid spurious compiler failure
40668         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
40669         declarations inside function.
40670
40671 2008-10-24  Simon Josefsson  <simon@josefsson.org>
40672             Bruno Haible  <bruno@clisp.org>
40673
40674         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
40675         * modules/random_r (Depends-on): Add stdint.
40676
40677 2008-10-24  Bruno Haible  <bruno@clisp.org>
40678
40679         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
40680         Eggert.
40681         * modules/strerror (License): Likewise.
40682
40683 2008-10-24  Jim Meyering  <meyering@redhat.com>
40684
40685         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
40686         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
40687
40688 2008-10-24  Eric Blake  <ebb9@byu.net>
40689
40690         getgroups: fix compilation when getgroups is available
40691         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
40692         but with <config.h> override of getgroups disabled.
40693
40694 2008-10-24  Simon Josefsson  <simon@josefsson.org>
40695
40696         * doc/gnulib.texi (Header files): Add note about C++ problems.
40697         Explained by Bruno Haible <bruno@clisp.org>.
40698
40699 2008-10-23  Bruno Haible  <bruno@clisp.org>
40700
40701         Define a dummy SA_NODEFER macro on Interix.
40702         * lib/signal.in.h (SA_NODEFER): Define fallback.
40703         Reported by Aleksey Cheusov <cheusov@tut.by> via
40704         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
40705
40706 2008-10-23  Bruno Haible  <bruno@clisp.org>
40707
40708         * modules/freadahead (License): Change to LGPLv2+.
40709         Suggested by Simon Josefsson.
40710
40711 2008-10-23  Jim Meyering  <meyering@redhat.com>
40712
40713         random_r: new module
40714         * modules/random_r: New file.
40715         * m4/random_r.m4: New file.
40716         * lib/random_r.c: New file, from glibc.
40717         * modules/random_r-tests: New file.
40718         * tests/test-random_r.c: New file.
40719         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
40720          Declare.
40721         (RAND_MAX): Define.
40722         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
40723         * modules/stdlib: Substitute them, too.
40724         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
40725         * doc/glibc-functions/initstate_r.texi: Mention the new module.
40726         * doc/glibc-functions/random_r.texi: Likewise.
40727         * doc/glibc-functions/setstate_r.texi: Likewise.
40728         * doc/glibc-functions/srandom_r.texi: Likewise.
40729         * config/srclist.txt: Mention it.
40730
40731 2008-10-23  David Lutterkort  <lutter@redhat.com>
40732
40733         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
40734         link requirement
40735
40736 2008-10-23  Jim Meyering  <meyering@redhat.com>
40737
40738         selinux-h: mark parameters of stub functions as intentionally unused
40739         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
40740         * lib/se-context.in.h: Likewise.
40741
40742 2008-10-22  Simon Josefsson  <simon@josefsson.org>
40743
40744         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
40745
40746 2008-10-22  Simon Josefsson  <simon@josefsson.org>
40747
40748         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
40749
40750 2008-10-22  Eric Blake  <ebb9@byu.net>
40751
40752         glthread/thread: avoid compiler warning
40753         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
40754         Add unreachable abort to silence compiler.
40755
40756 2008-10-22  Eric Blake  <ebb9@byu.net>
40757
40758         netdb: also supply struct addrinfo for cygwin 1.5.x
40759         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
40760         older cygwin.
40761         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
40762         cygwin.
40763         * doc/posix-headers/netdb.texi (netdb.h): Document this.
40764
40765 2008-10-22  Bruno Haible  <bruno@clisp.org>
40766
40767         * users.txt: Update entry about pspp.
40768
40769 2008-10-21  Bruno Haible  <bruno@clisp.org>
40770
40771         Simplification.
40772         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
40773         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
40774
40775         Simplification.
40776         * lib/ioctl.c (ioctl): Don't undefine.
40777         * lib/socket.c (socket): Don't undefine.
40778
40779         Remove unused module indicator macros.
40780         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
40781         GNULIB_$1 as a C macro.
40782
40783         * doc/posix-functions/close.texi: Undo last change.
40784         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
40785         Windows platforms.
40786
40787 2008-10-21  Bruno Haible  <bruno@clisp.org>
40788
40789         Add gethostname() declaration to <unistd.h>.
40790         * lib/unistd.in.h (gethostname): New declaration.
40791         * lib/gethostname.c: Include <unistd.h>.
40792         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
40793         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
40794         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
40795         and HAVE_GETHOSTNAME.
40796         * modules/gethostname (Depends-on): Add unistd.
40797         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
40798         (Include): Specify <unistd.h>.
40799         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
40800         HAVE_GETHOSTNAME.
40801         * tests/test-gethostname.c: Include <unistd.h> first.
40802
40803 2008-10-21  Bruno Haible  <bruno@clisp.org>
40804
40805         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
40806         * modules/select-tests (Depends-on): Likewise.
40807         Reported by Simon Josefsson.
40808
40809 2008-10-21  Simon Josefsson  <simon@josefsson.org>
40810
40811         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
40812         * lib/accept.c: New file, based on winsock.c.
40813         * lib/bind.c: New file, based on winsock.c.
40814         * lib/connect.c: New file, based on winsock.c.
40815         * lib/getpeername.c: New file, based on winsock.c.
40816         * lib/getsockname.c: New file, based on winsock.c.
40817         * lib/getsockopt.c: New file, based on winsock.c.
40818         * lib/ioctl.c: New file, based on winsock.c.
40819         * lib/listen.c: New file, based on winsock.c.
40820         * lib/recv.c: New file, based on winsock.c.
40821         * lib/recvfrom.c: New file, based on winsock.c.
40822         * lib/send.c: New file, based on winsock.c.
40823         * lib/sendto.c: New file, based on winsock.c.
40824         * lib/setsockopt.c: New file, based on winsock.c.
40825         * lib/shutdown.c: New file, based on winsock.c.
40826         * lib/socket.c: New file, based on winsock.c.
40827         * lib/w32sock.h: New file, based on winsock.c.
40828         * lib/winsock.c: Remove file.
40829         * modules/accept: Likewise.
40830         * modules/bind: Likewise.
40831         * modules/connect: Likewise.
40832         * modules/getpeername: Likewise.
40833         * modules/getsockname: Likewise.
40834         * modules/getsockopt: Likewise.
40835         * modules/ioctl: Likewise.
40836         * modules/listen: Likewise.
40837         * modules/recv: Likewise.
40838         * modules/recvfrom: Likewise.
40839         * modules/send: Likewise.
40840         * modules/sendto: Likewise.
40841         * modules/setsockopt: Likewise.
40842         * modules/shutdown: Likewise.
40843         * modules/socket: Use socket.c instead of winsock.c.
40844         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
40845         * doc/posix-functions/accept.texi: Doc fix.
40846         * doc/posix-functions/bind.texi: Doc fix.
40847         * doc/posix-functions/close.texi: Doc fix.
40848         * doc/posix-functions/connect.texi: Doc fix.
40849         * doc/posix-functions/getpeername.texi: Doc fix.
40850         * doc/posix-functions/getsockname.texi: Doc fix.
40851         * doc/posix-functions/getsockopt.texi: Doc fix.
40852         * doc/posix-functions/ioctl.texi: Doc fix.
40853         * doc/posix-functions/listen.texi: Doc fix.
40854         * doc/posix-functions/recv.texi: Doc fix.
40855         * doc/posix-functions/recvfrom.texi: Doc fix.
40856         * doc/posix-functions/send.texi: Doc fix.
40857         * doc/posix-functions/sendto.texi: Doc fix.
40858         * doc/posix-functions/setsockopt.texi: Doc fix.
40859         * doc/posix-functions/shutdown.texi: Doc fix.
40860         * doc/posix-functions/socket.texi: Doc fix.
40861
40862 2008-10-20  Bruno Haible  <bruno@clisp.org>
40863
40864         Take into account the role of SIGABRT_COMPAT on Windows 2008.
40865         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
40866         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
40867         as an alias for SIGABRT.
40868         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
40869         (sigaction): Map it to SIGABRT.
40870         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
40871
40872 2008-10-20  Bruno Haible  <bruno@clisp.org>
40873
40874         * lib/fts.c: Don't include lstat.h.
40875         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
40876
40877         Move the lstat() declaration to <sys/stat.h>.
40878         * lib/lstat.h: Remove file.
40879         * lib/sys_stat.in.h: Add special invocation convention.
40880         (lstat): New declaration.
40881         * lib/lstat.c (orig_lstat): New function.
40882         (rpl_lstat): Use orig_lstat instead of lstat.
40883         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
40884         AC_C_INLINE. Set REPLACE_LSTAT.
40885         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
40886         and REPLACE_LSTAT.
40887         * modules/lstat (Files): Remove lib/lstat.h.
40888         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
40889         (Include): Specify <sys/stat.h> instead of lstat.h.
40890         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
40891         REPLACE_LSTAT.
40892         * NEWS: Mention the change.
40893
40894 2008-10-20  Bruno Haible  <bruno@clisp.org>
40895
40896         * modules/posix_spawn-tests: New file.
40897         * tests/test-posix_spawn3.c: New file.
40898
40899 2008-10-20  Bruno Haible  <bruno@clisp.org>
40900
40901         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
40902         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
40903         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
40904         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
40905         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
40906
40907 2008-10-20  Bruno Haible  <bruno@clisp.org>
40908
40909         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
40910         of posix_spawn on AIX 5.3.
40911
40912 2008-10-20  Bruno Haible  <bruno@clisp.org>
40913
40914         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
40915
40916 2008-10-20  Bruno Haible  <bruno@clisp.org>
40917
40918         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
40919         of AC_LANG_PROGRAM.
40920
40921 2008-10-20  Simon Josefsson  <simon@josefsson.org>
40922
40923         * lib/netdb.in.h: Don't define GNU specific constants until they
40924         are supported or needed.  Reported by Bruno Haible
40925         <bruno@clisp.org>.
40926
40927 2008-10-20  Simon Josefsson  <simon@josefsson.org>
40928
40929         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
40930
40931 2008-10-20  Simon Josefsson  <simon@josefsson.org>
40932
40933         * lib/getaddrinfo.h: Remove file.
40934         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
40935         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
40936         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
40937         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
40938         * modules/netdb: Substitute GNULIB_GETADDRINFO.
40939         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
40940         * tests/test-getaddrinfo.c: Likewise.
40941         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
40942         * NEWS: Mention change.
40943
40944 2008-10-19  Bruno Haible  <bruno@clisp.org>
40945
40946         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
40947
40948 2008-10-19  Bruno Haible  <bruno@clisp.org>
40949
40950         * lib/wait-process.c: Include simply <sys/wait.h>.
40951         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
40952         WIFSTOPPED): Remove fallback definitions.
40953         * modules/wait-process (Depends-on): Add sys_wait.
40954
40955         New module 'sys_wait'.
40956         * modules/sys_wait: New file.
40957         * lib/sys_wait.in.h: New file, partially copied from
40958         lib/wait-process.c.
40959         * m4/sys_wait_h.m4: New file.
40960         * doc/posix-headers/sys_wait.texi: Mention the new module.
40961
40962 2008-10-19  Bruno Haible  <bruno@clisp.org>
40963
40964         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
40965
40966 2008-10-19  Bruno Haible  <bruno@clisp.org>
40967
40968         Assume that waitpid() fills an 'int' status, not a 'union wait'.
40969         * lib/wait-process.c (WAIT_T): Remove type.
40970         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
40971         (wait_subprocess): Update.
40972
40973 2008-10-19  Bruno Haible  <bruno@clisp.org>
40974
40975         New module 'atoll'.
40976         * modules/atoll: New file.
40977         * lib/stdlib.in.h (atoll): New declaration.
40978         * lib/atoll.c: New file, from glibc with modifications.
40979         * m4/atoll.m4: New file.
40980         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
40981         HAVE_ATOLL.
40982         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
40983         * doc/posix-functions/atoll.texi: Mention the new module.
40984
40985 2008-10-19  Bruno Haible  <bruno@clisp.org>
40986
40987         Add strtoull() declaration to <stdlib.h>.
40988         * lib/stdlib.in.h (strtoull): New declaration.
40989         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
40990         Set HAVE_STRTOULL.
40991         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
40992         HAVE_STRTOULL.
40993         * modules/strtoull (Depends-on): Add stdlib.
40994         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
40995         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
40996         HAVE_STRTOULL.
40997
40998 2008-10-19  Bruno Haible  <bruno@clisp.org>
40999
41000         Add strtoll() declaration to <stdlib.h>.
41001         * lib/stdlib.in.h (strtoll): New declaration.
41002         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
41003         Set HAVE_STRTOLL.
41004         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
41005         HAVE_STRTOLL.
41006         * modules/strtoll (Depends-on): Add stdlib.
41007         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
41008         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
41009
41010 2008-10-19  Bruno Haible  <bruno@clisp.org>
41011
41012         * modules/bcopy (Depends-on): Add strings.
41013         (Include): Specify <strings.h>.
41014
41015 2008-10-19  Bruno Haible  <bruno@clisp.org>
41016
41017         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
41018
41019 2008-10-19  Bruno Haible  <bruno@clisp.org>
41020
41021         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
41022         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
41023         mingw.
41024
41025 2008-10-19  Bruno Haible  <bruno@clisp.org>
41026
41027         * lib/atanl.c: Don't include isnanl.h.
41028         * lib/cosl.c: Likewise.
41029         * lib/ldexpl.c: Likewise.
41030         * lib/logl.c: Likewise.
41031         * lib/sinl.c: Likewise.
41032         * lib/sqrtl.c: Likewise.
41033         * lib/tanl.c: Likewise.
41034
41035         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
41036         * lib/isnanf.h: Remove file.
41037         * lib/isnand.h: Remove file.
41038         * lib/isnanl.h: Remove file.
41039         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
41040         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
41041         macros.
41042         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
41043         HAVE_ISNANF, don't define it as a C macro.
41044         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
41045         HAVE_ISNAND, don't define it as a C macro.
41046         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
41047         HAVE_ISNANL, don't define it as a C macro.
41048         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
41049         HAVE_ISNAN[FDL].
41050         * modules/isnanf (Files): Remove lib/isnanf.h.
41051         (Depends-on): Add math.
41052         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
41053         (Include): Specify <math.h> instead of isnanf.h.
41054         * modules/isnand (Files): Remove lib/isnand.h.
41055         (Depends-on): Add math.
41056         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
41057         (Include): Specify <math.h> instead of isnand.h.
41058         * modules/isnanl (Files): Remove lib/isnanl.h.
41059         (Depends-on): Add math.
41060         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
41061         (Include): Specify <math.h> instead of isnanl.h.
41062         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
41063         HAVE_ISNAN[FDL].
41064         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
41065         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
41066         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
41067         * NEWS: Mention the change.
41068
41069 2008-10-18  Bruno Haible  <bruno@clisp.org>
41070
41071         Add getusershell(), setusershell(), endusershell() declarations to
41072         <unistd.h>.
41073         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
41074         declarations.
41075         * lib/getusershell.c: Include unistd.h.
41076         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
41077         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
41078         HAVE_GETUSERSHELL.
41079         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
41080         and HAVE_GETUSERSHELL.
41081         * modules/getusershell (Depends-on): Add unistd, extensions.
41082         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
41083         (Include): Specify <unistd.h>.
41084         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
41085         HAVE_GETUSERSHELL.
41086
41087 2008-10-18  Bruno Haible  <bruno@clisp.org>
41088
41089         Add a getloadavg() declaration to <stdlib.h>.
41090         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
41091         getloadavg declaration.
41092         (getloadavg): New declaration.
41093         * lib/getloadavg.c: Include <stdlib.h> first.
41094         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
41095         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
41096         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
41097         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
41098         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
41099         * modules/getloadavg (Depends-on): Add stdlib, extensions.
41100         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
41101         (Include): Specify <stdlib.h>.
41102         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
41103         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
41104
41105 2008-10-18  Bruno Haible  <bruno@clisp.org>
41106
41107         * lib/dirchownmod.c: Don't include lchmod.h.
41108
41109         Move the lchmod() declaration to <sys/stat.h>.
41110         * lib/lchmod.h: Remove file.
41111         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
41112         (lchmod): New declaration, moved here from lib/lchown.h.
41113         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
41114         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
41115         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
41116         and HAVE_LCHMOD.
41117         * modules/lchmod (Files): Remove lib/lchmod.h.
41118         (Depends-on): Add sys_stat, extensions.
41119         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
41120         (Include): Specify <sys/stat.h> instead of lchmod.h.
41121         * modules/sys_stat (Depends-on): Add link-warning.
41122         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
41123         definition of GL_LINK_WARNING.
41124         * NEWS: Mention the change.
41125
41126 2008-10-18  Bruno Haible  <bruno@clisp.org>
41127
41128         * lib/fchdir.c: Don't include dirfd.h.
41129         * lib/fts.c: Likewise.
41130         * lib/getcwd.c: Likewise.
41131         * lib/glob.c: Likewise.
41132
41133         Move the dirfd() declaration to <dirent.h>.
41134         * lib/dirfd.h: Remove file.
41135         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
41136         (dirfd): New declaration.
41137         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
41138         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
41139         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
41140         HAVE_DECL_DIRFD.
41141         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
41142         HAVE_DECL_DIRFD.
41143         * modules/dirfd (Files): Remove lib/dirfd.h.
41144         (Depends-on): Add dirent, extensions.
41145         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
41146         (Include): Specify <dirent.h> instead of dirfd.h.
41147         * modules/dirent (Depends-on): Add link-warning.
41148         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
41149         definition of GL_LINK_WARNING.
41150         * NEWS: Mention the change.
41151
41152 2008-10-18  Bruno Haible  <bruno@clisp.org>
41153
41154         Move the euidaccess() declaration to <unistd.h>.
41155         * lib/euidaccess.h: Remove file.
41156         * lib/unistd.in.h (euidaccess): New declaration.
41157         * lib/euidaccess.c: Don't include euidaccess.h.
41158         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
41159         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
41160         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
41161         and HAVE_EUIDACCESS.
41162         * modules/euidaccess (Files): Remove lib/euidaccess.h.
41163         (Depends-on): Add unistd.
41164         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
41165         (Include): Specify <unistd.h> instead of euidaccess.h.
41166         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
41167         HAVE_EUIDACCESS.
41168         * NEWS: Mention the change.
41169
41170 2008-10-18  Bruno Haible  <bruno@clisp.org>
41171
41172         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
41173
41174         Move the getdomainname() declaration to <unistd.h>.
41175         * lib/getdomainname.h: Remove file.
41176         * lib/unistd.in.h (getdomainname): New declaration.
41177         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
41178         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
41179         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
41180         HAVE_GETDOMAINNAME.
41181         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
41182         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
41183         * modules/getdomainname (Files): Remove lib/getdomainname.h.
41184         (Depends-on): Add unistd, extensions.
41185         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
41186         (Includes): Specify <unistd.h> instead of getdomainname.h.
41187         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
41188         HAVE_GETDOMAINNAME.
41189         * NEWS: Mention the change.
41190
41191 2008-10-18  Bruno Haible  <bruno@clisp.org>
41192
41193         * modules/dirent: New file.
41194         * m4/dirent_h.m4: New file.
41195         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
41196         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
41197         * modules/fchdir (Files): Remove lib/dirent.in.h.
41198         (Depends-on): Add dirent.
41199         (Makefile.am): Move rules to modules/dirent.
41200         * doc/posix-headers/dirent.texi: Mention the new module.
41201
41202 2008-10-18  Bruno Haible  <bruno@clisp.org>
41203
41204         Avoid -Wunused-parameter warnings in public gnulib header files.
41205         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
41206         macro.
41207         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
41208
41209 2008-10-18  Bruno Haible  <bruno@clisp.org>
41210
41211         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
41212         * doc/glibc-functions/error.texi: Mention the module 'error'.
41213         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
41214         * doc/glibc-functions/getdomainname.texi: Mention the module
41215         'getdomainname'.
41216         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
41217         * doc/glibc-functions/getpagesize.texi: Mention the module
41218         'getpagesize'.
41219         * doc/glibc-functions/getusershell.texi: Mention the module
41220         'getusershell'.
41221         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
41222         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
41223         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
41224         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
41225         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
41226         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
41227         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
41228         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
41229         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
41230         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
41231         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
41232         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
41233         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
41234         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
41235
41236 2008-10-17  Bruno Haible  <bruno@clisp.org>
41237
41238         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
41239         HP-UX and IRIX, use -0.0L.
41240         * tests/test-ceill.c (minus_zero): Likewise.
41241         * tests/test-floorl.c (minus_zero): Likewise.
41242         * tests/test-frexpl.c (minus_zero): Likewise.
41243         * tests/test-isnan.c (minus_zerol): Likewise.
41244         * tests/test-isnanl.h (minus_zero): Likewise.
41245         * tests/test-ldexpl.c (minus_zero): Likewise.
41246         * tests/test-roundl.c (minus_zero): Likewise.
41247         * tests/test-signbit.c (minus_zerol): Likewise.
41248         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
41249         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
41250         * tests/test-truncl.c (minus_zero): Likewise.
41251         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
41252         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
41253         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
41254         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
41255
41256 2008-10-17  Bruno Haible  <bruno@clisp.org>
41257
41258         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
41259         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
41260         that it gets activated only for gcc >= 3.0.
41261         * lib/dirent.in.h: Likewise.
41262         * lib/errno.in.h: Likewise.
41263         * lib/fcntl.in.h: Likewise.
41264         * lib/float.in.h: Likewise.
41265         * lib/iconv.in.h: Likewise.
41266         * lib/inttypes.in.h: Likewise.
41267         * lib/locale.in.h: Likewise.
41268         * lib/math.in.h: Likewise.
41269         * lib/netdb.in.h: Likewise.
41270         * lib/netinet_in.in.h: Likewise.
41271         * lib/search.in.h: Likewise.
41272         * lib/signal.in.h: Likewise.
41273         * lib/spawn.in.h: Likewise.
41274         * lib/stdarg.in.h: Likewise.
41275         * lib/stdint.in.h: Likewise.
41276         * lib/stdio.in.h: Likewise.
41277         * lib/stdlib.in.h: Likewise.
41278         * lib/string.in.h: Likewise.
41279         * lib/strings.in.h: Likewise.
41280         * lib/sys_file.in.h: Likewise.
41281         * lib/sys_ioctl.in.h: Likewise.
41282         * lib/sys_select.in.h: Likewise.
41283         * lib/sys_socket.in.h: Likewise.
41284         * lib/sys_stat.in.h: Likewise.
41285         * lib/sys_time.in.h: Likewise.
41286         * lib/sysexits.in.h: Likewise.
41287         * lib/time.in.h: Likewise.
41288         * lib/unistd.in.h: Likewise.
41289         * lib/wchar.in.h: Likewise.
41290         * lib/wctype.in.h: Likewise.
41291         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
41292
41293 2008-10-17  Jim Meyering  <meyering@redhat.com>
41294
41295         ignore-value: don't depend on inline module
41296         * modules/ignore-value (Depends-on): Remove 'inline'.
41297         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
41298         Suggestion from Bruno Haible.
41299
41300 2008-10-17  Bruno Haible  <bruno@clisp.org>
41301
41302         New implementation of condition variables for Win32.
41303         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
41304         (gl_linked_waitqueue_t): New type.
41305         (gl_cond_t): Use it.
41306         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
41307         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
41308         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
41309         (glthread_cond_init_func, glthread_cond_wait_func,
41310         glthread_cond_timedwait_func, glthread_cond_signal_func,
41311         glthread_cond_broadcast_func, glthread_cond_destroy_func):
41312         Reimplemented on the basis of gl_linked_waitqueue_t.
41313         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
41314         gl_waitqueue_t.
41315         (gl_rwlock_t): Update.
41316         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
41317
41318 2008-10-17  Simon Josefsson  <simon@josefsson.org>
41319
41320         * modules/recvfrom (Depends-on): Add dependency on getpeername.
41321         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
41322
41323 2008-10-17  Jim Meyering  <meyering@redhat.com>
41324
41325         ignore-value: new module
41326         * modules/ignore-value: New file.
41327         * lib/ignore-value.h: New file.
41328         * MODULES.html.sh (Compiler warning management): New section,
41329         just for this module.  More to come.
41330
41331 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
41332
41333         open-safer.c: avoid 'signed and unsigned in conditional...' warning
41334         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
41335         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
41336
41337 2008-10-16  Jim Meyering  <meyering@redhat.com>
41338
41339         openat-die.c: avoid 'no previous prototype' warning
41340         * lib/openat-die.c: Include "openat.h".
41341         Reported by Reuben Thomas <rrt@sc3d.org>.
41342
41343 2008-10-16  Simon Josefsson  <simon@josefsson.org>
41344
41345         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
41346         * lib/netdb.in.h: Fix typo.
41347         Reported by Bruno Haible  <bruno@clisp.org>
41348
41349         * lib/netdb.in.h: Include sys/socket.h for platforms without
41350         netdb.h, to get structures like hostent on MinGW.
41351         * modules/netdb (Depends-on): Add sys_socket.
41352
41353 2008-10-15  Simon Josefsson  <simon@josefsson.org>
41354
41355         * modules/netdb, modules/netdb-tests: New file.
41356         * m4/netdb_h.m4: New file.
41357         * lib/netdb.in.h: Add, currently just an empty file pending
41358         definitions.
41359         * tests/test-netdb.c: New file.
41360         * doc/posix-headers/netdb.texi: Mention that we replace it if
41361         needed.
41362         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
41363         netdb.
41364
41365 2008-10-15  Simon Josefsson  <simon@josefsson.org>
41366
41367         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
41368         with code.
41369
41370 2008-10-13  Bruno Haible  <bruno@clisp.org>
41371
41372         * lib/glthread/cond.c (glthread_cond_wait_func,
41373         glthread_cond_timedwait_func): Add a comment.
41374
41375 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
41376
41377         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
41378         * tests/test-select.c: Likewise,
41379
41380 2008-10-13  Bruno Haible  <bruno@clisp.org>
41381
41382         * lib/glthread/cond.c (glthread_cond_wait_func,
41383         glthread_cond_timedwait_func): Fix variable name.
41384         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
41385
41386 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
41387
41388         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
41389         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
41390         struct sockaddr.sa_len.
41391         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
41392
41393 2008-10-13  Simon Josefsson  <simon@josefsson.org>
41394
41395         * build-aux/pmccabe2html: Add css and css_url parameters.
41396
41397 2008-10-12  Bruno Haible  <bruno@clisp.org>
41398
41399         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
41400         calling aclx_get.
41401         Reported by Rainer Tammer <tammer@tammer.net>.
41402
41403 2008-10-12  Bruno Haible  <bruno@clisp.org>
41404
41405         Use msvcrt aware primitives for creation/termination of Win32 threads.
41406         * lib/glthread/thread.c: Include <process.h>.
41407         (glthread_create_func): Use _beginthreadex instead of CreateThread.
41408         (wrapper_func): Update signature.
41409         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
41410
41411 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
41412             Bruno Haible  <bruno@clisp.org>
41413
41414         Provide a Win32 implementation of the 'cond' module.
41415         * lib/glthread/cond.h [USE_WIN32]: New implementation.
41416         * lib/glthread/cond.c (glthread_cond_init_func,
41417         glthread_cond_wait_func, glthread_cond_timedwait_func,
41418         glthread_cond_signal_func, glthread_cond_broadcast_func,
41419         glthread_cond_destroy_func) [USE_WIN32]: New functions.
41420         * modules/cond (Dependencies): Add gettimeofday.
41421
41422 2008-10-11  Bruno Haible  <bruno@clisp.org>
41423
41424         Make sleep work on older versions of mingw.
41425         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
41426         only whether it exists.
41427         * doc/posix-functions/sleep.texi: Mention the problem with older
41428         versions of mingw.
41429
41430 2008-10-11  Bruno Haible  <bruno@clisp.org>
41431
41432         New module 'shutdown'.
41433         * modules/shutdown: New file.
41434         * lib/sys_socket.in.h (shutdown): New declaration.
41435         * lib/winsock.c (shutdown): New function.
41436         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
41437         GNULIB_SHUTDOWN.
41438         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
41439         * doc/posix-functions/shutdown.texi: Document the new module.
41440
41441 2008-10-11  Jim Meyering  <meyering@redhat.com>
41442
41443         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
41444
41445 2008-10-11  Bruno Haible  <bruno@clisp.org>
41446
41447         New module 'fclose'.
41448         * modules/fclose: New file.
41449         * lib/stdio.in.h (fclose): New declaration.
41450         * lib/fclose.c: New file.
41451         * m4/fclose.m4: New file.
41452         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
41453         REPLACE_FCLOSE.
41454         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
41455         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
41456         REPLACE_FCLOSE.
41457         * modules/close (Depends-on): fclose.
41458         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
41459
41460 2008-10-11  Bruno Haible  <bruno@clisp.org>
41461
41462         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
41463         set errno and don't call _close.
41464
41465 2008-10-10  Bruno Haible  <bruno@clisp.org>
41466
41467         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
41468         ACL, not afterwards. Fixes test failure on Cygwin.
41469
41470 2008-10-09  Ben Pfaff  <blp@gnu.org>
41471
41472         * build-aux/announce-gen: Fix gnulib version related part of usage
41473         message.  Die with a useful error message if no tarballs are
41474         found.
41475
41476 2008-10-10  Jim Meyering  <meyering@redhat.com>
41477
41478         bootstrap: use git's --depth=N option only if it's supported
41479         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
41480         recognize the --depth option.  Reported by Pádraig Brady.
41481
41482 2008-10-09  Bruno Haible  <bruno@clisp.org>
41483
41484         New module 'ioctl'.
41485         * modules/ioctl: New file.
41486         * lib/sys_socket.in.h (ioctl): Remove declaration.
41487         * lib/winsock.c: Include <sys/ioctl.h>.
41488         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
41489         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
41490         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
41491         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
41492         * doc/posix-functions/ioctl.texi: Mention the new module.
41493
41494 2008-10-09  Bruno Haible  <bruno@clisp.org>
41495
41496         New module 'sys_ioctl'.
41497         * lib/sys_ioctl.in.h: New file.
41498         * m4/sys_ioctl_h.m4: New file.
41499         * modules/sys_ioctl: New file.
41500         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
41501
41502 2008-10-09  Bruno Haible  <bruno@clisp.org>
41503
41504         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
41505         * lib/winsock.c: Include <stdarg.h>.
41506         (rpl_ioctl): Change to second argument 'int' and then varargs.
41507
41508 2008-10-09  Bruno Haible  <bruno@clisp.org>
41509
41510         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
41511         when the sys_socket module is present and the system has <winsock2.h>.
41512
41513 2008-10-09  Bruno Haible  <bruno@clisp.org>
41514
41515         * doc/posix-functions/close.texi: Mention module 'close' instead of
41516         module 'sys_socket'.
41517
41518 2008-10-09  Bruno Haible  <bruno@clisp.org>
41519
41520         * doc/glibc-headers/sys_ioctl.texi: New file.
41521         * doc/gnulib.texi: Include it.
41522
41523 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
41524             Bruno Haible  <bruno@clisp.org>
41525
41526         Combine the two replacements of 'close'.
41527         * lib/sys_socket.in.h (close): Define to a reminder to include
41528         <unistd.h>.
41529         (_gl_close_fd_maybe_socket): New declaration.
41530         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
41531         * lib/winsock.c (close): Remove undefinition.
41532         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
41533         needed for the gnulib module 'close'.
41534         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
41535         define to an error symbol or to a warning, if suitable.
41536         * lib/close.c: Include <sys/socket.h>.
41537         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
41538         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
41539         UNISTD_H_HAVE_WINSOCK2_H.
41540         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
41541         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
41542         UNISTD_H_HAVE_WINSOCK2_H.
41543         * modules/sys_socket (Files): Add m4/unistd_h.m4.
41544         (configure.ac): Set a module indicator.
41545         (Makefile.am): Substitute GNULIB_CLOSE.
41546         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
41547         * modules/poll-tests (Depends-on): Add close.
41548         * modules/select-tests (Depends-on): Likewise.
41549
41550 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
41551             Bruno Haible  <bruno@clisp.org>
41552
41553         New module 'close'.
41554         * modules/close: New file.
41555         * lib/unistd.in.h (close): Move declaration out of the
41556         FCHDIR_REPLACEMENT scope.
41557         (_gl_unregister_fd): New declaration.
41558         * lib/close.c: New file.
41559         * lib/fchdir.c (rpl_close): Remove function.
41560         * m4/close.m4: New file.
41561         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
41562         close.
41563         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
41564         REPLACE_CLOSE.
41565         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
41566         REPLACE_CLOSE.
41567         * modules/fchdir (Depends-on): Add close.
41568
41569 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
41570             Bruno Haible  <bruno@clisp.org>
41571
41572         * lib/fcntl.in.h (open): Simplify conditionals.
41573         (_gl_register_fd): New declaration.
41574         * lib/fchdir.c (rpl_open): Remove function.
41575         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
41576         also.
41577         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
41578         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
41579         open.
41580
41581 2008-10-09  Jim Meyering  <meyering@redhat.com>
41582
41583         GNUmakefile: use the more name-space-friendly "_version"
41584         * top/GNUmakefile (_dummy): Update.
41585         (_version): Rename from "version".
41586
41587 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
41588             Bruno Haible  <bruno@clisp.org>
41589
41590         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
41591         rpl_close.
41592         (_gl_register_fd): New function, extracted from rpl_open.
41593         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
41594         (rpl_open, rpl_opendir): Use _gl_register_fd.
41595
41596 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
41597
41598         Fix organization of 'open' replacement.
41599         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
41600         (gl_FUNC_OPEN): Use it.
41601         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
41602
41603 2008-10-08  Bruno Haible  <bruno@clisp.org>
41604
41605         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
41606
41607 2008-10-08  Simon Josefsson  <simon@josefsson.org>
41608
41609         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
41610         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
41611         listen).
41612
41613 2008-10-08  Eric Blake  <ebb9@byu.net>
41614
41615         GNUmakefile: add 'make version' target
41616         * top/GNUmakefile (_curr-ver): Split version update rules...
41617         (version): ...into a target.
41618
41619 2008-10-07  Bruno Haible  <bruno@clisp.org>
41620
41621         Use a more portable replacement expression for -0.0L.
41622         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
41623         instead of -0.0L. Fix m4 quotation.
41624
41625         * tests/test-signbit.c: Include <float.h>.
41626         (minus_zero): New variable.
41627         (test_signbitl): Use minus_zero instead of -zero.
41628         * modules/signbit-tests (Depends-on): Add float.
41629
41630         * tests/test-ceill.c: Include <float.h>.
41631         (zero): Remove variable.
41632         (minus_zero): New variable.
41633         (main): Use minus_zero instead of -zero.
41634         * modules/ceill-tests (Depends-on): Add float.
41635
41636         * tests/test-floorl.c: Include <float.h>.
41637         (zero): Remove variable.
41638         (minus_zero): New variable.
41639         (main): Use minus_zero instead of -zero.
41640         * modules/floorl-tests (Depends-on): Add float.
41641
41642         * tests/test-roundl.c: Include <float.h>.
41643         (zero): Remove variable.
41644         (minus_zero): New variable.
41645         (main): Use minus_zero instead of -zero.
41646         * modules/roundl-tests (Depends-on): Add float.
41647
41648         * tests/test-truncl.c: Include <float.h>.
41649         (zero): Remove variable.
41650         (minus_zero): New variable.
41651         (main): Use minus_zero instead of -zero.
41652         * modules/truncl-tests (Depends-on): Add float.
41653
41654         * tests/test-frexpl.c (zero): Remove variable.
41655         (minus_zero): New variable.
41656         (main): Use minus_zero instead of -zero.
41657         * modules/frexpl-tests (Depends-on): Add float.
41658
41659         * tests/test-isnan.c (zerol): Remove variable.
41660         (minus_zerol): New variable.
41661         (test_long_double): Use minus_zerol instead of -zerol.
41662         * modules/isnan-tests (Depends-on): Add float.
41663
41664         * tests/test-isnanl.h (zero): Remove variable.
41665         (minus_zero): New variable.
41666         (main): Use minus_zero instead of -zero.
41667         * modules/isnanl-nolibm-tests (Depends-on): Add float.
41668         * modules/isnanl-tests (Depends-on): Add float.
41669
41670         * tests/test-ldexpl.c (zero): Remove variable.
41671         (minus_zero): New variable.
41672         (main): Use minus_zero instead of -zero.
41673         * modules/ldexpl-tests (Depends-on): Add float.
41674
41675         * tests/test-snprintf-posix.h (zerol): Remove variable.
41676         (minus_zerol): New variable.
41677         (test_function): Use minus_zerol instead of -zerol.
41678         * modules/snprintf-posix-tests (Depends-on): Add float.
41679         * modules/vsnprintf-posix-tests (Depends-on): Add float.
41680
41681         * tests/test-sprintf-posix.h (zerol): Remove variable.
41682         (minus_zerol): New variable.
41683         (test_function): Use minus_zerol instead of -zerol.
41684         * modules/sprintf-posix-tests (Depends-on): Add float.
41685         * modules/vsprintf-posix-tests (Depends-on): Add float.
41686
41687         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
41688         (minus_zerol): New variable.
41689         (test_function): Use minus_zerol instead of -zerol.
41690         * modules/vasnprintf-posix-tests (Depends-on): Add float.
41691
41692         * tests/test-vasprintf-posix.c (zerol): Remove variable.
41693         (minus_zerol): New variable.
41694         (test_function): Use minus_zerol instead of -zerol.
41695         * modules/vasprintf-posix-tests (Depends-on): Add float.
41696
41697 2008-10-07  Simon Josefsson  <simon@josefsson.org>
41698
41699         * MODULES.html.sh (Support for building documentation): Mention
41700         pmccabe2html.  Sort entries.
41701
41702         Add pmccabe2html module, from gnupdf.
41703         * build-aux/pmccabe.css: New file.
41704         * build-aux/pmccabe2html: New file.
41705         * m4/pmccabe2html.m4: New file.
41706         * modules/pmccabe2html: New file.
41707
41708 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
41709
41710         flock: new module
41711         * MODULES.html.sh: Add to list of modules.
41712         * lib/flock.c: flock implementation for Windows and Unix systems
41713         which have fcntl.
41714         * doc/glibc-functions/flock.texi: Update documentation.
41715         * lib/sys_file.in.h: <sys/file.h> header file.
41716         * m4/flock.m4: M4 macros.
41717         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
41718         * modules/flock: flock module.
41719         * modules/flock-tests: flock tests module.
41720         * modules/sys_file: sys/file.h module.
41721         * tests/test-flock.c: test suite for flock.
41722
41723 2008-10-06  Jim Meyering  <meyering@redhat.com>
41724
41725         bootstrap: check for LT_INIT more portably still ;-)
41726         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
41727         Spotted by Bruno Haible.
41728
41729 2008-10-06  Eric Blake  <ebb9@byu.net>
41730
41731         test-signbit: avoid tripping Irix cc bug on -0.0L
41732         * tests/test-signbit.c (minus_zerol): Delete, and replace with
41733         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
41734         entire testsuite consistent and avoids an Irix 6.2 bug.
41735
41736 2008-10-05  Bruno Haible  <bruno@clisp.org>
41737             Jim Meyering  <jim@meyering.net>
41738
41739         Add an option for ignoring EPIPE during close_stdout.
41740         * lib/closeout.h: Include <stdbool.h>.
41741         (close_stdout_set_ignore_EPIPE): New declaration.
41742         * lib/closeout.c: Include <stdbool.h>.
41743         (ignore_EPIPE): New variable.
41744         (close_stdout_set_ignore_EPIPE): New function.
41745         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
41746         * lib/close-stream.c (close_stream): Mention the possible EPIPE
41747         failure.
41748         * modules/closeout (Depends-on): Add stdbool.
41749
41750 2008-10-05  Bruno Haible  <bruno@clisp.org>
41751
41752         * modules/accept: New file.
41753         * modules/bind: New file.
41754         * modules/connect: New file.
41755         * modules/getpeername: New file.
41756         * modules/getsockname: New file.
41757         * modules/getsockopt: New file.
41758         * modules/listen: New file.
41759         * modules/recv: New file.
41760         * modules/recvfrom: New file.
41761         * modules/send: New file.
41762         * modules/sendto: New file.
41763         * modules/setsockopt: New file.
41764         * modules/socket: New file.
41765         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
41766         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
41767         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
41768         the particular module is requested. Add a link warning when the
41769         particular module is not requested.
41770         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
41771         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
41772         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
41773         the particular module is requested.
41774         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
41775         gl_SYS_SOCKET_H_DEFAULTS): New macros.
41776         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
41777         * modules/sys_socket (Depends-on): Add link-warning.
41778         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
41779         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
41780         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
41781         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
41782         GL_LINK_WARNING.
41783         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
41784         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
41785         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
41786         * doc/posix-functions/getpeername.texi: Mention the new module
41787         'getpeername'.
41788         * doc/posix-functions/getsockname.texi: Mention the new module
41789         'getsockname'.
41790         * doc/posix-functions/getsockopt.texi: Mention the new module
41791         'getsockopt'.
41792         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
41793         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
41794         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
41795         * doc/posix-functions/send.texi: Mention the new module 'send'.
41796         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
41797         * doc/posix-functions/setsockopt.texi: Mention the new module
41798         'setsockopt'.
41799         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
41800         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
41801         listen, connect, accept.
41802         * modules/select-tests (Depends-on): Likewise.
41803
41804 2008-10-05  Bruno Haible  <bruno@clisp.org>
41805
41806         * lib/winsock.c (strerror): Remove unused #undef.
41807         (rpl_close): Remove unused local variable.
41808
41809         * modules/sys_socket (Depends-on); Add errno.
41810
41811 2008-10-05  Bruno Haible  <bruno@clisp.org>
41812
41813         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
41814         (select): Add a link warning when the 'select' module is not used.
41815         * modules/sys_select (Depends-on): Add link-warning.
41816         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
41817         Suggested by Paolo Bonzini.
41818
41819 2008-10-05  Jim Meyering  <meyering@redhat.com>
41820
41821         bootstrap: check for LT_INIT more portably
41822         * build-aux/bootstrap: Avoid using grep -E, since it's not
41823         portable enough.  Suggestion from Bruno Haible.
41824
41825 2008-10-05  Bruno Haible  <bruno@clisp.org>
41826
41827         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
41828         as being fixed by gnulib.
41829
41830 2008-10-05  Bruno Haible  <bruno@clisp.org>
41831
41832         * modules/select-tests: New file, mostly copied from
41833         modules/sys_select-tests.
41834         * tests/test-select.c: New file, mostly copied from
41835         tests/test-sys_select.c.
41836         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
41837         * modules/sys_select-tests (Depends-on): Remove all dependencies.
41838         (Makefile.am): Remove test_sys_select_LDADD.
41839
41840         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
41841         to an undefined symbol, for an error message.
41842         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
41843         (gl_SYS_SELECT_H_DEFAULTS): New macro.
41844         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
41845         winsock-select.c here.
41846         * modules/sys_select (Files): Remove lib/winsock-select.c.
41847         (Depends-on): Remove alloca.
41848         (Makefile.am): Substitute GNULIB_SELECT.
41849         * modules/select: New file.
41850         * doc/posix-functions/select.texi: Update.
41851
41852 2008-10-05  Bruno Haible  <bruno@clisp.org>
41853
41854         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
41855         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
41856         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
41857         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
41858         getdtablesize.
41859         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
41860         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
41861
41862 2008-10-05  Bruno Haible  <bruno@clisp.org>
41863
41864         * modules/getdtablesize-tests: New file.
41865         * tests/test-getdtablesize.c: New file.
41866
41867         New module 'getdtablesize'.
41868         * lib/unistd.in.h (getdtablesize): New declaration.
41869         * lib/getdtablesize.c: New file.
41870         * m4/getdtablesize.m4: New file.
41871         * modules/getdtablesize: New file.
41872         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
41873         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
41874         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
41875         HAVE_GETDTABLESIZE.
41876         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
41877
41878 2008-10-05  Bruno Haible  <bruno@clisp.org>
41879
41880         * modules/sched (Makefile.am): Fix typo.
41881         Reported by Simon Josefsson.
41882
41883 2008-10-05  Jim Meyering  <meyering@redhat.com>
41884
41885         bootstrap: check for LT_INIT, too
41886         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
41887         are deprecated.  Suggestion from Ralf Wildenhues.
41888
41889 2008-10-05  Bruno Haible  <bruno@clisp.org>
41890
41891         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
41892         overriding them by ours.
41893         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
41894
41895 2008-10-05  Jim Meyering  <meyering@redhat.com>
41896
41897         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
41898         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
41899         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
41900
41901 2008-10-04  Bruno Haible  <bruno@clisp.org>
41902
41903         * modules/dup2 (License): Change to LGPLv2+.
41904         * modules/sleep (License): Likewise.
41905         * modules/perror (License): Likewise.
41906         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
41907         Blake.
41908         * modules/signal (License): Likewise.
41909         * modules/sigprocmask (License): Likewise.
41910         * modules/raise (License): Change to LGPLv2+, with approval by Jim
41911         Meyering.
41912
41913 2008-10-04  Bruno Haible  <bruno@clisp.org>
41914
41915         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
41916         Reported by Rainer Tammer <tammer@tammer.net>.
41917
41918 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
41919             Bruno Haible  <bruno@clisp.org>
41920
41921         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
41922         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
41923         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
41924
41925 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
41926
41927         filevercmp: new module
41928         * lib/filevercmp.h: New function filevercmp comparing version strings.
41929         * lib/filevercmp.c: Implementation of filevercmp function.
41930         * modules/filevercmp: Module metadata.
41931         * tests/test-filevercmp.c: Unit test for new module.
41932         * modules/filevercmp-tests: Unit test metadata.
41933         * MODULES.html.sh: Add filevercmp module.
41934
41935 2008-10-03  Bruno Haible  <bruno@clisp.org>
41936
41937         * lib/c-ctype.h: Add comment.
41938         Reported by Jim Meyering.
41939
41940 2008-10-02  Bruno Haible  <bruno@clisp.org>
41941
41942         * modules/posix_spawn-internal (Depends-on): Add 'open'.
41943
41944 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
41945
41946         * build-aux/bootstrap: Allow renaming bootstrap, and change the
41947         name of bootstrap.conf accordingly.
41948
41949 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
41950
41951         * build-aux/bootstrap: Install git-merge-changelog configuration
41952         items into .gitconfig if needed.
41953
41954 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
41955
41956         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
41957         git repository, and initialize/update it accordingly.
41958
41959 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
41960
41961         * modules/fsync-tests: New file.
41962         * tests/test-fsync.c: New file.
41963
41964         New module 'fsync'.
41965         * lib/fsync.c: New file.
41966         * m4/fsync.m4: New file.
41967         * modules/fsync: New file.
41968         * lib/unistd.in.h (fsync): New declaration.
41969         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
41970         GNULIB_FSYNC and HAVE_FSYNC.
41971         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
41972         * MODULES.html.sh (posix_functions): Add fsync.
41973         * doc/posix-functions/fsync.texi: Mention the new module.
41974
41975 2008-10-02  Jim Meyering  <meyering@redhat.com>
41976
41977         fts.c: sync with similar code from coreutils' remove.c
41978         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
41979         Guard also with "#if defined __linux__", since for now at least,
41980         this code is Linux-kernel-specific.
41981
41982 2008-10-02  Jim Meyering  <meyering@redhat.com>
41983
41984         fts: bug fixes
41985         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
41986         Include <sys/vfs.h>, not <sys/statfs.h>.
41987
41988         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
41989         Include <sys/vfs.h>, not <sys/statfs.h>.
41990
41991 2008-10-01  Bruno Haible  <bruno@clisp.org>
41992
41993         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
41994         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
41995         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
41996         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
41997         * doc/posix-functions/posix_spawnp.texi: Likewise.
41998         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
41999         whether posix_spawn actually works.
42000         * m4/pipe.m4 (gl_PIPE): Likewise.
42001         * modules/execute (Files): Add m4/posix_spawn.m4.
42002         * modules/pipe (Files): Add m4/posix_spawn.m4.
42003         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
42004
42005 2008-10-01  Jim Meyering  <meyering@redhat.com>
42006
42007         remove trailing spaces
42008         * NEWS: Likewise.
42009         * lib/poll.c (poll): Likewise.
42010         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
42011         * lib/winsock.c (rpl_close): Likewise.
42012         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
42013         * modules/yield: Likewise.
42014         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
42015         * tests/test-sys_select.c (connect_to_socket): Likewise.
42016
42017         fts.c: adjust a new interface to be more generally useful
42018         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
42019         (fts_build): Adjust caller.
42020
42021 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42022
42023         * modules/cond-tests: New file.
42024         * tests/test-cond.c: New file.
42025
42026 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42027             Bruno Haible  <bruno@clisp.org>
42028
42029         * modules/cond (Dependencies): Add errno, time.
42030         * lib/glthread/cond.h: Include <time.h>.
42031         (gl_cond_define, gl_cond_define_initialized): Use the same definition
42032         across platforms.
42033
42034 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42035             Bruno Haible  <bruno@clisp.org>
42036
42037         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
42038
42039 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42040             Bruno Haible  <bruno@clisp.org>
42041
42042         * modules/tls-tests (Depends-on): Add thread, yield.
42043         (configure.ac): Remove all checks.
42044         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
42045         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
42046         gl_thread_self): Remove definitions. Include glthread/thread.h and
42047         glthread/yield.h instead.
42048         (test_tls): Pass an additional NULL argument to gl_thread_join.
42049
42050 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42051             Bruno Haible  <bruno@clisp.org>
42052
42053         * modules/lock-tests (Depends-on): Add thread, yield.
42054         (configure.ac): Remove all checks.
42055         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
42056         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
42057         gl_thread_self): Remove definitions. Include glthread/thread.h and
42058         glthread/yield.h instead.
42059         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
42060         additional NULL argument to gl_thread_join.
42061
42062 2008-09-30  Bruno Haible  <bruno@clisp.org>
42063
42064         Fix the Win32 implementation of the 'thread' module.
42065         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
42066         pointer type.
42067         (gl_thread_self): Invoke gl_thread_self_func.
42068         (gl_thread_self_func): New declaration.
42069         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
42070         (do_init_self_key, init_self_key): New functions.
42071         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
42072         Remove some fields.
42073         (running_threads, running_lock): Remove variables.
42074         (get_current_thread_handle): New function.
42075         (gl_thread_self_func, wrapper_func, glthread_create_func,
42076         glthread_join_func, gl_thread_exit_func): Largely rewritten and
42077         simplified.
42078
42079 2008-09-30  Bruno Haible  <bruno@clisp.org>
42080
42081         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
42082         files.
42083
42084 2008-09-30  Jim Meyering  <meyering@redhat.com>
42085
42086         fts.m4: correct the test for statfs.f_type
42087         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
42088         when checking for statfs.f_type.
42089
42090 2008-09-15  Simon Josefsson  <simon@josefsson.org>
42091
42092         tests: avoid some compiler warnings
42093         * tests/test-memchr.c (main): Pass NULL indirectly.
42094         * tests/test-getdate.c (main): Remove unused variable 'ret'.
42095
42096 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
42097
42098         getdate.y: disallow countable dayshifts like "4 yesterday ago"
42099         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
42100         exactly specified dayshifts.
42101         (dayshift): New rule.
42102         (rel): Add dayshift.
42103         (relative_time_table) [tomorrow, yesterday, today, now]:
42104         Use tDAY_SHIFT in place of tDAY_UNIT.
42105         * tests/test-getdate.c: Add tests for now-disallowed countable
42106         dayshifts, e.g., "4 yesterday ago".
42107
42108 2008-09-29  Bruno Haible  <bruno@clisp.org>
42109
42110         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
42111         * tests/test-posix_spawn1.in.sh: Renamed from
42112         tests/test-posix_spawn.in.sh.
42113         * tests/test-posix_spawn2.c: New file.
42114         * tests/test-posix_spawn2.in.sh: New file.
42115         * modules/posix_spawnp-tests (Files): Update.
42116         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
42117
42118 2008-09-29  Bruno Haible  <bruno@clisp.org>
42119
42120         Propagate effects of putenv/setenv/unsetenv to child processes.
42121         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
42122         * lib/pipe.c (create_pipe): Likewise.
42123
42124 2008-09-29  Bruno Haible  <bruno@clisp.org>
42125
42126         Enable use of shell scripts as executables in mingw.
42127         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
42128         run the program as a shell script.
42129         * lib/pipe.c (create_pipe): Likewise.
42130         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
42131         resulting array.
42132
42133 2008-09-29  Eric Blake  <ebb9@byu.net>
42134
42135         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
42136
42137 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
42138
42139         * doc/posix-functions/accept.texi: Update mingw problems.
42140         * doc/posix-functions/bind.texi: Update mingw problems.
42141         * doc/posix-functions/close.texi: Update mingw problems.
42142         * doc/posix-functions/connect.texi: Update mingw problems.
42143         * doc/posix-functions/getpeername.texi: Update mingw problems.
42144         * doc/posix-functions/getsockname.texi: Update mingw problems.
42145         * doc/posix-functions/getsockopt.texi: Update mingw problems.
42146         * doc/posix-functions/ioctl.texi: Update mingw problems.
42147         * doc/posix-functions/listen.texi: Update mingw problems.
42148         * doc/posix-functions/recv.texi: Update mingw problems.
42149         * doc/posix-functions/recvfrom.texi: Update mingw problems.
42150         * doc/posix-functions/select.texi: Update mingw problems.
42151         * doc/posix-functions/send.texi: Update mingw problems.
42152         * doc/posix-functions/sendto.texi: Update mingw problems.
42153         * doc/posix-functions/setsockopt.texi: Update mingw problems.
42154         * doc/posix-functions/socket.texi: Update mingw problems.
42155
42156 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
42157             Bruno Haible  <bruno@clisp.org>
42158
42159         * lib/sys_select.in.h: Include sys/time.h.
42160         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
42161         * modules/sys_select: Depend on sys_time.
42162         * tests/test-sys_select.c: Test that sys/select.h defines struct
42163         timeval fully.
42164
42165 2008-09-29  Bruno Haible  <bruno@clisp.org>
42166
42167         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
42168         * lib/sys_select.in.h: Likewise.
42169
42170 2008-09-29  Bruno Haible  <bruno@clisp.org>
42171
42172         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
42173
42174 2008-09-29  Bruno Haible  <bruno@clisp.org>
42175
42176         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
42177         Set LIBSOCKET instead of augmenting LIBS.
42178         * modules/sockets (Link): New section.
42179         * modules/sockets-tests (test_sockets_LDADD): New variable.
42180         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
42181         * modules/poll-tests (test_poll_LDADD): New variable.
42182         * NEWS: Document the change.
42183
42184 2008-09-29  Bruno Haible  <bruno@clisp.org>
42185
42186         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
42187         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
42188         ARPA_INET_H directly.
42189         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
42190
42191 2008-09-28  Bruno Haible  <bruno@clisp.org>
42192
42193         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
42194         from gl_HEADER_SYS_SOCKET.
42195         (gl_HEADER_SYS_SOCKET): Invoke it.
42196         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
42197
42198 2008-09-28  Bruno Haible  <bruno@clisp.org>
42199
42200         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
42201         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
42202         Needed on OSF/1 4.0.
42203
42204 2008-09-28  Bruno Haible  <bruno@clisp.org>
42205
42206         Override open more carefully.
42207         * lib/open.c (orig_open): New function.
42208         (rpl_open): Use orig_open instead of open.
42209         * lib/fcntl.in.h: Add special invocation convention.
42210         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
42211         (gl_FUNC_OPEN): Invoke it.
42212
42213         Override freopen more carefully.
42214         * lib/freopen.c (orig_freopen): New function.
42215         (rpl_freopen): Use orig_freopen instead of freopen.
42216         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
42217         (gl_FUNC_FREOPEN): Invoke it.
42218
42219         Override fopen more carefully.
42220         * lib/fopen.c (orig_fopen): New function.
42221         (rpl_fopen): Use orig_fopen instead of fopen.
42222         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
42223         (gl_FUNC_FOPEN): Invoke it.
42224         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
42225
42226 2008-09-28  Bruno Haible  <bruno@clisp.org>
42227
42228         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
42229         SIGPIPE.
42230
42231 2008-09-28  Bruno Haible  <bruno@clisp.org>
42232
42233         * tests/test-sigaction.c (handler, main): Disable the check whether
42234         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
42235         glibc systems with LinuxThreads.
42236
42237 2008-09-28  Bruno Haible  <bruno@clisp.org>
42238
42239         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
42240
42241         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
42242         with AIX xlc.
42243         * lib/fcntl.in.h (open): Likewise.
42244         Reported by Rainer Tammer <tammer@tammer.net>.
42245
42246 2008-09-28  Bruno Haible  <bruno@clisp.org>
42247
42248         * modules/posix_spawnp-tests: New file.
42249         * tests/test-posix_spawn.c: New file.
42250         * tests/test-posix_spawn.in.sh: New file.
42251
42252         New module 'posix_spawnp'.
42253         * modules/posix_spawnp: New file.
42254         * lib/spawnp.c: New file, from GNU libc with modifications.
42255         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
42256
42257         New module 'posix_spawn'.
42258         * modules/posix_spawn: New file.
42259         * lib/spawn.c: New file, from GNU libc with modifications.
42260         * doc/posix-functions/posix_spawn.texi: Mention the new module.
42261
42262         New module 'posix_spawnattr_destroy'.
42263         * modules/posix_spawnattr_destroy: New file.
42264         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
42265         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
42266         module.
42267
42268         New module 'posix_spawnattr_setsigmask'.
42269         * modules/posix_spawnattr_setsigmask: New file.
42270         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
42271         modifications.
42272         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
42273         new module.
42274
42275         New module 'posix_spawnattr_getsigmask'.
42276         * modules/posix_spawnattr_getsigmask: New file.
42277         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
42278         modifications.
42279         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
42280         new module.
42281
42282         New module 'posix_spawnattr_setsigdefault'.
42283         * modules/posix_spawnattr_setsigdefault: New file.
42284         * lib/spawnattr_setdefault.c: New file, from GNU libc with
42285         modifications.
42286         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
42287         new module.
42288
42289         New module 'posix_spawnattr_getsigdefault'.
42290         * modules/posix_spawnattr_getsigdefault: New file.
42291         * lib/spawnattr_getdefault.c: New file, from GNU libc with
42292         modifications.
42293         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
42294         new module.
42295
42296         New module 'posix_spawnattr_setschedpolicy'.
42297         * modules/posix_spawnattr_setschedpolicy: New file.
42298         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
42299         modifications.
42300         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
42301         new module.
42302
42303         New module 'posix_spawnattr_getschedpolicy'.
42304         * modules/posix_spawnattr_getschedpolicy: New file.
42305         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
42306         modifications.
42307         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
42308         new module.
42309
42310         New module 'posix_spawnattr_setschedparam'.
42311         * modules/posix_spawnattr_setschedparam: New file.
42312         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
42313         modifications.
42314         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
42315         new module.
42316
42317         New module 'posix_spawnattr_getschedparam'.
42318         * modules/posix_spawnattr_getschedparam: New file.
42319         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
42320         modifications.
42321         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
42322         new module.
42323
42324         New module 'posix_spawnattr_setpgroup'.
42325         * modules/posix_spawnattr_setpgroup: New file.
42326         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
42327         modifications.
42328         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
42329         module.
42330
42331         New module 'posix_spawnattr_getpgroup'.
42332         * modules/posix_spawnattr_getpgroup: New file.
42333         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
42334         modifications.
42335         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
42336         module.
42337
42338         New module 'posix_spawnattr_setflags'.
42339         * modules/posix_spawnattr_setflags: New file.
42340         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
42341         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
42342         module.
42343
42344         New module 'posix_spawnattr_getflags'.
42345         * modules/posix_spawnattr_getflags: New file.
42346         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
42347         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
42348         module.
42349
42350         New module 'posix_spawnattr_init'.
42351         * modules/posix_spawnattr_init: New file.
42352         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
42353         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
42354         module.
42355
42356         New module 'posix_spawn_file_actions_destroy'.
42357         * modules/posix_spawn_file_actions_destroy: New file.
42358         * lib/spawn_faction_destroy.c: New file, from GNU libc with
42359         modifications.
42360         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
42361         the new module.
42362
42363         New module 'posix_spawn_file_actions_addopen'.
42364         * modules/posix_spawn_file_actions_addopen: New file.
42365         * lib/spawn_faction_addopen.c: New file, from GNU libc with
42366         modifications.
42367         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
42368         the new module.
42369
42370         New module 'posix_spawn_file_actions_adddup2'.
42371         * modules/posix_spawn_file_actions_adddup2: New file.
42372         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
42373         modifications.
42374         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
42375         the new module.
42376
42377         New module 'posix_spawn_file_actions_addclose'.
42378         * modules/posix_spawn_file_actions_addclose: New file.
42379         * lib/spawn_faction_addclose.c: New file, from GNU libc with
42380         modifications.
42381         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
42382         the new module.
42383
42384         New module 'posix_spawn_file_actions_init'.
42385         * modules/posix_spawn_file_actions_init: New file.
42386         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
42387         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
42388         new module.
42389
42390         New module 'posix_spawn-internal'.
42391         * modules/posix_spawn-internal: New file.
42392         * lib/spawn_int.h: New file, from GNU libc with modifications.
42393         * lib/spawni.c: New file, from GNU libc with modifications.
42394         * m4/posix_spawn.m4: New file.
42395
42396         New module 'spawn'.
42397         * modules/spawn: New file.
42398         * lib/spawn.in.h: New file, from GNU libc with modifications.
42399         * m4/spawn_h.m4: New file.
42400         * doc/posix-headers/spawn.texi: Mention the new module.
42401
42402 2008-09-28  Bruno Haible  <bruno@clisp.org>
42403
42404         * modules/sched-tests: New file.
42405         * tests/test-sched.c: New file.
42406
42407         New module 'sched'.
42408         * modules/sched: New file.
42409         * lib/sched.in.h: New file.
42410         * m4/sched_h.m4: New file.
42411         * doc/posix-headers/sched.texi: Mention the new module.
42412
42413 2008-09-27  Eric Blake  <ebb9@byu.net>
42414
42415         Fix previous patch, and tweak references to $0.
42416         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
42417         (func_version, func_gnulib_dir): Don't call this program
42418         gnulib-tool.
42419         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
42420         with using $0 in function.
42421         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
42422         (func_fatal_error): Reuse the name the user invoked us with.
42423
42424 2008-09-27  Bruno Haible  <bruno@clisp.org>
42425
42426         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
42427         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
42428         (gl_ICONV_H): Not here.
42429         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
42430         instead of assigning ICONV_H directly.
42431
42432         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
42433         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
42434         WCHAR_H directly.
42435
42436 2008-09-27  Bruno Haible  <bruno@clisp.org>
42437
42438         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
42439         * modules/arpa_inet (Depends-on): Add link-warning.
42440         (Makefile.am): Insert the definition of GL_LINK-WARNING.
42441         * modules/unistd (Makefile.am): Likewise.
42442
42443 2008-09-26  Bruno Haible  <bruno@clisp.org>
42444
42445         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
42446         variables.
42447         (func_version): Essentially copied from gnulib-tool.
42448         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
42449         func_readlink): Copied from gnulib-tool.
42450
42451 2008-09-26  Bruno Haible  <bruno@clisp.org>
42452
42453         * gnulib-tool (func_version): Change directory to $gnulib_dir before
42454         invoking git-version-gen.
42455
42456 2008-09-26  Bruno Haible  <bruno@clisp.org>
42457
42458         * posix-modules: Update to directory names changed on 2008-01-19.
42459         Remove commas in output before splitting into words. No more need to
42460         avoid 'ftruncate' since 2007-02-19.
42461
42462 2008-09-26  Bruno Haible  <bruno@clisp.org>
42463
42464         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
42465
42466 2008-09-26  Bruno Haible  <bruno@clisp.org>
42467
42468         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
42469         * modules/fwriteerror (Depends-on): Add errno.
42470
42471 2008-09-26  Bruno Haible  <bruno@clisp.org>
42472
42473         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
42474         * tests/test-vc-list-files-cvs.sh: Likewise.
42475
42476 2008-09-26  Bruno Haible  <bruno@clisp.org>
42477
42478         * doc/posix-headers/sys_resource.texi: Reorder items.
42479
42480 2008-09-26  Jim Meyering  <meyering@redhat.com>
42481
42482         fts: tweak inode comparison function
42483         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
42484         inode numbers, as documented.
42485
42486         fts: sort dirent entries on inode number before traversing
42487         This avoids a quadratic, seek-related performance penalty when
42488         operating on a directory containing many entries (measurable at 10k;
42489         3.5 hours at 2 million entries with a cold cache) on certain types
42490         of file systems, including ext3 and ext4, but not tmpfs.
42491         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
42492         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
42493         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
42494         (fs_handles_readdir_ordered_dirents_efficiently): New function.
42495         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
42496         (fts_build): Set the stat.st_ino member from D_INO.
42497         If it is likely to be useful, sort dirent entries on inode number.
42498
42499         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
42500         and the struct statfs.f_type member.
42501         * modules/fts (Depends-on): Add d-ino.
42502
42503 2008-09-26  Bruno Haible  <bruno@clisp.org>
42504
42505         * modules/sigpipe-die (Depends-on): Add sigpipe.
42506
42507         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
42508         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
42509         and GNULIB_STDIO_H_SIGPIPE are set.
42510         * lib/stdio-write.c: New file.
42511         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
42512         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
42513         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
42514         REPLACE_STDIO_WRITE_FUNCS.
42515         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
42516         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
42517         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
42518         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
42519         * modules/stdio (Files): Add lib/stdio-write.c.
42520         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
42521         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
42522         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
42523         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
42524         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
42525         REPLACE_FPRINTF_POSIX.
42526         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
42527         REPLACE_PRINTF_POSIX.
42528         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
42529         REPLACE_VFPRINTF_POSIX.
42530         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
42531         REPLACE_VPRINTF_POSIX.
42532         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
42533         SIGPIPE issue.
42534         * doc/posix-functions/fputc.texi: Likewise.
42535         * doc/posix-functions/fputs.texi: Likewise.
42536         * doc/posix-functions/fwrite.texi: Likewise.
42537         * doc/posix-functions/printf.texi: Likewise.
42538         * doc/posix-functions/putc.texi: Likewise.
42539         * doc/posix-functions/putchar.texi: Likewise.
42540         * doc/posix-functions/puts.texi: Likewise.
42541         * doc/posix-functions/vfprintf.texi: Likewise.
42542         * doc/posix-functions/vprintf.texi: Likewise.
42543
42544         * modules/safe-write (Depends-on): Add write.
42545
42546         * modules/sigpipe-tests: New file.
42547         * tests/test-sigpipe.c: New file.
42548         * tests/test-sigpipe.sh: New file.
42549
42550         * modules/write: New file.
42551         * lib/unistd.in.h: Include <sys/types.h>.
42552         (write): New declaration.
42553         * lib/write.c: New file.
42554         * m4/write.m4: New file.
42555         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
42556         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
42557         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
42558         GNULIB_WRITE, REPLACE_WRITE.
42559         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
42560         and the SIGPIPE issue.
42561
42562         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
42563         (raise): New declaration.
42564         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
42565         (ext_signal): New function.
42566         (rpl_raise): New function.
42567         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
42568         GNULIB_SIGNAL_H_SIGPIPE.
42569         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
42570         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
42571
42572         * modules/sigpipe: New file.
42573         * m4/sigpipe.m4: New file.
42574
42575 2008-09-25  Derek Price  <derek@ximbiot.com>
42576             Bruno Haible  <bruno@clisp.org>
42577
42578         * gnulib-tool (func_import): Report all license incompatibilities, not
42579         just the first one.
42580
42581 2008-09-25  Bruno Haible  <bruno@clisp.org>
42582
42583         * gnulib-tool (func_import): When computing the edits, consider not
42584         only the Makefile.ams that exist but also those that will be generated.
42585
42586 2008-09-25  Simon Josefsson  <simon@josefsson.org>
42587
42588         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
42589         fixes gnulib-tool --test warning about duplicate dependency.
42590
42591 2008-09-25  Bruno Haible  <bruno@clisp.org>
42592
42593         * gnulib-tool: Don't ask the user to perform edits in the generated
42594         Makefile.ams.
42595         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
42596         apply to the Makefile.am being generated.
42597         (func_emit_tests_Makefile_am): Execute edits that apply to the
42598         Makefile.am being generated.
42599         (func_import): Setup list of Makefile.am edits before emitting the
42600         Makefile.ams, not at the end.
42601         (func_create_testdir): Update.
42602         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
42603
42604 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42605
42606         * gnulib-tool (func_import): Store the --tests-base option in the
42607         comment in gnulib-cache.m4.
42608
42609 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
42610
42611         * NEWS: Document increased portability that sys_select now provides.
42612
42613         * lib/sys_select.in.h: Install select wrapper.
42614         * lib/sys_socket.in.h: Use more descriptive name when there is no
42615         select wrapper.
42616         * lib/winsock-select.c: New.
42617         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
42618         Require gl_HEADER_SYS_SOCKET.
42619         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
42620         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
42621         * tests/test-sys_select.c: Add functional tests.
42622
42623 2008-09-24  Eric Blake  <ebb9@byu.net>
42624
42625         open, fopen: close fd leak in last patch
42626         * lib/open.c (rpl_open): Close fd before returning error.
42627         * lib/fopen.c (rpl_fopen): Close fd before returning error.
42628         * doc/posix-functions/open.texi (open): Document that Irix also
42629         has the bug.
42630         * doc/posix-functions/fopen.texi (fopen): Likewise.
42631         Reported by Paolo Bonzini.
42632
42633 2008-09-24  Bruno Haible  <bruno@clisp.org>
42634
42635         Ensure that a filename ending in a slash cannot be used to access a
42636         non-directory.
42637         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
42638         to check whether it's really a directory.
42639         * lib/fopen.c: Include fcntl.h, unistd.h.
42640         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
42641         and fdopen().
42642         * modules/fopen (Depends-on): Add unistd.
42643         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
42644         * tests/test-fopen.c (main): Likewise.
42645         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
42646         * doc/posix-functions/fopen.texi: Likewise.
42647         Reported by Eric Blake.
42648
42649 2008-09-23  Eric Blake  <ebb9@byu.net>
42650
42651         c-stack: avoid compiler optimizations when provoking overflow
42652         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
42653         recursion harder to optimize, to ensure a stack overflow occurs.
42654         * tests/test-c-stack.c (recurse): Likewise.
42655         Borrowed from libsigsegv.
42656
42657         c-stack: work around Irix sigaltstack bug
42658         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
42659         whether sigaltstack uses wrong end of stack_t (copied in part from
42660         libsigsegv).
42661         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
42662         Irix bug, without requiring an over-allocation.
42663         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
42664         bug.
42665
42666         fopen: document mingw bug on directories
42667         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
42668         not allowing a stream visiting a directory, even though reading
42669         from such a stream is not portable.
42670
42671 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
42672
42673         * lib/poll.c: Rewrite.
42674         * modules/poll: Depend on alloca.
42675
42676 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
42677
42678         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
42679         instead define prototypes for a full set of wrappers.  Ensure
42680         that Cygwin does not use the compatibility code, which is only
42681         for MinGW.
42682         * lib/winsock.c: New.
42683         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
42684         * modules/sys_socket: Add lib/winsock.c.
42685
42686         * modules/poll-tests: Add errno and perror.
42687         * tests/test-poll.c: Use ioctl, not ioctlsocket.
42688
42689 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
42690
42691         * tests/test-poll.c: Downgrade minimum needed Winsock version.
42692
42693 2008-09-23  Bruno Haible  <bruno@clisp.org>
42694
42695         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
42696         * doc/glibc-functions/*: Likewise.
42697
42698 2008-09-23  Simon Josefsson  <simon@josefsson.org>
42699
42700         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
42701         success.
42702
42703 2008-09-22  Eric Blake  <ebb9@byu.net>
42704             Bruno Haible  <bruno@clisp.org>
42705
42706         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
42707         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
42708         supply %A but mishandle pseudo-NaN.
42709         Reported by Simon Josefsson.
42710
42711 2008-09-21  Bruno Haible  <bruno@clisp.org>
42712
42713         * tests/test-lock.c (main): Tweak skip message.
42714         * tests/test-tls.c (main): Likewise.
42715
42716 2008-09-21  Bruno Haible  <bruno@clisp.org>
42717
42718         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
42719         whether 'struct sigaction' has sa_sigaction here...
42720         (gl_PREREQ_SIG_HANDLER_H): ... not here.
42721         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
42722
42723 2008-09-21  Bruno Haible  <bruno@clisp.org>
42724
42725         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
42726         section.
42727         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
42728         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
42729         the new section.
42730         (Support for obsolete systems lacking POSIX:2001): New section.
42731         (String handling <string.h>): Move strdup to the new section.
42732         Suggested by Simon Josefsson and Paolo Bonzini.
42733
42734 2008-09-21  Bruno Haible  <bruno@clisp.org>
42735
42736         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
42737         exponents in %e and %g results on 'long double'. Needed for mingw's
42738         improved *printf functions.
42739         * tests/test-vasprintf-posix.c (test_function): Likewise.
42740         * tests/test-snprintf-posix.h (test_function): Likewise.
42741         * tests/test-sprintf-posix.h (test_function): Likewise.
42742         Reported by Eric Blake.
42743
42744 2008-09-21  Bruno Haible  <bruno@clisp.org>
42745
42746         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
42747         * tests/test-sprintf-posix.h (test_function): Likewise.
42748
42749 2008-09-21  Bruno Haible  <bruno@clisp.org>
42750
42751         * modules/getpass (Depends-on): Add strdup-posix.
42752
42753         New module 'strdup-posix'.
42754         * modules/strdup-posix: New file.
42755         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
42756         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
42757         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
42758         REPLACE_STRDUP.
42759         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
42760         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
42761         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
42762         strdup-posix.
42763
42764         * modules/strdup (Depends-on): Remove malloc-posix.
42765
42766 2008-09-20  Bruno Haible  <bruno@clisp.org>
42767
42768         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
42769         Wildenhues.
42770
42771 2008-09-20  Bruno Haible  <bruno@clisp.org>
42772
42773         Ensure that wint_t gets defined on IRIX 5.3.
42774         * lib/wchar.in.h (wint_t): Define if not defined by the system.
42775         * lib/wctype.in.h (wint_t): Likewise.
42776         (__wctype_wint_t): Remove type.
42777         (isw*): Use wint_t instead of __wctype_wint_t.
42778         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
42779         * modules/wchar (Files): Add m4/wint_t.m4.
42780         (Makefile.am): Substitute HAVE_WINT_T.
42781         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
42782         * tests/test-wctype.c: Check that wint_t is defined.
42783         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
42784         * doc/posix-headers/wctype.texi: Likewise.
42785         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42786
42787 2008-09-18  Bruno Haible  <bruno@clisp.org>
42788
42789         * gnulib-tool (func_exit): Update comment.
42790
42791 2008-09-18  Simon Josefsson  <simon@josefsson.org>
42792
42793         * modules/getaddrinfo (Depends-on): Remove strdup, this module
42794         assumes strdup exists and does not depend on strdup to return
42795         ENOMEM on out of memory conditions.
42796
42797 2008-09-18  Bruno Haible  <bruno@clisp.org>
42798
42799         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
42800         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
42801         digits for the exponent.
42802
42803 2008-09-18  Jim Meyering  <meyering@redhat.com>
42804             Bruno Haible  <bruno@clisp.org>
42805
42806         * lib/vasnprintf.c (decimal_point_char): Define also if
42807         NEED_PRINTF_INFINITE_LONG_DOUBLE.
42808
42809 2008-09-16  Bruno Haible  <bruno@clisp.org>
42810         and Eric Blake  <ebb9@byu.net>
42811
42812         vasnprintf: support Irix 5.3
42813         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
42814         that mishandle long double infinity.
42815         Reported by Tom G. Christensen.
42816
42817 2008-09-16  Bruno Haible  <bruno@clisp.org>
42818
42819         * doc/glibc-functions/scandir.texi: Mention the function is missing on
42820         Solaris 9.
42821         * doc/glibc-functions/alphasort.texi: Likewise.
42822         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
42823
42824 2008-09-16  Jim Meyering  <meyering@redhat.com>
42825
42826         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
42827         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
42828         a umask modification leak out of a subshell.  Otherwise, the
42829         opensolaris /bin/sh would be accepted and thus cause unwarranted
42830         failures in the coreutils test suite.
42831
42832 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
42833
42834         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
42835         to succeed.
42836
42837 2008-09-16  Jim Meyering  <meyering@redhat.com>
42838
42839         avoid spurious test failure when library is built without ACL support
42840         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
42841         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
42842         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
42843         * tests/test-copy-acl.sh: Likewise.
42844
42845 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42846
42847         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
42848         based on character occurrence counts.
42849
42850 2008-09-15  Eric Blake  <ebb9@byu.net>
42851
42852         tests: avoid some compiler warnings
42853         * tests/test-memchr.c (main): Pass NULL indirectly.
42854         * tests/test-closein.c (main): Avoid unused variable.
42855
42856 2008-09-15  Bruno Haible  <bruno@clisp.org>
42857
42858         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
42859         are missing on OpenBSD 4.0 individually.
42860         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
42861
42862 2008-09-15  Bruno Haible  <bruno@clisp.org>
42863
42864         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
42865         * doc/posix-functions/strerror.texi: Mention also Cygwin.
42866         * doc/posix-functions/perror.texi: Likewise.
42867         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
42868         is missing.
42869         Reported by Eric Blake.
42870
42871         * lib/errno.in.h: Use replacement values >= 2000.
42872         Reported by Eric Blake.
42873
42874 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42875
42876         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
42877         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
42878         limit.
42879         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
42880         compareseq was aborted.
42881
42882 2008-09-14  Bruno Haible  <bruno@clisp.org>
42883
42884         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
42885         yvec_edit_count.
42886         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
42887         (fstrcmp_bounded): Simplify result computation accordingly.
42888
42889 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42890
42891         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
42892         (fstrcmp): Define in terms of fstrcmp_bounded.
42893         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
42894         lower_bound argument.
42895         Return quickly if the result is certainly < lower_bound.
42896         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
42897
42898 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42899
42900         * lib/diffseq.h (EARLY_ABORT): New macro.
42901         (compareseq): Change return type to bool. Return true when EARLY_ABORT
42902         evaluates to true.
42903
42904 2008-09-14  Bruno Haible  <bruno@clisp.org>
42905
42906         * modules/perror-tests: New file.
42907         * tests/test-perror.sh: New file.
42908         * tests/test-perror.c: New file.
42909
42910         New module 'perror'.
42911         * lib/stdio.in.h (perror): New declaration.
42912         * lib/perror.c: New file.
42913         * m4/perror.m4: New file.
42914         * modules/perror: New file.
42915         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
42916         * doc/posix-functions/perror.texi: Mention the perror module.
42917         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
42918         REPLACE_PERROR.
42919         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
42920         REPLACE_PERROR.
42921
42922 2008-09-14  Bruno Haible  <bruno@clisp.org>
42923
42924         * modules/stdio (Makefile.am): Reorder to match the order in
42925         lib/stdio.in.h.
42926         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
42927
42928 2008-09-13  Bruno Haible  <bruno@clisp.org>
42929
42930         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
42931
42932 2008-09-13  Bruno Haible  <bruno@clisp.org>
42933
42934         Extend strerror to cover the added errno values.
42935         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
42936         (rpl_strerror): Provide error messages for the added errno values and
42937         for the WSA* values.
42938         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
42939         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
42940         strerror.
42941         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
42942         * modules/strerror (Depends-on): Add errno.
42943         * doc/posix-functions/strerror.texi: Document the change.
42944         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
42945         and EOVERFLOW.
42946
42947 2008-09-13  Bruno Haible  <bruno@clisp.org>
42948
42949         * modules/EOVERFLOW: Remove file.
42950         * m4/eoverflow.m4: Remove file.
42951         * modules/EOVERFLOW-tests: Remove file.
42952         * tests/test-EOVERFLOW.c: Remove file.
42953         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
42954         * modules/ftell (Depends-on): Likewise.
42955         * modules/getdelim (Depends-on): Likewise.
42956         * modules/getugroups (Depends-on): Likewise.
42957         * modules/poll (Depends-on): Likewise.
42958         * modules/snprintf (Depends-on): Likewise.
42959         * modules/sprintf-posix (Depends-on): Likewise.
42960         * modules/vasnprintf (Depends-on): Likewise.
42961         * modules/vasprintf (Depends-on): Likewise.
42962         * modules/vfprintf-posix (Depends-on): Likewise.
42963         * modules/vsnprintf (Depends-on): Likewise.
42964         * modules/vsprintf-posix (Depends-on): Likewise.
42965         * modules/xvasprintf (Depends-on): Likewise.
42966         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
42967         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
42968         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
42969         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
42970         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
42971         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
42972         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
42973         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
42974         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
42975         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
42976         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
42977         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
42978         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
42979         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
42980         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
42981         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
42982         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
42983         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
42984         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
42985         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
42986         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
42987         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
42988         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
42989         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
42990         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
42991         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
42992         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
42993         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
42994         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
42995         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
42996         * MODULES.html.sh: Remove EOVERFLOW.
42997         * NEWS: Mention the change.
42998
42999 2008-09-13  Bruno Haible  <bruno@clisp.org>
43000
43001         * modules/errno-tests: New file.
43002         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
43003
43004         * lib/errno.in.h: New file.
43005         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
43006         * modules/errno: New file.
43007         * doc/posix-headers/errno.texi: Update documentation.
43008         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
43009
43010 2008-09-13  Bruno Haible  <bruno@clisp.org>
43011
43012         * tests/test-poll.c: Use #if for native Windows, rather than testing
43013         __MSVCRT__.
43014
43015 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43016             Bruno Haible  <bruno@clisp.org>
43017
43018         * lib/glob.c: Don't include <pwd.h> on native Windows.
43019         (WINDOWS32): New macro.
43020         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
43021
43022 2008-09-13  Bruno Haible  <bruno@clisp.org>
43023
43024         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
43025         (ETIMEDOUT): Remove macro.
43026         (glthread_cond_timedwait_multithreaded): New declaration.
43027         (glthread_cond_timedwait): Use it.
43028         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
43029         (glthread_cond_timedwait_multithreaded): New function.
43030
43031 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
43032
43033         * modules/poll-tests: Do not check for io.h.
43034         * tests/test-poll.c: Check for __MSVCRT__ instead.
43035
43036 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
43037
43038         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
43039         * modules/poll-tests: Add inet_pton, stdbool, sockets.
43040         * tests/test-poll.c: Use them.  Use _pipe on Windows.
43041
43042 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
43043
43044         * modules/poll-tests: New.
43045         * tests/test-poll.c: New.
43046
43047 2008-09-12  Eric Blake  <ebb9@byu.net>
43048
43049         frexp: test for NetBSD failure on -0.0
43050         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
43051         not all, bugs from NetBSD 3.0 have been fixed.
43052         * doc/posix-functions/frexp.texi (frexp): Document bug.
43053         Reported by Thomas Klausner.
43054
43055         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
43056         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
43057         literal -0.0.
43058         Reported by Jonathan C. Patschke <jp@centtech.com>.
43059
43060 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43061
43062         * lib/glthread/cond.h: Use dummy implementation also if
43063         USE_WIN32_THREADS.
43064
43065 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43066
43067         * modules/fnmatch-posix (License): Change to LGPLv2+.
43068         * modules/fnmatch-gnu (License): Likewise.
43069
43070 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43071
43072         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
43073
43074 2008-09-11  Jim Meyering  <meyering@redhat.com>
43075
43076         * users.txt: Add gtk-vnc.
43077
43078 2008-09-08  Simon Josefsson  <simon@josefsson.org>
43079
43080         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
43081         rotate amounts.
43082
43083         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
43084         required for 16-bit and 8-bit rotates.
43085         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
43086         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
43087         UINT8_MAX instead of hard-coded constants.
43088         Suggested by Paul Eggert.
43089
43090 2008-09-07  Bruno Haible  <bruno@clisp.org>
43091
43092         * tests/test-striconveh.c (main): Check behaviour when converting from
43093         UTF-7.
43094
43095         Make striconveh work better with stateful encodings.
43096         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
43097         that iconv does not increment the inptr when returning -1/EINVAL.
43098
43099 2008-09-07  Bruno Haible  <bruno@clisp.org>
43100
43101         * build-aux/config.rpath: Update according to libtool-2.2.6.
43102         * build-aux/config.libpath: Likewise.
43103
43104 2008-09-06  Bruno Haible  <bruno@clisp.org>
43105
43106         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
43107         * lib/freadptr.c (freadptr): Likewise.
43108         * lib/freadseek.c (freadptrinc): Likewise.
43109         Reported by Simon Josefsson.
43110
43111 2008-09-06  Bruno Haible  <bruno@clisp.org>
43112
43113         * modules/freadptr (License): Change to LGPLv2+.
43114         * modules/freadseek (License): Likewise.
43115         Suggested by Eric Blake.
43116
43117         * modules/memchr2 (License): Change to LGPLv2+.
43118         Approved by Eric Blake.
43119
43120 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43121             Bruno Haible  <bruno@clisp.org>
43122
43123         Make gnulib-tool work with native 'sed' on AIX.
43124         * gnulib-tool (sed_noop): New variable.
43125         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
43126         func_add_or_update, func_create_testdir): Use it to initialize sed
43127         script variables.
43128         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
43129
43130 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
43131             Bruno Haible  <bruno@clisp.org>
43132
43133         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
43134         also works after #include directives.
43135
43136 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
43137
43138         getdate.y: reject an out-of-range timezone value
43139         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
43140         the range [-24...+24].  When specified with only one or two digits,
43141         * tests/test-getdate.c: Tests for the fix.
43142         * doc/getdate.texi: Document this change.
43143
43144 2008-09-03  Bruno Haible  <bruno@clisp.org>
43145
43146         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
43147
43148 2008-09-02  Simon Josefsson  <simon@josefsson.org>
43149
43150         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
43151         <bruce.korb@gmail.com> with ideas from Ben Pfaff
43152         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
43153         Blake <ebb9@byu.net>.
43154
43155         * tests/test-bitrotate.c: Add more test vectors.
43156
43157 2008-09-02  Eric Blake  <ebb9@byu.net>
43158
43159         vasnprintf-posix: handle large precision via %.*d
43160         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
43161         when handling it ourselves.
43162         * tests/test-vasnprintf-posix.c (test_function): Add test.
43163         * tests/test-snprintf-posix.h (test_function): Likewise.
43164         * tests/test-sprintf-posix.h (test_function): Likewise.
43165         * tests/test-vasprintf-posix.c (test_function): Likewise.
43166         Reported by Alain Guibert.
43167
43168 2008-09-01  Eric Blake  <ebb9@byu.net>
43169
43170         c-stack: make configure-time check more robust
43171         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
43172         successful sigaction call.
43173         Reported by Tom G. Christensen.
43174
43175 2008-09-01  Bruno Haible  <bruno@clisp.org>
43176
43177         New module 'findprog-lgpl'.
43178         * modules/findprog-lgpl: New file.
43179         * lib/findprog-lgpl.c: New file.
43180         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
43181         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
43182         to decide whether to use strdup or xstrdup, concatenated_filename or
43183         xconcatenated_filename.
43184
43185 2008-09-01  Bruno Haible  <bruno@clisp.org>
43186
43187         Split module 'concat-filename' into 'concat-filename' (LGPL) and
43188         'xconcat-filename' (GPL).
43189         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
43190         (License): Change to LGPLv2+.
43191         * modules/xconcat-filename: New file.
43192         * lib/concat-filename.h (concatenated_filename): Change specification.
43193         (xconcatenated_filename): New declaration.
43194         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
43195         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
43196         memory situations.
43197         * lib/xconcat-filename.c: New file.
43198         * NEWS: Mention the change.
43199         * lib/findprog.c: Include concat-filename.h, not filename.h.
43200         (find_in_path): Use xconcatenated_filename instead of
43201         concatenated_filename.
43202         * lib/javacomp.c: Include concat-filename.h, not filename.h.
43203         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
43204         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
43205         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
43206         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
43207         instead of concatenated_filename.
43208         * lib/javaexec.c: Include concat-filename.h, not filename.h.
43209         (execute_java_class): Use xconcatenated_filename instead of
43210         concatenated_filename.
43211         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
43212         * modules/javacomp (Depends-on): Likewise.
43213         * modules/javaexec (Depends-on): Likewise.
43214
43215 2008-09-01  Bruno Haible  <bruno@clisp.org>
43216
43217         Split module 'filename' into 'filename' and 'concat-filename'.
43218         * modules/filename: Keep only lib/filename.h.
43219         (License): Change to LGPLv2+.
43220         * modules/concat-filename: New file, extracted from modules/filename.
43221         * lib/filename.h (concatenated_filename): Remove declaration.
43222         * lib/concat-filename.h: New file, extracted from lib/filename.h.
43223         * lib/concat-filename.c: Include concat-filename.h.
43224         * NEWS: Mention the change.
43225
43226 2008-09-01  Simon Josefsson  <simon@josefsson.org>
43227
43228         * lib/bitrotate.h (rotl8, rotr8): Add.
43229
43230         * modules/bitrotate (configure.ac): Need
43231         AC_REQUIRE([AC_C_INLINE]).
43232         (Description): Mention stdint.h.  Reported by Bruno Haible
43233         <bruno@clisp.org>.
43234
43235         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
43236         Paolo Bonzini <bonzini@gnu.org>.
43237
43238 2008-08-31  Bruno Haible  <bruno@clisp.org>
43239
43240         Assume Solaris specific bi-arch conventions on Solaris systems.
43241         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
43242         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
43243         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
43244         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
43245         like acl_libdirstem.
43246         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
43247         acl_libdirstem.
43248         * NEWS: Mention the change.
43249         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
43250
43251 2008-08-31  Jim Meyering  <meyering@redhat.com>
43252
43253         * lib/strftime.h: Add comments describing the two added arguments.
43254
43255         remove duplicate #include directives
43256         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
43257         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
43258
43259 2008-08-31  Bruno Haible  <bruno@clisp.org>
43260
43261         New module 'sigpipe-die'.
43262         * modules/sigpipe-die: New file.
43263         * lib/sigpipe-die.h: New file.
43264         * lib/sigpipe-die.c: New file.
43265         * MODULES.html.sh (Signal handling): Add sigpipe-die.
43266
43267 2008-08-31  Bruno Haible  <bruno@clisp.org>
43268
43269         Don't override previously installed signal handlers.
43270         * lib/fatal-signal.c (saved_sigactions): New variable.
43271         (uninstall_handlers): Reset the signal to the saved handler, not
43272         to SIG_DFL (except when ignored).
43273         (install_handlers): Save the previous handlers.
43274
43275 2008-08-30  Bruno Haible  <bruno@clisp.org>
43276
43277         * gnulib-tool (func_reset_sigpipe): New function.
43278         (func_get_automake_snippet, func_modules_transitive_closure,
43279         func_import): Invoke it before a join command that reads from stdin,
43280         to avoid "echo: write error: Broken pipe" error messages on stderr.
43281         Reported by Sam Steingold <sds@gnu.org>.
43282
43283 2008-08-30  Bruno Haible  <bruno@clisp.org>
43284
43285         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
43286         Code copied from m4/open.m4.
43287         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
43288         access and the filename ends in a slash. Code copied from lib/open.c.
43289         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
43290         * tests/test-fopen.c (main): Check against bug with trailing slash.
43291
43292 2008-08-29  Bruno Haible  <bruno@clisp.org>
43293
43294         Avoid some "gcc -pedantic" warnings.
43295         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
43296         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
43297         * lib/dirent.in.h: Likewise.
43298         * lib/fcntl.in.h: Likewise.
43299         * lib/float.in.h: Likewise.
43300         * lib/iconv.in.h: Likewise.
43301         * lib/inttypes.in.h: Likewise.
43302         * lib/locale.in.h: Likewise.
43303         * lib/math.in.h: Likewise.
43304         * lib/netinet_in.in.h: Likewise.
43305         * lib/search.in.h: Likewise.
43306         * lib/signal.in.h: Likewise.
43307         * lib/stdarg.in.h: Likewise.
43308         * lib/stdint.in.h: Likewise.
43309         * lib/stdio.in.h: Likewise.
43310         * lib/stdlib.in.h: Likewise.
43311         * lib/string.in.h: Likewise.
43312         * lib/strings.in.h: Likewise.
43313         * lib/sys_select.in.h: Likewise.
43314         * lib/sys_socket.in.h: Likewise.
43315         * lib/sys_stat.in.h: Likewise.
43316         * lib/sys_time.in.h: Likewise.
43317         * lib/sysexits.in.h: Likewise.
43318         * lib/time.in.h: Likewise.
43319         * lib/unistd.in.h: Likewise.
43320         * lib/wchar.in.h: Likewise.
43321         * lib/wctype.in.h: Likewise.
43322         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
43323         * modules/fchdir (Makefile.am): Likewise.
43324         * modules/fcntl (Makefile.am): Likewise.
43325         * modules/float (Makefile.am): Likewise.
43326         * modules/iconv_open (Makefile.am): Likewise.
43327         * modules/inttypes (Makefile.am): Likewise.
43328         * modules/locale (Makefile.am): Likewise.
43329         * modules/math (Makefile.am): Likewise.
43330         * modules/netinet_in (Makefile.am): Likewise.
43331         * modules/search (Makefile.am): Likewise.
43332         * modules/signal (Makefile.am): Likewise.
43333         * modules/stdarg (Makefile.am): Likewise.
43334         * modules/stdint (Makefile.am): Likewise.
43335         * modules/stdio (Makefile.am): Likewise.
43336         * modules/stdlib (Makefile.am): Likewise.
43337         * modules/string (Makefile.am): Likewise.
43338         * modules/strings (Makefile.am): Likewise.
43339         * modules/sys_select (Makefile.am): Likewise.
43340         * modules/sys_socket (Makefile.am): Likewise.
43341         * modules/sys_stat (Makefile.am): Likewise.
43342         * modules/sys_time (Makefile.am): Likewise.
43343         * modules/sysexits (Makefile.am): Likewise.
43344         * modules/time (Makefile.am): Likewise.
43345         * modules/unistd (Makefile.am): Likewise.
43346         * modules/wchar (Makefile.am): Likewise.
43347         * modules/wctype (Makefile.am): Likewise.
43348         Reported by Reuben Thomas <rrt@sc3d.org>.
43349
43350 2008-08-29  Bruno Haible  <bruno@clisp.org>
43351
43352         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
43353         any more.
43354
43355 2008-08-29  Simon Josefsson  <simon@josefsson.org>
43356
43357         * MODULES.html.sh (Misc): Add bitrotate.
43358
43359         * modules/bitrotate: New file.
43360
43361         * lib/bitrotate.h: New file.
43362
43363         * modules/bitrotate-tests: New file.
43364
43365         * tests/test-bitrotate.c: New file.
43366
43367         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
43368         on the bitrotate module.
43369
43370         * lib/arctwo.c: Use new bitrotate module.
43371
43372 2008-08-29  Jim Meyering  <meyering@redhat.com>
43373
43374         bootstrap: merge changes from coreutils
43375         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
43376         of copied files.  Remove a kludge, now that this is fixed.
43377         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
43378         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
43379         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
43380
43381 2008-08-29  Bruno Haible  <bruno@clisp.org>
43382
43383         * MODULES.html.sh: Remove --cvs-urls option.
43384
43385 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
43386
43387         maint.mk: adjust to file name change
43388         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
43389
43390 2008-08-28  Jim Meyering  <meyering@redhat.com>
43391
43392         * modules/getndelim2 (License): Relicense to LGPLv2+.
43393         Approved by Richard Stallman for the version of 1995, and by
43394         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
43395
43396 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
43397
43398         * lib/getdelim.c (flockfile, funlockfile): Make all of them
43399         dummy if one is not available.  Do not touch them if
43400         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
43401         (getc_maybe_unlocked): New.
43402         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
43403
43404 2008-08-26  Eric Blake  <ebb9@byu.net>
43405
43406         doc/INSTALL: resync from autoconf
43407         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
43408         (INSTALL_PRELUDE): Delete; this is done more efficiently by
43409         moving...
43410         * install.texi [!autoconf]: ...here.  Resync from autoconf.
43411         * INSTALL: Regenerate.
43412         * INSTALL.ISO: New file.
43413         * INSTALL.UTF-8: Likewise.
43414
43415 2008-08-26  Jim Meyering  <meyering@redhat.com>
43416
43417         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
43418         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
43419         these definitions conditional, so that they may be overridden, too.
43420
43421 2008-08-26  Bruno Haible  <bruno@clisp.org>
43422
43423         Generate INSTALL file variants with prettier quotes.
43424         * doc/Makefile (INSTALL_PRELUDE): New macro.
43425         (INSTALL): Use it.
43426         (INSTALL.ISO, INSTALL.UTF-8): New rules.
43427
43428 2008-08-26  Bruno Haible  <bruno@clisp.org>
43429
43430         Run makeinfo in an English locale.
43431         * doc/Makefile (MAKEINFO): New variable.
43432
43433 2008-08-26  Bruno Haible  <bruno@clisp.org>
43434
43435         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
43436         Suggested by Eric Blake.
43437
43438 2008-08-25  Bruno Haible  <bruno@clisp.org>
43439
43440         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
43441
43442 2008-08-25  Eric Blake  <ebb9@byu.net>
43443
43444         c-stack: test that stack overflow can be caught
43445         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
43446         that platform allows handling stack overflow; at least OS/2 EMX
43447         has sigaltstack, but crashes before transferring control to
43448         handler on stack overflow.
43449         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
43450         check for HAVE_STACK_OVERFLOW_HANDLING.
43451         Reported by Elbert Pol.
43452
43453 2008-08-25  Bruno Haible  <bruno@clisp.org>
43454
43455         * doc/posix-functions/strftime.texi: Fix description of strftime
43456         module.
43457
43458 2008-08-24  Bruno Haible  <bruno@clisp.org>
43459
43460         * tests/uniwidth/test-uc_width2.c: New file.
43461         * tests/uniwidth/test-uc_width2.sh: New file.
43462         * modules/uniwidth/width-tests (Files): Add the new files.
43463         (TESTS): Add uniwidth/test-uc_width2.sh.
43464         (TESTS_ENVIRONMENT): New variable.
43465         (check_PROGRAMS): Add test-uc_width2.
43466         (test_uc_width2_SOURCES): New variable.
43467
43468         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
43469         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
43470         not 0x00AB.
43471         Reported by Alexander V. Lukyanov <lav@netis.ru>.
43472
43473 2008-08-22  Eric Blake  <ebb9@byu.net>
43474
43475         test-lock, test-tls: mention why a test is skipped
43476         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
43477         skipped.
43478         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
43479
43480         count-one-bits: relax license
43481         * modules/count-one-bits (License): Relicense to LGPLv2+.
43482         Suggested by Ludovic Courtès, approved by Ben Pfaff.
43483
43484 2008-08-22  Andreas Schwab  <schwab@suse.de>
43485
43486         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
43487         Remove spurious space in assignment.
43488
43489 2008-08-21  Simon Josefsson  <simon@josefsson.org>
43490
43491         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
43492         Paul Eggert <eggert@CS.UCLA.EDU>.
43493
43494 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
43495
43496         * modules/gettext: Add m4/threadlib.m4.
43497
43498 2008-08-19  Eric Blake  <ebb9@byu.net>
43499
43500         test-c-stack: fix compilation failure on FreeBSD 5.0
43501         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
43502         headers before <sys/resource.h>.
43503         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
43504         the bug.
43505         Reported by Nelson H. F. Beebe.
43506
43507         strverscmp: migrate from "strverscmp.h" to <string.h>
43508         * modules/string (Makefile.am): Add new hooks.
43509         * modules/strverscmp (Files): Remove strverscmp.h.
43510         (Depends-on): Add string.
43511         (configure.ac): Add indicator.
43512         (Include): Mention new header.
43513         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
43514         defaults.
43515         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
43516         results.
43517         * lib/strverscmp.h: Delete.
43518         * lib/string.in.h (strverscmp): Provide declaration, when needed.
43519         * tests/test-strverscmp.c (includes): Adjust client.
43520         * lib/check-version.c (includes): Likewise.
43521         * NEWS: Document the change.
43522
43523         strverscmp: add unit test
43524         * modules/strverscmp-tests: New file.
43525         * tests/test-strverscmp.c: Likewise.
43526
43527 2008-08-19  Simon Josefsson  <simon@josefsson.org>
43528
43529         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
43530         regarding Windows crypto stuff, from Mono.
43531
43532 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
43533
43534         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
43535         if present, for intel RND.  Return error on failures.
43536
43537 2008-08-18  Ben Pfaff  <blp@gnu.org>
43538
43539         gitlog-to-changelog: give better diagnostic for failed pipe-open
43540         * build-aux/gitlog-to-changelog: Improve error message: suggest
43541         that the version of Git may be too old.
43542
43543 2008-08-18  Simon Josefsson  <simon@josefsson.org>
43544
43545         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
43546         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
43547
43548 2008-08-18  Bruno Haible  <bruno@clisp.org>
43549
43550         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
43551         pthread_in_use().
43552
43553 2008-08-18  Bruno Haible  <bruno@clisp.org>
43554
43555         * lib/glthread/threadlib.c: Include <pthread.h>.
43556
43557 2008-08-18  Bruno Haible  <bruno@clisp.org>
43558
43559         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
43560         glthread_recursive_lock_* macros.
43561         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
43562         Fix syntax error.
43563
43564 2008-08-18  Bruno Haible  <bruno@clisp.org>
43565
43566         * lib/glthread/thread.c: Avoid forcing a context switch right after
43567         thread creation.
43568
43569 2008-08-17  Bruno Haible  <bruno@clisp.org>
43570
43571         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
43572         * lib/glthread/thread.h: Provide Win32 specific implementation.
43573         * modules/thread (Files): Add lib/glthread/thread.c.
43574         (Depends-on): Add lock.
43575         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
43576
43577 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43578
43579         New module 'yield'.
43580         * modules/yield: New file.
43581         * lib/glthread/yield.h: New file.
43582         * m4/yield.m4: New file.
43583         * MODULES.html.sh (Multithreading): Add yield.
43584
43585 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43586
43587         New module 'thread'.
43588         * modules/thread: New file.
43589         * lib/glthread/thread.h: New file.
43590         * m4/thread.m4: New file.
43591         * MODULES.html.sh (Multithreading): Add thread.
43592
43593 2008-08-17  Bruno Haible  <bruno@clisp.org>
43594
43595         * lib/glthread/lock.h: Include <stdlib.h> always.
43596         * lib/glthread/tls.h: Likewise.
43597         * lib/glthread/cond.h: Likewise.
43598
43599 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43600
43601         New module 'cond'.
43602         * modules/cond: New file.
43603         * lib/glthread/cond.h: New file.
43604         * lib/glthread/cond.c: New file.
43605         * m4/cond.m4: New file.
43606         * MODULES.html.sh (Multithreading): Add cond.
43607
43608 2008-08-16  Eric Blake  <ebb9@byu.net>
43609
43610         c-stack: fix regression on Irix 5.3 from 2008-06-21
43611         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
43612         sa_sigaction...
43613         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
43614         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
43615         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
43616         * modules/signal (Makefile.am): Use the value.
43617         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
43618         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
43619         * doc/posix-headers/signal.texi (signal.h): Document this
43620         portability issue.
43621         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
43622         Reported by Tom G. Christensen.
43623
43624 2008-08-17  Bruno Haible  <bruno@clisp.org>
43625
43626         New module 'threadlib'.
43627         * modules/threadlib: New file.
43628         * lib/glthread/threadlib.c: New file, extracted from
43629         lib/glthread/lock.c.
43630         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
43631         functions.
43632         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
43633         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
43634         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
43635         macros.
43636         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
43637         (gl_DISABLE_THREADS): Remove macro.
43638         * modules/lock (Files): Remove build-aux/config.rpath.
43639         (Depends-on): Remove havelib. Add threadlib.
43640         (configure.ac-early): Remove section.
43641         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
43642         * modules/tls (Depends-on): Remove lock. Add threadlib.
43643         (Link): New section, copied from threadlib.
43644         * MODULES.html.sh (Multithreading): Add threadlib.
43645
43646 2008-08-14  Bruno Haible  <bruno@clisp.org>
43647
43648         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
43649         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
43650         glthread_rwlock_unlock, glthread_rwlock_destroy,
43651         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
43652         glthread_recursive_lock_destroy): Define as macros always.
43653         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
43654         glthread_lock_lock.
43655         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
43656         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
43657         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
43658         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
43659         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
43660         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
43661         (glthread_recursive_lock_lock_func): Renamed from
43662         glthread_recursive_lock_lock.
43663         (glthread_recursive_lock_unlock_func): Renamed from
43664         glthread_recursive_lock_unlock.
43665         (glthread_recursive_lock_destroy_func): Renamed from
43666         glthread_recursive_lock_destroy.
43667
43668 2008-08-14  Bruno Haible  <bruno@clisp.org>
43669
43670         * lib/glthread/lock.h: Renamed from lib/lock.h.
43671         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
43672         * lib/glthread/tls.h: Renamed from lib/tls.h.
43673         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
43674         * lib/fstrcmp.c: Update includes.
43675         * lib/strsignal.c: Update includes.
43676         * modules/lock (Files, Makefile.am): Update.
43677         (Include): Change to "glthread/lock.h".
43678         * modules/tls (Files, Makefile.am): Update.
43679         (Include): Change to "glthread/tls.h".
43680         * tests/test-lock.c: Update includes.
43681         * tests/test-tls.c: Update includes.
43682         * NEWS: Mention the renamed header files.
43683
43684 2008-08-11  Jim Meyering  <meyering@redhat.com>
43685
43686         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
43687
43688 2008-08-11  Eric Blake  <ebb9@byu.net>
43689
43690         test-c-stack: avoid C99-ism
43691         * tests/test-c-stack.c (main): Fix whitespace, move declaration
43692         before statement.
43693         Reported by Alain Guibert.
43694
43695 2008-08-10  Jim Meyering  <meyering@redhat.com>
43696
43697         ensure that return value of uinttostr et al are not ignored
43698         * lib/inttostr.h (__GNUC_PREREQ): Define.
43699         (__attribute_warn_unused_result__): Define.
43700         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
43701
43702 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
43703
43704         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
43705         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
43706
43707 2008-08-07  Jim Meyering  <meyering@redhat.com>
43708
43709         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
43710
43711         * modules/mkstemp (License): Relicense under LGPLv2+.
43712         * modules/tempname (License): Likewise.
43713
43714 2008-08-06  Bruno Haible  <bruno@clisp.org>
43715
43716         * lib/poll.c (poll): Further micro-optimization.
43717
43718 2008-08-06  Jim Meyering  <meyering@redhat.com>
43719
43720         inet_pton.c: use locale-independent tolower
43721         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
43722         (inet_pton6): Use c_tolower rather than tolower.
43723         * modules/inet_pton (Depends-on): Add c-ctype.
43724
43725 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
43726
43727         * lib/poll.c (poll): Avoid division when timeout is 0, cache
43728         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
43729
43730 2008-08-06  Jim Meyering  <meyering@redhat.com>
43731
43732         * modules/inet_pton (License): Relicense under LGPLv2+.
43733
43734 2008-08-03  Bruno Haible  <bruno@clisp.org>
43735
43736         Additional non-aborting API for lock and tls.
43737         * lib/lock.h: Include <errno.h>.
43738         (glthread_lock_init): New macro/function.
43739         (gl_lock_init): Define as wrapper around glthread_lock_init.
43740         (glthread_lock_lock): New macro/function.
43741         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
43742         (glthread_lock_unlock): New macro/function.
43743         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
43744         (glthread_lock_destroy): New macro/function.
43745         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
43746         (glthread_rwlock_init): New macro/function.
43747         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
43748         (glthread_rwlock_rdlock): New macro/function.
43749         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
43750         (glthread_rwlock_wrlock): New macro/function.
43751         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
43752         (glthread_rwlock_unlock): New macro/function.
43753         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
43754         (glthread_rwlock_destroy): New macro/function.
43755         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
43756         (glthread_recursive_lock_init): New macro/function.
43757         (gl_recursive_lock_init): Define as wrapper around
43758         glthread_recursive_lock_init.
43759         (glthread_recursive_lock_lock): New macro/function.
43760         (gl_recursive_lock_lock): Define as wrapper around
43761         glthread_recursive_lock_lock.
43762         (glthread_recursive_lock_unlock): New macro/function.
43763         (gl_recursive_lock_unlock): Define as wrapper around
43764         glthread_recursive_lock_unlock.
43765         (glthread_recursive_lock_destroy): New macro/function.
43766         (gl_recursive_lock_destroy): Define as wrapper around
43767         glthread_recursive_lock_destroy.
43768         (glthread_once): New macro/function.
43769         (gl_once): Define as wrapper around glthread_once.
43770         Update function declarations.
43771         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
43772         glthread_rwlock_init. Return error code.
43773         (glthread_rwlock_rdlock_multithreaded): Renamed from
43774         glthread_rwlock_rdlock. Return error code.
43775         (glthread_rwlock_wrlock_multithreaded): Renamed from
43776         glthread_rwlock_wrlock. Return error code.
43777         (glthread_rwlock_unlock_multithreaded): Renamed from
43778         glthread_rwlock_unlock. Return error code.
43779         (glthread_rwlock_destroy_multithreaded): Renamed from
43780         glthread_rwlock_destroy. Return error code.
43781         (glthread_recursive_lock_init_multithreaded): Renamed from
43782         glthread_recursive_lock_init. Return error code.
43783         (glthread_recursive_lock_lock_multithreaded): Renamed from
43784         glthread_recursive_lock_lock. Return error code.
43785         (glthread_recursive_lock_unlock_multithreaded): Renamed from
43786         glthread_recursive_lock_unlock. Return error code.
43787         (glthread_recursive_lock_destroy_multithreaded): Renamed from
43788         glthread_recursive_lock_destroy. Return error code.
43789         (glthread_once_call): Make static.
43790         (glthread_once_multithreaded): Renamed from glthread_once.
43791         * lib/tls.h: Include <errno.h>.
43792         (glthread_tls_key_init): New macro/function.
43793         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
43794         (glthread_tls_set): New macro/function.
43795         (gl_tls_set): Define as wrapper around glthread_tls_set.
43796         (glthread_tls_key_destroy): New macro/function.
43797         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
43798         Update function declarations.
43799         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
43800         glthread_tls_get.
43801         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
43802
43803 2008-08-04  Eric Blake  <ebb9@byu.net>
43804
43805         gnumakefile: use space, not TAB, outside of targets
43806         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
43807
43808 2008-08-02  Jim Meyering  <meyering@redhat.com>
43809
43810         getdate.y: avoid locale-dependent date parsing failure
43811         In Turkish locales, getdate would fail to recognize keywords
43812         containing a lowercase "i".  The solution is not to rely on
43813         locale-sensitive case-conversion.
43814         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
43815         (lookup_word): Use c_toupper in place of toupper.
43816         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
43817         Reported by Vefa Bicakci <bicave@superonline.com> in
43818         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
43819         * modules/getdate (Depends-on): Add c-ctype.
43820
43821 2008-08-02  Bruno Haible  <bruno@clisp.org>
43822
43823         * gnulib-tool (func_import): When updating or creating a .gitignore
43824         file, prepend each added line with a slash, and ignore leading slashes
43825         from the existing lines.
43826         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
43827
43828 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43829
43830         Portability fix for GNU make 3.79.1.
43831         * top/GNUmakefile: Avoid 'else COND', which older GNU make
43832         versions do not understand.
43833
43834 2008-08-01  Bruno Haible  <bruno@clisp.org>
43835
43836         Work around bug of HP-UX 10.20 cc with -0.0 literal.
43837         * tests/test-isnanf.h (zero): New variable.
43838         (main): Avoid literal -0.0f.
43839         * tests/test-isnand.h (zero): New variable.
43840         (main): Avoid literal -0.0.
43841         * tests/test-isnanl.h (zero): New variable.
43842         (main): Avoid literal -0.0L.
43843         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
43844         (test_float, test_double, test_long_double): Avoid literals -0.0f,
43845         -0.0, -0.0L.
43846         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
43847         (test_signbitd): Avoid literal -0.0.
43848         (test_signbitl): Avoid literal -0.0L.
43849         * tests/test-ceilf1.c (zero): New variable.
43850         (main): Avoid literal -0.0f.
43851         * tests/test-ceill.c (zero): New variable.
43852         (main): Avoid literal -0.0L.
43853         * tests/test-floorf1.c (zero): New variable.
43854         (main): Avoid literal -0.0f.
43855         * tests/test-floorl.c (zero): New variable.
43856         (main): Avoid literal -0.0L.
43857         * tests/test-roundf1.c (zero): New variable.
43858         (main): Avoid literal -0.0f.
43859         * tests/test-round1.c (zero): New variable.
43860         (main): Avoid literal -0.0.
43861         * tests/test-roundl.c (zero): New variable.
43862         (main): Avoid literal -0.0L.
43863         * tests/test-truncf1.c (zero): New variable.
43864         (main): Avoid literal -0.0f.
43865         * tests/test-trunc1.c (zero): New variable.
43866         (main): Avoid literal -0.0.
43867         * tests/test-truncl.c (zero): New variable.
43868         (main): Avoid literal -0.0L.
43869         * tests/test-frexp.c (zero): New variable.
43870         (main): Avoid literal -0.0.
43871         * tests/test-frexpl.c (zero): New variable.
43872         (main): Avoid literal -0.0L.
43873         * tests/test-ldexpl.c (zero): New variable.
43874         (main): Avoid literal -0.0L.
43875         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
43876         (zerod, zerol): New variables.
43877         (test_function): Avoid literals -0.0, -0.0L.
43878         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
43879         (zerod, zerol): New variables.
43880         (test_function): Avoid literals -0.0, -0.0L.
43881         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
43882         (zerod, zerol): New variables.
43883         (test_function): Avoid literals -0.0, -0.0L.
43884         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
43885         (zerod, zerol): New variables.
43886         (test_function): Avoid literals -0.0, -0.0L.
43887         * tests/test-strtod.c (zero): New variable.
43888         (main): Avoid literal -0.0.
43889         Reported by Jonathan C. Patschke <jp@centtech.com>.
43890
43891 2008-07-31  Jim Meyering  <meyering@redhat.com>
43892
43893         sha256.h: correct definition of SHA224_DIGEST_SIZE
43894         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
43895         Reported by Paulie Pena IV <paulie4@gmail.com>.
43896         Define as 224 / 8, rather than as a literal.
43897         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
43898         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
43899         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
43900
43901 2008-07-31  Bruno Haible  <bruno@clisp.org>
43902
43903         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
43904         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
43905         Reported by Jonathan Patschke <jp@centtech.com>.
43906
43907 2008-07-31  Bruno Haible  <bruno@clisp.org>
43908
43909         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
43910         Reported by Paolo Bonzini <bonzini@gnu.org>.
43911
43912 2008-07-30  Eric Blake  <ebb9@byu.net>
43913
43914         test-strtod: allow compilation without -lm
43915         * tests/test-strtod.c (main): Avoid link dependence on fabs.
43916         Reported by Dennis Clarke <blastwave@gmail.com>.
43917
43918 2008-07-28  Jim Meyering  <meyering@redhat.com>
43919
43920         bootstrap: work also when there are no .po files in po/
43921         * build-aux/bootstrap (update_po_files): Complete the change
43922         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
43923
43924 2008-07-27  Jim Meyering  <meyering@redhat.com>
43925
43926         * users.txt: Add zile.
43927
43928 2008-07-26  Ben Pfaff  <blp@gnu.org>
43929
43930         Add missing dependencies on new m4/exponent[fdl].m4 files.
43931         * modules/isnanf-nolibm: Add m4/exponentf.m4.
43932         * modules/isnand-nolibm: Add m4/exponentd.m4.
43933         * modules/isnanl-nolibm: Add m4/exponentl.m4.
43934         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
43935         m4/isnan[fdl].m4, because the macros actually used moved.
43936         Reported by Jim Meyering.
43937
43938 2008-07-14  Ben Pfaff  <blp@gnu.org>
43939
43940         Add isinf module.
43941         * lib/isinf.c: New file.
43942         * lib/math.in.h: Define isinf macro if we have decided to replace
43943         it.
43944         * m4/isinf.m4: New file.
43945         * m4/math_h.m4: Initialize and substitute variables for isinf
43946         module.
43947         * modules/isinf: New file.
43948         * modules/isinf-tests: New file.
43949         * modules/math: Add substitutions for new module.
43950         * tests/test-isinf.c: New file.
43951         * doc/posix-functions/isinf.texi: Mention new module.
43952         * MODULES.html.sh: Mention new module.
43953
43954 2008-07-14  Ben Pfaff  <blp@gnu.org>
43955
43956         Factor out some macros for use by additional modules.
43957         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
43958         exponentf.m4.
43959         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
43960         exponentd.m4.
43961         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
43962         file exponentl.m4.
43963         * m4/exponentf.m4: New file.
43964         * m4/exponentd.m4: New file.
43965         * m4/exponentl.m4: New file.
43966         * modules/isnanf: Use new file m4/exponentf.m4.
43967         * modules/isnand: Use new file m4/exponentd.m4.
43968         * modules/isnanl: Use new file m4/exponentl.m4.
43969
43970 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
43971
43972         mktime.c: normalize tp->tm_isdst value to -1/0/1.
43973         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
43974         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
43975         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
43976
43977         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
43978         readlink on platforms without PATH_MAX.
43979
43980 2008-07-21  Eric Blake  <ebb9@byu.net>
43981
43982         Warn, not fail, on stale version.
43983         * top/GNUmakefile (_curr-ver): Tone down previous patch.
43984
43985         Don't allow installation with stale devel version number.
43986         * top/GNUmakefile (_is-install-target): New macro.
43987         (_curr-ver): Forbid installation with stale version number.
43988
43989 2008-07-20  Bruno Haible  <bruno@clisp.org>
43990
43991         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
43992         TESTS_ENVIRONMENT.
43993         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
43994
43995 2008-07-20  Bruno Haible  <bruno@clisp.org>
43996
43997         * lib/c-stack.h (c_stack_action): Add documentation.
43998         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
43999
44000 2008-07-20  Bruno Haible  <bruno@clisp.org>
44001
44002         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
44003         * modules/readlink (License): Likewise.
44004
44005 2008-07-17  Eric Blake  <ebb9@byu.net>
44006
44007         * modules/c-stack (Link): Fix typo.
44008
44009         Make c-stack use libsigsegv, when available.
44010         * modules/c-stack (Depends-on): Add libsigsegv.
44011         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
44012         needed.
44013         * lib/c-stack.c (SIGSTKSZ): Define fallback.
44014         (segv_handler, overflow_handler, c_stack_action)
44015         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
44016         implementation when libsigsegv is available, but only when using
44017         the library is necessary.
44018         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
44019         comment, explaining why XSI check fails on Linux.
44020         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
44021         * tests/test-c-stack2.sh: Tweak skip message.
44022         * NEWS: Document new link-time requirements.
44023
44024 2008-07-16  Eric Blake  <ebb9@byu.net>
44025
44026         c-stack: Expose false positives when not using libsigsegv.
44027         * modules/c-stack-tests (Files): Expand test.
44028         * tests/test-c-stack.c (main): Add means to conditionally trigger
44029         non-overflow SIGSEGV.
44030         * tests/test-c-stack2.sh: New file.
44031
44032 2008-07-14  Bruno Haible  <bruno@clisp.org>
44033
44034         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
44035         Reported by Eric Blake.
44036
44037 2008-07-14  Sam Steingold  <sds@gnu.org>
44038             Bruno Haible  <bruno@clisp.org>
44039
44040         New module libsigsegv.
44041         * modules/libsigsegv: New file.
44042         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
44043         modifications.
44044         * MODULES.html.sh (Signal handling): New section.
44045
44046 2008-07-14  Bruno Haible  <bruno@clisp.org>
44047
44048         * modules/unictype/ctype-* (Description): Add the word "function".
44049         Improves the resulting doc in MODULES.html.
44050
44051 2008-07-12  Ben Pfaff  <blp@gnu.org>
44052
44053         Add longlong module.
44054         * modules/longlong: New file.
44055
44056 2008-07-12  Bruno Haible  <bruno@clisp.org>
44057
44058         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
44059         to empty.
44060
44061 2008-07-10  Ben Pfaff  <blp@gnu.org>
44062
44063         Add isnan module.
44064         * doc/posix-functions/isnan.texi: Mention new module.
44065         * lib/math.in.h: Define isnan macro if we have decided to replace
44066         it.
44067         * m4/isnan.m4: New file.
44068         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
44069         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
44070         also.
44071         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
44072         redundancy.
44073         * m4/math_h.m4: Initialize and substitute variables for isnan
44074         module.
44075         * modules/isnan: New file.
44076         * modules/isnan-tests: New file.
44077         * modules/math: Add substitutions for new module.
44078         * tests/test-isnan.c: New file.
44079         * MODULES.html.sh: Mention new module.
44080
44081 2008-07-10  Ben Pfaff  <blp@gnu.org>
44082
44083         Add isnanf module.
44084         * lib/isnanf.m4: New file.
44085         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
44086         (gl_HAVE_ISNANF_IN_LIBM): New macro.
44087         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
44088         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
44089         * modules/isnanf: New file.
44090         * modules/isnanf-tests: New file.
44091         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
44092         files.
44093         * tests/test-isnanf-nolibm.c: factored most of its contents into
44094         new file tests/test-isnanf.h.
44095         * tests/test-isnanf.h: New file.
44096         * tests/test-isnanf.c: New file.
44097         * MODULES.html.sh: Mention new module.
44098         * doc/glibc-functions/isnanf.texi: Mention new module.
44099
44100 2008-07-10  Ben Pfaff  <blp@gnu.org>
44101
44102         Add isnand module.
44103         * lib/isnand.h: New file.
44104         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
44105         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
44106         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
44107         functionality also.
44108         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
44109         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
44110         (gl_HAVE_ISNAND_IN_LIBM): New macro.
44111         * modules/isnand: New file.
44112         * modules/isnand-tests: New file.
44113         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
44114         files.
44115         * tests/test-isnand-nolibm.c: factored most of its contents into
44116         new file tests/test-isnand.h.
44117         * tests/test-isnand.h: New file.
44118         * tests/test-isnand.c: New file.
44119         * MODULES.html.sh: Mention new module.
44120
44121 2008-07-10  Ben Pfaff  <blp@gnu.org>
44122
44123         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
44124         * lib/isnand.h: Rename lib/isnand-nolibm.h.
44125         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
44126         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
44127         * modules/isnanf-nolibm: Update references to renamed files.
44128         * modules/isnand-nolibm: Likewise.
44129         * modules/isnanf-nolibm-tests: Likewise.
44130         * modules/isnand-nolibm-tests: Likewise.
44131         * lib/frexp.c: Likewise.
44132         * lib/isfinite.c: Likewise.
44133         * lib/signbitd.c: Likewise.
44134         * lib/signbitf.c: Likewise.
44135         * lib/vasnprintf.c: Likewise.
44136         * tests/test-ceilf1.c: Likewise.
44137         * tests/test-ceilf2.c: Likewise.
44138         * tests/test-floorf1.c: Likewise.
44139         * tests/test-floorf2.c: Likewise.
44140         * tests/test-frexp.c: Likewise.
44141         * tests/test-round1.c: Likewise.
44142         * tests/test-round2.c: Likewise.
44143         * tests/test-roundf1.c: Likewise.
44144         * tests/test-strtod.c: Likewise.
44145         * tests/test-trunc1.c: Likewise.
44146         * tests/test-trunc2.c: Likewise.
44147         * tests/test-truncf1.c: Likewise.
44148         * tests/test-truncf2.c: Likewise.
44149         * NEWS: Mention the renamed header files.
44150
44151 2008-07-11  Jim Meyering  <meyering@redhat.com>
44152
44153         vc-list-files: make the last-resort awk code more portable
44154         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
44155         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
44156         does not support it.
44157
44158 2008-07-10  Eric Blake  <ebb9@byu.net>
44159
44160         Work with tar's bootstrap.
44161         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
44162         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
44163         an m4 comment.
44164
44165 2008-07-09  Jim Meyering  <meyering@redhat.com>
44166
44167         posix-shell.m4: fix typo that made this test malfunction
44168         * m4/posix-shell.m4: Remove capitalization in variable name.
44169
44170 2008-07-08  Bruno Haible  <bruno@clisp.org>
44171
44172         * m4/onceonly.m4: Update comments.
44173         Reported by Ben Pfaff <blp@cs.stanford.edu>.
44174
44175 2008-07-04  Jim Meyering  <meyering@redhat.com>
44176
44177         * users.txt: Add vc-dwim.
44178         (bison, coreutils): Use the gitweb URL.
44179
44180 2008-07-03  Jim Meyering  <meyering@redhat.com>
44181
44182         * users.txt: Add libffcall.  From Sam Steingold.
44183
44184 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
44185
44186         getdate.y: do not ignore TZ with relative day, month or year offset
44187         * lib/getdate.y (get_date): Move the tz-handling block to follow the
44188         relative-date-handling, since otherwise, the latter would clobber the
44189         sole output (an updated Start value) of the tz-handling block.
44190         * tests/test-getdate.c: Tests for the fix
44191
44192 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44193
44194         Recognize 'foo_LIBRARIES += libgnu.a'.
44195         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
44196         makefile snippet has already specified an installation location,
44197         also using '+='.
44198
44199 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
44200
44201         getdate.y: factor out common actions
44202         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
44203         Use them in place of open-coded actions.
44204
44205 2008-07-01  Simon Josefsson  <simon@josefsson.org>
44206
44207         Add self-test for getdate module.
44208         * modules/getdate-tests: New file.
44209         * tests/test-getdate.c: New file.
44210
44211 2008-06-29  Bruno Haible  <bruno@clisp.org>
44212
44213         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
44214         .gitignore.
44215         Reported by Sylvain Beucler <beuc@beuc.net>.
44216
44217 2008-06-29  Bruno Haible  <bruno@clisp.org>
44218
44219         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
44220         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
44221
44222 2008-06-29  Bruno Haible  <bruno@clisp.org>
44223
44224         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
44225         EXTRA_DIST.
44226         Reported by Sylvain Beucler <beuc@beuc.net>.
44227
44228 2008-06-26  Jim Meyering  <meyering@redhat.com>
44229
44230         make several modules depend on the "open" module
44231         This provides slightly increased consistency when opening-for-write
44232         the name of a non-directory spelled with a trailing slash.
44233         * modules/chdir-safer: Likewise.
44234         * modules/chown: Likewise.
44235         * modules/clean-temp: Likewise.
44236         * modules/copy-file: Likewise.
44237         * modules/fchdir: Likewise.
44238         * modules/fcntl-safer: Likewise.
44239         * modules/pipe: Likewise.
44240         * modules/utime: Likewise.
44241         Prompted by Eric Blake and Bruno Haible.
44242
44243 2008-06-24  Andreas Schwab  <schwab@suse.de>
44244
44245         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
44246         literals can be used as initializers for global variables.
44247
44248 2008-06-23  Eric Blake  <ebb9@byu.net>
44249
44250         Make gnulib-cache.m4 easier to diff.
44251         * gnulib-tool (func_import): Allow newlines when reading cached
44252         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
44253
44254 2008-06-23  Bruno Haible  <bruno@clisp.org>
44255
44256         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
44257         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
44258         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
44259         m4/signalblocking.m4.
44260         (gl_PREREQ_SIGACTION): Don't invoke it.
44261         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
44262         gl_PREREQ_SIG_HANDLER_H.
44263         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
44264         Don't check for sigaction here.
44265
44266 2008-06-23  Bruno Haible  <bruno@clisp.org>
44267
44268         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
44269         (install_handlers): Don't set the SA_RESETHAND flag.
44270
44271 2008-06-23  Bruno Haible  <bruno@clisp.org>
44272
44273         * m4/sigaction.m4: Comment fixes.
44274         * lib/signal.in.h: Likewise.
44275
44276 2008-06-23  Eric Blake  <ebb9@byu.net>
44277
44278         Fix typo.
44279         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
44280
44281         Avoid SA_ namespace.
44282         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
44283         Reported by Ralf Wildenhues.
44284
44285         Avoid test failure due to SA_RESTORER.
44286         * tests/test-sigaction.c (SA_MASK): New macro.
44287         (main): Avoid failing due to extension flags being set.
44288         Reported by Jim Meyering.
44289
44290         Revert use of sig-handler.h in sigprocmask.c.
44291         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
44292         it requires the existence of struct sigaction.
44293         * lib/sigprocmask.c (handler_t): Restore typedef.
44294         (rpl_signal, old_handlers): Use local type.
44295
44296 2008-06-22  Bruno Haible  <bruno@clisp.org>
44297
44298         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
44299         conditionally.
44300         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
44301
44302 2008-06-22  Bruno Haible  <bruno@clisp.org>
44303
44304         * doc/posix-functions/siginterrupt.texi: Move note.
44305
44306         * lib/signal.in.h (SA_RESTART): New macro.
44307         * lib/sigaction.c: Update comment.
44308
44309         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
44310
44311         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
44312         (gl_PREREQ_SIGPROCMASK): Invoke it.
44313         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
44314
44315         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
44316
44317         * lib/sigprocmask.c: Update a comment.
44318
44319 2008-06-21  Eric Blake  <ebb9@byu.net>
44320
44321         Use sigaction module rather than signal().
44322         * modules/c-stack (Depends-on): Add sigaction.
44323         * modules/fatal-signal (Depends-on): Likewise.
44324         * modules/nanosleep (Depends-on): Likewise.
44325         * modules/sigprocmask (Files): Add sig-handler.h.
44326         * modules/sigaction (Files): Likewise.
44327         * lib/sig-handler.h (get_handler): New file, suggested by Paul
44328         Eggert.
44329         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
44330         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
44331         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
44332         (init_fatal_signals): Likewise.
44333         * lib/nanosleep.c (rpl_nanosleep): Likewise.
44334         (siginterrupt): Delete fallback.
44335         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
44336         instead.
44337         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
44338         siginterrupt.
44339
44340         New module sigaction, for mingw.
44341         * modules/sigaction: New module...
44342         * modules/sigaction-tests: ...and its test.
44343         * m4/sigaction.m4: New file.
44344         * lib/sigaction.c: Likewise.
44345         * tests/test-sigaction.c: Likewise.
44346         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
44347         * modules/signal (Makefile.am): Likewise.
44348         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
44349         needed.
44350         * doc/posix-headers/signal.texi (signal.h): Mention provided
44351         types.
44352         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
44353         that sigaction is preferable.
44354         * doc/posix-functions/sigaction.texi (sigaction): Mention new
44355         module.
44356         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
44357         sigaction.
44358
44359         Improve robustness of sigprocmask by overriding signal.
44360         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
44361         is in use.
44362         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
44363         (SIGKILL, SIGSTOP): Provide fallbacks.
44364         (rpl_signal): Implement.
44365         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
44366         signal can be called inside handlers.
44367
44368         Fix nanosleep module on mingw.
44369         * modules/nanosleep (Depends-on): Add sys_select.
44370         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
44371
44372         Fix licensing of sigprocmask.
44373         * modules/raise (License): Relicense as LGPL.
44374
44375 2008-06-21  Bruno Haible  <bruno@clisp.org>
44376
44377         * lib/propername.c (proper_name_utf8): Don't use the transliterated
44378         result if it contains question marks.
44379         Reported by Michael Geng <linux@michaelgeng.de>.
44380
44381 2008-06-19  Bruno Haible  <bruno@clisp.org>
44382
44383         Fix CVS-ism.
44384         * doc/gnulib.texi: Include updated-stamp.texi.
44385         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
44386         (updated-stamp.texi): New rule.
44387         (gnulib.info): Depend on it.
44388         * doc/.gitignore: Add updated-stamp.texi.
44389         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
44390
44391 2008-06-19  Bruno Haible  <bruno@clisp.org>
44392
44393         * doc/Makefile (gnulib.info): Update and simplify dependencies.
44394         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
44395
44396 2008-06-19  Eric Blake  <ebb9@byu.net>
44397
44398         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
44399         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
44400         Reported by Stepan Kasal.
44401
44402 2008-06-18  Bruno Haible  <bruno@clisp.org>
44403
44404         * lib/fatal-signal.c (init_fatal_signals): Add comment.
44405         Reported by Eric Blake.
44406
44407 2008-06-18  Eric Blake  <ebb9@byu.net>
44408
44409         Work around cygwin 1.5.25 strsignal bug.
44410         * tests/test-strsignal.c: Allow for const char *.
44411         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
44412
44413 2008-06-18  Simon Josefsson  <simon@josefsson.org>
44414
44415         * users.txt: Update URL to article and add author/date
44416         information.
44417
44418 2008-06-17  Bruno Haible  <bruno@clisp.org>
44419
44420         New macro gl_DISABLE_THREADS.
44421         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
44422         if the user did not pass --enable-threads or --disable-threads option.
44423         (gl_DISABLE_THREADS): New macro.
44424         Reported by Eric Blake <ebb9@byu.net>.
44425
44426 2008-06-17  Bruno Haible  <bruno@clisp.org>
44427
44428         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
44429         when the macro ignores it.
44430         Based on a patch by Eric Blake <ebb9@byu.net>.
44431
44432 2008-06-17  Bruno Haible  <bruno@clisp.org>
44433
44434         * modules/tls (License): Change to LGPLv2+.
44435         Reported by Eric Blake.
44436
44437 2008-06-17  Eric Blake  <ebb9@byu.net>
44438
44439         Simplify c-stack prerequisites.
44440         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
44441         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
44442         no longer requires <ucontext.h> to exist.  Optimize setrlimit
44443         check.
44444         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
44445         <sys/resource.h>.
44446
44447         Move c-stack test into testsuite.
44448         * modules/c-stack-tests: New file.
44449         * lib/c-stack.c [DEBUG]: Move test program...
44450         * tests/test-c-stack.c: ...into this new file.  Skip rather than
44451         fail test if sigaltstack is lacking.
44452         * tests/test-c-stack.sh: New driver file.
44453
44454 2008-06-16  Eric Blake  <ebb9@byu.net>
44455
44456         Use raise module consistently.
44457         * modules/fatal-signal (Depends-on): Add raise.
44458         * modules/sigprocmask (Depends-on): Likewise.
44459         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
44460         * lib/sigprocmask.c (sigprocmask): Likewise.
44461         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
44462         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
44463
44464         Fix compliance bug in sigpending.
44465         * lib/sigprocmask.c (sigpending): Return pending array via
44466         parameter, not return value.
44467
44468 2008-06-14  Eric Blake  <ebb9@byu.net>
44469
44470         Improve obstack-printf test code.
44471         * tests/test-obstack-printf.c (test_function): Fix comment, and
44472         simplify usage of obstack_* in macros.  Add a test for coverage.
44473         Reported by Bruno Haible.
44474
44475 2008-06-14  Bruno Haible  <bruno@clisp.org>
44476
44477         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
44478         array size as a constant, not as a const variable.
44479         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
44480         AC_USE_SYSTEM_EXTENSIONS.
44481         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
44482         Test whether the obstack_printf function actually exists.
44483         * modules/obstack-printf (Depends-on): Add extensions.
44484         (Include): Remove obstack.h.
44485         * modules/obstack-printf-posix (Depends-on): Add extensions.
44486         (Include): Remove obstack.h.
44487
44488 2008-06-13  Eric Blake  <ebb9@byu.net>
44489
44490         Add obstack-printf and obstack-printf-posix modules.
44491         * modules/obstack-printf: New file.
44492         * modules/obstack-printf-posix: Likewise.
44493         * MODULES.html.sh (Misc): Mention them.
44494         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
44495         Likewise.
44496         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
44497         Likewise.
44498         * modules/stdio (Makefile.am): Accomodate new modules.
44499         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
44500         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
44501         Declare.
44502         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
44503         functions.
44504         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
44505         (gl_REPLACE_OBSTACK_PRINTF): New macros
44506         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
44507         * tests/test-obstack-printf.c: New file.
44508         * modules/obstack-printf-tests: Likewise.
44509         * modules/obstack-printf-posix-tests: Likewise.
44510
44511 2008-06-11  Bruno Haible  <bruno@clisp.org>
44512
44513         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
44514         * lib/open.c: Include errno.h.
44515         (open): Fail when attempting to write to a file that has a trailing
44516         slash.
44517         * tests/test-open.c (main): Test against trailing slash bug.
44518         * doc/posix-functions/open.texi: Mention the trailing slash bug.
44519
44520 2008-06-10  Bruno Haible  <bruno@clisp.org>
44521
44522         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
44523         for $? to work inside the trap command, with various /bin/sh-s.
44524         * tests/test-vc-list-files-cvs.sh: Likewise.
44525
44526 2008-06-10  Bruno Haible  <bruno@clisp.org>
44527
44528         * lib/acl-internal.h: Don't include gettext.h here.
44529         * lib/set-mode-acl.c: Include gettext.h here.
44530         * lib/copy-acl.c: Likewise.
44531
44532 2008-06-10  Bruno Haible  <bruno@clisp.org>
44533
44534         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
44535         * lib/wait-process.c (wait_subprocess): Likewise.
44536         * lib/execute.h (execute): Add termsigp argument.
44537         * lib/execute.c (execute): Likewise.
44538         * lib/csharpcomp.c (compile_csharp_using_pnet,
44539         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
44540         * lib/csharpexec.c (execute_csharp_using_pnet,
44541         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
44542         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
44543         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
44544         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
44545         is_jikes_present): Update.
44546         * lib/javaexec.c (execute_java_class): Update.
44547         * lib/javaversion.c (execute_and_read_line): Update.
44548         * NEWS: Document the changes.
44549         Reported by Eric Blake.
44550
44551 2008-06-10  Eric Blake  <ebb9@byu.net>
44552
44553         Add missing include.
44554         * tests/test-strstr.c (includes): Add <signal.h>.
44555         * tests/test-strcasestr.c (includes): Likewise.
44556         * tests/test-memmem.c (includes): Likewise.
44557
44558 2008-06-10  Bruno Haible  <bruno@clisp.org>
44559
44560         * lib/wait-process.c (wait_subprocess): Add an assertion.
44561
44562 2008-06-10  Bruno Haible  <bruno@clisp.org>
44563
44564         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
44565
44566 2008-06-10  Bruno Haible  <bruno@clisp.org>
44567
44568         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
44569         using alarm().
44570         * tests/test-strcasestr.c (main): Likewise.
44571         * tests/test-strstr.c (main): Likewise.
44572
44573 2008-06-09  Bruno Haible  <bruno@clisp.org>
44574
44575         Work around the Solaris 10 ACE ACLs ABI change.
44576         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
44577         declare if ACL_NO_TRIVIAL is present.
44578         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
44579         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
44580         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
44581         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
44582         define if ACL_NO_TRIVIAL is present.
44583         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
44584         and use the current ABI.
44585         (file_has_acl): Use same #if condition as elsewhere.
44586         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
44587         in use, and use the current ABI.
44588         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
44589         Reported by Jim Meyering.
44590
44591 2008-06-09  Eric Blake  <ebb9@byu.net>
44592
44593         Work around environments that (stupidly) ignore SIGALRM.
44594         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
44595         before using alarm().
44596         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
44597         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
44598         Reported by Ian Beckwith <ianb@erislabs.net>.
44599
44600         Produce autobuild blurb earlier in log.
44601         * modules/autobuild (configure.ac-early): Move AB_INIT here.
44602
44603 2008-06-09  Jim Meyering  <meyering@redhat.com>
44604         and OndÅ™ej Vašík  <ovasik@redhat.com>
44605
44606         utimens.c: correct kernel bug work-around
44607         OndÅ™ej Vašík found that the invalid return value of 280 indicates
44608         failure, not success, and the kernel bug we're trying to work
44609         around affects not just the utimensat call, but also the fallback
44610         futimens call.
44611         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
44612         not success.
44613         [HAVE_FUTIMENS]: Use the same work-around, here.
44614
44615 2008-06-09  Jim Meyering  <meyering@redhat.com>
44616
44617         add more guards around definition of ACE_-related code
44618         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
44619         ALLOW and ACE_OWNER are also defined.
44620
44621 2008-06-08  Bruno Haible  <bruno@clisp.org>
44622
44623         * lib/acl-internal.h: Add me as co-author.
44624         * lib/file-has-acl.c: Likewise.
44625         * lib/set-mode-acl.c: Likewise.
44626         * lib/copy-acl.c: Likewise.
44627
44628 2008-06-08  Bruno Haible  <bruno@clisp.org>
44629
44630         Add support for AIX ACLs.
44631         * lib/acl-internal.h (acl_nontrivial): New declaration.
44632         * lib/file-has-acl.c (acl_nontrivial): New function.
44633         (file_has_acl): Add implementation using AIX 4 ACL API.
44634         * lib/set-mode-acl.c (qset_acl): Likewise.
44635         * lib/copy-acl.c (qcopy_acl): Likewise.
44636
44637 2008-06-08  Bruno Haible  <bruno@clisp.org>
44638
44639         Add support for HP-UX ACLs.
44640         * lib/acl-internal.h (acl_nontrivial): New declaration.
44641         * lib/file-has-acl.c (acl_nontrivial): New function.
44642         (file_has_acl): Add implementation using HP-UX 11 ACL API.
44643         * lib/set-mode-acl.c (qset_acl): Likewise.
44644         * lib/copy-acl.c (qcopy_acl): Likewise.
44645
44646 2008-06-08  Bruno Haible  <bruno@clisp.org>
44647
44648         Add support for Cygwin ACLs.
44649         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
44650         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
44651         the chmod_or_fchmod call.
44652         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
44653
44654 2008-06-08  Bruno Haible  <bruno@clisp.org>
44655
44656         Fix bug with setuid modes in Solaris 10+ code.
44657         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
44658         succeeded, when the mode contains some special bits.
44659
44660 2008-06-08  Bruno Haible  <bruno@clisp.org>
44661
44662         Add support for Solaris 7..10 ACLs.
44663         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
44664         declarations.
44665         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
44666         functions.
44667         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
44668         * lib/set-mode-acl.c (qset_acl): Likewise.
44669         * lib/copy-acl.c (qcopy_acl): Likewise.
44670
44671 2008-06-08  Bruno Haible  <bruno@clisp.org>
44672
44673         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
44674         declaration.
44675         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
44676         (acl_access_nontrivial): Remove MacOS X case.
44677         (file_has_acl): Use acl_extended_nontrivial.
44678         * lib/copy-acl.c (qcopy_acl): Likewise.
44679
44680 2008-06-08  Bruno Haible  <bruno@clisp.org>
44681
44682         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
44683
44684 2008-06-08  Jim Meyering  <meyering@redhat.com>
44685
44686         * modules/acl (Maintainer): Add Bruno Haible.
44687
44688 2008-06-07  Bruno Haible  <bruno@clisp.org>
44689
44690         Improve support for Tru64 ACLs.
44691         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
44692         ACL on OSF/1.
44693
44694 2008-06-07  Bruno Haible  <bruno@clisp.org>
44695
44696         Add support for MacOS X ACLs.
44697         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
44698         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
44699         * lib/set-mode-acl.c (qset_acl): Likewise.
44700         * lib/copy-acl.c (qcopy_acl): Likewise.
44701
44702 2008-06-07  Bruno Haible  <bruno@clisp.org>
44703
44704         Fix memory leak introduced on 2008-05-22.
44705         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
44706         use.
44707
44708 2008-06-07  Bruno Haible  <bruno@clisp.org>
44709
44710         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
44711         to construct an empty ACL.
44712
44713 2008-06-07  Bruno Haible  <bruno@clisp.org>
44714
44715         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
44716         precisely.
44717         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
44718
44719 2008-06-07  Bruno Haible  <bruno@clisp.org>
44720
44721         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
44722         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
44723
44724 2008-06-07  Bruno Haible  <bruno@clisp.org>
44725
44726         * doc/posix-functions/_setjmp.texi: Explain the use of this function
44727         regardless of POSIX.
44728         * doc/posix-functions/_longjmp.texi: Likewise.
44729         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
44730         SystemV platform in this case.
44731
44732 2008-06-06  Eric Blake  <ebb9@byu.net>
44733
44734         Document abort() bugs.
44735         * doc/posix-functions/abort.texi (abort): Mention anomalies.
44736
44737         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
44738         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
44739         sigsetjmp.
44740         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
44741         siglongjmp, but only as a macro.
44742         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
44743         is obsolete.
44744         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
44745
44746         Tweak documentation to cover cygwin argz bugs.
44747         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
44748         argz bug fix; no code change needed since no cygwin releases
44749         occurred between the last fix and the bug being tested.
44750         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
44751         module and recently fixed cygwin bugs.
44752         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
44753         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
44754         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
44755         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
44756         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
44757         Likewise.
44758         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
44759         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
44760         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
44761         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
44762         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
44763         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
44764         Likewise.
44765
44766         Avoid gcc warning on cygwin.
44767         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
44768         !ACL_NO_TRIVIAL]: Avoid unused variable.
44769
44770 2008-06-05  Eric Blake  <ebb9@byu.net>
44771
44772         Be tolerant of UNKNOWN version in gnulib-tool test dir.
44773         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
44774         git-version-gen fails to come up with a version.
44775         Reported by Simon Josefsson.
44776
44777 2008-06-05  Jim Meyering  <meyering@redhat.com>
44778             Paul Eggert  <eggert@cs.ucla.edu>
44779
44780         utimens.c: work around a probable Linux kernel bug
44781         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
44782         appears to be a kernel bug that causes utimensat to return 280
44783         instead of 0, indicating success.
44784
44785 2008-06-04  Bruno Haible  <bruno@clisp.org>
44786
44787         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
44788         2008-06-01 commit.
44789
44790 2008-06-04  Bruno Haible  <bruno@clisp.org>
44791
44792         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
44793         * lib/file-has-acl.c (acl_access_nontrivial): New function.
44794         (file_has_acl): Use it. Save errno afterwards.
44795         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
44796
44797 2008-06-03  Bruno Haible  <bruno@clisp.org>
44798
44799         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
44800         draft code. Simplify #ifs.
44801         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
44802         Put Solaris code after POSIX-draft code. Fix comments regarding
44803         Solaris 10, HP-UX. Mention Cygwin.
44804         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
44805
44806 2008-06-03  Eric Blake  <ebb9@byu.net>
44807
44808         Provide fallback for older kernels.
44809         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
44810         Provide runtime fallback if kernel lacks support.
44811         Reported by Mike Frysinger.
44812
44813 2008-06-02  Bruno Haible  <bruno@clisp.org>
44814
44815         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
44816         it exists.
44817
44818 2008-06-02  Bruno Haible  <bruno@clisp.org>
44819
44820         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
44821         * lib/copy-acl.c (qcopy_acl): Update comment.
44822
44823 2008-06-02  Bruno Haible  <bruno@clisp.org>
44824
44825         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
44826         like ACL APIs.
44827
44828 2008-06-02  Bruno Haible  <bruno@clisp.org>
44829
44830         * tests/test-file-has-acl.sh: Use different code for Cygwin.
44831         * tests/test-set-mode-acl.sh: Likewise.
44832         * tests/test-copy-acl.sh: Likewise.
44833         * tests/test-copy-file.sh: Likewise.
44834
44835 2008-06-02  Bruno Haible  <bruno@clisp.org>
44836
44837         * tests/test-file-has-acl.sh: Remove unused code.
44838
44839 2008-06-01  Bruno Haible  <bruno@clisp.org>
44840
44841         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
44842         (copy_acl): Just a wrapper around qcopy_acl that emits the error
44843         messages.
44844         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
44845
44846 2008-06-01  Bruno Haible  <bruno@clisp.org>
44847
44848         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
44849         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
44850         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
44851         APIs.
44852         * modules/acl-tests (configure.ac): Remove tests now contained in
44853         m4/acl.m4.
44854
44855 2008-06-02  Jim Meyering  <meyering@redhat.com>
44856
44857         announce-gen: use a better key-server host name
44858         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
44859         it may be more consistently reliable.  Suggested by Werner Koch
44860         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
44861
44862 2008-06-01  Bruno Haible  <bruno@clisp.org>
44863
44864         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
44865         Reported by Voroskoi Andras <voroskoi@gmail.com>.
44866
44867 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
44868
44869         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
44870
44871 2008-06-01  Bruno Haible  <bruno@clisp.org>
44872
44873         New ACL tests.
44874         * tests/test-file-has-acl.sh: New file.
44875         * tests/test-file-has-acl.c: New file.
44876         * tests/test-set-mode-acl.sh: New file.
44877         * tests/test-set-mode-acl.c: New file.
44878         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
44879         * tests/test-copy-acl.c: New file.
44880         * modules/acl-tests: New file, based on modules/copy-file-tests.
44881         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
44882         (Depends-on): Add acl-tests.
44883         (configure.ac): Remove checks.
44884         (Makefile.am): Don't create test-sameacls program here any more.
44885
44886 2008-06-01  Bruno Haible  <bruno@clisp.org>
44887
44888         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
44889         * tests/test-sameacls.c: Include progname.h.
44890         (main): Invoke set_program_name. Portability fixes for MacOS X,
44891         Solaris, HP-UX.
44892
44893 2008-06-01  Bruno Haible  <bruno@clisp.org>
44894
44895         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
44896         function.
44897         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
44898
44899 2008-06-01  Bruno Haible  <bruno@clisp.org>
44900
44901         * modules/rpmatch (Depends-on): Add strdup.
44902
44903 2008-06-01  Bruno Haible  <bruno@clisp.org>
44904
44905         * lib/pipe.c: Include unistd-safer.h.
44906         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
44907         * modules/pipe (Depends-on): Add unistd-safer.
44908
44909 2008-05-30  Simon Josefsson  <simon@josefsson.org>
44910
44911         * modules/autobuild (configure.ac): Call AB_INIT.
44912
44913 2008-05-30  Simon Josefsson  <simon@josefsson.org>
44914
44915         * tests/test-getaddrinfo.c: Don't print debug messages by default.
44916         Suggested by Bruno Haible <bruno@clisp.org>.
44917
44918 2008-05-30  Simon Josefsson  <simon@josefsson.org>
44919
44920         * tests/test-base64.c: Cast size_t to unsigned long when invoking
44921         printf.  Use %lu instead of %d.  Reported by Bruno Haible
44922         <bruno@clisp.org>.
44923
44924 2008-05-29  Eric Blake  <ebb9@byu.net>
44925
44926         Prefer new POSIX 200x interfaces over futimesat.
44927         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
44928         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
44929         when available.
44930         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
44931
44932 2008-05-28  Bruno Haible  <bruno@clisp.org>
44933
44934         * modules/stpcpy (License): Change to LGPLv2+.
44935         Requested by David Lutterkort <dlutter@redhat.com>.
44936
44937 2008-05-27  Bruno Haible  <bruno@clisp.org>
44938
44939         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
44940         current mingw.
44941         Reported by Jose E. Marchesi <jemarch@gnu.org>.
44942
44943 2008-05-27  Bruno Haible  <bruno@clisp.org>
44944
44945         * modules/iconv_open (Link): New section, from module 'iconv'.
44946         * modules/striconv (Link): Likewise.
44947         * modules/striconveh (Link): Likewise.
44948         * modules/xstriconv (Link): Likewise.
44949         * modules/unicodeio (Link): Likewise.
44950         * modules/propername (Link): Likewise.
44951         Reported by Jim Meyering.
44952
44953 2008-05-26  Jim Meyering  <meyering@redhat.com>
44954
44955         sha256: do not artificially restrict buffer length to be < 2^32
44956         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
44957         uint32_t to size_t.
44958         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
44959         to match.
44960
44961         avoid unaligned access errors, e.g., on sparc
44962         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
44963         direct access through a possibly-unaligned uint64* pointer.
44964         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
44965         direct access through a possibly-unaligned uint32* pointer.
44966         Prompted by this patch from Tom "spot" Callaway:
44967         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
44968
44969         sha512.c: fix typo in comment
44970         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
44971
44972 2008-05-25  Bruno Haible  <bruno@clisp.org>
44973
44974         * lib/set-mode-acl.c: Renamed from lib/acl.c.
44975         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
44976         (Makefile.am): Update lib_SOURCES.
44977
44978 2008-05-25  Bruno Haible  <bruno@clisp.org>
44979
44980         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
44981
44982 2008-05-25  Jim Meyering  <meyering@redhat.com>
44983
44984         useless-if-before-free: freed expr may have white-space differences
44985         * build-aux/useless-if-before-free: Recognize cases in which the
44986         freed expression differs from the tested one in embedded white
44987         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
44988         $1 was used, so we can't make any regexp shy.  Improved tests now
44989         detect this.
44990
44991         useless-if-before-free: accept white space in the expression.
44992         * build-aux/useless-if-before-free: For now, any white space
44993         in the expression must be identical in the free argument.
44994
44995         useless-if-before-free: efficiency tweak
44996         * build-aux/useless-if-before-free: Make the expression-matching
44997         regexp "shy".
44998         Make the *outer* regexp shy, not the expr-matching one.
44999
45000         update code-in-comment to accept cast of free arg
45001         * build-aux/useless-if-before-free: Update regexp.
45002
45003 2008-05-25  Bruno Haible  <bruno@clisp.org>
45004
45005         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
45006         * modules/copy-file-tests (Files, Makefile.am): Update.
45007         * tests/test-copy-file.c (func_test_copy): Update.
45008
45009 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
45010
45011         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
45012
45013 2008-05-23  Bruno Haible  <bruno@clisp.org>
45014
45015         Improve support for ACLs on OSF/1.
45016         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
45017         Remove fallback for unknown flavors of ACLs.
45018
45019 2008-05-22  Bruno Haible  <bruno@clisp.org>
45020
45021         Add support for ACLs on OSF/1.
45022         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
45023         replacements.
45024         (acl_free_text): New macro fallback.
45025         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
45026         acl_free.
45027         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
45028         acl_free_text function. Require AC_C_INLINE.
45029
45030 2008-05-22  Bruno Haible  <bruno@clisp.org>
45031
45032         Make copy_acl work on MacOS X 10.5.
45033         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
45034         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
45035         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
45036         If MODE_INSIDE_ACL, don't assume that every system has the same text
45037         representation for ACLs as FreeBSD.
45038         * lib/copy-acl.c (copy_acl): Add support for platforms with
45039         !MODE_INSIDE_ACL.
45040         * lib/file-has-acl.c (file_has_acl): Likewise.
45041         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
45042         FreeBSD, MacOS X, or IRIX, respectively.
45043
45044 2008-05-22  Bruno Haible  <bruno@clisp.org>
45045
45046         * lib/acl.h: Don't include <sys/acl.h>.
45047         (GETACLCNT): Move fallback to lib/acl-internal.h.
45048         * lib/acl-internal.h: Include <sys/acl.h> here.
45049         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
45050
45051 2008-05-22  Bruno Haible  <bruno@clisp.org>
45052
45053         Split off copy_acl function to separate file.
45054         * lib/copy-acl.c: New file, extracted from lib/acl.c.
45055         * lib/acl.c (copy_acl): Moved function to separate file.
45056         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
45057         * modules/acl (Files): Add lib/copy-acl.c.
45058         (Makefiles.am): Augment lib_SOURCES.
45059
45060 2008-05-22  Bruno Haible  <bruno@clisp.org>
45061
45062         * modules/copy-file-tests: New file.
45063         * tests/test-copy-file.sh: New file.
45064         * tests/test-copy-file.c: New file.
45065         * tests/test-copy-file-sameacls.c: New file.
45066
45067 2008-05-22  Eric Blake  <ebb9@byu.net>
45068
45069         Avoid gcc warning.
45070         * tests/test-memcmp.c (main): Pass NULL indirectly.
45071
45072 2008-05-21  Bruno Haible  <bruno@clisp.org>
45073
45074         Add reference doc about ACLs.
45075         * doc/acl-resources.txt: New file.
45076         * doc/acl-cygwin.txt: New file.
45077
45078 2008-05-21  Bruno Haible  <bruno@clisp.org>
45079
45080         Avoid one more warning from gcc.
45081         * lib/vasnprintf.c (IF_LINT): Update comments.
45082         (VASNPRINTF): Use it also for the 'prefix' array initializer.
45083
45084 2008-05-21  Jim Meyering  <meyering@redhat.com>
45085
45086         avoid a warning from gcc
45087         * lib/vasnprintf.c (IF_LINT): Define.
45088         (scale10_round_decimal_long_double):
45089         Use it to avoid a "may be used uninitialized" warning.
45090         (scale10_round_decimal_double): Likewise.
45091
45092 2008-05-21  Simon Josefsson  <simon@josefsson.org>
45093
45094         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
45095         declared.
45096
45097 2008-05-20  Bruno Haible  <bruno@clisp.org>
45098
45099         * tests/test-memcmp.c (main): Test also the sign of the result. Test
45100         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
45101
45102 2008-05-20  Simon Josefsson  <simon@josefsson.org>
45103
45104         * modules/memcmp-tests: New file.
45105         * tests/test-memcmp.c: New file.
45106
45107 2008-05-19  Bruno Haible  <bruno@clisp.org>
45108
45109         * modules/propername (Notice, configure.ac): Put quoted "..." into
45110         --keyword option.
45111         * lib/propername.h: Update comments accordingly.
45112         Reported by Eric Blake.
45113
45114 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
45115
45116         * modules/getpass-gnu (Depends-on): Add fseeko.
45117
45118 2008-05-19  Simon Josefsson  <simon@josefsson.org>
45119
45120         * modules/base64-tests: New file.
45121
45122 2008-05-19  Bo Borgerson <gigabo@gmail.com>
45123
45124         * lib/base64.c (base64_decode_ctx): If a decode context structure
45125         was passed in use it to ignore newlines.  If a context structure
45126         was _not_ passed in, continue to treat newlines as garbage (this
45127         is the historical behavior).  Formerly base64_decode.
45128         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
45129         takes a decode context structure.
45130         * lib/base64.h (base64_decode): Macro for four-argument calls.
45131         (base64_decode_alloc): Likewise.
45132         * lib/base64.c (base64_decode_ctx): If a decode context structure
45133         was passed in use it to ignore newlines.  If a context structure
45134         was _not_ passed in, continue to treat newlines as garbage (this
45135         is the historical behavior).  Formerly base64_decode.
45136         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
45137         takes a decode context structure.
45138         * lib/base64.h (base64_decode): Macro for four-argument calls.
45139         (base64_decode_alloc): Likewise.
45140
45141 2008-05-19  Jim Meyering  <meyering@redhat.com>
45142
45143         avoid a warning from gcc
45144         * lib/trim.c (IF_LINT): Define.
45145         (trim2): Use it to avoid a "may be used uninitialized" warning.
45146
45147         Fix doc typo.
45148         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
45149
45150 2008-05-19  Bruno Haible  <bruno@clisp.org>
45151
45152         * doc/glibc-functions/getpass.texi: Document limits of other
45153         implementations.
45154
45155 2008-05-19  Simon Josefsson  <simon@josefsson.org>
45156             Bruno Haible <bruno@clisp.org>
45157
45158         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
45159
45160 2008-05-18  Bruno Haible  <bruno@clisp.org>
45161
45162         * modules/propername: New file, from GNU gettext.
45163         * lib/propername.h: New file, from GNU gettext.
45164         * lib/propername.c: New file, from GNU gettext.
45165         * MODULES.html.sh (Internationalization functions): Add propername.
45166
45167 2008-05-16  Jim Meyering  <meyering@redhat.com>
45168             Bruno Haible  <bruno@clisp.org>
45169
45170         Avoid some warnings from "gcc -Wshadow".
45171         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
45172
45173 2008-05-15  Eric Blake  <ebb9@byu.net>
45174
45175         Extend previous patch to cygwin 1.7.0.
45176         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
45177         fast implementation in cygwin >= 1.7.0.
45178         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
45179         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
45180
45181 2008-05-15  Bruno Haible  <bruno@clisp.org>
45182
45183         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
45184         implementation in glibc >= 2.9.
45185         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
45186         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
45187
45188 2008-05-15  Bruno Haible  <bruno@clisp.org>
45189
45190         * MODULES.html.sh (Internationalization functions): Remove linebreak.
45191         (Unicode string functions): Add unilbrk/*.
45192         Reported by Karl Berry.
45193
45194 2008-05-15  Eric Blake  <ebb9@byu.net>
45195
45196         Fix violation of <stdbool.h> replacement in regex.
45197         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
45198         * lib/regexec.c (re_search_internal): Likewise.
45199         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
45200
45201 2008-05-15  Jim Meyering  <meyering@redhat.com>
45202
45203         avoid distracting test output when git or cvs is not found
45204         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
45205         * tests/test-vc-list-files-git.sh: Likewise.
45206
45207 2008-05-15  Eric Blake  <ebb9@byu.net>
45208
45209         Glibc finally accepted the memmem speedup code, bugzilla #5514.
45210         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
45211         glibc version.
45212         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
45213         * doc/posix-functions/strstr.texi (strstr): Likewise.
45214         * lib/str-two-way.h (MAX): Sychronize with glibc.
45215
45216 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
45217
45218         * lib/regcomp.c (optimize_utf8): Add a note on why we test
45219         opr.ctx_type.
45220         (calc_first): Initialize constraint field.
45221         (duplicate_node_closure): Use it instead of special casing ANCHORS.
45222         Fix grammar.
45223         (duplicate_node): Merge constraint field for all node types.
45224         (calc_eclosure_iter): Look at constraint field for all node types.
45225         * lib/regex_internal.c (create_cd_newstate): Don't look at
45226         opr.ctx_type.
45227
45228 2008-05-14  Bruno Haible  <bruno@clisp.org>
45229
45230         Help GCC to do better code generation.
45231         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
45232         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
45233         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
45234         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
45235         Declare with attribute 'malloc' if supported.
45236
45237 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
45238
45239         use "echo STR|wc -c" rather than unportable "expr length STR"
45240         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
45241         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
45242
45243 2008-05-14  Jim Meyering  <meyering@redhat.com>
45244
45245         use dd ibs=$n count=1 ... rather than less-portable head -c$n
45246         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
45247         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
45248         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
45249         via Collin Lasse.
45250
45251 2008-05-14  Eric Blake  <ebb9@byu.net>
45252
45253         Avoid quadratic growth in gl_LIBSOURCES.
45254         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
45255         Suggested by Bruno Haible.
45256
45257         Test xmemdup0.
45258         * modules/xmemdup0-tests: New file.
45259         * tests/test-xmemdup0.c: Likewise.
45260
45261 2008-05-13  Eric Blake  <ebb9@byu.net>
45262
45263         Split xmemdup0 into its own module.
45264         * modules/xmemdup0: New file.
45265         * lib/xmemdup0.h: Likewise.
45266         * lib/xmemdup0.c: Likewise.
45267         * MODULES.html.sh (Memory management functions): Add xmemdup0.
45268         * lib/xalloc.h (xmemdup0): Remove.
45269         * lib/xmalloc.c (xmemdup0): Likewise.
45270
45271 2008-05-13  Eric Blake  <ebb9@byu.net>
45272             Bruno Haible  <bruno@clisp.org>
45273
45274         Reduce number of forks required during autoconf.
45275         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
45276         and gl_LIBSOURCES_DIR.
45277         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
45278         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
45279         m4_syscmd per file.
45280         <m4_foreach_w>: Move...
45281         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
45282
45283 2008-05-13  Eric Blake  <ebb9@byu.net>
45284
45285         * gnulib-tool: Fix various comment typos.
45286
45287 2008-05-12  Bruno Haible  <bruno@clisp.org>
45288
45289         Tailor the linebreaking algorithm.
45290         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
45291
45292 2008-05-12  Bruno Haible  <bruno@clisp.org>
45293
45294         Update to Unicode 5.0.0.
45295         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
45296         LBP_JV, LBP_JT. Redistribute values.
45297         (unilbrk_table): Change size.
45298         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
45299         Unicode TR#14 rev. 22.
45300         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
45301         LBP_JV, LBP_JT. Redistribute values.
45302         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
45303         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
45304         Update.
45305         * lib/unilbrk/lbrkprop1.h: Regenerated.
45306         * lib/unilbrk/lbrkprop2.h: Regenerated.
45307         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
45308         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
45309         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
45310         Likewise.
45311         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
45312         Likewise.
45313         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
45314         result.
45315         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
45316         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
45317         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
45318         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
45319         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
45320         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
45321
45322 2008-05-11  Bruno Haible  <bruno@clisp.org>
45323
45324         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
45325
45326 2008-05-11  Bruno Haible  <bruno@clisp.org>
45327
45328         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
45329         * modules/unilbrk/gen-lbrk: New file.
45330
45331 2008-05-11  Bruno Haible  <bruno@clisp.org>
45332
45333         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
45334         * m4/sha512.m4 (gl_SHA512): Likewise.
45335
45336 2008-05-11  Jim Meyering  <meyering@redhat.com>
45337
45338         New modules: crypto/sha256, crypto/sha512 (from coreutils)
45339         * modules/crypto/sha256: New file.
45340         * modules/crypto/sha512: Likewise.
45341         * lib/sha256.c: Likewise.
45342         * lib/sha256.h: Likewise.
45343         * lib/sha512.c: Likewise.
45344         * lib/sha512.h: Likewise.
45345         * lib/u64.h: Likewise.
45346         * m4/sha256.m4: Likewise.
45347         * m4/sha512.m4: Likewise.
45348         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
45349
45350 2008-05-10  Bruno Haible  <bruno@clisp.org>
45351
45352         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
45353         (Input/Output <stdio.h>): Add xprintf.
45354         (Signal handling <signal.h>): Add strsignal.
45355         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
45356         (Core language properties): Add func.
45357         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
45358         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
45359         strings.
45360         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
45361         (Input/output): New section.
45362         (File system functions): Add openat-die, stat-macros.
45363         (Networking functions): Add sockets.
45364         (Unicode string functions): Add unictype/*.
45365         (Support for building libraries and executables): Add gperf.
45366         (Support for building documentation): Add agpl-3.0.
45367         (Misc): Add nocrash.
45368
45369 2008-05-10  Bruno Haible  <bruno@clisp.org>
45370
45371         * modules/unictype/gen-ctype: New file.
45372
45373 2008-05-10  Jim Meyering  <meyering@redhat.com>
45374
45375         Make chdir-safer.c more efficient on a system with no symlinks.
45376         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
45377         also if ELOOP is zero.  Suggested by Bruno Haible.
45378
45379         Make chdir-safer.c slightly safer.
45380         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
45381         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
45382
45383         Avoid compile failure on systems without ELOOP (like mingw).
45384         * lib/chdir-safer.c (ELOOP): Define if not already defined.
45385         Reported by Bruno Haible.
45386
45387 2008-05-10  Bruno Haible  <bruno@clisp.org>
45388
45389         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
45390         (is_utf8_encoding): Use a case-insensitive comparison.
45391         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
45392         streq.
45393
45394 2008-05-10  Bruno Haible  <bruno@clisp.org>
45395
45396         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
45397         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
45398         * lib/unilbrk/ulc-common.h (iconv_string_length,
45399         iconv_string_keeping_offsets): Remove declarations.
45400         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
45401         Don't include <iconv.h>, streq.h, xsize.h.
45402         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
45403         conversion.
45404         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
45405         <iconv.h>, streq.h, xsize.h.
45406         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
45407         conversion.
45408         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
45409         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
45410         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
45411         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
45412
45413 2008-05-10  Bruno Haible  <bruno@clisp.org>
45414
45415         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
45416         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
45417
45418         * modules/unilbrk/u32-width-linebreaks-tests: New file.
45419         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
45420
45421         * modules/unilbrk/u16-width-linebreaks-tests: New file.
45422         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
45423
45424         * modules/unilbrk/u8-width-linebreaks-tests: New file.
45425         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
45426
45427         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
45428         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
45429
45430         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
45431         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
45432
45433         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
45434         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
45435
45436         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
45437         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
45438
45439 2008-05-10  Bruno Haible  <bruno@clisp.org>
45440
45441         Split up 'linebreak' module.
45442         * lib/unilbrk.h: New file, based on lib/linebreak.h.
45443         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
45444         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
45445         modifications.
45446         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
45447         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
45448         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
45449         lib/linebreak.c.
45450         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
45451         lib/linebreak.c.
45452         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
45453         lib/linebreak.c.
45454         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
45455         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
45456         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
45457         lib/linebreak.c.
45458         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
45459         lib/linebreak.c.
45460         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
45461         lib/linebreak.c.
45462         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
45463         lib/linebreak.c.
45464         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
45465         lib/linebreak.c.
45466         * modules/unilbrk/base: New file.
45467         * modules/unilbrk/tables: New file.
45468         * modules/unilbrk/u8-possible-linebreaks: New file.
45469         * modules/unilbrk/u16-possible-linebreaks: New file.
45470         * modules/unilbrk/u32-possible-linebreaks: New file.
45471         * modules/unilbrk/ulc-common: New file.
45472         * modules/unilbrk/ulc-possible-linebreaks: New file.
45473         * modules/unilbrk/u8-width-linebreaks: New file.
45474         * modules/unilbrk/u16-width-linebreaks: New file.
45475         * modules/unilbrk/u32-width-linebreaks: New file.
45476         * modules/unilbrk/ulc-width-linebreaks: New file.
45477         * lib/linebreak.h: Remove file.
45478         * lib/linebreak.c: Remove file.
45479         * m4/linebreak.m4: Remove file.
45480         * modules/linebreak: Remove file.
45481         * NEWS: Mention the changes.
45482
45483 2008-05-09  Eric Blake  <ebb9@byu.net>
45484
45485         Add xmemdup0.
45486         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
45487         implementation.
45488         * lib/xmalloc.c (xmemdup0): New C implementation.
45489
45490 2008-05-08  Bruno Haible  <bruno@clisp.org>
45491
45492         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
45493
45494 2008-05-07  Eric Blake  <ebb9@byu.net>
45495
45496         Support cross-compilation of <wctype.h>.
45497         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
45498         AC_CACHE_CHECK.
45499
45500 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
45501
45502         * build-aux/vc-list-files: Add support for bzr.
45503
45504 2008-05-03  Jim Meyering  <meyering@redhat.com>
45505
45506         avoid failed assertion with tight malloc
45507         * tests/test-getndelim2.c: Correct an off-by-one assertion.
45508
45509 2008-05-03  Simon Josefsson  <simon@josefsson.org>
45510
45511         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
45512         are needed from arpa/inet.h.
45513         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
45514         Reported by Bruno Haible.
45515
45516 2008-05-02  Jim Meyering  <meyering@redhat.com>
45517
45518         avoid compilation error on FreeBSD 6
45519         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
45520
45521 2008-05-01  Jim Meyering  <meyering@redhat.com>
45522
45523         useless-if-before-free: correct --help's exit status description
45524         * build-aux/useless-if-before-free (usage): Like grep, exit 0
45525         for one or more matches, etc.  Reported by Bruno Haible.
45526
45527         vc-list-files: make the stand-alone gnulib test work
45528         * modules/vc-list-files-tests (configure.ac):
45529         Define and AC_SUBST abs_aux_dir.
45530         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
45531         $(abs_top_srcdir) to each script and having each of them
45532         duplicate the work of setting PATH, set PATH here, using
45533         the new variable, abs_aux_dir instead.
45534         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
45535         * tests/test-vc-list-files-git.sh: Likewise.
45536         Reported by Bruno Haible.
45537
45538 2008-05-01  Bruno Haible  <bruno@clisp.org>
45539
45540         * lib/getndelim2.c (getndelim2): Fix newsize computation during
45541         reallocation. Rename 'done' to 'found_delimiter'.
45542
45543 2008-05-01  Jim Meyering  <meyering@redhat.com>
45544
45545         vc-list-files: accommodate /bin/sh like the one from Solaris 10
45546         * build-aux/vc-list-files: Use `...`, not $(...).
45547
45548 2008-04-30  Jim Meyering  <meyering@redhat.com>
45549
45550         add tests for vc-list-files
45551         * modules/vc-list-files-tests: New module.
45552         * tests/test-vc-list-files-cvs.sh: New file.
45553         * tests/test-vc-list-files-git.sh: New file.
45554
45555         avoid a warning from gcc
45556         * lib/getndelim2.c (IF_LINT): Define.
45557         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
45558
45559         vc-list-files: work properly with build-aux/cvsu, too
45560         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
45561         to all cvs-based clauses.
45562
45563         vc-list-files: work properly in the CVS+awk case, too
45564         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
45565
45566         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
45567         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
45568         take more than one file argument, so .  Add quotes, just in case $dir
45569         ever contains a shell meta-character.  Prompted by Soren Hansen in
45570         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
45571
45572 2008-04-29  Eric Blake  <ebb9@byu.net>
45573
45574         Optimize getndelim2 to use block operations when possible.
45575         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
45576         freadseek, and memchr2.
45577         * lib/getndelim2.c (getndelim2): Use them for block reads.
45578
45579 2008-04-29  Bruno Haible  <bruno@clisp.org>
45580
45581         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
45582         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
45583         * modules/inet_ntop (Depends-on): Add extensions.
45584         * modules/inet_pton (Depends-on): Likewise.
45585         Reported by Simon Josefsson.
45586
45587 2008-04-29  Jim Meyering  <meyering@redhat.com>
45588
45589         When the is more than one match in a block, match all of them.
45590         * build-aux/useless-if-before-free: Iterate through each block
45591         until there are no more matches.
45592
45593         Fix broken useless-if-before-free script.
45594         * build-aux/useless-if-before-free: Fix typo: missing "?" after
45595         the expression to match cast of argument to free-like function.
45596
45597 2008-04-29  Eric Blake  <ebb9@byu.net>
45598
45599         Use new header.
45600         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
45601
45602 2008-04-29  Jim Meyering  <meyering@redhat.com>
45603
45604         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
45605         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
45606         by gnulib to exist and to declare e.g., inet_ntop.
45607         Don't include "inet_ntop.h", now removed.
45608
45609         * m4/arpa_inet_h.m4: Remove trailing blanks.
45610
45611 2008-04-29  Eric Blake  <ebb9@byu.net>
45612
45613         Silence valgrind on safe reads beyond potential array bounds.
45614         * lib/rawmemchr.valgrind: New file.
45615         * lib/strchrnul.valgrind: Likewise.
45616         * modules/rawmemchr (Files): Distribute new file.
45617         * modules/strchrnul (Files): Likewise.
45618         Suggested by Bruno Haible.
45619
45620 2008-04-29  Bruno Haible  <bruno@clisp.org>
45621
45622         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
45623         (inet_ntop, inet_pton): Change portability warning's wording.
45624         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
45625         Invoke gl_CHECK_NEXT_HEADERS.
45626         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
45627         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
45628         set ARPA_INET_H.
45629         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
45630         * modules/arpa_inet (Description): No longer only for systems that
45631         lack it.
45632         (Depends-on): Add include_next.
45633         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
45634         HAVE_ARPA_INET_H.
45635
45636 2008-04-29  Jim Meyering  <meyering@redhat.com>
45637
45638         * modules/mkdir (License): Re-license as LGPLv2+.
45639
45640 2008-04-29  Bruno Haible  <bruno@clisp.org>
45641
45642         * modules/rawmemchr (Maintainer): Set to Eric.
45643         * modules/strchrnul (Maintainer): Likewise.
45644
45645 2008-04-29  Simon Josefsson  <simon@josefsson.org>
45646
45647         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
45648         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
45649
45650         * modules/arpa_inet (arpa/inet.h): Use them.
45651
45652 2008-04-28  Eric Blake  <ebb9@byu.net>
45653
45654         Test getndelim2.
45655         * modules/getndelim2-tests: New file.
45656         * tests/test-getndelim2.c: Likewise.
45657         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
45658         stream.
45659         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
45660
45661         * MODULES.html.sh: Document new module.
45662
45663 2008-04-20  Bruno Haible  <bruno@clisp.org>
45664
45665         * lib/c-stack.c (die): Use raise.
45666         * modules/c-stack (Depends-on): Add raise.
45667
45668 2008-04-28  Bruno Haible  <bruno@clisp.org>
45669
45670         Expect rpmatch to be declared.
45671         * lib/yesno.c (rpmatch): Remove declaration.
45672
45673         Declare rpmatch.
45674         * lib/stdlib.in.h (rpmatch): New declaration.
45675         * lib/rpmatch.c: Include <stdlib.h> first.
45676         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
45677         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
45678         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
45679         HAVE_RPMATCH.
45680         * modules/rpmatch (Depends-on): Add stdlib, extensions.
45681         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
45682         (Include): Set to <stdlib.h>.
45683         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
45684         HAVE_RPMATCH.
45685         * NEWS: Document the change.
45686
45687 2008-04-28  Bruno Haible  <bruno@clisp.org>
45688
45689         Change rpmatch to use nl_langinfo when appropriate.
45690         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
45691         (N_): New macro.
45692         (localized_pattern): New function/macro.
45693         (try): Remove match, nomatch arguments. Copy the pattern into safe
45694         memory before caching it.
45695         (rpmatch): Use localized_pattern. Add translator comments.
45696         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
45697         Suggested by Eric Blake.
45698         * modules/rpmatch (Depends-on): Add stdbool.
45699
45700 2008-04-28  Eric Blake  <ebb9@byu.net>
45701
45702         Add rawmemchr module, matching glibc.
45703         * modules/string (Makefile.am): New indicator.
45704         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
45705         * lib/string.in.h (rawmemchr): Declare when appropriate.
45706         * modules/rawmemchr: New file.
45707         * m4/rawmemchr.m4: Likewise.
45708         * lib/rawmemchr.c: Likewise.
45709         * modules/rawmemchr-tests: Likewise.
45710         * tests/test-rawmemchr.c: Likewise.
45711         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
45712         module.
45713         * modules/strchrnul (Depends-on): Add rawmemchr.
45714         * lib/strchrnul.c (strchrnul): Optimize a corner case.
45715
45716         Whitespace cleanup.
45717         * tests/test-strchrnul.c: Reindent.
45718         * lib/strchrnul.c: Likewise.
45719
45720         Optimize and test strchrnul.
45721         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
45722         * modules/strchrnul-tests: New file.
45723         * tests/test-strchrnul.c: Likewise.
45724
45725         Remove intprops dependency.
45726         * modules/memchr (Depends-on): Remove intprops.
45727         * modules/memrchr (Depends-on): Likewise.
45728         * modules/memchr2 (Depends-on): Likewise.
45729         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
45730         * lib/memrchr.c (__memrchr): Likewise.
45731         * lib/memrchr2.c (memchr2): Likewise.
45732         Reported by Simon Josefsson.
45733
45734 2008-04-28  Simon Josefsson  <simon@josefsson.org>
45735
45736         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
45737         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
45738
45739 2008-04-28  Simon Josefsson  <simon@josefsson.org>
45740
45741         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
45742
45743         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
45744
45745         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
45746
45747         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
45748         declarations.
45749         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
45750
45751         * m4/inet_pton.m4: Don't check for header files.
45752
45753         * m4/inet_ntop.m4: Don't check for header files.
45754
45755 2008-04-28  Simon Josefsson  <simon@josefsson.org>
45756
45757         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
45758         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
45759         trigger for cygwin).
45760         Reported by Bruno Haible  <bruno@clisp.org>.
45761
45762 2008-04-28  Bruno Haible  <bruno@clisp.org>
45763
45764         * doc/posix-functions/strdup.texi: Mention mingw problem.
45765
45766 2008-04-27  Bruno Haible  <bruno@clisp.org>
45767
45768         * modules/stat-time-tests (Depends-on): Add sleep.
45769         * tests/test-stat-time.c (force_unlink): New function.
45770         (cleanup): Use it.
45771         (test_mtime): Remove the ctime related tests.
45772         (test_ctime): New function, containing the ctime related tests.
45773         (main): Call test_ctime, except on native Windows platforms.
45774
45775 2008-04-27  Bruno Haible  <bruno@clisp.org>
45776
45777         * lib/rpmatch.c (rpmatch): Add some comments.
45778         Reported by James Youngman <jay@gnu.org>.
45779
45780 2008-04-27  Bruno Haible  <bruno@clisp.org>
45781
45782         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
45783         quiet NaNs.
45784
45785 2008-04-27  Bruno Haible  <bruno@clisp.org>
45786
45787         Make test-yesno.sh work on mingw.
45788         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
45789         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
45790         (main): Set stdin to binary mode.
45791         * modules/yesno-tests (Depends-on): Add binary-io.
45792
45793 2008-04-27  Bruno Haible  <bruno@clisp.org>
45794
45795         Fix 'isfinite' on x86, x86_64, ia64 platforms.
45796         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
45797         argument that lie outside the IEEE 854 domain.
45798         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
45799         (gl_ISFINITE): Use it.
45800         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
45801
45802 2008-04-27  Bruno Haible  <bruno@clisp.org>
45803
45804         Allow local renaming in config.h.
45805         * lib/memrchr.c (memrchr): Don't undefine outside libc.
45806
45807 2008-04-27  Bruno Haible  <bruno@clisp.org>
45808
45809         * lib/memchr.c (__memchr): Change type of 'i'.
45810         * lib/memchr2.c (memchr2): Likewise.
45811
45812 2008-04-26  Eric Blake  <ebb9@byu.net>
45813         and Bruno Haible  <bruno@clisp.org>
45814
45815         Optimize and test memrchr.
45816         * modules/memrchr (Depends-on): Add intprops.
45817         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
45818         * modules/memrchr-tests: New file.
45819         * tests/test-memrchr.c: New file.
45820
45821 2008-04-26  Bruno Haible  <bruno@clisp.org>
45822
45823         Add tentative support for DragonFly BSD.
45824         * lib/stdio-impl.h: Add macros for DragonFly BSD.
45825         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
45826         fp.
45827         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
45828         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
45829         * lib/fpurge.c (fpurge): Likewise.
45830         * lib/freadable.c (freaadable): Likewise.
45831         * lib/freadahead.c (freadahead): Likewise.
45832         * lib/freading.c (freading): Likewise.
45833         * lib/freadptr.c (freadptr): Likewise.
45834         * lib/freadseek.c (freadptrinc): Likewise.
45835         * lib/fseeko.c (fseeko): Likewise.
45836         * lib/fseterr.c (fseterr): Likewise.
45837         * lib/fwritable.c (fwritable): Likewise.
45838         * lib/fwriting.c (fwriting): Likewise.
45839
45840 2008-04-26  Bruno Haible  <bruno@clisp.org>
45841
45842         * lib/stdio-impl.h: New file.
45843         * lib/fbufmode.c: Include stdio-impl.h.
45844         (fbufmode): Use fp_, remove redundant #defines.
45845         * lib/fflush.c: Include stdio-impl.h.
45846         (clear_ungetc_buffer): Remove redundant #defines.
45847         * lib/fpurge.c: Include stdio-impl.h.
45848         (fpurge): Remove redundant #defines.
45849         * lib/freadable.c: Include stdio-impl.h.
45850         (freadable): Remove redundant #defines.
45851         * lib/freadahead.c: Include stdio-impl.h.
45852         (freadahead): Remove redundant #defines.
45853         * lib/freading.c: Include stdio-impl.h.
45854         (freading): Remove redundant #defines.
45855         * lib/freadptr.c: Include stdio-impl.h.
45856         (freadptr): Remove redundant #defines.
45857         * lib/freadseek.c: Include stdio-impl.h.
45858         (freadptrinc): Remove redundant #defines.
45859         * lib/fseeko.c: Include stdio-impl.h.
45860         (rpl_fseeko): Remove redundant #defines.
45861         * lib/fseterr.c: Include stdio-impl.h.
45862         (fseterr): Remove redundant #defines.
45863         * lib/fwritable.c: Include stdio-impl.h.
45864         (fwritable: Remove redundant #defines.
45865         * lib/fwriting.c: Include stdio-impl.h.
45866         (fwriting): Remove redundant #defines.
45867         * modules/fbufmode (Files): Add lib/stdio-impl.h.
45868         * modules/fflush (Files): Likewise.
45869         * modules/fpurge (Files): Likewise.
45870         * modules/freadable (Files): Likewise.
45871         * modules/freadahead (Files): Likewise.
45872         * modules/freading (Files): Likewise.
45873         * modules/freadptr (Files): Likewise.
45874         * modules/freadseek (Files): Likewise.
45875         * modules/fseeko (Files): Likewise.
45876         * modules/fseterr (Files): Likewise.
45877         * modules/fwritable (Files): Likewise.
45878         * modules/fwriting (Files): Likewise.
45879
45880 2008-04-26  Bruno Haible  <bruno@clisp.org>
45881
45882         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
45883         restore_seek_optimization, update_fpos_cache): New functions, extracted
45884         from rpl_fflush.
45885         (rpl_fflush): Use them.
45886         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
45887         (gl_REPLACE_FFLUSH): Use it.
45888
45889 2008-04-26  Bruno Haible  <bruno@clisp.org>
45890
45891         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
45892         on Solaris.
45893         * tests/test-xstrtoimax.sh: Likewise.
45894         * tests/test-xstrtoumax.sh: Likewise.
45895         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
45896
45897 2008-04-26  Bruno Haible  <bruno@clisp.org>
45898
45899         * modules/memchr-tests: New file.
45900         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
45901
45902 2008-04-26  Eric Blake  <ebb9@byu.net>
45903             Bruno Haible  <bruno@clisp.org>
45904
45905         * lib/memchr.c: Include intprops.h.
45906         (__memchr): Optimize parallel detection of matching bytes. Rename local
45907         variables. Add explanatory comments.
45908
45909 2008-04-26  Bruno Haible  <bruno@clisp.org>
45910
45911         Fix module 'memchr', broken since 2000-10-28.
45912         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
45913
45914 2008-04-26  Bruno Haible  <bruno@clisp.org>
45915
45916         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
45917         comments.
45918
45919 2008-04-25  Eric Blake  <ebb9@byu.net>
45920
45921         Use native fstatat on cygwin 1.7.0.
45922         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
45923         first.
45924
45925 2008-04-23  Eric Blake  <ebb9@byu.net>
45926
45927         Improve memchr2 performance.
45928         * lib/memchr2.c (memchr2): Further optimize parallel detection of
45929         NUL bytes.
45930         * modules/memchr2 (Depends-on): Use intprops.h.
45931
45932 2008-04-23  Simon Josefsson  <simon@josefsson.org>
45933
45934         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
45935         an inline function instead of a CPP macro.  Patch by Ben Pfaff
45936         <blp@cs.stanford.edu>.
45937
45938 2008-04-23  Simon Josefsson  <simon@josefsson.org>
45939
45940         * lib/arpa_inet.in.h: New file.
45941
45942         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
45943         (Makefile.am): Sed in substitute header file.
45944
45945         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
45946         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
45947
45948         * modules/inet_ntop (configure.ac): Use
45949         gl_ARPA_INET_MODULE_INDICATOR.
45950
45951         * modules/inet_pton (configure.ac): Use
45952         gl_ARPA_INET_MODULE_INDICATOR.
45953
45954 2008-04-22  Jim Meyering  <meyering@redhat.com>
45955
45956         * modules/verify (License): Re-license as LGPLv2+.
45957
45958 2008-04-22  Simon Josefsson  <simon@josefsson.org>
45959
45960         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
45961         parameter to void* as per POSIX standard (MinGW uses char*).
45962
45963 2008-04-21  Bruno Haible  <bruno@clisp.org>
45964
45965         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
45966         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
45967         Define to replacements if REPLACE_ISWCNTRL is 1.
45968         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
45969         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
45970         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
45971         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
45972         what it fixes.
45973         * doc/posix-functions/iswalpha.texi: Likewise.
45974         * doc/posix-functions/iswblank.texi: Likewise.
45975         * doc/posix-functions/iswcntrl.texi: Likewise.
45976         * doc/posix-functions/iswdigit.texi: Likewise.
45977         * doc/posix-functions/iswgraph.texi: Likewise.
45978         * doc/posix-functions/iswlower.texi: Likewise.
45979         * doc/posix-functions/iswprint.texi: Likewise.
45980         * doc/posix-functions/iswpunct.texi: Likewise.
45981         * doc/posix-functions/iswspace.texi: Likewise.
45982         * doc/posix-functions/iswupper.texi: Likewise.
45983         * doc/posix-functions/iswxdigit.texi: Likewise.
45984         Reported by Alain Guibert.
45985
45986 2008-04-21  Bruno Haible  <bruno@clisp.org>
45987
45988         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
45989         Patch by Alain Guibert.
45990
45991 2008-04-21  Bruno Haible  <bruno@clisp.org>
45992
45993         Fix test failures on mingw.
45994         * tests/test-xstrtol.c (print_no_progname): New function.
45995         (main): Install it in error_print_progname hook.
45996         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
45997         * tests/test-xstrtoimax.sh: Likewise.
45998         * tests/test-xstrtoumax.sh: Likewise.
45999
46000 2008-04-21  Bruno Haible  <bruno@clisp.org>
46001
46002         Fix test failure on mingw.
46003         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
46004
46005 2008-04-21  Bruno Haible  <bruno@clisp.org>
46006
46007         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
46008         Actually assign a value.
46009
46010 2008-04-20  Bruno Haible  <bruno@clisp.org>
46011
46012         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
46013         take 2.
46014         * lib/canonicalize.c (canonicalize_file_name): Elide if the
46015         'canonicalize-lgpl' module is also used.
46016         * lib/canonicalize-lgpl.c: Undo last change.
46017         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
46018
46019 2008-04-20  Bruno Haible  <bruno@clisp.org>
46020
46021         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
46022         config.h. Provide _mkdir based fallback for mingw.
46023         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
46024         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
46025         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
46026         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
46027         rather than defining mkdir in config.h.
46028         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
46029         (gl_SYS_STAT_H_DEFAULTS): New macro.
46030         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
46031         HAVE_IO_H any more.
46032         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
46033         HAVE_DECL_MKDIR and HAVE_IO_H.
46034
46035 2008-04-20  Bruno Haible  <bruno@clisp.org>
46036
46037         * lib/isapipe.c: Port to native Windows platforms.
46038
46039 2008-04-20  Bruno Haible  <bruno@clisp.org>
46040
46041         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
46042
46043 2008-04-21  Eric Blake  <ebb9@byu.net>
46044
46045         Work around preprocessors that don't handle UINTMAX_MAX.
46046         * lib/memchr2.c (memchr2): Avoid embedded #if.
46047         Reported by Alain Guibert, fix suggested by Bruno Haible.
46048
46049 2008-04-21  Simon Josefsson  <simon@josefsson.org>
46050
46051         * doc/posix-functions/strftime.texi (strftime): Explain better
46052         Windows incompatibility.  Suggested by Micah Cowan
46053         <micah@cowan.name>.
46054
46055 2008-04-20  Bruno Haible  <bruno@clisp.org>
46056
46057         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
46058         unistr/u8-mblen.
46059
46060 2008-04-20  Bruno Haible  <bruno@clisp.org>
46061
46062         Fix test failure on platforms with non-GNU iconv.
46063         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
46064         (U_TO_U8): Use it, rather than u16_to_u8.
46065         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
46066         units at the end of the input string.
46067         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
46068
46069 2008-04-20  Bruno Haible  <bruno@clisp.org>
46070
46071         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
46072         when the resulting length is 0.
46073         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
46074
46075 2008-04-20  Bruno Haible  <bruno@clisp.org>
46076
46077         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
46078         works.
46079         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
46080
46081 2008-04-20  Bruno Haible  <bruno@clisp.org>
46082
46083         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
46084         * modules/tsearch-tests (configure.ac): Test for initstate function.
46085
46086 2008-04-20  Bruno Haible  <bruno@clisp.org>
46087
46088         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
46089         for nlink_t if missing.
46090         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
46091
46092 2008-04-19  Bruno Haible  <bruno@clisp.org>
46093
46094         Work around snprintf bug on Linux libc5.
46095         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
46096         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
46097         gl_SNPRINTF_SIZE1.
46098         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
46099         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
46100         that test failed.
46101         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
46102         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
46103         * modules/snprintf (Files): Add m4/printf.m4.
46104         * modules/vsnprintf (Files): Likewise.
46105         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
46106         * doc/posix-functions/vsnprintf.texi: Likewise.
46107
46108 2008-04-19  Bruno Haible  <bruno@clisp.org>
46109
46110         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
46111         from 0.0058 to less than 10^-7.
46112
46113 2008-04-19  Bruno Haible  <bruno@clisp.org>
46114
46115         Fix rounding when a precision is given.
46116         * lib/vasnprintf.c (is_borderline): New function.
46117         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
46118         9...9x.
46119         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
46120         %e, %g.
46121         * tests/test-vasprintf-posix.c (test_function): Likewise.
46122         * tests/test-snprintf-posix.h (test_function): Likewise.
46123         * tests/test-sprintf-posix.h (test_function): Likewise.
46124         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
46125         * tests/test-printf-posix.h (test_function): Likewise.
46126         * tests/test-printf-posix.output: Update.
46127         Reported by John Darrington <john@darrington.wattle.id.au> via
46128         Ben Pfaff <blp@cs.stanford.edu>.
46129
46130 2008-04-18  Simon Josefsson  <simon@josefsson.org>
46131
46132         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
46133         Suggested by Bruno Haible <bruno@clisp.org>.
46134
46135 2008-04-17  Bruno Haible  <bruno@clisp.org>
46136
46137         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
46138         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
46139         implementation.
46140         Patch by Bruce Merry <bmerry@gmail.com>.
46141
46142 2008-04-17  Simon Josefsson  <simon@josefsson.org>
46143
46144         * doc/posix-functions/strftime.texi (strftime): Mention that %e
46145         doesn't work under Windows.
46146
46147 2008-04-16  Bruno Haible  <bruno@clisp.org>
46148
46149         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
46150         New macros.
46151         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
46152         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
46153         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
46154         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
46155         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
46156         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
46157         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
46158         macros.
46159         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
46160         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
46161         Northern Sotho, Uighur.
46162
46163 2008-04-16  Bruno Haible  <bruno@clisp.org>
46164
46165         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
46166         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
46167         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
46168         Reported by Daniel Bergström <daniel@octocode.com>.
46169
46170 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
46171             Bruno Haible  <bruno@clisp.org>
46172
46173         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
46174         function.
46175         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
46176         New functions, mostly extracted from gl_locale_name_default.
46177         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
46178
46179 2008-04-16  Eric Blake  <ebb9@byu.net>
46180
46181         Adjust strtod detection to catch glibc 2.7 bug.
46182         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
46183         Reported by John Gatewood Ham.
46184
46185 2008-04-16  Bruno Haible  <bruno@clisp.org>
46186
46187         Add tentative support for Linux libc5.
46188         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
46189         * lib/fpurge.c (fpurge): Likewise.
46190         * lib/freadable.c (freadable): Likewise.
46191         * lib/freadahead.c (freadahead): Likewise.
46192         * lib/freading.c (freading): Likewise.
46193         * lib/freadptr.c (freadptr): Likewise.
46194         * lib/freadseek.c (freadptrinc): Likewise.
46195         * lib/fseeko.c (rpl_fseeko): Likewise.
46196         * lib/fseterr.c (fseterr): Likewise.
46197         * lib/fwritable.c (fwritable): Likewise.
46198         * lib/fwriting.c (fwriting): Likewise.
46199         Reported by Alain Guibert <alguibert+bts@free.fr>.
46200
46201 2008-04-15  Bruno Haible  <bruno@clisp.org>
46202
46203         * modules/mathl (configure.ac): Define module indicator.
46204
46205 2008-04-15  Bruno Haible  <bruno@clisp.org>
46206
46207         * lib/logl.c (logl): Remove unused variables.
46208
46209 2008-04-15  Bruno Haible  <bruno@clisp.org>
46210
46211         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
46212         fails.
46213
46214 2008-04-15  Bruno Haible  <bruno@clisp.org>
46215
46216         * lib/trim.c (trim2): Fix argument of isspace() macro.
46217
46218 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
46219
46220         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
46221         to 0.
46222         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
46223
46224 2008-04-14  Bruno Haible  <bruno@clisp.org>
46225
46226         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
46227         AC_LANG_PROGRAM argument.
46228         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
46229         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
46230         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
46231         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
46232         * m4/math_h.m4 (gl_MATH_H): Likewise.
46233         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
46234         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
46235         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
46236         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
46237         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
46238         * m4/regex.m4 (gl_REGEX): Likewise.
46239         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
46240         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
46241         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
46242         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
46243         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
46244         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
46245         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
46246         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
46247
46248 2008-04-14  Jim Meyering  <meyering@redhat.com>
46249
46250         test-strtod: fix typos: s/abs/fabs/
46251         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
46252
46253 2008-04-13  Bruno Haible  <bruno@clisp.org>
46254
46255         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
46256         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
46257         module is also used and while not building the reloc-wrapper.
46258
46259 2008-04-13  Bruno Haible  <bruno@clisp.org>
46260
46261         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
46262
46263 2008-04-13  Bruno Haible  <bruno@clisp.org>
46264
46265         Fix AIX compilation failure introduced on 2008-04-02.
46266         * tests/test-frexp.c (exp): Undefine before redefining.
46267         * tests/test-frexpl.c (exp): Likewise.
46268
46269 2008-04-13  Bruno Haible  <bruno@clisp.org>
46270
46271         Work around a HP-UX stdio bug.
46272         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
46273         * tests/test-ftello.c (main): Likewise.
46274         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
46275         * doc/posix-functions/ftello.texi: Likewise.
46276
46277 2008-04-13  Bruno Haible  <bruno@clisp.org>
46278
46279         Make test-signbit pass on HP-UX/hppa.
46280         * tests/test-signbit.c (minus_zerol): New variable.
46281         (test_signbitl): Use it.
46282
46283 2008-04-13  Bruno Haible  <bruno@clisp.org>
46284
46285         Make truncl work on OSF/1 4.0.
46286         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
46287         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
46288         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
46289         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
46290         HAVE_DECL_TRUNCL.
46291         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
46292         HAVE_DECL_TRUNCL.
46293         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
46294
46295 2008-04-13  Bruno Haible  <bruno@clisp.org>
46296
46297         * lib/unictype.h: Remove trailing comma from enumeration definitions.
46298
46299 2008-04-13  Bruno Haible  <bruno@clisp.org>
46300
46301         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
46302         expression, so as to avoid HP-UX 11 cc compiler bug.
46303
46304 2008-04-13  Bruno Haible  <bruno@clisp.org>
46305
46306         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
46307
46308 2008-04-13  Bruno Haible  <bruno@clisp.org>
46309
46310         * lib/git-merge-changelog.c: Remove empty declaration outside of
46311         functions.
46312
46313 2008-04-13  Bruno Haible  <bruno@clisp.org>
46314
46315         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
46316
46317 2008-04-13  Bruno Haible  <bruno@clisp.org>
46318
46319         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
46320         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
46321         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
46322         also if it exists but lacks definitions of the SHUT_* macros.
46323         * modules/sys_socket (Description): Update.
46324         Reported by Elbert Pol <e.pol@chello.nl>.
46325
46326 2008-04-13  Bruno Haible  <bruno@clisp.org>
46327
46328         * lib/localcharset.c (OS2): Don't redefine if already defined.
46329         Reported by Elbert Pol <e.pol@chello.nl>.
46330
46331 2008-04-13  Bruno Haible  <bruno@clisp.org>
46332
46333         * lib/binary-io.h [__EMX__]: Include <io.h>.
46334         Reported by Elbert Pol <e.pol@chello.nl>.
46335
46336 2008-04-12  Bruno Haible  <bruno@clisp.org>
46337
46338         * lib/fpucw.h: Enable the definitions also for x86_64.
46339         Needed for NetBSD/x86_64.
46340         Reported by Thomas Klausner <tk@giga.or.at>.
46341
46342 2008-04-12  Bruno Haible  <bruno@clisp.org>
46343
46344         * tests/test-strtod.c: Include isnand.h.
46345         (main): Use isnand instead of isnan.
46346         Reported by Jim Meyering.
46347
46348 2008-04-12  Bruno Haible  <bruno@clisp.org>
46349
46350         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
46351         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
46352
46353 2008-04-12  Jim Meyering  <meyering@redhat.com>
46354
46355         * m4/math_h.m4 (gl_MATH_H): Fix typos.
46356
46357 2008-04-12  Bruno Haible  <bruno@clisp.org>
46358
46359         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
46360         Reported by Elbert Pol <e.pol@chello.nl>.
46361
46362 2008-04-12  Eric Blake  <ebb9@byu.net>
46363
46364         Work around Solaris 10 math.h bug.
46365         * m4/math_h.m4 (gl_MATH_H): Check for bug.
46366         (gl_MATH_H_DEFAULTS): Set up default.
46367         * modules/math (Makefile.am): Replace new indicators.
46368         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
46369         * tests/test-math.c (main): Test this.
46370         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
46371         * doc/posix-headers/math.texi (math.h): Mention bug.
46372         Reported by Nelson H. F. Beebe and Jim Meyering.
46373
46374 2008-04-11  Bruno Haible  <bruno@clisp.org>
46375
46376         Adapt to future versions of Apple GCC.
46377         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
46378         Reported by Peter O'Gorman <peter@pogma.com>.
46379
46380 2008-04-11  Bruno Haible  <bruno@clisp.org>
46381
46382         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
46383
46384 2008-04-11  Bruno Haible  <bruno@clisp.org>
46385
46386         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
46387
46388         * modules/getaddrinfo-tests (Makefile.am): Define
46389         test_getaddrinfo_LDADD.
46390
46391 2008-04-11  Bruno Haible  <bruno@clisp.org>
46392
46393         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
46394         (init): Fix syntax error.
46395         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
46396         is declared.
46397
46398 2008-04-11  Bruno Haible  <bruno@clisp.org>
46399
46400         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
46401         * modules/glob (Depends-on): Add stdbool.
46402
46403 2008-04-11  Bruno Haible  <bruno@clisp.org>
46404
46405         * lib/trim.c: Include <string.h>.
46406
46407 2008-04-11  Eric Blake  <ebb9@byu.net>
46408
46409         Avoid compile failure on OS/2.
46410         * lib/regex_internal.h (internal_function): Disable optimization
46411         on OS/2 (__EMX__), where it caused compiler error.
46412         Reported by Elbert Pol.
46413
46414 2008-04-11  Bruno Haible  <bruno@clisp.org>
46415
46416         Flush the standard error stream before aborting. Needed on mingw.
46417         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
46418         * tests/test-array_list.c (ASSERT): Likewise.
46419         * tests/test-array_oset.c (ASSERT): Likewise.
46420         * tests/test-avltree_list.c (ASSERT): Likewise.
46421         * tests/test-avltree_oset.c (ASSERT): Likewise.
46422         * tests/test-avltreehash_list.c (ASSERT): Likewise.
46423         * tests/test-binary-io.c (ASSERT): Likewise.
46424         * tests/test-byteswap.c (ASSERT): Likewise.
46425         * tests/test-c-ctype.c (ASSERT): Likewise.
46426         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
46427         * tests/test-c-strcasestr.c (ASSERT): Likewise.
46428         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
46429         * tests/test-c-strstr.c (ASSERT): Likewise.
46430         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
46431         * tests/test-canonicalize.c (ASSERT): Likewise.
46432         * tests/test-carray_list.c (ASSERT): Likewise.
46433         * tests/test-ceilf1.c (ASSERT): Likewise.
46434         * tests/test-ceilf2.c (ASSERT): Likewise.
46435         * tests/test-ceill.c (ASSERT): Likewise.
46436         * tests/test-count-one-bits.c (ASSERT): Likewise.
46437         * tests/test-fbufmode.c (ASSERT): Likewise.
46438         * tests/test-fflush2.c (ASSERT): Likewise.
46439         * tests/test-floorf1.c (ASSERT): Likewise.
46440         * tests/test-floorf2.c (ASSERT): Likewise.
46441         * tests/test-floorl.c (ASSERT): Likewise.
46442         * tests/test-fopen.c (ASSERT): Likewise.
46443         * tests/test-fpending.c (ASSERT): Likewise.
46444         * tests/test-fprintf-posix.c (ASSERT): Likewise.
46445         * tests/test-fpurge.c (ASSERT): Likewise.
46446         * tests/test-freadable.c (ASSERT): Likewise.
46447         * tests/test-freadahead.c (ASSERT): Likewise.
46448         * tests/test-freading.c (ASSERT): Likewise.
46449         * tests/test-freadptr.c (ASSERT): Likewise.
46450         * tests/test-freadptr2.c (ASSERT): Likewise.
46451         * tests/test-freadseek.c (ASSERT): Likewise.
46452         * tests/test-freopen.c (ASSERT): Likewise.
46453         * tests/test-frexp.c (ASSERT): Likewise.
46454         * tests/test-frexpl.c (ASSERT): Likewise.
46455         * tests/test-fseek.c (ASSERT): Likewise.
46456         * tests/test-fseeko.c (ASSERT): Likewise.
46457         * tests/test-fstrcmp.c (ASSERT): Likewise.
46458         * tests/test-ftell.c (ASSERT): Likewise.
46459         * tests/test-ftello.c (ASSERT): Likewise.
46460         * tests/test-func.c (ASSERT): Likewise.
46461         * tests/test-fwritable.c (ASSERT): Likewise.
46462         * tests/test-fwriting.c (ASSERT): Likewise.
46463         * tests/test-getdelim.c (ASSERT): Likewise.
46464         * tests/test-getline.c (ASSERT): Likewise.
46465         * tests/test-i-ring.c (ASSERT): Likewise.
46466         * tests/test-iconv-utf.c (ASSERT): Likewise.
46467         * tests/test-iconv.c (ASSERT): Likewise.
46468         * tests/test-isfinite.c (ASSERT): Likewise.
46469         * tests/test-isnand.c (ASSERT): Likewise.
46470         * tests/test-isnanf.c (ASSERT): Likewise.
46471         * tests/test-isnanl.h (ASSERT): Likewise.
46472         * tests/test-ldexpl.c (ASSERT): Likewise.
46473         * tests/test-linked_list.c (ASSERT): Likewise.
46474         * tests/test-linkedhash_list.c (ASSERT): Likewise.
46475         * tests/test-localename.c (ASSERT): Likewise.
46476         * tests/test-lseek.c (ASSERT): Likewise.
46477         * tests/test-mbscasecmp.c (ASSERT): Likewise.
46478         * tests/test-mbscasestr1.c (ASSERT): Likewise.
46479         * tests/test-mbscasestr2.c (ASSERT): Likewise.
46480         * tests/test-mbscasestr3.c (ASSERT): Likewise.
46481         * tests/test-mbscasestr4.c (ASSERT): Likewise.
46482         * tests/test-mbschr.c (ASSERT): Likewise.
46483         * tests/test-mbscspn.c (ASSERT): Likewise.
46484         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
46485         * tests/test-mbspbrk.c (ASSERT): Likewise.
46486         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
46487         * tests/test-mbsrchr.c (ASSERT): Likewise.
46488         * tests/test-mbsspn.c (ASSERT): Likewise.
46489         * tests/test-mbsstr1.c (ASSERT): Likewise.
46490         * tests/test-mbsstr2.c (ASSERT): Likewise.
46491         * tests/test-mbsstr3.c (ASSERT): Likewise.
46492         * tests/test-memchr2.c (ASSERT): Likewise.
46493         * tests/test-memmem.c (ASSERT): Likewise.
46494         * tests/test-open.c (ASSERT): Likewise.
46495         * tests/test-printf-frexp.c (ASSERT): Likewise.
46496         * tests/test-printf-frexpl.c (ASSERT): Likewise.
46497         * tests/test-printf-posix.c (ASSERT): Likewise.
46498         * tests/test-quotearg.c (ASSERT): Likewise.
46499         * tests/test-rbtree_list.c (ASSERT): Likewise.
46500         * tests/test-rbtree_oset.c (ASSERT): Likewise.
46501         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
46502         * tests/test-round1.c (ASSERT): Likewise.
46503         * tests/test-roundf1.c (ASSERT): Likewise.
46504         * tests/test-roundl.c (ASSERT): Likewise.
46505         * tests/test-signbit.c (ASSERT): Likewise.
46506         * tests/test-sleep.c (ASSERT): Likewise.
46507         * tests/test-snprintf-posix.c (ASSERT): Likewise.
46508         * tests/test-snprintf.c (ASSERT): Likewise.
46509         * tests/test-sprintf-posix.c (ASSERT): Likewise.
46510         * tests/test-stat-time.c (ASSERT): Likewise.
46511         * tests/test-strcasestr.c (ASSERT): Likewise.
46512         * tests/test-strerror.c (ASSERT): Likewise.
46513         * tests/test-striconv.c (ASSERT): Likewise.
46514         * tests/test-striconveh.c (ASSERT): Likewise.
46515         * tests/test-striconveha.c (ASSERT): Likewise.
46516         * tests/test-strsignal.c (ASSERT): Likewise.
46517         * tests/test-strstr.c (ASSERT): Likewise.
46518         * tests/test-strtod.c (ASSERT): Likewise.
46519         * tests/test-trunc1.c (ASSERT): Likewise.
46520         * tests/test-trunc2.c (ASSERT): Likewise.
46521         * tests/test-truncf1.c (ASSERT): Likewise.
46522         * tests/test-truncf2.c (ASSERT): Likewise.
46523         * tests/test-truncl.c (ASSERT): Likewise.
46524         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
46525         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
46526         * tests/test-vasnprintf.c (ASSERT): Likewise.
46527         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
46528         * tests/test-vasprintf.c (ASSERT): Likewise.
46529         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
46530         * tests/test-vprintf-posix.c (ASSERT): Likewise.
46531         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
46532         * tests/test-vsnprintf.c (ASSERT): Likewise.
46533         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
46534         * tests/test-wcwidth.c (ASSERT): Likewise.
46535         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
46536         * tests/test-xprintf-posix.c (ASSERT): Likewise.
46537         * tests/test-xvasprintf.c (ASSERT): Likewise.
46538         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
46539         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
46540         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
46541         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
46542         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
46543         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
46544         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
46545         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
46546         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
46547         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
46548         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
46549         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
46550         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
46551         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
46552         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
46553         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
46554         * tests/unictype/test-block_list.c (ASSERT): Likewise.
46555         * tests/unictype/test-block_of.c (ASSERT): Likewise.
46556         * tests/unictype/test-block_test.c (ASSERT): Likewise.
46557         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
46558         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
46559         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
46560         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
46561         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
46562         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
46563         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
46564         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
46565         * tests/unictype/test-combining.c (ASSERT): Likewise.
46566         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
46567         * tests/unictype/test-digit.c (ASSERT): Likewise.
46568         * tests/unictype/test-mirror.c (ASSERT): Likewise.
46569         * tests/unictype/test-numeric.c (ASSERT): Likewise.
46570         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
46571         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
46572         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
46573         * tests/unictype/test-scripts.c (ASSERT): Likewise.
46574         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
46575         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
46576         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
46577         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
46578         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
46579         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
46580         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
46581         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
46582         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
46583         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
46584         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
46585         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
46586         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
46587         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
46588         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
46589         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
46590         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
46591         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
46592         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
46593         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
46594         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
46595         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
46596         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
46597         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
46598         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
46599         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
46600         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
46601         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
46602         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
46603         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
46604         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
46605         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
46606         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
46607         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
46608         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
46609         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
46610         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
46611         Reported by Eric Blake.
46612
46613 2008-04-11  Bruno Haible  <bruno@clisp.org>
46614
46615         * lib/wchar.in.h: Tweak comment.
46616
46617 2008-04-11  Bruno Haible  <bruno@clisp.org>
46618
46619         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
46620         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
46621         gl_COMMON.
46622         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
46623
46624 2008-04-11  Bruno Haible  <bruno@clisp.org>
46625
46626         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
46627
46628 2008-04-11  Simon Josefsson  <simon@josefsson.org>
46629
46630         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
46631         of attempting to use non-existing /dev/*random.  Based on patch
46632         from Adam Strzelecki <ono@java.pl> in
46633         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
46634
46635 2008-04-08  Bruno Haible  <bruno@clisp.org>
46636
46637         Add tentative support for emx+gcc.
46638         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
46639         * lib/fpurge.c (fpurge): Likewise.
46640         * lib/freadable.c (freadable): Likewise.
46641         * lib/freadahead.c (freadahead): Likewise.
46642         * lib/freading.c (freading): Likewise.
46643         * lib/freadptr.c (freadptr): Likewise.
46644         * lib/freadseek.c (freadptrinc): Likewise.
46645         * lib/fseeko.c (rpl_fseeko): Likewise.
46646         * lib/fseterr.c (fseterr): Likewise.
46647         * lib/fwritable.c (fwritable): Likewise.
46648         * lib/fwriting.c (fwriting): Likewise.
46649         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
46650
46651 2008-04-09  Eric Blake  <ebb9@byu.net>
46652
46653         Avoid some autoconf warnings.
46654         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
46655         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
46656         * m4/afs.m4 (gl_AFS): Likewise.
46657         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
46658         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
46659         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
46660         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
46661         (gl_INTEGER_TYPE_SUFFIX): Likewise.
46662         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
46663         (AC_CHECK_DECLS_ONCE): Likewise.
46664         Rename file...
46665         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
46666         gnulib-tool requires autoconf 2.59 or better.
46667         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
46668
46669 2008-04-08  Eric Blake  <ebb9@byu.net>
46670
46671         Use 'git describe --match' if present (added in git 1.5.5).
46672         * build-aux/git-version-gen: Limit result to tags that match 'v*'
46673         if possible.
46674
46675 2008-04-08  Bruno Haible  <bruno@clisp.org>
46676
46677         Add tentative support for OpenServer.
46678         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
46679         _ptr, _cnt.
46680         * lib/fpurge.c (fpurge): Likewise.
46681         * lib/freadable.c (freadable): Likewise.
46682         * lib/freadahead.c (freadahead): Likewise.
46683         * lib/freading.c (freading): Likewise.
46684         * lib/freadptr.c (freadptr): Likewise.
46685         * lib/freadseek.c (freadptrinc): Likewise.
46686         * lib/fseeko.c (rpl_fseeko): Likewise.
46687         * lib/fseterr.c (fseterr): Likewise.
46688         * lib/fwritable.c (fwritable): Likewise.
46689         * lib/fwriting.c (fwriting): Likewise.
46690         Reported by Roger Cornelius <rac@tenzing.org> and
46691         Brian K. White <brian@aljex.com>.
46692
46693 2008-04-06  Jim Meyering  <meyering@redhat.com>
46694
46695         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
46696
46697 2008-04-06  Bruno Haible  <bruno@clisp.org>
46698
46699         Avoid possible error with non-ASCII bytes in UTF-8 locales.
46700         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
46701         * tests/test-printf-posix.sh: Likewise.
46702         * tests/test-vfprintf-posix.sh: Likewise.
46703         * tests/test-vprintf-posix.sh: Likewise.
46704         * tests/test-xprintf-posix.sh: Likewise.
46705
46706 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46707
46708         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
46709         hide error from 'ls', needed on OS/2.
46710         Report by Elbert Pol <elbert.pol@gmail.com>.
46711
46712 2008-04-04  Eric Blake  <ebb9@byu.net>
46713
46714         Make test-fseeko.c failures meaningful.
46715         * tests/test-fseeko.c: Print line number on failure.
46716         * tests/test-fseek.c: Likewise.
46717         Reported by Nelson H. F. Beebe.
46718
46719         Improve strtod bug detection check.
46720         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
46721         required for Solaris 10.
46722         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
46723
46724 2008-04-04  Bruno Haible  <bruno@clisp.org>
46725
46726         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
46727         by m4/setenv.m4.
46728
46729 2008-04-03  Eric Blake  <ebb9@byu.net>
46730
46731         Ensure sane .version contents.
46732         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
46733         version string.
46734         * build-aux/git-version-gen: Improve documentation.
46735
46736         Make GNU make output nicer.
46737         * top/GNUmakefile [!_have-Makefile]: Add dependency on
46738         MAKECMDGOALS to enforce message for all command line targets.  Set
46739         srcdir for use in maint.mk.
46740
46741         Another maintainer tweak.
46742         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
46743         a target that regenerates version.
46744
46745 2008-04-03  Jim Meyering  <meyering@redhat.com>
46746
46747         vc-list-files: don't cause coreutils "make po-check" failure
46748         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
46749
46750 2008-04-03  Eric Blake  <ebb9@byu.net>
46751
46752         Allow VPATH usage of vc-list-files.
46753         * build-aux/vc-list-files (scriptversion): Add timestamp.
46754         (options): Add --help, --version, -C.
46755         (CVS): Support installed cvsu.
46756
46757 2008-04-02  Bruno Haible  <bruno@clisp.org>
46758
46759         Avoid some "statement with no effect" warnings from gcc.
46760         * tests/test-wctype.c (main): Explicitly ignore unused values.
46761         Reported by Jim Meyering.
46762
46763 2008-04-02  Jim Meyering  <meyering@redhat.com>
46764
46765         Avoid some warnings from "gcc -Wshadow".
46766         * tests/test-frexp.c (exp): Define to a different identifier.
46767         * tests/test-frexpl.c (exp): Likewise.
46768
46769 2008-04-03  Jim Meyering  <meyering@redhat.com>
46770
46771         bootstrap: remove dangling *.[ch] symlinks from lib
46772         * build-aux/bootstrap [dangling symlink removal]: Move find's
46773         -depth option to precede all others, to avoid a warning.
46774         Remove *.[ch] files too, and from "$source_base" (usually lib/).
46775
46776 2008-04-02  Bruno Haible  <bruno@clisp.org>
46777
46778         Avoid some warnings from "gcc -Wshadow".
46779         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
46780         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
46781         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
46782         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
46783         Reported by Jim Meyering.
46784
46785 2008-04-01  Bruno Haible  <bruno@clisp.org>
46786
46787         Fix test to work on IRIX 6.5 with cc.
46788         * tests/test-math.c (numeric_equal): New function.
46789         (main): Use it.
46790
46791 2008-04-01  Bruno Haible  <bruno@clisp.org>
46792
46793         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
46794
46795 2008-04-01  Bruno Haible  <bruno@clisp.org>
46796
46797         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
46798         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
46799         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
46800         (Depends-on): Remove math.
46801
46802         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
46803         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
46804         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
46805         (Depends-on): Remove math.
46806
46807         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
46808         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
46809         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
46810         (Depends-on): Remove math.
46811         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
46812         (Depends-on): Remove math.
46813
46814         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
46815         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
46816         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
46817         (Depends-on): Remove math.
46818         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
46819         (Depends-on): Remove math.
46820
46821         * tests/test-round1.c: Include nan.h.
46822         (main): Use NaNd instead of NAN.
46823         * modules/round-tests (Files): Add tests/nan.h.
46824
46825         * tests/test-trunc1.c: Include nan.h.
46826         (main): Use NaNd instead of NAN.
46827         * modules/trunc-tests (Files): Add tests/nan.h.
46828
46829         * tests/test-roundf1.c: Include nan.h.
46830         (main): Use NaNf instead of NAN.
46831         * modules/roundf-tests (Files): Add tests/nan.h.
46832
46833         * tests/test-truncf1.c: Include nan.h.
46834         (main): Use NaNf instead of NAN.
46835         * modules/truncf-tests (Files): Add tests/nan.h.
46836
46837         * tests/test-ceilf1.c: Include nan.h.
46838         (main): Use NaNf instead of NAN.
46839         * modules/ceilf-tests (Files): Add tests/nan.h.
46840
46841         * tests/test-floorf1.c: Include nan.h.
46842         (main): Use NaNf instead of NAN.
46843         * modules/floorf-tests (Files): Add tests/nan.h.
46844
46845         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
46846         (main): Use NaNf instead of NAN.
46847         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
46848
46849         * tests/test-isnand.c: Include nan.h instead of <math.h>.
46850         (main): Use NaNd instead of NAN.
46851         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
46852
46853         * tests/test-frexp.c: Include nan.h.
46854         (main): Use NaNd instead of NAN.
46855         * modules/frexp-tests (Files): Add tests/nan.h.
46856
46857         * lib/isnan.c: Don't include <math.h>.
46858         (FUNC): Don't use NAN macro.
46859         * modules/isnand-nolibm (Depends-on): Remove math.
46860         * modules/isnanf-nolibm (Depends-on): Remove math.
46861         * modules/isnanl (Depends-on): Remove math.
46862         * modules/isnanl-nolibm (Depends-on): Remove math.
46863
46864         * tests/nan.h: New file.
46865
46866 2008-04-01  Eric Blake  <ebb9@byu.net>
46867
46868         Fix typos.
46869         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
46870         values to be the right type.
46871
46872         For now, cater to gnulib strtod inaccuracies.
46873         * tests/test-strtod.c (main): Allow 1-ulp error on expected
46874         fractional results.  While not as nice from a QoI perspective, it
46875         is a quicker patch than correctly implementing decimal to binary
46876         rounding.
46877
46878 2008-03-31  Eric Blake  <ebb9@byu.net>
46879
46880         Guarantee a definition of NAN.
46881         * lib/math.in.h (NAN): Define if missing.
46882         * tests/test-math.c (main): Test it.
46883         * doc/posix-headers/math.texi (math.h): Document this.
46884         * lib/isnan.c (rpl_isnand): Use it.
46885         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
46886         * tests/test-floorf1.c (NaN): Likewise.
46887         * tests/test-frexp.c (NaN): Likewise.
46888         * tests/test-isnand.c (NaN): Likewise.
46889         * tests/test-isnanf.c (NaN): Likewise.
46890         * tests/test-round1.c (NaN): Likewise.
46891         * tests/test-roundf1.c (NaN): Likewise.
46892         * tests/test-snprintf-posix.h (NaN): Likewise.
46893         * tests/test-sprintf-posix.h (NaN): Likewise.
46894         * tests/test-trunc1.c (NaN): Likewise.
46895         * tests/test-truncf1.c (NaN): Likewise.
46896         * tests/test-vasnprintf-posix.c (NaN): Likewise.
46897         * tests/test-vasprintf-posix.c (NaN): Likewise.
46898         * modules/isnand-nolibm (Depends-on): Add math.
46899         * modules/isnanf-nolibm (Depends-on): Likewise.
46900         * modules/isnanl (Depends-on): Likewise.
46901         * modules/isnanl-nolibm (Depends-on): Likewise.
46902         * modules/snprintf-posix-tests (Depends-on): Likewise.
46903         * modules/sprintf-posix-tests (Depends-on): Likewise.
46904         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
46905         * modules/vsprintf-posix-tests (Depends-on): Likewise.
46906         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
46907         * modules/vasprintf-posix-tests (Depends-on): Likewise.
46908
46909 2008-03-31  Bruno Haible  <bruno@clisp.org>
46910
46911         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
46912         * doc/posix-functions/strtod.texi: Likewise.
46913
46914 2008-03-31  Bruno Haible  <bruno@clisp.org>
46915
46916         * tests/test-strtod.c (main): Don't use C99 syntax.
46917
46918 2008-03-31  Bruno Haible  <bruno@clisp.org>
46919
46920         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
46921         Reported by Eric Blake.
46922
46923 2008-03-31  Jim Meyering  <meyering@redhat.com>
46924
46925         Don't compare actual signbit return values.
46926         * tests/test-strtod.c (main): Rather, compare only their
46927         zero/non-zero nature.
46928
46929 2008-03-31  Eric Blake  <ebb9@byu.net>
46930
46931         More strtod documentation.
46932         * doc/posix-functions/strtod.texi (strtod): Interpret more test
46933         failures as distinct bugs.
46934
46935 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
46936
46937         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
46938         Problem reported by Erik Benada in
46939         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
46940
46941 2008-03-30  Bruno Haible  <bruno@clisp.org>
46942
46943         * tests/test-strtod.c: Add comments about which assertion fails on which
46944         platform.
46945         * doc/posix-functions/strtod.texi: Add info about many more platforms.
46946
46947 2008-03-30  Eric Blake  <ebb9@byu.net>
46948
46949         Test signbit behavior on zeros.
46950         * tests/test-signbit.c (test_signbitf): Add tests for zero.
46951         (test_signbitd, test_signbitl): Likewise.
46952
46953         More strtod touchups.
46954         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
46955         sign of negative underflow, for now.  Use .5, not .1.
46956         * doc/posix-functions/strtod.texi (strtod): Mention these
46957         limitations.
46958         Reported by Jim Meyering.
46959
46960 2008-03-30  Bruno Haible  <bruno@clisp.org>
46961
46962         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
46963         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
46964
46965 2008-03-30  Bruno Haible  <bruno@clisp.org>
46966
46967         Avoid failure when attempting to return empty iconv results on some
46968         platforms.
46969         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
46970         allocation, don't report ENOMEM when the resulting string is empty.
46971
46972 2008-03-30  Bruno Haible  <bruno@clisp.org>
46973
46974         Fix buffer overrun.
46975         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
46976         Don't consider the width for tmp_length. Check count against tmp_length
46977         before doing the padding. Ensure enough allocation during padding.
46978
46979 2008-03-30  Eric Blake  <ebb9@byu.net>
46980
46981         strtod touchups.
46982         * lib/strtod.c (strtod): Avoid compiler warnings.
46983         Reported by Jim Meyering.
46984
46985 2008-03-30  Bruno Haible  <bruno@clisp.org>
46986
46987         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
46988         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
46989         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
46990         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
46991         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
46992         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
46993         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
46994         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
46995
46996         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
46997         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
46998         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
46999         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
47000         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
47001         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
47002         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
47003         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
47004
47005         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
47006         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
47007         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
47008         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
47009         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
47010         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
47011         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
47012         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
47013
47014         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
47015         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
47016
47017         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
47018         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
47019
47020         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
47021         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
47022
47023         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
47024         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
47025         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
47026
47027         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
47028         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
47029         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
47030
47031         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
47032         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
47033         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
47034
47035         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
47036         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
47037         * modules/vasprintf (Depends-on): Add EOVERFLOW.
47038
47039         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
47040         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
47041         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
47042         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
47043         (Depends-on): Add EOVERFLOW.
47044         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
47045         (Depends-on): Add EOVERFLOW.
47046         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
47047         (Depends-on): Add EOVERFLOW.
47048         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
47049         (Depends-on): Add EOVERFLOW.
47050         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
47051         (Depends-on): Add EOVERFLOW.
47052         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
47053         (Depends-on): Add EOVERFLOW.
47054         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
47055         (Depends-on): Add EOVERFLOW.
47056         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
47057         (Depends-on): Add EOVERFLOW.
47058
47059         * lib/sprintf.c (EOVERFLOW): Remove fallback.
47060         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
47061         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
47062
47063         * lib/snprintf.c (EOVERFLOW): Remove fallback.
47064         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
47065         * modules/snprintf (Depends-on): Add EOVERFLOW.
47066
47067         * lib/poll.c (EOVERFLOW): Remove fallback.
47068         * modules/poll (Depends-on): Add EOVERFLOW.
47069
47070         * lib/getugroups.c (EOVERFLOW): Remove fallback.
47071         * modules/getugroups (Depends-on): Add EOVERFLOW.
47072
47073         * lib/getdelim.c (EOVERFLOW): Remove fallback.
47074         * modules/getdelim (Depends-on): Add EOVERFLOW.
47075
47076         * lib/ftell.c (EOVERFLOW): Remove fallback.
47077         * modules/ftell (Depends-on): Add EOVERFLOW.
47078
47079         * lib/fprintf.c (EOVERFLOW): Remove fallback.
47080         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
47081         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
47082
47083         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
47084
47085         * modules/EOVERFLOW-tests: New file.
47086         * tests/test-EOVERFLOW.c: New file.
47087
47088         * modules/EOVERFLOW: New file.
47089         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
47090
47091 2008-03-30  Bruno Haible  <bruno@clisp.org>
47092
47093         Fix bug introduced on 2007-06-10.
47094         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
47095         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
47096
47097 2008-03-30  Bruno Haible  <bruno@clisp.org>
47098
47099         Improve freadseek's efficiency after ungetc.
47100         * lib/freadseek.c: Include freadahead.h.
47101         (freadptrinc): New function, extracted from freadseek.
47102         (freadseek): Use it in a loop. Use freadahead to determine the number
47103         of loop iterations.
47104         * modules/freadseek (Depends-on): Add freadahead.
47105         (configure.ac): Require AC_C_INLINE.
47106
47107 2008-03-30  Bruno Haible  <bruno@clisp.org>
47108
47109         * lib/freadseek.c (freadseek): Don't ignore the return value of
47110         freadptr.
47111
47112 2008-03-29  Eric Blake  <ebb9@byu.net>
47113
47114         Add hex float support.
47115         * modules/strtod (Depends-on): Add c-ctype.
47116         (Link): Mention POW_LIB.
47117         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
47118         whitespace between 'e' and exponent.
47119         * tests/test-strtod.c (main): Enable hex float tests.
47120         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
47121         now provides.
47122
47123         Document various strtod bugs, with some fixes.
47124         * doc/posix-functions/strtod.texi (strtod): Document bugs with
47125         "-0x", "inf", "nan", and hex constants.
47126         * doc/posix-functions/atof.texi (atof): Likewise.
47127         * modules/stdlib (Makefile.am): Support strtod.
47128         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
47129         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
47130         detect additional strtod bugs.
47131         * lib/stdlib.in.h (rpl_strtod): Add declarations.
47132         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
47133         bool where appropriate.  Parse 'inf' and 'nan'.
47134         * tests/test-strtod.c: New file.
47135         * modules/strtod (Depends-on): Add stdbool, stdlib.
47136         (configure.ac): Turn on module indicator.
47137         * modules/strtod-tests: New module.
47138
47139 2008-03-29  Eric Blake  <ebb9@byu.net>
47140
47141         Fix ftell on mingw.
47142         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
47143         * modules/ftell-tests (Depends-on): Add binary-io.
47144         * modules/ftello-tests (Depends-on): Likewise.
47145         * tests/test-ftell.c (main): Enhance test to cover behavior after
47146         ungetc.  Enforce binary mode.
47147         * tests/test-ftello.c (main): Likewise.
47148
47149         Pass test-freadseek on cygwin.
47150         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
47151         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
47152         ungetc buffer.
47153
47154         * tests/test-fflush2.c (main): Fix typo.
47155
47156 2008-03-29  Bruno Haible  <bruno@clisp.org>
47157
47158         * tests/test-fflush2.c (main): Temporarily disable the contents of
47159         this test.
47160         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
47161         Reported by Eric Blake.
47162
47163 2008-03-28  Simon Josefsson  <simon@josefsson.org>
47164
47165         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
47166         (GC_SHA224_DIGEST_SIZE): Add.
47167
47168         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
47169         (gc_hash_digest_length): Likewise.
47170         (gc_hash_buffer): Likewise.
47171
47172 2008-03-25  Bruno Haible  <bruno@clisp.org>
47173
47174         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
47175         detail which gettext release to use.
47176         Reported by Simon Josefsson.
47177
47178 2008-03-26  Jim Meyering  <meyering@redhat.com>
47179
47180         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
47181         * modules/gnumakefile (clean-GNUmakefile): Also, use
47182         test ... && ... || : syntax rather than if-then ... fi.
47183
47184         gnumakefile: Don't double-quote-expand $(VPATH) value.
47185         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
47186
47187 2008-03-24  Eric Blake  <ebb9@byu.net>
47188
47189         Alter GNUmakefile to install into top directory.
47190         * modules/maintainer-makefile: Split, and add dependency...
47191         * modules/gnumakefile: to this new module.
47192         * build-aux/GNUmakefile: Move...
47193         * top/GNUmakefile: ...here.
47194         * build-aux/maint.mk: Move...
47195         * top/maint.mk: ...here.
47196         * MODULES.html.sh (Support for maintaining...): Document new
47197         module.
47198
47199 2008-03-23  Bruno Haible  <bruno@clisp.org>
47200
47201         * gnulib-tool: New options --vc-files, --no-vc-files.
47202         (func_usage): Document them.
47203         (vc_files): New variable.
47204         (func_import): Consider vc_files.
47205         (func_create_testdir): Set vc_files to empty.
47206         Suggested by Jim Meyering and Karl Berry.
47207
47208 2008-03-23  Bruno Haible  <bruno@clisp.org>
47209
47210         Fix regex compilation error on HP-UX 11.
47211         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
47212         * modules/regex (Files): Add m4/mbstate_t.m4.
47213         Reported by Ton Voon <ton.voon@altinity.com>.
47214
47215 2008-03-23  Bruno Haible  <bruno@clisp.org>
47216
47217         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
47218
47219 2008-03-23  Eric Blake  <ebb9@byu.net>
47220             Bruno Haible  <bruno@clisp.org>
47221
47222         Install files from top/ in the destination directory.
47223         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
47224         augmentation also for the files from top/.
47225         (func_import, func_create_testdir): Rewrite file names:
47226         top/filename -> filename.
47227
47228 2008-03-23  Bruno Haible  <bruno@clisp.org>
47229
47230         Tweak "gnulib --version" output.
47231         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
47232
47233 2008-03-23  Bruno Haible  <bruno@clisp.org>
47234
47235         Tweak "gnulib --version" output.
47236         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
47237         rather than contents of ChangeLog, when possible.
47238
47239 2008-03-21  Eric Blake  <ebb9@byu.net>
47240
47241         More --version tweaks.
47242         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
47243         date of last ChangeLog entry.
47244
47245 2008-03-21  Jim Meyering  <meyering@redhat.com>
47246
47247         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
47248
47249 2008-03-20  Eric Blake  <ebb9@byu.net>
47250
47251         VPATH fix.
47252         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
47253
47254 2008-03-20  Simon Josefsson  <simon@josefsson.org>
47255
47256         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
47257         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
47258
47259 2008-03-20  Eric Blake  <ebb9@byu.net>
47260
47261         Sync GNUmakefile with coreutils.
47262         * build-aux/GNUmakefile (have-Makefile): Rename...
47263         (_have-Makefile): ...to this, for namespace consideration.
47264         (GNUmakefile.cfg): Include, if present.
47265         (_autoreconf): Define a default.
47266         (_is-dist-target): New rule for rebuilds to pick up intra-release
47267         version.
47268         (maint-cfg.mk): Rename...
47269         (cfg.mk): ...to this.
47270
47271 2008-03-18  Jim Meyering  <meyering@redhat.com>
47272
47273         New script and module: mktempd
47274         * MODULES.html.sh (maint+release support): Add mktempd.
47275         * build-aux/mktempd: New file.
47276         * modules/mktempd: New file.
47277
47278 2008-03-15  Jim Meyering  <meyering@redhat.com>
47279
47280         Undo last change.
47281         * lib/sha1.c, lib/md5.c: 63 != ~63.
47282         Reported by Andreas Schwab.
47283
47284         sha1.c, md5.c: Hoist a redundant expression.
47285         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
47286         "ctx->buflen" only once, before calling *_process_block.
47287         * lib/md5.c (md5_process_bytes): Likewise.
47288
47289 2008-03-14  Eric Blake  <ebb9@byu.net>
47290
47291         Bump copyright year in files generated by gnulib-tool.
47292         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
47293         gnulib-tool, rather than hard-coding it.
47294
47295         Fix 'gnulib-tool --version' output to work with git.
47296         * gnulib-tool (func_gnulib_dir): New function, extracted from...
47297         (startup): ...here.
47298         (func_version): Use it to invoke git-version-gen, rather than
47299         relying on CVS keyword expansion.  Modernize wording.
47300         (cvsdatestamp, last_checkin_date, version): Kill unused
47301         variables.
47302
47303 2008-03-12  Jim Meyering  <meyering@redhat.com>
47304
47305         Recognize optional cast of the argument to free.
47306         * build-aux/useless-if-before-free: Update regexps.
47307
47308         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
47309
47310 2008-03-11  Bruno Haible  <bruno@clisp.org>
47311
47312         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
47313         by a single package.
47314         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
47315         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
47316         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
47317         Reported by Sam Steingold <sds@gnu.org>.
47318
47319 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
47320
47321         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
47322         repositories.
47323
47324 2008-03-11  Bruno Haible  <bruno@clisp.org>
47325
47326         Avoid conflicts between local macro definitions.
47327         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
47328         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
47329
47330 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
47331             Bruno Haible  <bruno@clisp.org>
47332
47333         Make va_copy work with some version of xlc on AIX 5.1.
47334         * lib/stdarg.in.h: New file.
47335         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
47336         On AIX, use a <stdarg.h> file substitute.
47337         * modules/stdarg (Files): Add lib/stdarg.in.h.
47338         (Depends-on): Add include_next.
47339         (Makefile.am): Build a stdarg.h substitute if requested.
47340         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
47341
47342 2008-03-10  Bruno Haible  <bruno@clisp.org>
47343
47344         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
47345         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
47346         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
47347
47348 2008-03-10  Bruno Haible  <bruno@clisp.org>
47349
47350         * modules/stdlib (Depends-on): Add include_next, remove
47351         absolute-header.
47352
47353 2008-03-09  Bruno Haible  <bruno@clisp.org>
47354
47355         * lib/freadahead.h (freadahead): Document more precisely.
47356         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
47357         the sum of both buffer sizes.
47358         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
47359         * NEWS: Document the change.
47360
47361 2008-03-09  Bruno Haible  <bruno@clisp.org>
47362
47363         Extend freadptr to return also the buffer size.
47364         * lib/freadptr.h (freadptr): Add sizep argument.
47365         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
47366         (freadptr): Add sizep argument. Determine buffer size like freadahead
47367         does.
47368         * tests/test-freadptr.c: Don't include freadahead.h.
47369         (main): Adapt for new calling convention of freadptr.
47370         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
47371         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
47372         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
47373         tests/test-freadptr2.sh.
47374         (Depends): Remove freadahead.
47375         (TESTS): Add test-freadptr2.sh.
47376         (check_PROGRAMS): Add test-freadptr2.
47377
47378 2008-03-09  Bruno Haible  <bruno@clisp.org>
47379
47380         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
47381         Report and solution by Simon Josefsson.
47382
47383 2008-03-06  Bruno Haible  <bruno@clisp.org>
47384
47385         Make fflush after ungetc work on BSD platforms.
47386         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
47387         * tests/test-fflush2.c: New file.
47388         * tests/test-fflush2.sh: New file.
47389         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
47390         tests/test-fflush2.c.
47391         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
47392         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
47393
47394 2008-03-06  Eric Blake  <ebb9@byu.net>
47395
47396         Likewise for ftello.
47397         * modules/ftello (Dependencies): Add extensions.
47398         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
47399
47400 2008-03-06  Bruno Haible  <bruno@clisp.org>
47401
47402         * modules/fseeko (Dependencies): Add extensions.
47403         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
47404         Needed on glibc systems.
47405
47406 2008-03-06  Bruno Haible  <bruno@clisp.org>
47407
47408         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
47409         email address.
47410         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
47411
47412 2008-03-06  Bruno Haible  <bruno@clisp.org>
47413
47414         * users.txt: Add libgnupdf.
47415
47416 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
47417
47418         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
47419         (Header File Substitutes, Function Substitutes,
47420         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
47421         (Build robot for gnulib): Fix typo.
47422
47423 2008-03-06  Bruno Haible  <bruno@clisp.org>
47424
47425         * doc/gnulib-tool.texi (VCS Issues): Small updates.
47426         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
47427
47428 2008-03-06  Bruno Haible  <bruno@clisp.org>
47429
47430         * doc/func.texi: New file, extracted from doc/gnulib.texi.
47431         * doc/gnulib.texi: Include it.
47432
47433 2008-03-06  Simon Josefsson  <simon@josefsson.org>
47434
47435         * modules/func (License): Change license to unlimited; there was
47436         no LGPL parts in the module anyway.
47437
47438 2008-03-06  Simon Josefsson  <simon@josefsson.org>
47439
47440         * modules/__func__: Renamed to modules/func.
47441         * modules/__func__-tests: Renamed to modules/func-tests.
47442         * tests/test-__func__.c: Renamed to tests/test-func.c.
47443         * m4/__func__.m4: Renamed to m4/func.m4.
47444         * doc/gnulib.texi (__func__): Section renamed to func.
47445         Suggested by Eric Blake <ebb9@byu.net>.
47446
47447 2008-03-06  Simon Josefsson  <simon@josefsson.org>
47448
47449         * doc/gnulib.texi (__func__): Use C99 terminology when talking
47450         about __func__.  Make example self-contained.  Suggested by Eric
47451         Blake <ebb9@byu.net>.
47452
47453         * tests/test-__func__.c (main): Avoid extraneous () around __func.
47454         Suggested by Eric Blake <ebb9@byu.net>.
47455
47456 2008-03-06  Simon Josefsson  <simon@josefsson.org>
47457
47458         * modules/__func__: New file.
47459         * modules/__func__-tests: New file.
47460         * tests/test-__func__.c: New file.
47461         * m4/__func__.m4: New file.
47462         * doc/gnulib.texi (__func__): Document __func__ module.
47463
47464 2008-03-05  Simon Josefsson  <simon@josefsson.org>
47465
47466         * modules/byteswap (License): Re-license as LGPLv2+.
47467
47468 2008-03-05  Simon Josefsson  <simon@josefsson.org>
47469
47470         * doc/Makefile: Add pdf target.
47471
47472 2008-03-05  Simon Josefsson  <simon@josefsson.org>
47473
47474         * modules/inline (License): Use 'unlimited', since there are only
47475         *.m4 files in this module.
47476
47477 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
47478             Bruno Haible  <bruno@clisp.org>
47479
47480         Add support for HP C 7.1 on OpenVMS 8.3.
47481         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
47482
47483 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
47484
47485         Update VMS specifics.
47486         * lib/getopt.c [VMS]: Remove include of unixlib.h.
47487
47488 2008-03-02  Jim Meyering  <meyering@redhat.com>
47489
47490         Remove the last dependency on the "free" module.
47491         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
47492         Reported by Bob Proulx.
47493
47494         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
47495
47496         Remove useless "if" tests before free.  Deprecate "free" module.
47497         * doc/posix-functions/free.texi: Mention that this
47498         module is no longer useful.
47499         * modules/free (Notice): Say this module is obsolete.
47500         * modules/readutmp (Depends-on): Remove free.
47501         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
47502         * lib/putenv.c (putenv): Likewise.
47503         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
47504         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
47505         * tests/test-c-strcasestr.c (main): Likewise.
47506         * tests/test-c-strstr.c (main): Likewise.
47507         * tests/test-mbscasestr1.c (main): Likewise.
47508         * tests/test-mbscasestr2.c (main): Likewise.
47509         * tests/test-mbsstr1.c (main): Likewise.
47510         * tests/test-mbsstr2.c (main): Likewise.
47511         * tests/test-memmem.c (main): Likewise.
47512         * tests/test-strcasestr.c (main): Likewise.
47513         * tests/test-striconv.c (main): Likewise.
47514         * tests/test-striconveh.c (main): Likewise.
47515         * tests/test-striconveha.c (main): Likewise.
47516         * tests/test-strstr.c (main): Likewise.
47517
47518         * build-aux/git-version-gen: Adjust a comment and the Usage string.
47519
47520         bootstrap: sync from coreutils again
47521         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
47522
47523 2008-03-01  Jim Meyering  <meyering@redhat.com>
47524
47525         bootstrap: sync from coreutils
47526         * build-aux/bootstrap (update_po_files): Copy a .po file into place
47527         also when the target doesn't exist.
47528
47529 2008-03-01  Eric Blake  <ebb9@byu.net>
47530
47531         Fix bugs in last patch.
47532         * lib/memchr2.c (memchr2): Fix typo.
47533         * tests/test-memchr2.c: Test previous bug, and don't use GNU
47534         extension.
47535         Reported by Bruce Korb.
47536
47537         New module 'memchr2'.
47538         * modules/memchr2: New file.
47539         * modules/memchr2-tests: Likewise.
47540         * lib/memchr2.h: Likewise.
47541         * lib/memchr2.c: Likewise, based on memchr.c.
47542         * tests/test-memchr2.c: New test.
47543         * MODULES.html.sh (String handling): Add memchr2.
47544
47545 2008-02-29  Bruno Haible  <bruno@clisp.org>
47546
47547         * modules/freadseek-tests: New file.
47548         * tests/test-freadseek.sh: New file.
47549         * tests/test-freadseek.c: New file.
47550
47551         New module 'freadseek'.
47552         * modules/freadseek: New file.
47553         * lib/freadseek.h: New file.
47554         * lib/freadseek.c: New file.
47555         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
47556
47557 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
47558
47559         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
47560         wydawca.
47561
47562         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
47563         program_invocation_name and program_invocation_short_name are
47564         present.
47565
47566 2008-02-28  Bruno Haible  <bruno@clisp.org>
47567
47568         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
47569         * tests/test-freadptr.sh: Also test non-seekable stdin.
47570
47571 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
47572
47573         * build-aux/bootstrap (source_base, m4_base)
47574         (doc_base, tests_base): New variables.
47575         (gnulib_tool_options): Do not hardcode base directories, use
47576         the above variables instead.
47577
47578 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
47579
47580         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
47581
47582 2008-02-28  Bruno Haible  <bruno@clisp.org>
47583
47584         * modules/freadptr-tests: New file.
47585         * tests/test-freadptr.sh: New file.
47586         * tests/test-freadptr.c: New file.
47587
47588         New module 'freadptr'.
47589         * modules/freadptr: New file.
47590         * lib/freadptr.h: New file.
47591         * lib/freadptr.c: New file.
47592         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
47593
47594 2008-02-26  Karl Berry  <karl@freefriends.org>
47595
47596         Sync from Libtool:
47597         * libltdl/argz.c (argz_add, argz_count): New functions.
47598         * libltdl/argz.in.h: Declare them.
47599         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
47600
47601 2008-02-22  Bruno Haible  <bruno@clisp.org>
47602
47603         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
47604         is a pointer type.  Needed for HP-UX 10.
47605         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
47606         * doc/posix-functions/gmtime_r.texi: Likewise.
47607         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
47608
47609 2008-02-24  Bruno Haible  <bruno@clisp.org>
47610
47611         * modules/environ-tests: New file.
47612         * tests/test-environ.c: New file.
47613
47614         New module 'environ'.
47615         * modules/environ: New file.
47616         * lib/unistd.in.h (environ): New declaration.
47617         * m4/environ.m4: New file.
47618         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
47619         after use.
47620         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
47621         HAVE_DECL_ENVIRON.
47622         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
47623         HAVE_DECL_ENVIRON.
47624         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
47625         wrong claim that 'environ' is missing on some systems.
47626         * modules/execute (Depends-on): Add environ.
47627         * lib/execute.c (environ): Remove fallback declaration.
47628         * modules/pipe (Depends-on): Add environ.
47629         * lib/pipe.c (environ): Remove fallback declaration.
47630         * modules/setenv (Depends-on): Add environ.
47631         * lib/setenv.c (environ): Remove fallback declaration.
47632         * modules/unsetenv (Depends-on): Add environ.
47633         * lib/unsetenv.c (environ): Remove fallback declaration.
47634         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
47635         m4/environ.m4.
47636         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
47637         (gl_PREREQ_UNSETENV): Likewise.
47638
47639 2008-02-24  Bruno Haible  <bruno@clisp.org>
47640
47641         * doc/posix-functions/environ.texi: Document the MacOS X problem.
47642
47643 2008-02-20  Bob Proulx  <bob@proulx.com>
47644
47645         Enable use of older two part flavor 'git describe'.
47646         * build-aux/git-version-gen: If using the older two part flavor of
47647         git version then recreate the third part now present in the
47648         newer three part flavor of git describe.
47649
47650 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
47651
47652         * lib/fts.c (fts_build): Typo correction to comment.
47653
47654 2008-02-17  Bruno Haible  <bruno@clisp.org>
47655
47656         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
47657         generating no-op conflicts.
47658
47659 2008-02-17  Bruno Haible  <bruno@clisp.org>
47660
47661         Speed up by 10%.
47662         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
47663         result_entries, rather than an index-based loop.
47664
47665 2008-02-17  Bruno Haible  <bruno@clisp.org>
47666
47667         Speed up by 25%.
47668         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
47669         'hashcode_cached'.
47670         (entry_create): New function.
47671         (entry_hashcode): Use the cached hashcode if possible.
47672         (read_changelog_file, try_split_merged_entry): Use entry_create.
47673
47674 2008-02-17  Bruno Haible  <bruno@clisp.org>
47675
47676         Speed up from O(n^2) to O(n) for long ChangeLog files.
47677         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
47678         (read_changelog_file): Change implementation of entries_reversed list
47679         to rbtreehash.
47680         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
47681
47682 2008-02-17  Bruno Haible  <bruno@clisp.org>
47683
47684         New option --split-merged-entry.
47685         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
47686         (find_paragraph_end, try_split_merged_entry): New functions.
47687         (long_options): Add option --split-merged-entry.
47688         (usage): Document option --split-merged-entry.
47689         (main): Implement option --split-merged-entry.
47690         Reported by Eric Blake.
47691
47692 2008-02-17  Bruno Haible  <bruno@clisp.org>
47693
47694         * lib/git-merge-changelog.c: Include c-strstr.h.
47695         (main): Support the "git pull --rebase" situation.
47696         * modules/git-merge-changelog (Depends-on): Add c-strstr.
47697         Reported by Eric Blake.
47698
47699 2008-02-16  Eric Blake  <ebb9@byu.net>
47700
47701         Avoid doubling \ in common case of "c-maybe" quoting style.
47702         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
47703         eliding outer quotes.
47704         * lib/quotearg.h: Document this.
47705         * tests/test-quotearg.c (result_strings, inputs, results_g)
47706         (flag_results, locale_results): Test it by adding a new string to
47707         each test group.
47708         (compare_strings): Test new string.
47709
47710 2008-02-13  Eric Blake  <ebb9@byu.net>
47711
47712         Avoid trigraph quoting in default output.
47713         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
47714         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
47715         unless explicitly requested.
47716         * tests/test-quotearg.c (flag_results, main): Add additional tests.
47717
47718 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
47719
47720         Don't rely on signed integer overflowing to negative value.
47721         * lib/getugroups.c (getugroups): Include <limits.h>.
47722         Instead, compare against INT_MAX, and increment only if the test passes.
47723
47724 2008-02-13  Jim Meyering  <meyering@redhat.com>
47725         and Eric Blake  <ebb9@byu.net>
47726
47727         Avoid shadowing warning and compile errors on Linux.
47728         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
47729         forwarding macros on Linux.
47730         (dcgettext): Define a stub, for Linux.
47731         (results_g, main): Avoid warnings.
47732
47733 2008-02-12  Eric Blake  <ebb9@byu.net>
47734
47735         Silence warning in last patch.
47736         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
47737
47738         Quotearg part 4: add tests, fix c-maybe colon quoting.
47739         * lib/quotearg.h: Improve documentation.
47740         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
47741         escapes when adding outer quotes.  When quoting trigraphs, use
47742         valid C notation.  When quoting NUL, omit extra characters if next
47743         character is not digit.  Alter prototype.
47744         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
47745         callers.
47746         * modules/quotearg-tests: New module.
47747         * tests/test-quotearg.c: New test.
47748
47749 2008-02-07  Eric Blake  <ebb9@byu.net>
47750
47751         Quotearg part 3: add flag to control outer quote elision.
47752         * lib/quotearg.h (c_maybe_quoting_style): New style.
47753         (enum quoting_flags): Better documentation of flags.
47754         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
47755         c-maybe style.
47756         (quotearg_buffer_restyled): Handle new flag to elide outer
47757         quotes.
47758
47759         Quotearg part 2: add flag that can control NUL elision.
47760         * lib/quotearg.h (set_quoting_flags): New prototype.
47761         * lib/quotearg.c (struct quoting_options): Add flag field.
47762         (set_quoting_flags): New function.
47763         (quotearg_buffer_restyled): Add flags parameter.
47764         (quotearg_alloc_mem): Set the flag if length cannot be returned.
47765         (quotearg_n_options): Set the flag, since length cannot be
47766         returned.
47767         (quoting_options_from_style): Default flags correctly.
47768
47769         Quotearg part 1: more wrappers, restore quotearg_char state.
47770         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
47771         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
47772         (quotearg_colon_mem): New wrappers.
47773         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
47774         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
47775         functions.
47776         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
47777         (quotearg_colon_mem): New functions.
47778
47779 2008-02-11  Bruno Haible  <bruno@clisp.org>
47780
47781         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
47782         library in the current directory: it does not work with parallel make.
47783         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47784
47785 2008-02-11  Bruno Haible  <bruno@clisp.org>
47786
47787         * .gitattributes: New file.
47788
47789 2008-02-11  Jim Meyering  <meyering@redhat.com>
47790
47791         useless-if-before-free: Fix reversed exit values.
47792         * build-aux/useless-if-before-free: Use correct values
47793         for EXIT_MATCH and EXIT_NO_MATCH.
47794
47795         * build-aux/useless-if-before-free: Close stdout carefully.
47796
47797 2008-02-10  Bruno Haible  <bruno@clisp.org>
47798
47799         New module 'git-merge-changelog'.
47800         * modules/git-merge-changelog: New file.
47801         * lib/git-merge-changelog.c: New file.
47802
47803 2008-02-10  Jim Meyering  <meyering@redhat.com>
47804
47805         useless-if-before-free: New option: --list (-l).
47806
47807         useless-if-before-free: Don't exit immediately upon open failure.
47808         * build-aux/useless-if-before-free: Exit 2 for errors.
47809         Upon failure to open a file, don't exit immediately.
47810         Rather, just warn and continue with any remaining files.
47811
47812 2008-02-10  Bruno Haible  <bruno@clisp.org>
47813
47814         New abstract list operation 'node_set_value'.
47815         * lib/gl_list.h (gl_list_node_set_value): New function.
47816         (struct gl_list_implementation): New field node_set_value.
47817         * lib/gl_list.c (gl_list_node_set_value): New function.
47818         * lib/gl_array_list.c (gl_array_node_set_value): New function.
47819         (gl_array_list_implementation): Update.
47820         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
47821         (gl_carray_list_implementation): Update.
47822         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
47823         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
47824         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
47825         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
47826         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
47827         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
47828         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
47829         Update.
47830         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
47831         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
47832         (gl_sublist_list_implementation): Update.
47833
47834 2008-02-10  Bruno Haible  <bruno@clisp.org>
47835
47836         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
47837         Needed when ELEMENT is #defined to 'some_type *'.
47838
47839 2008-02-10  Jim Meyering  <meyering@redhat.com>
47840
47841         New script and module: useless-if-before-free
47842         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
47843         * build-aux/useless-if-before-free: New file.
47844         * modules/useless-if-before-free: New file.
47845
47846         * build-aux/gitlog-to-changelog: Use committer date, not author date.
47847
47848         xstrtol_error: Fix typo.
47849         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
47850         s/exit_failure/exit_status/.
47851
47852 2008-02-09  Jim Meyering  <meyering@redhat.com>
47853
47854         New script and module: gitlog-to-changelog
47855         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
47856         * modules/gitlog-to-changelog: New file.
47857         * build-aux/gitlog-to-changelog: New file.
47858
47859 2008-02-08  Jim Meyering  <meyering@redhat.com>
47860
47861         Avoid two "parameter unused" warnings.
47862         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
47863         Mark "st" as used.
47864
47865         Use "git COMMAND", not "git-COMMAND".
47866         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
47867         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
47868         * build-aux/git-version-gen: Use "git status", not "git-status".
47869
47870 2008-02-07  Bruno Haible  <bruno@clisp.org>
47871
47872         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
47873         Avoids a crash on Windows Vista.
47874         Reported by Adam Strzelecki <ono@java.pl> via
47875         Simon Josefsson <simon@josefsson.org>.
47876
47877 2008-02-06  Bruno Haible  <bruno@clisp.org>
47878
47879         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
47880         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
47881         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
47882         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
47883         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
47884         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
47885         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
47886         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
47887         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
47888         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
47889         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
47890         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
47891         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
47892         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
47893         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
47894         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
47895         left-adjust flag.
47896         * tests/test-snprintf-posix.h (test_function): Likewise.
47897         * tests/test-sprintf-posix.h (test_function): Likewise.
47898         * tests/test-vasprintf-posix.c (test_function): Likewise.
47899         * doc/posix-functions/fprintf.texi: Update.
47900         * doc/posix-functions/printf.texi: Update.
47901         * doc/posix-functions/snprintf.texi: Update.
47902         * doc/posix-functions/sprintf.texi: Update.
47903         * doc/posix-functions/vfprintf.texi: Update.
47904         * doc/posix-functions/vprintf.texi: Update.
47905         * doc/posix-functions/vsnprintf.texi: Update.
47906         * doc/posix-functions/vsprintf.texi: Update.
47907         Reported by Peter Fales <psfales@alcatel-lucent.com>.
47908
47909 2008-02-06  Bruno Haible  <bruno@clisp.org>
47910
47911         Fix bug introduced on 2008-01-26.
47912         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
47913
47914 2008-02-06  Bruno Haible  <bruno@clisp.org>
47915
47916         Fix bug introduced on 2007-06-10.
47917         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
47918         !NEED_PRINTF_FLAG_ZERO.
47919
47920 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
47921
47922         getloadavg: use libperfstat on AIX5
47923         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
47924
47925 2008-02-03  Bruno Haible  <bruno@clisp.org>
47926
47927         * lib/diffseq.h: Add comments about required #includes.
47928         Reported by Michael Biggs <gnulib@doubleplum.net>.
47929
47930 2008-02-01  Bruno Haible  <bruno@clisp.org>
47931
47932         * users.txt: Add gnuit.
47933
47934 2008-01-31  Bruno Haible  <bruno@clisp.org>
47935
47936         * lib/md4.c (set_uint32): Mark as inline.
47937         * lib/md5.c (set_uint32): Likewise.
47938         * lib/sha1.c (set_uint32): Likewise.
47939         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
47940         * m4/md5.m4 (gl_MD5): Likewise.
47941         * m4/sha1.m4 (gl_SHA1): Likewise.
47942
47943 2008-01-31  Jim Meyering  <meyering@redhat.com>
47944
47945         Use "sizeof VAR", rather than a literal "4".
47946         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
47947         * lib/md4.c (md4_read_ctx): Likewise.
47948         * lib/sha1.c (sha1_read_ctx): Likewise.
47949
47950 2008-01-31  Simon Josefsson  <simon@josefsson.org>
47951
47952         * tests/test-sha1.c: New file, based on test-md5.c.
47953
47954         * modules/crypto/sha1-tests: New file.
47955
47956 2008-01-31  Simon Josefsson  <simon@josefsson.org>
47957
47958         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
47959
47960 2008-01-31  Jim Meyering  <meyering@redhat.com>
47961
47962         Prefer "sizeof v" over the equivalent "4".
47963         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
47964         * lib/md5.c (set_uint32): Likewise.
47965         * lib/sha1.c (set_uint32): Likewise.
47966
47967 2008-01-31  Simon Josefsson  <simon@josefsson.org>
47968
47969         * lib/sha1.c (set_uint32): Mark function as static.
47970
47971 2008-01-31  Simon Josefsson  <simon@josefsson.org>
47972
47973         md2: clarify comments to say that alignment is not required.
47974         * lib/md2.h: Remove warning about alignment in comment.
47975         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
47976         never been required.
47977
47978 2008-01-31  Simon Josefsson  <simon@josefsson.org>
47979
47980         md4: adapt alignment constraint fix from sha1.
47981         * lib/md4.c (set_uint32): New function, from sha1.c
47982         (md4_read_ctx): Use it.
47983         (md4_finish_ctx): Doc fix.
47984         * lib/md4.h: Doc fix.
47985
47986 2008-01-31  Simon Josefsson  <simon@josefsson.org>
47987
47988         md5: adapt alignment constraint fix from sha1.
47989         * lib/md5.c (set_uint32): New function, from sha1.c
47990         (md5_read_ctx): Use it.
47991         (md5_finish_ctx): Doc fix.
47992         * lib/md5.h: Doc fix.
47993
47994 2008-01-30  Peter Palfrader  <weasel@debian.org>
47995
47996         sha1: remove the result buffer alignment constraint
47997         * lib/sha1.c (set_uint32): New function.
47998         (sha1_read_ctx): Rewrite to remove the result buffer alignment
47999         constraint.
48000         (sha1_finish_ctx): Remove comment warning about alignment constraint.
48001         * lib/sha1.h: Likewise.
48002
48003 2008-01-30  Andreas Schwab  <schwab@suse.de>
48004             Bruno Haible  <bruno@clisp.org>
48005
48006         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
48007         correct definition of LDBL_MIN_EXP.
48008
48009 2008-01-30  Karl Berry  <karl@gnu.org>
48010
48011         * config/srclist-update: try to preserve x bit on updates.
48012         * config/srclistvars.sh: update for karl.
48013
48014 2008-01-29  Jim Meyering  <meyering@redhat.com>
48015
48016         vasnprintf.c: Avoid warning about unused label
48017         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
48018         "overflow" label definition and associated code with the
48019         same cpp condition that guards the sole use of that label.
48020
48021 2008-01-26  Bruno Haible  <bruno@clisp.org>
48022
48023         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
48024         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
48025         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
48026         * lib/isnanl-nolibm.h (isnanl): Likewise.
48027         Reported by Paul Eggert <eggert@cs.ucla.edu>.
48028
48029 2008-01-26  Bruno Haible  <bruno@clisp.org>
48030
48031         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
48032         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
48033
48034 2008-01-26  Bruno Haible  <bruno@clisp.org>
48035
48036         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
48037         GCC >= 4.0 built-in.
48038         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
48039
48040 2008-01-26  Bruno Haible  <bruno@clisp.org>
48041
48042         Rename isnan, applicable to 'double' only, to isnand.
48043         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
48044         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
48045         (configure.ac): Update.
48046         (Include): Replace "isnan.h" with "isnand.h".
48047         * m4/isnand.m4: Renamed from m4/isnan.m4.
48048         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
48049         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
48050         instead of isnan.c.
48051         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
48052         instead of HAVE_ISNAN_IN_LIBC.
48053         (isnand): Renamed from isnan.
48054         * lib/isnand.c: New file.
48055         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
48056         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
48057         (Makefile.am): Update.
48058         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
48059         Include isnand.h instead of isnan.h.
48060         (main): Test isnand instead of isnan.
48061         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
48062         isnan-nolibm.
48063         * modules/frexp (Depends-on): Likewise.
48064         * modules/frexp-tests (Depends-on): Likewise.
48065         * modules/frexp-nolibm (Depends-on): Likewise.
48066         * modules/frexp-nolibm-tests (Depends-on): Likewise.
48067         * modules/isfinite (Depends-on): Likewise.
48068         * modules/round-tests (Depends-on): Likewise.
48069         * modules/signbit (Depends-on): Likewise.
48070         * modules/signbit-tests (Depends-on): Likewise.
48071         * modules/snprintf-posix (Depends-on): Likewise.
48072         * modules/sprintf-posix (Depends-on): Likewise.
48073         * modules/trunc-tests (Depends-on): Likewise.
48074         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
48075         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
48076         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
48077         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
48078         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
48079         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
48080         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
48081         * modules/vasnprintf-posix (Depends-on): Likewise.
48082         * modules/vasprintf-posix (Depends-on): Likewise.
48083         * modules/vfprintf-posix (Depends-on): Likewise.
48084         * modules/vsnprintf-posix (Depends-on): Likewise.
48085         * modules/vsprintf-posix (Depends-on): Likewise.
48086         * lib/frexp.c: Include isnand.h instead of isnan.h.
48087         (ISNAN): Set to isnand instead of isnan.
48088         * lib/isfinite.c: Include isnand.h instead of isnan.h.
48089         (gl_isfinited): Use isnand instead of isnan.
48090         * lib/signbitd.c: Include isnand.h instead of isnan.h.
48091         (gl_signbitd): Use isnand instead of isnan.
48092         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
48093         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
48094         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
48095         (main): Use isnand instead of isnan.
48096         * tests/test-round1.c: Include isnand.h.
48097         (main): Use isnand instead of isnan.
48098         * tests/test-round2.c: Include isnand.h instead of isnan.h.
48099         (ISNAN): Set to isnand instead of isnan.
48100         * tests/test-trunc1.c: Include isnand.h.
48101         (main): Use isnand instead of isnan.
48102         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
48103         (equal): Use isnand instead of isnan.
48104         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
48105         isnand-nolibm.
48106         * NEWS: Mention the change.
48107
48108 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
48109             Bruno Haible  <bruno@clisp.org>
48110
48111         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
48112         the GCC builtins for signbits are present and set
48113         REPLACE_SIGNBIT_USING_GCC if so.
48114         * lib/math.in.h (signbit): Define using GCC builtins if
48115         REPLACE_SIGNBIT_USING_GCC is set.
48116         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
48117         REPLACE_SIGNBIT_USING_GCC.
48118         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
48119
48120 2008-01-25  Jim Meyering  <meyering@redhat.com>
48121
48122         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
48123         * lib/poll.c: Include <config.h>, not "config.h".
48124         * tests/test-getaddrinfo.c: Likewise.
48125
48126 2008-01-25  Simon Josefsson  <simon@josefsson.org>
48127
48128         * modules/sockets-tests: New file.
48129
48130 2008-01-24  Simon Josefsson  <simon@josefsson.org>
48131
48132         * modules/sockets: New module, can be used to call WSA_Startup and
48133         WSA_Cleanup when needed.
48134
48135         * lib/sockets.h, lib/sockets.c: New files.
48136
48137         * m4/sockets.m4: New file.
48138
48139         * tests/test-sockets.c: New file.
48140
48141 2008-01-19  Bruno Haible  <bruno@clisp.org>
48142
48143         * doc/posix-headers: Renamed from doc/headers.
48144         * doc/posix-functions: Renamed from doc/functions.
48145         * doc/gnulib.texi: Update.
48146
48147 2008-01-19  Bruno Haible  <bruno@clisp.org>
48148
48149         * doc/glibc-functions/strcasestr.texi: Include contents of
48150         doc/functions/strcasestr.texi, fixing the list of platforms.
48151         * doc/functions/strcasestr.texi: Remove file.
48152
48153 2008-01-19  Bruno Haible  <bruno@clisp.org>
48154
48155         * doc/glibc-functions/memmem.texi: Include contents of
48156         doc/functions/memmem.texi.
48157         * doc/functions/memmem.texi: Remove file.
48158
48159 2008-01-18  Bruno Haible  <bruno@clisp.org>
48160
48161         * doc/glibc-functions/*.texi: New files.
48162         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
48163         to use the new files.
48164
48165 2008-01-17  Bruno Haible  <bruno@clisp.org>
48166
48167         * tests/test-gethostname.c (main): Fix printf statement.
48168
48169 2008-01-17  Simon Josefsson  <simon@josefsson.org>
48170
48171         * modules/gethostname-tests: New file.
48172
48173         * tests/test-gethostname.c: New file.
48174
48175 2008-01-17  Simon Josefsson  <simon@josefsson.org>
48176
48177         * lib/gethostname.c: Include string.h unconditionally, strncpy is
48178         used by the UNAME case.  Reported by Bruno Haible
48179         <bruno@clisp.org>.
48180
48181 2008-01-17  Eric Blake  <ebb9@byu.net>
48182
48183         Convert c-strcasestr to be more efficient.
48184         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
48185         (Depends-on): Add c-strcase, remove malloca, strnlen.
48186         * tests/test-c-strcasestr.c (main): Enhance test.
48187         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
48188
48189 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
48190
48191         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
48192         Use it in creating po/Makevars.
48193
48194 2008-01-15  Simon Josefsson  <simon@josefsson.org>
48195
48196         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
48197         Applications that requires it should initialize libgcrypt
48198         manually.
48199
48200 2008-01-16  Simon Josefsson  <simon@josefsson.org>
48201
48202         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
48203
48204 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
48205
48206         Fix problem with getdate on mingw32 reported by Simon Josefsson
48207         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
48208         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
48209         tzname", when deciding whether to declare tzname.
48210         * lib/strftime.c (tzname): Likewise.
48211
48212 2008-01-15  Bruno Haible  <bruno@clisp.org>
48213
48214         Work around a MacOS X 10.5 bug in frexpl().
48215         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
48216         * doc/functions/frexpl.texi: Document the bug.
48217         Reported by Elias Pipping <pipping@gentoo.org>.
48218
48219 2008-01-14  Eric Blake  <ebb9@byu.net>
48220
48221         Touch up previous patch.
48222         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
48223         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
48224
48225         Convert strcasestr module to use Two-Way algorithm.
48226         * modules/strcasestr-simple: New module, based on the old
48227         strcasestr, but with Two-Way rather than KMP.
48228         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
48229         * lib/string.in.h (rpl_strcasestr): Declare.
48230         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
48231         performance.
48232         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
48233         * modules/string (Makefile.am): Support strcasestr.
48234         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
48235         * modules/strcasestr-tests (Depends-on): Check for alarm.
48236         * tests/test-strcasestr.c: Augment test.
48237         * lib/str-two-way.h: Clean up stray macro.
48238         * NEWS: Document new module.
48239         * MODULES.html.sh (string handling): Likewise.
48240         * doc/functions/strcasestr.texi: New file.
48241         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
48242         here, since it is not a POSIX function.
48243
48244 2008-01-14  Colin Watson  <cjwatson@debian.org>
48245             Bruno Haible  <bruno@clisp.org>
48246
48247         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
48248         works fine; if not, set REPLACE_STRSIGNAL.
48249         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
48250         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
48251         REPLACE_STRSIGNAL.
48252         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
48253         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
48254         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
48255
48256 2008-01-14  Bruno Haible  <bruno@clisp.org>
48257
48258         * modules/strsignal (Include): Change to <string.h>.
48259
48260 2008-01-14  Colin Watson  <cjwatson@debian.org>
48261
48262         * modules/argp (Notice): Add a notice recommending to change
48263         XGETTEXT_OPTIONS.
48264         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
48265
48266 2008-01-13  Colin Watson  <cjwatson@debian.org>
48267
48268         * modules/strsignal-tests: New file.
48269         * tests/test-strsignal.c: New file.
48270
48271         * lib/strsignal.c: New file, from glibc with modifications.
48272         * lib/siglist.h: New file, from glibc with modifications.
48273         * lib/string.in.h (strsignal): New declaration.
48274         * m4/strsignal.m4: New file.
48275         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
48276         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
48277         * modules/strsignal: New file.
48278         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
48279         HAVE_DECL_STRSIGNAL.
48280
48281 2008-01-13  Bruno Haible  <bruno@clisp.org>
48282
48283         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
48284         locale encoding is not ASCII. Needed for OpenBSD 4.0.
48285         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
48286         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
48287
48288 2008-01-13  Bruno Haible  <bruno@clisp.org>
48289
48290         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
48291         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
48292         * lib/argp.h (__attribute__): Likewise.
48293         * lib/c-stack.c (__attribute__): Likewise.
48294         * lib/error.h (__attribute__): Likewise.
48295         * lib/fts.c (__attribute__): Likewise.
48296         * lib/openat.h (__attribute__): Likewise.
48297         * lib/stdio.in.h (__attribute__): Likewise.
48298         * lib/string.in.h (__attribute__): Likewise.
48299         * lib/utimens.c (__attribute__): Likewise.
48300         * lib/vasnprintf.h (__attribute__): Likewise.
48301         * lib/xalloc.h (__attribute__): Likewise.
48302         * lib/xprintf.h (__attribute__): Likewise.
48303         * lib/xstrtol.h (__attribute__): Likewise.
48304         * lib/xvasprintf.h (__attribute__): Likewise.
48305
48306 2008-01-12  Bruno Haible  <bruno@clisp.org>
48307
48308         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
48309         * doc/glibc-headers/a.out.texi: New file.
48310         * doc/glibc-headers/aliases.texi: New file.
48311         * doc/glibc-headers/alloca.texi: New file.
48312         * doc/glibc-headers/ar.texi: New file.
48313         * doc/glibc-headers/argp.texi: New file.
48314         * doc/glibc-headers/argz.texi: New file.
48315         * doc/glibc-headers/byteswap.texi: New file.
48316         * doc/glibc-headers/crypt.texi: New file.
48317         * doc/glibc-headers/endian.texi: New file.
48318         * doc/glibc-headers/envz.texi: New file.
48319         * doc/glibc-headers/err.texi: New file.
48320         * doc/glibc-headers/error.texi: New file.
48321         * doc/glibc-headers/execinfo.texi: New file.
48322         * doc/glibc-headers/fpu_control.texi: New file.
48323         * doc/glibc-headers/fstab.texi: New file.
48324         * doc/glibc-headers/fts.texi: New file.
48325         * doc/glibc-headers/getopt.texi: New file.
48326         * doc/glibc-headers/ieee754.texi: New file.
48327         * doc/glibc-headers/ifaddrs.texi: New file.
48328         * doc/glibc-headers/libintl.texi: New file.
48329         * doc/glibc-headers/mcheck.texi: New file.
48330         * doc/glibc-headers/mntent.texi: New file.
48331         * doc/glibc-headers/obstack.texi: New file.
48332         * doc/glibc-headers/paths.texi: New file.
48333         * doc/glibc-headers/printf.texi: New file.
48334         * doc/glibc-headers/pty.texi: New file.
48335         * doc/glibc-headers/resolv.texi: New file.
48336         * doc/glibc-headers/shadow.texi: New file.
48337         * doc/glibc-headers/sysexits.texi: New file.
48338         * doc/glibc-headers/ttyent.texi: New file.
48339
48340 2008-01-12  Jim Meyering  <meyering@redhat.com>
48341
48342         announce-gen: emit Gnulib's git-based version string.
48343         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
48344         New option --gnulib-version=V, where V is expected to be
48345         the output of running git describe in the gnulib directory.
48346         (get_tool_versions): Request feedback on xdelta.  I suspect it's
48347         not useful, and plan to stop publishing an xdelta file with each
48348         coreutils release.
48349
48350         * build-aux/announce-gen: Also check for lzma-compressed files.
48351
48352 2008-01-11  Bruno Haible  <bruno@clisp.org>
48353
48354         * tests/test-memmem.c (main): Increase maximum allowed time.
48355         * tests/test-strstr.c (main): Likewise.
48356
48357 2008-01-11  Bruno Haible  <bruno@clisp.org>
48358
48359         * doc/functions/memmem.texi: Add more precisions about platforms.
48360         * doc/functions/strstr.texi: Likewise.
48361
48362 2008-01-10  Eric Blake  <ebb9@byu.net>
48363
48364         * m4/strstr.m4: Delete cruft from copy-n-paste.
48365         Reported by Bruno Haible.
48366
48367 2008-01-10  Bruno Haible  <bruno@clisp.org>
48368
48369         Make c-strstr rely on strstr.
48370         * lib/c-strstr.c: Don't include str-kmp.h.
48371         (c_strstr): Define in terms of strstr.
48372         * modules/c-strstr (Files): Remove lib/str-kmp.h.
48373         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
48374
48375 2008-01-10  Bruno Haible  <bruno@clisp.org>
48376
48377         * doc/gnulib.texi (String Functions in C Locale): New section.
48378         * doc/c-ctype.texi: New file.
48379         * doc/c-strcase.texi: New file.
48380         * doc/c-strcaseeq.texi: New file.
48381         * doc/c-strcasestr.texi: New file.
48382         * doc/c-strstr.texi: New file.
48383         * doc/c-strtod.texi: New file.
48384         * doc/c-strtold.texi: New file.
48385
48386 2008-01-10  Eric Blake  <ebb9@byu.net>
48387
48388         * lib/relocatable.h: Fix a comment.
48389
48390 2008-01-10  Eric Blake  <ebb9@byu.net>
48391
48392         Share two-way algorithm.
48393         * lib/str-two-way.h: New file, merged from...
48394         * lib/memmem.c: ...here...
48395         * lib/strstr.c: ...and here.
48396         * modules/memmem (Files): Use it.
48397         * modules/strstr (Files): Likewise.
48398
48399         Avoid quadratic strstr implementations.
48400         * lib/strstr.c: New file.
48401         * m4/strstr.m4: Likewise.
48402         * modules/strstr: Likewise.
48403         * modules/strstr-tests: Likewise.
48404         * tests/test-strstr.c: Likewise.
48405         * lib/string.in.h (rpl_strstr): Declare.
48406         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
48407         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
48408         * modules/string (Makefile.am): Likewise.
48409         * MODULES.html.sh (string handling): Mention new module.
48410         * doc/functions/strstr.texi (strstr): Document the bug.
48411
48412 2008-01-10  Bruno Haible  <bruno@clisp.org>
48413
48414         * lib/relocatable.h (relocate): State whether result is freshly
48415         allocated or not.
48416         * lib/relocatable.c (relocate): Return a freshly allocated string
48417         instead of a pointer to a privately held string.
48418         Reported by Sylvain Beucler <beuc@gnu.org>.
48419
48420 2008-01-10  Colin Watson  <cjwatson@debian.org>
48421
48422         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
48423         s/S_ISNLK/S_ISLNK/.
48424
48425 2008-01-09  Bruno Haible  <bruno@clisp.org>
48426
48427         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
48428         and other files.
48429         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
48430         if it's only a guess.
48431         * modules/memmem: Simplify by depending on memmem-simple.
48432
48433 2008-01-09  Bruno Haible  <bruno@clisp.org>
48434
48435         Work around OpenBSD 4.0 tdelete() bug.
48436         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
48437         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
48438         macros and don't redefine the enum values.
48439         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
48440         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
48441         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
48442
48443 2008-01-09  Bruno Haible  <bruno@clisp.org>
48444
48445         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
48446         (main): Don't perform the tests if setlocale did not install a UTF-8
48447         locale. Needed on OpenBSD 4.0.
48448         * modules/wcwidth-tests (Depends-on): Add localcharset.
48449
48450 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
48451
48452         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
48453         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
48454         * NEWS: announce this.
48455         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
48456
48457 2008-01-09  Simon Josefsson  <simon@josefsson.org>
48458         and Eric Blake  <ebb9@byu.net>
48459
48460         Add memmem-simple module.
48461         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
48462         (gl_FUNC_MEMMEM): Separate performance from presence checks.
48463         * modules/memmem-simple: New file.
48464         * modules/memmem (Description): Tweak.
48465         * MODULES.html.sh (string handling): Mention new module.
48466         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
48467         addressed by memmem-simple.
48468         * NEWS: Document the difference.
48469
48470 2008-01-09  Eric Blake  <ebb9@byu.net>
48471
48472         Give gcc some memmem optimization hints.
48473         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
48474         (strcasestr): Declare as pure.
48475         * modules/memmem (Maintainer): Claim my implementation.
48476
48477 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48478
48479         Support AIX 6.1 and higher.
48480         * build-aux/config.libpath: Likewise.
48481         * build-aux/config.rpath: Likewise.
48482
48483 2008-01-08  Jim Meyering  <meyering@redhat.com>
48484             Bruno Haible  <bruno@clisp.org>
48485
48486         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
48487         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
48488         Reported by Peter Fales in
48489         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
48490
48491 2008-01-08  Bruno Haible  <bruno@clisp.org>
48492
48493         * modules/unictype/category-of (Depends-on): Add
48494         unictype/category-none.
48495         * modules/unictype/category-and-tests (Depends-on): Add
48496         unictype/category-{L,N,Lu,Nd}.
48497         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
48498         * modules/unictype/category-or-tests (Depends-on): Add
48499         unictype/category-{L,N}.
48500         * modules/unictype/category-name-tests (Depends-on): Add
48501         unictype/category-{Z,Nl}.
48502         Reported by Simon Josefsson.
48503
48504 2008-01-08  Bruno Haible  <bruno@clisp.org>
48505
48506         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
48507         convention better.
48508         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
48509         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
48510         Reported by Peter Miller <millerp@canb.auug.org.au>.
48511
48512 2008-01-08  Eric Blake  <ebb9@byu.net>
48513
48514         Rewrite memmem to guarantee linear complexity without malloc.
48515         * lib/memmem.c (memmem): Use Two-Way rather than
48516         Knuth-Morris-Pratt, to allow O(1) space usage.
48517         (critical_factorization, two_way_short_needle)
48518         (two_way_long_needle): New functions.
48519         (knuth_morris_pratt): Delete.
48520         * modules/memmem (Depends-on): No longer need malloca or stdbool.
48521         Add stdint.
48522         * tests/test-memmem.c (main): Add tests for periodic needle and
48523         sublinear performance.
48524         * doc/functions/memmem.texi (memmem): Document other deficiencies
48525         in cygwin and older glibc.
48526
48527 2008-01-08  Bruno Haible  <bruno@clisp.org>
48528
48529         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
48530         augmentation.
48531
48532 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
48533
48534         Add a configure time option: --disable-acl.
48535         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
48536         AC_ARG_ENABLE(acl).
48537
48538 2008-01-06  Simon Josefsson  <simon@josefsson.org>
48539
48540         * tests/test-localename.c: Don't include obsolete "setenv.h".
48541
48542         * modules/localename-tests (Depends-on): Need unsetenv.
48543
48544 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48545
48546         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
48547
48548 2008-01-06  Colin Watson  <cjwatson@debian.org>
48549
48550         * users.txt: Add man-db.
48551
48552 2008-01-07  Bruno Haible  <bruno@clisp.org>
48553
48554         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
48555         previous section name.
48556
48557 2008-01-07  Bruno Haible  <bruno@clisp.org>
48558
48559         * lib/progname.c (set_program_name): Don't strip off a leading
48560         "lt-" prefix outside a .libs directory.
48561         Suggested by Paul Eggert.
48562
48563 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
48564             Bruno Haible  <bruno@clisp.org>
48565
48566         Improve memory cleanup in 'relocatable' module.
48567         * lib/relocatable.h (compute_curr_prefix): Change return type to
48568         'char *'.
48569         * lib/relocatable.c (compute_curr_prefix): Change return type to
48570         'char *'. Free curr_installdir after use.
48571         (relocate): Free curr_prefix_better after use.
48572         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
48573
48574 2008-01-01  Bruno Haible  <bruno@clisp.org>
48575
48576         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
48577         failure on older glibc systems.
48578         Reported by Peter Fales <psfales@alcatel-lucent.com>.
48579
48580 2008-01-05  Eric Blake  <ebb9@byu.net>
48581
48582         Avoid quadratic system memmem.
48583         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
48584         Reported by Ralf Wildenhues.
48585
48586         Fix memmem test for mingw.
48587         * modules/memmem-tests (configure.ac): Check for alarm.
48588         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
48589         it.
48590         * doc/functions/memmem.texi: New file.
48591         * doc/gnulib.texi (Function Substitutes): Add memmem.
48592         Reported by Bruno Haible.
48593
48594 2008-01-04  Bruno Haible  <bruno@clisp.org>
48595
48596         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
48597         Require gl_HEADER_STRINGS_H_DEFAULTS, not
48598         gl_HEADER_STRING_H_DEFAULTS.
48599
48600 2008-01-04  Eric Blake  <ebb9@byu.net>
48601
48602         Shorten duration of memmem test.
48603         * tests/test-memmem.c (main): Use alarm to declare failure if test
48604         is taking too long.
48605         Reported by Ralf Wildenhues.
48606
48607 2007-12-21  Simon Josefsson  <simon@josefsson.org>
48608
48609         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
48610         string, needed by strerror.
48611
48612 2008-01-03  Colin Watson  <cjwatson@debian.org>
48613             Bruno Haible  <bruno@clisp.org>
48614
48615         * doc/gnulib-tool.texi (Localization): New section.
48616
48617 2008-01-02  Bruno Haible  <bruno@clisp.org>
48618
48619         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
48620         variables to 'unsigned char *' type.
48621         Reported by Paul Eggert.
48622
48623 2008-01-02  Jim Meyering  <jim@meyering.net>
48624
48625         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
48626
48627 2007-12-31  Jim Meyering  <jim@meyering.net>
48628
48629         Avoid use of private FTS type name.
48630         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
48631
48632 2007-12-30  Karl Berry  <karl@gnu.org>
48633
48634         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
48635         work around defect in Texinfo and/or the standalone Info browser.
48636
48637 2007-12-30  Bruno Haible  <bruno@clisp.org>
48638
48639         Unify 5 copies of the KMP code.
48640         * lib/str-kmp.h: New file.
48641         * lib/c-strcasestr.c: Include str-kmp.h.
48642         (knuth_morris_pratt): Remove function.
48643         (c_strcasestr): Update.
48644         * lib/c-strstr.c: Include str-kmp.h.
48645         (knuth_morris_pratt): Remove function.
48646         (c_strcasestr): Update.
48647         * lib/mbscasestr.c: Include str-kmp.h.
48648         (knuth_morris_pratt_unibyte): Remove function.
48649         * lib/mbsstr.c: Include str-kmp.h.
48650         (knuth_morris_pratt_unibyte): Remove function.
48651         * lib/strcasestr.c: Include str-kmp.h.
48652         (knuth_morris_pratt): Remove function.
48653         (strcasestr): Update.
48654         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
48655         * modules/c-strstr (Files): Likewise.
48656         * modules/mbscasestr (Files): Likewise.
48657         * modules/mbsstr (Files): Likewise.
48658         * modules/strcasestr (Files): Likewise.
48659         Suggested by Paul Eggert.
48660
48661 2007-12-30  Bruno Haible  <bruno@clisp.org>
48662
48663         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
48664         defined.
48665
48666 2007-12-30  Bruno Haible  <bruno@clisp.org>
48667
48668         * lib/xmalloca.h: Include xalloc.h.
48669         (xnmalloca): New macro.
48670
48671 2007-12-30  Bruno Haible  <bruno@clisp.org>
48672
48673         * lib/malloca.h (nmalloca): New macro.
48674         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
48675         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
48676         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
48677         knuth_morris_pratt_multibyte): Likewise.
48678         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
48679         knuth_morris_pratt_multibyte): Likewise.
48680         * lib/memmem.c (knuth_morris_pratt): Likewise.
48681         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
48682
48683 2007-12-25  Bruno Haible  <bruno@clisp.org>
48684
48685         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
48686         * lib/glob.c: Don't include openat.h.
48687         (link_exists2_p): Add back the code that deals with the
48688         !GLOB_ALTDIRFUNC case.
48689         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
48690         let it do the filename concatenation.
48691         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
48692         * modules/glob (Depends-on): Remove openat.
48693
48694 2007-12-31  Bruno Haible  <bruno@clisp.org>
48695
48696         * modules/dirfd (License): Change to LGPLv2+.
48697         Approved by Jim Meyering.
48698
48699 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
48700
48701         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
48702         when multiplying M by sizeof (size_t).
48703
48704 2007-12-10  Martin Lambers  <marlam@marlam.de>
48705
48706         Override getpagesize on mingw.
48707         * lib/getpagesize.c: New file.
48708         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
48709         * modules/getpagesize (Files): Add lib/getpagesize.c.
48710         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
48711         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
48712         REPLACE_GETPAGESIZE.
48713         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
48714
48715 2007-12-25  Bruno Haible  <bruno@clisp.org>
48716
48717         * modules/localcharset (Notice): New field.
48718         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
48719         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
48720
48721 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
48722             Bruno Haible  <bruno@clisp.org>
48723
48724         Avoid using the syntax symbol() in formatted documentation.
48725         * MODULES.html.sh (func_module): When replacing symbol() with a
48726         hyperlink, remove the parentheses. Show an error if some remain.
48727         Recognize and render the '...' syntax.
48728         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
48729         Rework. Add paragraph about GCC's inlining.
48730         * doc/alloca.texi: Likewise.
48731         * doc/error.texi: Remove parentheses from symbol reference.
48732         * doc/gnulib-intro.texi: Likewise.
48733         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
48734         * modules/fnmatch (Description): Reword to say "the ... function".
48735         * modules/full-read (Description): Likewise.
48736         * modules/full-write (Description): Likewise.
48737         * modules/safe-read (Description): Likewise.
48738         * modules/safe-write (Description): Likewise.
48739         * modules/strchrnul (Description): Likewise.
48740         * modules/trim (Description): Likewise.
48741         * modules/error (Description): Remove parentheses from symbol
48742         references.
48743         * modules/verror (Description): Likewise.
48744         Reported by Karl Berry.
48745
48746 2007-12-25  Bruno Haible  <bruno@clisp.org>
48747
48748         Fixup after 2007-10-16 commit.
48749         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
48750
48751 2007-12-24  Bruno Haible  <bruno@clisp.org>
48752
48753         Make --enable-relocatable work with DESTDIR.
48754         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
48755         to compute installdir from destprog.
48756         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
48757         also set the RELOC_DESTDIR variable.
48758         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
48759
48760 2007-12-24  Bruno Haible  <bruno@clisp.org>
48761
48762         Fix link error due to xalloc_die().
48763         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
48764         of xreadlink.
48765         * lib/relocwrapper.c: Update comments.
48766         * build-aux/install-reloc: Remove xreadlink.c from file list.
48767         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
48768         xreadlink.c.
48769         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
48770
48771 2007-12-24  Bruno Haible  <bruno@clisp.org>
48772
48773         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
48774         * lib/setenv.h: Remove file.
48775         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
48776         lib/setenv.h.
48777         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
48778         (Depends-on): Add stdlib.
48779         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
48780         gl_FUNC_UNSETENV.
48781         (Include): Replace setenv.h with <stdlib.h>.
48782         * modules/unsetenv: New file.
48783         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
48784         * lib/unsetenv.c: Include <stdlib.h> first.
48785         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
48786         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
48787         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
48788         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
48789         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
48790         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
48791         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
48792         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
48793         * doc/functions/unsetenv.texi: Update.
48794         * modules/xsetenv (Depends-on): Add unsetenv.
48795         * modules/getdate (Depends-on): Likewise.
48796         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
48797         * lib/xsetenv.c: Don't include setenv.h.
48798         * lib/getdate.y: Likewise.
48799         * lib/relocwrapper.c: Likewise.
48800         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
48801         (Depends-on): Add stdlib.
48802         * NEWS: Mention the changes.
48803         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
48804
48805 2007-12-23  Bruno Haible  <bruno@clisp.org>
48806
48807         * lib/memmem.c (memmem): Use lowercase variable names. Tab
48808         indentation.
48809
48810 2007-12-23  Bruno Haible  <bruno@clisp.org>
48811
48812         * lib/c-strcasestr.c: Add more comments.
48813         * lib/c-strstr.c: Likewise.
48814         * lib/mbscasestr.c: Likewise.
48815         * lib/mbsstr.c: Likewise.
48816         * lib/strcasestr.c: Likewise.
48817         * lib/memmem.c: Likewise.
48818
48819 2007-12-23  Bruno Haible  <bruno@clisp.org>
48820
48821         * tests/test-memmem.c: Include <string.h> first.
48822
48823 2007-12-22  Bruno Haible  <bruno@clisp.org>
48824
48825         * gnulib-tool (func_create_testdir): Change $auxdir while generating
48826         the contents of $testsbase.
48827         Reported by Ralf Wildenhues.
48828
48829 2007-12-22  Bruno Haible  <bruno@clisp.org>
48830
48831         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
48832         two variables local_ldadd_before, local_ldadd_last.
48833
48834 2007-12-20  Eric Blake  <ebb9@byu.net>
48835
48836         Work around circular library issue when cross-compiling.
48837         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
48838         that progname.o does not need to pull in rpl_memcmp.
48839
48840 2007-12-19  Eric Blake  <ebb9@byu.net>
48841
48842         Fix memmem to avoid O(n^2) worst-case complexity.
48843         * lib/memmem.c (knuth_morris_pratt): New function.
48844         (memmem): Use it if first few naive iterations fail.
48845         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
48846         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
48847         * modules/memchr (License): Likewise.
48848         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
48849         malloca.
48850         * tests/test-memmem.c: Rewrite, borrowing ideas from
48851         test-mbsstr1.c; the old version wouldn't even compile!
48852         * modules/memmem-tests: New file.
48853         * lib/string.in.h (rpl_memmem): Add declaration.
48854         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
48855         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
48856         REPLACE_MEMMEM.
48857
48858 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
48859
48860         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
48861         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
48862         before any system include files, and undef after them all.  This
48863         should fix a problem on VMS reported by John E. Malmberg in
48864         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
48865
48866 2007-12-17  Eric Blake  <ebb9@byu.net>
48867
48868         Revert addition of verify, for BSD/OS.
48869         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
48870         can't handle large files, for the sake of obsolete platforms.
48871         * modules/fseeko (Depends-on): Remove verify.
48872         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
48873         * doc/functions/ftello.texi (ftello): Likewise.
48874         * doc/functions/fgetpos.texi (fgetpos): Likewise.
48875         Reported by Larry Jones.
48876
48877 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
48878
48879         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
48880         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
48881
48882 2007-12-17  Jim Meyering  <meyering@redhat.com>
48883
48884         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
48885         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
48886         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
48887         * modules/getcwd (Depends-on): Add openat.
48888         Reported by Petr Salinger.
48889
48890 2007-12-17  Bruno Haible  <bruno@clisp.org>
48891
48892         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
48893         avoid a segmentation fault of the configure test on x86_64 systems.
48894
48895 2007-12-15  Jim Meyering  <meyering@redhat.com>
48896
48897         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
48898
48899 2007-12-13  Eric Blake  <ebb9@byu.net>
48900
48901         Another fseek test.
48902         * tests/test-fseek.c (main): Also test ungetc handling.
48903         * tests/test-fseeko.c (main): Likewise.
48904         * modules/fseeko (Depends-on): Add verify.
48905         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
48906         large.
48907         Reported by Larry Jones.
48908
48909         Fix fseeko on mingw.
48910         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
48911         seek.
48912
48913         Beef up fseek tests.
48914         * tests/test-fseek.c (main): Also test eof handling.
48915         * tests/test-fseeko.c (main): Likewise.
48916         Reported by Larry Jones.
48917
48918 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
48919
48920         Fix fseeko on BSD-based platforms.
48921         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
48922         successful seek.
48923
48924 2007-12-12  Eric Blake  <ebb9@byu.net>
48925
48926         Allow circular dependency of separate libtests.a
48927         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
48928         when use_libtests.
48929
48930 2007-12-11  Eric Blake  <ebb9@byu.net>
48931
48932         Fix bug with -0.0L in previous patch.
48933         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
48934         * tests/test-isnan.c (main): Also test on zeroes.
48935         * tests/test-isnanf.c (main): Likewise.
48936         * tests/test-isnanl.h (main): Likewise.
48937
48938         Detect pseudo-denormals on x86 even when cross-compiling.
48939         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
48940         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
48941         invalid bit patterns that happen to satisfy ==.
48942
48943         Avoid link failures with separate libtests.a.
48944         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
48945         last, to satisfy circular dependencies.
48946
48947 2007-12-11  Eric Blake  <ebb9@byu.net>
48948         and Bruno Haible  <bruno@clisp.org>
48949
48950         Fix OpenBSD 4.0 <float.h> handling of long double.
48951         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
48952         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
48953         * doc/headers/float.texi (float.h): Document OpenBSD bug.
48954
48955 2007-12-11  Jim Meyering  <meyering@redhat.com>
48956
48957         * users.txt: Add libvirt.
48958
48959         Support versions of autoconf prior to 2.59c.
48960         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
48961         if it is not already defined.
48962
48963 2007-12-09  Bruno Haible  <bruno@clisp.org>
48964
48965         Let 'gnulib-tool --import' collect sources needed for the tests in
48966         tests/ rather than in lib/.
48967         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
48968         argument. If true, add rules to generate libtests.a, and put libtests.a
48969         into $(LDADD). Consider source files in subdirectories and set
48970         uses_subdirs.
48971         (func_emit_initmacro_start, func_emit_initmacro_end,
48972         func_emit_initmacro_done): Pass all arguments explicitly.
48973         (func_import): Determine two module lists main_modules,
48974         testsrelated_modules. Determine use_libtests. Determine two variables
48975         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
48976         instead of just sed_transform_lib_file. Determine two variables
48977         main_files and testsrelated_files. Compute 'files' as the union of
48978         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
48979         func_add_or_update. In the generated gnulib-comp.m4, collect the
48980         object files for tests/ in different variables than those for lib/.
48981         Substitute LIBTESTS_LIBDEPS.
48982         (func_create_testdir): Combine the uses_subdirs results from
48983         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
48984
48985 2007-12-09  Bruno Haible  <bruno@clisp.org>
48986
48987         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
48988         the build-aux directory.
48989
48990 2007-12-09  Bruno Haible  <bruno@clisp.org>
48991
48992         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
48993         introduced on 2006-09-09.
48994
48995 2007-12-07  Jim Meyering  <meyering@redhat.com>
48996
48997         Let these macros work also with autoconf-2.59.
48998         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
48999         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
49000         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
49001
49002 2007-12-06  Jim Meyering  <meyering@redhat.com>
49003
49004         Avoid a configure-time syntax error in gl_FUNC_ACL.
49005         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
49006         function in each branch, before testing the cache variable.
49007
49008 2007-12-04  Eric Blake  <ebb9@byu.net>
49009
49010         Make scripts executable.
49011         * build-aux/config.guess: Add execute permissions.
49012         * build-aux/config.sub: Likewise.
49013         * build-aux/gendocs.sh: Likewise.
49014
49015         Fix frexp on mingw.
49016         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
49017         cross-compiling.
49018         * doc/functions/frexp.texi (frexp): Document the bug.
49019
49020         Make cygwin fseeko check more reliable.
49021         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
49022         version numbers, rather than unrelated feature check.
49023         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
49024         * doc/functions/ftello.texi (ftello): Likewise.
49025         Reported by Bruno Haible.
49026
49027         * m4/strerror.m4: Bump version number.
49028
49029 2007-12-03  Bruno Haible  <bruno@clisp.org>
49030
49031         * doc/functions/mprotect.texi: Mention the mingw problem.
49032
49033 2007-12-03  Eric Blake  <ebb9@byu.net>
49034
49035         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
49036         REPLACE_STRERROR is initialized before this macro.
49037
49038 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
49039
49040         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
49041         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
49042         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
49043         put -lsec in even for programs other than 'ls'.  This fixes a problem
49044         for gettext reported by Bruno Haible in
49045         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
49046         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
49047         Add support for Solaris 10.  This isn't efficient, but should get the
49048         job done for now.
49049
49050 2007-12-03  James Youngman  <jay@gnu.org>
49051
49052         * doc/regexprops-generic.texi: change "an close-group" to "a
49053         close-group" and "illegal" to "not allowed".
49054
49055 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49056
49057         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
49058         pr_byname.h. Needed for the rare case when the maintainer has done
49059         "make maintainer-clean" in the source directory and then attempts a
49060         build outside the source directory.
49061         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
49062         scripts_byname.h.
49063
49064 2007-12-02  Martin Lambers <marlam@marlam.de>
49065             Bruno Haible  <bruno@clisp.org>
49066
49067         * lib/getpagesize.h: Remove file.
49068         * lib/unistd.in.h: Include declaration of getpagesize here.
49069         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
49070         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
49071         HAVE_SYS_PARAM_H.
49072         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
49073         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
49074         * modules/getpagesize (Files): Remove lib/getpagesize.h.
49075         (Depends-on): Add unistd.
49076         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
49077         (Include): Use <unistd.h> instead of getpagesize.h.
49078         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
49079         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
49080         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
49081         gl_GETPAGESIZE invocation, already handled by module dependency.
49082         * lib/pagealign_alloc.c: Don't include getpagesize.h.
49083
49084 2007-12-02  Bruno Haible  <bruno@clisp.org>
49085
49086         * modules/strings-tests: New file.
49087         * tests/test-strings.c: New file.
49088
49089         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
49090         * lib/strings.in.h: New file.
49091         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
49092         * m4/strings_h.m4: New file.
49093         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
49094         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
49095         * modules/strings: New file.
49096         * modules/string (Makefile.am): Update.
49097         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
49098         Reported by Karl Berry.
49099
49100 2007-12-01  Eric Blake  <ebb9@byu.net>
49101
49102         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
49103         accomodate fix in cygwin 1.5.25.
49104
49105 2007-12-01  Jim Meyering  <meyering@redhat.com>
49106
49107         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
49108         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
49109         that would inhibit utf8-optimization of a regexp containing line-
49110         or buffer-anchors, e.g., `^', `$'.
49111
49112 2007-11-30  Bruno Haible  <bruno@clisp.org>
49113
49114         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
49115         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
49116         glthread_recursive_lock_init.
49117         * lib/lock.c (glthread_recursive_lock_init)
49118         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
49119         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
49120
49121 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
49122
49123         New function qset_acl, like set_acl but with syscall semantics.
49124         * lib/acl.h (qset_acl): New decl.
49125         * lib/acl.c (qset_acl): New function.
49126         (set_acl): Use new function.  Use more-consistent diagnostics.
49127
49128 2007-11-28  Jim Meyering  <meyering@redhat.com>
49129
49130         * modules/physmem (License): Change from GPL to LGPLv2+.
49131
49132 2007-11-26  Bruno Haible  <bruno@clisp.org>
49133
49134         * lib/vasnprintf.c (decode_long_double): Don't abort if the
49135         'long double' type has excess precision.
49136         Reported by Jim Meyering in
49137         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
49138
49139 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49140
49141         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
49142         Sync from <http://gnu.org/licenses>.
49143         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
49144         with license text from same location.
49145         * doc/maintain.texi, doc/standards.texi:  Sync from
49146         <http://savannah.gnu.org/projects/gnustandards>.
49147
49148 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
49149         and Jim Meyering  <meyering@redhat.com>
49150
49151         Adjust getdate' grammar to accept a slightly more regular language.
49152         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
49153         Before, the former was rejected.
49154         * lib/getdate.y (digits_to_date_time): New function, factored
49155         out of ...
49156         (number): ...here.  Just call digits_to_date_time.
49157         (hybrid): New non-terminal to handle an <unsigned number,
49158         signed relative offset> sequence consistently.
49159
49160 2007-11-18  Jim Meyering  <meyering@redhat.com>
49161
49162         Pull my changes from coreutils:
49163         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
49164         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
49165         use of $gnulib_tool_option_extras, so that it's separated from the
49166         preceding argument.
49167
49168         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
49169         * build-aux/bootstrap (cp_mark_as_generated): Create any required
49170         parent destination directories before copying a file into place.
49171
49172 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
49173
49174         bootstrap: work also with 4-argument variant of AC_INIT
49175         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
49176
49177 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
49178
49179         Port test-getaddrinfo to Solaris.
49180         Problem reported by Bruno Haible in
49181         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
49182         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
49183         explanation of setting 'hints'.
49184         Don't reject an implementation merely because it returns EAI_SERVICE.
49185         (EAI_SERVICE): Define to 0 if not defined.
49186
49187 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
49188
49189         The license of gnu-make and posix-shell is now "GPLed build tool".
49190         * modules/gnu-make (License): Likewise.
49191         * modules/posix-shell (License): Likewise.
49192
49193         New module posix-shell, for determining a POSIX shell
49194         or perhaps something that is close enough to a POSIX shell.
49195         * m4/posix-shell.m4: New file.
49196         * modules/posix-shell: New file.
49197
49198         * MODULES.html.sh: Mention new module.
49199
49200         New module gnu-make, for determining whether we're using GNU Make.
49201         * m4/gnu-make.m4: New file.
49202         * modules/gnu-make: New file.
49203         * MODULES.html.sh: Mention new module.
49204
49205 2007-11-14  Jim Meyering  <meyering@redhat.com>
49206
49207         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
49208         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
49209         use this macro to create a function _definition_.
49210         Remove useless "#undef ARGMATCH_DIE".
49211
49212 2007-11-14  Bruno Haible  <bruno@clisp.org>
49213
49214         * lib/config.charset: Update for OpenBSD 4.1.
49215         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
49216
49217 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
49218
49219         Document 64-bit #if problems in stdint.texi.
49220         * doc/headers/stdint.texi (stdint.h): Mention problems with
49221         64-bit-#if, and how to work around them.
49222
49223         Don't insist on 'long long int' support in the preprocessor.  It
49224         breaks too many things.  For example, PRIdMAX still uses a 'long
49225         long int' format with the latest Sun compiler, even though
49226         HAVE_LONG_LONG_INT isn't defined due to that compiler's
49227         preprocessor problem.  This causes the latest coreutils to dump
49228         core on Solaris 10 sparc with the Sun C compiler.
49229         Instead, fix the 2007-10-16 problem in a different way, by evaluating
49230         the troublesome expressions at configure-time, not at #if-time.
49231         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
49232         preprocessor.
49233         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
49234         compile-time C checks, done at 'configure'-time.
49235         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
49236         * modules/inttypes (Makefile): Substitute the new symbols that
49237         gl_INTTYPES_H now generates.
49238         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
49239
49240 2007-11-12  Bruno Haible  <bruno@clisp.org>
49241
49242         Tests for Unicode character classification functions.
49243
49244         * modules/unictype/bidicategory-byname-tests: New file.
49245         * modules/unictype/bidicategory-name-tests: New file.
49246         * modules/unictype/bidicategory-of-tests: New file.
49247         * modules/unictype/bidicategory-test-tests: New file.
49248         * modules/unictype/block-list-tests: New file.
49249         * modules/unictype/block-of-tests: New file.
49250         * modules/unictype/block-test-tests: New file.
49251         * modules/unictype/category-C-tests: New file.
49252         * modules/unictype/category-Cc-tests: New file.
49253         * modules/unictype/category-Cf-tests: New file.
49254         * modules/unictype/category-Cn-tests: New file.
49255         * modules/unictype/category-Co-tests: New file.
49256         * modules/unictype/category-Cs-tests: New file.
49257         * modules/unictype/category-L-tests: New file.
49258         * modules/unictype/category-Ll-tests: New file.
49259         * modules/unictype/category-Lm-tests: New file.
49260         * modules/unictype/category-Lo-tests: New file.
49261         * modules/unictype/category-Lt-tests: New file.
49262         * modules/unictype/category-Lu-tests: New file.
49263         * modules/unictype/category-M-tests: New file.
49264         * modules/unictype/category-Mc-tests: New file.
49265         * modules/unictype/category-Me-tests: New file.
49266         * modules/unictype/category-Mn-tests: New file.
49267         * modules/unictype/category-N-tests: New file.
49268         * modules/unictype/category-Nd-tests: New file.
49269         * modules/unictype/category-Nl-tests: New file.
49270         * modules/unictype/category-No-tests: New file.
49271         * modules/unictype/category-P-tests: New file.
49272         * modules/unictype/category-Pc-tests: New file.
49273         * modules/unictype/category-Pd-tests: New file.
49274         * modules/unictype/category-Pe-tests: New file.
49275         * modules/unictype/category-Pf-tests: New file.
49276         * modules/unictype/category-Pi-tests: New file.
49277         * modules/unictype/category-Po-tests: New file.
49278         * modules/unictype/category-Ps-tests: New file.
49279         * modules/unictype/category-S-tests: New file.
49280         * modules/unictype/category-Sc-tests: New file.
49281         * modules/unictype/category-Sk-tests: New file.
49282         * modules/unictype/category-Sm-tests: New file.
49283         * modules/unictype/category-So-tests: New file.
49284         * modules/unictype/category-Z-tests: New file.
49285         * modules/unictype/category-Zl-tests: New file.
49286         * modules/unictype/category-Zp-tests: New file.
49287         * modules/unictype/category-Zs-tests: New file.
49288         * modules/unictype/category-and-not-tests: New file.
49289         * modules/unictype/category-and-tests: New file.
49290         * modules/unictype/category-byname-tests: New file.
49291         * modules/unictype/category-name-tests: New file.
49292         * modules/unictype/category-none-tests: New file.
49293         * modules/unictype/category-of-tests: New file.
49294         * modules/unictype/category-or-tests: New file.
49295         * modules/unictype/category-test-withtable-tests: New file.
49296         * modules/unictype/combining-class-tests: New file.
49297         * modules/unictype/ctype-alnum-tests: New file.
49298         * modules/unictype/ctype-alpha-tests: New file.
49299         * modules/unictype/ctype-blank-tests: New file.
49300         * modules/unictype/ctype-cntrl-tests: New file.
49301         * modules/unictype/ctype-digit-tests: New file.
49302         * modules/unictype/ctype-graph-tests: New file.
49303         * modules/unictype/ctype-lower-tests: New file.
49304         * modules/unictype/ctype-print-tests: New file.
49305         * modules/unictype/ctype-punct-tests: New file.
49306         * modules/unictype/ctype-space-tests: New file.
49307         * modules/unictype/ctype-upper-tests: New file.
49308         * modules/unictype/ctype-xdigit-tests: New file.
49309         * modules/unictype/decimal-digit-tests: New file.
49310         * modules/unictype/digit-tests: New file.
49311         * modules/unictype/mirror-tests: New file.
49312         * modules/unictype/numeric-tests: New file.
49313         * modules/unictype/property-alphabetic-tests: New file.
49314         * modules/unictype/property-ascii-hex-digit-tests: New file.
49315         * modules/unictype/property-bidi-arabic-digit-tests: New file.
49316         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
49317         * modules/unictype/property-bidi-block-separator-tests: New file.
49318         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
49319         * modules/unictype/property-bidi-common-separator-tests: New file.
49320         * modules/unictype/property-bidi-control-tests: New file.
49321         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
49322         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
49323         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
49324         * modules/unictype/property-bidi-european-digit-tests: New file.
49325         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
49326         * modules/unictype/property-bidi-left-to-right-tests: New file.
49327         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
49328         * modules/unictype/property-bidi-other-neutral-tests: New file.
49329         * modules/unictype/property-bidi-pdf-tests: New file.
49330         * modules/unictype/property-bidi-segment-separator-tests: New file.
49331         * modules/unictype/property-bidi-whitespace-tests: New file.
49332         * modules/unictype/property-byname-tests: New file.
49333         * modules/unictype/property-combining-tests: New file.
49334         * modules/unictype/property-composite-tests: New file.
49335         * modules/unictype/property-currency-symbol-tests: New file.
49336         * modules/unictype/property-dash-tests: New file.
49337         * modules/unictype/property-decimal-digit-tests: New file.
49338         * modules/unictype/property-default-ignorable-code-point-tests: New file.
49339         * modules/unictype/property-deprecated-tests: New file.
49340         * modules/unictype/property-diacritic-tests: New file.
49341         * modules/unictype/property-extender-tests: New file.
49342         * modules/unictype/property-format-control-tests: New file.
49343         * modules/unictype/property-grapheme-base-tests: New file.
49344         * modules/unictype/property-grapheme-extend-tests: New file.
49345         * modules/unictype/property-grapheme-link-tests: New file.
49346         * modules/unictype/property-hex-digit-tests: New file.
49347         * modules/unictype/property-hyphen-tests: New file.
49348         * modules/unictype/property-id-continue-tests: New file.
49349         * modules/unictype/property-id-start-tests: New file.
49350         * modules/unictype/property-ideographic-tests: New file.
49351         * modules/unictype/property-ids-binary-operator-tests: New file.
49352         * modules/unictype/property-ids-trinary-operator-tests: New file.
49353         * modules/unictype/property-ignorable-control-tests: New file.
49354         * modules/unictype/property-iso-control-tests: New file.
49355         * modules/unictype/property-join-control-tests: New file.
49356         * modules/unictype/property-left-of-pair-tests: New file.
49357         * modules/unictype/property-line-separator-tests: New file.
49358         * modules/unictype/property-logical-order-exception-tests: New file.
49359         * modules/unictype/property-lowercase-tests: New file.
49360         * modules/unictype/property-math-tests: New file.
49361         * modules/unictype/property-non-break-tests: New file.
49362         * modules/unictype/property-not-a-character-tests: New file.
49363         * modules/unictype/property-numeric-tests: New file.
49364         * modules/unictype/property-other-alphabetic-tests: New file.
49365         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
49366         * modules/unictype/property-other-grapheme-extend-tests: New file.
49367         * modules/unictype/property-other-id-continue-tests: New file.
49368         * modules/unictype/property-other-id-start-tests: New file.
49369         * modules/unictype/property-other-lowercase-tests: New file.
49370         * modules/unictype/property-other-math-tests: New file.
49371         * modules/unictype/property-other-uppercase-tests: New file.
49372         * modules/unictype/property-paired-punctuation-tests: New file.
49373         * modules/unictype/property-paragraph-separator-tests: New file.
49374         * modules/unictype/property-pattern-syntax-tests: New file.
49375         * modules/unictype/property-pattern-white-space-tests: New file.
49376         * modules/unictype/property-private-use-tests: New file.
49377         * modules/unictype/property-punctuation-tests: New file.
49378         * modules/unictype/property-quotation-mark-tests: New file.
49379         * modules/unictype/property-radical-tests: New file.
49380         * modules/unictype/property-sentence-terminal-tests: New file.
49381         * modules/unictype/property-soft-dotted-tests: New file.
49382         * modules/unictype/property-space-tests: New file.
49383         * modules/unictype/property-terminal-punctuation-tests: New file.
49384         * modules/unictype/property-test-tests: New file.
49385         * modules/unictype/property-titlecase-tests: New file.
49386         * modules/unictype/property-unassigned-code-value-tests: New file.
49387         * modules/unictype/property-unified-ideograph-tests: New file.
49388         * modules/unictype/property-uppercase-tests: New file.
49389         * modules/unictype/property-variation-selector-tests: New file.
49390         * modules/unictype/property-white-space-tests: New file.
49391         * modules/unictype/property-xid-continue-tests: New file.
49392         * modules/unictype/property-xid-start-tests: New file.
49393         * modules/unictype/property-zero-width-tests: New file.
49394         * modules/unictype/scripts-tests: New file.
49395         * modules/unictype/syntax-c-ident-tests: New file.
49396         * modules/unictype/syntax-c-whitespace-tests: New file.
49397         * modules/unictype/syntax-java-ident-tests: New file.
49398         * modules/unictype/syntax-java-whitespace-tests: New file.
49399         * tests/unictype/test-bidi_byname.c: New file.
49400         * tests/unictype/test-bidi_name.c: New file.
49401         * tests/unictype/test-bidi_of.c: New file.
49402         * tests/unictype/test-bidi_test.c: New file.
49403         * tests/unictype/test-block_list.c: New file.
49404         * tests/unictype/test-block_of.c: New file.
49405         * tests/unictype/test-block_test.c: New file.
49406         * tests/unictype/test-categ_and.c: New file.
49407         * tests/unictype/test-categ_and_not.c: New file.
49408         * tests/unictype/test-categ_byname.c: New file.
49409         * tests/unictype/test-categ_name.c: New file.
49410         * tests/unictype/test-categ_none.c: New file.
49411         * tests/unictype/test-categ_of.c: New file.
49412         * tests/unictype/test-categ_or.c: New file.
49413         * tests/unictype/test-categ_test_withtable.c: New file.
49414         * tests/unictype/test-combining.c: New file.
49415         * tests/unictype/test-decdigit.c: New file.
49416         * tests/unictype/test-digit.c: New file.
49417         * tests/unictype/test-mirror.c: New file.
49418         * tests/unictype/test-numeric.c: New file.
49419         * tests/unictype/test-pr_byname.c: New file.
49420         * tests/unictype/test-pr_test.c: New file.
49421         * tests/unictype/test-predicate-part1.h: New file.
49422         * tests/unictype/test-predicate-part2.h: New file.
49423         * tests/unictype/test-scripts.c: New file.
49424         * tests/unictype/test-sy_c_ident.c: New file.
49425         * tests/unictype/test-sy_java_ident.c: New file.
49426
49427         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
49428         for Unicode 5.0.0.
49429         * tests/unictype/test-categ_Cc.c: Likewise.
49430         * tests/unictype/test-categ_Cf.c: Likewise.
49431         * tests/unictype/test-categ_Cn.c: Likewise.
49432         * tests/unictype/test-categ_Co.c: Likewise.
49433         * tests/unictype/test-categ_Cs.c: Likewise.
49434         * tests/unictype/test-categ_L.c: Likewise.
49435         * tests/unictype/test-categ_Ll.c: Likewise.
49436         * tests/unictype/test-categ_Lm.c: Likewise.
49437         * tests/unictype/test-categ_Lo.c: Likewise.
49438         * tests/unictype/test-categ_Lt.c: Likewise.
49439         * tests/unictype/test-categ_Lu.c: Likewise.
49440         * tests/unictype/test-categ_M.c: Likewise.
49441         * tests/unictype/test-categ_Mc.c: Likewise.
49442         * tests/unictype/test-categ_Me.c: Likewise.
49443         * tests/unictype/test-categ_Mn.c: Likewise.
49444         * tests/unictype/test-categ_N.c: Likewise.
49445         * tests/unictype/test-categ_Nd.c: Likewise.
49446         * tests/unictype/test-categ_Nl.c: Likewise.
49447         * tests/unictype/test-categ_No.c: Likewise.
49448         * tests/unictype/test-categ_P.c: Likewise.
49449         * tests/unictype/test-categ_Pc.c: Likewise.
49450         * tests/unictype/test-categ_Pd.c: Likewise.
49451         * tests/unictype/test-categ_Pe.c: Likewise.
49452         * tests/unictype/test-categ_Pf.c: Likewise.
49453         * tests/unictype/test-categ_Pi.c: Likewise.
49454         * tests/unictype/test-categ_Po.c: Likewise.
49455         * tests/unictype/test-categ_Ps.c: Likewise.
49456         * tests/unictype/test-categ_S.c: Likewise.
49457         * tests/unictype/test-categ_Sc.c: Likewise.
49458         * tests/unictype/test-categ_Sk.c: Likewise.
49459         * tests/unictype/test-categ_Sm.c: Likewise.
49460         * tests/unictype/test-categ_So.c: Likewise.
49461         * tests/unictype/test-categ_Z.c: Likewise.
49462         * tests/unictype/test-categ_Zl.c: Likewise.
49463         * tests/unictype/test-categ_Zp.c: Likewise.
49464         * tests/unictype/test-categ_Zs.c: Likewise.
49465         * tests/unictype/test-ctype_alnum.c: Likewise.
49466         * tests/unictype/test-ctype_alpha.c: Likewise.
49467         * tests/unictype/test-ctype_blank.c: Likewise.
49468         * tests/unictype/test-ctype_cntrl.c: Likewise.
49469         * tests/unictype/test-ctype_digit.c: Likewise.
49470         * tests/unictype/test-ctype_graph.c: Likewise.
49471         * tests/unictype/test-ctype_lower.c: Likewise.
49472         * tests/unictype/test-ctype_print.c: Likewise.
49473         * tests/unictype/test-ctype_punct.c: Likewise.
49474         * tests/unictype/test-ctype_space.c: Likewise.
49475         * tests/unictype/test-ctype_upper.c: Likewise.
49476         * tests/unictype/test-ctype_xdigit.c: Likewise.
49477         * tests/unictype/test-decdigit.h: Likewise.
49478         * tests/unictype/test-digit.h: Likewise.
49479         * tests/unictype/test-numeric.h: Likewise.
49480         * tests/unictype/test-pr_alphabetic.c: Likewise.
49481         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
49482         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
49483         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
49484         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
49485         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
49486         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
49487         * tests/unictype/test-pr_bidi_control.c: Likewise.
49488         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
49489         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
49490         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
49491         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
49492         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
49493         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
49494         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
49495         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
49496         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
49497         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
49498         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
49499         * tests/unictype/test-pr_combining.c: Likewise.
49500         * tests/unictype/test-pr_composite.c: Likewise.
49501         * tests/unictype/test-pr_currency_symbol.c: Likewise.
49502         * tests/unictype/test-pr_dash.c: Likewise.
49503         * tests/unictype/test-pr_decimal_digit.c: Likewise.
49504         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
49505         * tests/unictype/test-pr_deprecated.c: Likewise.
49506         * tests/unictype/test-pr_diacritic.c: Likewise.
49507         * tests/unictype/test-pr_extender.c: Likewise.
49508         * tests/unictype/test-pr_format_control.c: Likewise.
49509         * tests/unictype/test-pr_grapheme_base.c: Likewise.
49510         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
49511         * tests/unictype/test-pr_grapheme_link.c: Likewise.
49512         * tests/unictype/test-pr_hex_digit.c: Likewise.
49513         * tests/unictype/test-pr_hyphen.c: Likewise.
49514         * tests/unictype/test-pr_id_continue.c: Likewise.
49515         * tests/unictype/test-pr_id_start.c: Likewise.
49516         * tests/unictype/test-pr_ideographic.c: Likewise.
49517         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
49518         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
49519         * tests/unictype/test-pr_ignorable_control.c: Likewise.
49520         * tests/unictype/test-pr_iso_control.c: Likewise.
49521         * tests/unictype/test-pr_join_control.c: Likewise.
49522         * tests/unictype/test-pr_left_of_pair.c: Likewise.
49523         * tests/unictype/test-pr_line_separator.c: Likewise.
49524         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
49525         * tests/unictype/test-pr_lowercase.c: Likewise.
49526         * tests/unictype/test-pr_math.c: Likewise.
49527         * tests/unictype/test-pr_non_break.c: Likewise.
49528         * tests/unictype/test-pr_not_a_character.c: Likewise.
49529         * tests/unictype/test-pr_numeric.c: Likewise.
49530         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
49531         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
49532         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
49533         * tests/unictype/test-pr_other_id_continue.c: Likewise.
49534         * tests/unictype/test-pr_other_id_start.c: Likewise.
49535         * tests/unictype/test-pr_other_lowercase.c: Likewise.
49536         * tests/unictype/test-pr_other_math.c: Likewise.
49537         * tests/unictype/test-pr_other_uppercase.c: Likewise.
49538         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
49539         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
49540         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
49541         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
49542         * tests/unictype/test-pr_private_use.c: Likewise.
49543         * tests/unictype/test-pr_punctuation.c: Likewise.
49544         * tests/unictype/test-pr_quotation_mark.c: Likewise.
49545         * tests/unictype/test-pr_radical.c: Likewise.
49546         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
49547         * tests/unictype/test-pr_soft_dotted.c: Likewise.
49548         * tests/unictype/test-pr_space.c: Likewise.
49549         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
49550         * tests/unictype/test-pr_titlecase.c: Likewise.
49551         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
49552         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
49553         * tests/unictype/test-pr_uppercase.c: Likewise.
49554         * tests/unictype/test-pr_variation_selector.c: Likewise.
49555         * tests/unictype/test-pr_white_space.c: Likewise.
49556         * tests/unictype/test-pr_xid_continue.c: Likewise.
49557         * tests/unictype/test-pr_xid_start.c: Likewise.
49558         * tests/unictype/test-pr_zero_width.c: Likewise.
49559         * tests/unictype/test-sy_c_whitespace.c: Likewise.
49560         * tests/unictype/test-sy_java_whitespace.c: Likewise.
49561
49562 2007-11-12  Bruno Haible  <bruno@clisp.org>
49563
49564         Unicode character classification functions.
49565         * lib/unictype.h: New file.
49566         * modules/unictype/base: New file.
49567         * modules/unictype/category-L: New file.
49568         * modules/unictype/category-Lu: New file.
49569         * modules/unictype/category-Ll: New file.
49570         * modules/unictype/category-Lt: New file.
49571         * modules/unictype/category-Lm: New file.
49572         * modules/unictype/category-Lo: New file.
49573         * modules/unictype/category-M: New file.
49574         * modules/unictype/category-Mn: New file.
49575         * modules/unictype/category-Mc: New file.
49576         * modules/unictype/category-Me: New file.
49577         * modules/unictype/category-N: New file.
49578         * modules/unictype/category-Nd: New file.
49579         * modules/unictype/category-Nl: New file.
49580         * modules/unictype/category-No: New file.
49581         * modules/unictype/category-P: New file.
49582         * modules/unictype/category-Pc: New file.
49583         * modules/unictype/category-Pd: New file.
49584         * modules/unictype/category-Ps: New file.
49585         * modules/unictype/category-Pe: New file.
49586         * modules/unictype/category-Pi: New file.
49587         * modules/unictype/category-Pf: New file.
49588         * modules/unictype/category-Po: New file.
49589         * modules/unictype/category-S: New file.
49590         * modules/unictype/category-Sm: New file.
49591         * modules/unictype/category-Sc: New file.
49592         * modules/unictype/category-Sk: New file.
49593         * modules/unictype/category-So: New file.
49594         * modules/unictype/category-Z: New file.
49595         * modules/unictype/category-Zs: New file.
49596         * modules/unictype/category-Zl: New file.
49597         * modules/unictype/category-Zp: New file.
49598         * modules/unictype/category-C: New file.
49599         * modules/unictype/category-Cc: New file.
49600         * modules/unictype/category-Cf: New file.
49601         * modules/unictype/category-Cs: New file.
49602         * modules/unictype/category-Co: New file.
49603         * modules/unictype/category-Cn: New file.
49604         * modules/unictype/category-or: New file.
49605         * modules/unictype/category-of: New file.
49606         * modules/unictype/category-test: New file.
49607         * modules/unictype/category-test-withtable: New file.
49608         * modules/unictype/category-byname: New file.
49609         * modules/unictype/category-none: New file.
49610         * modules/unictype/category-and: New file.
49611         * modules/unictype/category-and-not: New file.
49612         * modules/unictype/category-name: New file.
49613         * modules/unictype/combining-class: New file.
49614         * modules/unictype/category-all: New file.
49615         * modules/unictype/bidicategory-all: New file.
49616         * modules/unictype/bidicategory-byname: New file.
49617         * modules/unictype/bidicategory-name: New file.
49618         * modules/unictype/bidicategory-of: New file.
49619         * modules/unictype/bidicategory-test: New file.
49620         * modules/unictype/decimal-digit: New file.
49621         * modules/unictype/digit: New file.
49622         * modules/unictype/numeric: New file.
49623         * modules/unictype/mirror: New file.
49624         * modules/unictype/property-white-space: New file.
49625         * modules/unictype/property-alphabetic: New file.
49626         * modules/unictype/property-other-alphabetic: New file.
49627         * modules/unictype/property-not-a-character: New file.
49628         * modules/unictype/property-default-ignorable-code-point: New file.
49629         * modules/unictype/property-other-default-ignorable-code-point: New
49630         file.
49631         * modules/unictype/property-deprecated: New file.
49632         * modules/unictype/property-logical-order-exception: New file.
49633         * modules/unictype/property-variation-selector: New file.
49634         * modules/unictype/property-private-use: New file.
49635         * modules/unictype/property-unassigned-code-value: New file.
49636         * modules/unictype/property-uppercase: New file.
49637         * modules/unictype/property-other-uppercase: New file.
49638         * modules/unictype/property-lowercase: New file.
49639         * modules/unictype/property-other-lowercase: New file.
49640         * modules/unictype/property-titlecase: New file.
49641         * modules/unictype/property-soft-dotted: New file.
49642         * modules/unictype/property-id-start: New file.
49643         * modules/unictype/property-other-id-start: New file.
49644         * modules/unictype/property-id-continue: New file.
49645         * modules/unictype/property-other-id-continue: New file.
49646         * modules/unictype/property-xid-start: New file.
49647         * modules/unictype/property-xid-continue: New file.
49648         * modules/unictype/property-pattern-white-space: New file.
49649         * modules/unictype/property-pattern-syntax: New file.
49650         * modules/unictype/property-join-control: New file.
49651         * modules/unictype/property-grapheme-base: New file.
49652         * modules/unictype/property-grapheme-extend: New file.
49653         * modules/unictype/property-other-grapheme-extend: New file.
49654         * modules/unictype/property-grapheme-link: New file.
49655         * modules/unictype/property-bidi-control: New file.
49656         * modules/unictype/property-bidi-left-to-right: New file.
49657         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
49658         * modules/unictype/property-bidi-arabic-right-to-left: New file.
49659         * modules/unictype/property-bidi-european-digit: New file.
49660         * modules/unictype/property-bidi-eur-num-separator: New file.
49661         * modules/unictype/property-bidi-eur-num-terminator: New file.
49662         * modules/unictype/property-bidi-arabic-digit: New file.
49663         * modules/unictype/property-bidi-common-separator: New file.
49664         * modules/unictype/property-bidi-block-separator: New file.
49665         * modules/unictype/property-bidi-segment-separator: New file.
49666         * modules/unictype/property-bidi-whitespace: New file.
49667         * modules/unictype/property-bidi-non-spacing-mark: New file.
49668         * modules/unictype/property-bidi-boundary-neutral: New file.
49669         * modules/unictype/property-bidi-pdf: New file.
49670         * modules/unictype/property-bidi-embedding-or-override: New file.
49671         * modules/unictype/property-bidi-other-neutral: New file.
49672         * modules/unictype/property-hex-digit: New file.
49673         * modules/unictype/property-ascii-hex-digit: New file.
49674         * modules/unictype/property-ideographic: New file.
49675         * modules/unictype/property-unified-ideograph: New file.
49676         * modules/unictype/property-radical: New file.
49677         * modules/unictype/property-ids-binary-operator: New file.
49678         * modules/unictype/property-ids-trinary-operator: New file.
49679         * modules/unictype/property-zero-width: New file.
49680         * modules/unictype/property-space: New file.
49681         * modules/unictype/property-non-break: New file.
49682         * modules/unictype/property-iso-control: New file.
49683         * modules/unictype/property-format-control: New file.
49684         * modules/unictype/property-dash: New file.
49685         * modules/unictype/property-hyphen: New file.
49686         * modules/unictype/property-punctuation: New file.
49687         * modules/unictype/property-line-separator: New file.
49688         * modules/unictype/property-paragraph-separator: New file.
49689         * modules/unictype/property-quotation-mark: New file.
49690         * modules/unictype/property-sentence-terminal: New file.
49691         * modules/unictype/property-terminal-punctuation: New file.
49692         * modules/unictype/property-currency-symbol: New file.
49693         * modules/unictype/property-math: New file.
49694         * modules/unictype/property-other-math: New file.
49695         * modules/unictype/property-paired-punctuation: New file.
49696         * modules/unictype/property-left-of-pair: New file.
49697         * modules/unictype/property-combining: New file.
49698         * modules/unictype/property-composite: New file.
49699         * modules/unictype/property-decimal-digit: New file.
49700         * modules/unictype/property-numeric: New file.
49701         * modules/unictype/property-diacritic: New file.
49702         * modules/unictype/property-extender: New file.
49703         * modules/unictype/property-ignorable-control: New file.
49704         * modules/unictype/property-test: New file.
49705         * modules/unictype/property-byname: New file.
49706         * modules/unictype/property-all: New file.
49707         * modules/unictype/scripts: New file.
49708         * modules/unictype/scripts-all: New file.
49709         * modules/unictype/block-of: New file.
49710         * modules/unictype/block-test: New file.
49711         * modules/unictype/block-list: New file.
49712         * modules/unictype/block-all: New file.
49713         * modules/unictype/syntax-c-whitespace: New file.
49714         * modules/unictype/syntax-java-whitespace: New file.
49715         * modules/unictype/syntax-c-ident: New file.
49716         * modules/unictype/syntax-java-ident: New file.
49717         * modules/unictype/ctype-alnum: New file.
49718         * modules/unictype/ctype-alpha: New file.
49719         * modules/unictype/ctype-cntrl: New file.
49720         * modules/unictype/ctype-digit: New file.
49721         * modules/unictype/ctype-graph: New file.
49722         * modules/unictype/ctype-lower: New file.
49723         * modules/unictype/ctype-print: New file.
49724         * modules/unictype/ctype-punct: New file.
49725         * modules/unictype/ctype-space: New file.
49726         * modules/unictype/ctype-upper: New file.
49727         * modules/unictype/ctype-xdigit: New file.
49728         * modules/unictype/ctype-blank: New file.
49729         * lib/unictype/bidi_byname.c: New file.
49730         * lib/unictype/bidi_name.c: New file.
49731         * lib/unictype/bidi_of.c: New file.
49732         * lib/unictype/bidi_test.c: New file.
49733         * lib/unictype/bitmap.h: New file.
49734         * lib/unictype/block_test.c: New file.
49735         * lib/unictype/blocks.c: New file.
49736         * lib/unictype/categ_C.c: New file.
49737         * lib/unictype/categ_Cc.c: New file.
49738         * lib/unictype/categ_Cf.c: New file.
49739         * lib/unictype/categ_Cn.c: New file.
49740         * lib/unictype/categ_Co.c: New file.
49741         * lib/unictype/categ_Cs.c: New file.
49742         * lib/unictype/categ_L.c: New file.
49743         * lib/unictype/categ_Ll.c: New file.
49744         * lib/unictype/categ_Lm.c: New file.
49745         * lib/unictype/categ_Lo.c: New file.
49746         * lib/unictype/categ_Lt.c: New file.
49747         * lib/unictype/categ_Lu.c: New file.
49748         * lib/unictype/categ_M.c: New file.
49749         * lib/unictype/categ_Mc.c: New file.
49750         * lib/unictype/categ_Me.c: New file.
49751         * lib/unictype/categ_Mn.c: New file.
49752         * lib/unictype/categ_N.c: New file.
49753         * lib/unictype/categ_Nd.c: New file.
49754         * lib/unictype/categ_Nl.c: New file.
49755         * lib/unictype/categ_No.c: New file.
49756         * lib/unictype/categ_P.c: New file.
49757         * lib/unictype/categ_Pc.c: New file.
49758         * lib/unictype/categ_Pd.c: New file.
49759         * lib/unictype/categ_Pe.c: New file.
49760         * lib/unictype/categ_Pf.c: New file.
49761         * lib/unictype/categ_Pi.c: New file.
49762         * lib/unictype/categ_Po.c: New file.
49763         * lib/unictype/categ_Ps.c: New file.
49764         * lib/unictype/categ_S.c: New file.
49765         * lib/unictype/categ_Sc.c: New file.
49766         * lib/unictype/categ_Sk.c: New file.
49767         * lib/unictype/categ_Sm.c: New file.
49768         * lib/unictype/categ_So.c: New file.
49769         * lib/unictype/categ_Z.c: New file.
49770         * lib/unictype/categ_Zl.c: New file.
49771         * lib/unictype/categ_Zp.c: New file.
49772         * lib/unictype/categ_Zs.c: New file.
49773         * lib/unictype/categ_and.c: New file.
49774         * lib/unictype/categ_and_not.c: New file.
49775         * lib/unictype/categ_byname.c: New file.
49776         * lib/unictype/categ_name.c: New file.
49777         * lib/unictype/categ_none.c: New file.
49778         * lib/unictype/categ_of.c: New file.
49779         * lib/unictype/categ_or.c: New file.
49780         * lib/unictype/categ_test.c: New file.
49781         * lib/unictype/combining.c: New file.
49782         * lib/unictype/ctype_alnum.c: New file.
49783         * lib/unictype/ctype_alpha.c: New file.
49784         * lib/unictype/ctype_blank.c: New file.
49785         * lib/unictype/ctype_cntrl.c: New file.
49786         * lib/unictype/ctype_digit.c: New file.
49787         * lib/unictype/ctype_graph.c: New file.
49788         * lib/unictype/ctype_lower.c: New file.
49789         * lib/unictype/ctype_print.c: New file.
49790         * lib/unictype/ctype_punct.c: New file.
49791         * lib/unictype/ctype_space.c: New file.
49792         * lib/unictype/ctype_upper.c: New file.
49793         * lib/unictype/ctype_xdigit.c: New file.
49794         * lib/unictype/decdigit.c: New file.
49795         * lib/unictype/digit.c: New file.
49796         * lib/unictype/identsyntaxmap.h: New file.
49797         * lib/unictype/mirror.c: New file.
49798         * lib/unictype/numeric.c: New file.
49799         * lib/unictype/pr_alphabetic.c: New file.
49800         * lib/unictype/pr_ascii_hex_digit.c: New file.
49801         * lib/unictype/pr_bidi_arabic_digit.c: New file.
49802         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
49803         * lib/unictype/pr_bidi_block_separator.c: New file.
49804         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
49805         * lib/unictype/pr_bidi_common_separator.c: New file.
49806         * lib/unictype/pr_bidi_control.c: New file.
49807         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
49808         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
49809         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
49810         * lib/unictype/pr_bidi_european_digit.c: New file.
49811         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
49812         * lib/unictype/pr_bidi_left_to_right.c: New file.
49813         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
49814         * lib/unictype/pr_bidi_other_neutral.c: New file.
49815         * lib/unictype/pr_bidi_pdf.c: New file.
49816         * lib/unictype/pr_bidi_segment_separator.c: New file.
49817         * lib/unictype/pr_bidi_whitespace.c: New file.
49818         * lib/unictype/pr_byname.c: New file.
49819         * lib/unictype/pr_byname.gperf: New file.
49820         * lib/unictype/pr_combining.c: New file.
49821         * lib/unictype/pr_composite.c: New file.
49822         * lib/unictype/pr_currency_symbol.c: New file.
49823         * lib/unictype/pr_dash.c: New file.
49824         * lib/unictype/pr_decimal_digit.c: New file.
49825         * lib/unictype/pr_default_ignorable_code_point.c: New file.
49826         * lib/unictype/pr_deprecated.c: New file.
49827         * lib/unictype/pr_diacritic.c: New file.
49828         * lib/unictype/pr_extender.c: New file.
49829         * lib/unictype/pr_format_control.c: New file.
49830         * lib/unictype/pr_grapheme_base.c: New file.
49831         * lib/unictype/pr_grapheme_extend.c: New file.
49832         * lib/unictype/pr_grapheme_link.c: New file.
49833         * lib/unictype/pr_hex_digit.c: New file.
49834         * lib/unictype/pr_hyphen.c: New file.
49835         * lib/unictype/pr_id_continue.c: New file.
49836         * lib/unictype/pr_id_start.c: New file.
49837         * lib/unictype/pr_ideographic.c: New file.
49838         * lib/unictype/pr_ids_binary_operator.c: New file.
49839         * lib/unictype/pr_ids_trinary_operator.c: New file.
49840         * lib/unictype/pr_ignorable_control.c: New file.
49841         * lib/unictype/pr_iso_control.c: New file.
49842         * lib/unictype/pr_join_control.c: New file.
49843         * lib/unictype/pr_left_of_pair.c: New file.
49844         * lib/unictype/pr_line_separator.c: New file.
49845         * lib/unictype/pr_logical_order_exception.c: New file.
49846         * lib/unictype/pr_lowercase.c: New file.
49847         * lib/unictype/pr_math.c: New file.
49848         * lib/unictype/pr_non_break.c: New file.
49849         * lib/unictype/pr_not_a_character.c: New file.
49850         * lib/unictype/pr_numeric.c: New file.
49851         * lib/unictype/pr_other_alphabetic.c: New file.
49852         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
49853         * lib/unictype/pr_other_grapheme_extend.c: New file.
49854         * lib/unictype/pr_other_id_continue.c: New file.
49855         * lib/unictype/pr_other_id_start.c: New file.
49856         * lib/unictype/pr_other_lowercase.c: New file.
49857         * lib/unictype/pr_other_math.c: New file.
49858         * lib/unictype/pr_other_uppercase.c: New file.
49859         * lib/unictype/pr_paired_punctuation.c: New file.
49860         * lib/unictype/pr_paragraph_separator.c: New file.
49861         * lib/unictype/pr_pattern_syntax.c: New file.
49862         * lib/unictype/pr_pattern_white_space.c: New file.
49863         * lib/unictype/pr_private_use.c: New file.
49864         * lib/unictype/pr_punctuation.c: New file.
49865         * lib/unictype/pr_quotation_mark.c: New file.
49866         * lib/unictype/pr_radical.c: New file.
49867         * lib/unictype/pr_sentence_terminal.c: New file.
49868         * lib/unictype/pr_soft_dotted.c: New file.
49869         * lib/unictype/pr_space.c: New file.
49870         * lib/unictype/pr_terminal_punctuation.c: New file.
49871         * lib/unictype/pr_test.c: New file.
49872         * lib/unictype/pr_titlecase.c: New file.
49873         * lib/unictype/pr_unassigned_code_value.c: New file.
49874         * lib/unictype/pr_unified_ideograph.c: New file.
49875         * lib/unictype/pr_uppercase.c: New file.
49876         * lib/unictype/pr_variation_selector.c: New file.
49877         * lib/unictype/pr_white_space.c: New file.
49878         * lib/unictype/pr_xid_continue.c: New file.
49879         * lib/unictype/pr_xid_start.c: New file.
49880         * lib/unictype/pr_zero_width.c: New file.
49881         * lib/unictype/scripts.c: New file.
49882         * lib/unictype/sy_c_ident.c: New file.
49883         * lib/unictype/sy_c_whitespace.c: New file.
49884         * lib/unictype/sy_java_ident.c: New file.
49885         * lib/unictype/sy_java_whitespace.c: New file.
49886
49887         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
49888         Unicode 5.0.0.
49889         * lib/unictype/blocks.h: Likewise.
49890         * lib/unictype/categ_C.h: Likewise.
49891         * lib/unictype/categ_Cc.h: Likewise.
49892         * lib/unictype/categ_Cf.h: Likewise.
49893         * lib/unictype/categ_Cn.h: Likewise.
49894         * lib/unictype/categ_Co.h: Likewise.
49895         * lib/unictype/categ_Cs.h: Likewise.
49896         * lib/unictype/categ_L.h: Likewise.
49897         * lib/unictype/categ_Ll.h: Likewise.
49898         * lib/unictype/categ_Lm.h: Likewise.
49899         * lib/unictype/categ_Lo.h: Likewise.
49900         * lib/unictype/categ_Lt.h: Likewise.
49901         * lib/unictype/categ_Lu.h: Likewise.
49902         * lib/unictype/categ_M.h: Likewise.
49903         * lib/unictype/categ_Mc.h: Likewise.
49904         * lib/unictype/categ_Me.h: Likewise.
49905         * lib/unictype/categ_Mn.h: Likewise.
49906         * lib/unictype/categ_N.h: Likewise.
49907         * lib/unictype/categ_Nd.h: Likewise.
49908         * lib/unictype/categ_Nl.h: Likewise.
49909         * lib/unictype/categ_No.h: Likewise.
49910         * lib/unictype/categ_P.h: Likewise.
49911         * lib/unictype/categ_Pc.h: Likewise.
49912         * lib/unictype/categ_Pd.h: Likewise.
49913         * lib/unictype/categ_Pe.h: Likewise.
49914         * lib/unictype/categ_Pf.h: Likewise.
49915         * lib/unictype/categ_Pi.h: Likewise.
49916         * lib/unictype/categ_Po.h: Likewise.
49917         * lib/unictype/categ_Ps.h: Likewise.
49918         * lib/unictype/categ_S.h: Likewise.
49919         * lib/unictype/categ_Sc.h: Likewise.
49920         * lib/unictype/categ_Sk.h: Likewise.
49921         * lib/unictype/categ_Sm.h: Likewise.
49922         * lib/unictype/categ_So.h: Likewise.
49923         * lib/unictype/categ_Z.h: Likewise.
49924         * lib/unictype/categ_Zl.h: Likewise.
49925         * lib/unictype/categ_Zp.h: Likewise.
49926         * lib/unictype/categ_Zs.h: Likewise.
49927         * lib/unictype/categ_of.h: Likewise.
49928         * lib/unictype/combining.h: Likewise.
49929         * lib/unictype/ctype_alnum.h: Likewise.
49930         * lib/unictype/ctype_alpha.h: Likewise.
49931         * lib/unictype/ctype_blank.h: Likewise.
49932         * lib/unictype/ctype_cntrl.h: Likewise.
49933         * lib/unictype/ctype_digit.h: Likewise.
49934         * lib/unictype/ctype_graph.h: Likewise.
49935         * lib/unictype/ctype_lower.h: Likewise.
49936         * lib/unictype/ctype_print.h: Likewise.
49937         * lib/unictype/ctype_punct.h: Likewise.
49938         * lib/unictype/ctype_space.h: Likewise.
49939         * lib/unictype/ctype_upper.h: Likewise.
49940         * lib/unictype/ctype_xdigit.h: Likewise.
49941         * lib/unictype/decdigit.h: Likewise.
49942         * lib/unictype/digit.h: Likewise.
49943         * lib/unictype/mirror.h: Likewise.
49944         * lib/unictype/numeric.h: Likewise.
49945         * lib/unictype/pr_alphabetic.h: Likewise.
49946         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
49947         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
49948         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
49949         * lib/unictype/pr_bidi_block_separator.h: Likewise.
49950         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
49951         * lib/unictype/pr_bidi_common_separator.h: Likewise.
49952         * lib/unictype/pr_bidi_control.h: Likewise.
49953         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
49954         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
49955         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
49956         * lib/unictype/pr_bidi_european_digit.h: Likewise.
49957         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
49958         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
49959         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
49960         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
49961         * lib/unictype/pr_bidi_pdf.h: Likewise.
49962         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
49963         * lib/unictype/pr_bidi_whitespace.h: Likewise.
49964         * lib/unictype/pr_combining.h: Likewise.
49965         * lib/unictype/pr_composite.h: Likewise.
49966         * lib/unictype/pr_currency_symbol.h: Likewise.
49967         * lib/unictype/pr_dash.h: Likewise.
49968         * lib/unictype/pr_decimal_digit.h: Likewise.
49969         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
49970         * lib/unictype/pr_deprecated.h: Likewise.
49971         * lib/unictype/pr_diacritic.h: Likewise.
49972         * lib/unictype/pr_extender.h: Likewise.
49973         * lib/unictype/pr_format_control.h: Likewise.
49974         * lib/unictype/pr_grapheme_base.h: Likewise.
49975         * lib/unictype/pr_grapheme_extend.h: Likewise.
49976         * lib/unictype/pr_grapheme_link.h: Likewise.
49977         * lib/unictype/pr_hex_digit.h: Likewise.
49978         * lib/unictype/pr_hyphen.h: Likewise.
49979         * lib/unictype/pr_id_continue.h: Likewise.
49980         * lib/unictype/pr_id_start.h: Likewise.
49981         * lib/unictype/pr_ideographic.h: Likewise.
49982         * lib/unictype/pr_ids_binary_operator.h: Likewise.
49983         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
49984         * lib/unictype/pr_ignorable_control.h: Likewise.
49985         * lib/unictype/pr_iso_control.h: Likewise.
49986         * lib/unictype/pr_join_control.h: Likewise.
49987         * lib/unictype/pr_left_of_pair.h: Likewise.
49988         * lib/unictype/pr_line_separator.h: Likewise.
49989         * lib/unictype/pr_logical_order_exception.h: Likewise.
49990         * lib/unictype/pr_lowercase.h: Likewise.
49991         * lib/unictype/pr_math.h: Likewise.
49992         * lib/unictype/pr_non_break.h: Likewise.
49993         * lib/unictype/pr_not_a_character.h: Likewise.
49994         * lib/unictype/pr_numeric.h: Likewise.
49995         * lib/unictype/pr_other_alphabetic.h: Likewise.
49996         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
49997         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
49998         * lib/unictype/pr_other_id_continue.h: Likewise.
49999         * lib/unictype/pr_other_id_start.h: Likewise.
50000         * lib/unictype/pr_other_lowercase.h: Likewise.
50001         * lib/unictype/pr_other_math.h: Likewise.
50002         * lib/unictype/pr_other_uppercase.h: Likewise.
50003         * lib/unictype/pr_paired_punctuation.h: Likewise.
50004         * lib/unictype/pr_paragraph_separator.h: Likewise.
50005         * lib/unictype/pr_pattern_syntax.h: Likewise.
50006         * lib/unictype/pr_pattern_white_space.h: Likewise.
50007         * lib/unictype/pr_private_use.h: Likewise.
50008         * lib/unictype/pr_punctuation.h: Likewise.
50009         * lib/unictype/pr_quotation_mark.h: Likewise.
50010         * lib/unictype/pr_radical.h: Likewise.
50011         * lib/unictype/pr_sentence_terminal.h: Likewise.
50012         * lib/unictype/pr_soft_dotted.h: Likewise.
50013         * lib/unictype/pr_space.h: Likewise.
50014         * lib/unictype/pr_terminal_punctuation.h: Likewise.
50015         * lib/unictype/pr_titlecase.h: Likewise.
50016         * lib/unictype/pr_unassigned_code_value.h: Likewise.
50017         * lib/unictype/pr_unified_ideograph.h: Likewise.
50018         * lib/unictype/pr_uppercase.h: Likewise.
50019         * lib/unictype/pr_variation_selector.h: Likewise.
50020         * lib/unictype/pr_white_space.h: Likewise.
50021         * lib/unictype/pr_xid_continue.h: Likewise.
50022         * lib/unictype/pr_xid_start.h: Likewise.
50023         * lib/unictype/pr_zero_width.h: Likewise.
50024         * lib/unictype/scripts.h: Likewise.
50025         * lib/unictype/scripts_byname.gperf: Likewise.
50026         * lib/unictype/sy_c_ident.h: Likewise.
50027         * lib/unictype/sy_c_whitespace.h: Likewise.
50028         * lib/unictype/sy_java_ident.h: Likewise.
50029         * lib/unictype/sy_java_whitespace.h: Likewise.
50030
50031         * lib/unictype/Makefile: New file.
50032         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
50033         glibc.
50034         * lib/unictype/3level.h: New file, copied from glibc.
50035         * lib/unictype/3levelbit.h: New file.
50036
50037 2007-11-11  Bruno Haible  <bruno@clisp.org>
50038
50039         * modules/gperf: New file.
50040         * modules/iconv_open (Depends-on): Add it.
50041         (Makefile.am): Remove the GPERF definition.
50042
50043 2007-11-11  Bruno Haible  <bruno@clisp.org>
50044
50045         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
50046         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
50047
50048 2007-11-11  Bruno Haible  <bruno@clisp.org>
50049
50050         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
50051         (usage): Remove function.
50052
50053 2007-11-11  Bruno Haible  <bruno@clisp.org>
50054
50055         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
50056         gl_FUNC_CEILF_LIBS.
50057         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
50058         gl_FUNC_CEIL_LIBS.
50059         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
50060         gl_FUNC_CEILL_LIBS.
50061         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
50062         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
50063         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
50064
50065 2007-11-11  Bruno Haible  <bruno@clisp.org>
50066
50067         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
50068         roundf were declared but do not exist on functions.
50069         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
50070         roundl were declared but do not exist on functions.
50071         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
50072         HAVE_FLOORL_AND_CEILL, respectively.
50073         Needed for Sun C on Solaris 10.
50074
50075 2007-11-11  Bruno Haible  <bruno@clisp.org>
50076
50077         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
50078         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
50079         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
50080         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
50081         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
50082         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
50083         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
50084         HAVE_DECL_ROUNDF.
50085         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
50086         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
50087         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
50088         of HAVE_DECL_ROUND*.
50089         * modules/math (Makefile.am): Update.
50090
50091 2007-11-10  Bruno Haible  <bruno@clisp.org>
50092
50093         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
50094         ptrdiff_t as m4/intl.m4.
50095
50096 2007-11-10  Jim Meyering  <meyering@redhat.com>
50097
50098         Avoid link failure for the argmatch test.
50099         * tests/test-argmatch.c (usage): Define function to avoid a link
50100         failure: argmatch_die requires a usage function.
50101
50102 2007-11-09  Bruno Haible  <bruno@clisp.org>
50103
50104         * doc/functions/snprintf.texi: Mention BeOS deficiency.
50105         * doc/functions/vsnprintf.texi: Likewise.
50106         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
50107         with a size argument < 2.
50108
50109 2007-11-09  Bruno Haible  <bruno@clisp.org>
50110
50111         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
50112         buffer. Fixes an inefficiency introduced on 2007-11-03.
50113
50114 2007-11-09  Bruno Haible  <bruno@clisp.org>
50115
50116         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
50117         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
50118
50119 2007-11-08  Jim Meyering  <meyering@redhat.com>
50120
50121         Change cache variable name prefix "jm_" to "gl_" everywhere.
50122         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
50123         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
50124         * m4/uptime.m4: s/gl_/jm_/
50125
50126 2007-11-07  Bruno Haible  <bruno@clisp.org>
50127
50128         Update to GNU gettext 0.17.
50129         * m4/intl.m4: Update to GNU gettext 0.17.
50130         * m4/po.m4: Likewise.
50131         * modules/gettext (Files): Remove m4/ulonglong.m4.
50132         (configure.ac): Require gettext infrastructure from version 0.17.
50133
50134 2007-11-06  Bruno Haible  <bruno@clisp.org>
50135
50136         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
50137         symbolic values are not defined in a public header.
50138         * lib/freadable.c (freadable) [QNX]: Likewise.
50139         * lib/freadahead.c (freadahead) [QNX]: Likewise.
50140         * lib/freading.c (freading) [QNX]: Likewise.
50141         * lib/fseterr.c (fseterr) [QNX]: Likewise.
50142         * lib/fwritable.c (fwritable) [QNX]: Likewise.
50143         * lib/fwriting.c (fwriting) [QNX]: Likewise.
50144         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
50145         Reported by Alain Magloire.
50146
50147         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
50148
50149 2007-11-05  Bruno Haible  <bruno@clisp.org>
50150
50151         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
50152         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
50153         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
50154         Reported by Eric Blake.
50155
50156 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50157             Bruno Haible  <bruno@clisp.org>
50158
50159         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
50160         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
50161         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
50162         (malloc): Undefine also before including <stdlib.h>.
50163         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
50164         Needed on OSF/1 4.0.
50165
50166 2007-11-05  Jim Meyering  <meyering@redhat.com>
50167
50168         git-version-gen: sync from coreutils.
50169         * build-aux/git-version-gen: Add comments.
50170         Change the first '-' to '.' in the snapshot version string,
50171         e.g., 6.9-377-08144 -> 6.9.377-08144
50172         Remove first parameter.
50173         Don't declare a version "-dirty" merely because a time
50174         stamp has changed.
50175
50176 2007-11-04  Bruno Haible  <bruno@clisp.org>
50177
50178         * lib/lock.h: Protect all macro definitions containing an 'if'
50179         statement through a "do { ... } while (0)".
50180         * lib/tls.h: Likewise.
50181
50182 2007-11-04  Bruno Haible  <bruno@clisp.org>
50183
50184         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
50185
50186 2007-11-04  Bruno Haible  <bruno@clisp.org>
50187
50188         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
50189         * modules/fprintf-posix (Depends-on): Add nocrash.
50190         * modules/snprintf-posix (Depends-on): Likewise.
50191         * modules/sprintf-posix (Depends-on): Likewise.
50192         * modules/vasnprintf-posix (Depends-on): Likewise.
50193         * modules/vasprintf-posix (Depends-on): Likewise.
50194         * modules/vfprintf-posix (Depends-on): Likewise.
50195         * modules/vsnprintf-posix (Depends-on): Likewise.
50196         * modules/vsprintf-posix (Depends-on): Likewise.
50197         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
50198         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
50199         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
50200         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
50201         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
50202         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
50203         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
50204
50205 2007-11-04  Bruno Haible  <bruno@clisp.org>
50206
50207         * modules/nocrash: New file.
50208         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
50209         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
50210
50211 2007-11-04  Bruno Haible  <bruno@clisp.org>
50212
50213         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
50214         precision handling.
50215         * tests/test-vasprintf-posix.c (test_function): Likewise.
50216         * tests/test-snprintf-posix.h (test_function): Likewise.
50217         * tests/test-sprintf-posix.h (test_function): Likewise.
50218
50219         Fix *printf behaviour for large precisions on mingw and BeOS.
50220         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
50221         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
50222         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
50223         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
50224         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
50225         gl_PRINTF_PRECISION and test its result. Invoke
50226         gl_PREREQ_VASNPRINTF_PRECISION.
50227         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
50228         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50229         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50230         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50231         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
50232         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50233         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50234         * doc/functions/fprintf.texi: Update.
50235         * doc/functions/printf.texi: Update.
50236         * doc/functions/snprintf.texi: Update.
50237         * doc/functions/sprintf.texi: Update.
50238         * doc/functions/vfprintf.texi: Update.
50239         * doc/functions/vprintf.texi: Update.
50240         * doc/functions/vsnprintf.texi: Update.
50241         * doc/functions/vsprintf.texi: Update.
50242
50243 2007-11-04  Bruno Haible  <bruno@clisp.org>
50244
50245         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
50246
50247 2007-11-04  Bruno Haible  <bruno@clisp.org>
50248
50249         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
50250         Reported by Sylvain Beucler <beuc@gnu.org>.
50251
50252 2007-11-03  Bruno Haible  <bruno@clisp.org>
50253
50254         * tests/test-fprintf-posix2.sh: New file.
50255         * tests/test-fprintf-posix2.c: New file.
50256         * modules/fprintf-posix-tests (Files): Add them.
50257         (TESTS): Add test-fprintf-posix2.sh.
50258         (configure.ac): Check for getrlimit and setrlimit.
50259         (check_PROGRAMS): Add test-fprintf-posix2.
50260
50261         * tests/test-printf-posix2.sh: New file.
50262         * tests/test-printf-posix2.c: New file.
50263         * modules/printf-posix-tests (Files): Add them.
50264         (TESTS): Add test-printf-posix2.sh.
50265         (configure.ac): Check for getrlimit and setrlimit.
50266         (check_PROGRAMS): Add test-printf-posix2.
50267
50268         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
50269         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
50270         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
50271         (decode_double): New function, copied from decode_long_double.
50272         (scale10_round_decimal_decoded): New function, extracted from
50273         scale10_round_decimal_long_double.
50274         (scale10_round_decimal_long_double): Use it.
50275         (scale10_round_decimal_double): New function.
50276         (floorlog10): New function.
50277         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
50278         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
50279         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
50280         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
50281         gl_PRINTF_ENOMEM and test its result. Invoke
50282         gl_PREREQ_VASNPRINTF_ENOMEM.
50283         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
50284         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50285         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50286         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50287         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
50288         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50289         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50290         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
50291         * modules/snprintf-posix (Depends-on): Likewise.
50292         * modules/sprintf-posix (Depends-on): Likewise.
50293         * modules/vasnprintf-posix (Depends-on): Likewise.
50294         * modules/vasprintf-posix (Depends-on): Likewise.
50295         * modules/vfprintf-posix (Depends-on): Likewise.
50296         * modules/vsnprintf-posix (Depends-on): Likewise.
50297         * modules/vsprintf-posix (Depends-on): Likewise.
50298         * doc/functions/fprintf.texi: Update.
50299         * doc/functions/printf.texi: Update.
50300         * doc/functions/snprintf.texi: Update.
50301         * doc/functions/sprintf.texi: Update.
50302         * doc/functions/vfprintf.texi: Update.
50303         * doc/functions/vprintf.texi: Update.
50304         * doc/functions/vsnprintf.texi: Update.
50305         * doc/functions/vsprintf.texi: Update.
50306
50307 2007-11-03  Bruno Haible  <bruno@clisp.org>
50308
50309         * modules/frexp-nolibm-tests: New file.
50310
50311         * modules/frexp-nolibm: New file.
50312         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
50313
50314 2007-11-03  Bruno Haible  <bruno@clisp.org>
50315
50316         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
50317         value is C99 compliant.
50318         Needed for OSF/1 5.1.
50319
50320 2007-11-03  Bruno Haible  <bruno@clisp.org>
50321
50322         Fix out-of-memory handling of vasnprintf.
50323         * lib/printf-parse.c: Include <errno.h>.
50324         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
50325         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
50326         is already set.
50327
50328 2007-11-02  Eric Blake  <ebb9@byu.net>
50329
50330         Fix tests on cygwin.
50331         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
50332
50333 2007-11-01  Bruno Haible  <bruno@clisp.org>
50334
50335         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
50336         warning.
50337         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
50338         needed for POSIX compatibility.
50339
50340 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
50341
50342         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
50343         for compatibility with GNU.
50344
50345 2007-11-01  Bruno Haible  <bruno@clisp.org>
50346
50347         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
50348         (putenv): Renamed from rpl_putenv. Change argument type from
50349         'const char *' to 'char *'.
50350         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
50351         of defining putenv in config.h, just set REPLACE_PUTENV.
50352         * modules/putenv (Depends-on): Add stdlib.
50353         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
50354         (Include): Use <stdlib.h>.
50355         * lib/stdlib.in.h (putenv): New declaration.
50356         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
50357         REPLACE_PUTENV.
50358         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
50359         REPLACE_PUTENV.
50360         Needed for MacOS X 10.5.0.
50361         Reported by Peter O'Gorman <peter@pogma.com>.
50362
50363 2007-11-01  Jim Meyering  <meyering@redhat.com>
50364
50365         Treat an empty date string exactly like "0".
50366         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
50367         if the remaining date string (to be parsed) is empty, use "0".
50368         Reported by Mischa Molhoek and discussed in this thread:
50369         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
50370
50371 2007-10-31  Bruno Haible  <bruno@clisp.org>
50372
50373         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
50374         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
50375         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
50376         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
50377         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
50378         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
50379
50380 2007-10-31  Bruno Haible  <bruno@clisp.org>
50381
50382         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
50383         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
50384         (AC_TYPE_LONG_LONG_INT): Use it.
50385         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
50386         it as well.
50387         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
50388         to m4/longlong.m4.
50389         * modules/stdint (Files): Remove m4/ulonglong.m4.
50390         * modules/strtoull (Files): Use m4/longlong.m4 instead of
50391         m4/ulonglong.m4.
50392         * modules/strtoumax (Files): Likewise.
50393
50394 2007-10-30  Bruno Haible  <bruno@clisp.org>
50395
50396         * modules/xvasprintf-posix: New file.
50397         Suggested by Eric Blake.
50398
50399 2007-10-30  Bruno Haible  <bruno@clisp.org>
50400
50401         * modules/xprintf-posix-tests: New file.
50402         * tests/test-xprintf-posix.sh: New file.
50403         * tests/test-xprintf-posix.c: New file.
50404         * tests/test-xfprintf-posix.c: New file.
50405
50406         * modules/xprintf-posix: New file.
50407
50408 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50409
50410         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
50411         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
50412         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
50413
50414 2007-10-29  Bruno Haible  <bruno@clisp.org>
50415
50416         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
50417         contain the special marker '_cv_'.
50418         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
50419         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
50420         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
50421         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
50422         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
50423         Reported by Ralf Wildenhues.
50424
50425 2007-10-29  Bruno Haible  <bruno@clisp.org>
50426
50427         * gnulib-tool (func_import): When --lgpl is not specified, set
50428         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
50429         GPLv3.
50430         Reported by Simon Josefsson.
50431
50432 2007-10-28  Bruno Haible  <bruno@clisp.org>
50433
50434         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
50435         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
50436         HAVE_DECL_ISFINITE.
50437         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
50438         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
50439         HAVE_DECL_ISFINITE.
50440
50441 2007-10-28  Bruno Haible  <bruno@clisp.org>
50442
50443         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
50444         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
50445
50446 2007-10-28  Bruno Haible  <bruno@clisp.org>
50447
50448         Fix link errors with Sun C 5.0 on Solaris 10.
50449         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
50450         function is declared but not present in the compiler's libm.
50451         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
50452         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
50453         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
50454         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
50455         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
50456         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
50457         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
50458         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
50459         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
50460         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
50461         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
50462         HAVE_DECL_FLOORL.
50463
50464 2007-10-28  Bruno Haible  <bruno@clisp.org>
50465
50466         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
50467         gl_FUNC_FLOORL. Cache the result.
50468         (gl_FUNC_FLOORL): Use it.
50469         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
50470         gl_FUNC_CEILL. Cache the result.
50471         (gl_FUNC_CEILL): Use it.
50472
50473         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
50474         gl_FUNC_FLOOR. Cache the result.
50475         (gl_FUNC_FLOOR): Use it.
50476         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
50477         gl_FUNC_CEIL. Cache the result.
50478         (gl_FUNC_CEIL): Use it.
50479
50480         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
50481         gl_FUNC_FLOORF. Cache the result.
50482         (gl_FUNC_FLOORF): Use it.
50483         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
50484         gl_FUNC_CEILF. Cache the result.
50485         (gl_FUNC_CEILF): Use it.
50486
50487 2007-10-28  Bruno Haible  <bruno@clisp.org>
50488
50489         * gnulib-tool: Allow specifying the LGPL version number through
50490         --lgpl=2 or --lgpl=3.
50491         (func_usage): Document --lgpl with argument.
50492         Handle --lgpl=... arguments.
50493         (func_import): Recognize also gl_LGPL calls with an argument. When
50494         --lgpl=2 is used and the module's license is just LGPL, report an
50495         error. Set sed_transform_lib_file according to the lgpl variable. In
50496         the generated files, use --lgpl or gl_LGPL invocations with argument,
50497         if necessary.
50498         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
50499         an LGPv2+ license.
50500         * doc/gnulib-tool.texi (Modified imports): Update explanation of
50501         gl_LGPL macro.
50502
50503 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50504             Bruno Haible  <bruno@clisp.org>
50505
50506         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
50507         (u16_uctomb_aux): Likewise.
50508         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
50509         !HAVE_INLINE.
50510         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
50511
50512 2007-10-28  Bruno Haible  <bruno@clisp.org>
50513
50514         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
50515         Invoke AM_GETTEXT_OPTION if it exists.
50516         * modules/vasprintf: Likewise.
50517         * modules/verror: Likewise.
50518         * modules/xprintf: Likewise.
50519         * modules/xvasprintf: Likewise.
50520
50521 2007-10-27  Ben Pfaff  <blp@gnu.org>
50522
50523         * lib/math.in.h: Define isfinite macro and prototypes for
50524         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
50525         implementations.
50526         * m4/math_h.m4: New substitutions for isfinite module.
50527         * lib/isfinite.c: New file.
50528         * m4/isfinite.m4: New file.
50529         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
50530         * modules/isfinite: New file.
50531         * modules/isfinite-tests: New file.
50532         * tests/tests-isfinite.c: New file.
50533         * doc/functions/isfinite.texi: Mention isfinite module.
50534         * MODULES.html.sh: Mention new module.
50535
50536 2007-10-27  Ben Pfaff  <blp@gnu.org>
50537
50538         Ralf Wildenhues reported that Tru64 4.0D declares the round
50539         functions but does not have definitions.
50540         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
50541         cannot be found in any library, set the output variable to
50542         "missing" instead of "".
50543         * m4/round.m4: Also use our substitute if we cannot find round in
50544         any library, even if it is declared.
50545         * m4/roundf.m4: Likewise for roundf.
50546         * m4/roundl.m4: Likewise for roundl.
50547         * lib/math.in.h: Undefine roundf, round, roundl before defining
50548         their replacements, to allow for hypothetical systems where these
50549         may be defined as macros but not available in libraries.
50550
50551 2007-10-27  Bruno Haible  <bruno@clisp.org>
50552
50553         * doc/gnulib.texi: Invoke @firstparagraphindent.
50554         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
50555         changes in gnulib.
50556         (Source changes): New section.
50557
50558 2007-10-26  Bruno Haible  <bruno@clisp.org>
50559
50560         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
50561         borrowed from autoconf.
50562
50563 2007-10-26  Bruno Haible  <bruno@clisp.org>
50564
50565         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
50566         strerror returned the empty string. Needed on HP-UX 11.00.
50567
50568 2007-10-24  Micah Cowan  <micah@cowan.name>
50569
50570         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
50571         * build-aux/bootstrap: Remove support for now-unnecessary option,
50572         --cvs-user, and envvars CVS_USER, CVS_RSH.
50573
50574 2007-10-24  Jim Meyering  <meyering@redhat.com>
50575
50576         Avoid diagnostics from sha1sum when there is no cached checksum.
50577         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
50578         if the po.s1 file hasn't been created yet.
50579
50580         * build-aux/bootstrap: Sync from coreutils:
50581         2007-10-24  Jim Meyering  <meyering@redhat.com>
50582         Get gnulib from the git repository, not from an obsolete cvs one.
50583         * build-aux/bootstrap: Suggestion from Micah Cowan.
50584         2007-10-04  Jim Meyering  <jim@meyering.net>
50585         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
50586         (update_po_files): Work also when there are no .po files in po/.
50587
50588 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
50589
50590         * README: Append ".git" to git and cg examples.
50591         Problem reported by Benoit Sigoure.
50592
50593 2007-10-23  Micah Cowan  <micah@cowan.name>
50594
50595         * users.txt: Add wget.
50596
50597 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50598
50599         Fix linking of some unistdio tests on FreeBSD.
50600         * modules/unistdio/u16-vsnprintf-tests
50601         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
50602         * modules/unistdio/u16-vsprintf-tests
50603         (test_u16_vsnprintf1_LDADD): Likewise.
50604         * modules/unistdio/u32-vsnprintf-tests
50605         (test_u32_vsnprintf1_LDADD): Likewise.
50606         * modules/unistdio/u32-vsprintf-tests
50607         (test_u32_vsprintf1_LDADD): Likewise.
50608         * modules/unistdio/u8-vsnprintf-tests
50609         (test_u8_vsnprintf1_LDADD): Likewise.
50610         * modules/unistdio/u8-vsprintf-tests
50611         (test_u8_vsprintf1_LDADD): Likewise.
50612         * modules/unistdio/ulc-vsnprintf-tests
50613         (test_ulc_vsnprintf1_LDADD): Likewise.
50614         * modules/unistdio/ulc-vsprintf-tests
50615         (test_ulc_vsprintf1_LDADD): Likewise.
50616
50617         Fix linking of some uniconv tests on FreeBSD.
50618         * modules/uniconv/u16-conv-from-enc-tests
50619         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
50620         * modules/uniconv/u16-conv-to-enc-tests
50621         (test_u16_conv_to_enc_LDADD): Likewise.
50622         * modules/uniconv/u16-strconv-from-enc-tests
50623         (test_u16_strconv_from_enc_LDADD): Likewise.
50624         * modules/uniconv/u16-strconv-to-enc-tests
50625         (test_u16_strconv_to_enc_LDADD): Likewise.
50626         * modules/uniconv/u32-conv-from-enc-tests
50627         (test_u32_conv_from_enc_LDADD): Likewise.
50628         * modules/uniconv/u32-conv-to-enc-tests
50629         (test_u32_conv_to_enc_LDADD): Likewise.
50630         * modules/uniconv/u32-strconv-from-enc-tests
50631         (test_u32_strconv_from_enc_LDADD): Likewise.
50632         * modules/uniconv/u32-strconv-to-enc-tests
50633         (test_u32_strconv_to_enc_LDADD): Likewise.
50634         * modules/uniconv/u8-conv-from-enc-tests
50635         (test_u8_conv_from_enc_LDADD): Likewise.
50636         * modules/uniconv/u8-conv-to-enc-tests
50637         (test_u8_conv_to_enc_LDADD): Likewise.
50638         * modules/uniconv/u8-strconv-from-enc-tests
50639         (test_u8_strconv_from_enc_LDADD): Likewise.
50640         * modules/uniconv/u8-strconv-to-enc-tests
50641         (test_u8_strconv_to_enc_LDADD): Likewise.
50642
50643 2007-10-22  Bruno Haible  <bruno@clisp.org>
50644
50645         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
50646         size.
50647
50648 2007-10-22  Eric Blake  <ebb9@byu.net>
50649
50650         Tweak x*printf documentation.
50651         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
50652         variable name and comments.
50653         Suggested by Bruno Haible.
50654
50655 2007-10-22  Bruno Haible  <bruno@clisp.org>
50656
50657         * lib/acl.c (copy_acl): Fix file name in comment.
50658
50659 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
50660
50661         Fix Tru64 problem with stdbool.h.
50662         * lib/stdbool.in.h (false, true):
50663         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
50664         Don't declare as an enum in this situation; it runs afoul of Tru64.
50665         Problem reported by Steven M. Schweda in
50666         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
50667
50668 2007-10-22  Eric Blake  <ebb9@byu.net>
50669
50670         Also wrap vf?printf.
50671         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
50672         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
50673         (xvprintf, xvfprintf): New functions.
50674
50675 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50676
50677         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
50678         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
50679
50680         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
50681         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
50682
50683 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
50684
50685         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
50686         by Bruno Haible.
50687
50688 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50689
50690         * lib/getloadavg.c
50691         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
50692         Undef `sys' after including sys/table.h, for Tru64 4.0D.
50693
50694         * tests/test-i-ring.c: Work for C89.
50695
50696 2007-10-22  Bruno Haible  <bruno@clisp.org>
50697
50698         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
50699         -1u, in preprocessor expression, so that we don't test for the bug
50700         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
50701         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
50702
50703 2007-10-22  Eric Blake  <ebb9@byu.net>
50704
50705         * tests/test-yesno.sh: Silence stderr during test.
50706
50707 2007-10-22  Simon Josefsson  <simon@josefsson.org>
50708
50709         * modules/crypto/gc-camellia: New file.
50710
50711         * m4/gc-camellia.m4: New file.
50712
50713         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
50714
50715         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
50716
50717 2007-10-22  Simon Josefsson  <simon@josefsson.org>
50718
50719         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
50720         --help to stdout.  Reported by sms@antinode.org (Steven
50721         M. Schweda).
50722
50723 2007-10-22  Simon Josefsson  <simon@josefsson.org>
50724
50725         * users.txt: Fix link to libksba.
50726
50727 2007-10-21  Ben Pfaff  <blp@gnu.org>
50728
50729         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
50730         round.c roundf implementation that depends on floorf and ceilf to
50731         be tested unconditionally.
50732
50733 2007-10-21  Ben Pfaff  <blp@gnu.org>
50734
50735         * m4/check-libm-func.m4: Removed.
50736         * m4/check-math-lib.m4: New file.
50737         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
50738         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
50739         definition and lack of AC_LIBOBJ([roundf]).
50740         * m4/roundl.m4: Ditto, and similarly for roundl.
50741         * modules/round: Reference new m4 file.
50742         * modules/roundf: Ditto.
50743         * modules/roundl: Ditto.
50744         * tests/test-round2.c (main): Use ROUND instead of round.
50745         Bug report from Bruno Haible.
50746
50747 2007-10-21  Bruno Haible  <bruno@clisp.org>
50748
50749         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
50750         context.
50751
50752 2007-10-21  Bruno Haible  <bruno@clisp.org>
50753
50754         * tests/test-wcwidth.c (main): Allow negative result for some control
50755         characters.
50756
50757         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
50758         Needed on OSF/1 5.1.
50759
50760 2007-10-21  Bruno Haible  <bruno@clisp.org>
50761
50762         * tests/test-floorf1.c: Include isnanf.h.
50763         (main): Use isnanf() instead of isnan().
50764         * tests/test-ceilf1.c: Include isnanf.h.
50765         (main): Use isnanf() instead of isnan().
50766         * tests/test-truncf1.c: Include isnanf.h.
50767         (main): Use isnanf() instead of isnan().
50768         * tests/test-roundf1.c: Include isnanf.h.
50769         (main): Use isnanf() instead of isnan().
50770
50771 2007-10-21  Eric Blake  <ebb9@byu.net>
50772
50773         * users.txt: Update URL for m4.
50774
50775 2007-10-21  Bruno Haible  <bruno@clisp.org>
50776
50777         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
50778
50779 2007-10-21  Bruno Haible  <bruno@clisp.org>
50780
50781         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
50782         Git's management files if the CVS files are not present.
50783
50784 2007-10-20  Bruno Haible  <bruno@clisp.org>
50785
50786         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
50787         gcc-3.4.x.
50788
50789 2007-10-20  Ben Pfaff  <blp@gnu.org>
50790
50791         * lib/math.in.h: Declare round, roundf, roundl if we are providing
50792         implementations.
50793         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
50794         * lib/round.c: New file.
50795         * lib/roundf.c: New file.
50796         * lib/roundl.c: New file.
50797         * m4/round.m4: New file.
50798         * m4/roundf.m4: New file.
50799         * m4/roundl.m4: New file.
50800         * m4/check-libm-func-m4: New file.
50801         * modules/math: Replace round, roundf, roundl related @VARS@ in
50802         math.in.h.
50803         * modules/round: New file.
50804         * modules/round-tests: New file.
50805         * modules/roundf: New file.
50806         * modules/roundf-tests: New file.
50807         * modules/roundl: New file.
50808         * modules/roundl-tests: New file.
50809         * tests/test-round1.c: New file.
50810         * tests/test-round2.c: New file.
50811         * tests/test-roundf1.c: New file.
50812         * tests/test-roundf2.c: New file.
50813         * tests/test-roundl.c: New file.
50814         * doc/functions/round.texi: Mention round module.
50815         * doc/functions/roundf.texi: Mention roundf module.
50816         * doc/functions/roundl.texi: Mention roundl module.
50817         * MODULES.html.sh: Mention new modules.
50818         Thanks to Bruno Haible for suggestions.
50819
50820 2007-10-20  Jim Meyering  <meyering@redhat.com>
50821
50822         * lib/xprintf.c: Include <config.h> unconditionally.
50823
50824         Change xprintf's license to GPL.
50825         * modules/xprintf (License): s/LGPL/GPL/, since this module
50826         depends on modules (exit and exitfail) which are GPL.
50827         Suggestion from Bruno Haible.
50828
50829         xprintf fixes.
50830         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
50831         Use a clearer diagnostic.
50832         Patch from Bruno Haible.
50833
50834 2007-10-20  Bruno Haible  <bruno@clisp.org>
50835
50836         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
50837         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
50838         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50839
50840 2007-10-20  Bruno Haible  <bruno@clisp.org>
50841
50842         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
50843         precision in the comparison result > x - 1 or similar.
50844         * tests/test-ceilf2.c (correct_result_p): Likewise.
50845         * tests/test-truncf2.c (correct_result_p): Likewise.
50846         * tests/test-trunc2.c (correct_result_p): Likewise.
50847         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50848
50849 2007-10-20  Bruno Haible  <bruno@clisp.org>
50850
50851         * modules/ceil: New file.
50852         * m4/ceil.m4: New file.
50853         * doc/functions/ceil.texi: Mention the 'ceil' module.
50854
50855 2007-10-20  Bruno Haible  <bruno@clisp.org>
50856
50857         * modules/floor: New file.
50858         * m4/floor.m4: New file.
50859         * doc/functions/floor.texi: Mention the 'floor' module.
50860
50861 2007-10-20  Bruno Haible  <bruno@clisp.org>
50862
50863         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
50864         of %a.
50865         * modules/floorf-tests (Depends-on): Likewise.
50866         * modules/truncf-tests (Depends-on): Likewise.
50867         * modules/trunc-tests (Depends-on): Likewise.
50868         Reported by Ben Pfaff.
50869
50870 2007-10-19  Jim Meyering  <meyering@redhat.com>
50871
50872         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
50873         Don't bother testing specific errno values.  Just test ferror.
50874
50875         New module: xprintf
50876         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
50877
50878 2007-10-19  Bruno Haible  <bruno@clisp.org>
50879
50880         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
50881         syntax.
50882         * modules/javaexec (Makefile.am): Likewise.
50883         * modules/relocatable-prog (Makefile.am): Likewise.
50884         Suggested by Jim Meyering.
50885
50886 2007-10-18  Bruno Haible  <bruno@clisp.org>
50887
50888         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
50889         Reported by Jim Meyering.
50890
50891 2007-10-18  Eric Blake  <ebb9@byu.net>
50892
50893         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
50894
50895 2007-10-18  Bruno Haible  <bruno@clisp.org>
50896
50897         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
50898         the format string into writable memory. Needed in Fortify conditions.
50899
50900 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
50901             Bruno Haible  <bruno@clisp.org>
50902
50903         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
50904         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
50905         * modules/trim (Depends-on): Add mbchar.
50906         (configure.ac): Add gl_FUNC_MBRTOWC.
50907         (Makefile.am): Augment lib_SOURCES.
50908
50909 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
50910
50911         Modify glob.c to use fstatat and dirfd, to simplify it.
50912         Suggested by Eric Blake.
50913         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
50914         Don't include <stdbool.h>; not used.
50915         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
50916         (link_exists_p): Simplify implementation, since we can now assume
50917         dirfd and fstatat.
50918         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
50919
50920 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50921
50922         * gnulib-tool (func_get_dependencies): Fix sed script to
50923         match only tests.
50924
50925 2007-10-17  Bruno Haible  <bruno@clisp.org>
50926
50927         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
50928         allow locale names without encoding suffix.
50929         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
50930         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
50931
50932 2007-10-16  Bruno Haible  <bruno@clisp.org>
50933
50934         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
50935         * lib/getgroups.c (getgroups): Likewise.
50936         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
50937
50938 2007-10-16  Bruno Haible  <bruno@clisp.org>
50939
50940         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
50941         * modules/malloc-posix (License): Likewise.
50942         * modules/realloc-posix (License): Likewise.
50943         * modules/calloc-posix (License): Likewise.
50944         * modules/intprops (License): Change from GPL to LGPL, with
50945         Paul Eggert's approval.
50946
50947 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
50948
50949         Merge glibc changes into lib/glob.c.
50950
50951         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
50952         2007-10-15 04:59:03 UTC.  Here are the changes:
50953
50954         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
50955
50956         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
50957
50958         * lib/glob.c: Add some branch prediction throughout.
50959
50960         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
50961
50962         [BZ #5103]
50963         * lib/glob.c (glob): Recognize patterns starting \/.
50964
50965         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
50966
50967         [BZ #3996]
50968         * lib/glob.c (attribute_hidden): Define if not defined.
50969         (glob): Unescape dirname, filename or username when needed and not
50970         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
50971         is NULL.  Handle unescaped [ in pattern without closing ].
50972         Don't pass GLOB_CHECK down to recursive glob for directories.
50973         (__glob_pattern_type): New function.
50974         (__glob_pattern_p): Implement using __glob_pattern_type.
50975         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
50976         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
50977         Remove unreachable code.
50978
50979         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
50980
50981         * lib/glob.c (glob_in_dir): Add some comments and asserts to
50982         explain why there are no leaks.
50983
50984         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
50985
50986         [BZ #3253]
50987         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
50988         time, rather allocate increasingly bigger arrays of pointers, if
50989         possible with alloca, if too large with malloc.
50990
50991 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
50992
50993         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
50994         Problem reported by H.Merijn Brand in
50995         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
50996         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
50997         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
50998
50999 2007-10-15  Bruno Haible  <bruno@clisp.org>
51000
51001         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
51002         with explicit rpl_ prefix.
51003         * lib/fopen.c (fopen): Likewise.
51004         * lib/freopen.c (freopen): Likewise.
51005         * lib/iconv.c (iconv): Likewise.
51006         * lib/iconv_close.c (iconv_close): Likewise.
51007
51008 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51009
51010         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
51011
51012 2007-10-15  Bruno Haible  <bruno@clisp.org>
51013
51014         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
51015         <stddef.h> instead of <stdlib.h> since we only need NULL.
51016         Reported by Ben Pfaff <blp@cs.stanford.edu>.
51017
51018 2007-10-15  Bruno Haible  <bruno@clisp.org>
51019
51020         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
51021         Replace paragraph talking about LIBOBJS.
51022         Reported by Colin Watson <cjwatson@debian.org>.
51023
51024 2007-10-15  Bruno Haible  <bruno@clisp.org>
51025
51026         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
51027         <stdlib.h> before using NULL.
51028
51029 2007-10-15  Simon Josefsson  <simon@josefsson.org>
51030
51031         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
51032         Reported by Albert Chin <china@thewrittenword.com>.
51033
51034 2007-10-14  Bruno Haible  <bruno@clisp.org>
51035
51036         * modules/iconv_open-utf-tests: New file.
51037         * tests/test-iconv-utf.c: New file.
51038
51039         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
51040         * modules/iconv_open-utf: New file.
51041         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
51042         (iconv, iconv_close): New declarations.
51043         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
51044         be defined.
51045         (iconv_open): Add special handling of conversion between UTF-8 and
51046         UTF-{16,32}{BE,LE}.
51047         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
51048         * lib/iconv_close.c: New file.
51049         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
51050         gl_FUNC_ICONV_OPEN.
51051         (gl_FUNC_ICONV_OPEN): Use it.
51052         (gl_FUNC_ICONV_OPEN_UTF): New macro.
51053         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
51054         and REPLACE_ICONV_UTF.
51055         * modules/iconv_open (Depends-on): Add c-strcase.
51056         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
51057         ICONV_CONST.
51058         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
51059
51060 2007-10-13  Albert Chin  <china@thewrittenword.com>
51061             Bruno Haible  <bruno@clisp.org>
51062
51063         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
51064         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
51065
51066 2007-10-13  Bruno Haible  <bruno@clisp.org>
51067
51068         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
51069         defined, use the ISO C99 inline semantics.
51070         * lib/argp.h (ARGP_EI): Likewise.
51071
51072 2007-10-13  Bruno Haible  <bruno@clisp.org>
51073
51074         Handle 'inline' change in gcc 4.3.0.
51075         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
51076         argp_fmtstream_write, argp_fmtstream_set_lmargin,
51077         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
51078         argp_fmtstream_point): Disable 'extern' declaration if the function
51079         definition is going to be provided inline.
51080         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
51081         semantics, not the ISO C99 inline semantics.
51082         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
51083         'extern' declaration if the function definition is going to be provided
51084         inline.
51085         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
51086         the GNU C inline semantics, not the ISO C99 inline semantics. With
51087         GCC 4.2, avoid a warning.
51088
51089 2007-10-13  Bruno Haible  <bruno@clisp.org>
51090
51091         * lib/freading.h (freading): Enable the use of __freading for
51092         glibc >= 2.7.
51093         * lib/freading.c (freading): Likewise.
51094
51095 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
51096
51097         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
51098         "warning: C99 inline functions are not supported; using GNU89".
51099
51100 2007-10-12  Bruno Haible  <bruno@clisp.org>
51101
51102         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
51103         of 2.
51104         * tests/test-ceilf2.c: New file.
51105         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
51106
51107         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
51108         * modules/ceilf-tests: Update.
51109
51110 2007-10-12  Bruno Haible  <bruno@clisp.org>
51111
51112         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
51113         of 2.
51114         * tests/test-floorf2.c: New file.
51115         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
51116
51117         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
51118         * modules/floorf-tests: Update.
51119
51120 2007-10-12  Bruno Haible  <bruno@clisp.org>
51121
51122         * tests/test-trunc2.c: New file.
51123         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
51124
51125         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
51126         * modules/trunc-tests: Update.
51127
51128 2007-10-12  Bruno Haible  <bruno@clisp.org>
51129
51130         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
51131         of 2.
51132         * tests/test-truncf2.c: New file.
51133         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
51134
51135         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
51136         * modules/truncf-tests: Update.
51137
51138 2007-10-11  Eric Blake  <ebb9@byu.net>
51139
51140         Don't claim strerror is broken on Interix.
51141         * doc/functions/strerror.texi (strerror): Known broken systems are
51142         now Solaris 8, and not Interix.
51143         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
51144         Interix on cross-compile.
51145         Reported by Martin Koeppe in
51146         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
51147
51148 2007-10-11  Bruno Haible  <bruno@clisp.org>
51149
51150         * modules/i-ring-tests: New file.
51151         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
51152         instead of assert.
51153
51154 2007-10-11  Bruno Haible  <bruno@clisp.org>
51155
51156         * modules/filenamecat-tests: New file.
51157         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
51158         * lib/filenamecat.c: Remove test code.
51159
51160 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
51161
51162         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
51163
51164         * lib/strerror.c: Include <string.h> always, to test interface,
51165         and to remove the need for the dummy.
51166         Include intprops.h to compute width instead of doing it ourselves
51167         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
51168         (strerror): Define it to return NULL if there's no system strerror.
51169         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
51170         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
51171         ancient pre-strerror Unix systems well any more.  Saying "unknown
51172         system error" is enough.
51173         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
51174         simpler strerror.c implementation.
51175         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
51176         Simplify the tests to reflect the simpler strerror implementation.
51177         * modules/strerror (Depends-on): Add intprops.
51178
51179 2007-10-09  Eric Blake  <ebb9@byu.net>
51180
51181         Silence test-fpending.
51182         * modules/fpending-tests (Files): Add wrapper script.
51183         * tests/test-fpending.sh: New file.
51184
51185 2007-10-09  Bruno Haible  <bruno@clisp.org>
51186
51187         * MODULES.html.sh (func_module): Don't create a hyperlink for
51188         function names like 'printf_frexp'.
51189         (Misc): Add crc, memxor.
51190         (Characteristics of floating types): New section.
51191         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
51192         isnanf-nolibm, signbit, trunc, truncf, truncl.
51193         (Enhancements for ISO C 99 functions): New subsection Input/output.
51194         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
51195         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
51196         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
51197         (Compatibility checks for POSIX:2001 functions): Add clock-time.
51198         (Enhancements for POSIX:2001 functions): Add chdir-long.
51199         (File system functions): Add areadlink, chdir-safer, read-file.
51200         Remove cycle-check.
51201         (File system as inode set): New section.
51202         (Date and time): Add gethrxtime.
51203         (Multithreading): Add openmp.
51204         (Internationalization functions): Add localename.
51205         (Unicode string functions): Add unistr/u*-mbsnlen.
51206         (Support for maintaining and releasing projects): Add git-version-gen.
51207         (Lone files): Remove directories.
51208
51209 2007-10-08  Ben Pfaff  <blp@gnu.org>
51210
51211         * lib/xmalloca.h: Fix typo in comment.
51212
51213 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
51214
51215         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
51216         when avoiding problems with integer overflow.  Use a portable test
51217         instead.
51218
51219 2007-10-08  Simon Josefsson  <simon@josefsson.org>
51220
51221         * modules/dummy (License): Change to LGPLv2+.
51222         * modules/float (License): Likewise
51223         * modules/realloc (License): Likewise
51224         * modules/stdlib (License): Likewise
51225
51226 2007-10-07  Bruno Haible  <bruno@clisp.org>
51227
51228         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
51229         * floor.c (TWO_MANT_DIG): Likewise.
51230         * ceil.c (TWO_MANT_DIG): Likewise.
51231         Reported by Ben Pfaff.
51232
51233 2007-10-07  Bruno Haible  <bruno@clisp.org>
51234
51235         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
51236         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
51237         * lib/frexp.c (FUNC): Likewise.
51238         * lib/printf-frexp.h (printf_frexp): Likewise.
51239         * lib/printf-frexpl.h (printf_frexpl): Likewise.
51240         * lib/printf-frexp.c (FUNC): Likewise.
51241         Suggested by Jim Meyering.
51242
51243 2007-10-07  Jim Meyering  <meyering@redhat.com>
51244
51245         Make xnanosleep's integer overflow test more robust.
51246         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
51247         so that gcc-4.3.0 doesn't optimize away this test for overflow.
51248
51249 2007-10-07  Bruno Haible  <bruno@clisp.org>
51250
51251         * NEWS: Mention the license change.
51252
51253         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
51254         abbreviations in the modules files.
51255
51256         Change copyright notice from GPLv2+ to GPLv3+.
51257         * README: Change copyright notice.
51258         * MODULES.html.sh: Likewise.
51259         * build-aux/bootstrap.conf: Likewise.
51260         * build-aux/config.libpath: Likewise.
51261         * build-aux/csharpcomp.sh.in: Likewise.
51262         * build-aux/csharpexec.sh.in: Likewise.
51263         * build-aux/install-reloc: Likewise.
51264         * build-aux/javacomp.sh.in: Likewise.
51265         * build-aux/javaexec.sh.in: Likewise.
51266         * build-aux/ldd.sh.in: Likewise.
51267         * build-aux/reloc-ldflags: Likewise.
51268         * build-aux/relocatable.sh.in: Likewise.
51269         * build-aux/x-to-1.in: Likewise.
51270         * check-module: Likewise.
51271         * config/srclistvars.sh: Likewise.
51272         * gnulib-tool: Likewise.
51273         * lib/acl-internal.h: Likewise.
51274         * lib/acl.c: Likewise.
51275         * lib/acl.h: Likewise.
51276         * lib/acl_entries.c: Likewise.
51277         * lib/areadlink-with-size.c: Likewise.
51278         * lib/areadlink.c: Likewise.
51279         * lib/areadlink.h: Likewise.
51280         * lib/argmatch.c: Likewise.
51281         * lib/argmatch.h: Likewise.
51282         * lib/argp-ba.c: Likewise.
51283         * lib/argp-eexst.c: Likewise.
51284         * lib/argp-fmtstream.c: Likewise.
51285         * lib/argp-fmtstream.h: Likewise.
51286         * lib/argp-fs-xinl.c: Likewise.
51287         * lib/argp-help.c: Likewise.
51288         * lib/argp-namefrob.h: Likewise.
51289         * lib/argp-parse.c: Likewise.
51290         * lib/argp-pin.c: Likewise.
51291         * lib/argp-pv.c: Likewise.
51292         * lib/argp-pvh.c: Likewise.
51293         * lib/argp-xinl.c: Likewise.
51294         * lib/argp.h: Likewise.
51295         * lib/at-func.c: Likewise.
51296         * lib/atanl.c: Likewise.
51297         * lib/backupfile.c: Likewise.
51298         * lib/backupfile.h: Likewise.
51299         * lib/basename.c: Likewise.
51300         * lib/binary-io.h: Likewise.
51301         * lib/byteswap.in.h: Likewise.
51302         * lib/c-stack.c: Likewise.
51303         * lib/c-stack.h: Likewise.
51304         * lib/c-strcasestr.c: Likewise.
51305         * lib/c-strcasestr.h: Likewise.
51306         * lib/c-strstr.c: Likewise.
51307         * lib/c-strstr.h: Likewise.
51308         * lib/c-strtod.c: Likewise.
51309         * lib/calloc.c: Likewise.
51310         * lib/canon-host.c: Likewise.
51311         * lib/canon-host.h: Likewise.
51312         * lib/canonicalize-lgpl.c: Likewise.
51313         * lib/canonicalize.c: Likewise.
51314         * lib/canonicalize.h: Likewise.
51315         * lib/ceil.c: Likewise.
51316         * lib/ceilf.c: Likewise.
51317         * lib/ceill.c: Likewise.
51318         * lib/chdir-long.c: Likewise.
51319         * lib/chdir-long.h: Likewise.
51320         * lib/chdir-safer.c: Likewise.
51321         * lib/chdir-safer.h: Likewise.
51322         * lib/chown.c: Likewise.
51323         * lib/classpath.c: Likewise.
51324         * lib/classpath.h: Likewise.
51325         * lib/clean-temp.c: Likewise.
51326         * lib/clean-temp.h: Likewise.
51327         * lib/cloexec.c: Likewise.
51328         * lib/close-stream.c: Likewise.
51329         * lib/closein.c: Likewise.
51330         * lib/closein.h: Likewise.
51331         * lib/closeout.c: Likewise.
51332         * lib/closeout.h: Likewise.
51333         * lib/concat-filename.c: Likewise.
51334         * lib/copy-file.c: Likewise.
51335         * lib/copy-file.h: Likewise.
51336         * lib/count-one-bits.h: Likewise.
51337         * lib/crc.c: Likewise.
51338         * lib/crc.h: Likewise.
51339         * lib/creat-safer.c: Likewise.
51340         * lib/csharpcomp.c: Likewise.
51341         * lib/csharpcomp.h: Likewise.
51342         * lib/csharpexec.c: Likewise.
51343         * lib/csharpexec.h: Likewise.
51344         * lib/cycle-check.c: Likewise.
51345         * lib/cycle-check.h: Likewise.
51346         * lib/diacrit.c: Likewise.
51347         * lib/diacrit.h: Likewise.
51348         * lib/diffseq.h: Likewise.
51349         * lib/dirchownmod.c: Likewise.
51350         * lib/dirent.in.h: Likewise.
51351         * lib/dirfd.c: Likewise.
51352         * lib/dirfd.h: Likewise.
51353         * lib/dirname.c: Likewise.
51354         * lib/dirname.h: Likewise.
51355         * lib/dummy.c: Likewise.
51356         * lib/dup-safer.c: Likewise.
51357         * lib/dup2.c: Likewise.
51358         * lib/eealloc.h: Likewise.
51359         * lib/error.c: Likewise.
51360         * lib/error.h: Likewise.
51361         * lib/euidaccess.c: Likewise.
51362         * lib/exclude.c: Likewise.
51363         * lib/exclude.h: Likewise.
51364         * lib/execute.c: Likewise.
51365         * lib/execute.h: Likewise.
51366         * lib/exitfail.c: Likewise.
51367         * lib/exitfail.h: Likewise.
51368         * lib/expl.c: Likewise.
51369         * lib/fatal-signal.c: Likewise.
51370         * lib/fatal-signal.h: Likewise.
51371         * lib/fbufmode.c: Likewise.
51372         * lib/fbufmode.h: Likewise.
51373         * lib/fchdir.c: Likewise.
51374         * lib/fchmodat.c: Likewise.
51375         * lib/fchownat.c: Likewise.
51376         * lib/fcntl--.h: Likewise.
51377         * lib/fcntl-safer.h: Likewise.
51378         * lib/fcntl.in.h: Likewise.
51379         * lib/fd-safer.c: Likewise.
51380         * lib/fflush.c: Likewise.
51381         * lib/file-has-acl.c: Likewise.
51382         * lib/file-set.c: Likewise.
51383         * lib/file-type.c: Likewise.
51384         * lib/file-type.h: Likewise.
51385         * lib/fileblocks.c: Likewise.
51386         * lib/filemode.c: Likewise.
51387         * lib/filemode.h: Likewise.
51388         * lib/filename.h: Likewise.
51389         * lib/filenamecat.c: Likewise.
51390         * lib/filenamecat.h: Likewise.
51391         * lib/findprog.c: Likewise.
51392         * lib/findprog.h: Likewise.
51393         * lib/float.in.h: Likewise.
51394         * lib/floor.c: Likewise.
51395         * lib/floorf.c: Likewise.
51396         * lib/floorl.c: Likewise.
51397         * lib/fopen-safer.c: Likewise.
51398         * lib/fopen.c: Likewise.
51399         * lib/fpending.c: Likewise.
51400         * lib/fpending.h: Likewise.
51401         * lib/fprintf.c: Likewise.
51402         * lib/fprintftime.h: Likewise.
51403         * lib/fpucw.h: Likewise.
51404         * lib/fpurge.c: Likewise.
51405         * lib/fpurge.h: Likewise.
51406         * lib/freadable.c: Likewise.
51407         * lib/freadable.h: Likewise.
51408         * lib/freadahead.c: Likewise.
51409         * lib/freadahead.h: Likewise.
51410         * lib/freading.c: Likewise.
51411         * lib/freading.h: Likewise.
51412         * lib/free.c: Likewise.
51413         * lib/freopen.c: Likewise.
51414         * lib/frexp.c: Likewise.
51415         * lib/frexpl.c: Likewise.
51416         * lib/fseek.c: Likewise.
51417         * lib/fseterr.c: Likewise.
51418         * lib/fseterr.h: Likewise.
51419         * lib/fstatat.c: Likewise.
51420         * lib/fstrcmp.c: Likewise.
51421         * lib/fstrcmp.h: Likewise.
51422         * lib/fsusage.c: Likewise.
51423         * lib/fsusage.h: Likewise.
51424         * lib/ftell.c: Likewise.
51425         * lib/ftello.c: Likewise.
51426         * lib/fts-cycle.c: Likewise.
51427         * lib/fts.c: Likewise.
51428         * lib/fts_.h: Likewise.
51429         * lib/full-read.c: Likewise.
51430         * lib/full-read.h: Likewise.
51431         * lib/full-write.c: Likewise.
51432         * lib/full-write.h: Likewise.
51433         * lib/fwritable.c: Likewise.
51434         * lib/fwritable.h: Likewise.
51435         * lib/fwriteerror.c: Likewise.
51436         * lib/fwriteerror.h: Likewise.
51437         * lib/fwriting.c: Likewise.
51438         * lib/fwriting.h: Likewise.
51439         * lib/gcd.c: Likewise.
51440         * lib/gcd.h: Likewise.
51441         * lib/getcwd.c: Likewise.
51442         * lib/getdate.h: Likewise.
51443         * lib/getdate.y: Likewise.
51444         * lib/getdomainname.c: Likewise.
51445         * lib/getdomainname.h: Likewise.
51446         * lib/getgroups.c: Likewise.
51447         * lib/gethostname.c: Likewise.
51448         * lib/gethrxtime.c: Likewise.
51449         * lib/gethrxtime.h: Likewise.
51450         * lib/getloadavg.c: Likewise.
51451         * lib/getndelim2.c: Likewise.
51452         * lib/getndelim2.h: Likewise.
51453         * lib/getnline.c: Likewise.
51454         * lib/getnline.h: Likewise.
51455         * lib/getopt.c: Likewise.
51456         * lib/getopt.in.h: Likewise.
51457         * lib/getopt1.c: Likewise.
51458         * lib/getopt_int.h: Likewise.
51459         * lib/getpagesize.h: Likewise.
51460         * lib/getsubopt.c: Likewise.
51461         * lib/gettime.c: Likewise.
51462         * lib/getugroups.c: Likewise.
51463         * lib/getugroups.h: Likewise.
51464         * lib/getusershell.c: Likewise.
51465         * lib/gl_anyavltree_list1.h: Likewise.
51466         * lib/gl_anyavltree_list2.h: Likewise.
51467         * lib/gl_anyhash_list1.h: Likewise.
51468         * lib/gl_anyhash_list2.h: Likewise.
51469         * lib/gl_anylinked_list1.h: Likewise.
51470         * lib/gl_anylinked_list2.h: Likewise.
51471         * lib/gl_anyrbtree_list1.h: Likewise.
51472         * lib/gl_anyrbtree_list2.h: Likewise.
51473         * lib/gl_anytree_list1.h: Likewise.
51474         * lib/gl_anytree_list2.h: Likewise.
51475         * lib/gl_anytree_oset.h: Likewise.
51476         * lib/gl_anytreehash_list1.h: Likewise.
51477         * lib/gl_anytreehash_list2.h: Likewise.
51478         * lib/gl_array_list.c: Likewise.
51479         * lib/gl_array_list.h: Likewise.
51480         * lib/gl_array_oset.c: Likewise.
51481         * lib/gl_array_oset.h: Likewise.
51482         * lib/gl_avltree_list.c: Likewise.
51483         * lib/gl_avltree_list.h: Likewise.
51484         * lib/gl_avltree_oset.c: Likewise.
51485         * lib/gl_avltree_oset.h: Likewise.
51486         * lib/gl_avltreehash_list.c: Likewise.
51487         * lib/gl_avltreehash_list.h: Likewise.
51488         * lib/gl_carray_list.c: Likewise.
51489         * lib/gl_carray_list.h: Likewise.
51490         * lib/gl_linked_list.c: Likewise.
51491         * lib/gl_linked_list.h: Likewise.
51492         * lib/gl_linkedhash_list.c: Likewise.
51493         * lib/gl_linkedhash_list.h: Likewise.
51494         * lib/gl_list.c: Likewise.
51495         * lib/gl_list.h: Likewise.
51496         * lib/gl_oset.c: Likewise.
51497         * lib/gl_oset.h: Likewise.
51498         * lib/gl_rbtree_list.c: Likewise.
51499         * lib/gl_rbtree_list.h: Likewise.
51500         * lib/gl_rbtree_oset.c: Likewise.
51501         * lib/gl_rbtree_oset.h: Likewise.
51502         * lib/gl_rbtreehash_list.c: Likewise.
51503         * lib/gl_rbtreehash_list.h: Likewise.
51504         * lib/gl_sublist.c: Likewise.
51505         * lib/gl_sublist.h: Likewise.
51506         * lib/group-member.c: Likewise.
51507         * lib/group-member.h: Likewise.
51508         * lib/hard-locale.c: Likewise.
51509         * lib/hard-locale.h: Likewise.
51510         * lib/hash-pjw.c: Likewise.
51511         * lib/hash-pjw.h: Likewise.
51512         * lib/hash-triple.c: Likewise.
51513         * lib/hash.c: Likewise.
51514         * lib/hash.h: Likewise.
51515         * lib/human.c: Likewise.
51516         * lib/human.h: Likewise.
51517         * lib/i-ring.c: Likewise.
51518         * lib/i-ring.h: Likewise.
51519         * lib/idcache.c: Likewise.
51520         * lib/imaxabs.c: Likewise.
51521         * lib/imaxdiv.c: Likewise.
51522         * lib/inet_pton.c: Likewise.
51523         * lib/inet_pton.h: Likewise.
51524         * lib/intprops.h: Likewise.
51525         * lib/inttostr.c: Likewise.
51526         * lib/inttostr.h: Likewise.
51527         * lib/inttypes.in.h: Likewise.
51528         * lib/isapipe.c: Likewise.
51529         * lib/isdir.c: Likewise.
51530         * lib/isnan.c: Likewise.
51531         * lib/isnan.h: Likewise.
51532         * lib/isnanf.c: Likewise.
51533         * lib/isnanf.h: Likewise.
51534         * lib/isnanl-nolibm.h: Likewise.
51535         * lib/isnanl.c: Likewise.
51536         * lib/isnanl.h: Likewise.
51537         * lib/javacomp.c: Likewise.
51538         * lib/javacomp.h: Likewise.
51539         * lib/javaexec.c: Likewise.
51540         * lib/javaexec.h: Likewise.
51541         * lib/javaversion.c: Likewise.
51542         * lib/javaversion.h: Likewise.
51543         * lib/javaversion.java: Likewise.
51544         * lib/lbrkprop.h: Likewise.
51545         * lib/lchmod.h: Likewise.
51546         * lib/lchown.c: Likewise.
51547         * lib/ldexpl.c: Likewise.
51548         * lib/linebreak.c: Likewise.
51549         * lib/linebreak.h: Likewise.
51550         * lib/linebuffer.c: Likewise.
51551         * lib/linebuffer.h: Likewise.
51552         * lib/locale.in.h: Likewise.
51553         * lib/logl.c: Likewise.
51554         * lib/long-options.c: Likewise.
51555         * lib/long-options.h: Likewise.
51556         * lib/lstat.c: Likewise.
51557         * lib/lstat.h: Likewise.
51558         * lib/math.in.h: Likewise.
51559         * lib/mbchar.c: Likewise.
51560         * lib/mbchar.h: Likewise.
51561         * lib/mbfile.h: Likewise.
51562         * lib/mbiter.h: Likewise.
51563         * lib/mbscasecmp.c: Likewise.
51564         * lib/mbscasestr.c: Likewise.
51565         * lib/mbschr.c: Likewise.
51566         * lib/mbscspn.c: Likewise.
51567         * lib/mbslen.c: Likewise.
51568         * lib/mbsncasecmp.c: Likewise.
51569         * lib/mbsnlen.c: Likewise.
51570         * lib/mbspbrk.c: Likewise.
51571         * lib/mbspcasecmp.c: Likewise.
51572         * lib/mbsrchr.c: Likewise.
51573         * lib/mbssep.c: Likewise.
51574         * lib/mbsspn.c: Likewise.
51575         * lib/mbsstr.c: Likewise.
51576         * lib/mbstok_r.c: Likewise.
51577         * lib/mbswidth.c: Likewise.
51578         * lib/mbswidth.h: Likewise.
51579         * lib/mbuiter.h: Likewise.
51580         * lib/memcasecmp.c: Likewise.
51581         * lib/memcasecmp.h: Likewise.
51582         * lib/memchr.c: Likewise.
51583         * lib/memcmp.c: Likewise.
51584         * lib/memcoll.c: Likewise.
51585         * lib/memcoll.h: Likewise.
51586         * lib/memcpy.c: Likewise.
51587         * lib/memrchr.c: Likewise.
51588         * lib/mkancesdirs.c: Likewise.
51589         * lib/mkdir-p.c: Likewise.
51590         * lib/mkdir-p.h: Likewise.
51591         * lib/mkdir.c: Likewise.
51592         * lib/mkdirat.c: Likewise.
51593         * lib/mkdtemp.c: Likewise.
51594         * lib/mkstemp-safer.c: Likewise.
51595         * lib/mkstemp.c: Likewise.
51596         * lib/modechange.c: Likewise.
51597         * lib/modechange.h: Likewise.
51598         * lib/mountlist.c: Likewise.
51599         * lib/mountlist.h: Likewise.
51600         * lib/mpsort.c: Likewise.
51601         * lib/nanosleep.c: Likewise.
51602         * lib/obstack.c: Likewise.
51603         * lib/obstack.h: Likewise.
51604         * lib/open-safer.c: Likewise.
51605         * lib/open.c: Likewise.
51606         * lib/openat-die.c: Likewise.
51607         * lib/openat-priv.h: Likewise.
51608         * lib/openat-proc.c: Likewise.
51609         * lib/openat.c: Likewise.
51610         * lib/openat.h: Likewise.
51611         * lib/pagealign_alloc.c: Likewise.
51612         * lib/pagealign_alloc.h: Likewise.
51613         * lib/physmem.c: Likewise.
51614         * lib/physmem.h: Likewise.
51615         * lib/pipe-safer.c: Likewise.
51616         * lib/pipe.c: Likewise.
51617         * lib/pipe.h: Likewise.
51618         * lib/posixtm.c: Likewise.
51619         * lib/posixtm.h: Likewise.
51620         * lib/posixver.c: Likewise.
51621         * lib/printf-frexp.c: Likewise.
51622         * lib/printf-frexp.h: Likewise.
51623         * lib/printf-frexpl.c: Likewise.
51624         * lib/printf-frexpl.h: Likewise.
51625         * lib/printf.c: Likewise.
51626         * lib/progname.c: Likewise.
51627         * lib/progname.h: Likewise.
51628         * lib/progreloc.c: Likewise.
51629         * lib/putenv.c: Likewise.
51630         * lib/quote.c: Likewise.
51631         * lib/quote.h: Likewise.
51632         * lib/quotearg.c: Likewise.
51633         * lib/quotearg.h: Likewise.
51634         * lib/raise.c: Likewise.
51635         * lib/readline.c: Likewise.
51636         * lib/readline.h: Likewise.
51637         * lib/readlink.c: Likewise.
51638         * lib/readtokens.c: Likewise.
51639         * lib/readtokens.h: Likewise.
51640         * lib/readtokens0.c: Likewise.
51641         * lib/readtokens0.h: Likewise.
51642         * lib/readutmp.c: Likewise.
51643         * lib/readutmp.h: Likewise.
51644         * lib/realloc.c: Likewise.
51645         * lib/relocwrapper.c: Likewise.
51646         * lib/rename-dest-slash.c: Likewise.
51647         * lib/rename.c: Likewise.
51648         * lib/rmdir.c: Likewise.
51649         * lib/rpmatch.c: Likewise.
51650         * lib/safe-read.c: Likewise.
51651         * lib/safe-read.h: Likewise.
51652         * lib/safe-write.c: Likewise.
51653         * lib/safe-write.h: Likewise.
51654         * lib/same-inode.h: Likewise.
51655         * lib/same.c: Likewise.
51656         * lib/same.h: Likewise.
51657         * lib/save-cwd.c: Likewise.
51658         * lib/save-cwd.h: Likewise.
51659         * lib/savedir.c: Likewise.
51660         * lib/savedir.h: Likewise.
51661         * lib/savewd.c: Likewise.
51662         * lib/savewd.h: Likewise.
51663         * lib/search.in.h: Likewise.
51664         * lib/setenv.c: Likewise.
51665         * lib/setenv.h: Likewise.
51666         * lib/settime.c: Likewise.
51667         * lib/sh-quote.c: Likewise.
51668         * lib/sh-quote.h: Likewise.
51669         * lib/sig2str.c: Likewise.
51670         * lib/sig2str.h: Likewise.
51671         * lib/signal.in.h: Likewise.
51672         * lib/signbitd.c: Likewise.
51673         * lib/signbitf.c: Likewise.
51674         * lib/signbitl.c: Likewise.
51675         * lib/sigprocmask.c: Likewise.
51676         * lib/sincosl.c: Likewise.
51677         * lib/sleep.c: Likewise.
51678         * lib/sprintf.c: Likewise.
51679         * lib/sqrtl.c: Likewise.
51680         * lib/stat-time.h: Likewise.
51681         * lib/stdio--.h: Likewise.
51682         * lib/stdio-safer.h: Likewise.
51683         * lib/stdlib--.h: Likewise.
51684         * lib/stdlib-safer.h: Likewise.
51685         * lib/stdlib.in.h: Likewise.
51686         * lib/stpcpy.c: Likewise.
51687         * lib/stpncpy.c: Likewise.
51688         * lib/strchrnul.c: Likewise.
51689         * lib/strcspn.c: Likewise.
51690         * lib/strerror.c: Likewise.
51691         * lib/strftime.c: Likewise.
51692         * lib/strftime.h: Likewise.
51693         * lib/striconveh.c: Likewise.
51694         * lib/striconveh.h: Likewise.
51695         * lib/striconveha.c: Likewise.
51696         * lib/striconveha.h: Likewise.
51697         * lib/stripslash.c: Likewise.
51698         * lib/strnlen1.c: Likewise.
51699         * lib/strnlen1.h: Likewise.
51700         * lib/strtod.c: Likewise.
51701         * lib/strtoimax.c: Likewise.
51702         * lib/strtok_r.c: Likewise.
51703         * lib/strtol.c: Likewise.
51704         * lib/strtoll.c: Likewise.
51705         * lib/strtoul.c: Likewise.
51706         * lib/strtoull.c: Likewise.
51707         * lib/sysexits.in.h: Likewise.
51708         * lib/tempname.c: Likewise.
51709         * lib/tempname.h: Likewise.
51710         * lib/timespec.h: Likewise.
51711         * lib/tls.c: Likewise.
51712         * lib/tls.h: Likewise.
51713         * lib/tmpdir.c: Likewise.
51714         * lib/tmpdir.h: Likewise.
51715         * lib/tmpfile-safer.c: Likewise.
51716         * lib/tmpfile.c: Likewise.
51717         * lib/trigl.c: Likewise.
51718         * lib/trigl.h: Likewise.
51719         * lib/trim.c: Likewise.
51720         * lib/trim.h: Likewise.
51721         * lib/trunc.c: Likewise.
51722         * lib/truncf.c: Likewise.
51723         * lib/truncl.c: Likewise.
51724         * lib/tsearch.c: Likewise.
51725         * lib/unicodeio.c: Likewise.
51726         * lib/unicodeio.h: Likewise.
51727         * lib/unistd--.h: Likewise.
51728         * lib/unistd-safer.h: Likewise.
51729         * lib/unistdio/ulc-fprintf.c: Likewise.
51730         * lib/unistdio/ulc-vfprintf.c: Likewise.
51731         * lib/unlinkdir.c: Likewise.
51732         * lib/unlinkdir.h: Likewise.
51733         * lib/unlocked-io.h: Likewise.
51734         * lib/unsetenv.c: Likewise.
51735         * lib/userspec.c: Likewise.
51736         * lib/utime.c: Likewise.
51737         * lib/utimecmp.c: Likewise.
51738         * lib/utimecmp.h: Likewise.
51739         * lib/utimens.c: Likewise.
51740         * lib/verify.h: Likewise.
51741         * lib/verror.c: Likewise.
51742         * lib/verror.h: Likewise.
51743         * lib/version-etc-fsf.c: Likewise.
51744         * lib/version-etc.c: Likewise.
51745         * lib/version-etc.h: Likewise.
51746         * lib/vfprintf.c: Likewise.
51747         * lib/vprintf.c: Likewise.
51748         * lib/vsprintf.c: Likewise.
51749         * lib/w32spawn.h: Likewise.
51750         * lib/wait-process.c: Likewise.
51751         * lib/wait-process.h: Likewise.
51752         * lib/wcwidth.c: Likewise.
51753         * lib/write-any-file.c: Likewise.
51754         * lib/xalloc-die.c: Likewise.
51755         * lib/xalloc.h: Likewise.
51756         * lib/xasprintf.c: Likewise.
51757         * lib/xgetcwd.c: Likewise.
51758         * lib/xgetcwd.h: Likewise.
51759         * lib/xgetdomainname.c: Likewise.
51760         * lib/xgetdomainname.h: Likewise.
51761         * lib/xgethostname.c: Likewise.
51762         * lib/xmalloc.c: Likewise.
51763         * lib/xmalloca.c: Likewise.
51764         * lib/xmalloca.h: Likewise.
51765         * lib/xmemcoll.c: Likewise.
51766         * lib/xnanosleep.c: Likewise.
51767         * lib/xreadlink.c: Likewise.
51768         * lib/xreadlink.h: Likewise.
51769         * lib/xsetenv.c: Likewise.
51770         * lib/xsetenv.h: Likewise.
51771         * lib/xstriconv.c: Likewise.
51772         * lib/xstriconv.h: Likewise.
51773         * lib/xstrndup.c: Likewise.
51774         * lib/xstrndup.h: Likewise.
51775         * lib/xstrtod.c: Likewise.
51776         * lib/xstrtod.h: Likewise.
51777         * lib/xstrtol-error.c: Likewise.
51778         * lib/xstrtol.c: Likewise.
51779         * lib/xstrtol.h: Likewise.
51780         * lib/xtime.h: Likewise.
51781         * lib/xvasprintf.c: Likewise.
51782         * lib/xvasprintf.h: Likewise.
51783         * lib/yesno.c: Likewise.
51784         * lib/yesno.h: Likewise.
51785         * posix-modules: Likewise.
51786         * tests/test-alloca-opt.c: Likewise.
51787         * tests/test-arcfour.c: Likewise.
51788         * tests/test-arctwo.c: Likewise.
51789         * tests/test-argmatch.c: Likewise.
51790         * tests/test-argp-2.sh: Likewise.
51791         * tests/test-argp.c: Likewise.
51792         * tests/test-arpa_inet.c: Likewise.
51793         * tests/test-array_list.c: Likewise.
51794         * tests/test-array_oset.c: Likewise.
51795         * tests/test-atexit.c: Likewise.
51796         * tests/test-avltree_list.c: Likewise.
51797         * tests/test-avltree_oset.c: Likewise.
51798         * tests/test-avltreehash_list.c: Likewise.
51799         * tests/test-base64.c: Likewise.
51800         * tests/test-binary-io.c: Likewise.
51801         * tests/test-byteswap.c: Likewise.
51802         * tests/test-c-ctype.c: Likewise.
51803         * tests/test-c-strcasecmp.c: Likewise.
51804         * tests/test-c-strcasestr.c: Likewise.
51805         * tests/test-c-strncasecmp.c: Likewise.
51806         * tests/test-c-strstr.c: Likewise.
51807         * tests/test-canonicalize-lgpl.c: Likewise.
51808         * tests/test-canonicalize.c: Likewise.
51809         * tests/test-carray_list.c: Likewise.
51810         * tests/test-ceilf.c: Likewise.
51811         * tests/test-ceill.c: Likewise.
51812         * tests/test-count-one-bits.c: Likewise.
51813         * tests/test-crc.c: Likewise.
51814         * tests/test-dirname.c: Likewise.
51815         * tests/test-fbufmode.c: Likewise.
51816         * tests/test-fcntl.c: Likewise.
51817         * tests/test-fflush.c: Likewise.
51818         * tests/test-floorf.c: Likewise.
51819         * tests/test-floorl.c: Likewise.
51820         * tests/test-fopen.c: Likewise.
51821         * tests/test-fprintf-posix.c: Likewise.
51822         * tests/test-fprintf-posix.h: Likewise.
51823         * tests/test-fpurge.c: Likewise.
51824         * tests/test-freadable.c: Likewise.
51825         * tests/test-freadahead.c: Likewise.
51826         * tests/test-freading.c: Likewise.
51827         * tests/test-freopen.c: Likewise.
51828         * tests/test-frexp.c: Likewise.
51829         * tests/test-frexpl.c: Likewise.
51830         * tests/test-fseek.c: Likewise.
51831         * tests/test-fseeko.c: Likewise.
51832         * tests/test-fseterr.c: Likewise.
51833         * tests/test-fstrcmp.c: Likewise.
51834         * tests/test-ftell.c: Likewise.
51835         * tests/test-ftello.c: Likewise.
51836         * tests/test-fwritable.c: Likewise.
51837         * tests/test-fwriting.c: Likewise.
51838         * tests/test-getaddrinfo.c: Likewise.
51839         * tests/test-getpass.c: Likewise.
51840         * tests/test-gettimeofday.c: Likewise.
51841         * tests/test-hmac-md5.c: Likewise.
51842         * tests/test-hmac-sha1.c: Likewise.
51843         * tests/test-iconv.c: Likewise.
51844         * tests/test-iconvme.c: Likewise.
51845         * tests/test-inttypes.c: Likewise.
51846         * tests/test-isnan.c: Likewise.
51847         * tests/test-isnanf.c: Likewise.
51848         * tests/test-isnanl-nolibm.c: Likewise.
51849         * tests/test-isnanl.c: Likewise.
51850         * tests/test-isnanl.h: Likewise.
51851         * tests/test-ldexpl.c: Likewise.
51852         * tests/test-linked_list.c: Likewise.
51853         * tests/test-linkedhash_list.c: Likewise.
51854         * tests/test-locale.c: Likewise.
51855         * tests/test-localename.c: Likewise.
51856         * tests/test-lock.c: Likewise.
51857         * tests/test-lseek.c: Likewise.
51858         * tests/test-malloca.c: Likewise.
51859         * tests/test-math.c: Likewise.
51860         * tests/test-mbscasecmp.c: Likewise.
51861         * tests/test-mbscasestr1.c: Likewise.
51862         * tests/test-mbscasestr2.c: Likewise.
51863         * tests/test-mbscasestr3.c: Likewise.
51864         * tests/test-mbscasestr4.c: Likewise.
51865         * tests/test-mbschr.c: Likewise.
51866         * tests/test-mbscspn.c: Likewise.
51867         * tests/test-mbsncasecmp.c: Likewise.
51868         * tests/test-mbspbrk.c: Likewise.
51869         * tests/test-mbspcasecmp.c: Likewise.
51870         * tests/test-mbsrchr.c: Likewise.
51871         * tests/test-mbsspn.c: Likewise.
51872         * tests/test-mbsstr1.c: Likewise.
51873         * tests/test-mbsstr2.c: Likewise.
51874         * tests/test-mbsstr3.c: Likewise.
51875         * tests/test-md5.c: Likewise.
51876         * tests/test-memmem.c: Likewise.
51877         * tests/test-netinet_in.c: Likewise.
51878         * tests/test-open.c: Likewise.
51879         * tests/test-printf-frexp.c: Likewise.
51880         * tests/test-printf-frexpl.c: Likewise.
51881         * tests/test-printf-posix.c: Likewise.
51882         * tests/test-printf-posix.h: Likewise.
51883         * tests/test-rbtree_list.c: Likewise.
51884         * tests/test-rbtree_oset.c: Likewise.
51885         * tests/test-rbtreehash_list.c: Likewise.
51886         * tests/test-read-file.c: Likewise.
51887         * tests/test-rijndael.c: Likewise.
51888         * tests/test-search.c: Likewise.
51889         * tests/test-signbit.c: Likewise.
51890         * tests/test-sleep.c: Likewise.
51891         * tests/test-snprintf-posix.c: Likewise.
51892         * tests/test-snprintf-posix.h: Likewise.
51893         * tests/test-snprintf.c: Likewise.
51894         * tests/test-sprintf-posix.c: Likewise.
51895         * tests/test-sprintf-posix.h: Likewise.
51896         * tests/test-stat-time.c: Likewise.
51897         * tests/test-stdbool.c: Likewise.
51898         * tests/test-stdint.c: Likewise.
51899         * tests/test-stdio.c: Likewise.
51900         * tests/test-stdlib.c: Likewise.
51901         * tests/test-stpncpy.c: Likewise.
51902         * tests/test-strcasestr.c: Likewise.
51903         * tests/test-striconv.c: Likewise.
51904         * tests/test-striconveh.c: Likewise.
51905         * tests/test-striconveha.c: Likewise.
51906         * tests/test-string.c: Likewise.
51907         * tests/test-sys_select.c: Likewise.
51908         * tests/test-sys_socket.c: Likewise.
51909         * tests/test-sys_stat.c: Likewise.
51910         * tests/test-sys_time.c: Likewise.
51911         * tests/test-sysexits.c: Likewise.
51912         * tests/test-time.c: Likewise.
51913         * tests/test-tls.c: Likewise.
51914         * tests/test-trunc.c: Likewise.
51915         * tests/test-truncf.c: Likewise.
51916         * tests/test-truncl.c: Likewise.
51917         * tests/test-unistd.c: Likewise.
51918         * tests/test-vasnprintf-posix.c: Likewise.
51919         * tests/test-vasnprintf-posix2.c: Likewise.
51920         * tests/test-vasnprintf.c: Likewise.
51921         * tests/test-vasprintf-posix.c: Likewise.
51922         * tests/test-vasprintf.c: Likewise.
51923         * tests/test-verify.c: Likewise.
51924         * tests/test-vfprintf-posix.c: Likewise.
51925         * tests/test-vprintf-posix.c: Likewise.
51926         * tests/test-vsnprintf-posix.c: Likewise.
51927         * tests/test-vsnprintf.c: Likewise.
51928         * tests/test-vsprintf-posix.c: Likewise.
51929         * tests/test-wchar.c: Likewise.
51930         * tests/test-wctype.c: Likewise.
51931         * tests/test-wcwidth.c: Likewise.
51932         * tests/test-xstrtol.c: Likewise.
51933         * tests/test-xvasprintf.c: Likewise.
51934         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
51935         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
51936         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
51937         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
51938         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
51939         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
51940         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
51941         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
51942         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
51943         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
51944         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
51945         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
51946         * tests/uniname/test-uninames.c: Likewise.
51947         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
51948         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
51949         * tests/unistdio/test-u16-printf1.h: Likewise.
51950         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
51951         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
51952         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
51953         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
51954         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
51955         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
51956         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
51957         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
51958         * tests/unistdio/test-u32-printf1.h: Likewise.
51959         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
51960         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
51961         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
51962         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
51963         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
51964         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
51965         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
51966         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
51967         * tests/unistdio/test-u8-printf1.h: Likewise.
51968         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
51969         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
51970         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
51971         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
51972         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
51973         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
51974         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
51975         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
51976         * tests/unistdio/test-ulc-printf1.h: Likewise.
51977         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
51978         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
51979         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
51980         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
51981         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
51982         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
51983         * tests/uniwidth/test-u16-strwidth.c: Likewise.
51984         * tests/uniwidth/test-u16-width.c: Likewise.
51985         * tests/uniwidth/test-u32-strwidth.c: Likewise.
51986         * tests/uniwidth/test-u32-width.c: Likewise.
51987         * tests/uniwidth/test-u8-strwidth.c: Likewise.
51988         * tests/uniwidth/test-u8-width.c: Likewise.
51989         * tests/uniwidth/test-uc_width.c: Likewise.
51990         * config/srclist-update: Likewise.
51991         (fixlicense): Update to GPLv3+.
51992
51993         Change copyright notice from LGPLv2.1+ to LGPLv3+.
51994         * tests/test-tsearch.c: Change copyright notice.
51995
51996         Change copyright notice from LGPLv2.0+ to LGPLv3+.
51997         * lib/c-strcaseeq.h: Change copyright notice.
51998         * lib/streq.h: Likewise.
51999         * lib/uniconv.h: Likewise.
52000         * lib/uniconv/u-conv-from-enc.h: Likewise.
52001         * lib/uniconv/u-conv-to-enc.h: Likewise.
52002         * lib/uniconv/u-strconv-from-enc.h: Likewise.
52003         * lib/uniconv/u-strconv-to-enc.h: Likewise.
52004         * lib/uniconv/u16-conv-from-enc.c: Likewise.
52005         * lib/uniconv/u16-conv-to-enc.c: Likewise.
52006         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
52007         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
52008         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
52009         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
52010         * lib/uniconv/u32-conv-from-enc.c: Likewise.
52011         * lib/uniconv/u32-conv-to-enc.c: Likewise.
52012         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
52013         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
52014         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
52015         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
52016         * lib/uniconv/u8-conv-from-enc.c: Likewise.
52017         * lib/uniconv/u8-conv-to-enc.c: Likewise.
52018         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
52019         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
52020         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
52021         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
52022         * lib/uniname.h: Likewise.
52023         * lib/uniname/uniname.c: Likewise.
52024         * lib/unistdio.h: Likewise.
52025         * lib/unistdio/u-asnprintf.h: Likewise.
52026         * lib/unistdio/u-asprintf.h: Likewise.
52027         * lib/unistdio/u-printf-args.c: Likewise.
52028         * lib/unistdio/u-printf-args.h: Likewise.
52029         * lib/unistdio/u-printf-parse.h: Likewise.
52030         * lib/unistdio/u-snprintf.h: Likewise.
52031         * lib/unistdio/u-sprintf.h: Likewise.
52032         * lib/unistdio/u-vasprintf.h: Likewise.
52033         * lib/unistdio/u-vsnprintf.h: Likewise.
52034         * lib/unistdio/u-vsprintf.h: Likewise.
52035         * lib/unistdio/u16-asnprintf.c: Likewise.
52036         * lib/unistdio/u16-asprintf.c: Likewise.
52037         * lib/unistdio/u16-printf-parse.c: Likewise.
52038         * lib/unistdio/u16-snprintf.c: Likewise.
52039         * lib/unistdio/u16-sprintf.c: Likewise.
52040         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
52041         * lib/unistdio/u16-u16-asprintf.c: Likewise.
52042         * lib/unistdio/u16-u16-snprintf.c: Likewise.
52043         * lib/unistdio/u16-u16-sprintf.c: Likewise.
52044         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
52045         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
52046         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
52047         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
52048         * lib/unistdio/u16-vasnprintf.c: Likewise.
52049         * lib/unistdio/u16-vasprintf.c: Likewise.
52050         * lib/unistdio/u16-vsnprintf.c: Likewise.
52051         * lib/unistdio/u16-vsprintf.c: Likewise.
52052         * lib/unistdio/u32-asnprintf.c: Likewise.
52053         * lib/unistdio/u32-asprintf.c: Likewise.
52054         * lib/unistdio/u32-printf-parse.c: Likewise.
52055         * lib/unistdio/u32-snprintf.c: Likewise.
52056         * lib/unistdio/u32-sprintf.c: Likewise.
52057         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
52058         * lib/unistdio/u32-u32-asprintf.c: Likewise.
52059         * lib/unistdio/u32-u32-snprintf.c: Likewise.
52060         * lib/unistdio/u32-u32-sprintf.c: Likewise.
52061         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
52062         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
52063         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
52064         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
52065         * lib/unistdio/u32-vasnprintf.c: Likewise.
52066         * lib/unistdio/u32-vasprintf.c: Likewise.
52067         * lib/unistdio/u32-vsnprintf.c: Likewise.
52068         * lib/unistdio/u32-vsprintf.c: Likewise.
52069         * lib/unistdio/u8-asnprintf.c: Likewise.
52070         * lib/unistdio/u8-asprintf.c: Likewise.
52071         * lib/unistdio/u8-printf-parse.c: Likewise.
52072         * lib/unistdio/u8-snprintf.c: Likewise.
52073         * lib/unistdio/u8-sprintf.c: Likewise.
52074         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
52075         * lib/unistdio/u8-u8-asprintf.c: Likewise.
52076         * lib/unistdio/u8-u8-snprintf.c: Likewise.
52077         * lib/unistdio/u8-u8-sprintf.c: Likewise.
52078         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
52079         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
52080         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
52081         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
52082         * lib/unistdio/u8-vasnprintf.c: Likewise.
52083         * lib/unistdio/u8-vasprintf.c: Likewise.
52084         * lib/unistdio/u8-vsnprintf.c: Likewise.
52085         * lib/unistdio/u8-vsprintf.c: Likewise.
52086         * lib/unistdio/ulc-asnprintf.c: Likewise.
52087         * lib/unistdio/ulc-asprintf.c: Likewise.
52088         * lib/unistdio/ulc-printf-parse.c: Likewise.
52089         * lib/unistdio/ulc-snprintf.c: Likewise.
52090         * lib/unistdio/ulc-sprintf.c: Likewise.
52091         * lib/unistdio/ulc-vasnprintf.c: Likewise.
52092         * lib/unistdio/ulc-vasprintf.c: Likewise.
52093         * lib/unistdio/ulc-vsnprintf.c: Likewise.
52094         * lib/unistdio/ulc-vsprintf.c: Likewise.
52095         * lib/unistr.h: Likewise.
52096         * lib/unistr/u-cpy-alloc.h: Likewise.
52097         * lib/unistr/u-cpy.h: Likewise.
52098         * lib/unistr/u-endswith.h: Likewise.
52099         * lib/unistr/u-move.h: Likewise.
52100         * lib/unistr/u-set.h: Likewise.
52101         * lib/unistr/u-startswith.h: Likewise.
52102         * lib/unistr/u-stpcpy.h: Likewise.
52103         * lib/unistr/u-stpncpy.h: Likewise.
52104         * lib/unistr/u-strcat.h: Likewise.
52105         * lib/unistr/u-strcpy.h: Likewise.
52106         * lib/unistr/u-strcspn.h: Likewise.
52107         * lib/unistr/u-strdup.h: Likewise.
52108         * lib/unistr/u-strlen.h: Likewise.
52109         * lib/unistr/u-strncat.h: Likewise.
52110         * lib/unistr/u-strncpy.h: Likewise.
52111         * lib/unistr/u-strnlen.h: Likewise.
52112         * lib/unistr/u-strpbrk.h: Likewise.
52113         * lib/unistr/u-strspn.h: Likewise.
52114         * lib/unistr/u-strstr.h: Likewise.
52115         * lib/unistr/u-strtok.h: Likewise.
52116         * lib/unistr/u16-check.c: Likewise.
52117         * lib/unistr/u16-chr.c: Likewise.
52118         * lib/unistr/u16-cmp.c: Likewise.
52119         * lib/unistr/u16-cpy-alloc.c: Likewise.
52120         * lib/unistr/u16-cpy.c: Likewise.
52121         * lib/unistr/u16-endswith.c: Likewise.
52122         * lib/unistr/u16-mblen.c: Likewise.
52123         * lib/unistr/u16-mbsnlen.c: Likewise.
52124         * lib/unistr/u16-mbtouc-aux.c: Likewise.
52125         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
52126         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
52127         * lib/unistr/u16-mbtouc.c: Likewise.
52128         * lib/unistr/u16-mbtoucr.c: Likewise.
52129         * lib/unistr/u16-move.c: Likewise.
52130         * lib/unistr/u16-next.c: Likewise.
52131         * lib/unistr/u16-prev.c: Likewise.
52132         * lib/unistr/u16-set.c: Likewise.
52133         * lib/unistr/u16-startswith.c: Likewise.
52134         * lib/unistr/u16-stpcpy.c: Likewise.
52135         * lib/unistr/u16-stpncpy.c: Likewise.
52136         * lib/unistr/u16-strcat.c: Likewise.
52137         * lib/unistr/u16-strchr.c: Likewise.
52138         * lib/unistr/u16-strcmp.c: Likewise.
52139         * lib/unistr/u16-strcpy.c: Likewise.
52140         * lib/unistr/u16-strcspn.c: Likewise.
52141         * lib/unistr/u16-strdup.c: Likewise.
52142         * lib/unistr/u16-strlen.c: Likewise.
52143         * lib/unistr/u16-strmblen.c: Likewise.
52144         * lib/unistr/u16-strmbtouc.c: Likewise.
52145         * lib/unistr/u16-strncat.c: Likewise.
52146         * lib/unistr/u16-strncmp.c: Likewise.
52147         * lib/unistr/u16-strncpy.c: Likewise.
52148         * lib/unistr/u16-strnlen.c: Likewise.
52149         * lib/unistr/u16-strpbrk.c: Likewise.
52150         * lib/unistr/u16-strrchr.c: Likewise.
52151         * lib/unistr/u16-strspn.c: Likewise.
52152         * lib/unistr/u16-strstr.c: Likewise.
52153         * lib/unistr/u16-strtok.c: Likewise.
52154         * lib/unistr/u16-to-u32.c: Likewise.
52155         * lib/unistr/u16-to-u8.c: Likewise.
52156         * lib/unistr/u16-uctomb-aux.c: Likewise.
52157         * lib/unistr/u16-uctomb.c: Likewise.
52158         * lib/unistr/u32-check.c: Likewise.
52159         * lib/unistr/u32-chr.c: Likewise.
52160         * lib/unistr/u32-cmp.c: Likewise.
52161         * lib/unistr/u32-cpy-alloc.c: Likewise.
52162         * lib/unistr/u32-cpy.c: Likewise.
52163         * lib/unistr/u32-endswith.c: Likewise.
52164         * lib/unistr/u32-mblen.c: Likewise.
52165         * lib/unistr/u32-mbsnlen.c: Likewise.
52166         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
52167         * lib/unistr/u32-mbtouc.c: Likewise.
52168         * lib/unistr/u32-mbtoucr.c: Likewise.
52169         * lib/unistr/u32-move.c: Likewise.
52170         * lib/unistr/u32-next.c: Likewise.
52171         * lib/unistr/u32-prev.c: Likewise.
52172         * lib/unistr/u32-set.c: Likewise.
52173         * lib/unistr/u32-startswith.c: Likewise.
52174         * lib/unistr/u32-stpcpy.c: Likewise.
52175         * lib/unistr/u32-stpncpy.c: Likewise.
52176         * lib/unistr/u32-strcat.c: Likewise.
52177         * lib/unistr/u32-strchr.c: Likewise.
52178         * lib/unistr/u32-strcmp.c: Likewise.
52179         * lib/unistr/u32-strcpy.c: Likewise.
52180         * lib/unistr/u32-strcspn.c: Likewise.
52181         * lib/unistr/u32-strdup.c: Likewise.
52182         * lib/unistr/u32-strlen.c: Likewise.
52183         * lib/unistr/u32-strmblen.c: Likewise.
52184         * lib/unistr/u32-strmbtouc.c: Likewise.
52185         * lib/unistr/u32-strncat.c: Likewise.
52186         * lib/unistr/u32-strncmp.c: Likewise.
52187         * lib/unistr/u32-strncpy.c: Likewise.
52188         * lib/unistr/u32-strnlen.c: Likewise.
52189         * lib/unistr/u32-strpbrk.c: Likewise.
52190         * lib/unistr/u32-strrchr.c: Likewise.
52191         * lib/unistr/u32-strspn.c: Likewise.
52192         * lib/unistr/u32-strstr.c: Likewise.
52193         * lib/unistr/u32-strtok.c: Likewise.
52194         * lib/unistr/u32-to-u16.c: Likewise.
52195         * lib/unistr/u32-to-u8.c: Likewise.
52196         * lib/unistr/u32-uctomb.c: Likewise.
52197         * lib/unistr/u8-check.c: Likewise.
52198         * lib/unistr/u8-chr.c: Likewise.
52199         * lib/unistr/u8-cmp.c: Likewise.
52200         * lib/unistr/u8-cpy-alloc.c: Likewise.
52201         * lib/unistr/u8-cpy.c: Likewise.
52202         * lib/unistr/u8-endswith.c: Likewise.
52203         * lib/unistr/u8-mblen.c: Likewise.
52204         * lib/unistr/u8-mbsnlen.c: Likewise.
52205         * lib/unistr/u8-mbtouc-aux.c: Likewise.
52206         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
52207         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
52208         * lib/unistr/u8-mbtouc.c: Likewise.
52209         * lib/unistr/u8-mbtoucr.c: Likewise.
52210         * lib/unistr/u8-move.c: Likewise.
52211         * lib/unistr/u8-next.c: Likewise.
52212         * lib/unistr/u8-prev.c: Likewise.
52213         * lib/unistr/u8-set.c: Likewise.
52214         * lib/unistr/u8-startswith.c: Likewise.
52215         * lib/unistr/u8-stpcpy.c: Likewise.
52216         * lib/unistr/u8-stpncpy.c: Likewise.
52217         * lib/unistr/u8-strcat.c: Likewise.
52218         * lib/unistr/u8-strchr.c: Likewise.
52219         * lib/unistr/u8-strcmp.c: Likewise.
52220         * lib/unistr/u8-strcpy.c: Likewise.
52221         * lib/unistr/u8-strcspn.c: Likewise.
52222         * lib/unistr/u8-strdup.c: Likewise.
52223         * lib/unistr/u8-strlen.c: Likewise.
52224         * lib/unistr/u8-strmblen.c: Likewise.
52225         * lib/unistr/u8-strmbtouc.c: Likewise.
52226         * lib/unistr/u8-strncat.c: Likewise.
52227         * lib/unistr/u8-strncmp.c: Likewise.
52228         * lib/unistr/u8-strncpy.c: Likewise.
52229         * lib/unistr/u8-strnlen.c: Likewise.
52230         * lib/unistr/u8-strpbrk.c: Likewise.
52231         * lib/unistr/u8-strrchr.c: Likewise.
52232         * lib/unistr/u8-strspn.c: Likewise.
52233         * lib/unistr/u8-strstr.c: Likewise.
52234         * lib/unistr/u8-strtok.c: Likewise.
52235         * lib/unistr/u8-to-u16.c: Likewise.
52236         * lib/unistr/u8-to-u32.c: Likewise.
52237         * lib/unistr/u8-uctomb-aux.c: Likewise.
52238         * lib/unistr/u8-uctomb.c: Likewise.
52239         * lib/unitypes.h: Likewise.
52240         * lib/uniwidth.h: Likewise.
52241         * lib/uniwidth/cjk.h: Likewise.
52242         * lib/uniwidth/u16-strwidth.c: Likewise.
52243         * lib/uniwidth/u16-width.c: Likewise.
52244         * lib/uniwidth/u32-strwidth.c: Likewise.
52245         * lib/uniwidth/u32-width.c: Likewise.
52246         * lib/uniwidth/u8-strwidth.c: Likewise.
52247         * lib/uniwidth/u8-width.c: Likewise.
52248         * lib/uniwidth/width.c: Likewise.
52249
52250 2007-10-07  Bruno Haible  <bruno@clisp.org>
52251
52252         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
52253         The file is still under LGPL (see modules/inttypes).
52254
52255 2007-10-06  Bruno Haible  <bruno@clisp.org>
52256
52257         * modules/trunc (Dependencies): Add 'extensions'.
52258         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
52259         Reported by Ben Pfaff <blp@gnu.org>.
52260
52261 2007-10-06  Bruno Haible  <bruno@clisp.org>
52262
52263         * modules/freopen-tests: New file.
52264         * tests/test-freopen.c: New file.
52265
52266         * modules/fopen-tests: New file.
52267         * tests/test-fopen.c: New file.
52268
52269         * modules/fopen: New file.
52270         * lib/fopen.c: New file.
52271         * m4/fopen.m4: New file.
52272         * modules/freopen: New file.
52273         * lib/freopen.c: New file.
52274         * m4/freopen.m4: New file.
52275         * lib/stdio.in.h (fopen, freopen): New declarations.
52276         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
52277         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
52278         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
52279         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
52280         * doc/functions/fopen.texi: Mention the 'fopen' module.
52281         * doc/functions/freopen.texi: Mention the 'freopen' module.
52282
52283 2007-10-06  Bruno Haible  <bruno@clisp.org>
52284
52285         * modules/open-tests: New file.
52286         * tests/test-open.c: New file.
52287
52288         * modules/open: New file.
52289         * lib/open.c: New file.
52290         * m4/open.m4: New file.
52291         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
52292         lib/open.c does.
52293         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
52294         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
52295         macros.
52296         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
52297         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
52298         REPLACE_OPEN.
52299         * doc/functions/open.texi: Mention the 'open' module.
52300
52301 2007-10-04  Bruno Haible  <bruno@clisp.org>
52302
52303         * modules/ceill-tests: New file.
52304         * tests/test-ceill.c: New file.
52305
52306         * modules/ceill: New file.
52307         * lib/ceill.c: Replace entire file.
52308         * m4/ceill.m4: New file.
52309         * lib/math.in.h (ceill): Replace declaration.
52310         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
52311         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
52312         * doc/functions/ceill.texi: Mention the 'ceill' module.
52313         * modules/mathl (Files): Remove lib/ceill.c.
52314         (Depends-on): Add ceill.
52315
52316 2007-10-04  Bruno Haible  <bruno@clisp.org>
52317
52318         * modules/ceilf-tests: New file.
52319         * tests/test-ceilf.c: New file.
52320
52321         * modules/ceilf: New file.
52322         * lib/ceil.c: New file.
52323         * lib/ceilf.c: New file.
52324         * m4/ceilf.m4: New file.
52325         * lib/math.in.h (ceilf): New declaration.
52326         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
52327         HAVE_DECL_CEILF.
52328         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
52329         HAVE_DECL_CEILF.
52330         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
52331
52332 2007-10-04  Bruno Haible  <bruno@clisp.org>
52333
52334         * modules/floorl-tests: New file.
52335         * tests/test-floorl.c: New file.
52336
52337         * modules/floorl: New file.
52338         * lib/floorl.c: Replace entire file.
52339         * m4/floorl.m4: New file.
52340         * lib/math.in.h (floorl): Replace declaration.
52341         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
52342         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
52343         * doc/functions/floorl.texi: Mention the 'floorl' module.
52344         * modules/mathl (Files): Remove lib/floorl.c.
52345         (Depends-on): Add floorl.
52346
52347 2007-10-04  Bruno Haible  <bruno@clisp.org>
52348
52349         * modules/floorf-tests: New file.
52350         * tests/test-floorf.c: New file.
52351
52352         * modules/floorf: New file.
52353         * lib/floor.c: New file.
52354         * lib/floorf.c: New file.
52355         * m4/floorf.m4: New file.
52356         * lib/math.in.h (floorf): New declaration.
52357         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
52358         HAVE_DECL_FLOORF.
52359         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
52360         HAVE_DECL_FLOORF.
52361         * doc/functions/floorf.texi: Mention the 'floorf' module.
52362
52363 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
52364             Bruno Haible  <bruno@clisp.org>
52365
52366         Advertise for the Git server instead of the CVS server.
52367         * doc/gnulib-intro.texi (Steady Development): Mention the Git
52368         repository instead of the CVS one.
52369         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
52370         about all VCS systems generically.
52371         * doc/gnulib.texi (Introduction): Capitalize `Git'.
52372
52373 2007-10-04  Bruno Haible  <bruno@clisp.org>
52374
52375         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
52376         means.
52377         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
52378
52379 2007-10-04  Bruno Haible  <bruno@clisp.org>
52380
52381         * modules/truncl-tests: New file.
52382         * tests/test-truncl.c: New file.
52383
52384         * modules/truncl: New file.
52385         * lib/truncl.c: New file.
52386         * m4/truncl.m4: New file.
52387         * lib/math.in.h (truncl): New declaration.
52388         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
52389         HAVE_DECL_TRUNCL.
52390         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
52391         HAVE_DECL_TRUNCL.
52392         * doc/functions/truncl.texi: Mention the 'truncl' module.
52393
52394 2007-10-04  Bruno Haible  <bruno@clisp.org>
52395
52396         * modules/truncf-tests: New file.
52397         * tests/test-truncf.c: New file.
52398
52399         * modules/truncf: New file.
52400         * lib/trunc.c: Make paramerizable through USE_* macros.
52401         * lib/truncf.c: New file.
52402         * m4/truncf.m4: New file.
52403         * lib/math.in.h (truncf): New declaration.
52404         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
52405         HAVE_DECL_TRUNCF.
52406         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
52407         HAVE_DECL_TRUNCF.
52408         * doc/functions/truncf.texi: Mention the 'truncf' module.
52409
52410 2007-10-03  Bruno Haible  <bruno@clisp.org>
52411
52412         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
52413         augmentation also for tests modules.
52414         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
52415         * modules/atexit-tests (Makefile.am): Likewise.
52416         * modules/binary-io-tests (Makefile.am): Likewise.
52417         * modules/c-strcase-tests (Makefile.am): Likewise.
52418         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
52419         * modules/canonicalize-tests (Makefile.am): Likewise.
52420         * modules/closein-tests (Makefile.am): Likewise.
52421         * modules/fprintf-posix-tests (Makefile.am): Likewise.
52422         * modules/freadahead-tests (Makefile.am): Likewise.
52423         * modules/fseek-tests (Makefile.am): Likewise.
52424         * modules/fseeko-tests (Makefile.am): Likewise.
52425         * modules/ftell-tests (Makefile.am): Likewise.
52426         * modules/ftello-tests (Makefile.am): Likewise.
52427         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
52428         * modules/isnanl-tests (Makefile.am): Likewise.
52429         * modules/lseek-tests (Makefile.am): Likewise.
52430         * modules/mbscasecmp-tests (Makefile.am): Likewise.
52431         * modules/mbscasestr-tests (Makefile.am): Likewise.
52432         * modules/mbschr-tests (Makefile.am): Likewise.
52433         * modules/mbscspn-tests (Makefile.am): Likewise.
52434         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
52435         * modules/mbspbrk-tests (Makefile.am): Likewise.
52436         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
52437         * modules/mbsrchr-tests (Makefile.am): Likewise.
52438         * modules/mbsspn-tests (Makefile.am): Likewise.
52439         * modules/mbsstr-tests (Makefile.am): Likewise.
52440         * modules/printf-posix-tests (Makefile.am): Likewise.
52441         * modules/snprintf-posix-tests (Makefile.am): Likewise.
52442         * modules/sprintf-posix-tests (Makefile.am): Likewise.
52443         * modules/tsearch-tests (Makefile.am): Likewise.
52444         * modules/uniname/uniname-tests (Makefile.am): Likewise.
52445         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
52446         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
52447         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
52448         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
52449         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
52450         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
52451         * modules/vprintf-posix-tests (Makefile.am): Likewise.
52452         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
52453         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
52454         * modules/xstrtoimax-tests (Makefile.am): Likewise.
52455         * modules/xstrtol-tests (Makefile.am): Likewise.
52456         * modules/xstrtoumax-tests (Makefile.am): Likewise.
52457         * modules/yesno-tests (Makefile.am): Likewise.
52458
52459 2007-10-03  Bruno Haible  <bruno@clisp.org>
52460
52461         * modules/trunc-tests: New file.
52462         * tests/test-trunc.c: New file.
52463
52464         * modules/trunc: New file.
52465         * lib/trunc.c: New file.
52466         * m4/trunc.m4: New file.
52467         * lib/math.in.h (trunc): New declaration.
52468         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
52469         HAVE_DECL_TRUNC.
52470         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
52471         HAVE_DECL_TRUNC.
52472         * doc/functions/trunc.texi: Mention the 'trunc' module.
52473
52474 2007-10-03  Bruno Haible  <bruno@clisp.org>
52475
52476         * tests/test-fpending.c: New file, mostly copied
52477         from coreutils/lib/t-fpending.c.
52478         * modules/fpending-tests: New file.
52479
52480 2007-10-03  Bruno Haible  <bruno@clisp.org>
52481
52482         Port the stdio extensions to QNX (untested).
52483         * lib/fseterr.c (fseterr): Add support for QNX.
52484         * lib/fbufmode.c (fbufmode): Likewise.
52485         * lib/freadable.c (freadable): Likewise.
52486         * lib/fwritable.c (fwritable): Likewise.
52487         * lib/freading.c (freading): Likewise.
52488         * lib/fwriting.c (fwriting): Likewise.
52489         * lib/freadahead.c (freadahed): Likewise.
52490         * lib/fpurge.c (fpurge): Likewise.
52491         * lib/fseeko.c (rpl_fseeko): Likewise.
52492
52493 2007-10-03  Bruno Haible  <bruno@clisp.org>
52494             Jim Meyering  <jim@meyering.net>
52495             Eric Blake  <ebb9@byu.net>
52496
52497         * doc/relocatable.texi: Use @command instead of @program.
52498
52499 2007-10-02  Jim Meyering  <jim@meyering.net>
52500
52501         Perform one more "_.h" -> ".in.h" substitution.
52502         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
52503         instead of unistd_.h here, too.
52504
52505 2007-10-01  Bruno Haible  <bruno@clisp.org>
52506
52507         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
52508         Needed for the alloca-opt module.
52509
52510 2007-09-30  Bruno Haible  <bruno@clisp.org>
52511
52512         * lib/alloca.in.h: Renamed from lib/alloca_.h.
52513         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
52514         alloca_.h.
52515         * lib/argz.in.h: Renamed from lib/argz_.h.
52516         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
52517         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
52518         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
52519         byteswap_.h.
52520         * lib/dirent.in.h: Renamed from lib/dirent_.h.
52521         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
52522         dirent_.h.
52523         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
52524         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
52525         fcntl_.h.
52526         * lib/float.in.h: Renamed from lib/float_.h.
52527         * modules/float (Files, Makefile.am): Use float.in.h instead of
52528         float_.h.
52529         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
52530         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
52531         fnmatch_.h.
52532         * lib/getopt.in.h: Renamed from lib/getopt_.h.
52533         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
52534         getopt_.h.
52535         * lib/glob.in.h: Renamed from lib/glob_.h.
52536         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
52537         * lib/iconv.in.h: Renamed from lib/iconv_.h.
52538         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
52539         iconv_.h.
52540         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
52541         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
52542         inttypes_.h.
52543         * lib/locale.in.h: Renamed from lib/locale_.h.
52544         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
52545         locale_.h.
52546         * lib/math.in.h: Renamed from lib/math_.h.
52547         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
52548         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
52549         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
52550         of netinet_in_.h. Add dependency.
52551         * lib/poll.in.h: Renamed from lib/poll_.h.
52552         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
52553         * lib/search.in.h: Renamed from lib/search_.h.
52554         * modules/search (Files, Makefile.am): Use search.in.h instead of
52555         search_.h.
52556         * lib/signal.in.h: Renamed from lib/signal_.h.
52557         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
52558         _signal.h.
52559         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
52560         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
52561         stdbool_.h.
52562         * lib/stdint.in.h: Renamed from lib/stdint_.h.
52563         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
52564         stdint_.h.
52565         * lib/stdio.in.h: Renamed from lib/stdio_.h.
52566         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
52567         stdio_.h.
52568         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
52569         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
52570         stdlib_.h.
52571         * lib/string.in.h: Renamed from lib/string_.h.
52572         * modules/string (Files, Makefile.am): Use string.in.h instead of
52573         string_.h.
52574         * doc/gnulib-tool.texi (Initial import): Update.
52575         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
52576         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
52577         of sys_select_.h. Add dependency.
52578         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
52579         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
52580         of sys_socket_.h.
52581         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
52582         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
52583         sys_stat_.h.
52584         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
52585         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
52586         sys_time_.h.
52587         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
52588         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
52589         sysexits_.h.
52590         * lib/time.in.h: Renamed from lib/time_.h.
52591         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
52592         * lib/unistd.in.h: Renamed from lib/unistd_.h.
52593         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
52594         unistd_.h.
52595         * lib/wchar.in.h: Renamed from lib/wchar_.h.
52596         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
52597         wchar_.h.
52598         * lib/wctype.in.h: Renamed from lib/wctype_.h.
52599         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
52600         wctype_.h.
52601         * build-aux/bootstrap (slurp): Update.
52602         * lib/.cppi-disable: Update.
52603
52604 2007-09-30  Bruno Haible  <bruno@clisp.org>
52605
52606         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
52607         Needed on BeOS.
52608
52609 2007-09-30  Bruno Haible  <bruno@clisp.org>
52610
52611         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
52612
52613 2007-09-29  Bruno Haible  <bruno@clisp.org>
52614
52615         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
52616
52617 2007-09-29  Bruno Haible  <bruno@clisp.org>
52618
52619         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
52620         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
52621         * build-aux/install-reloc: Compile also areadlink.c.
52622         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
52623
52624 2007-09-29  Bruno Haible  <bruno@clisp.org>
52625
52626         * gnulib-tool (func_emit_initmacro_done): Indentation.
52627
52628 2007-09-29  Bruno Haible  <bruno@clisp.org>
52629
52630         * README: Add CVS checkout update instructions.
52631         Info from Bob Proulx <bob@proulx.com>.
52632
52633 2007-09-28  Eric Blake  <ebb9@byu.net>
52634
52635         Provide move-if-change.
52636         * build-aux/move-if-change: New file, based on best practice
52637         rather than any canonical upstream location.
52638
52639 2007-09-28  Jim Meyering  <jim@meyering.net>
52640
52641         Fix canonicalize loop-detection corner case.
52642         Do not attempt to stat the symlink values stored via seen_triple.
52643         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
52644         on linux-2.6.18, (but not 2.6.22).
52645         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
52646         triple_compare.  The former compares dev,ino,filename, while the latter
52647         would actually stat dirname(filename) when dev and ino were equal.
52648         * lib/hash-triple.c: Install <string.h>.
52649         (STREQ): Define.
52650         (triple_compare_ino_str): New function.
52651         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
52652
52653 2007-09-28  Eric Blake  <ebb9@byu.net>
52654
52655         Enforce that AC_REPLACE_FUNCS files exist.
52656         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
52657         override check for typos.
52658
52659         Fix test-closein on Solaris 10.
52660         * tests/test-closein.c (main): Don't assume stdin can be inherited
52661         closed on all systems.
52662         * tests/test-closein.sh: Likewise.
52663         Reported by Piotr Tarnowski.
52664
52665 2007-09-28  Jim Meyering  <jim@meyering.net>
52666
52667         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
52668
52669 2007-09-27  Jim Meyering  <jim@meyering.net>
52670
52671         canonicalize: Avoid a false-positive cycle failure.
52672         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
52673         Sort.  Remove cycle-check.
52674         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
52675         not cycle-check.h.
52676         (seen_triple): New function.
52677         (canonicalize_filename_mode): Use it instead of cycle-check.
52678         * tests/test-canonicalize.c: Add a test for this bug.
52679         * tests/test-canonicalize.sh: Set up and run the test.
52680
52681         New module, file-set, from coreutils.
52682         * modules/file-set: Define it.
52683         * lib/file-set.c, lib/file-set.h: Implement.
52684
52685         New module, hash-triple, from coreutils.
52686         * modules/hash-triple: Define it.
52687         * lib/hash-triple.c, lib/hash-triple.h: Implement.
52688
52689 2007-09-25  Eric Blake  <ebb9@byu.net>
52690
52691         Fix strerror on Interix.
52692         * lib/string_.h (strerror): Declare replacement.
52693         * doc/functions/strerror.texi (strerror): Document the Interix
52694         shortcoming.
52695         * modules/string (Makefile.am): Support new hooks.
52696         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
52697         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
52698         gl_FUNC_STRERROR_SEPARATE.
52699         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
52700         * lib/strerror.c (rpl_strerror): Provide replacement.
52701         * modules/strerror (Depends-on): Add string.
52702         (configure.ac): Detect use of module.
52703         * tests/test-strerror.c: New file.
52704         * modules/strerror-tests: New test module.
52705         * modules/argp (Depends-on): Add strerror.
52706         * modules/error (Depends-on): Likewise.
52707         Reported by Martin Koeppe.
52708
52709 2007-09-24  Bruno Haible  <bruno@clisp.org>
52710
52711         * README: Update git instructions.
52712
52713 2007-09-24  Eric Blake  <ebb9@byu.net>
52714
52715         Revert fpending breakage from 2007-09-08.
52716         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
52717         __fpending.c.
52718
52719 2007-09-24  Jim Meyering  <jim@meyering.net>
52720
52721         filenamecat.c: Add a test.
52722         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
52723         showing how the function works when DIR is the empty string.
52724
52725 2007-09-21  Simon Josefsson  <simon@josefsson.org>
52726
52727         * tests/test-canonicalize.sh: Turn on executable bit.
52728
52729 2007-09-19  Eric Blake  <ebb9@byu.net>
52730
52731         * README: Update CVS instructions.
52732
52733 2007-09-18  Bruno Haible  <bruno@clisp.org>
52734
52735         * modules/areadlink: New file.
52736         * lib/areadlink.h (areadlink): New declaration.
52737         * lib/areadlink.c: New file, based on lib/xreadlink.c.
52738
52739 2007-09-17  Jim Meyering  <jim@meyering.net>
52740
52741         * lib/savewd.c (ESTALE) [!defined]: Define.
52742         Reported to be required on Interix by Martin Koeppe.
52743
52744 2007-09-17  Bruno Haible  <bruno@clisp.org>
52745
52746         * gnulib-tool (func_version): Use $version.
52747
52748 2007-09-16  Bruno Haible  <bruno@clisp.org>
52749
52750         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
52751         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
52752         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
52753         Reported by Greg Schafer <gschafer@zip.com.au>.
52754
52755 2007-09-15  Bruno Haible  <bruno@clisp.org>
52756
52757         * gnulib-tool (sed): Try a little harder to make bash understand the
52758         alias.
52759         Reported by Bruce Korb <bruce.korb@gmail.com>.
52760
52761 2007-09-13  Eric Blake  <ebb9@byu.net>
52762
52763         * ChangeLog: Remove conflict markers.
52764
52765 2007-09-13  Simon Josefsson  <simon@josefsson.org>
52766
52767         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
52768         Reported by Bruno Haible <bruno@clisp.org>.
52769
52770 2007-09-12  Bruno Haible  <bruno@clisp.org>
52771
52772         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
52773         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
52774         is not defined.
52775
52776 2007-09-12  Eric Blake  <ebb9@byu.net>
52777
52778         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
52779         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
52780         Autoconf definition.
52781         * modules/euidaccess (Depends-on): Add extensions, for
52782         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
52783         * modules/fnmatch (Depends-on): Likewise.
52784         * modules/getaddrinfo (Depends-on): Likewise.
52785         * modules/getdelim (Depends-on): Likewise.
52786         * modules/getline (Depends-on): Likewise.
52787         * modules/getsubopt (Depends-on): Likewise.
52788         * modules/gettext (Depends-on): Likewise.
52789         * modules/group-member (Depends-on): Likewise.
52790         * modules/mbchar (Depends-on): Likewise.
52791         * modules/memmem (Depends-on): Likewise.
52792         * modules/mempcpy (Depends-on): Likewise.
52793         * modules/memrchr (Depends-on): Likewise.
52794         * modules/pagealign_alloc (Depends-on): Likewise.
52795         * modules/readutmp (Depends-on): Likewise.
52796         * modules/stpcpy (Depends-on): Likewise.
52797         * modules/stpncpy (Depends-on): Likewise.
52798         * modules/strchrnul (Depends-on): Likewise.
52799         * modules/strndup (Depends-on): Likewise.
52800         * modules/strsep (Depends-on): Likewise.
52801         * modules/strverscmp (Depends-on): Likewise.
52802         * modules/vasprintf (Depends-on): Likewise.
52803         * modules/wcwidth (Depends-on): Likewise.
52804         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
52805         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
52806         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
52807         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
52808         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
52809         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
52810         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
52811         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
52812         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
52813         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
52814         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
52815         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
52816         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
52817         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
52818         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
52819         * m4/readutmp.m4 (gl_READUTMP): Likewise.
52820         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
52821         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
52822         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
52823         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
52824         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
52825         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
52826         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
52827         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
52828         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
52829         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
52830         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
52831         so that lock.m4 can be used in gettext without extensions module.
52832
52833 2007-09-11  Bruno Haible  <bruno@clisp.org>
52834
52835         * m4/isc-posix.m4: Remove file.
52836         Suggested by Eric Blake.
52837
52838 2007-09-11  Eric Blake  <ebb9@byu.net>
52839
52840         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
52841
52842 2007-09-10  Bruno Haible  <bruno@clisp.org>
52843
52844         * posix-modules: Fix typo in error message.
52845         Reported by Matt <mkraai@beckman.com>.
52846
52847 2007-09-09  Bruno Haible  <bruno@clisp.org>
52848
52849         * doc/functions/getdelim.texi: Update list of platforms lacking the
52850         function.
52851         * doc/functions/getline.texi: Likewise.
52852
52853 2007-09-09  Jim Meyering  <jim@meyering.net>
52854
52855         * lib/hash.c (hash_initialize): Detect calloc failure.
52856         Reported by Bruno Haible.
52857
52858 2007-09-09  Bruno Haible  <bruno@clisp.org>
52859
52860         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
52861         malloc or realloc fails.
52862
52863 2007-09-09  Bruno Haible  <bruno@clisp.org>
52864
52865         * modules/getcwd (Depends-on): Add malloc-posix.
52866         * modules/glob (Depends-on): Likewise.
52867         * modules/putenv (Depends-on): Likewise.
52868         * modules/strdup (Depends-on): Likewise.
52869         * modules/getdelim (Depends-on): Add realloc-posix.
52870         * modules/read-file (Depends-on): Likewise.
52871
52872 2007-09-09  Bruno Haible  <bruno@clisp.org>
52873
52874         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
52875         (gl_FUNC_MALLOC_POSIX): Require it.
52876         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
52877         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
52878         * modules/realloc (Files): Add m4/malloc.m4.
52879         * modules/calloc (Files): Likewise.
52880
52881 2007-09-09  Bruno Haible  <bruno@clisp.org>
52882
52883         * modules/malloc-posix: New file.
52884         * modules/malloc (Depends-on): Add malloc-posix.
52885         * lib/malloc.c: Include errno.h.
52886         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
52887         and a POSIX-compatible malloc into a single function. Set ENOMEM
52888         when returning NULL.
52889         * m4/malloc.m4: New file.
52890         * doc/functions/malloc.texi: Mention the malloc-posix module.
52891         * lib/stdlib_.h (malloc): New declaration.
52892         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
52893         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
52894         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
52895         and HAVE_MALLOC_POSIX.
52896
52897 2007-09-09  Bruno Haible  <bruno@clisp.org>
52898
52899         * modules/realloc-posix: New file.
52900         * modules/realloc (Depends-on): Add realloc-posix.
52901         * lib/realloc.c: Include errno.h.
52902         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
52903         and a POSIX-compatible realloc into a single function. Set ENOMEM
52904         when returning NULL.
52905         * m4/realloc.m4: New file.
52906         * doc/functions/realloc.texi: Mention the realloc-posix module.
52907         * lib/stdlib_.h (realloc): New declaration.
52908         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
52909         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
52910         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
52911         and HAVE_REALLOC_POSIX.
52912
52913 2007-09-09  Bruno Haible  <bruno@clisp.org>
52914
52915         * modules/calloc-posix: New file.
52916         * modules/calloc (Depends-on): Add calloc-posix.
52917         * lib/calloc.c: Include errno.h.
52918         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
52919         and a POSIX-compatible calloc into a single function. Set ENOMEM
52920         when returning NULL.
52921         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
52922         * doc/functions/calloc.texi: Mention the calloc-posix module.
52923         * lib/stdlib_.h (calloc): New declaration.
52924         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
52925         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
52926         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
52927         and HAVE_CALLOC_POSIX.
52928
52929 2007-09-09  Bruno Haible  <bruno@clisp.org>
52930
52931         Allow for modules to show an arbitrary notice.
52932         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
52933         * gnulib-tool: New option --extract-notice.
52934         (func_usage): Document it.
52935         (sed_extract_prog): Update.
52936         (func_get_notice): New function.
52937         (func_modules_notice): New function.
52938         (func_import, func_create_testdir): Invoke it.
52939         Suggested by Jim Meyering.
52940
52941 2007-09-09  Bruno Haible  <bruno@clisp.org>
52942
52943         * gnulib-tool: New options --verbose, --quiet.
52944         (func_usage): Document them.
52945         (verbose): New variable.
52946         (func_execute_command): New function.
52947         (func_import): Don't show the module list and the file list if
52948         $verbose < 0.
52949         (func_create_testdir): Likewise. Use func_execute_command.
52950         (func_create_megatestdir): Use func_execute_command.
52951
52952 2007-09-08  Bruno Haible  <bruno@clisp.org>
52953
52954         * gnulib-tool (func_import): Prefer rsync over wget when available,
52955         for fetching the PO files.
52956
52957 2007-09-08  Bruno Haible  <bruno@clisp.org>
52958
52959         * posix-modules: New file. Portions copied from gnulib-tool.
52960         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
52961
52962 2007-09-08  Jim Meyering  <jim@meyering.net>
52963
52964         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
52965         * lib/fpending.h: Rename from __fpending.h.
52966         * lib/fpending.c: Rename from __fpending.c.
52967         Include "fpending.h", not "__fpending.h".
52968         * lib/__fpending.h, lib/__fpending.c: Remove files.
52969         * modules/fpending (Files): Reflect new file names.
52970         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
52971
52972 2007-09-08  Bruno Haible  <bruno@clisp.org>
52973
52974         * m4/inttypes-h.m4: Remove stub file.
52975
52976 2007-09-07  Simon Josefsson  <simon@josefsson.org>
52977
52978         * doc/headers/stdint.texi: Discuss #include_next issue.
52979
52980 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
52981
52982         * build-aux/bootstrap: Remove obsolete comment about wget --help.
52983
52984 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52985
52986         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
52987         in variable name.
52988
52989 2007-09-03  Jim Meyering  <jim@meyering.net>
52990
52991         New module: git-version-gen.
52992         * modules/git-version-gen: New file.
52993
52994         Import changes from coreutils for bootstrap script.
52995
52996         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
52997
52998         bootstrap: uses rsync to download the .po files
52999         * build-aux/bootstrap (po_download_command_format): New global.
53000         (download_po_files): Use rsync.
53001         (update_po_files): Don't remove .po files after download,
53002         so future rsync runs can take advantage of the copies.
53003
53004         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
53005
53006         Solve the unnecessary-.po-file-regeneration problem once and for all.
53007         * build-aux/bootstrap (download_po_files): New function, renamed from
53008         get_translations.  Now, downloads, but doesn't update LINGUAS.
53009         (update_po_files): New function.
53010
53011         bootstrap: Ignore more.
53012         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
53013         uniwidth to e.g., lib/.gitignore.
53014         (slurp): Handle the sys_stat_.h -> sys mapping, too.
53015
53016         * build-aux/bootstrap: New setting: vc_ignore.
53017         (insert_sorted_if_absent): Create $file if absent.
53018         Adapt to new, possibly empty, list: $vc_ignore.
53019
53020         bootstrap: generate more ignorable names
53021         * build-aux/bootstrap (slurp): When generating ignorable names,
53022         also map .sin to .sed, .gperf to .c, and .y to .c.
53023
53024 2007-09-03  Jim Meyering  <jim@meyering.net>
53025
53026         * build-aux/git-version-gen: New file, from coreutils.  For details, see
53027         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
53028
53029 2007-09-02  Bruno Haible  <bruno@clisp.org>
53030
53031         Fix mis-recognition of 'mcs' on QNX 6.
53032         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
53033         output contains the string "Mono".
53034         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
53035         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
53036
53037 2007-09-01  Bruno Haible  <bruno@clisp.org>
53038
53039         Fix collision between uniwidth/* and linebreak modules.
53040         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
53041         u32_width): Remove declarations.
53042         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
53043         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
53044         streq3, streq2, streq1, streq0): Remove functions.
53045         (STREQ): Remove macro.
53046         (is_cjk_encoding): Remove function.
53047         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
53048         (uc_width, u8_width, u16_width, u32_width): Remove functions.
53049         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
53050         * NEWS: Document the change.
53051
53052 2007-09-01  Bruno Haible  <bruno@clisp.org>
53053
53054         * lib/streq.h: Add double-inclusion guard.
53055
53056 2007-09-01  Karl Berry  <karl@gnu.org>
53057
53058         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
53059
53060 2007-08-28  Jim Meyering  <jim@meyering.net>
53061
53062         Rename mreadlink_with_size to areadlink_with_size.
53063         * NEWS: Document the change.
53064         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
53065         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
53066         * lib/mreadlink.h: Rename this to...
53067         * lib/areadlink.h: ...this.
53068         * modules/mreadlink-with-size: Rename this to...
53069         * modules/areadlink-with-size: ...this.
53070         * lib/canonicalize.c: Reflect the renaming.
53071         * modules/canonicalize: Likewise.
53072
53073 2007-08-26  Bruno Haible  <bruno@clisp.org>
53074
53075         * gnulib-tool (func_import): When deciding which files to remove,
53076         consider also dangling symbolic links.
53077         Reported by Eric Blake.
53078
53079 2007-08-26  Bruno Haible  <bruno@clisp.org>
53080
53081         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
53082
53083 2007-08-23  Simon Josefsson  <simon@josefsson.org>
53084
53085         * lib/readline.c: Don't include getline.h, the prototype is now
53086         found in stdio.h.
53087
53088 2007-08-23  Jim Meyering  <jim@meyering.net>
53089
53090         Getdelim touchup.
53091         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
53092         around the funlockfile call, since funlockfile never sets errno.
53093         Don't set errno upon failed realloc.
53094
53095 2007-08-22  Eric Blake  <ebb9@byu.net>
53096
53097         Getline touchups.
53098         * lib/getdelim.c (getdelim): Revert regression that required *n to
53099         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
53100         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
53101         getdelim, rather than whether implementation is missing.
53102         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
53103         * lib/stdio_.h (getline): Also declare if replacement is
53104         required.
53105         * doc/functions/getdelim.texi: New file.
53106         * doc/functions/getline.texi: Likewise.
53107         * doc/gnulib.texi (Function Substitutes): Add new files.
53108         Reported by Bruno Haible.
53109
53110 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
53111
53112         * users.txt: Add Guile.
53113
53114 2007-08-22  Eric Blake  <ebb9@byu.net>
53115
53116         * tests/test-getdelim.c (main): Use remove, not unlink.
53117         * tests/test-getline.c (main): Likewise.
53118
53119         Move getline and getdelim into stdio.h, per POSIX 200x.
53120         * modules/getline (Files): Remove getline.h.
53121         (Depends-on): Add stdio.
53122         (configure.ac): Add module indicator.
53123         * modules/getdelim (Files): Remove getdelim.h.
53124         (Depends-on): Add stdio.
53125         (configure.ac): Add module indicator.
53126         * modules/stdio (Makefile.am): Work with new indicators.
53127         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
53128         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
53129         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
53130         * lib/getdelim.h: Delete.
53131         * lib/getline.h: Delete.
53132         * lib/stdio_.h (getdelim, getline): Declare.
53133         * modules/getdelim-tests: New module.
53134         * modules/getline-tests: Likewise.
53135         * tests/test-getdelim.c: New file.
53136         * tests/test-getline.c: Likewise.
53137         * NEWS: Document the change.
53138         * lib/getline.c: Update choice of header.
53139         * lib/csharpcomp.c: Likewise.
53140         * lib/getpass.c: Likewise.
53141         * lib/javacomp.c: Likewise.
53142         * lib/javaversion.c: Likewise.
53143         * lib/yesno.c: Likewise.
53144         * lib/getdelim.c: Likewise.
53145         (getdelim): Set errno on failure, and avoid memory leak.
53146
53147 2007-08-19  Bruno Haible  <bruno@clisp.org>
53148
53149         * modules/closein (Depends-on): Add freadahead.
53150         * lib/closein.c: Include freadahead.h.
53151         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
53152         is zero.
53153
53154 2007-08-19  Bruno Haible  <bruno@clisp.org>
53155
53156         * modules/freadahead-tests: New file.
53157         * tests/test-freadahead.sh: New file.
53158         * tests/test-freadahead.c: New file.
53159
53160         * modules/freadahead: New file.
53161         * lib/freadahead.h: New file.
53162         * lib/freadahead.c: New file.
53163         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
53164         fbufmode, fpurge, freadable, fwritable.
53165
53166 2007-08-19  Eric Blake  <ebb9@byu.net>
53167
53168         Test yesno in combination with closein.
53169         * lib/yesno.c (yesno): Document use of stdin.
53170         * modules/yesno-tests (Files): New module.
53171         * tests/test-yesno.c (main): New file.
53172         * tests/test-yesno.sh: Likewise.
53173
53174 2007-08-19  Bruno Haible  <bruno@clisp.org>
53175
53176         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
53177         * lib/fseeko.c (rpl_fseeko): Likewise.
53178         * lib/fseterr.c (fseterr): Likewise.
53179
53180 2007-08-19  Bruno Haible  <bruno@clisp.org>
53181
53182         * tests/test-lseek.c (main): Disable a test for BeOS.
53183         * doc/functions/lseek.texi: Document the BeOS bug.
53184
53185 2007-08-19  Bruno Haible  <bruno@clisp.org>
53186             Eric Blake  <ebb9@byu.net>
53187
53188         * lib/lseek.c: Include <sys/stat.h>.
53189         (rpl_lseek): Add workaround code also for Unix platforms.
53190         Needed for BeOS.
53191         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
53192         * doc/functions/lseek.texi: Document BeOS definiency.
53193
53194 2007-08-18  Bruno Haible  <bruno@clisp.org>
53195
53196         * modules/fstrcmp-tests: New file.
53197         * tests/test-fstrcmp.c: New file.
53198
53199 2007-08-18  Bruno Haible  <bruno@clisp.org>
53200
53201         * modules/fstrcmp: New file, from GNU gettext with modifications.
53202         * lib/fstrcmp.h: New file, from GNU gettext.
53203         * lib/fstrcmp.c: New file, from GNU gettext.
53204         * MODULES.html.sh (String handling): Add fstrcmp.
53205
53206 2007-08-18  Bruno Haible  <bruno@clisp.org>
53207
53208         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
53209         'bool'.
53210         (diag, compareseq): Remove const from the ctxt argument.
53211         (USE_HEURISTIC): Undefine at the end.
53212
53213 2007-08-18  Jim Meyering  <jim@meyering.net>
53214
53215         New file: lib/idcache.h
53216         * NEWS: Mention the addition.
53217         * modules/idcache (Files): Add lib/idcache.h
53218         * lib/idcache.c: Include "idcache.h".
53219         Don't include <sys/types.h>.
53220         Add a FIXME comment.
53221         Move file-scoped "static" declarations to the top.
53222         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
53223
53224 2007-08-17  Bruno Haible  <bruno@clisp.org>
53225         and Paul Eggert  <eggert@cs.ucla.edu>
53226
53227         * MODULES.html.sh: Add diffseq.
53228         * modules/diffseq: New file.
53229         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
53230         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
53231
53232 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
53233
53234         Import changes from coreutils for bootstrap script.
53235
53236         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
53237
53238         * build-aux/bootstrap (slurp): Work even in environments where
53239         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
53240         current code does not slurp files whose names start with ".", and
53241         this looks like it might be a troublesome area.
53242
53243         2007-07-11  Jim Meyering  <jim@meyering.net>
53244
53245         If there's a GPL vN copyright comment, require that N == 3.
53246
53247         2007-07-08  Jim Meyering  <jim@meyering.net>
53248
53249         Run the coreutils-specific code only if tests/Makefile.am.in exists.
53250         * build-aux/bootstrap (mam_template): Move definition out of loop.
53251
53252         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
53253
53254         * build-aux/bootstrap (symlink_to_dir): Rename function from
53255         symlink_to_gnulib.  Add a directory parameter.  Update all
53256         callers.
53257         (cp_mark_as_generated): Also check for -- and link to -- files in
53258         gl/.
53259
53260         2007-07-08  Jim Meyering  <jim@meyering.net>
53261
53262         Adapt to deeper hierarchy in gnulib.
53263         * build-aux/bootstrap (symlink_to_dir): If the destination
53264         directory doesn't exist, create it. This is required at least for
53265         "lib/uniwidth/cjk.h".
53266
53267         2007-05-15  Jim Meyering  <jim@meyering.net>
53268
53269         * build-aux/bootstrap: Now that generated Makefile.am files
53270         are no longer under version control, they must be created at
53271         bootstrap time.
53272
53273 2007-08-14  Ben Pfaff  <blp@gnu.org>
53274
53275         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
53276
53277 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
53278
53279         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
53280         given the changes below.
53281         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
53282         even on hosts that have padding bits beyond the supported 64.
53283
53284 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
53285
53286         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
53287         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
53288         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
53289         depends on it.
53290         (xstrtol_error): Remove.
53291         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
53292         but with a different signature.
53293         (ATTRIBUTE_NORETURN, __attribute__): New macros.
53294         * lib/xstrtol-error.c: Include exitfail.h.
53295         (xstrtol_fatal): New function, with a different signature from the
53296         old xstrtol_error, so that the caller need not worry about passing
53297         in an exit status, or about storage management of the option argument.
53298         (xstrtol_error): Now a static function.  Redo signature to
53299         implement xstrtol_fatal.  Output the correct number of hyphens in
53300         front of the option so that the caller need not worry about
53301         storage management.
53302         (N_): New macro.
53303         (_): Remove; not used now.
53304         * modules/xstrtol: Depend on getopt.
53305         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
53306         of old STRTOL_FATAL_ERROR macro.
53307         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
53308         of test program.
53309         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
53310         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
53311
53312 2007-08-08  Eric Blake  <ebb9@byu.net>
53313
53314         * lib/xstrtol-error.c: Add missing include.
53315
53316         Move xstrtol messages into gnulib domain, when --pobase is used.
53317         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
53318         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
53319         * modules/xstrtol (Files): Distribute new file.
53320         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
53321         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
53322         * tests/test-xstrtol.c: ...into new file.
53323         * tests/test-xstrtoul.c: Also test xstrtoul.
53324         * tests/test-xstrtoimax.c: Also test xstrtoimax.
53325         * tests/test-xstrtoumax.c: Also test xstrtoumax.
53326         * tests/test-xstrtol.sh: Drive the tests.
53327         * tests/test-xstrtoimax.sh: Likewise.
53328         * tests/test-xstrtoumax.sh: Likewise.
53329         * modules/xstrtol-tests: New module.
53330         * modules/xstrtoimax-tests: Likewise.
53331         * modules/xstrtoumax-tests: Likewise.
53332
53333 2007-08-08  Jim Meyering  <jim@meyering.net>
53334
53335         New function: mfile_name_concat.
53336         * lib/filenamecat.c (mfile_name_concat): New function, just like
53337         file_name_concat, but return NULL upon failure rather than exiting
53338         with a diagnostic.
53339         * lib/filenamecat.h: Declare it.
53340
53341 2007-08-07  Bruno Haible  <bruno@clisp.org>
53342
53343         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
53344         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
53345         warning from gcc.
53346         Reported by Eric Blake.
53347
53348 2007-08-07  Simon Josefsson  <simon@josefsson.org>
53349
53350         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
53351         * modules/crypto/arcfour (License): Likewise.
53352         * modules/crypto/des-tests (License): Likewise.
53353         * modules/crypto/gc-arctwo-tests (License): Likewise.
53354         * modules/crypto/gc-des-tests (License): Likewise.
53355         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
53356         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
53357         * modules/crypto/gc-md2-tests (License): Likewise.
53358         * modules/crypto/gc-md4-tests (License): Likewise.
53359         * modules/crypto/gc-md5-tests (License): Likewise.
53360         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
53361         * modules/crypto/gc-rijndael-tests (License): Likewise.
53362         * modules/crypto/gc-sha1-tests (License): Likewise.
53363         * modules/crypto/gc-tests (License): Likewise.
53364         * modules/crypto/hmac-md5 (License): Likewise.
53365         * modules/crypto/hmac-sha1 (License): Likewise.
53366         * modules/crypto/md2-tests (License): Likewise.
53367         * modules/crypto/md4-tests (License): Likewise.
53368         * modules/crypto/md5 (License): Likewise.
53369         * modules/crypto/rijndael (License): Likewise.
53370         * modules/crypto/sha1 (License): Likewise.
53371         * modules/memxor (License): Likewise.
53372
53373 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
53374         and Bruno Haible  <bruno@clisp.org>
53375
53376         * NEWS: Describe interface changes to human, xstrtol.
53377         * lib/human.h: Include <xstrtol.h>.
53378         (human_options): Return enum strtol_error, not int.  Remove
53379         bool arg; take int * instead.
53380         * lib/human.c: Don't include "gettext.h".
53381         (_): Remove; no longer used.
53382         Don't include <xstrtol.h>, since human.h does it.
53383         (human_options): Adjust to abovementioned interface changes.
53384         Do not report error to stderr; that's now the caller's
53385         responsibility.
53386         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
53387         interface change.
53388         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
53389         Str, Argument_type_string.  All uses changed.  Put " argument"
53390         in diagnostics to make them clearer.  Change wording of suffix
53391         message for clarity.
53392         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
53393         Argument_type_string.
53394         (STRTOL_FATAL_WARN): Remove; no longer used.
53395         * modules/human (Depends-on): Remove gettext-h.
53396
53397 2007-08-06  Simon Josefsson  <simon@josefsson.org>
53398
53399         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
53400
53401 2007-07-31  Bruno Haible  <bruno@clisp.org>
53402
53403         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
53404         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
53405         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
53406
53407 2007-07-31  Bruno Haible  <bruno@clisp.org>
53408
53409         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
53410         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
53411
53412 2007-07-30  Bruno Haible  <bruno@clisp.org>
53413
53414         * modules/base64 (License): Use the synonymous term "LGPLv2+".
53415         * modules/c-ctype (License): Likewise.
53416         * modules/c-strcase (License): Likewise.
53417         * modules/check-version (License): Likewise.
53418         * modules/iconv (License): Likewise.
53419         * modules/iconv_open (License): Likewise.
53420         * modules/read-file (License): Likewise.
53421         * modules/striconv (License): Likewise.
53422         * modules/strverscmp (License): Likewise.
53423         * modules/vasprintf (License): Likewise.
53424         * modules/crypto/des (License): Likewise.
53425         * modules/crypto/gc (License): Likewise.
53426         * modules/crypto/gc-arcfour (License): Likewise.
53427         * modules/crypto/gc-arctwo (License): Likewise.
53428         * modules/crypto/gc-des (License): Likewise.
53429         * modules/crypto/gc-hmac-md5 (License): Likewise.
53430         * modules/crypto/gc-hmac-sha1 (License): Likewise.
53431         * modules/crypto/gc-md2 (License): Likewise.
53432         * modules/crypto/gc-md4 (License): Likewise.
53433         * modules/crypto/gc-md5 (License): Likewise.
53434         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
53435         * modules/crypto/gc-random (License): Likewise.
53436         * modules/crypto/gc-rijndael (License): Likewise.
53437         * modules/crypto/gc-sha1 (License): Likewise.
53438         * modules/crypto/md2 (License): Likewise.
53439         * modules/crypto/md4 (License): Likewise.
53440
53441 2007-07-30  Jim Meyering  <jim@meyering.net>
53442
53443         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
53444         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
53445         it has valid stat data.  This bug would cause du not to count the
53446         sizes of inaccessible directories.
53447         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
53448         in <http://bugzilla.redhat.com/250077>.
53449
53450 2007-07-25  Peter O'Gorman  <peter@pogma.com>
53451             Bruno Haible  <bruno@clisp.org>
53452
53453         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
53454         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
53455         #include_next, gives a diagnostic about it, but reports no error in
53456         the exit code.
53457         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
53458
53459 2007-07-24  Ben Pfaff  <blp@gnu.org>
53460
53461         Improve name: "count-one-bits" is better than "popcount".
53462         * MODULES.html.sh: Update name.
53463         * lib/popcount.h: Renamed lib/count-one-bits.h.
53464         (popcount): Renamed count_one_bits.
53465         (popcountl): Renamed count_one_bits_l.
53466         (popcountll): Renamed count_one_bits_ll.
53467         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
53468         * modules/popcount: Renamed module/count-one-bits.
53469         * modules/popcount-tests: Renamed module/count-one-bits-tests.
53470         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
53471
53472 2007-07-23  Ben Pfaff  <blp@gnu.org>
53473
53474         * lib/popcount.h (popcount32): Reduce size of constants, to allow
53475         better code generation, and add U to large constants to avoid
53476         warnings, in non-GCC case.
53477         Suggested by Bruno Haible.
53478
53479 2007-07-23  Ben Pfaff  <blp@gnu.org>
53480
53481         * lib/popcount.h: Use verify_true instead of if...abort.
53482         * modules/popcount: Depend on verify module.
53483         Suggested by Jim Meyering.
53484
53485 2007-07-23  Bruno Haible  <bruno@clisp.org>
53486
53487         * gnulib-tool (func_import): Create a .cvsignore file also when the
53488         directory is not yet in CVS but the toplevel directory is. When
53489         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
53490         Reported by Karl Berry.
53491
53492 2007-07-22  Ben Pfaff  <blp@gnu.org>
53493
53494         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
53495         case.
53496         Suggested by Eric Blake.
53497
53498 2007-07-22  Ben Pfaff  <blp@gnu.org>
53499
53500         New module: popcount.
53501         * MODULES.html.sh: Add popcount.
53502         * modules/popcount: New file.
53503         * modules/popcount-tests: New file.
53504         * tests/test-popcount.c: New file.
53505         * lib/popcount.h: New file.
53506         * m4/popcount.m4: New file.
53507
53508 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
53509
53510         * build-aux/announce-gen: Update to GPLv3.
53511
53512         * build-aux/config.guess: Update from config.
53513
53514 2007-07-21  Bruno Haible  <bruno@clisp.org>
53515
53516         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
53517         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
53518
53519 2007-07-20  Jim Meyering  <jim@meyering.net>
53520
53521         * check-module: Diagnose a self-dependency.
53522
53523 2007-07-19  Bruno Haible  <bruno@clisp.org>
53524
53525         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
53526         empty.
53527         Reported by Eric Blake.
53528
53529 2007-07-18  Bruno Haible  <bruno@clisp.org>
53530
53531         * gnulib-tool: New options --po-base, --po-domain.
53532         (func_usage): Document them.
53533         (pobase, po_domain): New variables.
53534         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
53535         DEFAULT_TEXT_DOMAIN.
53536         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
53537         (func_import): Consider pobase and po_domain. Create a po/ directory.
53538         (func_create_testdir): Set pobase and po_domain to empty.
53539         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
53540         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
53541
53542 2007-07-18  Bruno Haible  <bruno@clisp.org>
53543
53544         * gnulib-tool (func_get_automake_snippet): Synthesize also an
53545         EXTRA_DIST augmentation for files in build-aux/.
53546
53547 2007-07-16  Bruno Haible  <bruno@clisp.org>
53548
53549         * modules/lseek (License): Use the synonymous term "LGPLv2+".
53550         * modules/getdelim (License): Likewise.
53551
53552 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53553
53554         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
53555         * modules/d-type (License): Likewise.
53556         * modules/extensions (License): Likewise.
53557         * modules/fnmatch (License): Likewise.
53558         * modules/fseeko (License): Likewise.
53559         * modules/getaddrinfo (License): Likewise.
53560         * modules/getline (License): Likewise.
53561         * modules/getlogin_r (License): Likewise.
53562         * modules/getpass (License): Likewise.
53563         * modules/gettimeofday (License): Likewise.
53564         * modules/glob (License): Likewise.
53565         * modules/inet_ntop (License): Likewise.
53566         * modules/malloc (License): Likewise.
53567         * modules/malloca (License): Likewise.
53568         * modules/memmem (License): Likewise.
53569         * modules/mempcpy (License): Likewise.
53570         * modules/memset (License): Likewise.
53571         * modules/minmax (License): Likewise.
53572         * modules/mktime (License): Likewise.
53573         * modules/netinet_in (License): Likewise.
53574         * modules/pathmax (License): Likewise.
53575         * modules/poll (License): Likewise.
53576         * modules/regex (License): Likewise.
53577         * modules/snprintf (License): Likewise.
53578         * modules/stdbool (License): Likewise.
53579         * modules/stdint (License): Likewise.
53580         * modules/stdio (License): Likewise.
53581         * modules/strcase (License): Likewise.
53582         * modules/strcasestr (License): Likewise.
53583         * modules/strdup (License): Likewise.
53584         * modules/string (License): Likewise.
53585         * modules/strndup (License): Likewise.
53586         * modules/strnlen (License): Likewise.
53587         * modules/strpbrk (License): Likewise.
53588         * modules/strptime (License): Likewise.
53589         * modules/strsep (License): Likewise.
53590         * modules/sys_select (License): Likewise.
53591         * modules/sys_socket (License): Likewise.
53592         * modules/sys_stat (License): Likewise.
53593         * modules/sys_time (License): Likewise.
53594         * modules/time (License): Likewise.
53595         * modules/time_r (License): Likewise.
53596         * modules/timegm (License): Likewise.
53597         * modules/unistd (License): Likewise.
53598         * modules/vsnprintf (License): Likewise.
53599         * modules/wctype (License): Likewise.
53600
53601 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53602
53603         * modules/argz (License): LGPLv2+.
53604
53605 2007-07-15  Karl Berry  <karl@gnu.org>
53606
53607         * doc/gnulib.texi: revise node structure per new fdl.texi.
53608
53609 2007-07-14  Bruno Haible  <bruno@clisp.org>
53610
53611         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
53612         the output file.
53613         * lib/uniname/uninames.h: Regenerated.
53614
53615 2007-07-14  Karl Berry  <karl@gnu.org>
53616
53617         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
53618         omitting sectioning and index commands.
53619
53620 2007-07-13  Bruno Haible  <bruno@clisp.org>
53621
53622         New gnulib-tool option --more-symlinks.
53623         * gnulib-tool (func_usage): Document --more-symlinks.
53624         (do_copyrights): New variable.
53625         Recognize option --more-symlinks.
53626         (func_import): Don't add a copyright notice transform to
53627         sed_transform_lib_file if do_copyrights is empty.
53628
53629 2007-07-13  Bruno Haible  <bruno@clisp.org>
53630
53631         * lib/vasnprintf.c (decimal_point_char): Define also if
53632         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
53633         && !NEED_PRINTF_DIRECTIVE_A.
53634         Reported by Clemens Koller <clemens.koller@anagramm.de> via
53635         Gary V. Vaughan <gary@gnu.org>.
53636
53637 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
53638
53639         * lib/inttypes_.h: Undo previous change, since it was fixed
53640         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
53641
53642 2007-07-13  Bruno Haible  <bruno@clisp.org>
53643
53644         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
53645         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
53646
53647 2007-07-13  Jim Meyering  <jim@meyering.net>
53648
53649         df: Don't fail for Tru64's "file-on-file mount".
53650         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
53651         so we fall through and use statfs instead.  Details here:
53652         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
53653         Reported by Albert Chin.
53654
53655 2007-07-13  Bruno Haible  <bruno@clisp.org>
53656
53657         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
53658         * modules/configmake (License): Likewise.
53659         * modules/gettext (License): Likewise.
53660         * modules/gettext-h (License): Likewise.
53661         * modules/include_next (License): Likewise.
53662         * modules/link-warning (License): Likewise.
53663         * modules/localcharset (License): Likewise.
53664         * modules/localename (License): Likewise.
53665         * modules/lock (License): Likewise.
53666         * modules/relocatable-lib-lgpl (License): Likewise.
53667         * modules/size_max (License): Likewise.
53668         * modules/vasnprintf (License): Likewise.
53669         * modules/wchar (License): Likewise.
53670         * modules/xsize (License): Likewise.
53671
53672 2007-07-13  Bruno Haible  <bruno@clisp.org>
53673
53674         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
53675         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
53676
53677 2007-07-12  Bruno Haible  <bruno@clisp.org>
53678
53679         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
53680         in the modules files.
53681
53682 2007-07-11  Karl Berry  <karl@gnu.org>
53683
53684         * MODULES.html.sh (func_module): use
53685          sed -e '\|^'"${includefile}"'$|d'
53686          instead of /.../d, to avoid errors on $includefile's containing /.
53687
53688 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
53689
53690         * gnulib-tool (func_import): Avoid duplication of --avoid
53691         statements
53692         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
53693         names to `_' in variable names.
53694
53695 2007-07-10  Eric Blake  <ebb9@byu.net>
53696
53697         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
53698         * NEWS: Document this change.
53699
53700 2007-07-08  Bruno Haible  <bruno@clisp.org>
53701
53702         Update to Unicode 5.0.
53703         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
53704         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
53705         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
53706         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
53707         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
53708         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
53709         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
53710         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
53711         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
53712         U+10A3F, U+1D242..U+1D244.
53713         (nonspacing_table_ind): Update.
53714         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
53715         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
53716
53717 2007-07-08  Bruno Haible  <bruno@clisp.org>
53718
53719         Update to Unicode 5.0.
53720         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
53721         code transform. Extend the name index field of unicode_name_to_code and
53722         unicode_code_to_name from 16 to 24 bits.
53723         * lib/uniname/uniname.c (unicode_character_name,
53724         unicode_name_character): Add the range 0x12xxx to the code transform.
53725         * lib/uniname/uninames.h: Regenerated.
53726         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
53727
53728 2007-07-07  Bruno Haible  <bruno@clisp.org>
53729
53730         * modules/wcwidth-tests: New file.
53731         * tests/test-wcwidth.c: New file.
53732
53733         Work around MacOS X wcwidth() bug.
53734         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
53735         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
53736         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
53737         original wcwidth in non-UTF-8 locales.
53738         * modules/wcwidth (Depends-on): Add localcharset, streq,
53739         uniwidth/width.
53740         * doc/functions/wcwidth.texi: Update.
53741
53742 2007-07-07  Bruno Haible  <bruno@clisp.org>
53743
53744         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
53745         (wcwidth): New declaration.
53746         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
53747         macros.
53748         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
53749         here. Prepare for creating <wchar.h> unconditionally.
53750         * modules/wchar (Depends-on): Add link-warning.
53751         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
53752         REPLACE_WCWIDTH, and GL_LINK_WARNING.
53753         * lib/wcwidth.h: Remove file.
53754         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
53755         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
53756         * modules/wcwidth (Files): Remove lib/wcwidth.h.
53757         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
53758         (Include): Replace wcwidth.h with <wchar.h>.
53759         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
53760         * lib/mbchar.h: Don't include wcwidth.h.
53761         * lib/mbswidth.c: Likewise.
53762         * NEWS: Mention the change.
53763
53764 2007-07-07  Bruno Haible  <bruno@clisp.org>
53765
53766         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
53767         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
53768         definition with an external declaration.
53769         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
53770         defined as a function. Remove AC_C_INLINE requirement.
53771         * modules/wcwidth (Files): Add lib/wcwidth.c.
53772         (Makefile.am): Remove redundant statement.
53773
53774 2007-07-07  Bruno Haible  <bruno@clisp.org>
53775
53776         * MODULES.html.sh (Unicode string functions): Add the new modules.
53777
53778         * tests/uniwidth/test-u32-strwidth.c: New file.
53779         * modules/uniwidth/u32-strwidth-tests: New file.
53780
53781         * lib/uniwidth/u32-strwidth.c: New file.
53782         * modules/uniwidth/u32-strwidth: New file.
53783
53784         * tests/uniwidth/test-u16-strwidth.c: New file.
53785         * modules/uniwidth/u16-strwidth-tests: New file.
53786
53787         * lib/uniwidth/u16-strwidth.c: New file.
53788         * modules/uniwidth/u16-strwidth: New file.
53789
53790         * tests/uniwidth/test-u8-strwidth.c: New file.
53791         * modules/uniwidth/u8-strwidth-tests: New file.
53792
53793         * lib/uniwidth/u8-strwidth.c: New file.
53794         * modules/uniwidth/u8-strwidth: New file.
53795
53796         * tests/uniwidth/test-u32-width.c: New file.
53797         * modules/uniwidth/u32-width-tests: New file.
53798
53799         * lib/uniwidth/u32-width.c: New file.
53800         * modules/uniwidth/u32-width: New file.
53801
53802         * tests/uniwidth/test-u16-width.c: New file.
53803         * modules/uniwidth/u16-width-tests: New file.
53804
53805         * lib/uniwidth/u16-width.c: New file.
53806         * modules/uniwidth/u16-width: New file.
53807
53808         * tests/uniwidth/test-u8-width.c: New file.
53809         * modules/uniwidth/u8-width-tests: New file.
53810
53811         * lib/uniwidth/u8-width.c: New file.
53812         * modules/uniwidth/u8-width: New file.
53813
53814         * tests/uniwidth/test-uc_width.c: New file.
53815         * modules/uniwidth/width-tests: New file.
53816
53817         * lib/uniwidth/width.c: New file, from GNU libiconv.
53818         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
53819         * modules/uniwidth/width: New file.
53820
53821         * lib/uniwidth.h: New file, from GNU libiconv.
53822         * modules/uniwidth/base: New file.
53823
53824 2007-07-07  Bruno Haible  <bruno@clisp.org>
53825
53826         * lib/uniname.h: New file, from GNU gettext.
53827         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
53828         * lib/uniname/uninames.h: New file, from GNU gettext.
53829         * lib/uniname/uniname.c: New file, from GNU gettext.
53830         * tests/uniname/test-uninames.sh: New file.
53831         * tests/uniname/test-uninames.c: New file, from GNU gettext.
53832         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
53833         * modules/uniname/base: New file.
53834         * modules/uniname/uniname: New file.
53835         * modules/uniname/uniname-tests: New file.
53836         * MODULES.html.sh (Unicode string functions): Add the new modules.
53837
53838 2007-07-06  Bruno Haible  <bruno@clisp.org>
53839
53840         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
53841
53842 2007-07-06  Bruno Haible  <bruno@clisp.org>
53843
53844         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
53845         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
53846         includes <cygwin/sys_time.h> which includes <sys/select.h> which
53847         include <sys/time.h>.
53848         Reported by Eric Blake.
53849
53850 2007-07-06  Eric Blake  <ebb9@byu.net>
53851
53852         Fix testing canonicalize on cygwin.
53853         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
53854         Revert patch from 2007-06-19.
53855         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
53856         canonicalize module is also in use.
53857         * tests/test-canonicalize.c: New file.
53858         * tests/test-canonicalize.sh: Likewise.
53859         * modules/canonicalize-tests: Likewise.
53860
53861 2007-07-06  Jim Meyering  <jim@meyering.net>
53862
53863         * lib/getugroups.c (getugroups): Detect getgrent failure.
53864         Adjust comment to reflect reality: this function may return -1.
53865
53866 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
53867
53868         * build-aux/bootstrap (TP_URL,get_translations): Update to use
53869         the new TP address.
53870         (usage): Fix typo
53871         (gnulib_mk): New variable.
53872
53873 2007-07-05  Jim Meyering  <jim@meyering.net>
53874
53875         Don't let endgrent clobber errno, no matter how improbable.
53876         * lib/getugroups.c (getugroups): Save and restore errno around
53877         endgrent call.
53878
53879         Close the group DB even when failing with 2^31 or more members.
53880         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
53881
53882 2007-07-04  Jim Meyering  <jim@meyering.net>
53883
53884         * lib/getugroups.h: New file.
53885         * lib/getugroups.c: Include "getugroups.h".
53886         Remove uses of "register" keyword.
53887         Move local variable, "cp", down into scope where used.
53888         Give "username" parameter the "const" attribute.
53889         * modules/getugroups (Files): Add lib/getugroups.h
53890
53891 2007-07-04  Karl Berry  <karl@gnu.org>
53892
53893         * MODULES.html.sh (func_all_modules): Complete rename of
53894         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
53895
53896 2007-07-02  Bruno Haible  <bruno@clisp.org>
53897
53898         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
53899         mode, when inttypes.h comes from gnulib.
53900         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
53901
53902 2007-07-02  Simon Josefsson  <simon@josefsson.org>
53903
53904         * NEWS: Mention lgpl module name change.
53905
53906         * modules/lgpl-2.1: Renamed from lgpl.
53907
53908         * NEWS: Mention gpl module name change.
53909
53910         * modules/gpl-3.0: New file, based on gpl-2.0.
53911
53912         * modules/gpl-2.0: Renamed from gpl.
53913
53914         * modules/gpl: Fix filename, doc/gpl.texi is now found at
53915         doc/gpl-2.0.texi.
53916
53917 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
53918
53919         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
53920         #define __STDC_LIMIT_MACROS temporarily while including
53921         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
53922         Problem reported by Joel E. Denny in
53923         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
53924
53925 2007-07-01  Bruno Haible  <bruno@clisp.org>
53926
53927         * lib/unistdio.h: New file.
53928         * lib/unistdio/u-asnprintf.h: New file.
53929         * lib/unistdio/u-asprintf.h: New file.
53930         * lib/unistdio/u-printf-args.c: New file.
53931         * lib/unistdio/u-printf-args.h: New file.
53932         * lib/unistdio/u-printf-parse.h: New file.
53933         * lib/unistdio/u-snprintf.h: New file.
53934         * lib/unistdio/u-sprintf.h: New file.
53935         * lib/unistdio/u-vasprintf.h: New file.
53936         * lib/unistdio/u-vsnprintf.h: New file.
53937         * lib/unistdio/u-vsprintf.h: New file.
53938         * lib/unistdio/ulc-asnprintf.c: New file.
53939         * lib/unistdio/ulc-asprintf.c: New file.
53940         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
53941         * lib/unistdio/ulc-printf-parse.c: New file.
53942         * lib/unistdio/ulc-snprintf.c: New file.
53943         * lib/unistdio/ulc-sprintf.c: New file.
53944         * lib/unistdio/ulc-vasnprintf.c: New file.
53945         * lib/unistdio/ulc-vasprintf.c: New file.
53946         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
53947         * lib/unistdio/ulc-vsnprintf.c: New file.
53948         * lib/unistdio/ulc-vsprintf.c: New file.
53949         * lib/unistdio/u8-asnprintf.c: New file.
53950         * lib/unistdio/u8-asprintf.c: New file.
53951         * lib/unistdio/u8-printf-parse.c: New file.
53952         * lib/unistdio/u8-snprintf.c: New file.
53953         * lib/unistdio/u8-sprintf.c: New file.
53954         * lib/unistdio/u8-vasnprintf.c: New file.
53955         * lib/unistdio/u8-vasprintf.c: New file.
53956         * lib/unistdio/u8-vsnprintf.c: New file.
53957         * lib/unistdio/u8-vsprintf.c: New file.
53958         * lib/unistdio/u8-u8-asnprintf.c: New file.
53959         * lib/unistdio/u8-u8-asprintf.c: New file.
53960         * lib/unistdio/u8-u8-snprintf.c: New file.
53961         * lib/unistdio/u8-u8-sprintf.c: New file.
53962         * lib/unistdio/u8-u8-vasnprintf.c: New file.
53963         * lib/unistdio/u8-u8-vasprintf.c: New file.
53964         * lib/unistdio/u8-u8-vsnprintf.c: New file.
53965         * lib/unistdio/u8-u8-vsprintf.c: New file.
53966         * lib/unistdio/u16-asnprintf.c: New file.
53967         * lib/unistdio/u16-asprintf.c: New file.
53968         * lib/unistdio/u16-printf-parse.c: New file.
53969         * lib/unistdio/u16-snprintf.c: New file.
53970         * lib/unistdio/u16-sprintf.c: New file.
53971         * lib/unistdio/u16-vasnprintf.c: New file.
53972         * lib/unistdio/u16-vasprintf.c: New file.
53973         * lib/unistdio/u16-vsnprintf.c: New file.
53974         * lib/unistdio/u16-vsprintf.c: New file.
53975         * lib/unistdio/u16-u16-asnprintf.c: New file.
53976         * lib/unistdio/u16-u16-asprintf.c: New file.
53977         * lib/unistdio/u16-u16-snprintf.c: New file.
53978         * lib/unistdio/u16-u16-sprintf.c: New file.
53979         * lib/unistdio/u16-u16-vasnprintf.c: New file.
53980         * lib/unistdio/u16-u16-vasprintf.c: New file.
53981         * lib/unistdio/u16-u16-vsnprintf.c: New file.
53982         * lib/unistdio/u16-u16-vsprintf.c: New file.
53983         * lib/unistdio/u32-asnprintf.c: New file.
53984         * lib/unistdio/u32-asprintf.c: New file.
53985         * lib/unistdio/u32-printf-parse.c: New file.
53986         * lib/unistdio/u32-snprintf.c: New file.
53987         * lib/unistdio/u32-sprintf.c: New file.
53988         * lib/unistdio/u32-vasnprintf.c: New file.
53989         * lib/unistdio/u32-vasprintf.c: New file.
53990         * lib/unistdio/u32-vsnprintf.c: New file.
53991         * lib/unistdio/u32-vsprintf.c: New file.
53992         * lib/unistdio/u32-u32-asnprintf.c: New file.
53993         * lib/unistdio/u32-u32-asprintf.c: New file.
53994         * lib/unistdio/u32-u32-snprintf.c: New file.
53995         * lib/unistdio/u32-u32-sprintf.c: New file.
53996         * lib/unistdio/u32-u32-vasnprintf.c: New file.
53997         * lib/unistdio/u32-u32-vasprintf.c: New file.
53998         * lib/unistdio/u32-u32-vsnprintf.c: New file.
53999         * lib/unistdio/u32-u32-vsprintf.c: New file.
54000         * tests/unistdio/test-ulc-asnprintf1.c: New file.
54001         * tests/unistdio/test-ulc-asnprintf1.h: New file.
54002         * tests/unistdio/test-ulc-printf1.h: New file.
54003         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
54004         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
54005         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
54006         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
54007         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
54008         * tests/unistdio/test-ulc-vasprintf1.c: New file.
54009         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
54010         * tests/unistdio/test-ulc-vsprintf1.c: New file.
54011         * tests/unistdio/test-u8-asnprintf1.c: New file.
54012         * tests/unistdio/test-u8-asnprintf1.h: New file.
54013         * tests/unistdio/test-u8-printf1.h: New file.
54014         * tests/unistdio/test-u8-vasnprintf1.c: New file.
54015         * tests/unistdio/test-u8-vasnprintf2.c: New file.
54016         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
54017         * tests/unistdio/test-u8-vasnprintf3.c: New file.
54018         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
54019         * tests/unistdio/test-u8-vasprintf1.c: New file.
54020         * tests/unistdio/test-u8-vsnprintf1.c: New file.
54021         * tests/unistdio/test-u8-vsprintf1.c: New file.
54022         * tests/unistdio/test-u16-asnprintf1.c: New file.
54023         * tests/unistdio/test-u16-asnprintf1.h: New file.
54024         * tests/unistdio/test-u16-printf1.h: New file.
54025         * tests/unistdio/test-u16-vasnprintf1.c: New file.
54026         * tests/unistdio/test-u16-vasnprintf2.c: New file.
54027         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
54028         * tests/unistdio/test-u16-vasnprintf3.c: New file.
54029         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
54030         * tests/unistdio/test-u16-vasprintf1.c: New file.
54031         * tests/unistdio/test-u16-vsnprintf1.c: New file.
54032         * tests/unistdio/test-u16-vsprintf1.c: New file.
54033         * tests/unistdio/test-u32-asnprintf1.c: New file.
54034         * tests/unistdio/test-u32-asnprintf1.h: New file.
54035         * tests/unistdio/test-u32-printf1.h: New file.
54036         * tests/unistdio/test-u32-vasnprintf1.c: New file.
54037         * tests/unistdio/test-u32-vasnprintf2.c: New file.
54038         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
54039         * tests/unistdio/test-u32-vasnprintf3.c: New file.
54040         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
54041         * tests/unistdio/test-u32-vasprintf1.c: New file.
54042         * tests/unistdio/test-u32-vsnprintf1.c: New file.
54043         * tests/unistdio/test-u32-vsprintf1.c: New file.
54044         * modules/unistdio/base: New file.
54045         * modules/unistdio/u-printf-args: New file.
54046         * modules/unistdio/ulc-asnprintf: New file.
54047         * modules/unistdio/ulc-asprintf: New file.
54048         * modules/unistdio/ulc-fprintf: New file.
54049         * modules/unistdio/ulc-printf-parse: New file.
54050         * modules/unistdio/ulc-snprintf: New file.
54051         * modules/unistdio/ulc-sprintf: New file.
54052         * modules/unistdio/ulc-vasnprintf: New file.
54053         * modules/unistdio/ulc-vasprintf: New file.
54054         * modules/unistdio/ulc-vfprintf: New file.
54055         * modules/unistdio/ulc-vsnprintf: New file.
54056         * modules/unistdio/ulc-vsprintf: New file.
54057         * modules/unistdio/u8-asnprintf: New file.
54058         * modules/unistdio/u8-asprintf: New file.
54059         * modules/unistdio/u8-printf-parse: New file.
54060         * modules/unistdio/u8-snprintf: New file.
54061         * modules/unistdio/u8-sprintf: New file.
54062         * modules/unistdio/u8-vasnprintf: New file.
54063         * modules/unistdio/u8-vasprintf: New file.
54064         * modules/unistdio/u8-vsnprintf: New file.
54065         * modules/unistdio/u8-vsprintf: New file.
54066         * modules/unistdio/u8-u8-asnprintf: New file.
54067         * modules/unistdio/u8-u8-asprintf: New file.
54068         * modules/unistdio/u8-u8-snprintf: New file.
54069         * modules/unistdio/u8-u8-sprintf: New file.
54070         * modules/unistdio/u8-u8-vasnprintf: New file.
54071         * modules/unistdio/u8-u8-vasprintf: New file.
54072         * modules/unistdio/u8-u8-vsnprintf: New file.
54073         * modules/unistdio/u8-u8-vsprintf: New file.
54074         * modules/unistdio/u16-asnprintf: New file.
54075         * modules/unistdio/u16-asprintf: New file.
54076         * modules/unistdio/u16-printf-parse: New file.
54077         * modules/unistdio/u16-snprintf: New file.
54078         * modules/unistdio/u16-sprintf: New file.
54079         * modules/unistdio/u16-vasnprintf: New file.
54080         * modules/unistdio/u16-vasprintf: New file.
54081         * modules/unistdio/u16-vsnprintf: New file.
54082         * modules/unistdio/u16-vsprintf: New file.
54083         * modules/unistdio/u16-u16-asnprintf: New file.
54084         * modules/unistdio/u16-u16-asprintf: New file.
54085         * modules/unistdio/u16-u16-snprintf: New file.
54086         * modules/unistdio/u16-u16-sprintf: New file.
54087         * modules/unistdio/u16-u16-vasnprintf: New file.
54088         * modules/unistdio/u16-u16-vasprintf: New file.
54089         * modules/unistdio/u16-u16-vsnprintf: New file.
54090         * modules/unistdio/u16-u16-vsprintf: New file.
54091         * modules/unistdio/u32-asnprintf: New file.
54092         * modules/unistdio/u32-asprintf: New file.
54093         * modules/unistdio/u32-printf-parse: New file.
54094         * modules/unistdio/u32-snprintf: New file.
54095         * modules/unistdio/u32-sprintf: New file.
54096         * modules/unistdio/u32-vasnprintf: New file.
54097         * modules/unistdio/u32-vasprintf: New file.
54098         * modules/unistdio/u32-vsnprintf: New file.
54099         * modules/unistdio/u32-vsprintf: New file.
54100         * modules/unistdio/u32-u32-asnprintf: New file.
54101         * modules/unistdio/u32-u32-asprintf: New file.
54102         * modules/unistdio/u32-u32-snprintf: New file.
54103         * modules/unistdio/u32-u32-sprintf: New file.
54104         * modules/unistdio/u32-u32-vasnprintf: New file.
54105         * modules/unistdio/u32-u32-vasprintf: New file.
54106         * modules/unistdio/u32-u32-vsnprintf: New file.
54107         * modules/unistdio/u32-u32-vsprintf: New file.
54108         * modules/unistdio/ulc-asnprintf-tests: New file.
54109         * modules/unistdio/ulc-vasnprintf-tests: New file.
54110         * modules/unistdio/ulc-vasprintf-tests: New file.
54111         * modules/unistdio/ulc-vsnprintf-tests: New file.
54112         * modules/unistdio/ulc-vsprintf-tests: New file.
54113         * modules/unistdio/u8-asnprintf-tests: New file.
54114         * modules/unistdio/u8-vasnprintf-tests: New file.
54115         * modules/unistdio/u8-vasprintf-tests: New file.
54116         * modules/unistdio/u8-vsnprintf-tests: New file.
54117         * modules/unistdio/u8-vsprintf-tests: New file.
54118         * modules/unistdio/u16-asnprintf-tests: New file.
54119         * modules/unistdio/u16-vasnprintf-tests: New file.
54120         * modules/unistdio/u16-vasprintf-tests: New file.
54121         * modules/unistdio/u16-vsnprintf-tests: New file.
54122         * modules/unistdio/u16-vsprintf-tests: New file.
54123         * modules/unistdio/u32-asnprintf-tests: New file.
54124         * modules/unistdio/u32-vasnprintf-tests: New file.
54125         * modules/unistdio/u32-vasprintf-tests: New file.
54126         * modules/unistdio/u32-vsnprintf-tests: New file.
54127         * modules/unistdio/u32-vsprintf-tests: New file.
54128         * MODULES.html.sh (Unicode string functions): Add the new modules.
54129
54130 2007-07-01  Bruno Haible  <bruno@clisp.org>
54131
54132         * lib/sprintf.c (sprintf): Limit the available length estimation,
54133         to avoid address wraparound.
54134         * lib/vsprintf.c (vsprintf): Likewise.
54135         * modules/sprintf-posix (Dependencies): Add stdint.
54136         * modules/vsprintf-posix (Dependencies): Likewise.
54137
54138 2007-07-01  Bruno Haible  <bruno@clisp.org>
54139
54140         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
54141         Windows PATH as well. Conservative double-quoting. Comments.
54142
54143 2007-07-01  Bruno Haible  <bruno@clisp.org>
54144             Eric Blake  <ebb9@byu.net>
54145             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54146
54147         * gnulib-tool (self_abspathname): Fix algorithm to cope with
54148         empty components in $PATH, denoting '.'.
54149
54150 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54151
54152         * gnulib-tool: Fix indentation.
54153         (func_create_megatestdir): Likewise.
54154         Report by Bruno Haible.
54155
54156 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54157
54158         Sync from Automake.
54159         * build-aux/gnupload: Fix shell portability issues with for loops.
54160         Report by Karl Berry.
54161
54162 2007-06-29  Simon Josefsson  <simon@josefsson.org>
54163
54164         * build-aux/maint.mk (POURL): Use translationproject.org.
54165
54166 2007-06-27  Simon Josefsson  <simon@josefsson.org>
54167             Bruno Haible  <bruno@clisp.org>
54168
54169         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
54170         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
54171         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
54172         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
54173         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
54174
54175 2007-06-27  Bruno Haible  <bruno@clisp.org>
54176
54177         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
54178         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
54179
54180 2007-06-26  Karl Berry  <karl@gnu.org>
54181
54182         * MODULES.html.sh: remove xreadlink-with-size.
54183
54184 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
54185
54186         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
54187         method that I hope also handles the double-include problem noted
54188         by Bruno Haible in
54189         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
54190
54191 2007-06-23  Bruno Haible  <bruno@clisp.org>
54192
54193         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
54194         Don't let the 'mostlyclean' target fail if the last subdirectory could
54195         not be removed.
54196         Reported by Karl Berry.
54197
54198 2007-06-23  Bruno Haible  <bruno@clisp.org>
54199
54200         * gnulib-tool (echo): Add a speedier workaround for ksh.
54201         * tests/test-echo.sh: Likewise.
54202
54203 2007-06-23  Bruno Haible  <bruno@clisp.org>
54204
54205         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
54206         * tests/test-echo.sh: Likewise.
54207
54208 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54209
54210         * gnulib-tool (IFS): Initialize early, so we don't set it to
54211         empty later.
54212         (self_abspathname): Rewrite algorithm to set it, reindent.
54213         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
54214         (func_create_megatestdir): Merge some sed scripts.
54215
54216 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
54217
54218         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
54219         exposed by Sun Studio 11 cc on Solaris 8.
54220
54221 2007-06-22  Bruno Haible  <bruno@clisp.org>
54222
54223         * gnulib-tool (echo): Ensure the echo primitive does not interpret
54224         backslashes.
54225         * tests/test-echo.sh: New file.
54226
54227 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54228
54229         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
54230         simplify `sed_replace_build_aux' scripts, they are portable but
54231         echoing them with `echo' is not.
54232         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
54233
54234 2007-06-21  Karl Berry  <karl@gnu.org>
54235
54236         * config/srclist.txt: guess we can't handle the licenses via
54237         srclist at the moment.
54238
54239 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
54240
54241         * MODULES.html.sh: Add include_next.
54242         * modules/include_next: New file.
54243
54244 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
54245
54246         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
54247         INCLUDE_NEXT.
54248         (gl_CHECK_NEXT_HEADERS): New macro.
54249         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
54250         the obsolescent gl_ABSOLUTE_HEADER.
54251         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
54252         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
54253         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
54254         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
54255         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
54256         * m4/math_h.m4 (gl_MATH_H): Likewise.
54257         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
54258         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
54259         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
54260         * m4/stdint.m4 (gl_STDINT_H): Likewise.
54261         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
54262         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
54263         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
54264         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
54265         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
54266         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
54267         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
54268         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
54269         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
54270         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
54271         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
54272         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
54273         * m4/inttypes.m4 (gl_INTTYPES_H): Define
54274         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
54275         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
54276         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
54277         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
54278         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
54279         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
54280         * lib/float_.h: Likewise.
54281         * lib/inttypes_.h: Likewise.
54282         * lib/math_.h: Likewise.
54283         * lib/search_.h: Likewise.
54284         * lib/signal_.h: Likewise.
54285         * lib/stdint_.h: Likewise.
54286         * lib/stdio_.h: Likewise.
54287         * lib/stdlib_.h: Likewise.
54288         * lib/string_.h: Likewise.
54289         * lib/sys_stat_.h: Likewise.
54290         * lib/sys_time_.h: Likewise.
54291         * lib/time_.h: Likewise.
54292         * lib/unistd_.h: Likewise.
54293         * lib/wchar_.h: Likewise.
54294         * lib/wctype_.h: Likewise.
54295         * lib/dirent_.h: Likewise.
54296         * lib/iconv_.h: Likewise.
54297         * lib/locale_.h: Likewise.
54298         * lib/netinet_in_.h: Likewise.
54299         * lib/sys_select_.h: Likewise.
54300         * lib/sys_socket_.h: Likewise.
54301         * lib/sysexits_.h: Likewise.
54302         * modules/fcntl (Depends-on): Depend on include_next, not
54303         absolute_header.
54304         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
54305         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
54306         * modules/fchdir: Likewise.
54307         * modules/float: Likewise.
54308         * modules/iconv_open: Likewise.
54309         * modules/inttypes: Likewise.
54310         * modules/locale: Likewise.
54311         * modules/math: Likewise.
54312         * modules/netinet_in: Likewise.
54313         * modules/search: Likewise.
54314         * modules/signal: Likewise.
54315         * modules/stdint: Likewise.
54316         * modules/stdio: Likewise.
54317         * modules/stdlib: Likewise.
54318         * modules/string: Likewise.
54319         * modules/sys_select: Likewise.
54320         * modules/sys_socket: Likewise.
54321         * modules/sys_stat: Likewise.
54322         * modules/sys_time: Likewise.
54323         * modules/sysexits: Likewise.
54324         * modules/time: Likewise.
54325         * modules/unistd: Likewise.
54326         * modules/wchar: Likewise.
54327         * modules/wctype: Likewise.
54328         * modules/sys_stat: Change maintainer to "all".
54329         * modules/unistd: Likewise.
54330
54331 2007-06-20  Karl Berry  <karl@gnu.org>
54332
54333         * config/srclist.txt: track www changes in license files.
54334
54335 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
54336
54337         * build-aux/bootstrap: Remove stray dot.
54338         Make sure build_aux settings are honored when linking
54339         gnulib_extra_files.
54340
54341 2007-06-19  Eric Blake  <ebb9@byu.net>
54342
54343         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
54344         Allow compilation on cygwin.
54345
54346 2007-06-19  Jim Meyering  <jim@meyering.net>
54347
54348         xreadlink-with-size: Remove module.  No longer used.
54349         Ex-callers now use xreadlink or mreadlink-with-size.
54350         * modules/xreadlink-with-size: Remove module.
54351         * lib/xreadlink-with-size.c: Remove file.
54352         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
54353         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
54354         just before the function definition *is* accurate.
54355
54356         Eliminate one way canonicalize_filename_mode could exit.
54357         * lib/canonicalize.c (canonicalize_filename_mode):
54358         Use mreadlink_with_size, not xreadlink_with_size.
54359
54360 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
54361
54362         Detect porting problems to FreeBSD/arm, which has time_t wider than
54363         long int.  Original problem reported for GNU diff by Xin Li in
54364         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
54365         * modules/getdate (Depends-on): Add intprops, verify.
54366         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
54367         is an integer type no wider than long int.
54368
54369 2007-06-18  Jim Meyering  <jim@meyering.net>
54370
54371         New module: mreadlink-with-size.
54372         * MODULES.html.sh: Add mreadlink-with-size.
54373         * modules/mreadlink-with-size: New module
54374         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
54375         not xreadlink-with-size.
54376         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
54377
54378 2007-06-16  Bruno Haible  <bruno@clisp.org>
54379
54380         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
54381         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
54382         Reported by Gary V. Vaughan <gary@gnu.org>.
54383
54384 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
54385
54386         Revamp lchown so that it lives in unistd.h where it belongs.
54387         * lib/lchown.h: Remove.
54388         * lib/dirchownmod.c: Don't include lib/lchown.h.
54389         * lib/fchownat.c: Likewise.
54390         * lib/openat.c: Likewise.
54391         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
54392         does not follow symlinks.
54393         (EOPNOTSUPP): Define if not defined.
54394         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
54395         is defined to 0.
54396         (lchown): New decl.
54397         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
54398         Do not check for lchown decl.
54399         Set REPLACE_LCHOWN.
54400         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
54401         REPLACE_LCHOWN.
54402         * modules/chown: Make it clear it follows symlinks.
54403         * modules/lchown: Make it clear it doesn't follow symlinks.
54404         (Files): Remove lib/lchown.h
54405         (Depends-on): Add unistd.
54406         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
54407         (Include): Include <unistd.h>, not "lchown.h".
54408         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
54409         REPLACE_LCHOWN.
54410
54411 2007-06-15  Jim Meyering  <jim@meyering.net>
54412
54413         Change license (GPL to LGPL) of fsusage and dependents.
54414         * modules/fsusage (License): Change to LGPL.
54415         * modules/full-read (License): Likewise.
54416         * modules/full-write (License): Likewise.
54417         * modules/safe-read (License): Likewise.
54418         * modules/safe-write (License): Likewise.
54419
54420 2007-06-14  Ben Pfaff  <blp@gnu.org>
54421
54422         Missing part of allocsa -> malloca transition.
54423         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
54424         gl_MALLOCA.
54425
54426 2007-06-12  Bruno Haible  <bruno@clisp.org>
54427
54428         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
54429         to ia64, x86_64, i386.
54430         Reported by Eric Blake.
54431
54432 2007-06-12  Bruno Haible  <bruno@clisp.org>
54433
54434         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
54435         cross-compiling to x86_64.
54436
54437 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
54438
54439         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
54440         glitch reported by Ralf Wildenhues in
54441         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
54442
54443         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
54444         Vin Shelton.
54445
54446 2007-06-11  Bruno Haible  <bruno@clisp.org>
54447
54448         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
54449         replacement string.
54450         Reported by Eric Blake.
54451
54452 2007-06-10  Bruno Haible  <bruno@clisp.org>
54453
54454         Prepare vasnprintf code for use with Unicode strings.
54455         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
54456         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
54457         TYPE_U32_STRING.
54458         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
54459         a_u32_string variants.
54460         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
54461         * lib/printf-args.c: Don't include config.h and the specification
54462         header if PRINTF_FETCHARGS is already defined.
54463         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
54464         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
54465         TYPE_U16_STRING, TYPE_U32_STRING.
54466         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
54467         u16_directive, u16_directives, u32_directive, u32_directives): New
54468         types.
54469         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
54470         New declarations.
54471         * lib/printf-parse.c: Don't include config.h and the specification
54472         header if PRINTF_PARSE is already defined. Eliminate the set of
54473         parameters for WIDE_CHAR_VERSION; the user of this file must provide
54474         them now. Include c-ctype.h.
54475         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
54476         directive and CHAR_T_ONLY_ASCII.
54477         * lib/vasnprintf.c: Don't include config.h and the specification header
54478         if VASNPRINTF is already defined.
54479         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
54480         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
54481         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
54482         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
54483         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
54484         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
54485         code accordingly.
54486         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
54487         pad_ourselves also in this case, with the 'c' and 's' directives, and
54488         with a different notion of "width".
54489         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
54490
54491 2007-06-10  Bruno Haible  <bruno@clisp.org>
54492
54493         * modules/unistr/u32-mbsnlen: New file.
54494         * lib/unistr/u32-mbsnlen.c: New file.
54495
54496         * modules/unistr/u16-mbsnlen: New file.
54497         * lib/unistr/u16-mbsnlen.c: New file.
54498
54499         * modules/unistr/u8-mbsnlen: New file.
54500         * lib/unistr/u8-mbsnlen.c: New file.
54501
54502         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
54503         declarations.
54504
54505 2007-06-10  Bruno Haible  <bruno@clisp.org>
54506
54507         * lib/string_.h (mbsnlen): New declaration.
54508         * lib/mbsnlen.c: New file.
54509         * m4/mbsnlen.m4: New file.
54510         * modules/mbsnlen: New file.
54511         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
54512         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
54513         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
54514
54515 2007-06-10  Bruno Haible  <bruno@clisp.org>
54516
54517         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
54518
54519 2007-06-10  Bruno Haible  <bruno@clisp.org>
54520
54521         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
54522         * lib/mbuiter.h: Likewise.
54523
54524 2007-06-10  Bruno Haible  <bruno@clisp.org>
54525
54526         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
54527         declaration.
54528
54529 2007-06-10  Karl Berry  <karl@gnu.org>
54530
54531         * config/srclist.txt: remove gettext entries, Bruno prefers
54532         to update individually.
54533
54534 2007-06-10  Bruno Haible  <bruno@clisp.org>
54535
54536         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
54537         'maxlen'. Ensure only length + width bytes are allocated, not
54538         length + 1 + width.
54539
54540 2007-06-09  Bruno Haible  <bruno@clisp.org>
54541
54542         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
54543         (CHAR_T): Remove macro.
54544         (VASNPRINTF): Update.
54545
54546 2007-06-09  Bruno Haible  <bruno@clisp.org>
54547
54548         * MODULES.html.sh (Unicode string functions): Add the new modules.
54549
54550         * modules/uniconv/u32-conv-to-enc: New file.
54551         * lib/uniconv/u32-conv-to-enc.c: New file.
54552         * modules/uniconv/u32-conv-to-enc-tests: New file.
54553         * tests/uniconv/test-u32-conv-to-enc.c: New file.
54554
54555         * modules/uniconv/u16-conv-to-enc: New file.
54556         * lib/uniconv/u16-conv-to-enc.c: New file.
54557         * lib/uniconv/u-conv-to-enc.h: New file.
54558         * modules/uniconv/u16-conv-to-enc-tests: New file.
54559         * tests/uniconv/test-u16-conv-to-enc.c: New file.
54560
54561         * modules/uniconv/u8-conv-to-enc: New file.
54562         * lib/uniconv/u8-conv-to-enc.c: New file.
54563         * modules/uniconv/u8-conv-to-enc-tests: New file.
54564         * tests/uniconv/test-u8-conv-to-enc.c: New file.
54565
54566         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
54567         u32_conv_to_encoding): New declarations.
54568
54569 2007-06-09  Bruno Haible  <bruno@clisp.org>
54570
54571         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
54572
54573 2007-06-09  Bruno Haible  <bruno@clisp.org>
54574
54575         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
54576         * modules/malloca: Renamed from modules/allocsa, updated.
54577         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
54578         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
54579         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
54580         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
54581         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
54582         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
54583         * modules/xmalloca: Renamed from modules/xallocsa, updated.
54584         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
54585         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
54586         * modules/c-strcasestr (Depends-on): Update.
54587         * lib/c-strcasestr.c: Update.
54588         * modules/c-strstr (Depends-on): Update.
54589         * lib/c-strstr.c: Update.
54590         * modules/canonicalize-lgpl (Depends-on): Update.
54591         * lib/canonicalize-lgpl.c: Update.
54592         * modules/clean-temp (Depends-on): Update.
54593         * lib/clean-temp.c: Update.
54594         * modules/csharpcomp (Depends-on): Update.
54595         * lib/csharpcomp.c: Update.
54596         * modules/csharpexec (Depends-on): Update.
54597         * lib/csharpexec.c: Update.
54598         * modules/javacomp (Depends-on): Update.
54599         * lib/javacomp.c: Update.
54600         * modules/javaexec (Depends-on): Update.
54601         * lib/javaexec.c: Update.
54602         * modules/mbscasestr (Depends-on): Update.
54603         * lib/mbscasestr.c: Update.
54604         * modules/mbsstr (Depends-on): Update.
54605         * lib/mbsstr.c: Update.
54606         * modules/setenv (Depends-on): Update.
54607         * lib/setenv.c: Update.
54608         * modules/strcasestr (Depends-on): Update.
54609         * lib/strcasestr.c: Update.
54610         * modules/striconveha (Depends-on): Update.
54611         * lib/striconveha.c: Update.
54612         * modules/relocatable-prog-wrapper (Files): Update.
54613         * lib/relocwrapper.c: Update.
54614         * build-aux/install-reloc: Update.
54615         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
54616
54617 2007-06-08  Bruno Haible  <bruno@clisp.org>
54618
54619         Port to uClibc.
54620         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
54621         * lib/fpurge.c (fpurge): Likewise.
54622         * lib/freading.c (freading): Likewise.
54623         * lib/fseeko.c (rpl_fseeko): Likewise.
54624         * lib/fseterr.c (fseterr): Likewise.
54625         * lib/fwriting.c (fwriting): Likewise.
54626         * tests/test-fflush.c (main): Avoid a failure on uClibc.
54627
54628 2007-06-08  Bruno Haible  <bruno@clisp.org>
54629
54630         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
54631         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
54632         * modules/gettext (Files): Add m4/intlmacosx.m4.
54633
54634 2007-06-07  Bruno Haible  <bruno@clisp.org>
54635
54636         * modules/localename-tests: New file.
54637         * tests/test-localename.c: New file.
54638
54639         New module 'localename'.
54640         * lib/localename.h: New file.
54641         * lib/localename.c: New file, from GNU gettext.
54642         * m4/localename.m4: New file.
54643         * modules/localename: New file.
54644
54645 2007-06-07  Bruno Haible  <bruno@clisp.org>
54646
54647         Work around the lack of <wchar.h> on some builds of uClibc.
54648         * doc/headers/wchar.texi: Update.
54649         * lib/wchar_.h: Include <wchar.h> only if it exists.
54650         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
54651         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
54652         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
54653         doesn't exist.
54654         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
54655         * modules/mbfile (Depends-on): Add wchar.
54656         * modules/mbiter (Depends-on): Likewise.
54657         * modules/mbuiter (Depends-on): Likewise.
54658         Reported by Simon Josefsson.
54659
54660 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
54661
54662         Work around problem reported by Steven M. Schweda in
54663         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
54664         Tru64 5.1B with the Compaq compiler environment installed declares
54665         an 'isblank' function but does not define it in the C library.
54666         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
54667         * lib/regex_internal.h (isblank): Likewise.
54668         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
54669         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
54670
54671 2007-06-05  Bruno Haible  <bruno@clisp.org>
54672
54673         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
54674         ia64.
54675         * modules/printf-safe: New file.
54676         * modules/fprintf-posix (Depends-on): Add printf-safe.
54677         * modules/printf-posix (Depends-on): Likewise.
54678         * modules/snprintf-posix (Depends-on): Likewise.
54679         * modules/sprintf-posix (Depends-on): Likewise.
54680         * modules/vasnprintf-posix (Depends-on): Likewise.
54681         * modules/vasprintf-posix (Depends-on): Likewise.
54682         * modules/vfprintf-posix (Depends-on): Likewise.
54683         * modules/vprintf-posix (Depends-on): Likewise.
54684         * modules/vsnprintf-posix (Depends-on): Likewise.
54685         * modules/vsprintf-posix (Depends-on): Likewise.
54686         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
54687         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
54688         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
54689         "no" on i386, x86_64, ia64.
54690         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
54691         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
54692         on i386, x86_64, ia64.
54693         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
54694         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
54695         on i386, x86_64, ia64.
54696         * tests/test-vasnprintf-posix.c: Include float.h.
54697         (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-vasprintf-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-snprintf-posix.c: Include float.h.
54705         * tests/test-sprintf-posix.c: Likewise.
54706         * tests/test-vsnprintf-posix.c: Likewise.
54707         * tests/test-vsprintf-posix.c: Likewise.
54708
54709 2007-06-05  Bruno Haible  <bruno@clisp.org>
54710
54711         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
54712         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
54713         non-IEEE numbers on i386, x86_64, ia64.
54714         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
54715         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
54716         * tests/test-isnanl.h: Include float.h.
54717         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
54718
54719 2007-06-05  Bruno Haible  <bruno@clisp.org>
54720
54721         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
54722         also the %a / %A. Handle the %a / %A code before this extra handling.
54723
54724 2007-06-05  Bruno Haible  <bruno@clisp.org>
54725
54726         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
54727         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
54728
54729 2007-06-05  Bruno Haible  <bruno@clisp.org>
54730
54731         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
54732         typo in variable name.
54733
54734 2007-06-05  Eric Blake  <ebb9@byu.net>
54735
54736         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
54737         Reported by Simon Josefsson.
54738
54739 2007-06-04  Bruno Haible  <bruno@clisp.org>
54740
54741         Avoid test failures on some PowerPC platforms.
54742         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
54743         Define differently for PowerPC.
54744         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
54745         Reported by Gary V. Vaughan <gary@gnu.org>.
54746
54747 2007-06-02  Bruno Haible  <bruno@clisp.org>
54748
54749         Fix test-stdint failure on FreeBSD/ia64.
54750         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
54751         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
54752         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
54753         * doc/headers/stdint.texi: Update.
54754
54755 2007-06-01  Bruno Haible  <bruno@clisp.org>
54756
54757         * tests/test-binary-io.c (main): Pass a third argument to open().
54758         Reported by Gary V. Vaughan <gary@gnu.org>.
54759
54760 2007-06-01  Bruno Haible  <bruno@clisp.org>
54761
54762         * doc/functions/frexpl.texi: Update for mingw.
54763
54764 2007-06-01  Bruno Haible  <bruno@clisp.org>
54765
54766         * tests/test-lseek.c (main): Disable test of errno for invalid third
54767         argument.
54768         * doc/functions/lseek.texi: Update.
54769         Reported by Gary V. Vaughan <gary@gnu.org>.
54770
54771 2007-05-28  Bruno Haible  <bruno@clisp.org>
54772
54773         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
54774
54775 2007-05-31  Eric Blake  <ebb9@byu.net>
54776
54777         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
54778         cross compiling.
54779
54780 2007-05-30  Eric Blake  <ebb9@byu.net>
54781         and Bruno Haible  <bruno@clisp.org>
54782
54783         Work around mingw test failures exposed by m4-1.4.9b.
54784         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
54785         * tests/test-unistd.c: Disable uid_t and git_t tests for the
54786         moment.
54787
54788 2007-05-30  Bruno Haible  <bruno@clisp.org>
54789
54790         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
54791         assuming that they are closed. Needed on HP-UX 11.
54792
54793 2007-05-29  Bruno Haible  <bruno@clisp.org>
54794
54795         Fix a problem with #include_next.
54796         * lib/dirent_.h: Split the double-inclusion guard.
54797         * lib/fcntl_.h: Likewise.
54798         * lib/float_.h: Likewise.
54799         * lib/iconv_.h: Likewise.
54800         * lib/inttypes_.h: Likewise.
54801         * lib/locale_.h: Likewise.
54802         * lib/math_.h: Likewise.
54803         * lib/netinet_in_.h: Likewise.
54804         * lib/search_.h: Likewise.
54805         * lib/signal_.h: Likewise.
54806         * lib/stdint_.h: Likewise.
54807         * lib/stdio_.h: Likewise.
54808         * lib/stdlib_.h: Likewise.
54809         * lib/string_.h: Likewise.
54810         * lib/sys_select_.h: Likewise.
54811         * lib/sys_socket_.h: Likewise.
54812         * lib/sys_stat_.h: Likewise.
54813         * lib/sys_time_.h: Likewise.
54814         * lib/sysexits_.h: Likewise.
54815         * lib/time_.h: Likewise.
54816         * lib/unistd_.h: Likewise.
54817         * lib/wchar_.h: Likewise.
54818         * lib/wctype_.h: Likewise.
54819
54820 2007-05-29  Bruno Haible  <bruno@clisp.org>
54821
54822         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
54823         for the moment.
54824
54825 2007-05-29  Bruno Haible  <bruno@clisp.org>
54826
54827         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
54828         invocation.
54829         Reported by Eric Blake.
54830
54831 2007-05-29  Bruno Haible  <bruno@clisp.org>
54832
54833         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
54834         compiling case.
54835
54836 2007-05-29  Eric Blake  <ebb9@byu.net>
54837             Bruno Haible  <bruno@clisp.org>
54838
54839         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
54840         cross compiles.
54841
54842 2007-05-28  Eric Blake  <ebb9@byu.net>
54843
54844         * modules/closein-tests (test_closein_LDADD): Support test on
54845         cygwin with libtool.
54846
54847 2007-05-28  Bruno Haible  <bruno@clisp.org>
54848
54849         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
54850         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
54851         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
54852         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
54853         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
54854         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
54855         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
54856         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
54857         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
54858
54859 2007-05-28  Eric Blake  <ebb9@byu.net>
54860
54861         Unconditionally include <config.h> in unit tests.
54862         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
54863         * tests/test-allocsa.c, tests/test-arcfour.c,
54864         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
54865         tests/test-array_list.c, tests/test-array_oset.c,
54866         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
54867         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
54868         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
54869         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
54870         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
54871         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
54872         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
54873         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
54874         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
54875         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
54876         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
54877         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
54878         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
54879         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
54880         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
54881         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
54882         test-md5.c, test-memmem.c, test-printf-posix.c,
54883         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
54884         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
54885         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
54886         test-strcasestr.c, test-striconv.c, test-striconveh.c,
54887         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
54888         test-vasnprintf-posix2.c, test-vasnprintf.c,
54889         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
54890         test-vfprintf-posix.c, test-vprintf-posix.c,
54891         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
54892         test-xvasprintf.c: Likewise.
54893
54894 2007-05-28  Bruno Haible  <bruno@clisp.org>
54895
54896         * gnulib-tool (func_import): Remember the --with-tests command-line
54897         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
54898         Reported by Eric Blake.
54899
54900 2007-05-28  Bruno Haible  <bruno@clisp.org>
54901
54902         * modules/ftell-tests: New file.
54903         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
54904         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
54905
54906         * lib/ftell.c: New file.
54907         * modules/ftell: New file.
54908         * m4/ftell.m4: New file.
54909         * doc/functions/ftell.texi: Update.
54910         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
54911         REPLACE_FTELL.
54912         * lib/stdio_.h (rpl_ftell): New declaration.
54913         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
54914         REPLACE_FTELL.
54915
54916 2007-05-28  Eric Blake  <ebb9@byu.net>
54917
54918         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
54919
54920 2007-05-28  Bruno Haible  <bruno@clisp.org>
54921
54922         * modules/fseek-tests: New file.
54923         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
54924         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
54925
54926         * lib/fseek.c: New file.
54927         * modules/fseek: New file.
54928         * m4/fseek.m4: New file.
54929         * doc/functions/fseek.texi: Update.
54930         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
54931         REPLACE_FSEEK.
54932         * lib/stdio_.h (rpl_fseek): New declaration.
54933         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
54934         REPLACE_FSEEK.
54935
54936 2007-05-28  Bruno Haible  <bruno@clisp.org>
54937
54938         * lib/stdio_.h (fflush): More comments.
54939
54940 2007-05-28  Bruno Haible  <bruno@clisp.org>
54941
54942         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
54943         runtime test.
54944
54945 2007-05-28  Eric Blake  <ebb9@byu.net>
54946
54947         Improve lseek module.
54948         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
54949         * lib/unistd_.h (lseek): Scale back link warning message.
54950         * tests/test-lseek.c: Beef up test.
54951         * tests/test-lseek.sh: Exercise more facets of lseek.
54952         Reported by Bruno Haible.
54953
54954 2007-05-28  Bruno Haible  <bruno@clisp.org>
54955
54956         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
54957         to define.
54958
54959 2007-05-27  Bruno Haible  <bruno@clisp.org>
54960
54961         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
54962
54963 2007-05-27  Bruno Haible  <bruno@clisp.org>
54964
54965         * modules/openmp: New file.
54966         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
54967         Noah Misch.
54968
54969 2007-05-26  Bruno Haible  <bruno@clisp.org>
54970
54971         * modules/chdir-long (Depends-on): Add fchdir.
54972         * modules/chdir-safer (Depends-on): Likewise.
54973         * modules/fts (Depends-on): Likewise.
54974         * modules/fts-lgpl (Depends-on): Likewise.
54975         * modules/openat (Depends-on): Likewise.
54976         * modules/savewd (Depends-on): Likewise.
54977
54978 2007-05-24  Eric Blake  <ebb9@byu.net>
54979
54980         Fix lseek on mingw.
54981         * modules/lseek: New module.
54982         * m4/lseek.m4: New file.
54983         * lib/lseek.c: New file.
54984         * modules/lseek-tests: New file.
54985         * tests/test-lseek.c: New file.
54986         * tests/test-lseek.sh: New file.
54987         * MODULES.html.sh: Document lseek module.
54988         * modules/fflush (Depends-on): Add lseek, fseeko.
54989         * modules/fseeko (Depends-on): Likewise.
54990         * modules/ftello (Depends-on): Likewise.
54991         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
54992         broken.
54993         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
54994         broken.
54995         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
54996         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
54997         * lib/ftello.c (rpl_ftello): Likewise.
54998         * tests/test-fseeko.c (main): Test this.
54999         * tests/test-fseeko.sh: Likewise.
55000         * tests/test-ftello.c (main): Likewise.
55001         * tests/test-ftello.sh: Likewise.
55002         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
55003         implies replacing fseek.
55004         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
55005         HAVE_FTELLO.
55006         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
55007         * modules/unistd (Makefile.am): Likewise.
55008         * lib/unistd_.h (lseek): Declare a replacement.
55009         * doc/functions/lseek.texi (lseek): Document this fix.
55010         * doc/functions/fseek.texi (fseek): Likewise.
55011         * doc/functions/ftell.texi (ftell): Likewise.
55012
55013 2007-05-24  Bruno Haible  <bruno@clisp.org>
55014
55015         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
55016         in the printed representation of a NaN.
55017         * tests/test-vasprintf-posix.c (test_function): Likewise.
55018         * tests/test-snprintf-posix.h (test_function): Likewise.
55019         * tests/test-sprintf-posix.h (test_function): Likewise.
55020         Reported by Eric Blake.
55021
55022 2007-05-23  Eric Blake  <ebb9@byu.net>
55023
55024         Fix fseeko/ftello on cygwin 1.5.24.
55025         * doc/functions/fseeko.texi (fseeko): Document the fix.
55026         * doc/functions/ftello.texi (ftello): Document the fix.
55027         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
55028         * doc/functions/stdout.text (stdout): New file.
55029         * doc/functions/stderr.text (stderr): New file.
55030         * doc/gnulib.texi (Function Substitutes): Use new files.
55031         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
55032         prior to 1.7.0.
55033         * tests/test-ftello.c (main): Likewise for ftello.
55034         * tests/test-fseeko.sh: New file.
55035         * tests/test-ftello.sh: New file.
55036         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
55037         with seekable stdin.
55038         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
55039         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
55040         (gl_REPLACE_FSEEKO): New macro.
55041         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
55042         * modules/fseeko (Files): Distribute fseeko.c.
55043         * modules/ftello (Files): Distribute ftello.c.
55044         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
55045         mode.
55046         * lib/ftello.c (rpl_ftello): New file.
55047         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
55048         fseeko, ftello.
55049         (gl_STDIN_LARGE_OFFSET): New macro.
55050         * modules/stdio (Makefile.am): Perform the replacement.
55051         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
55052
55053 2007-05-23  Bruno Haible  <bruno@clisp.org>
55054
55055         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
55056         GNULIB_POSIXCHECK is defined.
55057
55058 2007-05-21  Bruno Haible  <bruno@clisp.org>
55059
55060         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
55061         Check also the output for NaN arguments. When cross-compiling, guess
55062         no on IRIX.
55063         * lib/vasnprintf.c: Update comments.
55064         * tests/test-vasnprintf-posix.c (strisnan): New function.
55065         (test_function): Use it.
55066         * tests/test-vasprintf-posix.c (strisnan): New function.
55067         (test_function): Use it.
55068         * tests/test-snprintf-posix.h (strisnan): New function.
55069         (test_function): Use it.
55070         * tests/test-sprintf-posix.h (strisnan): New function.
55071         (test_function): Use it.
55072         Reported by Eric Blake.
55073
55074 2007-05-20  Bruno Haible  <bruno@clisp.org>
55075
55076         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
55077         numbers that fails on BeOS.
55078         * doc/functions/frexpl.texi: Update.
55079
55080 2007-05-20  Jim Meyering  <jim@meyering.net>
55081
55082         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
55083         forced upon us by glibc-2.6.
55084
55085 2007-05-20  Bruno Haible  <bruno@clisp.org>
55086
55087         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
55088         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
55089         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
55090         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
55091         NEED_PRINTF_INFINITE.
55092         (is_infinitel): New function.
55093         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
55094         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
55095         gl_PREREQ_VASNPRINTF_INFINITE.
55096         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
55097         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
55098         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
55099         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
55100         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
55101         gl_PREREQ_VASNPRINTF_INFINITE.
55102         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
55103         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
55104         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
55105         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
55106         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
55107         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55108         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
55109         * doc/functions/fprintf.texi: Update.
55110         * doc/functions/printf.texi: Update.
55111         * doc/functions/snprintf.texi: Update.
55112         * doc/functions/sprintf.texi: Update.
55113         * doc/functions/vfprintf.texi: Update.
55114         * doc/functions/vprintf.texi: Update.
55115         * doc/functions/vsnprintf.texi: Update.
55116         * doc/functions/vsprintf.texi: Update.
55117
55118 2007-05-20  Bruno Haible  <bruno@clisp.org>
55119
55120         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
55121         was not found in libc.
55122         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
55123
55124 2007-05-20  Bruno Haible  <bruno@clisp.org>
55125
55126         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
55127         printed as "-nan" instead of "nan".
55128         * tests/test-vasprintf-posix.c (test_function): Likewise.
55129         * tests/test-snprintf-posix.h (test_function): Likewise.
55130         * tests/test-sprintf-posix.h (test_function): Likewise.
55131         Needed for HP-UX 11.
55132
55133 2007-05-20  Jim Meyering  <jim@meyering.net>
55134
55135         Fix buggy test for the fchownat-deref bug.
55136         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
55137         symlink required for the run-test.  Without it, this test would
55138         always declare that fchownat doesn't work, and client code would
55139         unnecessarily use the replacement function with fixed libc.
55140         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
55141         Reported by Greg Schafer.
55142
55143 2007-05-19  Bruno Haible  <bruno@clisp.org>
55144
55145         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
55146         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
55147         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
55148         Needed for IRIX 6.5 and Solaris 2.5.1.
55149
55150 2007-05-19  Bruno Haible  <bruno@clisp.org>
55151
55152         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
55153         (test_function): Skip tests involving -0.0 on platforms where
55154         -0.0 = 0.0.
55155         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
55156         (test_function): Skip tests involving -0.0 on platforms where
55157         -0.0 = 0.0.
55158         * tests/test-snprintf-posix.h (have_minus_zero): New function.
55159         (test_function): Skip tests involving -0.0 on platforms where
55160         -0.0 = 0.0.
55161         * tests/test-sprintf-posix.h (have_minus_zero): New function.
55162         (test_function): Skip tests involving -0.0 on platforms where
55163         -0.0 = 0.0.
55164         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
55165         tests.
55166         * tests/test-printf-posix.h (test_function): Likewise.
55167         * tests/test-printf-posix.output: Remove all -0.0 related results.
55168         Needed for IRIX 6.5.
55169
55170 2007-05-19  Bruno Haible  <bruno@clisp.org>
55171
55172         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
55173         printed as "nan0x7fffffff" instead of "nan".
55174         * tests/test-vasprintf-posix.c (test_function): Likewise.
55175         * tests/test-snprintf-posix.h (test_function): Likewise.
55176         * tests/test-sprintf-posix.h (test_function): Likewise.
55177         * tests/test-fprintf-posix.h (NaN): Remove macro.
55178         (test_function): Remove all NaN related tests.
55179         * tests/test-printf-posix.h (NaN): Remove macro.
55180         (test_function): Remove all NaN related tests.
55181         * tests/test-printf-posix.output: Remove all NaN related results.
55182         Needed for IRIX 6.5.
55183
55184 2007-05-19  Bruno Haible  <bruno@clisp.org>
55185
55186         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
55187         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
55188
55189 2007-05-19  Bruno Haible  <bruno@clisp.org>
55190
55191         * lib/float_.h: New file.
55192         * m4/float_h.m4: New file.
55193         * modules/float: New file.
55194         * modules/isnanl (Dependencies): Add float.
55195         * modules/isnanl-nolibm (Dependencies): Likewise.
55196         * modules/mathl (Dependencies): Likewise.
55197         * modules/printf-frexpl (Dependencies): Likewise.
55198         * modules/signbit (Dependencies): Likewise.
55199         * modules/vasnprintf (Dependencies): Likewise.
55200         * doc/headers/float.texi: Update.
55201
55202 2007-05-19  Jim Meyering  <jim@meyering.net>
55203
55204         * lib/utimens.c (gl_futimens): Rename from futimens,
55205         now that glibc-2.6 declares futimens.
55206         * lib/utimens.h: Likewise.
55207
55208 2007-05-19  Bruno Haible  <bruno@clisp.org>
55209
55210         Avoid test failures on mingw.
55211         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
55212         * tests/test-printf-posix.sh: Likewise.
55213         * tests/test-vfprintf-posix.sh: Likewise.
55214         * tests/test-vprintf-posix.sh: Likewise.
55215
55216 2007-05-19  Bruno Haible  <bruno@clisp.org>
55217
55218         Fix *printf result for NaN, Inf, -0.0 on mingw.
55219         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
55220         * lib/vasnprintf.c: Include math.h and isnan.h.
55221         (is_infinite_or_zero): New function.
55222         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
55223         values in the %f, %F, %e, %E, %g, %G directives.
55224         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
55225         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
55226         gl_PRINTF_INFINITE and test its result. Invoke
55227         gl_PREREQ_VASNPRINTF_INFINITE.
55228         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
55229         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
55230         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
55231         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
55232         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
55233         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55234         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
55235         * doc/functions/fprintf.texi: Update.
55236         * doc/functions/printf.texi: Update.
55237         * doc/functions/snprintf.texi: Update.
55238         * doc/functions/sprintf.texi: Update.
55239         * doc/functions/vfprintf.texi: Update.
55240         * doc/functions/vprintf.texi: Update.
55241         * doc/functions/vsnprintf.texi: Update.
55242         * doc/functions/vsprintf.texi: Update.
55243
55244 2007-05-19  Bruno Haible  <bruno@clisp.org>
55245
55246         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
55247         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
55248         Instead of multiplying with 10^k, set extra_zeroes to k.
55249         (scale10_round_long_double): Remove function.
55250
55251 2007-05-18  Bruno Haible  <bruno@clisp.org>
55252
55253         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
55254         introduced on 2007-05-06.
55255
55256 2007-05-18  Bruno Haible  <bruno@clisp.org>
55257
55258         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
55259         %g directives.
55260         * tests/test-vasprintf-posix.c (test_function): Likewise.
55261         * tests/test-snprintf-posix.h (test_function): Likewise.
55262         * tests/test-sprintf-posix.h (test_function): Likewise.
55263
55264 2007-05-18  Bruno Haible  <bruno@clisp.org>
55265
55266         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
55267         (strmatch): New function.
55268         (test_function): Test the %f directive on numbers of various exponents.
55269         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
55270         (strmatch): New function.
55271         (test_function): Test the %f directive on numbers of various exponents.
55272         * tests/test-snprintf-posix.h (strmatch): New function.
55273         (test_function): Test the %f directive on numbers of various exponents.
55274         * tests/test-sprintf-posix.h (strmatch): New function.
55275         (test_function): Test the %f directive on numbers of various exponents.
55276         * tests/test-snprintf-posix.c (SIZEOF): New macro.
55277         * tests/test-sprintf-posix.c (SIZEOF): New macro.
55278         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
55279         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
55280
55281 2007-05-18  Bruno Haible  <bruno@clisp.org>
55282
55283         Add support for 'long double' number output.
55284         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
55285         * lib/vasnprintf.c: Include math.h and float+.h.
55286         (mp_limb_t): New type.
55287         (GMP_LIMB_BITS): New macro.
55288         (mp_twolimb_t): New type.
55289         (GMP_TWOLIMB_BITS): New macro.
55290         (mpn_t): New type.
55291         (multiply, divide, convert_to_decimal, decode_long_double,
55292         scale10_round_long_double, scale10_round_decimal_long_double,
55293         floorlog10l): New functions.
55294         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
55295         for the %f, %F, %e, %E, %g, %G directives.
55296         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
55297         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
55298         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
55299         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
55300         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
55301         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
55302         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
55303         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
55304         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
55305         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55306         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
55307         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
55308         * modules/snprintf-posix (Depends-on): Likewise.
55309         * modules/sprintf-posix (Depends-on): Likewise.
55310         * modules/vasnprintf-posix (Depends-on): Likewise.
55311         * modules/vasprintf-posix (Depends-on): Likewise.
55312         * modules/vfprintf-posix (Depends-on): Likewise.
55313         * modules/vsnprintf-posix (Depends-on): Likewise.
55314         * modules/vsprintf-posix (Depends-on): Likewise.
55315         * modules/vasnprintf (Files): Add lib/float+.h.
55316         * doc/functions/fprintf.texi: Update.
55317         * doc/functions/printf.texi: Update.
55318         * doc/functions/snprintf.texi: Update.
55319         * doc/functions/sprintf.texi: Update.
55320         * doc/functions/vfprintf.texi: Update.
55321         * doc/functions/vprintf.texi: Update.
55322         * doc/functions/vsnprintf.texi: Update.
55323         * doc/functions/vsprintf.texi: Update.
55324
55325 2007-05-18  Bruno Haible  <bruno@clisp.org>
55326
55327         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
55328
55329 2007-05-18  Bruno Haible  <bruno@clisp.org>
55330
55331         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
55332         for printing 64-bit integers. Needed for mingw.
55333
55334 2007-05-18  Bruno Haible  <bruno@clisp.org>
55335
55336         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
55337         gl_FUNC_FREXPL_WORKS.
55338         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
55339
55340 2007-05-18  Bruno Haible  <bruno@clisp.org>
55341
55342         * modules/frexpl-nolibm-tests: New file.
55343
55344         * modules/frexpl-nolibm: New file.
55345         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
55346
55347 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
55348
55349         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
55350         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
55351         GCC 4.2, which otherwise issues a lot of warnings.
55352         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
55353         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
55354         Likewise.
55355         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
55356         * modules/iconv_open (iconv.h): Likewise.
55357         * modules/locale (locale.h): Likewise.
55358         * modules/netinet_in (netinet/in.h): Likewise.
55359         * modules/sys_select (sys_select.h): Likewise.
55360         * modules/sys_socket (sys/socket.h): Likewise.
55361         * modules/sys_stat (sys/stat.h): Likewise.
55362         * modules/sysexits (sysexits.h): Likewise.
55363         * modules/unistd (unistd.h): Likewise.
55364
55365 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55366
55367         * modules/closein-tests (Makefile.am): Distribute
55368         `test-closein.sh'.
55369
55370 2007-05-17  Bruno Haible  <bruno@clisp.org>
55371
55372         * tests/test-printf-posix.output: Renamed from
55373         tests/test-fprintf-posix.out.
55374         * modules/fprintf-posix-tests: Update.
55375         * modules/printf-posix-tests: Update.
55376         * modules/vfprintf-posix-tests: Update.
55377         * modules/vprintf-posix-tests: Update.
55378         * tests/test-fprintf-posix.sh: Update.
55379         * tests/test-printf-posix.sh: Update.
55380         * tests/test-vfprintf-posix.sh: Update.
55381         * tests/test-vprintf-posix.sh: Update.
55382         Reported by Ralf Wildenhues.
55383
55384 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
55385
55386         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
55387         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
55388         GCC 4.2, which otherwise issues a lot of warnings.
55389         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
55390         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
55391         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
55392         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
55393         it should no longer be needed.
55394         * lib/string_.h: Likewise.
55395         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
55396         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
55397         * modules/inttypes (inttypes.h): Likewise.
55398         * modules/math (math.h): Likewise.
55399         * modules/search (search.h): Likewise.
55400         * modules/signal (signal.h): Likewise.
55401         * modules/stdint (stdint.h): Likewise.
55402         * modules/stdio (stdio.h): Likewise.
55403         * modules/stdlib (stdlib.h): Likewise.
55404         * modules/string (string.h): Likewise.
55405         * modules/sys_time (sys/time.h): Likewise.
55406         * modules/time (time.h): Likewise.
55407         * modules/wchar (wchar.h): Likewise.
55408         * modules/wctype (wtype.h): Likewise.
55409
55410 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
55411
55412         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
55413
55414 2007-05-13  Bruno Haible  <bruno@clisp.org>
55415
55416         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
55417         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
55418         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
55419         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
55420         (gl_PREREQ_STRTOK_R): Don't require it here.
55421
55422 2007-05-13  Bruno Haible  <bruno@clisp.org>
55423
55424         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
55425         when used in C++ mode.
55426
55427 2007-05-12  Bruno Haible  <bruno@clisp.org>
55428
55429         * lib/linebuffer.h: Tweak doc.
55430         * lib/linebuffer.c: Likewise.
55431
55432 2007-05-12  James Youngman  <jay@gnu.org>
55433
55434         * lib/linebuffer.c (readlinebuffer_delim): New function,
55435         like readlinebuffer, but use a caller-specified delimiter.
55436         (readlinebuffer): Just call readlinebuffer_delim with '\n'
55437         as the delimiter.
55438         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
55439
55440 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
55441
55442         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
55443         * modules/openat (Files): Remove openat-die.c.
55444         (Depends-on): Add openat-die.
55445         * modules/openat-die: New module.
55446
55447 2007-05-06  Bruno Haible  <bruno@clisp.org>
55448
55449         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
55450         Update with info about Cygwin.
55451         * doc/functions/fprintf.texi: Update.
55452         * doc/functions/printf.texi: Update.
55453         * doc/functions/snprintf.texi: Update.
55454         * doc/functions/sprintf.texi: Update.
55455         * doc/functions/vfprintf.texi: Update.
55456         * doc/functions/vprintf.texi: Update.
55457         * doc/functions/vsnprintf.texi: Update.
55458         * doc/functions/vsprintf.texi: Update.
55459         Reported by Eric Blake.
55460
55461 2007-05-06  Bruno Haible  <bruno@clisp.org>
55462
55463         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
55464         padding ourselves for the floating-point directives.
55465         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
55466         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
55467         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
55468         gl_PRINTF_FLAG_ZERO and test its result. Invoke
55469         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
55470         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
55471         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
55472         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
55473         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
55474         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
55475         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55476         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
55477         * tests/test-snprintf-posix.h (test_function): Also check the width
55478         and some flags in the %f directive.
55479         * tests/test-sprintf-posix.h (test_function): Likewise.
55480         * tests/test-vasnprintf-posix.c (test_function): Likewise.
55481         * tests/test-vasprintf-posix.c (test_function): Likewise.
55482         * doc/functions/fprintf.texi: Update.
55483         * doc/functions/printf.texi: Update.
55484         * doc/functions/snprintf.texi: Update.
55485         * doc/functions/sprintf.texi: Update.
55486         * doc/functions/vfprintf.texi: Update.
55487         * doc/functions/vprintf.texi: Update.
55488         * doc/functions/vsnprintf.texi: Update.
55489         * doc/functions/vsprintf.texi: Update.
55490
55491 2007-05-06  Bruno Haible  <bruno@clisp.org>
55492
55493         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
55494         pass the ' flag character to sprintf or snprintf.
55495         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
55496         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
55497         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
55498         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
55499         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
55500         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
55501         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
55502         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
55503         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
55504         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
55505         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55506         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
55507         * tests/test-snprintf-posix.h (test_function): Also check the grouping
55508         flag.
55509         * tests/test-sprintf-posix.h (test_function): Likewise.
55510         * tests/test-vasnprintf-posix.c (test_function): Likewise.
55511         * tests/test-vasprintf-posix.c (test_function): Likewise.
55512         * doc/functions/fprintf.texi: Update.
55513         * doc/functions/printf.texi: Update.
55514         * doc/functions/snprintf.texi: Update.
55515         * doc/functions/sprintf.texi: Update.
55516         * doc/functions/vfprintf.texi: Update.
55517         * doc/functions/vprintf.texi: Update.
55518         * doc/functions/vsnprintf.texi: Update.
55519         * doc/functions/vsprintf.texi: Update.
55520
55521 2007-05-01  Bruno Haible  <bruno@clisp.org>
55522
55523         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
55524
55525 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
55526
55527         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
55528         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
55529
55530 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
55531
55532         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
55533         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
55534         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
55535
55536 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
55537
55538         * lib/argp-help.c (struct hol_entry): New member `ord'.
55539         (HOL_ENTRY_PTRCMP): Use ord for comparison
55540         (hol_sort): Initialize ord.
55541
55542 2007-05-01  Bruno Haible  <bruno@clisp.org>
55543
55544         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
55545         Reported by Eric Blake.
55546         * doc/gnulib.texi (Function Substitutes): Update.
55547
55548 2007-05-01  Bruno Haible  <bruno@clisp.org>
55549
55550         * doc/functions.texi: Remove file, now redundant through
55551         doc/functions/*.texi.
55552
55553 2007-05-01  Bruno Haible  <bruno@clisp.org>
55554
55555         * modules/argp (Depends-on): Add sleep.
55556
55557 2007-05-01  Bruno Haible  <bruno@clisp.org>
55558
55559         * modules/sleep-tests: New file.
55560         * tests/test-sleep.c: New file.
55561
55562         * modules/sleep: New file.
55563         * lib/sleep.c: New file.
55564         * m4/sleep.m4: New file.
55565         * lib/unistd_.h (sleep): New declaration.
55566         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
55567         HAVE_SLEEP.
55568         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
55569         * doc/functions/sleep.texi: Document the sleep module.
55570
55571 2007-05-01  Bruno Haible  <bruno@clisp.org>
55572
55573         * lib/sigprocmask.h: Remove file.
55574         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
55575         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
55576         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
55577         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
55578         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
55579         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
55580         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
55581         HAVE_SIGSET_T as a shell variable.
55582         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
55583         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
55584         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
55585         (Depends-on): Add signal. Remove verify.
55586         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
55587         (Include): Mention <signal.h> instead of sigprocmask.h.
55588         * NEWS: Mention the change.
55589         * lib/fatal-signal.c: Don't include sigprocmask.h.
55590
55591 2007-05-01  Bruno Haible  <bruno@clisp.org>
55592
55593         * modules/signal: New file.
55594         * lib/signal_.h: New file.
55595         * m4/signal_h.m4: New file.
55596
55597 2007-05-01  Bruno Haible  <bruno@clisp.org>
55598
55599         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
55600         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
55601         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
55602         HAVE_WCTYPE_CTMP_BUG into wctype.h.
55603
55604 2007-05-01  Bruno Haible  <bruno@clisp.org>
55605
55606         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
55607         configure time.
55608         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
55609         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
55610         * modules/sys_stat (Makefile.am): Substitute their values into
55611         sys/stat.h.
55612
55613 2007-05-01  Bruno Haible  <bruno@clisp.org>
55614
55615         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
55616         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
55617         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
55618
55619 2007-05-01  Bruno Haible  <bruno@clisp.org>
55620
55621         * doc/header/assert.texi: Undo last change: don't mention the gnulib
55622         'assert' module here.
55623
55624 2007-05-01  Bruno Haible  <bruno@clisp.org>
55625
55626         * doc/functions/*.texi: New files.
55627         * doc/functions/google-ranking.txt: New file.
55628         * doc/gnulib.texi (Function Substitutes): New chapter.
55629         (ctime, inet_ntoa): Remove sections.
55630         * doc/ctime.texi: Remove file.
55631         * doc/inet_ntoa.texi: Remove file.
55632         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
55633         dependencies.
55634         (%.info): New rule, specifying a --reference-limit.
55635
55636 2007-05-01  Bruno Haible  <bruno@clisp.org>
55637
55638         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
55639
55640 2007-05-01  Bruno Haible  <bruno@clisp.org>
55641
55642         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
55643         the portability of 'mkdir' to mingw systems.
55644
55645 2007-05-01  Bruno Haible  <bruno@clisp.org>
55646
55647         * doc/headers/google-ranking.txt: New file.
55648
55649 2007-04-30  Eric Blake  <ebb9@byu.net>
55650
55651         Prefer fseeko to fseek.
55652         * modules/getpass (Depends-on): Add fseeko.
55653         * lib/getpass.c (getpass): Use fseeko, not fseek.
55654
55655 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
55656
55657         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
55658         assumes the sorting is stable, while most qsort implementations
55659         are not.  Use argument addresses to ensure they never compare as
55660         equal.
55661
55662         * tests/test-argp-2.sh (usage-indent test): Fix output
55663         (func_compare): Restore diff options
55664         * tests/test-argp.c: Restore #include "progname.h"
55665
55666 2007-04-29  Bruno Haible  <bruno@clisp.org>
55667
55668         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
55669         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
55670         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
55671         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55672         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
55673         (configure.ac): Define CHECK_SNPRINTF_POSIX.
55674         (TESTS, check_PROGRAMS): Add test-snprintf.
55675         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
55676         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
55677         (TESTS, check_PROGRAMS): Add test-vsnprintf.
55678         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
55679         assertions that fail on HP-UX, OSF/1, or IRIX.
55680         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
55681
55682 2007-04-29  Bruno Haible  <bruno@clisp.org>
55683
55684         * MODULES.html.sh (posix_functions): Remove 'contents'.
55685
55686 2007-04-29  Karl Berry  <karl@gnu.org>
55687
55688         * config/srclist.txt (gendocs_template_min): new entry.
55689
55690 2007-04-29  Bruno Haible  <bruno@clisp.org>
55691
55692         Work around fpurge bug on BSD systems.
55693         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
55694         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
55695         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
55696         fpurge to rpl_fpurge if the system already has this function.
55697         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
55698         the case where the system already has this function. Correct invariants
55699         on BSD systems.
55700         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
55701         BSD systems.
55702
55703 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
55704
55705         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
55706         proposed by Sven Verdoolaege.
55707
55708         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
55709         options.
55710         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
55711         (usage and help tests): Update
55712
55713 2007-04-29  Bruno Haible  <bruno@clisp.org>
55714
55715         * tests/test-fflush.c (main): Use a file of size 17, not 10.
55716         Print more information in case of failure. Disable a test on BeOS.
55717
55718 2007-04-29  Bruno Haible  <bruno@clisp.org>
55719
55720         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
55721         This helps debugging on systems on which no gdb is available.
55722
55723 2007-04-29  Bruno Haible  <bruno@clisp.org>
55724
55725         * lib/freading.h: Improve comments.
55726         * lib/fwriting.h: Likewise.
55727         * tests/test-freading.c (main): Don't check freading immediately after
55728         repositioning. Needed for glibc.
55729
55730 2007-04-29  Bruno Haible  <bruno@clisp.org>
55731
55732         * lib/freading.c (freading): Trivial simplification.
55733
55734 2007-04-28  Bruno Haible  <bruno@clisp.org>
55735
55736         * tests/test-fwriting.c (main): Also test the interaction between
55737         fflush and fwriting.
55738         * modules/fwriting-tests (Depends-on): Add fflush.
55739
55740         * tests/test-freading.c (main): Also test the interaction between
55741         fflush and freading.
55742         * modules/freading-tests (Depends-on): Add fflush.
55743
55744 2007-04-28  Bruno Haible  <bruno@clisp.org>
55745
55746         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
55747         fseeko and ftello.
55748         Suggested by Eric Blake.
55749
55750 2007-04-28  Jim Meyering  <jim@meyering.net>
55751
55752         Avoid false-negative in gl_STDINT_H's C99 conformance test.
55753         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
55754         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
55755
55756 2007-04-27  Eric Blake  <ebb9@byu.net>
55757
55758         * doc/headers/assert.texi (assert.h): Document assert module use.
55759
55760 2007-04-27  Bruno Haible  <bruno@clisp.org>
55761
55762         * doc/headers/*.texi: New files.
55763         * doc/gnulib.texi (Header File Substitutes): New chapter.
55764         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
55765         dependencies.
55766         (standards.info ,standards.html, standards.dvi): Update dependencies.
55767         (mostlyclean, clean): New targets.
55768
55769 2007-04-27  Bruno Haible  <bruno@clisp.org>
55770
55771         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
55772         * modules/sysexits (Files, Makefile.am): Update.
55773
55774         * lib/sys_socket_.h: Renamed from lib/socket_.h.
55775         * modules/sys_socket (Files, Makefile.am): Update.
55776
55777         * lib/sys_stat_.h: Renamed from lib/stat_.h.
55778         * modules/sys_stat (Files, Makefile.am): Update.
55779
55780 2007-04-27  Eric Blake  <ebb9@byu.net>
55781
55782         * lib/freading.h: Improve comments.
55783         * lib/fwriting.h: Likewise.
55784         * lib/fflush.c: Likewise.
55785
55786         Fix closein for mingw.
55787         * modules/closein-tests: Add tests for closein.
55788         * tests/test-closein.c: New file.
55789         * tests/test-closein.sh: Likewise.
55790         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
55791         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
55792
55793 2007-04-27  Bruno Haible  <bruno@clisp.org>
55794
55795         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
55796         version is < 6.
55797         * lib/math_.h [__DECC]: Likewise.
55798         * lib/stdio_.h [__DECC]: Likewise.
55799         * lib/stdlib_.h [__DECC]: Likewise.
55800         * lib/string_.h [__DECC]: Likewise.
55801         * lib/time_.h [__DECC]: Likewise.
55802         * lib/wchar_.h [__DECC]: Likewise.
55803         * lib/wctype_.h [__DECC]: Likewise.
55804
55805 2007-04-27  Bruno Haible  <bruno@clisp.org>
55806
55807         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
55808
55809 2007-04-27  Bruno Haible  <bruno@clisp.org>
55810
55811         * lib/fflush.c: Add comments.
55812         * modules/fpurge-tests (Depends-on): Add fflush.
55813         * modules/freadable-tests (Depends-on): Likewise.
55814         * modules/fwritable-tests (Depends-on): Likewise.
55815
55816 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
55817
55818         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
55819         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
55820         Report by Bruno Haible <bruno@clisp.org>.
55821
55822 2007-04-26  Eric Blake  <ebb9@byu.net>
55823
55824         Fix fflush on mingw.
55825         * modules/fflush (Depends-on): Add freading.
55826         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
55827         but unread data.
55828
55829 2007-04-26  Eric Blake  <ebb9@byu.net>
55830         and Bruno Haible  <bruno@clisp.org>
55831
55832         Implement freading and fwriting.
55833         * lib/freading.c: New file.
55834         * lib/freading.h: Likewise.
55835         * m4/freading.m4: Likewise.
55836         * modules/freading: Likewise.
55837         * modules/freading-tests: Likewise.
55838         * tests/test-freading.c: Likewise.
55839         * lib/fwriting.c: New file.
55840         * lib/fwriting.h: Likewise.
55841         * m4/fwriting.m4: Likewise.
55842         * modules/fwriting: Likewise.
55843         * modules/fwriting-tests: Likewise.
55844         * tests/test-fwriting.c: Likewise.
55845         * MODULES.html.sh (File stream based Input/Output): Mention them.
55846
55847 2007-04-26  Bruno Haible  <bruno@clisp.org>
55848
55849         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
55850         'long' when we assume it.
55851         Suggested by Eric Blake.
55852
55853 2007-04-26  Bruno Haible  <bruno@clisp.org>
55854
55855         Ensure fseeko, ftello are declared on glibc systems.
55856         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
55857         * modules/fseeko (configure.ac-early): Likewise.
55858         * modules/ftello (configure.ac-early): Likewise.
55859         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
55860         AC_FUNC_FSEEKO for this.
55861         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
55862         (gl_CHECK_FSEEKO): Remove macro.
55863
55864 2007-04-26  Bruno Haible  <bruno@clisp.org>
55865
55866         * tests/test-fflush.c (main): Also check the ftell result after
55867         fflush and fseek/fseeko.
55868         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
55869         file descriptor position cache in the stream.
55870         * lib/fseeko.c (rpl_fseeko): Likewise.
55871
55872 2007-04-26  Bruno Haible  <bruno@clisp.org>
55873
55874         * modules/fflush-tests (Depends-on): Add fseeko.
55875
55876 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
55877             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55878
55879         * lib/argz_.h: ensure error_t definition is obtained in same
55880         mechanism system argz.h would have.
55881         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
55882         argz facilities are known bad.  Err on the side of caution if
55883         cross-compiling.
55884
55885 2007-04-25  Eric Blake  <ebb9@byu.net>
55886
55887         * lib/fpurge.c (includes): Use stdlib.h for free.
55888         * tests/test-fflush.c (main): Also test fflush-fseeko.
55889
55890 2007-04-25  Bruno Haible  <bruno@clisp.org>
55891
55892         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
55893         * lib/fseeko.c: New file.
55894         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
55895         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
55896         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
55897         gl_FUNC_FSEEKO.
55898         (gl_FUNC_FSEEKO): Invoke it.
55899         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
55900         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
55901         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
55902
55903 2007-04-25  Bruno Haible  <bruno@clisp.org>
55904
55905         * modules/fflush (Depends-on): Add ftello.
55906
55907 2007-04-25  Bruno Haible  <bruno@clisp.org>
55908
55909         * modules/ftello-tests: New file.
55910         * tests/test-ftello.c: New file.
55911
55912         * modules/ftello: New file.
55913         * m4/ftello.m4: New file.
55914         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
55915         HAVE_FTELLO.
55916         * lib/stdio_.h (ftello): New declaration.
55917         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
55918         HAVE_FTELLO.
55919
55920 2007-04-25  Bruno Haible  <bruno@clisp.org>
55921
55922         * modules/fseeko-tests: New file.
55923         * tests/test-fseeko.c: New file.
55924
55925         * modules/fseeko: New file.
55926         * m4/fseeko.m4: New file.
55927         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
55928         HAVE_FSEEKO.
55929         * lib/stdio_.h (fseeko): New declaration.
55930         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
55931         HAVE_FSEEKO.
55932
55933 2007-04-25  Bruno Haible  <bruno@clisp.org>
55934
55935         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
55936
55937 2007-04-25  Bruno Haible  <bruno@clisp.org>
55938
55939         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
55940         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
55941         * tests/test-unistd.c: Likewise.
55942         * tests/test-fcntl.c: Likewise.
55943
55944 2007-04-23  Eric Blake  <ebb9@byu.net>
55945
55946         * lib/fflush.c: Fix missing include.
55947         Reported by Bruno Haible.
55948
55949 2007-04-23  Bruno Haible  <bruno@clisp.org>
55950
55951         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
55952         Reported by Eric Blake.
55953
55954 2007-04-23  Bruno Haible  <bruno@clisp.org>
55955
55956         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
55957
55958 2007-04-23  Bruno Haible  <bruno@clisp.org>
55959
55960         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
55961
55962 2007-04-23  Bruno Haible  <bruno@clisp.org>
55963
55964         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
55965         Needed on HP-UX 11.
55966
55967 2007-04-16  Eric Blake  <ebb9@byu.net>
55968
55969         Make fflush rely on fpurge.
55970         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
55971         open coding all variants.
55972         * modules/fflush (Depends-on): Add fpurge and unistd.
55973         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
55974         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
55975
55976         Fix --with-tests compilation on cygwin.
55977         * modules/argmatch-tests (Makefile.am): List gnulib library first
55978         in LDADD.
55979         * modules/argp-tests (Makefile.am): Likewise.
55980         * modules/array-list-tests (Makefile.am): Likewise.
55981         * modules/array-oset-tests (Makefile.am): Likewise.
55982         * modules/avltree-list-tests (Makefile.am): Likewise.
55983         * modules/avltree-oset-tests (Makefile.am): Likewise.
55984         * modules/avltreehash-list-tests (Makefile.am): Likewise.
55985         * modules/carray-list-tests (Makefile.am): Likewise.
55986         * modules/dirname-tests (Makefile.am): Likewise.
55987         * modules/frexp-tests (Makefile.am): Likewise.
55988         * modules/isnanl-tests (Makefile.am): Likewise.
55989         * modules/linked-list-tests (Makefile.am): Likewise.
55990         * modules/linkedhash-list-tests (Makefile.am): Likewise.
55991         * modules/lock-tests (Makefile.am): Likewise.
55992         * modules/rbtree-list-tests (Makefile.am): Likewise.
55993         * modules/rbtree-oset-tests (Makefile.am): Likewise.
55994         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
55995         * modules/tls-tests (Makefile.am): Likewise.
55996         * modules/tsearch-tests (Makefile.am): Likewise.
55997         * modules/xvasprintf-tests (Makefile.am): Likewise.
55998
55999         Fix fpurge for cygwin.
56000         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
56001         value.
56002         * modules/fpurge-tests (Depends-on): Clean up trash.
56003
56004 2007-04-16  Simon Josefsson  <simon@josefsson.org>
56005
56006         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
56007
56008         * m4/autobuild.m4: Re-indent.
56009
56010 2007-04-13  Bruno Haible  <bruno@clisp.org>
56011
56012         * modules/fpurge-tests: New file.
56013         * tests/test-fpurge.c: New file.
56014
56015         * modules/fpurge: New file.
56016         * lib/fpurge.h: New file.
56017         * lib/fpurge.c: New file.
56018         * m4/fpurge.m4: New file.
56019
56020 2007-04-13  Bruno Haible  <bruno@clisp.org>
56021
56022         * modules/fbufmode-tests: New file.
56023         * tests/test-fbufmode.c: New file.
56024
56025         * modules/fbufmode: New file.
56026         * lib/fbufmode.h: New file.
56027         * lib/fbufmode.c: New file.
56028         * m4/fbufmode.m4: New file.
56029
56030 2007-04-13  Bruno Haible  <bruno@clisp.org>
56031
56032         * modules/fwritable-tests: New file.
56033         * tests/test-fwritable.c: New file.
56034
56035         * modules/fwritable: New file.
56036         * lib/fwritable.h: New file.
56037         * lib/fwritable.c: New file.
56038         * m4/fwritable.m4: New file.
56039
56040 2007-04-13  Bruno Haible  <bruno@clisp.org>
56041
56042         * modules/freadable-tests: New file.
56043         * tests/test-freadable.c: New file.
56044
56045         * modules/freadable: New file.
56046         * lib/freadable.h: New file.
56047         * lib/freadable.c: New file.
56048         * m4/freadable.m4: New file.
56049
56050 2007-04-13  Bruno Haible  <bruno@clisp.org>
56051
56052         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
56053         MOSTLYCLEANFILES.
56054
56055 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
56056
56057         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
56058         gzip bootstrap.conf to avoid dragging in i18n machinery.
56059         (gnulib_tool_option): Use it.
56060
56061 2007-04-13  Bruno Haible  <bruno@clisp.org>
56062
56063         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
56064         %F directives.
56065         * tests/test-vasprintf-posix.c (test_function): Likewise.
56066         * tests/test-snprintf-posix.h (test_function): Likewise.
56067         * tests/test-sprintf-posix.h (test_function): Likewise.
56068         * tests/test-fprintf-posix.h (test_function): Likewise.
56069         * tests/test-printf-posix.h (test_function): Likewise.
56070         * tests/test-fprintf-posix.out: Likewise.
56071
56072 2007-04-13  Bruno Haible  <bruno@clisp.org>
56073
56074         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
56075         * modules/tls-tests (configure.ac): Likewise.
56076         Reported by Arto C. Nirkko <anirkko@insel.ch>.
56077
56078 2007-04-13  Bruno Haible  <bruno@clisp.org>
56079
56080         * lib/tls.c (glthread_tls_get): Fix return type.
56081         Patch by Arto C. Nirkko <anirkko@insel.ch>.
56082
56083 2007-04-12  Eric Blake  <ebb9@byu.net>
56084
56085         * modules/gettime (Depends-on): Remove gettime.
56086         Reported by Dmitry V. Levin.
56087
56088 2007-04-12  Bruno Haible  <bruno@clisp.org>
56089
56090         * modules/fflush (Include): Mention <stdio.h>.
56091         * modules/strtoimax (Include): Mention <inttypes.h>.
56092         * modules/strtoumax (Include): Likewise.
56093
56094 2007-04-12  Eric Blake  <ebb9@byu.net>
56095
56096         * .cvsignore: New file.
56097         * .gitignore: Likewise.
56098
56099 2007-04-12  Bruno Haible  <bruno@clisp.org>
56100
56101         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
56102         not before, since $(LDADD) often contains libgnu.a.
56103         * modules/striconv-tests (test_striconv_LDADD): Likewise.
56104         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
56105         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
56106         Needed on Cygwin.
56107
56108 2007-04-12  Eric Blake  <ebb9@byu.net>
56109
56110         Work around glibc's failure to flush stdin on fclose.
56111         * lib/closein.c (close_stdin): Flush stdin before closing.
56112
56113         Work around glibc's failure to reset seekable stdin on exit.
56114         * modules/closein: New module.
56115         * lib/closein.c: New file.
56116         * lib/closein.h: Likewise.
56117         * m4/closein.m4: Likewise.
56118         * MODULES.html.sh (File stream based Input/Output): Document it.
56119
56120 2007-04-12  Simon Josefsson  <simon@josefsson.org>
56121
56122         * gnulib-tool: Rename generated 'autobuild' script to
56123         'do-autobuild' in --create-megatestdir output.
56124
56125         * doc/gnulib.texi (Build robot for gnulib): Fix.
56126
56127 2007-04-12  Simon Josefsson  <simon@josefsson.org>
56128
56129         * modules/sysexits (Depends-on): Add absolute-header.
56130
56131 2007-04-12  Eric Blake  <ebb9@byu.net>
56132
56133         No need to preserve errno on success.
56134         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
56135         Reported by Bruno Haible.
56136
56137 2007-04-12  Simon Josefsson  <simon@josefsson.org>
56138
56139         * MODULES.html.sh (Support for maintaining and releasing
56140         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
56141
56142 2007-04-12  Simon Josefsson  <simon@josefsson.org>
56143
56144         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
56145
56146 2007-04-12  Simon Josefsson  <simon@josefsson.org>
56147
56148         * modules/autobuild: New module.
56149
56150         * m4/autobuild.m4: New file.
56151
56152 2007-04-11  Bruno Haible  <bruno@clisp.org>
56153
56154         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
56155         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
56156         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
56157         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
56158         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
56159         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
56160         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
56161         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
56162         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
56163         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
56164         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
56165         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
56166         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
56167         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
56168         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
56169         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
56170         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
56171         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
56172         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
56173         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
56174         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
56175         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
56176         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
56177         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
56178         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
56179         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
56180         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
56181         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
56182         Reported by Eric Blake.
56183
56184 2007-04-11  Bruno Haible  <bruno@clisp.org>
56185
56186         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
56187
56188 2007-04-10  Bruno Haible  <bruno@clisp.org>
56189
56190         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
56191         for NaN and Infinity. Needed on FreeBSD 6.1.
56192         * tests/test-vasnprintf-posix.c (test_function): Undo last change
56193         regarding results for "%010a" of Infinity and NaN.
56194         * tests/test-vasprintf-posix.c (test_function): Likewise.
56195         * tests/test-snprintf-posix.h (test_function): Likewise.
56196         * tests/test-sprintf-posix.h (test_function): Likewise.
56197         * tests/test-fprintf-posix.h (test_function): Likewise.
56198         * tests/test-printf-posix.h (test_function): Likewise.
56199         * tests/test-fprintf-posix.out: Likewise.
56200
56201 2007-04-10  Bruno Haible  <bruno@clisp.org>
56202
56203         * modules/locale-tests: New file.
56204         * tests/test-locale.c: New file.
56205
56206         * modules/locale: New file.
56207         * lib/locale_.h: New file.
56208         * m4/locale_h.m4: New file.
56209
56210 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
56211             Bruno Haible  <bruno@clisp.org>
56212
56213         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
56214         be determined, test for availability of the copysignf, copysign,
56215         copysignl functions.
56216         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
56217         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
56218         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
56219
56220 2007-04-09  Eric Blake  <ebb9@byu.net>
56221
56222         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
56223         * modules/stdio (Makefile.am): Support fflush.
56224         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
56225         * modules/fflush: New file.
56226         * lib/fflush.c: Likewise.
56227         * m4/fflush.m4: Likewise.
56228         * modules/fflush-tests: New test.
56229         * tests/test-fflush.c: Likewise.
56230         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
56231
56232 2007-04-06  Bruno Haible  <bruno@clisp.org>
56233
56234         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
56235         (VASNPRINTF): Use signbit for faster determination whether to print a
56236         minus sign.
56237         * modules/vasnprintf (Files): Remove lib/float+.h.
56238         * modules/fprintf-posix (Depends-on): Add signbit.
56239         * modules/snprintf-posix (Depends-on): Likewise.
56240         * modules/sprintf-posix (Depends-on): Likewise.
56241         * modules/vasnprintf-posix (Depends-on): Likewise.
56242         * modules/vasprintf-posix (Depends-on): Likewise.
56243         * modules/vfprintf-posix (Depends-on): Likewise.
56244         * modules/vsnprintf-posix (Depends-on): Likewise.
56245         * modules/vsprintf-posix (Depends-on): Likewise.
56246
56247 2007-04-06  Bruno Haible  <bruno@clisp.org>
56248
56249         * tests/test-frexp.c (main): Test also the sign bit of zero results.
56250         * tests/test-frexpl.c (main): Likewise.
56251         * tests/test-ldexpl.c (main): Likewise.
56252         * modules/frexp-tests (Depends-on): Add signbit.
56253         * modules/frexpl-tests (Depdends-on): Likewise.
56254         * modules/ldexpl-tests (Depdends-on): Likewise.
56255
56256 2007-04-06  Bruno Haible  <bruno@clisp.org>
56257
56258         * modules/signbit-tests: New file.
56259         * tests/test-signbit.c: New file.
56260
56261         * modules/signbit: New file.
56262         * lib/signbitf.c: New file.
56263         * lib/signbitd.c: New file.
56264         * lib/signbitl.c: New file.
56265         * m4/signbit.m4: New file.
56266         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
56267         (signbit): New macro.
56268         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
56269         REPLACE_SIGNBIT.
56270         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
56271         REPLACE_FREXPL into math.h.
56272
56273 2007-04-06  Bruno Haible  <bruno@clisp.org>
56274
56275         * modules/isnanf-nolibm-tests: New file.
56276         * tests/test-isnanf.c: New file.
56277
56278         * modules/isnanf-nolibm: New file.
56279         * lib/isnanf.h: New file.
56280         * lib/isnanf.c: New file.
56281         * lib/isnan.c: Consider the USE_FLOAT macro.
56282         * m4/isnanf.m4: New file.
56283
56284 2007-04-06  Bruno Haible  <bruno@clisp.org>
56285
56286         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
56287         (Link): New section.
56288
56289         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
56290
56291 2007-04-06  Bruno Haible  <bruno@clisp.org>
56292
56293         Assume the 'long double' type.
56294         * m4/longdouble.m4: Remove file.
56295         * config/srclist.txt: Don't mention longdouble.m4.
56296         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
56297         * lib/float+.h: Likewise.
56298         * lib/frexp.c: Likewise.
56299         * lib/printf-args.h: Likewise.
56300         * lib/printf-args.c: Likewise.
56301         * lib/printf-frexp.c: Likewise.
56302         * lib/printf-parse.c: Likewise.
56303         * lib/vasnprintf.c: Likewise.
56304         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
56305         * m4/intl.m4: Likewise.
56306         * m4/isnanl.m4: Likewise.
56307         * m4/printf.m4: Likewise.
56308         * m4/printf-frexpl.m4: Likewise.
56309         * m4/vasnprintf.m4: Likewise.
56310         * modules/allocsa (Files): Remove m4/longdouble.m4.
56311         * modules/gettext (Files): Likewise.
56312         * modules/relocatable-prog-wrapper (Files): Likewise.
56313         * modules/vasnprintf (Files): Likewise.
56314         * modules/isnanl (Files): Likewise.
56315         (Include): Simplify.
56316         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
56317         (Include): Simplify.
56318         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
56319         (Include): Simplify.
56320         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
56321         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
56322         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
56323         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
56324         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
56325         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
56326         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
56327         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
56328         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
56329         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
56330         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
56331         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
56332         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
56333         * tests/test-isnanl.c: Likewise.
56334         * tests/test-snprintf-posix.h: Likewise.
56335         * tests/test-sprintf-posix.h: Likewise.
56336         * tests/test-vasnprintf-posix.c: Likewise.
56337         * tests/test-vasnprintf-posix2.c: Likewise.
56338         * tests/test-vasprintf-posix.c: Likewise.
56339
56340 2007-04-06  Bruno Haible  <bruno@clisp.org>
56341
56342         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
56343         * lib/math_.h [__DECC]: Include the overridden include file through
56344         #include_next, outside the double-inclusion guard.
56345         * lib/stdio_.h [__DECC]: Likewise.
56346         * lib/stdlib_.h [__DECC]: Likewise.
56347         * lib/string_.h [__DECC]: Likewise.
56348         * lib/time_.h [__DECC]: Likewise.
56349         * lib/wchar_.h [__DECC]: Likewise.
56350         * lib/wctype_.h [__DECC]: Likewise.
56351         * lib/inttypes_.h [__DECC]: Likewise.
56352         Reported by Albert Chin <china@thewrittenword.com> in
56353         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
56354
56355 2007-04-04  Eric Blake  <ebb9@byu.net>
56356
56357         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
56358         1.5.x.
56359
56360 2007-04-04  Bruno Haible  <bruno@clisp.org>
56361
56362         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
56363         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
56364
56365 2007-04-04  Bruno Haible  <bruno@clisp.org>
56366
56367         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
56368         results for "%010a" of Infinity and NaN.
56369         * tests/test-vasprintf-posix.c (test_function): Likewise.
56370         * tests/test-snprintf-posix.h (test_function): Likewise.
56371         * tests/test-sprintf-posix.h (test_function): Likewise.
56372         * tests/test-fprintf-posix.h (test_function): Remove these tests.
56373         * tests/test-printf-posix.h (test_function): Likewise.
56374         * tests/test-fprintf-posix.out: Update.
56375         Needed for FreeBSD 6.1.
56376
56377 2007-04-04  Bruno Haible  <bruno@clisp.org>
56378
56379         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
56380         directly used by the gnulib modules nor by gnulib-tool.
56381
56382 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
56383
56384         * DEPENDENCIES: Give overall description of version dependency
56385         desirability.  Use more-typical names for apps.
56386         Add shell, coreutils, diffutils, grep, tar, gzip.
56387
56388 2007-04-04  Simon Josefsson  <simon@josefsson.org>
56389
56390         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
56391
56392 2007-04-04  Karl Berry  <karl@gnu.org>
56393
56394         * MODULES.html.sh (func_module): missing '.
56395
56396 2007-04-03  Bruno Haible  <bruno@clisp.org>
56397
56398         * modules/argmatch-tests (Makefile.am): New variable
56399         test_argmatch_LDADD.
56400         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
56401         * modules/array-list-tests (Makefile.am): New variable
56402         test_array_list_LDADD.
56403         * modules/array-oset-tests (Makefile.am): New variable
56404         test_array_oset_LDADD.
56405         * modules/avltree-list-tests (Makefile.am): New variable
56406         test_avltree_list_LDADD.
56407         * modules/avltree-oset-tests (Makefile.am): New variable
56408         test_avltree_oset_LDADD.
56409         * modules/avltreehash-list-tests (Makefile.am): New variable
56410         test_avltreehash_list_LDADD.
56411         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
56412         test_canonicalize_lgpl_LDADD.
56413         * modules/carray-list-tests (Makefile.am): New variable
56414         test_carray_list_LDADD.
56415         * modules/dirname-tests (Makefile.am): New variable
56416         test_dirname_LDADD.
56417         * modules/linked-list-tests (Makefile.am): New variable
56418         test_linked_list_LDADD.
56419         * modules/linkedhash-list-tests (Makefile.am): New variable
56420         test_linkedhash_list_LDADD.
56421         * modules/rbtree-list-tests (Makefile.am): New variable
56422         test_rbtree_list_LDADD.
56423         * modules/rbtree-oset-tests (Makefile.am): New variable
56424         test_rbtree_oset_LDADD.
56425         * modules/rbtreehash-list-tests (Makefile.am): New variable
56426         test_rbtreehash_list_LDADD.
56427         * modules/xvasprintf-tests (Makefile.am): New variable
56428         test_xvasprintf_LDADD.
56429         Reported by Eric Blake.
56430
56431 2007-04-03  Eric Blake  <ebb9@byu.net>
56432
56433         * DEPENDENCIES: Weaken m4 requirements.
56434
56435 2007-04-03  Bruno Haible  <bruno@clisp.org>
56436
56437         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
56438         * modules/isnanl-tests (configure.ac): Likewise.
56439
56440 2007-04-03  Ben Pfaff  <blp@gnu.org>
56441
56442         * modules/iconv_open: Add $(srcdir)/ to source directory
56443         references in Makefile fragments that call gperf, to fix VPATH
56444         builds.
56445
56446 2007-04-03  Bruno Haible  <bruno@clisp.org>
56447
56448         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
56449         * lib/ldexpl.c: Undo last change.
56450
56451 2007-04-03  Bruno Haible  <bruno@clisp.org>
56452
56453         * modules/printf-frexpl (Depends-on): Undo last change.
56454         (Files): Add m4/ldexpl.m4.
56455
56456 2007-04-03  Bruno Haible  <bruno@clisp.org>
56457
56458         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
56459         * modules/isnanl (Link): New section.
56460
56461         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
56462         * modules/frexp (Link): New section.
56463
56464         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
56465         * modules/frexpl (Link): New section.
56466
56467         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
56468         * modules/ldexpl (Link): New section.
56469
56470 2007-04-03  Bruno Haible  <bruno@clisp.org>
56471
56472         * modules/TEMPLATE-EXTENDED: New file.
56473         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
56474
56475 2007-04-03  Bruno Haible  <bruno@clisp.org>
56476
56477         * DEPENDENCIES: New file.
56478         Suggested by Simon Josefsson.
56479
56480 2007-04-03  Bruno Haible  <bruno@clisp.org>
56481
56482         * doc/gnulib.texi: Escape @.
56483
56484 2007-04-03  James Youngman  <jay@gnu.org>
56485         and Paul Eggert  <eggert@cs.ucla.edu>
56486
56487         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
56488         birthtime on all systems that have birthtime, not just those which
56489         use st_birthtimensec rather than st_birthtim.  Putting zero in
56490         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
56491         that the birth time is not available for files on an NFS mount.
56492
56493 2007-04-03  Simon Josefsson  <simon@josefsson.org>
56494
56495         * modules/memxor: Move back from crypto/, suggested by Bruno.
56496         * modules/crypto/hmac-sha1: Fix memxor dependency.
56497
56498         * modules/crypto/gc: Moved from ../.
56499
56500 2007-04-02  Eric Blake  <ebb9@byu.net>
56501
56502         * lib/ldexpl.c (includes): Avoid libm.
56503
56504         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
56505
56506 2007-04-02  Bruno Haible  <bruno@clisp.org>
56507
56508         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
56509         on IRIX.
56510
56511 2007-04-02  Bruno Haible  <bruno@clisp.org>
56512
56513         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
56514         x86 or x86_64 platforms running MacOS X.
56515         Reported by Ryan Schmidt <@ryandesign.com>.
56516
56517 2007-04-02  Bruno Haible  <bruno@clisp.org>
56518
56519         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
56520         i386.
56521
56522 2007-04-01  Simon Josefsson  <simon@josefsson.org>
56523
56524         * modules/crypto/arcfour: Moved from ../.
56525         * modules/crypto/arcfour-tests: Moved from ../.
56526         * modules/crypto/arctwo: Moved from ../.
56527         * modules/crypto/arctwo-tests: Moved from ../.
56528         * modules/crypto/des: Moved from ../.
56529         * modules/crypto/des-tests: Moved from ../.
56530         * modules/crypto/gc-arcfour: Moved from ../.
56531         * modules/crypto/gc-arcfour-tests: Moved from ../.
56532         * modules/crypto/gc-arctwo: Moved from ../.
56533         * modules/crypto/gc-arctwo-tests: Moved from ../.
56534         * modules/crypto/gc-des: Moved from ../.
56535         * modules/crypto/gc-des-tests: Moved from ../.
56536         * modules/crypto/gc-hmac-md5: Moved from ../.
56537         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
56538         * modules/crypto/gc-hmac-sha1: Moved from ../.
56539         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
56540         * modules/crypto/gc-md2: Moved from ../.
56541         * modules/crypto/gc-md2-tests: Moved from ../.
56542         * modules/crypto/gc-md4: Moved from ../.
56543         * modules/crypto/gc-md4-tests: Moved from ../.
56544         * modules/crypto/gc-md5: Moved from ../.
56545         * modules/crypto/gc-md5-tests: Moved from ../.
56546         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
56547         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
56548         * modules/crypto/gc-random: Moved from ../.
56549         * modules/crypto/gc-rijndael: Moved from ../.
56550         * modules/crypto/gc-rijndael-tests: Moved from ../.
56551         * modules/crypto/gc-sha1: Moved from ../.
56552         * modules/crypto/gc-sha1-tests: Moved from ../.
56553         * modules/crypto/gc-tests: Moved from ../.
56554         * modules/crypto/hmac-md5: Moved from ../.
56555         * modules/crypto/hmac-md5-tests: Moved from ../.
56556         * modules/crypto/hmac-sha1: Moved from ../.
56557         * modules/crypto/hmac-sha1-tests: Moved from ../.
56558         * modules/crypto/md2: Moved from ../.
56559         * modules/crypto/md2-tests: Moved from ../.
56560         * modules/crypto/md4: Moved from ../.
56561         * modules/crypto/md4-tests: Moved from ../.
56562         * modules/crypto/md5: Moved from ../.
56563         * modules/crypto/md5-tests: Moved from ../.
56564         * modules/crypto/memxor: Moved from ../.
56565         * modules/crypto/rijndael: Moved from ../.
56566         * modules/crypto/rijndael-tests: Moved from ../.
56567         * modules/crypto/sha1: Moved from ../.
56568
56569 2007-03-30  James Youngman  <jay@gnu.org>
56570
56571         * tests/test-stat-time.c (prepare_test): use chmod() rather than
56572         rename() to change the ctime of a file (because ctime is unaffected
56573         by rename on jfs2 on AIX 5.1).
56574         (main): Start by doing cleanup, in case a previous run failed leaving
56575         test files behind.
56576
56577 2007-03-31  Bruno Haible  <bruno@clisp.org>
56578
56579         Support old proprietary implementations of iconv.
56580         * modules/iconv_open: New file.
56581         * lib/iconv_.h: New file.
56582         * m4/iconv_h.m4: New file.
56583         * lib/iconv_open.c: New file.
56584         * lib/iconv_open-aix.gperf: New file.
56585         * lib/iconv_open-hpux.gperf: New file.
56586         * lib/iconv_open-irix.gperf: New file.
56587         * lib/iconv_open-osf.gperf: New file.
56588         * m4/iconv_open.m4: New file.
56589         * modules/linebreak (Depends-on): Add iconv_open.
56590         * modules/striconv (Depends-on): Likewise.
56591         * modules/striconveh (Depends-on): Likewise.
56592         * modules/unicodeio (Depends-on): Likewise.
56593         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
56594         (iconv_t)(-1).
56595         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
56596         conversion if cd is (iconv_t)(-1).
56597         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
56598         is not possible.
56599
56600 2007-03-31  Bruno Haible  <bruno@clisp.org>
56601
56602         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
56603         work on Solaris either. Protect also second use of "autodetect_jp".
56604
56605 2007-03-31  Bruno Haible  <bruno@clisp.org>
56606
56607         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
56608         the function is not present.
56609
56610 2007-03-31  Bruno Haible  <bruno@clisp.org>
56611
56612         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
56613         the function is not present.
56614
56615 2007-03-31  Bruno Haible  <bruno@clisp.org>
56616
56617         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
56618         a bug in HP-UX iconv_open().
56619
56620 2007-03-31  Bruno Haible  <bruno@clisp.org>
56621
56622         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
56623         (Mathematics <math.h>): New section, add fpieee.
56624         (Input/output <stdio.h>): Add fseterr.
56625         (Mathematics <math.h>): New section, add printf-frexp.
56626         (Container data structures): Add sublist.
56627         (Core language properties): Add fpucw, inline.
56628         (Functions for greatest-width integer types <inttypes.h>): Add
56629         imaxabs, imaxdiv, inttypes.
56630         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
56631         isnanl-nolibm, ldexp.
56632         (Mathematics <math.h>): New section, add printf-frexpl.
56633         (Support for systems lacking POSIX:2001): Add fprintf-posix,
56634         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
56635         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
56636         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
56637         (Unicode string functions): Add unistr/u*-mbtoucr.
56638         (Java): Add javacomp-script, javaexec-script.
56639         (C#): Add csharpcomp-script, csharpexec-script.
56640         (Support for building libraries and executables): Add havelib,
56641         relocatable-*.
56642         (Support for maintaining and releasing projects): Renamed from
56643         'Support for maintaining and release projects'. Add announce-gen.
56644
56645 2007-03-31  Bruno Haible  <bruno@clisp.org>
56646
56647         * README: Talk primarily about git.
56648         (git and CVS): Renamed from CVS.
56649         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
56650         gnulib is available through git.
56651         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
56652
56653 2007-03-30  Bruno Haible  <bruno@clisp.org>
56654
56655         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
56656         * lib/poll_.h: Likewise.
56657         * lib/stat_.h: Likewise.
56658         * lib/sys_time_.h: Likewise.
56659         * lib/sysexit_.h: Likewise.
56660         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
56661         * lib/stdbool_.h: Likewise.
56662         * lib/byteswap_.h: Add double-inclusion guard.
56663
56664 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
56665
56666         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
56667
56668 2007-03-30  Karl Berry  <karl@gnu.org>
56669
56670         * config/srclist-update: double space after USA in the license
56671         substitution, since that's how it's usually (?) written.
56672
56673 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
56674
56675         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
56676         reported by Bruno Haible.
56677
56678 2007-03-29  Bruno Haible  <bruno@clisp.org>
56679
56680         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
56681         a bug in AIX iconv().
56682
56683 2007-03-29  Bruno Haible  <bruno@clisp.org>
56684
56685         * modules/ldexpl-tests: New file.
56686         * tests/test-ldexpl.c: New file.
56687
56688 2007-03-29  Bruno Haible  <bruno@clisp.org>
56689
56690         * lib/ldexpl.c: Include fpucw.h.
56691         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
56692         multiplication.
56693         * modules/ldexpl (Depends-on): Add fpucw.
56694
56695 2007-03-29  Bruno Haible  <bruno@clisp.org>
56696
56697         * modules/ldexpl: New file.
56698         * m4/ldexpl.m4: New file.
56699         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
56700         set.
56701         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
56702         REPLACE_LDEXPL.
56703         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
56704         REPLACE_LDEXPL.
56705         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
56706         gl_FUNC_LDEXPL_WORKS.
56707         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
56708         * modules/mathl (Files): Remove lib/ldexpl.c.
56709         (Depends-on): Add ldexpl.
56710
56711 2007-03-29  Bruno Haible  <bruno@clisp.org>
56712
56713         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
56714
56715 2007-03-29  Bruno Haible  <bruno@clisp.org>
56716
56717         * tests/test-striconveh.c (main): Don't assume that a direct conversion
56718         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
56719         and possibly also HP-UX.
56720         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
56721         work on AIX, IRIX, HP-UX, OSF/1.
56722         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
56723         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
56724         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
56725         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
56726         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
56727         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
56728
56729 2007-03-29  Bruno Haible  <bruno@clisp.org>
56730
56731         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
56732
56733 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
56734
56735         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
56736         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
56737
56738 2007-03-29  Eric Blake  <ebb9@byu.net>
56739
56740         * lib/acl-internal.h: Remove redundant include.
56741         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
56742         Cygwin when a file is locked.
56743
56744 2007-03-29  Bruno Haible  <bruno@clisp.org>
56745
56746         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
56747         file.
56748         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
56749
56750 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
56751
56752         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
56753         try to remove a parent directory if the child couldn't be removed
56754         (except for the first rmdir, which could fail because the child
56755         doesn't exist).  Problem reported by Jeff Blaine in
56756         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
56757
56758 2007-03-28  Bruno Haible  <bruno@clisp.org>
56759
56760         * lib/striconveh.c (utf8conv_carefully): New function.
56761         (mem_cd_iconveh_internal): Invoke it.
56762
56763 2007-03-28  Bruno Haible  <bruno@clisp.org>
56764
56765         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
56766         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
56767         input.
56768         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
56769         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
56770         unistr/u8-uctomb.
56771
56772 2007-03-28  Bruno Haible  <bruno@clisp.org>
56773
56774         * modules/unistr/u8-mbtoucr: New file.
56775         * lib/unistr/u8-mbtoucr.c: New file.
56776         * modules/unistr/u16-mbtoucr: New file.
56777         * lib/unistr/u16-mbtoucr.c: New file.
56778         * modules/unistr/u16-mbtoucr: New file.
56779         * lib/unistr/u16-mbtoucr.c: New file.
56780         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
56781
56782 2007-03-27  Simon Josefsson  <simon@josefsson.org>
56783             Bruno Haible  <bruno@clisp.org>
56784
56785         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
56786         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
56787         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
56788
56789         * m4/stdio_h.m4: Add stubs for vasprintf too.
56790
56791         * modules/stdio: Support vasprintf in sed command.
56792
56793         * modules/vasprintf: Depend on stdio for prototypes.  Remove
56794         vasprintf.h.  Add stdio module indicator.
56795
56796         * lib/stdio_.h: Declare asprintf and vasprintf, based on
56797         vasprintf.h.
56798
56799         * lib/vasprintf.h: File removed.
56800
56801         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
56802         * lib/vasprintf.c: Ditto.
56803         * lib/xvasprintf.c: Ditto.
56804         * tests/test-vasprintf-posix.c: Ditto.
56805         * tests/test-vasprintf.c: Ditto.
56806
56807 2007-03-27  Bruno Haible  <bruno@clisp.org>
56808
56809         Make vasnprintf multithread-safe.
56810         * lib/vasnprintf.c (decimal_point_char): New function.
56811         (VASNPRINTF): Use it.
56812         Suggested by Simon Josefsson.
56813
56814 2007-03-27  Eric Blake  <ebb9@byu.net>
56815
56816         Support sub-second birthtime on cygwin.
56817         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
56818         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
56819         (get_stat_birthtime): Also work with st_birthtim.
56820
56821 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
56822
56823         * lib/stat-time.h (USE_BIRTHTIME): Remove.
56824         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
56825         (get_stat_birthtime_ns): Do not try to use "spare" fields.
56826         (get_stat_birthtime_ns): Simplify compile-time tests.
56827         (get_stat_birthtime): Change the API to look like
56828         get_stat_mtime etc., except return a negative tv_nsec on error.
56829         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
56830         Don't check for "spare" fields.
56831         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
56832         or for struct stat.st_birthtime, as these tests aren't used.
56833         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
56834
56835 2007-03-27  Bruno Haible  <bruno@clisp.org>
56836
56837         * lib/stat-time.h: Include <sys/stat.h>.
56838
56839 2007-03-27  James Youngman  <jay@gnu.org>
56840
56841         * lib/stat-time.h (get_stat_birthtime): New function for
56842           retrieving st_birthtime as provided by UFS2 (hence *BSD).
56843         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
56844           and its variants.
56845         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
56846         * modules/stat-time-test: New file.
56847         * tests/test-stat-time.c: New test, devised by Bruno Haible.
56848
56849 2007-03-26  Bruno Haible  <bruno@clisp.org>
56850
56851         Better support of signalling NaNs.
56852         * lib/atanl.c: Include isnanl.h.
56853         (atanl): Perform test for NaN at the beginning of the function and
56854         through a call to isnanl.
56855         * lib/cosl.c: Include isnanl.h.
56856         (cosl): Perform test for NaN at the beginning of the function and
56857         through a call to isnanl.
56858         * lib/ldexpl.c: Include isnanl.h.
56859         (ldexpl): Perform test for NaN through a call to isnanl.
56860         * lib/logl.c: Include isnanl.h.
56861         (logl): Perform test for NaN at the beginning of the function and
56862         through a call to isnanl.
56863         * lib/sinl.c: Include isnanl.h.
56864         (sinl): Perform test for NaN at the beginning of the function and
56865         through a call to isnanl.
56866         * lib/sqrtl.c: Include isnanl.h.
56867         (sqrtl): Perform test for NaN at the beginning of the function and
56868         through a call to isnanl.
56869         * lib/tanl.c: Include isnanl.h.
56870         (tanl): Perform test for NaN at the beginning of the function and
56871         through a call to isnanl.
56872         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
56873         * modules/mathl (Depends-on): Add isnanl.
56874
56875 2007-03-26  Eric Blake  <ebb9@byu.net>
56876
56877         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
56878         regression in logic sense of previous patch.
56879
56880 2007-03-26  Bruno Haible  <bruno@clisp.org>
56881
56882         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
56883         unportable shell command "if ! ...".
56884         Reported by Ralf Wildenhues.
56885
56886 2007-03-25  Bruno Haible  <bruno@clisp.org>
56887
56888         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
56889         <sysexits.h> file, and only add EX_CONFIG.
56890         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
56891         absolute file name and whether it is sufficient. Substitute also
56892         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
56893         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
56894         ABSOLUTE_SYSEXITS_H into sysexits.h.
56895
56896 2007-03-25  Bruno Haible  <bruno@clisp.org>
56897
56898         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
56899         hints is NULL.
56900
56901 2007-03-25  Bruno Haible  <bruno@clisp.org>
56902
56903         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
56904         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
56905
56906 2007-03-25  Bruno Haible  <bruno@clisp.org>
56907
56908         * lib/vasnprintf.c: Include langinfo.h.
56909         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
56910         multithread-safe.
56911         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
56912         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
56913         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
56914         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
56915         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
56916         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
56917         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
56918         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
56919         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
56920         Reported by Simon Josefsson.
56921
56922 2007-03-25  Bruno Haible  <bruno@clisp.org>
56923
56924         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
56925         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
56926         * modules/vasnprintf (Depends-on): Add stdint.
56927
56928 2007-03-25  Bruno Haible  <bruno@clisp.org>
56929
56930         * modules/fpieee: New file.
56931         * m4/fpieee.m4: New file.
56932         * modules/isnan-nolibm (Depends-on): Add fpieee.
56933         * modules/isnanl-nolibm (Depends-on): Add fpieee.
56934         * modules/isnanl (Depends-on): Add fpieee.
56935
56936 2007-03-25  Bruno Haible  <bruno@clisp.org>
56937
56938         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
56939
56940 2007-03-25  Bruno Haible  <bruno@clisp.org>
56941
56942         Avoid test failures on IRIX 6.5.
56943         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
56944         (main): Use it.
56945         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
56946         macros.
56947         (main): Use them.
56948
56949 2007-03-25  Bruno Haible  <bruno@clisp.org>
56950
56951         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
56952         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
56953         exists but doesn't work.
56954         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
56955         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
56956         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
56957         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
56958         math.h.
56959
56960 2007-03-25  Bruno Haible  <bruno@clisp.org>
56961
56962         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
56963         returns inf. Needed on IRIX 6.5.
56964
56965 2007-03-25  Bruno Haible  <bruno@clisp.org>
56966
56967         * tests/test-frexpl.c: Include isnanl-nolibm.h.
56968         (main): Use isnanl instead of x != x idiom.
56969         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
56970
56971         * tests/test-frexp.c: Include isnan.h.
56972         (main): Use isnan instead of x != x idiom.
56973         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
56974
56975 2007-03-25  Bruno Haible  <bruno@clisp.org>
56976
56977         * tests/test-frexp.c (NaN): New function/macro.
56978         (main): Use it instead of 0.0 / 0.0.
56979         * tests/test-isnan.c (NaN): New function/macro.
56980         (main): Use it instead of 0.0 / 0.0.
56981         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
56982         (test_function): Use it instead of 0.0 / 0.0.
56983         * tests/test-vasprintf-posix.c (NaN): New function/macro.
56984         (test_function): Use it instead of 0.0 / 0.0.
56985         * tests/test-snprintf-posix.h (NaN): New function/macro.
56986         (test_function): Use it instead of 0.0 / 0.0.
56987         * tests/test-sprintf-posix.h (NaN): New function/macro.
56988         (test_function): Use it instead of 0.0 / 0.0.
56989         * tests/test-fprintf-posix.h (NaN): New function/macro.
56990         (test_function): Use it instead of 0.0 / 0.0.
56991         * tests/test-printf-posix.h (NaN): New function/macro.
56992         (test_function): Use it instead of 0.0 / 0.0.
56993
56994         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
56995
56996 2007-03-25  Bruno Haible  <bruno@clisp.org>
56997
56998         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
56999
57000 2007-03-25  Bruno Haible  <bruno@clisp.org>
57001
57002         * lib/regexec.c (merge_state_with_log): Make static.
57003
57004 2007-03-25  Bruno Haible  <bruno@clisp.org>
57005
57006         * lib/trigl.c (kernel_rem_pio2): Make static.
57007
57008 2007-03-25  Bruno Haible  <bruno@clisp.org>
57009
57010         * lib/sincosl.c (sincosl_table): Make static.
57011
57012 2007-03-25  Bruno Haible  <bruno@clisp.org>
57013
57014         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
57015         if the compiler does not support C99.
57016
57017 2007-03-25  Bruno Haible  <bruno@clisp.org>
57018
57019         * modules/time (Makefile.am): Ensure all rule action lines start with a
57020         tab.
57021
57022 2007-03-24  Bruno Haible  <bruno@clisp.org>
57023
57024         * modules/tsearch-tests: New file.
57025         * tests/test-tsearch.sh: New file.
57026         * tests/test-tsearch.c: New file, mostly copied from glibc.
57027
57028         * modules/search-tests: New file.
57029         * tests/test-search.c: New file.
57030
57031         * modules/search: New file.
57032         * lib/search_.h: New file, incorporating lib/tsearch.h.
57033         * m4/search_h.m4: New file.
57034         * lib/tsearch.h: Remove file.
57035         * lib/tsearch.c: Include search.h instead of tsearch.h.
57036         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
57037         HAVE_TSEARCH.
57038         * modules/tsearch (Files): Remove lib/tsearch.h.
57039         (Depends-on): Add search.
57040         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
57041         (Include): Change tsearch.h into search.h.
57042
57043 2007-03-24  Bruno Haible  <bruno@clisp.org>
57044
57045         * modules/fpucw: New file.
57046         * lib/fpucw.h: New file.
57047         * lib/frexp.c: Include fpucw.h.
57048         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
57049         (FUNC): Use them.
57050         * lib/printf-frexp.c: Include fpucw.h.
57051         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
57052         (FUNC): Use them.
57053         * lib/vasnprintf.c: Include fpucw.h.
57054         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
57055         'long double' calculations.
57056         * tests/test-frexpl.c: Include fpucw.h.
57057         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
57058         * tests/test-printf-frexpl.c: Include fpucw.h.
57059         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
57060         * modules/frexpl (Depends-on): Add fpucw.
57061         * modules/printf-frexpl (Depends-on): Likewise.
57062         * modules/fprintf-posix (Depends-on): Likewise.
57063         * modules/snprintf-posix (Depends-on): Likewise.
57064         * modules/sprintf-posix (Depends-on): Likewise.
57065         * modules/vasnprintf-posix (Depends-on): Likewise.
57066         * modules/vasprintf-posix (Depends-on): Likewise.
57067         * modules/vfprintf-posix (Depends-on): Likewise.
57068         * modules/vsnprintf-posix (Depends-on): Likewise.
57069         * modules/vsprintf-posix (Depends-on): Likewise.
57070         * modules/frexpl-tests (Depends-on): Likewise.
57071         * modules/printf-frexpl-tests (Depends-on): Likewise.
57072
57073 2007-03-24  Bruno Haible  <bruno@clisp.org>
57074
57075         * lib/float+.h: New file.
57076         * lib/isnan.c: Include float+.h.
57077         (SIZE): New macro.
57078         (FUNC): Compare only SIZE bytes of the value.
57079         * lib/vasnprintf.c: Include float+.h.
57080         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
57081         SIZEOF_LDBL or SIZEOF_DBL bytes.
57082         * modules/isnan-nolibm (Files): Add lib/float+.h.
57083         * modules/isnanl-nolibm (Files): Add lib/float+.h.
57084         * modules/isnanl (Files): Add lib/float+.h.
57085         * modules/vasnprintf (Files): Add lib/float+.h.
57086
57087 2007-03-24  Bruno Haible  <bruno@clisp.org>
57088
57089         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
57090         include isnanl-nolibm.h.
57091
57092 2007-03-24  Bruno Haible  <bruno@clisp.org>
57093
57094         * tests/test-read-file.c (main): Don't produce spurious output for
57095         expected situations. Make the test fail if it encountered unexpected
57096         results.
57097
57098 2007-03-24  Bruno Haible  <bruno@clisp.org>
57099
57100         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
57101         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
57102
57103 2007-03-24  Bruno Haible  <bruno@clisp.org>
57104
57105         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
57106
57107 2007-03-24  Bruno Haible  <bruno@clisp.org>
57108
57109         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
57110         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
57111
57112         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
57113         * modules/utf8-ucs4: Turn into a symbolic link to module
57114         unistr/u8-mbtouc.
57115
57116         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
57117         utf8-ucs4-unsafe.
57118         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
57119         unistr/u8-mbtouc-unsafe.
57120
57121         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
57122         * modules/utf16-ucs4: Turn into a symbolic link to module
57123         unistr/u16-mbtouc.
57124
57125         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
57126         utf16-ucs4-unsafe.
57127         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
57128         unistr/u16-mbtouc-unsafe.
57129
57130         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
57131         * modules/ucs4-utf8: Turn into a symbolic link to module
57132         unistr/u8-ubtomb.
57133
57134         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
57135         * modules/ucs4-utf16: Turn into a symbolic link to module
57136         unistr/u16-ubtomb.
57137
57138 2007-03-24  Bruno Haible  <bruno@clisp.org>
57139
57140         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
57141         Enable the function only if HAVE_INLINE.
57142         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
57143         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
57144         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
57145         Enable the function only if HAVE_INLINE.
57146         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
57147         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
57148         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
57149         Enable the function only if HAVE_INLINE.
57150         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
57151         Enable the function only if HAVE_INLINE.
57152         * modules/utf8-ucs4: Update.
57153         * modules/utf8-ucs4-unsafe: Update.
57154         * modules/utf16-ucs4: Update.
57155         * modules/utf16-ucs4-unsafe: Update.
57156         * modules/ucs4-utf8: Update.
57157         * modules/ucs4-utf16: Update.
57158
57159 2007-03-24  Bruno Haible  <bruno@clisp.org>
57160
57161         * lib/utf8-ucs4.h: Remove file.
57162         * lib/utf8-ucs4-unsafe.h: Remove file.
57163         * lib/utf16-ucs4.h: Remove file.
57164         * lib/utf16-ucs4-unsafe.h: Remove file.
57165         * lib/ucs4-utf8.h: Remove file.
57166         * lib/ucs4-utf16.h: Remove file.
57167         * lib/unistr.h: Include their previous contents.
57168         * m4/utf-ucs4.m4: Remove file.
57169         * m4/ucs4-utf.m4: Remove file.
57170         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
57171         (Depends-on): Add unistr/base.
57172         (configure.ac): Remove gl_UTF_UCS4.
57173         (Makefile.am): Update.
57174         (Include): Change to unistr.h.
57175         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
57176         (Depends-on): Add unistr/base.
57177         (configure.ac): Remove gl_UTF_UCS4.
57178         (Makefile.am): Update.
57179         (Include): Change to unistr.h.
57180         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
57181         (Depends-on): Add unistr/base.
57182         (configure.ac): Remove gl_UTF_UCS4.
57183         (Makefile.am): Update.
57184         (Include): Change to unistr.h.
57185         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
57186         (Depends-on): Add unistr/base.
57187         (configure.ac): Remove gl_UTF_UCS4.
57188         (Makefile.am): Update.
57189         (Include): Change to unistr.h.
57190         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
57191         (Depends-on): Add unistr/base.
57192         (configure.ac): Remove gl_UCS4_UTF.
57193         (Makefile.am): Update.
57194         (Include): Change to unistr.h.
57195         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
57196         (Depends-on): Add unistr/base.
57197         (configure.ac): Remove gl_UCS4_UTF.
57198         (Makefile.am): Update.
57199         (Include): Change to unistr.h.
57200         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
57201         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
57202         utf8-ucs4-unsafe.h.
57203         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
57204         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
57205         utf16-ucs4-unsafe.h.
57206         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
57207         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
57208         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
57209         * lib/unistr/u8-strchr.c: Likewise.
57210         * lib/unistr/u8-strrchr.c: Likewise.
57211         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
57212         * lib/unistr/u16-strchr.c: Likewise.
57213         * lib/unistr/u16-strrchr.c: Likewise.
57214         * lib/striconveh.c: Update.
57215         * lib/linebreak.c: Update.
57216
57217 2007-03-24  Bruno Haible  <bruno@clisp.org>
57218
57219         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
57220         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
57221
57222 2007-03-22  Bruno Haible  <bruno@clisp.org>
57223
57224         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
57225
57226 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
57227
57228         * MODULES.html.sh (File system functions): New module write-any-file.
57229         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
57230         * m4/write-any-file.m4: New files.
57231
57232 2007-03-23  Eric Blake  <ebb9@byu.net>
57233
57234         * gnulib-tool: Rearrange space-tab sequences, since some editors
57235         like to eat them.
57236
57237 2007-03-23  Eric Blake  <ebb9@byu.net>
57238
57239         * lib/version-etc.c (version_etc_va): Update license wording to
57240         be more concise.  Recommended by Richard Stallman.
57241
57242 2007-03-22  Bruno Haible  <bruno@clisp.org>
57243
57244         * lib/poll.c (MSG_PEEK): New fallback definition.
57245
57246 2007-03-22  Bruno Haible  <bruno@clisp.org>
57247
57248         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
57249         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
57250         (main): Update.
57251         Fixes a compilation error on BeOS.
57252
57253 2007-03-22  Bruno Haible  <bruno@clisp.org>
57254
57255         * modules/frexpl-tests: New file.
57256         * tests/test-frexpl.c: New file.
57257
57258         * modules/frexpl: New file.
57259         * m4/frexpl.m4: New file.
57260         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
57261         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
57262         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
57263         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
57264         (Depends-on): Add frexpl. Remove isnanl-nolibm.
57265         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
57266
57267 2007-03-22  Bruno Haible  <bruno@clisp.org>
57268
57269         * lib/frexpl.c: Share code with lib/frexp.c.
57270         * modules/mathl (Files): Add lib/frexp.c.
57271         (Depends-on): Add isnanl-nolibm.
57272
57273 2007-03-22  Bruno Haible  <bruno@clisp.org>
57274
57275         * modules/printf-frexp (Files): Add m4/frexp.m4.
57276         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
57277         only if the found frexp function actually works.
57278
57279 2007-03-22  Bruno Haible  <bruno@clisp.org>
57280
57281         * lib/frexp.c: Remove older implementation that uses divisions.
57282
57283 2007-03-21  Bruno Haible  <bruno@clisp.org>
57284
57285         * modules/frexp-tests: New file.
57286         * tests/test-frexp.c: New file.
57287
57288         * modules/frexp: New file.
57289         * lib/frexp.c: New file.
57290         * m4/frexp.m4: New file.
57291         * lib/math_.h (frexp): New declaration.
57292         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
57293         REPLACE_FREXP.
57294         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
57295
57296 2007-03-21  Bruno Haible  <bruno@clisp.org>
57297
57298         * modules/isnanl-tests: New file.
57299         * tests/test-isnanl.c: New file.
57300
57301         * modules/isnanl: New file.
57302         * lib/isnanl.h: New file.
57303         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
57304         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
57305         gl_FUNC_ISNANL_WORKS.
57306         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
57307         New macros.
57308
57309 2007-03-21  Bruno Haible  <bruno@clisp.org>
57310
57311         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
57312         lib/isnanl.h.
57313         (Include): Update.
57314         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
57315         * lib/vasnprintf.c: Update.
57316         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
57317         tests/test-isnanl.h, remove tests/test-isnanl.c.
57318         (Makefile.am): Update.
57319         * tests/test-isnanl-nolibm.c: New file.
57320         * tests/test-isnanl.h: New file.
57321         * tests/test-isnanl.c: Remove file.
57322
57323 2007-03-21  Jim Meyering  <jim@meyering.net>
57324
57325         When trying to open ".", treat ESTALE like EACCES.
57326         * lib/savewd.c (savewd_save): Resort to forking not just upon
57327         failure with EACCES, but also when errno is ESTALE.
57328
57329 2007-03-20  Bruno Haible  <bruno@clisp.org>
57330
57331         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
57332         Needed on AIX 5.1. Reported by Matthew Woehlke.
57333
57334 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
57335
57336         Suggestions by Bruno Haible:
57337         * lib/acl-internal.h: Include "gettext.h" rather than rolling
57338         our own.
57339         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
57340         * modules/acl (Depends-on): Add gettext.
57341
57342 2007-03-19  Bruno Haible  <bruno@clisp.org>
57343
57344         * modules/iconvme: Remove file.
57345         * lib/iconvme.h: Remove file.
57346         * lib/iconvme.c: Remove file.
57347         * m4/iconvme.m4: Remove file.
57348
57349 2007-03-19  Bruno Haible  <bruno@clisp.org>
57350
57351         * doc/relocatable-maint.texi: Break long shell script line.
57352         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
57353
57354 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
57355
57356         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
57357         handle file_has_acl.
57358         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
57359         * lib/acl.c: Move header inclusions and related macro defns into
57360         lib/acl-internal.h.
57361         (S_ISLNK): Remove defn, since that's now done for us.
57362         (file_has_acl): Move to lib/file-has-acl.c.
57363         Call acl_trivial if available.  This is the crucial part of the fix.
57364         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
57365         shared within the library.  Rewrite a bit, partly to make it compatible
57366         with the GNU coding style.
57367         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
57368         Remove unnecessary double-quotes.
57369         Don't test for acl_to_text; the build will catch that.
57370         Replace acl_entries if it doesn't exist and it is needed.
57371         Check for -lsec and acl_trivial (as used on Solaris 10).
57372         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
57373         lib/file-has-acl.c.
57374         (Depends-on): Add sys_stat, for S_ISLNK.
57375
57376 2007-03-19  Ben Pfaff  <blp@gnu.org>
57377
57378         * doc/gnulib.texi: Fix typos.
57379         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
57380
57381 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
57382
57383         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
57384         If size is zero here, buf must be zero.
57385
57386 2007-03-19  Simon Josefsson  <simon@josefsson.org>
57387
57388         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
57389         <bruno@clisp.org>.
57390
57391 2007-03-18  Bruno Haible  <bruno@clisp.org>
57392
57393         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
57394         Suggested by Eric Blake.
57395
57396 2007-03-18  Ben Pfaff  <blp@gnu.org>
57397
57398         * doc/relocatable.texi: Recommend using as prefix a directory
57399         that does not exist and will never be created.  Based on
57400         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
57401         and others.
57402
57403 2007-03-17  Bruno Haible  <bruno@clisp.org>
57404
57405         * lib/fchownat.c: Include lchown.h.
57406
57407 2007-03-17  Bruno Haible  <bruno@clisp.org>
57408
57409         Fix endless loop when the given allocated size was > INT_MAX.
57410         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
57411         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
57412         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
57413         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
57414         * lib/sprintf.c (sprintf): Likewise.
57415
57416 2007-03-17  Bruno Haible  <bruno@clisp.org>
57417
57418         * tests/test-argp-2.sh (func_compare): Output a context diff.
57419
57420 2007-03-17  Bruno Haible  <bruno@clisp.org>
57421
57422         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
57423         locale's decimal-point character.
57424
57425 2007-03-17  Bruno Haible  <bruno@clisp.org>
57426
57427         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
57428         before comparing it. Needed because on some platforms (e.g. x86) a
57429         'long double' occupies less bytes than sizeof (long double).
57430
57431 2007-03-17  Bruno Haible  <bruno@clisp.org>
57432
57433         * tests/test-crc.c (main): Make printf statements 64-bit clean.
57434         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
57435         * tests/test-getaddrinfo.c (simple): Likewise.
57436         * tests/test-read-file.c (main): Likewise.
57437
57438 2007-03-17  Bruno Haible  <bruno@clisp.org>
57439
57440         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
57441
57442 2007-03-17  Bruno Haible  <bruno@clisp.org>
57443
57444         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
57445         unused variable.
57446
57447 2007-03-17  Bruno Haible  <bruno@clisp.org>
57448
57449         * tests/test-c-strcasecmp.c: Include c-strcase.h.
57450         * tests/test-c-strncasecmp.c: Likewise.
57451
57452 2007-03-17  Bruno Haible  <bruno@clisp.org>
57453
57454         * modules/stdlib (Depends-on): Add unistd.
57455         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
57456         Needed for MacOS X 10.3.
57457
57458 2007-03-17  Bruno Haible  <bruno@clisp.org>
57459
57460         * lib/unistr/u-strdup.h: Include <stdlib.h>.
57461
57462 2007-03-17  Bruno Haible  <bruno@clisp.org>
57463
57464         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
57465
57466 2007-03-17  Bruno Haible  <bruno@clisp.org>
57467
57468         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
57469         to reflect files copied from gnulib (with or without modifications).
57470         Suggested by Jim Meyering.
57471
57472 2007-03-17  Eric Blake  <ebb9@byu.net>
57473
57474         * NEWS: Document stdlib change from 2007-02-18.
57475
57476 2007-03-17  Jim Meyering  <jim@meyering.net>
57477
57478         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
57479         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
57480         someone uses a name containing shell meta-characters.
57481         Reported by Alfred M. Szmidt.
57482
57483         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
57484
57485 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
57486
57487         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
57488         and copy gettext configuration files only if configure.ac contains
57489         a use of AM_GNU_GETTEXT_VERSION.
57490
57491 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
57492
57493         * build-aux/bootstrap (gnulib_name): New variable.
57494         (gnulib_tool_options): Use it.
57495
57496 2007-03-13  Simon Josefsson  <simon@josefsson.org>
57497
57498         * tests/test-des.c: Use new namespace.
57499
57500 2007-03-15  Bruno Haible  <bruno@clisp.org>
57501
57502         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
57503         Reported by James Youngman <jay@gnu.org>.
57504
57505 2007-03-15  Bruno Haible  <bruno@clisp.org>
57506
57507         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
57508         declared prototype. Needed with cc on OSF/1 5.1.
57509
57510 2007-03-15  Bruno Haible  <bruno@clisp.org>
57511
57512         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
57513         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
57514         (struct gl_list_implementation): Add dispose_fn argument to the
57515         'create_empty', 'create' methods.
57516         (struct gl_list_impl_base): Add field 'dispose_fn'.
57517         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
57518         argument.
57519         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
57520         dispose_fn argument.
57521         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
57522         dispose_fn on the dropped values.
57523         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
57524         dispose_fn argument.
57525         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
57526         dropped values.
57527         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
57528         (gl_tree_remove_node): Call dispose_fn on the dropped value.
57529         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
57530         (gl_tree_remove_node): Call dispose_fn on the dropped value.
57531         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
57532         argument.
57533         (gl_tree_list_free): Call dispose_fn on the dropped values.
57534         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
57535         the dropped values.
57536         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
57537         Add dispose_fn argument.
57538         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
57539         Call dispose_fn on the dropped values.
57540         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
57541         Add dispose_fn argument.
57542         (gl_sublist_create): Initialize the 'dispose_fn' field.
57543         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
57544         * tests/test-array_list.c (main): Update.
57545         * tests/test-carray_list.c (main): Update.
57546         * tests/test-avltree_list.c (main): Update.
57547         * tests/test-rbtree_list.c (main): Update.
57548         * tests/test-avltreehash_list.c (main): Update.
57549         * tests/test-rbtreehash_list.c (main): Update.
57550         * tests/test-linked_list.c (main): Update.
57551         * tests/test-linkedhash_list.c (main): Update.
57552         * tests/test-array_oset.c (main): Update.
57553
57554 2007-03-15  Bruno Haible  <bruno@clisp.org>
57555
57556         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
57557         (gl_oset_create_empty): Add dispose_fn argument.
57558         (struct gl_oset_implementation): Add dispose_fn argument to
57559         'create_empty' method.
57560         (struct gl_oset_impl_base): Add dispose_fn field.
57561         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
57562         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
57563         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
57564         values.
57565         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
57566         (gl_tree_oset_free): Call dispose_fn on the dropped values.
57567         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
57568         dropped value.
57569         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
57570         dropped value.
57571         * tests/test-array_oset.c (main): Update.
57572         * tests/test-avltree_oset.c (main): Update.
57573         * tests/test-rbtree_oset.c (main): Update.
57574         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
57575
57576 2007-03-13  Bruno Haible  <bruno@clisp.org>
57577
57578         * tests/test-stdbool.c (i): Update after last patch.
57579
57580 2007-03-12  Bruno Haible  <bruno@clisp.org>
57581
57582         * lib/quotearg.c: Include <wctype.h> early, before the definition of
57583         the iswprint macro. Needed on Solaris 2.5.1.
57584
57585 2007-03-12  Bruno Haible  <bruno@clisp.org>
57586
57587         * tests/test-printf-frexp.c (main): Declare x as volatile.
57588
57589 2007-03-12  Simon Josefsson  <simon@josefsson.org>
57590
57591         * doc/gnulib.texi (Build robot for gnulib): New section.
57592
57593 2007-03-12  Jim Meyering  <jim@meyering.net>
57594
57595         * build-aux/bootstrap: New file.
57596         * build-aux/bootstrap.conf: New file, from coreutils.
57597
57598 2007-03-11  Bruno Haible  <bruno@clisp.org>
57599
57600         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
57601
57602 2007-03-12  Simon Josefsson  <simon@josefsson.org>
57603
57604         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
57605         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
57606         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
57607
57608 2007-03-11  Bruno Haible  <bruno@clisp.org>
57609
57610         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
57611         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
57612
57613 2007-03-11  Bruno Haible  <bruno@clisp.org>
57614
57615         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
57616         formula. Needed for SunPRO C 5.0.
57617
57618 2007-03-11  Bruno Haible  <bruno@clisp.org>
57619
57620         * modules/long-options (Depends-on): Add getopt.
57621
57622 2007-03-11  Bruno Haible  <bruno@clisp.org>
57623
57624         * modules/modechange (Depends-on): Add stdbool.
57625
57626 2007-03-11  Bruno Haible  <bruno@clisp.org>
57627
57628         * modules/i-ring (Depends-on): Add stdbool.
57629
57630 2007-03-11  Bruno Haible  <bruno@clisp.org>
57631
57632         * modules/gc-des (Depends-on): Add stdbool.
57633
57634 2007-03-11  Bruno Haible  <bruno@clisp.org>
57635
57636         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
57637
57638 2007-03-11  Bruno Haible  <bruno@clisp.org>
57639
57640         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
57641
57642 2007-03-11  Bruno Haible  <bruno@clisp.org>
57643
57644         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
57645
57646 2007-03-11  Bruno Haible  <bruno@clisp.org>
57647
57648         * lib/vasnprintf.c (sprintf): Undefine.
57649
57650 2007-03-11  Bruno Haible  <bruno@clisp.org>
57651
57652         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
57653         initializers in SunPRO C and Compaq C compilers.
57654
57655 2007-03-11  Bruno Haible  <bruno@clisp.org>
57656
57657         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
57658         decrementing code ANSI C compliant.
57659
57660 2007-03-11  Bruno Haible  <bruno@clisp.org>
57661
57662         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
57663         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
57664
57665 2007-03-11  Bruno Haible  <bruno@clisp.org>
57666
57667         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
57668         <stdbool.h> substitute doesn't pass.
57669
57670 2007-03-11  Bruno Haible  <bruno@clisp.org>
57671
57672         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
57673
57674 2007-03-11  Bruno Haible  <bruno@clisp.org>
57675
57676         * gnulib-tool (func_create_megatestdir): Create also an autobuild
57677         script, for submission to autobuild.josefsson.org.
57678
57679 2007-03-10  Bruno Haible  <bruno@clisp.org>
57680
57681         * modules/canonicalize-lgpl-tests: New file.
57682         * tests/test-canonicalize-lgpl.sh: New file.
57683         * tests/test-canonicalize-lgpl.c: New file.
57684
57685         * modules/c-strcase-tests: New file.
57686         * tests/test-c-strcase.sh: New file.
57687         * tests/test-c-strcasecmp.c: New file.
57688         * tests/test-c-strncasecmp.c: New file.
57689
57690         * modules/atexit-tests: New file.
57691         * tests/test-atexit.sh: New file.
57692         * tests/test-atexit.c: New file.
57693
57694 2007-03-10  Bruno Haible  <bruno@clisp.org>
57695
57696         * tests/test-binary-io.sh: Use temporary filenames that are not so
57697         likely to clash with those of other tests (in a parallel make).
57698         * tests/test-binary-io.c: Likewise.
57699
57700 2007-03-10  Bruno Haible  <bruno@clisp.org>
57701
57702         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
57703         fallback; use #error instead.
57704         Suggested by Simon Josefsson.
57705
57706 2007-03-10  Bruno Haible  <bruno@clisp.org>
57707
57708         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
57709         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
57710         first and the last.
57711
57712 2007-03-10  Bruno Haible  <bruno@clisp.org>
57713
57714         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
57715
57716 2007-03-10  Bruno Haible  <bruno@clisp.org>
57717
57718         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
57719         "make distcheck".
57720         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
57721         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
57722         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
57723
57724 2007-03-10  Bruno Haible  <bruno@clisp.org>
57725
57726         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
57727         variable.
57728         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
57729         variable.
57730
57731 2007-03-09  Eric Blake  <ebb9@byu.net>
57732         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
57733
57734         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
57735         types are not being provided by gnulib.
57736         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
57737         types are supported.
57738
57739 2007-03-10  Bruno Haible  <bruno@clisp.org>
57740
57741         * lib/stdio_.h (__attribute__): New macro.
57742         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
57743         vsprintf): Specify __attribute__ __format__ for GCC.
57744         Suggested by Eric Blake.
57745
57746 2007-03-09  Bruno Haible  <bruno@clisp.org>
57747
57748         * modules/printf-posix-tests: New file.
57749         * tests/test-printf-posix.sh: New file.
57750         * tests/test-printf-posix.c: New file.
57751
57752         * modules/printf-posix: New file.
57753         * lib/printf.c: New file.
57754         * m4/printf-posix-rpl.m4: New file.
57755         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
57756         REPLACE_PRINTF.
57757         * lib/stdio_.h (printf): New declaration.
57758         (format, __format__, ____printf____, ____scanf____, ____strftime____,
57759         ____strfmon____): New macros.
57760         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
57761         REPLACE_PRINTF.
57762
57763 2007-03-09  Bruno Haible  <bruno@clisp.org>
57764
57765         * tests/test-vasnprintf-posix2.sh: New file.
57766         * tests/test-vasnprintf-posix2.c: New file.
57767         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
57768         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
57769         (Makefile.am): Activate test-vasnprintf-posix2.sh.
57770
57771         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
57772         a locale dependent decimal point, rather than always '.'.
57773
57774 2007-03-09  Eric Blake  <ebb9@byu.net>
57775
57776         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
57777         spite of platforms like Tandem/NSK that define it to -1.
57778
57779 2007-03-08  Bruno Haible  <bruno@clisp.org>
57780
57781         * modules/vprintf-posix-tests: New file.
57782         * tests/test-vprintf-posix.sh: New file.
57783         * tests/test-vprintf-posix.c: New file.
57784         * tests/test-printf-posix.h: New file.
57785
57786         * modules/vprintf-posix: New file.
57787         * lib/vprintf.c: New file.
57788         * m4/vprintf-posix.m4: New file.
57789         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
57790         REPLACE_VPRINTF.
57791         * lib/stdio_.h (vprintf): New declaration.
57792         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
57793         REPLACE_VPRINTF.
57794
57795 2007-03-08  Bruno Haible  <bruno@clisp.org>
57796
57797         * modules/fprintf-posix-tests: New file.
57798         * tests/test-fprintf-posix.sh: New file.
57799         * tests/test-fprintf-posix.c: New file.
57800
57801         * modules/fprintf-posix: New file.
57802         * lib/fprintf.c: New file.
57803         * m4/fprintf-posix.m4: New file.
57804         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
57805         REPLACE_FPRINTF.
57806         * lib/stdio_.h (fprintf): New declaration.
57807         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
57808         REPLACE_FPRINTF.
57809
57810 2007-03-08  Bruno Haible  <bruno@clisp.org>
57811
57812         * modules/vfprintf-posix-tests: New file.
57813         * tests/test-vfprintf-posix.sh: New file.
57814         * tests/test-vfprintf-posix.c: New file.
57815         * tests/test-fprintf-posix.h: New file.
57816         * tests/test-fprintf-posix.out: New file.
57817
57818         * modules/vfprintf-posix: New file.
57819         * lib/vfprintf.c: New file.
57820         * m4/vfprintf-posix.m4: New file.
57821         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
57822         REPLACE_VFPRINTF.
57823         * lib/stdio_.h (vfprintf): New declaration.
57824         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
57825         REPLACE_VFPRINTF.
57826
57827 2007-03-08  Bruno Haible  <bruno@clisp.org>
57828
57829         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
57830
57831 2007-03-08  Bruno Haible  <bruno@clisp.org>
57832
57833         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
57834         instead of 'expr' invocations.
57835         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
57836         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
57837         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
57838         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
57839         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
57840         Suggested by Paul Eggert.
57841
57842 2007-03-08  Bruno Haible  <bruno@clisp.org>
57843
57844         * modules/fseterr-tests: New file.
57845         * tests/test-fseterr.c: New file.
57846
57847         * modules/fseterr: New file.
57848         * lib/fseterr.h: New file.
57849         * lib/fseterr.c: New file.
57850
57851 2007-03-08  Bruno Haible  <bruno@clisp.org>
57852
57853         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
57854         * lib/getopt_.h: Likewise.
57855         * lib/mbswidth.h: Likewise.
57856         * lib/setenv.h: Likewise.
57857         * lib/vasnprintf.h: Likewise.
57858         * lib/vasprintf.h: Likewise.
57859         * lib/verror.h: Likewise.
57860         * lib/xsetenv.h: Likewise.
57861         * lib/xvasprintf.h: Likewise.
57862
57863 2007-03-08  Jim Meyering  <jim@meyering.net>
57864
57865         * users.txt: Add parted.
57866
57867         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
57868
57869 2007-03-07  Bruno Haible  <bruno@clisp.org>
57870
57871         * m4/printf.m4: Make the shell script snippets copy&pastable.
57872
57873 2007-03-02  Bruno Haible  <bruno@clisp.org>
57874
57875         * lib/netinet_in_.h: New file.
57876         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
57877         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
57878         * modules/netinet_in (Files): Add lib/netinet_in_.h.
57879         (Depends-on): Add absolute-header.
57880         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
57881         into netinet/in.h.
57882
57883 2007-03-03  Bruno Haible  <bruno@clisp.org>
57884
57885         * lib/sys_select_.h: New file.
57886         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
57887         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
57888         * modules/sys_select (Files): Add lib/sys_select_.h.
57889         (Depends-on): Add absolute-header.
57890         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
57891         into sys/select.h.
57892
57893 2007-03-02  Bruno Haible  <bruno@clisp.org>
57894
57895         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
57896         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
57897         values.
57898         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
57899         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
57900         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
57901         * modules/sys_socket (Depends-on): Add absolute-header.
57902         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
57903         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
57904         (Include): Remove requirement of inclusion of <sys/types.h>.
57905
57906 2007-03-02  Bruno Haible  <bruno@clisp.org>
57907
57908         * lib/byteswap_.h (bswap_32): Fix formula.
57909
57910 2007-03-06  Bruno Haible  <bruno@clisp.org>
57911
57912         * modules/sprintf-posix-tests: New file.
57913         * tests/test-sprintf-posix.c: New file.
57914
57915         * modules/sprintf-posix: New file.
57916         * lib/sprintf.c: New file.
57917         * m4/sprintf-posix.m4: New file.
57918         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
57919         REPLACE_SPRINTF.
57920         * lib/stdio_.h (sprintf): New declaration.
57921         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
57922         REPLACE_SPRINTF.
57923
57924 2007-03-06  Bruno Haible  <bruno@clisp.org>
57925
57926         * modules/vsprintf-posix-tests: New file.
57927         * tests/test-vsprintf-posix.c: New file.
57928         * tests/test-sprintf-posix.h: New file.
57929
57930         * modules/vsprintf-posix: New file.
57931         * lib/vsprintf.c: New file.
57932         * m4/vsprintf-posix.m4: New file.
57933         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
57934         REPLACE_VSPRINTF.
57935         * lib/stdio_.h (vsprintf): New declaration.
57936         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
57937         REPLACE_VSPRINTF.
57938
57939 2007-03-06  Bruno Haible  <bruno@clisp.org>
57940
57941         * modules/vsnprintf (Depend-on): Remove minmax.
57942
57943 2007-03-06  Bruno Haible  <bruno@clisp.org>
57944
57945         * modules/snprintf-posix-tests: New file.
57946         * tests/test-snprintf-posix.c: New file.
57947
57948         * modules/snprintf-posix: New file.
57949         * m4/snprintf-posix.m4: New file.
57950         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
57951         gl_FUNC_SNPRINTF.
57952         (gl_FUNC_SNPRINTF): Invoke it.
57953         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
57954         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
57955         is set.
57956         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
57957
57958 2007-03-06  Bruno Haible  <bruno@clisp.org>
57959
57960         * modules/vsnprintf-posix-tests: New file.
57961         * tests/test-vsnprintf-posix.c: New file.
57962         * tests/test-snprintf-posix.h: New file.
57963
57964         * modules/vsnprintf-posix: New file.
57965         * m4/vsnprintf-posix.m4: New file.
57966         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
57967         gl_FUNC_VSNPRINTF.
57968         (gl_FUNC_VSNPRINTF): Invoke it.
57969         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
57970         * lib/stdio_.h (vsnprintf): Define as a replacement if
57971         REPLACE_VSNPRINTF is set.
57972         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
57973
57974 2007-03-06  Bruno Haible  <bruno@clisp.org>
57975
57976         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
57977         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
57978
57979 2007-03-06  Bruno Haible  <bruno@clisp.org>
57980
57981         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
57982         (asinl): Declare also if HAVE_DECL_ASINL is set.
57983         (atanl): Declare also if HAVE_DECL_ATANL is set.
57984         (ceill): Declare also if HAVE_DECL_CEILL is set.
57985         (cosl): Declare also if HAVE_DECL_COSL is set.
57986         (expl): Declare also if HAVE_DECL_EXPL is set.
57987         (floorl): Declare also if HAVE_DECL_FLOORL is set.
57988         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
57989         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
57990         (logl): Declare also if HAVE_DECL_LOGL is set.
57991         (sinl): Declare also if HAVE_DECL_SINL is set.
57992         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
57993         (tanl): Declare also if HAVE_DECL_TANL is set.
57994         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
57995         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
57996         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
57997         declaration of frexpl, ldexpl.
57998         * modules/printf-frexpl (Depends-on): Add math.
57999         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
58000
58001 2007-03-05  Bruno Haible  <bruno@clisp.org>
58002
58003         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
58004         frexpl and ldexpl are declared.
58005         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
58006
58007 2007-03-05  Bruno Haible  <bruno@clisp.org>
58008
58009         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
58010         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
58011
58012 2007-03-05  Bruno Haible  <bruno@clisp.org>
58013
58014         * lib/stdio_.h: Include <stddef.h>.
58015
58016 2007-03-05  Bruno Haible  <bruno@clisp.org>
58017
58018         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
58019
58020 2007-03-05  Bruno Haible  <bruno@clisp.org>
58021
58022         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
58023         NetBSD 4, from Ralf Wildenhues.
58024
58025 2007-03-04  Bruno Haible  <bruno@clisp.org>
58026
58027         * lib/vasprintf.h: Update #if logic for the case when the functions
58028         exist but are overridden.
58029
58030 2007-03-04  Bruno Haible  <bruno@clisp.org>
58031
58032         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
58033         implementations: glibc-2.4 and MacOS X 10.3.
58034         * tests/test-vasnprintf-posix.c (test_function): Test also the case
58035         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
58036         * tests/test-vasprintf-posix.c (test_function): Likewise.
58037
58038 2007-03-04  Bruno Haible  <bruno@clisp.org>
58039
58040         * modules/vasprintf-posix-tests: New file.
58041         * tests/test-vasprintf-posix.c: New file.
58042
58043         * modules/vasprintf-posix: New file.
58044         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
58045         defined.
58046         * m4/vasprintf-posix.m4: New file.
58047         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
58048         gl_FUNC_VASPRINTF.
58049         (gl_FUNC_VASPRINTF): Invoke it.
58050         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
58051         here.
58052         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
58053
58054 2007-03-04  Bruno Haible  <bruno@clisp.org>
58055
58056         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
58057         REPLACE_GETTIMEOFDAY.
58058         * modules/sys_time (Makefile.am): Likewise.
58059         * m4/sys_time_h.m4: Likewise.
58060         * m4/gettimeofday.m4: Likewise.
58061
58062 2007-03-04  Bruno Haible  <bruno@clisp.org>
58063
58064         * modules/vasnprintf-posix-tests: New file.
58065         * tests/test-vasnprintf-posix.c: New file.
58066
58067         * modules/vasnprintf-posix: New file.
58068         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
58069         printf-frexpl.h.
58070         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
58071         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
58072         REPLACE_VASNPRINTF is defined.
58073         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
58074         gl_FUNC_VASNPRINTF.
58075         (gl_FUNC_VASNPRINTF): Invoke it.
58076         * m4/vasnprintf-posix.m4: New file.
58077         * m4/printf.m4: New file.
58078
58079 2007-03-04  Bruno Haible  <bruno@clisp.org>
58080
58081         Compile progreloc.c only if --enable-relocatable is specified.
58082         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
58083         if --enable-relocatable was specified.
58084         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
58085         lib_SOURCES.
58086
58087 2007-03-04  Jim Meyering  <jim@meyering.net>
58088
58089         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
58090         Use it consistently, rather than enumerating errno constants.
58091
58092 2007-03-04  Bruno Haible  <bruno@clisp.org>
58093
58094         * modules/xvasprintf-tests: New file.
58095         * tests/test-xvasprintf.c: New file.
58096
58097         * modules/vasprintf-tests: New file.
58098         * tests/test-vasprintf.c: New file.
58099
58100         * modules/vasnprintf-tests: New file.
58101         * tests/test-vasnprintf.c: New file.
58102
58103         * modules/vsnprintf-tests: New file.
58104         * tests/test-vsnprintf.c: New file.
58105
58106         * modules/snprintf-tests: New file.
58107         * tests/test-snprintf.c: New file.
58108
58109 2007-03-04  Bruno Haible  <bruno@clisp.org>
58110
58111         Compile relocatable.c only if --enable-relocatable is specified.
58112         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
58113         gl_RELOCATABLE_LIBRARY.
58114         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
58115         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
58116         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
58117         gl_RELOCATABLE_LIBRARY.
58118         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
58119         (Makefile.am): Remove lib_SOURCES.
58120         * modules/relocatable-lib-lgpl (configure.ac): Invoke
58121         gl_RELOCATABLE_LIBRARY.
58122         (Makefile.am): Remove lib_SOURCES.
58123         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
58124         always.
58125         * modules/relocatable-prog-wrapper (configure.ac): Invoke
58126         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
58127
58128 2007-03-04  Bruno Haible  <bruno@clisp.org>
58129
58130         * modules/argmatch-tests: New file.
58131         * tests/test-argmatch.c: New file.
58132
58133         * tests/test-allocsa.c (main): Halve the number of loop runs.
58134
58135         * modules/alloca-opt-tests: New file.
58136         * tests/test-alloca-opt.c: New file.
58137
58138 2007-03-04  Jim Meyering  <jim@meyering.net>
58139
58140         Work around difference between Linux ACLs and Solaris 10 ZFS.
58141         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
58142         for EINVAL.
58143
58144 2007-03-03  Bruno Haible  <bruno@clisp.org>
58145
58146         * modules/relocatable-prog (Depends-on): Add back progreloc's
58147         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
58148
58149 2007-03-03  Bruno Haible  <bruno@clisp.org>
58150
58151         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
58152         * modules/relocatable-lib: New file.
58153
58154 2007-03-03  Bruno Haible  <bruno@clisp.org>
58155
58156         * modules/relocatable-prog: Renamed from modules/relocatable.
58157         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
58158
58159 2007-03-03  Bruno Haible  <bruno@clisp.org>
58160
58161         * modules/relocatable-script (Files): Add doc/relocatable.texi,
58162         m4/relocatable-lib.m4.
58163         (Depends-on): Remove 'relocatable'.
58164         (configure.ac): Add gl_RELOCATABLE_NOP.
58165
58166 2007-03-03  Bruno Haible  <bruno@clisp.org>
58167
58168         * modules/relocatable-prog-wrapper: New file.
58169         * modules/relocatable (Depends-on): Add it. Remove all other
58170         dependencies except progname.
58171         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
58172
58173         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
58174         (gl_FUNC_STRERROR): Nop.
58175         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
58176
58177         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
58178         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
58179
58180         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
58181         (gl_FUNC_READLINK): Update.
58182
58183         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
58184
58185 2007-03-03  Bruno Haible  <bruno@clisp.org>
58186
58187         * lib/xreadlink.c: Include <unistd.h> unconditionally.
58188         * modules/xreadlink (Depends-on): Add unistd.
58189         * modules/xreadlink-with-size (Depends-on): Likewise.
58190
58191 2007-03-03  Bruno Haible  <bruno@clisp.org>
58192
58193         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
58194         extracted from gt_FUNC_SETENV.
58195         (gt_FUNC_SETENV): Remove macro.
58196         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
58197         remove gt_FUNC_SETENV.
58198
58199 2007-03-03  Bruno Haible  <bruno@clisp.org>
58200
58201         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
58202         ENABLE_RELOCATABLE here.
58203         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
58204
58205 2007-03-03  Bruno Haible  <bruno@clisp.org>
58206
58207         * modules/rbtreehash-list-tests (Depends-on): Add progname.
58208         * tests/test-rbtreehash_list.c: Include progname.h.
58209         (main): Call set_program_name.
58210
58211         * modules/rbtree-oset-tests (Depends-on): Add progname.
58212         * tests/test-rbtree_oset.c: Include progname.h.
58213         (main): Call set_program_name.
58214
58215         * modules/rbtree-list-tests (Depends-on): Add progname.
58216         * tests/test-rbtree_list.c: Include progname.h.
58217         (main): Call set_program_name.
58218
58219         * modules/linked-list-tests (Depends-on): Add progname.
58220         * tests/test-linked_list.c: Include progname.h.
58221         (main): Call set_program_name.
58222
58223 2007-03-03  Bruno Haible  <bruno@clisp.org>
58224
58225         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
58226         All uses of __restrict changed to _Restrict_.
58227         * lib/glob_.h (__restrict): Remove macro.
58228
58229 2007-03-02  Bruno Haible  <bruno@clisp.org>
58230
58231         * modules/gettext (configure.ac): Require gettext infrastructure
58232         from version 0.16.1.
58233
58234 2007-03-02  Bruno Haible  <bruno@clisp.org>
58235
58236         * modules/linkedhash-list-tests (Depends-on): Add progname.
58237         * tests/test-linkedhash_list.c: Include progname.h.
58238         (main): Call set_program_name.
58239
58240         * modules/carray-list-tests (Depends-on): Add progname.
58241         * tests/test-carray_list.c: Include progname.h.
58242         (main): Call set_program_name.
58243
58244         * modules/avltreehash-list-tests (Depends-on): Add progname.
58245         * tests/test-avltreehash_list.c: Include progname.h.
58246         (main): Call set_program_name.
58247
58248         * modules/avltree-oset-tests (Depends-on): Add progname.
58249         * tests/test-avltree_oset.c: Include progname.h.
58250         (main): Call set_program_name.
58251
58252         * modules/avltree-list-tests (Depends-on): Add progname.
58253         * tests/test-avltree_list.c: Include progname.h.
58254         (main): Call set_program_name.
58255
58256         * modules/array-oset-tests (Depends-on): Add progname.
58257         * tests/test-array_oset.c: Include progname.h.
58258         (main): Call set_program_name.
58259
58260         * modules/array-list-tests (Depends-on): Add progname.
58261         * tests/test-array_list.c: Include progname.h.
58262         (main): Call set_program_name.
58263
58264         * modules/argp-tests (Depends-on): Add progname.
58265         * tests/test-argp.c: Include argp.h first. Include progname.h.
58266         (main): Call set_program_name.
58267
58268 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
58269
58270         * doc/gnulib-tool.texi (Initial import): Reword description of
58271         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
58272         limited effect even if defined after the first system include.
58273
58274 2007-03-01  Bruno Haible  <bruno@clisp.org>
58275
58276         * build-aux/config.libpath: Update to libtool-1.5.22.
58277         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
58278
58279 2007-03-01  Bruno Haible  <bruno@clisp.org>
58280
58281         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
58282         foo_CFLAGS.
58283         Reported by Ralf Wildenhues.
58284
58285 2007-03-01  Bruno Haible  <bruno@clisp.org>
58286
58287         * build-aux/install-reloc: Remove object files left over by some
58288         compilers.
58289         Reported by Ralf Wildenhues.
58290
58291 2007-03-01  Bruno Haible  <bruno@clisp.org>
58292
58293         * build-aux/install-reloc: Break long lines.
58294
58295 2007-03-01  Bruno Haible  <bruno@clisp.org>
58296
58297         * doc/relocatable.texi: Document that it may not work on OpenBSD.
58298         Reported by Ralf Wildenhues.
58299
58300 2007-03-01  Bruno Haible  <bruno@clisp.org>
58301
58302         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
58303         include ordering constraints.
58304
58305 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
58306
58307         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
58308         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
58309         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
58310         as another example.
58311         * lib/time_.h: Fix misspelling.
58312         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
58313         Require gl_HEADER_TIME_H_DEFAULTS.
58314         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
58315         * m4/time_r.m4 (gl_TIME_R): Likewise.
58316         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
58317
58318 2007-03-01  Bruno Haible  <bruno@clisp.org>
58319
58320         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
58321         * m4/utimens.m4 (gl_UTIMENS): Likewise.
58322
58323 2007-03-01  Jim Meyering  <jim@meyering.net>
58324
58325         * modules/xreadlink (Maintainer): Add my name.
58326         * modules/xreadlink-with-size (Depends-on): Alphabetize.
58327
58328 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
58329             Bruno Haible  <bruno@clisp.org>
58330
58331         * build-aux/install-reloc: Compile also c-ctype.c.
58332         * build-aux/relocatable.sh.in: New file.
58333         * doc/relocatable.texi: New file.
58334         * doc/relocatable-maint.texi: New file.
58335         * doc/gnulib.texi: Include relocatable-maint.texi.
58336         * lib/progreloc.c: Include unistd.h unconditionally.
58337         * lib/relocwrapper.c: Include unistd.h unconditionally.
58338         Include c-ctype.h.
58339         (add_dotbin): Use c_tolower.
58340         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
58341         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
58342         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
58343         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
58344         to m4/relocatable-lib.m4.
58345         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
58346         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
58347         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
58348         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
58349         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
58350         * modules/relocatable: New file.
58351         * modules/relocatable-lib: New file.
58352         * modules/relocatable-script: New file.
58353
58354 2007-02-28  Bruno Haible  <bruno@clisp.org>
58355
58356         Import --enable-relocatable infrastructure.
58357         * build-aux/config.libpath: New file, from GNU gettext.
58358         * build-aux/install-reloc: New file, from GNU gettext.
58359         * build-aux/reloc-ldflags: New file, from GNU gettext.
58360         * lib/relocatable.h: New file, from GNU gettext.
58361         * lib/relocatable.c: New file, from GNU gettext.
58362         * lib/relocwrapper.c: New file, from GNU gettext.
58363         * m4/relocatable.m4: New file, from GNU gettext.
58364
58365 2007-02-28  Bruno Haible  <bruno@clisp.org>
58366
58367         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
58368
58369         * modules/xreadlink: New file, from GNU gettext with modifications.
58370         * lib/xreadlink.c: New file, from GNU gettext.
58371         * lib/xreadlink.h: Add comments.
58372         (xreadlink): New declaration.
58373
58374         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
58375         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
58376         lib/xreadlink-with-size.c.
58377         (configure.ac): Remove gl_XREADLINK invocation.
58378         (Makefile.am): Augment lib_SOURCES.
58379         * m4/xreadlink.m4: Remove file.
58380         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
58381         (xreadlink_with_size): Renamed from xreadink.
58382         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
58383         * modules/canonicalize (Depends-on): Replace xreadlink with
58384         xreadlink-with-size.
58385         * lib/canonicalize.c (canonicalize_filename_mode): Update.
58386
58387 2007-02-25  Jim Meyering  <jim@meyering.net>
58388
58389         * build-aux/announce-gen: When complaining about excess arguments,
58390         list them.
58391
58392 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
58393
58394         * README: Document signed integer overflow situation more
58395         accurately.
58396
58397 2007-02-25  Bruno Haible  <bruno@clisp.org>
58398
58399         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
58400         'a' or 'A' conversion.
58401
58402 2007-02-25  Bruno Haible  <bruno@clisp.org>
58403
58404         * modules/filename: Renamed from modules/pathname.
58405         (Files): Replace lib/pathname.h with lib/filename.h. Replace
58406         lib/concatpath.c with lib/concat-filename.c.
58407         (Makefile.am): Update.
58408         (Include): Replace pathname.h with filename.h.
58409         * lib/filename.h: Renamed from lib/pathname.h.
58410         (concatenated_filename): Renamed from concatenated_pathname.
58411         * lib/concat-filename.c: Renamed from lib/concatpath.c.
58412         (concatenated_filename): Renamed from concatenated_pathname.
58413         * lib/findprog.c: Include filename.h instead of pathname.h.
58414         (find_in_path): Update.
58415         * lib/javacomp.c: Include filename.h instead of pathname.h.
58416         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
58417         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
58418         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
58419         is_oldgcj_14_13_usable, is_javac_usable): Update.
58420         * lib/javaexec.c: Include filename.h instead of pathname.h.
58421         (execute_java_class): Update.
58422         * modules/findprog: Update.
58423         * modules/javacomp: Update.
58424         * modules/javaexec: Update.
58425         * MODULES.html.sh (File system functions): Add 'filename', remove
58426         'pathname'.
58427
58428 2007-02-25  Bruno Haible  <bruno@clisp.org>
58429
58430         * modules/printf-frexpl-tests: New file.
58431         * tests/test-printf-frexpl.c: New file.
58432
58433         * modules/printf-frexpl: New file.
58434         * lib/printf-frexpl.h: New file.
58435         * lib/printf-frexpl.c: New file.
58436         * m4/printf-frexpl.m4: New file.
58437
58438 2007-02-25  Bruno Haible  <bruno@clisp.org>
58439
58440         * modules/printf-frexp-tests: New file.
58441         * tests/test-printf-frexp.c: New file.
58442
58443         * modules/printf-frexp: New file.
58444         * lib/printf-frexp.h: New file.
58445         * lib/printf-frexp.c: New file.
58446         * m4/printf-frexp.m4: New file.
58447
58448 2007-02-25  Bruno Haible  <bruno@clisp.org>
58449
58450         Assume automake >= 1.10 for the tests.
58451         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
58452         * modules/arctwo-tests: Likewise.
58453         * modules/argp-tests: Likewise.
58454         * modules/avltree-list-tests: Likewise.
58455         * modules/avltree-oset-tests: Likewise.
58456         * modules/avltreehash-list-tests: Likewise.
58457         * modules/carray-list-tests: Likewise.
58458         * modules/crc-tests: Likewise.
58459         * modules/des-tests: Likewise.
58460         * modules/gc-arcfour-tests: Likewise.
58461         * modules/gc-arctwo-tests: Likewise.
58462         * modules/gc-des-tests: Likewise.
58463         * modules/gc-hmac-md5-tests: Likewise.
58464         * modules/gc-hmac-sha1-tests: Likewise.
58465         * modules/gc-md2-tests: Likewise.
58466         * modules/gc-md4-tests: Likewise.
58467         * modules/gc-md5-tests: Likewise.
58468         * modules/gc-pbkdf2-sha1-tests: Likewise.
58469         * modules/gc-rijndael-tests: Likewise.
58470         * modules/gc-sha1-tests: Likewise.
58471         * modules/gc-tests: Likewise.
58472         * modules/getaddrinfo-tests: Likewise.
58473         * modules/hmac-md5-tests: Likewise.
58474         * modules/hmac-sha1-tests: Likewise.
58475         * modules/linked-list-tests: Likewise.
58476         * modules/linkedhash-list-tests: Likewise.
58477         * modules/lock-tests: Likewise.
58478         * modules/md2-tests: Likewise.
58479         * modules/md4-tests: Likewise.
58480         * modules/md5-tests: Likewise.
58481         * modules/rbtree-list-tests: Likewise.
58482         * modules/rbtree-oset-tests: Likewise.
58483         * modules/rbtreehash-list-tests: Likewise.
58484         * modules/read-file-tests: Likewise.
58485         * modules/rijndael-tests: Likewise.
58486         * modules/stdint-tests: Likewise.
58487         * modules/tls-tests: Likewise.
58488
58489 2007-02-24  Bruno Haible  <bruno@clisp.org>
58490
58491         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
58492         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
58493         function; instead check whether isnan with a double argument links.
58494         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
58495         function; instead check whether isnan with a 'long double' argument
58496         links.
58497         Reported by Eric Blake <ebb9@byu.net>.
58498
58499 2007-02-24  Bruno Haible  <bruno@clisp.org>
58500
58501         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
58502         defined.
58503         * lib/isnanl.c: Remove all code. Just include isnan.c.
58504         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
58505
58506 2007-02-25  Jim Meyering  <jim@meyering.net>
58507
58508         Avoid conflicting types for 'unsetenv' on FreeBSD.
58509         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
58510         conflicting with FreeBSD's (5.0 and 6.1) function declaration
58511         in stdlib.h.
58512
58513 2007-02-24  Bruno Haible  <bruno@clisp.org>
58514
58515         * modules/isnanl-nolibm-tests: New file.
58516         * tests/test-isnanl.c: New file.
58517
58518         * modules/isnanl-nolibm: New file.
58519         * lib/isnanl.h: New file.
58520         * lib/isnanl.c: New file.
58521         * m4/isnanl.m4: New file.
58522
58523 2007-02-24  Bruno Haible  <bruno@clisp.org>
58524
58525         * modules/isnan-nolibm-tests: New file.
58526         * tests/test-isnan.c: New file.
58527
58528         * modules/isnan-nolibm: New file.
58529         * lib/isnan.h: New file.
58530         * lib/isnan.c: New file.
58531         * m4/isnan.m4: New file.
58532
58533 2007-02-24  Bruno Haible  <bruno@clisp.org>
58534
58535         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
58536         assume that an exponent fits in 20 bits.
58537
58538 2007-02-24  Jim Meyering  <jim@meyering.net>
58539
58540         * m4/regex.m4: Update the description of the configure-time option,
58541         --without-included-regex, to state accurately what the defaults are,
58542         and perhaps to give people an idea why using this option is risky.
58543
58544 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
58545
58546         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
58547         loops on small arguments.  This attempts to avoid the problem
58548         Bruno Haible reported for AIX 4.3.2 in
58549         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
58550
58551 2007-02-23  Bruno Haible  <bruno@clisp.org>
58552
58553         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
58554         Needed for help2man.
58555
58556 2007-02-23  Karl Berry  <karl@gnu.org>
58557
58558         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
58559         exists, foo.h should be cvs-ignored, not committed.
58560
58561 2007-02-23  Eric Blake  <ebb9@byu.net>
58562
58563         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
58564         * lib/stat-time.h (includes): Likewise.
58565         * lib/utimecmp.c (includes): Likewise.
58566         * lib/utimens.h (includes): Likewise.
58567         * lib/getdate.y (includes): Also include "timespec.h" for use
58568         internal to the module.
58569         * modules/utimens (Depends-on): Revert yesterday's patch.
58570         * modules/nanosleep (Depends-on): Add missing dependency.
58571
58572 2007-02-22  Bruno Haible  <bruno@clisp.org>
58573
58574         * lib/glob.c: Don't include getlogin_r.h.
58575
58576 2007-02-22  Jim Meyering  <jim@meyering.net>
58577
58578         * modules/utimens (Depends-on): Add timespec, required for
58579         utimens.h's inclusion of timespec.h.
58580
58581 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
58582
58583         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
58584         long unreadable paths in GNU/Linux.  Problem reported by Andreas
58585         Schwab in
58586         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
58587         I'll try to think of a better way to fix the Solaris problem.
58588
58589         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
58590         like glibc; on Solaris 10, it fails with errno == EINVAL.
58591         POSIX says the behavior is unspecified if the first argument is NULL,
58592         so play it safe and never pass NULL to the system getcwd.
58593
58594 2007-02-21  Jim Meyering  <jim@meyering.net>
58595
58596         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
58597         of gettimeofday.  It would conflict with the one now always
58598         provided via sys_time_.h.  Reported by Matthew Woehlke, as
58599         an IRIX 6.5 build failure.
58600
58601 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
58602
58603         Minor fixups to port to Solaris 10 with Sun C 5.8.
58604         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
58605         * modules/getcwd (Depends-on): Add dirfd.
58606         * lib/putenv.c (putenv): #undef it.
58607         (rpl_putenv): New decl.
58608         (malloc, free): Include <stdlib.h> rather than prototyping separately.
58609
58610 2007-02-20  Bruno Haible  <bruno@clisp.org>
58611
58612         * modules/stdio-tests: New file.
58613         * tests/test-stdio.c: New file.
58614
58615         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
58616         (Depends-on): Add stdio.
58617         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
58618         (Include): Use <stdio.h> instead of vsnprintf.h.
58619         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
58620         HAVE_DECL_VSNPRINTF.
58621         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
58622
58623         * modules/snprintf (Files): Remove lib/snprintf.h.
58624         (Depends-on): Add stdio.
58625         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
58626         (Include): Use <stdio.h> instead of snprintf.h.
58627         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
58628         HAVE_DECL_SNPRINTF.
58629         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
58630         * lib/getaddrinfo.c: Likewise.
58631
58632         * modules/stdio: New file.
58633         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
58634         * lib/snprintf.h: Remove file.
58635         * lib/vsnprintf.h: Remove file.
58636         * lib/.cppi-disable: Remove snprintf.h.
58637         * m4/stdio_h.m4: New file.
58638         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
58639
58640 2007-02-20  Jim Meyering  <jim@meyering.net>
58641
58642         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
58643         used by e.g., mingw.  From Bruno Haible.
58644
58645 2007-02-19  Bruno Haible  <bruno@clisp.org>
58646
58647         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
58648         warnings.
58649         Reported by Ben Pfaff <blp@cs.stanford.edu>.
58650
58651 2007-02-19  Bruno Haible  <bruno@clisp.org>
58652
58653         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
58654         from mingw users.
58655
58656 2007-02-19  Bruno Haible  <bruno@clisp.org>
58657
58658         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
58659         warnings.
58660         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
58661
58662 2007-02-19  Jim Meyering  <jim@meyering.net>
58663
58664         Don't use FD after a successful "fdopendir (fd)".
58665         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
58666         Reset it by calling dirfd on the just-obtained DIR*.
58667
58668         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
58669         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
58670
58671 2007-02-18  Bruno Haible  <bruno@clisp.org>
58672
58673         * lib/readlink.c: Include <unistd.h>.
58674         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
58675         HAVE_READLINK.
58676         * modules/readlink (Depends-on): Add unistd.
58677         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
58678         (Include): Add <unistd.h>.
58679
58680         * lib/getlogin_r.h: Remove file.
58681         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
58682         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
58683         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
58684         HAVE_DECL_GETLOGIN_R.
58685         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
58686         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
58687         (Include): Use <unistd.h> instead of getlogin_r.h.
58688
58689         * lib/getcwd.h: Remove file.
58690         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
58691         * lib/xgetcwd.c: Likewise.
58692         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
58693         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
58694         * modules/getcwd (Files): Remove lib/getcwd.h.
58695         (Depends-on): Add unistd.
58696         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
58697         (Include): Use <unistd.h> instad of getcwd.h.
58698
58699         * lib/ftruncate.c: Include <unistd.h> first.
58700         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
58701         Set HAVE_FTRUNCATE.
58702         * modules/ftruncate (Depends-on): Add unistd.
58703         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
58704
58705         * lib/fchdir.c: Include <unistd.h> first.
58706         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
58707         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
58708         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
58709         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
58710         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
58711
58712         * lib/dup2.c: Include <unistd.h> first.
58713         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
58714         HAVE_DUP2.
58715         * modules/dup2 (Depends-on): Add unistd.
58716         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
58717
58718         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
58719         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
58720         REPLACE_CHOWN. Don't define chown as a macro here.
58721         * modules/chown (Depends-on): Add unistd.
58722         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
58723
58724         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
58725         Add definition for GL_LINK_WARNING.
58726         (chown, dup2): New declarations.
58727         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
58728         link warning.
58729         (ftruncate): New declaration.
58730         (getcwd): New declaration, taken from old getcwd.h.
58731         (getlogin_r): New declaration, taken from old getlogin_r.h.
58732         (readlink): New declaration.
58733         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
58734         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
58735         (gl_PREREQ_UNISTD): Remove macro.
58736         (gl_UNISTD_MODULE_INDICATOR): New macro.
58737         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
58738         many new variables. Don't set UNISTD_H.
58739         * modules/unistd (Description): Change.
58740         (Depends-on): Add link-warning.
58741         (configure.ac): Update.
58742         (Makefile.am): Create unistd.h always. Substitute many new variables
58743         into it.
58744
58745 2007-02-18  Bruno Haible  <bruno@clisp.org>
58746
58747         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
58748         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
58749         HAVE_GETSUBOPT.
58750         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
58751         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
58752         * lib/getsubopt.h: Remove file.
58753         * modules/getsubopt (Files): Remove lib/getsubopt.h.
58754         (Depends-on): Add stdlib.
58755         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
58756         (Includes): Use <stdlib.h> instead of getsubopt.h.
58757         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
58758         Set HAVE_GETSUBOPT.
58759         * lib/getsubopt.c: Don't include getsubopt.h.
58760
58761 2007-02-18  Bruno Haible  <bruno@clisp.org>
58762
58763         * modules/fchdir (Depends-on): Add dup2.
58764
58765 2007-02-18  Bruno Haible  <bruno@clisp.org>
58766
58767         * lib/stdlib_.h: Handle glibc's special invocation convention
58768         specially.
58769
58770 2007-02-18  Bruno Haible  <bruno@clisp.org>
58771
58772         * modules/stdlib-tests: New file.
58773         * tests/test-stdlib.c: New file.
58774
58775         * modules/mkstemp (Files): Remove lib/mkstemp.h.
58776         (Depends-on): Add stdlib.
58777         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
58778         (Includes): Use <stdlib.h> instead of mkstemp.h.
58779         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
58780         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
58781         * lib/mkstemp.c: Don't include mkstemp.h.
58782         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
58783         * lib/stdlib--.h: Don't include mkstemp.h.
58784
58785         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
58786         (Depends-on): Add stdlib.
58787         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
58788         (Includes): Use <stdlib.h> instead of mkdtemp.h.
58789         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
58790         HAVE_MKDTEMP.
58791         * lib/mkdtemp.c: Don't include mkdtemp.h.
58792         * lib/clean-temp.c: Don't include mkdtemp.h.
58793
58794         * modules/exit (Files): Remove lib/exit.h.
58795         (Depends-on): Add stdlib.
58796         (Makefile.am): Remove lib_SOURCES.
58797         (Include): Use <stdlib.h> instead of exit.h.
58798         * lib/argmatch.c: Don't include exit.h.
58799         * lib/execute.c: Likewise.
58800         * lib/pagealign_alloc.c: Likewise.
58801         * lib/pipe.c: Likewise.
58802         * lib/wait-process.c: Likewise.
58803         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
58804         * lib/exitfail.c: Likewise.
58805         * lib/savewd.c: Likewise.
58806         * lib/xsetenv.c: Likewise.
58807
58808         * modules/stdlib: New file.
58809         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
58810         and extra comments about mkstemp().
58811         * lib/exit.h: Remove file.
58812         * lib/mkdtemp.h: Remove file.
58813         * lib/mkstemp.h: Remove file.
58814         * m4/stdlib_h.m4: New file.
58815         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
58816
58817 2007-02-18  Bruno Haible  <bruno@clisp.org>
58818
58819         * modules/math-tests: New file.
58820         * tests/test-math.c: New file.
58821
58822         * modules/math: New file.
58823         * modules/mathl (Files): Remove lib/mathl.h.
58824         (Depends-on): Add math.
58825         (Makefile.am): Don't mention mathl.h.
58826         (Include): Use <math.h> instead of mathl.h.
58827         * lib/math_.h: New file.
58828         * lib/mathl.h: Remove file.
58829         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
58830         mathl.h.
58831         * lib/asinl.c: Likewise.
58832         * lib/atanl.c: Likewise.
58833         * lib/ceill.c: Likewise.
58834         * lib/cosl.c: Likewise.
58835         * lib/expl.c: Likewise.
58836         * lib/floorl.c: Likewise.
58837         * lib/frexpl.c: Likewise.
58838         * lib/ldexpl.c: Likewise.
58839         * lib/logl.c: Likewise.
58840         * lib/sincosl.c: Likewise.
58841         * lib/sinl.c: Likewise.
58842         * lib/sqrtl.c: Likewise.
58843         * lib/tanl.c: Likewise.
58844         * lib/trigl.c: Likewise.
58845         * m4/math_h.m4: New file.
58846         * MODULES.html.sh (Mathematics): Add math.
58847
58848 2007-02-17  Bruno Haible  <bruno@clisp.org>
58849
58850         * modules/wctype-tests: New file.
58851         * tests/test-wctype.c: New file.
58852
58853         * modules/wchar-tests: New file.
58854         * tests/test-wchar.c: New file.
58855
58856         * modules/unistd-tests: New file.
58857         * tests/test-unistd.c: New file.
58858
58859         * modules/time-tests: New file.
58860         * tests/test-time.c: New file.
58861
58862         * modules/sysexits-tests: New file.
58863         * tests/test-sysexits.c: New file.
58864
58865         * modules/sys_time-tests: New file.
58866         * tests/test-sys_time.c: New file.
58867
58868         * modules/sys_stat-tests: New file.
58869         * tests/test-sys_stat.c: New file.
58870
58871         * modules/sys_socket-tests: New file.
58872         * tests/test-sys_socket.c: New file.
58873
58874         * modules/sys_select-tests: New file.
58875         * tests/test-sys_select.c: New file.
58876
58877         * modules/string-tests: New file.
58878         * tests/test-string.c: New file.
58879
58880         * modules/stdbool-tests: New file.
58881         * tests/test-stdbool.c: New file.
58882
58883         * modules/netinet_in-tests: New file.
58884         * tests/test-netinet_in.c: New file.
58885
58886         * modules/inttypes-tests: New file.
58887         * tests/test-inttypes.c: New file.
58888
58889         * modules/fcntl-tests: New file.
58890         * tests/test-fcntl.c: New file.
58891
58892         * modules/byteswap-tests: New file.
58893         * tests/test-byteswap.c: New file.
58894
58895         * modules/arpa_inet-tests: New file.
58896         * tests/test-arpa_inet.c: New file.
58897
58898 2007-02-17  Bruno Haible  <bruno@clisp.org>
58899
58900         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
58901         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
58902         if the corresponding module is not enabled. Emit link warnings if
58903         the function is used nevertheless.
58904         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
58905         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
58906         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
58907         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
58908         * modules/inttypes (Depends-on): Add link-warning.
58909         (Makefile.am): Copy the contents of build-aux/link-warning.h into
58910         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
58911         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
58912         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
58913         * modules/imaxdiv (configure.ac): Likewise.
58914         * modules/strtoimax (configure.ac): Likewise.
58915         * modules/strtoumax (configure.ac): Likewise.
58916
58917 2007-02-17  Bruno Haible  <bruno@clisp.org>
58918
58919         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
58920         gl_STRING_MODULE_INDICATOR_DEFAULTS.
58921         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
58922         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
58923
58924 2007-02-17  Bruno Haible  <bruno@clisp.org>
58925
58926         * modules/link-warning: New file.
58927         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
58928         * lib/string_.h (GL_LINK_WARNING): Remove definition.
58929         * modules/string (Depends-on): Add link-warning.
58930         (Makefile.am): Copy the contents of build-aux/link-warning.h into
58931         string.h.
58932         * MODULES.html.sh (Support for building libraries and executables): Add
58933         link-warning.
58934
58935 2007-02-17  Bruno Haible  <bruno@clisp.org>
58936
58937         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
58938         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
58939         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
58940         long lines.
58941
58942 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
58943             Bruno Haible  <bruno@clisp.org>
58944
58945         * modules/tmpfile: New file.
58946         * lib/tmpfile.c: New file.
58947         * m4/tmpfile.m4: New file.
58948         * MODULES.html.sh (func_all_modules): New section "Input/output".
58949
58950 2007-02-15  Bruno Haible  <bruno@clisp.org>
58951
58952         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
58953         (supports_delete_on_close): New function.
58954         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
58955
58956 2007-02-14  Bruno Haible  <bruno@clisp.org>
58957
58958         * modules/mbspcasecmp-tests: New file.
58959         * tests/test-mbspcasecmp.sh: New file.
58960         * tests/test-mbspcasecmp.c: New file.
58961
58962         New module mbspcasecmp.
58963         * modules/mbspcasecmp: New file.
58964         * lib/mbspcasecmp.c: New file.
58965         * lib/string_.h (strncasecmp): Change warning message.
58966         (mbspcasecmp): New declaration.
58967         * m4/mbspcasecmp.m4: New file.
58968         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
58969         GNULIB_MBSPCASECMP.
58970         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
58971         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
58972
58973 2007-02-14  Bruno Haible  <bruno@clisp.org>
58974
58975         * modules/mbsncasecmp-tests: New file.
58976         * tests/test-mbsncasecmp.sh: New file.
58977         * tests/test-mbsncasecmp.c: New file.
58978
58979         New module mbsncasecmp.
58980         * modules/mbsncasecmp: New file.
58981         * lib/mbsncasecmp.c: New file.
58982         * lib/string_.h (mbsncasecmp): New declaration.
58983         * m4/mbsncasecmp.m4: New file.
58984         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
58985         GNULIB_MBSNCASECMP.
58986         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
58987         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
58988
58989 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
58990
58991         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
58992         Verify that it doesn't overlap with our flags.
58993         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
58994         do not have the desired effect in multibyte locales; instead, use
58995         mbscasecmp.
58996         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
58997         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
58998         we don't require GNU fnmatch ourselves (if our users require it, they
58999         should do so explicitly).
59000
59001         Fix regex code so it doesn't rely on strcasecmp.
59002         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
59003         Otherwise, include gnulib's langinfo.h.
59004         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
59005         undesirable behavior in non-C locales.  Instead, rely on localecharset.
59006         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
59007         * modules/regex (FILES): Remove m4/codeset.m4.
59008         (Depends-on): Add localcharset.  Remove strcase.
59009
59010 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59011
59012         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
59013         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
59014
59015 2007-02-13  Bruno Haible  <bruno@clisp.org>
59016
59017         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
59018         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
59019
59020 2007-02-12  Bruno Haible  <bruno@clisp.org>
59021
59022         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
59023         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
59024         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
59025         time warning rather than a link error.
59026
59027 2007-02-12  Bruno Haible  <bruno@clisp.org>
59028
59029         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
59030         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
59031         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
59032
59033 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
59034
59035         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
59036         args, not 2.
59037
59038 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
59039
59040         New module 'time', so that apps can include <time.h> as per
59041         POSIX and GNU instead of separate include files like time_r.h
59042         and timegm.h.  This implementation tries out a simpler approach
59043         for replacing decls in standard include files (as compared to
59044         the string module), somewhat as an experiment.
59045
59046         * config/srclist.txt: Comment out mktime.c for now.
59047         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
59048         since it doesn't apply any more.  Use generic wording instead.
59049         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
59050         'time'.
59051         * lib/time_.h, m4/time_h.m4, modules/time: New files.
59052         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
59053         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
59054         Don't include <sys/types.h>; no longer needed since we assume C89.
59055         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
59056         * lib/strftime.c: Likewise.
59057         * lib/time_r.c: Likewise.
59058         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
59059         * lib/nanosleep.c: Include <time.h> first, to check interface.
59060         * lib/strptime.c: Likewise.
59061         * lib/time_r.c: Likewise.
59062         * lib/timegm.c: Likewise.
59063         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
59064         needed.
59065         * lib/timegm.c: Don't include timegm.h; no longer needed.
59066         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
59067         time.h now handles any problems in that area.
59068         (struct timespec, nanosleep): Remove; time.h now arranges for these.
59069         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
59070         that time.h defines struct timespec.
59071         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
59072         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
59073         handles that.
59074         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
59075         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
59076         needed.  Set REPLACE_LOCALTIME.
59077         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
59078         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
59079         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
59080         nanosleep; time_h.m4 now does that.  Don't require
59081         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
59082         module handles this now.
59083         * modules/getdate (Depends-on): Remove timespec.  Add time.
59084         * modules/nanosleep (Depends-on): Likewise.
59085         * modules/stat-time (Depends-on): Likewise.
59086         * modules/nanosleep (Include): Include time.h, not timespec.h.
59087         * modules/strptime (Files): Remove lib/strptime.h.
59088         (Depends-on): Add extensions, time.
59089         (Include): Include time.h, not strptime.h.
59090         * modules/time_r (Files): Remove lib/time_r.h.
59091         (Depends-on): Add time.
59092         (Include): Include time.h, not time_r.h.
59093         * modules/timegm: Likewise.
59094         * modules/timespec (Description): Now does timespec-related decls
59095         of our own, instead of struct timespec itself.
59096         (Depends-on): Add time; remove extensions.
59097         (Maintainer): Add self.
59098         * modules/utimecmp (Depends-on): Add time; remove timespec.
59099         * modules/utimens (Depends-on): Likewise.
59100         * modules/xnanosleep (Depends-on): Likewise.
59101
59102 2007-02-11  Bruno Haible  <bruno@clisp.org>
59103
59104         * lib/c-strstr.c: Include allocsa.h.
59105         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
59106         * lib/c-strcasestr.c: Include allocsa.h.
59107         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
59108         * lib/strcasestr.c: Include allocsa.h.
59109         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
59110         * lib/mbsstr.c: Include allocsa.h.
59111         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
59112         allocsa/freesa instead of malloc/free.
59113         * lib/mbscasestr.c: Include allocsa.h.
59114         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
59115         allocsa/freesa instead of malloc/free.
59116         * modules/c-strstr (Depends-on): Add allocsa.
59117         * modules/c-strcasestr (Depends-on): Likewise.
59118         * modules/strcasestr (Depends-on): Likewise.
59119         * modules/mbsstr (Depends-on): Likewise.
59120         * modules/mbscasestr (Depends-on): Likewise.
59121
59122 2007-02-11  Bruno Haible  <bruno@clisp.org>
59123
59124         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
59125
59126         * modules/mbsspn-tests: New file.
59127         * tests/test-mbsspn.sh: New file.
59128         * tests/test-mbsspn.c: New file.
59129
59130 2007-02-11  Bruno Haible  <bruno@clisp.org>
59131
59132         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
59133
59134         * modules/mbspbrk-tests: New file.
59135         * tests/test-mbspbrk.sh: New file.
59136         * tests/test-mbspbrk.c: New file.
59137
59138 2007-02-11  Bruno Haible  <bruno@clisp.org>
59139
59140         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
59141         unneeded cast.
59142
59143         * modules/mbscspn-tests: New file.
59144         * tests/test-mbscspn.sh: New file.
59145         * tests/test-mbscspn.c: New file.
59146
59147 2007-02-11  Bruno Haible  <bruno@clisp.org>
59148
59149         * modules/mbscasecmp-tests: New file.
59150         * tests/test-mbscasecmp.sh: New file.
59151         * tests/test-mbscasecmp.c: New file.
59152
59153 2007-02-11  Bruno Haible  <bruno@clisp.org>
59154
59155         Ensure O(n) worst-case complexity of mbscasestr.
59156         * lib/mbscasestr.c: Include stdbool.h.
59157         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
59158         functions.
59159         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
59160         the bookkeeping indicates that it's worth it.
59161         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
59162
59163         * modules/mbscasestr-tests: New file.
59164         * tests/test-mbscasestr1.c: New file.
59165         * tests/test-mbscasestr2.sh: New file.
59166         * tests/test-mbscasestr2.c: New file.
59167         * tests/test-mbscasestr3.sh: New file.
59168         * tests/test-mbscasestr3.c: New file.
59169         * tests/test-mbscasestr4.sh: New file.
59170         * tests/test-mbscasestr4.c: New file.
59171         * m4/locale-tr.m4: New file.
59172
59173 2007-02-11  Bruno Haible  <bruno@clisp.org>
59174
59175         Ensure O(n) worst-case complexity of mbsstr.
59176         * lib/mbsstr.c: Include stdbool.h.
59177         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
59178         functions.
59179         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
59180         bookkeeping indicates that it's worth it.
59181         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
59182
59183         * modules/mbsstr-tests: New file.
59184         * tests/test-mbsstr1.c: New file.
59185         * tests/test-mbsstr2.sh: New file.
59186         * tests/test-mbsstr2.c: New file.
59187         * tests/test-mbsstr3.sh: New file.
59188         * tests/test-mbsstr3.c: New file.
59189         * m4/locale-fr.m4: New file.
59190
59191 2007-02-11  Bruno Haible  <bruno@clisp.org>
59192
59193         * lib/mbsrchr.c (mbsrchr): Fix bug.
59194
59195         * modules/mbsrchr-tests: New file.
59196         * tests/test-mbsrchr.sh: New file.
59197         * tests/test-mbsrchr.c: New file.
59198
59199 2007-02-11  Bruno Haible  <bruno@clisp.org>
59200
59201         * lib/mbschr.c (mbschr): Fix bug.
59202
59203         * modules/mbschr-tests: New file.
59204         * tests/test-mbschr.sh: New file.
59205         * tests/test-mbschr.c: New file.
59206         * m4/locale-zh.m4: New file.
59207
59208 2007-02-11  Bruno Haible  <bruno@clisp.org>
59209
59210         Support for copying multibyte string iterators.
59211         * lib/mbiter.h: Include <string.h>.
59212         (mbiter_multi_copy): New function.
59213         (mbi_copy): New macro.
59214         * lib/mbuiter.h: Include <string.h>.
59215         (mbuiter_multi_copy): New function.
59216         (mbui_copy): New macro.
59217
59218 2007-02-11  Bruno Haible  <bruno@clisp.org>
59219
59220         New module mbslen.
59221         * modules/mbslen: New file.
59222         * lib/mbslen.c: New file.
59223         * lib/string_.h (mbslen): New declaration.
59224         * m4/mbslen.m4: New file.
59225         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59226         GNULIB_MBSLEN.
59227         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
59228         * MODULES.html.sh (Internationalization functions): Add mbslen.
59229
59230 2007-02-11  Bruno Haible  <bruno@clisp.org>
59231
59232         Ensure O(n) worst-case complexity of strcasestr substitute.
59233         * lib/strcasestr.c: Include stdbool.h.
59234         (knuth_morris_pratt): New function.
59235         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
59236         bookkeeping indicates that it's worth it.
59237         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
59238
59239         * modules/strcasestr-tests: New file.
59240         * tests/test-strcasestr.c: New file.
59241
59242 2007-02-11  Bruno Haible  <bruno@clisp.org>
59243
59244         Ensure O(n) worst-case complexity of c_strcasestr.
59245         * lib/c-strcasestr.c: Include stdbool.h, string.h.
59246         (knuth_morris_pratt): New function.
59247         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
59248         the bookkeeping indicates that it's worth it.
59249         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
59250
59251         * modules/c-strcasestr-tests: New file.
59252         * tests/test-c-strcasestr.c: New file.
59253
59254 2007-02-11  Bruno Haible  <bruno@clisp.org>
59255
59256         Ensure O(n) worst-case complexity of c_strstr.
59257         * lib/c-strstr.c: Include stdbool.h, string.h.
59258         (knuth_morris_pratt): New function.
59259         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
59260         bookkeeping indicates that it's worth it.
59261         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
59262
59263         * lib/c-strstr.c: Complete rewrite for maintainability.
59264
59265         * modules/c-strstr-tests: New file.
59266         * tests/test-c-strstr.c: New file.
59267
59268 2007-02-11  Bruno Haible  <bruno@clisp.org>
59269
59270         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
59271         5.2.1 and earlier, whereby \055 was treated just like the range
59272         delimiter '-'.
59273         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
59274
59275 2007-02-08  Bruno Haible  <bruno@clisp.org>
59276
59277         * modules/regex (Depends-on): Add stdbool.
59278         Reported by Dalibor Topic <robilad@kaffe.org>.
59279
59280 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
59281
59282         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
59283         Prefer returning from main to exiting from it.
59284         Remove unnecessary parens after sizeof.
59285
59286 2007-02-05  Bruno Haible  <bruno@clisp.org>
59287
59288         New module mbssep.
59289         * modules/mbssep: New file.
59290         * lib/mbssep.c: New file.
59291         * lib/string_.h (strsep): Add a conditional link warning.
59292         (mbssep): New declaration.
59293         * m4/mbssep.m4: New file.
59294         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59295         GNULIB_MBSSEP.
59296         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
59297         * MODULES.html.sh (Internationalization functions): Add mbssep.
59298
59299 2007-02-05  Bruno Haible  <bruno@clisp.org>
59300
59301         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
59302         Optimize search in case of 1 delimiter.
59303
59304 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
59305
59306         * lib/acl.h: Include sys/types.h before sys/acl.h.
59307
59308 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
59309
59310         Merge upstream fix for glibc bugzilla #3957:
59311
59312         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
59313
59314         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
59315         bit for RE_HAT_LISTS_NOT_NEWLINE.
59316         (build_charclass_op): Remove bogus comment.
59317
59318 2007-02-05  Simon Josefsson  <simon@josefsson.org>
59319
59320         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
59321
59322 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
59323
59324         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
59325         * lib/memmem.c [!defined _LIBC]: Include config.h.
59326
59327 2007-02-04  Bruno Haible  <bruno@clisp.org>
59328
59329         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
59330         warning message.
59331
59332 2007-02-04  Bruno Haible  <bruno@clisp.org>
59333
59334         New module mbstok_r.
59335         * modules/mbstok_r: New file.
59336         * lib/mbstok_r.c: New file.
59337         * lib/string_.h (strtok_r): Change argument names to match the
59338         comments. Add a conditional link warning.
59339         (mbstok_r): New declaration.
59340         * m4/mbstok_r.m4: New file.
59341         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59342         GNULIB_MBSTOK_R.
59343         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
59344         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
59345
59346 2007-02-04  Bruno Haible  <bruno@clisp.org>
59347
59348         New module mbsspn.
59349         * modules/mbsspn: New file.
59350         * lib/mbsspn.c: New file.
59351         * lib/string_.h (strspn): Add a conditional link warning.
59352         (mbsspn): New declaration.
59353         * m4/mbsspn.m4: New file.
59354         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59355         GNULIB_MBSSPN.
59356         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
59357         * MODULES.html.sh (Internationalization functions): Add mbsspn.
59358
59359 2007-02-04  Bruno Haible  <bruno@clisp.org>
59360
59361         New module mbspbrk.
59362         * modules/mbspbrk: New file.
59363         * lib/mbspbrk.c: New file.
59364         * lib/string_.h (strpbrk): Add a conditional link warning.
59365         (mbspbrk): New declaration.
59366         * m4/mbspbrk.m4: New file.
59367         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59368         GNULIB_MBSPBRK.
59369         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
59370         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
59371
59372 2007-02-04  Bruno Haible  <bruno@clisp.org>
59373
59374         New module mbscspn.
59375         * modules/mbscspn: New file.
59376         * lib/mbscspn.c: New file.
59377         * lib/string_.h (strcspn): Add a conditional link warning.
59378         (mbscspn): New declaration.
59379         * m4/mbscspn.m4: New file.
59380         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59381         GNULIB_MBSCSPN.
59382         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
59383         * MODULES.html.sh (Internationalization functions): Add mbscspn.
59384
59385 2007-02-04  Bruno Haible  <bruno@clisp.org>
59386
59387         New module mbscasestr, reduced goal of strcasestr.
59388         * modules/mbscasestr: New file.
59389         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
59390         (mbscasestr): Renamed from strcasestr.
59391         * lib/strcasestr.c: Don't include mbuiter.h.
59392         (strcasestr): Remove support for multibyte locales.
59393         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
59394         Change the conditional link warning.
59395         (mbscasestr): New declaration.
59396         * m4/mbscasestr.m4: New file.
59397         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
59398         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
59399         REPLACE_STRCASESTR.
59400         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
59401         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
59402         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
59403         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
59404         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
59405         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
59406         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
59407         (Depends-on): Remove mbuiter.
59408         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
59409
59410 2007-02-04  Bruno Haible  <bruno@clisp.org>
59411
59412         Simplify handling of strncasecmp.
59413         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
59414         the conditional link warning.
59415         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
59416         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
59417         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
59418         * modules/strcase (configure.ac): Don't invoke
59419         gl_STRING_MODULE_INDICATOR.
59420         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
59421
59422 2007-02-04  Bruno Haible  <bruno@clisp.org>
59423
59424         New module mbscasecmp, reduced goal of strcasecmp.
59425         * modules/mbscasecmp: New file.
59426         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
59427         (mbscasecmp): Renamed from strcasecmp.
59428         * lib/strcasecmp.c: Don't include mbuiter.h.
59429         (strcasecmp): Remove support for multibyte locales.
59430         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
59431         Change the conditional link warning.
59432         (mbscasecmp): New declaration.
59433         * m4/mbscasecmp.m4: New file.
59434         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
59435         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
59436         REPLACE_STRCASECMP.
59437         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
59438         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59439         GNULIB_MBSCASECMP.
59440         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
59441         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
59442         * modules/strcase (Files): Remove m4/mbrtowc.m4.
59443         (Depends-on): Remove mbuiter.
59444         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
59445
59446 2007-02-04  Bruno Haible  <bruno@clisp.org>
59447
59448         New module mbsstr. Remove module strstr.
59449         * modules/mbsstr: New file.
59450         * modules/strstr: Remove file.
59451         * lib/mbsstr.c: Renamed from lib/strstr.c.
59452         (mbsstr): Renamed from strstr.
59453         * lib/string_.h (strstr): Remove declaration. Change the conditional
59454         link warning.
59455         (mbsstr): New declaration.
59456         * m4/mbsstr.m4: New file.
59457         * m4/strstr.m4: Remove file.
59458         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
59459         REPLACE_STRSTR.
59460         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
59461         Don't initialize GNULIB_STRSTR.
59462         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
59463         substitute GNULIB_STRSTR and REPLACE_STRSTR.
59464         * MODULES.html.sh (Internationalization functions): Add mbsstr.
59465         (Support for systems lacking ANSI C 89): Remove strstr.
59466
59467 2007-02-04  Bruno Haible  <bruno@clisp.org>
59468
59469         New module mbsrchr.
59470         * modules/mbsrchr: New file.
59471         * lib/mbsrchr.c: New file.
59472         * lib/string_.h (strrchr): Add a conditional link warning.
59473         (mbsrchr): New declaration.
59474         * m4/mbsrchr.m4: New file.
59475         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59476         GNULIB_MBSRCHR.
59477         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
59478         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
59479
59480 2007-02-04  Bruno Haible  <bruno@clisp.org>
59481
59482         New module mbschr.
59483         * modules/mbschr: New file.
59484         * lib/mbschr.c: New file.
59485         * lib/string_.h (strchr): Add a conditional link warning.
59486         (mbschr): New declaration.
59487         * m4/mbschr.m4: New file.
59488         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59489         GNULIB_MBSCHR.
59490         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
59491         * MODULES.html.sh (Internationalization functions): Add mbschr.
59492
59493 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
59494
59495         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
59496
59497         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
59498
59499 2007-02-04  Bruno Haible  <bruno@clisp.org>
59500
59501         New module description section 'configure.ac-early'.
59502         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
59503         (func_get_autoconf_early_snippet): New function.
59504         (func_import, func_create_testdir): Use it. Remove special cases for
59505         modules 'extensions' and 'lock'.
59506         * modules/extensions (configure.ac-early): Require
59507         gl_USE_SYSTEM_EXTENSIONS.
59508         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
59509
59510 2007-02-04  Bruno Haible  <bruno@clisp.org>
59511
59512         Make use of gcj-4.3's -fsource and -ftarget option.
59513         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
59514         and if so try the options -fsource and -ftarget.
59515         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
59516         source_version, ftarget_option, target_version arguments.
59517         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
59518         (is_envjavac_oldgcj_14_14_usable): Renamed from
59519         is_envjavac_gcj_14_14_usable.
59520         (is_envjavac_oldgcj_14_13_usable): Renamed from
59521         is_envjavac_gcj_14_13_usable.
59522         (is_gcj_present): Update.
59523         (is_gcj_43, is_gcj43_usable): New functions.
59524         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
59525         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
59526         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
59527         try the options -fsource and -ftarget.
59528
59529 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
59530
59531         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
59532         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
59533         larger value.
59534
59535 2007-02-03  Jim Meyering  <jim@meyering.net>
59536
59537         Give tools a better chance to allocate space for very large buffers.
59538         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
59539
59540         Make pwd and readlink work also when run with an unreadable parent dir
59541         on systems with openat support.
59542         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
59543         provided getcwd function, even when we have openat support.
59544         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
59545
59546 2007-02-02  Bruno Haible  <bruno@clisp.org>
59547
59548         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
59549         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
59550         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
59551         portability problems if one of these functions is only used on specific
59552         platforms.
59553         Reported by Paul Eggert.
59554
59555 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
59556
59557         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
59558         is causing more trouble than it's curing.
59559         * lib/regex_internal.h (__mempcpy): Remove.
59560         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
59561         (and make the code a tad smaller to boot).
59562         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
59563
59564 2007-02-02  Jim Meyering  <jim@meyering.net>
59565
59566         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
59567         section, not in the Makefile.am: one.
59568
59569 2007-02-02  Eric Blake  <ebb9@byu.net>
59570
59571         * lib/strchrnul.c: Always include config.h first.
59572
59573         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
59574         gnulib strstr is not necessary here.
59575
59576 2007-02-02  Simon Josefsson  <simon@josefsson.org>
59577
59578         * m4/socklen.m4: Fix typo.
59579
59580 2007-02-02  Eric Blake  <ebb9@byu.net>
59581
59582         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
59583         * modules/netinet_in (Makefile.am): Likewise.
59584
59585 2007-02-01  Bruno Haible  <bruno@clisp.org>
59586
59587         * lib/string_.h (GL_LINK_WARNING): New macro.
59588         (strcasecmp, strstr, strcasestr): If provided by the system,
59589         conditionally define as a macro that leads to a warning instead of to
59590         an error.
59591         (strncasecmp): Conditionally define as a macro that leads to a warning.
59592
59593 2007-02-01  Karl Berry  <karl@gnu.org>
59594
59595         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
59596
59597 2007-02-01  Bruno Haible  <bruno@clisp.org>
59598
59599         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
59600         renamings.
59601
59602 2007-02-01  Eric Blake  <ebb9@byu.net>
59603
59604         * modules/regex (Depends-on): Revert dependence on mempcpy.
59605         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
59606         module's definition of mempcpy.
59607         Reported by Paul Eggert.
59608
59609 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
59610
59611         * lib/string_.h: If the gnulib module XYZ is not present, undefine
59612         the symbol XYZ before redefining it.  This fixes a problem with
59613         programs that don't use XYZ, when compiled on systems that define
59614         XYZ to something else.
59615
59616 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
59617
59618         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
59619         occurs when "mkdir -m foo" creates a setgid directory that is (1)
59620         writeable to group or other and (2) is intended to have a special
59621         mode bit that is set or cleared.  In such a case, the directory
59622         should be neither group- nor other-writeable until the special
59623         mode bits are right.
59624
59625 2007-01-31  Eric Blake  <ebb9@byu.net>
59626
59627         * modules/mountlist (Depends-on): Add strstr.
59628
59629         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
59630         bug.
59631         * modules/string (Makefile.am): Remove redundant replacement.
59632         * modules/regex (Depends-on): Add mempcpy.
59633
59634 2007-01-31  Bruno Haible  <bruno@clisp.org>
59635
59636         New module description field 'Link'.
59637         * gnulib-tool (func_usage): Document --extract-link-directive.
59638         (sed_extract_prog): Recognize 'Link' directive.
59639         (func_get_link_directive): New function.
59640         (func_import): Show summary of link directives.
59641         Handle --extract-link-directive option.
59642         * modules/acl (Link): New section.
59643         * modules/clock-time (Link): New section.
59644         * modules/euidaccess (Link): New section.
59645         * modules/gettext (Link): New section.
59646         * modules/iconv (Link): New section.
59647         * modules/lock (Link): New section.
59648         * modules/nanosleep (Link): New section.
59649         * modules/readline (Link): New section.
59650
59651 2007-01-27  Bruno Haible  <bruno@clisp.org>
59652
59653         Enforce the use of gnulib modules for unportable <string.h> functions.
59654         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
59655         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
59656         (gl_HEADER_STRING_H_BODY): Require it.
59657         * lib/string_.h: If the gnulib module XYZ is not present, redefine
59658         the symbol XYZ to one that gives a link error.
59659         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
59660         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
59661         * modules/mempcpy (configure.ac): Likewise.
59662         * modules/memrchr (configure.ac): Likewise.
59663         * modules/stpcpy (configure.ac): Likewise.
59664         * modules/stpncpy (configure.ac): Likewise.
59665         * modules/strcase (configure.ac): Likewise.
59666         * modules/strcasestr (configure.ac): Likewise.
59667         * modules/strchrnul (configure.ac): Likewise.
59668         * modules/strdup (configure.ac): Likewise.
59669         * modules/strndup (configure.ac): Likewise.
59670         * modules/strnlen (configure.ac): Likewise.
59671         * modules/strpbrk (configure.ac): Likewise.
59672         * modules/strsep (configure.ac): Likewise.
59673         * modules/strstr (configure.ac): Likewise.
59674         * modules/strtok_r (configure.ac): Likewise.
59675
59676 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
59677
59678         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
59679
59680 2007-01-30  Jim Meyering  <jim@meyering.net>
59681
59682         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
59683
59684 2007-01-29  Bruno Haible  <bruno@clisp.org>
59685
59686         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
59687         * lib/execute.c: Likewise.
59688         * lib/pipe.c: Likewise.
59689         * lib/printf-args.h: Likewise.
59690         * lib/printf-args.c: Likewise.
59691         * lib/printf-parse.c: Likewise.
59692         * lib/vasnprintf.c: Likewise.
59693
59694 2007-01-29  Eric Blake  <ebb9@byu.net>
59695
59696         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
59697         declaration.
59698
59699 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
59700
59701         * lib/strptime.h (strptime): Use 'restrict' for args where
59702         POSIX requires this.
59703         * lib/strptime.c (strptime): Likewise.
59704         Change license notice from LGPL to GPL, since gnulib-tool will
59705         change this as needed.
59706         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
59707         defined.
59708         Include "strptime.h" first, to check interface.
59709         Do not #undef _LIBC and _NL_CURRENT.
59710         Do not include <stdlib.h>; no longer needed.
59711         Include "time_r.h" and declare ptime_locale_status
59712         only if _LIBC is not defined.
59713         (__P): Remove unused macro.
59714         (match_string): Bring back glibc version, but use it only if _LIBC
59715         is defined.
59716         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
59717         Remove unnecessary assertion and abort() call.
59718         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
59719         * m4/strptime.m4: Fix serial number comment.
59720         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
59721         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
59722         (Depends-on): Add time_r.
59723
59724 2007-01-29  Bruno Haible  <bruno@clisp.org>
59725
59726         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
59727         strptime.
59728         * modules/strptime (Depends-on): Add stdbool.
59729         * lib/strptime.h: Include <time.h> always. Add comments.
59730
59731 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
59732
59733         * modules/strptime: New file.
59734         * lib/strptime.h: New file.
59735         * lib/strptime.c: New file.
59736         * m4/strptime.m4: New file.
59737
59738 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
59739
59740         * MODULES.html.sh: New module mpsort.
59741         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
59742
59743         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
59744         a circularity problem with HP-UX ia64 reported by Bob Proulx in
59745         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
59746         All uses changed.
59747         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
59748         All uses changed.
59749         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
59750         to _Restrict_.
59751         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
59752         the parameter matches the prototype.
59753
59754 2007-01-28  Jim Meyering  <jim@meyering.net>
59755
59756         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
59757         sys/time.h here, reverting that part of the previous patch:
59758         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
59759
59760 2007-01-28  Bruno Haible  <bruno@clisp.org>
59761
59762         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
59763         value of $(SYS_TIME_H).
59764         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
59765         remove it conditionally, too. [added by Jim Meyering]
59766         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
59767         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
59768         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
59769         GETTIMEOFDAY_REPLACEMENT to 1.
59770
59771 2007-01-28  Bruno Haible  <bruno@clisp.org>
59772
59773         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
59774         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
59775         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
59776         Set UNISTD_H instead of UNISTD_H2.
59777         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
59778
59779 2007-01-28  Bruno Haible  <bruno@clisp.org>
59780
59781         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
59782         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
59783
59784 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59785
59786         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
59787         (func_create_testdir): Ensure C locale for `grep' and `tr'
59788         character ranges.
59789         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
59790         ACLOCAL_AMFLAGS parsing state machine.
59791
59792 2007-01-27  Bruno Haible  <bruno@clisp.org>
59793
59794         * modules/unistr/base: Update.
59795
59796 2007-01-27  Bruno Haible  <bruno@clisp.org>
59797
59798         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
59799         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
59800         * modules/unistr/u32-mbtouc-unsafe: Renamed from
59801         modules/unistr/u32-mbtouc.
59802         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
59803         * lib/unistr.h: Update.
59804         * lib/linebreak.c: Update.
59805         * modules/unistr/u32-mbtouc: Renamed from
59806         modules/unistr/u32-mbtouc-safe.
59807         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
59808         * lib/unistr.h: Update.
59809         * lib/unistr/u32-to-u8.c: Update.
59810         * lib/unistr/u32-to-u16.c: Update.
59811
59812 2007-01-27  Bruno Haible  <bruno@clisp.org>
59813
59814         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
59815         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
59816         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
59817         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
59818         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
59819         * modules/unistr/u16-mbtouc-unsafe: Renamed from
59820         modules/unistr/u16-mbtouc.
59821         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
59822         * lib/unistr.h: Update.
59823         * lib/linebreak.c: Update.
59824         * modules/linebreak: Update.
59825         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
59826         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
59827         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
59828         * modules/unistr/u16-mbtouc: Renamed from
59829         modules/unistr/u16-mbtouc-safe.
59830         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
59831         * lib/unistr.h: Update.
59832         * lib/unistr/u16-to-u8.c: Update.
59833         * modules/unistr/u16-to-u8: Update.
59834         * lib/unistr/u16-to-u32.c: Update.
59835         * modules/unistr/u16-to-u32: Update.
59836
59837 2007-01-27  Bruno Haible  <bruno@clisp.org>
59838
59839         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
59840         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
59841         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
59842         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
59843         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
59844         * modules/unistr/u8-mbtouc-unsafe: Renamed from
59845         modules/unistr/u8-mbtouc.
59846         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
59847         * lib/unistr.h: Update.
59848         * lib/striconveh.c: Update.
59849         * modules/striconveh: Update.
59850         * lib/linebreak.c: Update.
59851         * modules/linebreak: Update.
59852         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
59853         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
59854         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
59855         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
59856         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
59857         * lib/unistr.h: Update.
59858         * lib/striconveh.c: Update.
59859         * modules/striconveh: Update.
59860         * lib/unistr/u8-to-u16.c: Update.
59861         * modules/unistr/u8-to-u16: Update.
59862         * lib/unistr/u8-to-u32.c: Update.
59863         * modules/unistr/u8-to-u32: Update.
59864
59865 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59866
59867         Sync from Libtool.
59868         * lib/argz.c: Do not include strings.h nor memory.h, include
59869         string.h unconditionally.  Patch by Simon Josefsson.
59870
59871 2007-01-27  Bruno Haible  <bruno@clisp.org>
59872
59873         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
59874         from gl_HEADER_STRING_H_BODY.
59875         (gl_HEADER_STRING_H_BODY): Require it.
59876         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
59877         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
59878         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
59879         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
59880         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
59881         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
59882         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
59883         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
59884         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
59885         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
59886         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
59887         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
59888         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
59889         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
59890         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
59891
59892 2007-01-27  Bruno Haible  <bruno@clisp.org>
59893
59894         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
59895         check_PROGRAMS into noinst_PROGRAMS.
59896         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
59897         check_PROGRAMS in this case.
59898         (func_import): Set for_test to false.
59899         (func_create_testdir): Set for_test to true.
59900
59901 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
59902             Bruno Haible  <bruno@clisp.org>
59903
59904         * modules/strcasestr (Files): Remove lib/strcasestr.h.
59905         (Depends-on): Add string.
59906         (Includes): Use <string.h> instead of strcasestr.h.
59907         * modules/string (Makefile.am): Also substitute the value of
59908         REPLACE_STRCASESTR.
59909         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
59910         assume strcasestr is declared in <string.h> not <strings.h>. Also
59911         set REPLACE_STRCASESTR.
59912         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
59913         REPLACE_STRCASESTR.
59914         * lib/strcasestr.h: Remove file.
59915         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
59916         * lib/string_.h (strcasestr): New declaration.
59917
59918 2007-01-27  Bruno Haible  <bruno@clisp.org>
59919
59920         * lib/string_.h: Use 'extern'.
59921
59922 2007-01-27  Jim Meyering  <jim@meyering.net>
59923
59924         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
59925         of set-but-not-used local, "q".
59926
59927         * lib/mempcpy.c: Include <config.h> before <string.h>.
59928         This fixes a compilation error on HP-UX, due to the system's
59929         "restrict"-using mempcpy prototype.
59930
59931 2007-01-26  Bruno Haible  <bruno@clisp.org>
59932
59933         Small optimization.
59934         * lib/javacomp.c: Include c-strstr.h.
59935          (is_envjavac_gcj): Use c_strstr instead of strstr.
59936         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
59937
59938 2007-01-26  Bruno Haible  <bruno@clisp.org>
59939
59940         * MODULES.html.sh (Unicode string functions): Add the new modules.
59941
59942         * modules/uniconv/u32-strconv-to-locale: New file.
59943         * lib/uniconv/u32-strconv-to-locale.c: New file.
59944
59945         * modules/uniconv/u16-strconv-to-locale: New file.
59946         * lib/uniconv/u16-strconv-to-locale.c: New file.
59947
59948         * modules/uniconv/u8-strconv-to-locale: New file.
59949         * lib/uniconv/u8-strconv-to-locale.c: New file.
59950
59951         * modules/uniconv/u32-strconv-from-locale: New file.
59952         * lib/uniconv/u32-strconv-from-locale.c: New file.
59953
59954         * modules/uniconv/u16-strconv-from-locale: New file.
59955         * lib/uniconv/u16-strconv-from-locale.c: New file.
59956
59957         * modules/uniconv/u8-strconv-from-locale: New file.
59958         * lib/uniconv/u8-strconv-from-locale.c: New file.
59959
59960         * modules/uniconv/u32-strconv-to-enc: New file.
59961         * lib/uniconv/u32-strconv-to-enc.c: New file.
59962         * modules/uniconv/u32-strconv-to-enc-tests: New file.
59963         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
59964
59965         * modules/uniconv/u16-strconv-to-enc: New file.
59966         * lib/uniconv/u16-strconv-to-enc.c: New file.
59967         * lib/uniconv/u-strconv-to-enc.h: New file.
59968         * modules/uniconv/u16-strconv-to-enc-tests: New file.
59969         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
59970
59971         * modules/uniconv/u8-strconv-to-enc: New file.
59972         * lib/uniconv/u8-strconv-to-enc.c: New file.
59973         * modules/uniconv/u8-strconv-to-enc-tests: New file.
59974         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
59975
59976         * modules/uniconv/u32-strconv-from-enc: New file.
59977         * lib/uniconv/u32-strconv-from-enc.c: New file.
59978         * modules/uniconv/u32-strconv-from-enc-tests: New file.
59979         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
59980
59981         * modules/uniconv/u16-strconv-from-enc: New file.
59982         * lib/uniconv/u16-strconv-from-enc.c: New file.
59983         * modules/uniconv/u16-strconv-from-enc-tests: New file.
59984         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
59985
59986         * modules/uniconv/u8-strconv-from-enc: New file.
59987         * lib/uniconv/u8-strconv-from-enc.c: New file.
59988         * lib/uniconv/u-strconv-from-enc.h: New file.
59989         * modules/uniconv/u8-strconv-from-enc-tests: New file.
59990         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
59991
59992         * modules/uniconv/u32-conv-from-enc: New file.
59993         * lib/uniconv/u32-conv-from-enc.c: New file.
59994         * modules/uniconv/u32-conv-from-enc-tests: New file.
59995         * tests/uniconv/test-u32-conv-from-enc.c: New file.
59996
59997         * modules/uniconv/u16-conv-from-enc: New file.
59998         * lib/uniconv/u16-conv-from-enc.c: New file.
59999         * lib/uniconv/u-conv-from-enc.h: New file.
60000         * modules/uniconv/u16-conv-from-enc-tests: New file.
60001         * tests/uniconv/test-u16-conv-from-enc.c: New file.
60002
60003         * modules/uniconv/u8-conv-from-enc: New file.
60004         * lib/uniconv/u8-conv-from-enc.c: New file.
60005         * modules/uniconv/u8-conv-from-enc-tests: New file.
60006         * tests/uniconv/test-u8-conv-from-enc.c: New file.
60007
60008         * modules/uniconv/base: New file.
60009         * lib/uniconv.h: New file.
60010
60011 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
60012
60013         * doc/gnulib-tool.texi (Initial import): Update to match current
60014         behavior with strdup module.
60015         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
60016         * lib/memmem.h: Remove; all uses removed.  This is now done
60017         by <string.h>.
60018         * lib/mempcpy.h: Likewise.
60019         * lib/memrchr.h: Likewise.
60020         * lib/stpcpy.h: Likewise.
60021         * lib/stpncpy.h: Likewise.
60022         * lib/strcase.h: Likewise.
60023         * lib/strchrnul.h: Likewise.
60024         * lib/strdup.h: Likewise.
60025         * lib/strndup.h: Likewise.
60026         * lib/strnlen.h: Likewise.
60027         * lib/strpbrk.h: Likewise.
60028         * lib/strsep.h: Likewise.
60029         * lib/strstr.h: Likewise.
60030         * lib/strtok_r.h: Likewise.
60031         * lib/string_.h: New file.
60032         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
60033         Rely on <string.h> instead.
60034         * lib/canon-host.c: Likewise.
60035         * lib/chdir-long.c: Likewise.
60036         * lib/concatpath.c: Likewise.
60037         * lib/exclude.c: Likewise.
60038         * lib/fchdir.c: Likewise.
60039         * lib/getaddrinfo.c: Likewise.
60040         * lib/getcwd.c: Likewise.
60041         * lib/getsubopt.c: Likewise.
60042         * lib/glob.c: Likewise.
60043         * lib/hard-locale.c: Likewise.
60044         * lib/iconvme.c: Likewise.
60045         * lib/javacomp.c: Likewise.
60046         * lib/mempcpy.c: Likewise.
60047         * lib/memrchr.c: Likewise.
60048         * lib/regex_internal.h: Likewise.
60049         * lib/stpncpy.c: Likewise.
60050         * lib/strcasecmp.c: Likewise.
60051         * lib/strchrnul.c: Likewise.
60052         * lib/strdup.c: Likewise.
60053         * lib/striconv.c: Likewise.
60054         * lib/striconveh.c: Likewise.
60055         * lib/striconveha.c: Likewise.
60056         * lib/strncasecmp.c: Likewise.
60057         * lib/strndup.c: Likewise.
60058         * lib/strnlen.c: Likewise.
60059         * lib/strsep.c: Likewise.
60060         * lib/strstr.c: Likewise.
60061         * lib/strtok_r.c: Likewise.
60062         * lib/userspec.c: Likewise.
60063         * lib/w32spawn.h: Likewise.
60064         * lib/xstrndup.c: Likewise.
60065         * lib/mountlist.c (strstr): Remove decl.
60066         * m4/string_h.m4: New file.
60067         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
60068         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
60069         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
60070         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
60071         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
60072         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
60073         Set REPLACE_STRCASECMP if necessary.
60074         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
60075         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
60076         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
60077         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
60078         HAVE_DECL_STRDUP if necessary.
60079         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
60080         since gl_FUNC_STRNDUP does that now.
60081         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
60082         Check for decl here...
60083         (gl_PREREQ_STRNLEN): ... not here.
60084         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
60085         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
60086         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
60087         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
60088         necessary.
60089         * modules/string: New file.
60090         * modules/memmem (Files): Remove special-purpose include file.
60091         (Depends-on): Add string.
60092         (Include): Include <string.h>, not the removed file.
60093         * modules/mempcpy: Likewise.
60094         * modules/memrchr: Likewise.
60095         * modules/stpcpy: Likewise.
60096         * modules/stpncpy: Likewise.
60097         * modules/strcase: Likewise.
60098         * modules/strchrnul: Likewise.
60099         * modules/strdup: Likewise.
60100         * modules/strndup: Likewise.
60101         * modules/strnlen: Likewise.
60102         * modules/strpbrk: Likewise.
60103         * modules/strsep: Likewise.
60104         * modules/strstr: Likewise.
60105         * modules/strtok_r: Likewise.
60106         * tests/test-dirname.c: Don't include "strdup.h", since
60107         <string.h> now suffices.
60108         * tests/test-memmem.c: Don't include "memmem.h", since
60109         <string.h> now suffices.
60110
60111 2007-01-25  Bruno Haible  <bruno@clisp.org>
60112
60113         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
60114         *resultp is 0.
60115
60116         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
60117         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
60118         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
60119         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
60120
60121         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
60122         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
60123         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
60124         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
60125         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
60126         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
60127
60128 2007-01-24  Bruno Haible  <bruno@clisp.org>
60129
60130         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
60131         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
60132         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
60133         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
60134         gl_FUNC_FTS_CORE.
60135         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
60136         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
60137         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
60138         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
60139         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
60140         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
60141         gl_FUNC_FCHOWNAT.
60142         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
60143         gl_FUNC_STRFTIME.
60144         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
60145         Reported by Ralf Wildenhues.
60146
60147 2007-01-24  Bruno Haible  <bruno@clisp.org>
60148
60149         Drop AC_REQUIRE calls that are redundant with the module dependencies.
60150         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
60151         gl_GETADDRINFO.
60152         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
60153         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
60154         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
60155
60156 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
60157
60158         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
60159         Don't use 'exit'; just return from 'main'.
60160         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
60161
60162         * lib/fnmatch_.h: Readjust white space and comments to match
60163         glibc, to avoid spurious diffs.
60164
60165 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
60166
60167         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
60168         2004-12-01 change by Jakub Jelinek, since this code won't compile
60169         if !LIBC.  Problem reported by Bob Proulx.
60170
60171 2007-01-23  Bruno Haible  <bruno@clisp.org>
60172
60173         * lib/striconveh.c: Include c-strcaseeq.h.
60174         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
60175         * modules/striconveh (Depends-on): Add c-strcaseeq.
60176
60177 2007-01-23  Bruno Haible  <bruno@clisp.org>
60178
60179         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
60180
60181         * modules/c-strcaseeq: New file.
60182         * lib/c-strcaseeq.h: New file.
60183
60184         * modules/streq: New file.
60185         * lib/streq.h: New file.
60186
60187 2007-01-23  Bruno Haible  <bruno@clisp.org>
60188
60189         * modules/striconveha-tests: New file.
60190         * tests/test-striconveha.c: New file.
60191
60192         * lib/striconveha.h: Include <stdbool.h>.
60193         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
60194         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
60195         (mem_iconveha_notranslit): Renamed from mem_iconveha.
60196         (mem_iconveha): New function.
60197         (str_iconveha_notranslit): Renamed from str_iconveha.
60198         (str_iconveha): New function.
60199         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
60200         c-strcase.
60201
60202 2007-01-23  Bruno Haible  <bruno@clisp.org>
60203
60204         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
60205         encodings without forgiving before trying any encoding with handler.
60206         (str_iconveha): Try all encodings without forgiving before trying any
60207         encoding with handler.
60208
60209 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
60210
60211         Import the following changes from libc.
60212
60213         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
60214
60215         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
60216
60217         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
60218
60219         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
60220         normal_bracket label.
60221
60222         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
60223
60224         [BZ #361]
60225         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
60226         to normal_bracket after fetching the next character.
60227
60228 2007-01-22  Bruno Haible  <bruno@clisp.org>
60229
60230         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
60231         argument.
60232         * lib/striconveh.c (iconv_carefully_1): New function.
60233         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
60234         argument.
60235         (str_cd_iconveh): Update.
60236         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
60237         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
60238         * tests/test-striconveh.c (MAGIC): New macro.
60239         (new_offsets): New function.
60240         (main): Test call with and without offsets.
60241
60242 2007-01-22  Bruno Haible  <bruno@clisp.org>
60243
60244         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
60245         * modules/sys_select (Makefile.am): Likewise.
60246         * modules/sys_socket (Makefile.am): Likewise.
60247         * modules/sys_time (Makefile.am): Likewise.
60248
60249 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
60250
60251         * modules/gettimeofday (License): Change from GPL to LGPL, since
60252         gettimeofday is a library function.
60253
60254 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
60255
60256         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
60257
60258 2007-01-21  Bruno Haible  <bruno@clisp.org>
60259
60260         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
60261
60262 2007-01-21  Bruno Haible  <bruno@clisp.org>
60263
60264         * modules/striconveha: New file.
60265         * lib/striconveha.h: New file.
60266         * lib/striconveha.c: New file.
60267         * MODULES.html.sh (Internationalization functions): Add striconveha.
60268         * lib/striconv.c (str_iconv): Optimize the case of an empty input
60269         string.
60270         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
60271
60272 2007-01-21  Bruno Haible  <bruno@clisp.org>
60273
60274         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
60275         * lib/striconveh.c (str_iconveh): Likewise.
60276
60277 2007-01-21  Bruno Haible  <bruno@clisp.org>
60278
60279         * lib/striconveh.h (mem_iconveh): New declaration.
60280         * lib/striconveh.c (mem_iconveh): New function.
60281         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
60282
60283 2007-01-21  Bruno Haible  <bruno@clisp.org>
60284
60285         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
60286
60287         * lib/striconveh.h (mem_cd_iconveh): Change specification.
60288         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
60289         original result buffer.
60290         (str_cd_iconveh): Update.
60291         * tests/test-striconveh.c (main): Update.
60292
60293         * lib/striconv.h (mem_cd_iconv): Change specification.
60294         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
60295         result buffer.
60296         (str_cd_iconv): Update.
60297         * tests/test-striconv.c (main): Update.
60298
60299 2007-01-21  Bruno Haible  <bruno@clisp.org>
60300
60301         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
60302
60303 2007-01-20  Jim Meyering  <jim@meyering.net>
60304
60305         * lib/userspec.c (parse_with_separator): If a user or group string
60306         starts with "+", skip the corresponding name-to-ID look-up, since
60307         such a look-up must fail: user and group names may not include "+".
60308
60309 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
60310
60311         * lib/poll.c: Include sys/time.h and time.h unconditionally,
60312         since we now assume the sys_time module.
60313         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
60314         check for sys/time.h; no longer needed.
60315         * modules/poll (Depends-on): Depend on sys_time.
60316
60317 2007-01-18  Bruno Haible  <bruno@clisp.org>
60318
60319         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
60320         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
60321
60322         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
60323         gettimeofday.
60324
60325         * tests/test-gettimeofday.c: Include <time.h>.
60326         (dummy): Remove variable.
60327
60328         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
60329         gl_HEADER_SYS_TIME_H.
60330         (gl_HEADER_SYS_TIME_H): New macro.
60331
60332         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
60333         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
60334         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
60335         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
60336         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
60337         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
60338         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
60339         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
60340         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
60341         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
60342         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
60343
60344         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
60345         last change; it caused a compilation error when cross-compiling to
60346         Cygwin.
60347
60348 2007-01-18  Jim Meyering  <jim@meyering.net>
60349
60350         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
60351         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
60352         than the race-prone "test -d sys || mkdir sys".
60353         (configure.ac): Use AC_PROG_MKDIR_P.
60354         * modules/sys_select: Likewise.
60355         * modules/sys_socket: Likewise.
60356         * modules/sys_time: Likewise.
60357
60358 2007-01-18  Eric Blake  <ebb9@byu.net>
60359
60360         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
60361         replace gettimeofday.
60362         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
60363         name, to avoid infinite recursion.
60364
60365 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
60366
60367         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
60368         module sys_time.
60369         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
60370         assume timespec.h defines struct timeval.
60371         * lib/settime.c: Likewise.
60372         * lib/utimens.c: Likewise.
60373         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
60374         since we now assume the gettimeofday module.
60375         * lib/tempname.c (__gen_tempname): Likewise.
60376         * lib/gettimeofday.h: Remove.
60377         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
60378         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
60379         Include <time.h>, for 'time()'.
60380         (localtime_buffer_addr): Also use this workaround if
60381         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
60382         to simplify the uses.  All uses changed.
60383         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
60384         that #undef is inside {}, and 'const' follows type name consistently.
60385         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
60386         (gettimeofday): Do not use the maximum possible value for
60387         tv->tv_usec, since that might break usages other than ls.c.
60388         Instead, we'll leave ls.c alone.  This undoes today's patch
60389         by Bruno.  Add a compile-time warning for 1s-clock resolution;
60390         we've never observed the problem but might as well keep the
60391         canary.
60392         * lib/nanosleep.c: Include timespec.h first, for interface check.
60393         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
60394         now assume the sys_time module.
60395         * lib/tempname.c: Likewise.
60396         * lib/timespec.h: Likewise.
60397         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
60398         needed.
60399         * lib/strftime.c: Likewise.
60400         * lib/timespec.h: Likewise.
60401         * lib/posixtm.c: Include posixtm.h first, for interface check.
60402         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
60403         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
60404         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
60405         * lib/sys_time_.h: New file.
60406         * lib/timespec.h (struct timespec): Use long int, not long.
60407         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
60408         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
60409         Remove obsolescent call to AC_HEADER_TIME.
60410         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
60411         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
60412         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
60413         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
60414         Likewise.
60415         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
60416         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
60417         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
60418         into the sys_time module.  Check for gettimeofday just once.
60419         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
60420         for gettimeofday signature to just check the signature.  Merely
60421         compile it, since linking doesn't test signature.  Improve test for
60422         whether gettimeofday.o is actually needed.
60423         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
60424         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
60425         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
60426         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
60427         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
60428         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
60429         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
60430         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
60431         than worrying about sys/time.h.
60432         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
60433         Don't bother worrying about TIME_WITH_SYS_TIME.
60434         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
60435         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
60436         * m4/sys_time_h.m4: New file.
60437         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
60438         Don't include sys/time.h.  Return from main rather than exiting.
60439         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
60440         all uses changed.
60441         * modules/gethrxtime (Depends-on): Add sys_time.
60442         * modules/gettime (Depends-on): Likewise.
60443         * modules/gettimeofday (Depends-on): Likewise.
60444         * modules/nanosleep (Depends-on): Likewise.
60445         * modules/settime (Depends-on): Likewise.
60446         * modules/tempname (Depends-on): Likewise.
60447         * modules/utimens (Depends-on): Likewise.
60448         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
60449         (Include): Change back to <sys/time.h>.
60450         (Maintainer): Add self.
60451         * modules/sys_time: New file.
60452         * modules/tempname (Depends-on): Add gettimeofday.
60453         * tests/test-gettimeofday.c: Include <sys/time.h>
60454         rather than gettimeofday.h.
60455
60456 2007-01-17  Bruno Haible  <bruno@clisp.org>
60457
60458         * gnulib-tool (func_get_license): Revert last patch. Instead, let
60459         the license default to GPL.
60460         (func_create_testdir): Don't complain if a module is LGPL and its
60461         tests module depends on GPLed modules.
60462
60463 2007-01-17  Bruno Haible  <bruno@clisp.org>
60464
60465         * lib/gettimeofday.c (gettimeofday): Add code for the case
60466         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
60467         maximum possible value for tv->tv_usec, rather than the minimum one.
60468
60469 2005-10-08  Martin Lambers  <marlam@marlam.de>
60470 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
60471 2007-01-16  Bruno Haible  <bruno@clisp.org>
60472
60473         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
60474         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
60475         gl_FUNC_GETTIMEOFDAY.
60476         (Include): Add gettimeofday.h.
60477         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
60478         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
60479         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
60480         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
60481         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
60482         * lib/gettimeofday.h: New file.
60483         * lib/gettimeofday.c: Include <sys/timeb.h>.
60484         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
60485         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
60486         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
60487         fall back on time().
60488
60489         * tests/test-gettimeofday.c: New file.
60490         * modules/gettimeofday-tests: New file.
60491
60492 2007-01-16  Eric Blake  <ebb9@byu.net>
60493
60494         * modules/fnmatch (Depends-on): Depend on wchar.
60495         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
60496         * m4/fnmatch.m4: Likewise.
60497         * modules/mbchar (Makefile.am): Assume <wchar.h>.
60498         * m4/mbchar.m4: Likewise.
60499         * modules/mbswidth (Depends-on): Depend on wchar.
60500         * lib/mbswidth.c: Assume <wchar.h>.
60501         * m4/mbswidth.m4: Likewise.
60502         * modules/quotearg (Depends-on): Depend on wchar.
60503         * lib/quotearg.c: Assume <wchar.h>.
60504         * m4/quotearg.m4: Likewise.
60505         * modules/regex (Depends-on): Depend on wchar.
60506         * lib/regex_internal.h: Assume <wchar.h>.
60507         * m4/regex.m4: Likewise.
60508         * modules/stdint (Depends-on): Depend on wchar.
60509         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
60510         * m4/stdint.m4: Likewise.
60511         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
60512         * modules/strftime (Depends-on): Depend on wchar.
60513         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
60514         * modules/strtol (Depends-on): Depend on wchar.
60515         * lib/strtol.c: Assume <wchar.h>.
60516         * modules/wcwidth (Depends-on): Depend on wchar.
60517         * lib/wcwidth.h: Assume <wchar.h>.
60518         * m4/wcwidth.m4: Likewise.
60519
60520 2007-01-16  Bruno Haible  <bruno@clisp.org>
60521
60522         * modules/csharpexec-script: New, created from...
60523         * modules/csharpexec: ... this.
60524
60525 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
60526
60527         * modules/javaexec-script: New, created from...
60528         * modules/javaexec: ... this.
60529
60530 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
60531
60532         * modules/poll (Dependencies): Add sys_select.
60533
60534 2007-01-15  Jim Meyering  <jim@meyering.net>
60535
60536         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
60537         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
60538         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
60539         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
60540
60541 2007-01-15  Bruno Haible  <bruno@clisp.org>
60542
60543         * modules/striconveh: New file.
60544         * lib/striconveh.h: New file.
60545         * lib/striconveh.c: New file.
60546         * MODULES.html.sh (Internationalization functions): Add striconveh.
60547
60548         * modules/striconveh-tests: New file.
60549         * tests/test-striconveh.c: New file.
60550
60551 2007-01-15  Bruno Haible  <bruno@clisp.org>
60552
60553         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
60554         not from GNU libiconv or GNU libc.
60555
60556 2007-01-15  Bruno Haible  <bruno@clisp.org>
60557
60558         * doc/gnulib-intro.texi (Copyright): Explain the different license
60559         terms for module descriptions, autoconf macros, tests, documentation.
60560
60561 2007-01-14  Bruno Haible  <bruno@clisp.org>
60562
60563         * modules/striconv-tests: New file.
60564         * tests/test-striconv.c: New file.
60565
60566 2007-01-14  Bruno Haible  <bruno@clisp.org>
60567
60568         * modules/iconv-tests: New file.
60569         * tests/test-iconv.c: New file.
60570
60571 2007-01-14  Bruno Haible  <bruno@clisp.org>
60572
60573         * gnulib-tool (func_get_license): For test modules, use the license of
60574         the main module.
60575
60576 2007-01-14  Bruno Haible  <bruno@clisp.org>
60577
60578         * modules/iconv (Include): Clarify that <iconv.h> can only be included
60579         if iconv is found to exist.
60580
60581 2007-01-14  Bruno Haible  <bruno@clisp.org>
60582
60583         * modules/c-ctype-tests: New file.
60584         * tests/test-c-ctype.c: New file.
60585
60586 2007-01-14  Bruno Haible  <bruno@clisp.org>
60587
60588         * modules/binary-io-tests: New file.
60589         * tests/test-binary-io.sh: New file.
60590         * tests/test-binary-io.c: New file.
60591
60592 2007-01-14  Bruno Haible  <bruno@clisp.org>
60593
60594         * modules/array-oset-tests: New file.
60595         * tests/test-array_oset.c: New file.
60596
60597 2007-01-14  Bruno Haible  <bruno@clisp.org>
60598
60599         * modules/array-list-tests: New file.
60600         * tests/test-array_list.c: New file.
60601
60602 2007-01-14  Bruno Haible  <bruno@clisp.org>
60603
60604         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
60605         and make.
60606         Reported by Simon Josefsson in
60607         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
60608
60609 2007-01-14  Bruno Haible  <bruno@clisp.org>
60610
60611         * modules/allocsa-tests: New file.
60612         * tests/test-allocsa.c: New file.
60613
60614 2007-01-14  Bruno Haible  <bruno@clisp.org>
60615
60616         * modules/fchdir (Depends-on): Add absolute-header.
60617         * modules/unistd (Depends-on): Likewise.
60618
60619 2006-12-30  Bruno Haible  <bruno@clisp.org>
60620
60621         * modules/fchdir: New file.
60622         * modules/unistd (Files): Add lib/unistd_.h.
60623         (Makefile.am): Generate unistd.h from unistd_.h.
60624         * lib/fchdir.c: New file.
60625         * lib/dirent_.h: New file.
60626         * lib/unistd_.h: New file.
60627         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
60628         * m4/fchdir.m4: New file.
60629         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
60630         (gl_HEADER_UNISTD): Invoke it.
60631         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
60632         function.
60633         * lib/backupfile.c (opendir, closedir): Undefine.
60634         * lib/chown.c (open, close): Undefine.
60635         * lib/clean-temp.c (open, close): Undefine.
60636         * lib/copy-file.c (open, close): Undefine.
60637         * lib/execute.c (open, close): Undefine.
60638         * lib/fsusage.c (open, close): Undefine.
60639         * lib/gc-gnulib.c (open, close): Undefine.
60640         * lib/getcwd.c (opendir, closedir): Undefine.
60641         * lib/glob.c (opendir, closedir): Undefine.
60642         * lib/javacomp.c (open, close): Undefine.
60643         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
60644         * lib/openat-proc.c (open, close): Undefine.
60645         * lib/pagealign_alloc.c (open, close): Undefine.
60646         * lib/pipe.c (open, close): Undefine.
60647         * lib/progreloc.c (open, close): Undefine.
60648         * lib/savedir.c (opendir, closedir): Undefine.
60649         * lib/utime.c (open, close): Undefine.
60650         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
60651
60652 2007-01-10  Bruno Haible  <bruno@clisp.org>
60653
60654         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
60655
60656 2007-01-12  Eric Blake  <ebb9@byu.net>
60657
60658         Provide a robust <wchar.h>.  Further simplifications are now
60659         possible in other modules, but not included here.
60660         * modules/wchar: New module.
60661         * m4/wchar.m4: New file.
60662         * lib/wchar_.h: Likewise.
60663         * modules/mbchar (Depends-on): Depend on wchar, as the first use
60664         of the new module.
60665         * MODULES.html.sh (Extended multibyte and wide character utilities):
60666         New section.
60667
60668 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
60669
60670         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
60671         to a reasonable default for memory allocation.
60672         (xreadlink): Don't allocate a huge buffer, to work around a buggy
60673         file system that reports garbage st_size values for symlinks.
60674         Problem reported by Liyang Hu.
60675
60676 2007-01-11  Simon Josefsson  <simon@josefsson.org>
60677
60678         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
60679         Emacs .#* auto-save files).
60680
60681 2007-01-11  Bruno Haible  <bruno@clisp.org>
60682
60683         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
60684         directory.
60685
60686 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
60687
60688         Use @...@ consistently in lib/wctype_.h.
60689         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
60690         on it being set to 1 or 0.
60691         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
60692         go back to AC_SUBSTing it.
60693         * modules/wctype (Makefile.am): Undo previous change.
60694
60695 2007-01-10  Eric Blake  <ebb9@byu.net>
60696
60697         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
60698         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
60699         * modules/wctype (Makefile.am): Likewise.
60700         Reported by Chris McGuire.
60701
60702 2007-01-10  Jim Meyering  <jim@meyering.net>
60703
60704         fts.c: a small readability/maintainability improvement
60705         * lib/fts.c (fts_read): Make this code slightly more readable and
60706         maintainable by hoisting the "sp->fts_cur = p" assignments to
60707         immediately follow the statements that set P.  Derived from
60708         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
60709
60710 2007-01-10  Eric Blake  <ebb9@byu.net>
60711
60712         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
60713         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
60714         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
60715         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
60716         Reported by Chris McGuire.
60717
60718 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60719
60720         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
60721         in sed script.
60722
60723 2007-01-09  Bruno Haible  <bruno@clisp.org>
60724
60725         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
60726         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
60727         variables.
60728         (func_module): Use them.
60729
60730 2007-01-09  Bruno Haible  <bruno@clisp.org>
60731
60732         * modules/unistr/base: New file.
60733         * lib/unistr.h: New file.
60734
60735         * modules/unistr/u8-to-u16: New file.
60736         * lib/unistr/u8-to-u16.c: New file.
60737
60738         * modules/unistr/u8-to-u32: New file.
60739         * lib/unistr/u8-to-u32.c: New file.
60740
60741         * modules/unistr/u16-to-u8: New file.
60742         * lib/unistr/u16-to-u8.c: New file.
60743
60744         * modules/unistr/u16-to-u32: New file.
60745         * lib/unistr/u16-to-u32.c: New file.
60746
60747         * modules/unistr/u32-to-u8: New file.
60748         * lib/unistr/u32-to-u8.c: New file.
60749
60750         * modules/unistr/u32-to-u16: New file.
60751         * lib/unistr/u32-to-u16.c: New file.
60752
60753         * modules/unistr/u8-check: New file.
60754         * modules/unistr/u16-check: New file.
60755         * modules/unistr/u32-check: New file.
60756         * lib/unistr/u8-check.c: New file.
60757         * lib/unistr/u16-check.c: New file.
60758         * lib/unistr/u32-check.c: New file.
60759
60760         * modules/unistr/u8-chr: New file.
60761         * modules/unistr/u16-chr: New file.
60762         * modules/unistr/u32-chr: New file.
60763         * lib/unistr/u8-chr.c: New file.
60764         * lib/unistr/u16-chr.c: New file.
60765         * lib/unistr/u32-chr.c: New file.
60766
60767         * modules/unistr/u8-cmp: New file.
60768         * modules/unistr/u16-cmp: New file.
60769         * modules/unistr/u32-cmp: New file.
60770         * lib/unistr/u8-cmp.c: New file.
60771         * lib/unistr/u16-cmp.c: New file.
60772         * lib/unistr/u32-cmp.c: New file.
60773
60774         * modules/unistr/u8-cpy: New file.
60775         * modules/unistr/u16-cpy: New file.
60776         * modules/unistr/u32-cpy: New file.
60777         * lib/unistr/u8-cpy.c: New file.
60778         * lib/unistr/u16-cpy.c: New file.
60779         * lib/unistr/u32-cpy.c: New file.
60780         * lib/unistr/u-cpy.h: New file.
60781
60782         * modules/unistr/u8-cpy-alloc: New file.
60783         * modules/unistr/u16-cpy-alloc: New file.
60784         * modules/unistr/u32-cpy-alloc: New file.
60785         * lib/unistr/u8-cpy-alloc.c: New file.
60786         * lib/unistr/u16-cpy-alloc.c: New file.
60787         * lib/unistr/u32-cpy-alloc.c: New file.
60788         * lib/unistr/u-cpy-alloc.h: New file.
60789
60790         * modules/unistr/u8-endswith: New file.
60791         * modules/unistr/u16-endswith: New file.
60792         * modules/unistr/u32-endswith: New file.
60793         * lib/unistr/u8-endswith.c: New file.
60794         * lib/unistr/u16-endswith.c: New file.
60795         * lib/unistr/u32-endswith.c: New file.
60796         * lib/unistr/u-endswith.h: New file.
60797
60798         * modules/unistr/u8-mblen: New file.
60799         * modules/unistr/u16-mblen: New file.
60800         * modules/unistr/u32-mblen: New file.
60801         * lib/unistr/u8-mblen.c: New file.
60802         * lib/unistr/u16-mblen.c: New file.
60803         * lib/unistr/u32-mblen.c: New file.
60804
60805         * modules/unistr/u8-mbtouc: New file.
60806         * modules/unistr/u16-mbtouc: New file.
60807         * modules/unistr/u32-mbtouc: New file.
60808         * lib/unistr/u8-mbtouc.c: New file.
60809         * lib/unistr/u16-mbtouc.c: New file.
60810         * lib/unistr/u32-mbtouc.c: New file.
60811
60812         * modules/unistr/u8-mbtouc-safe: New file.
60813         * modules/unistr/u16-mbtouc-safe: New file.
60814         * modules/unistr/u32-mbtouc-safe: New file.
60815         * lib/unistr/u8-mbtouc-safe.c: New file.
60816         * lib/unistr/u16-mbtouc-safe.c: New file.
60817         * lib/unistr/u32-mbtouc-safe.c: New file.
60818
60819         * modules/unistr/u8-move: New file.
60820         * modules/unistr/u16-move: New file.
60821         * modules/unistr/u32-move: New file.
60822         * lib/unistr/u8-move.c: New file.
60823         * lib/unistr/u16-move.c: New file.
60824         * lib/unistr/u32-move.c: New file.
60825         * lib/unistr/u-move.h: New file.
60826
60827         * modules/unistr/u8-next: New file.
60828         * modules/unistr/u16-next: New file.
60829         * modules/unistr/u32-next: New file.
60830         * lib/unistr/u8-next.c: New file.
60831         * lib/unistr/u16-next.c: New file.
60832         * lib/unistr/u32-next.c: New file.
60833
60834         * modules/unistr/u8-prev: New file.
60835         * modules/unistr/u16-prev: New file.
60836         * modules/unistr/u32-prev: New file.
60837         * lib/unistr/u8-prev.c: New file.
60838         * lib/unistr/u16-prev.c: New file.
60839         * lib/unistr/u32-prev.c: New file.
60840
60841         * modules/unistr/u8-set: New file.
60842         * modules/unistr/u16-set: New file.
60843         * modules/unistr/u32-set: New file.
60844         * lib/unistr/u8-set.c: New file.
60845         * lib/unistr/u16-set.c: New file.
60846         * lib/unistr/u32-set.c: New file.
60847         * lib/unistr/u-set.h: New file.
60848
60849         * modules/unistr/u8-startswith: New file.
60850         * modules/unistr/u16-startswith: New file.
60851         * modules/unistr/u32-startswith: New file.
60852         * lib/unistr/u8-startswith.c: New file.
60853         * lib/unistr/u16-startswith.c: New file.
60854         * lib/unistr/u32-startswith.c: New file.
60855         * lib/unistr/u-startswith.h: New file.
60856
60857         * modules/unistr/u8-stpcpy: New file.
60858         * modules/unistr/u16-stpcpy: New file.
60859         * modules/unistr/u32-stpcpy: New file.
60860         * lib/unistr/u8-stpcpy.c: New file.
60861         * lib/unistr/u16-stpcpy.c: New file.
60862         * lib/unistr/u32-stpcpy.c: New file.
60863         * lib/unistr/u-stpcpy.h: New file.
60864
60865         * modules/unistr/u8-stpncpy: New file.
60866         * modules/unistr/u16-stpncpy: New file.
60867         * modules/unistr/u32-stpncpy: New file.
60868         * lib/unistr/u8-stpncpy.c: New file.
60869         * lib/unistr/u16-stpncpy.c: New file.
60870         * lib/unistr/u32-stpncpy.c: New file.
60871         * lib/unistr/u-stpncpy.h: New file.
60872
60873         * modules/unistr/u8-strcat: New file.
60874         * modules/unistr/u16-strcat: New file.
60875         * modules/unistr/u32-strcat: New file.
60876         * lib/unistr/u8-strcat.c: New file.
60877         * lib/unistr/u16-strcat.c: New file.
60878         * lib/unistr/u32-strcat.c: New file.
60879         * lib/unistr/u-strcat.h: New file.
60880
60881         * modules/unistr/u8-strchr: New file.
60882         * modules/unistr/u16-strchr: New file.
60883         * modules/unistr/u32-strchr: New file.
60884         * lib/unistr/u8-strchr.c: New file.
60885         * lib/unistr/u16-strchr.c: New file.
60886         * lib/unistr/u32-strchr.c: New file.
60887
60888         * modules/unistr/u8-strcmp: New file.
60889         * modules/unistr/u16-strcmp: New file.
60890         * modules/unistr/u32-strcmp: New file.
60891         * lib/unistr/u8-strcmp.c: New file.
60892         * lib/unistr/u16-strcmp.c: New file.
60893         * lib/unistr/u32-strcmp.c: New file.
60894
60895         * modules/unistr/u8-strcpy: New file.
60896         * modules/unistr/u16-strcpy: New file.
60897         * modules/unistr/u32-strcpy: New file.
60898         * lib/unistr/u8-strcpy.c: New file.
60899         * lib/unistr/u16-strcpy.c: New file.
60900         * lib/unistr/u32-strcpy.c: New file.
60901         * lib/unistr/u-strcpy.h: New file.
60902
60903         * modules/unistr/u8-strcspn: New file.
60904         * modules/unistr/u16-strcspn: New file.
60905         * modules/unistr/u32-strcspn: New file.
60906         * lib/unistr/u8-strcspn.c: New file.
60907         * lib/unistr/u16-strcspn.c: New file.
60908         * lib/unistr/u32-strcspn.c: New file.
60909         * lib/unistr/u-strcspn.h: New file.
60910
60911         * modules/unistr/u8-strdup: New file.
60912         * modules/unistr/u16-strdup: New file.
60913         * modules/unistr/u32-strdup: New file.
60914         * lib/unistr/u8-strdup.c: New file.
60915         * lib/unistr/u16-strdup.c: New file.
60916         * lib/unistr/u32-strdup.c: New file.
60917         * lib/unistr/u-strdup.h: New file.
60918
60919         * modules/unistr/u8-strlen: New file.
60920         * modules/unistr/u16-strlen: New file.
60921         * modules/unistr/u32-strlen: New file.
60922         * lib/unistr/u8-strlen.c: New file.
60923         * lib/unistr/u16-strlen.c: New file.
60924         * lib/unistr/u32-strlen.c: New file.
60925         * lib/unistr/u-strlen.h: New file.
60926
60927         * modules/unistr/u8-strmblen: New file.
60928         * modules/unistr/u16-strmblen: New file.
60929         * modules/unistr/u32-strmblen: New file.
60930         * lib/unistr/u8-strmblen.c: New file.
60931         * lib/unistr/u16-strmblen.c: New file.
60932         * lib/unistr/u32-strmblen.c: New file.
60933
60934         * modules/unistr/u8-strmbtouc: New file.
60935         * modules/unistr/u16-strmbtouc: New file.
60936         * modules/unistr/u32-strmbtouc: New file.
60937         * lib/unistr/u8-strmbtouc.c: New file.
60938         * lib/unistr/u16-strmbtouc.c: New file.
60939         * lib/unistr/u32-strmbtouc.c: New file.
60940
60941         * modules/unistr/u8-strncat: New file.
60942         * modules/unistr/u16-strncat: New file.
60943         * modules/unistr/u32-strncat: New file.
60944         * lib/unistr/u8-strncat.c: New file.
60945         * lib/unistr/u16-strncat.c: New file.
60946         * lib/unistr/u32-strncat.c: New file.
60947         * lib/unistr/u-strncat.h: New file.
60948
60949         * modules/unistr/u8-strncmp: New file.
60950         * modules/unistr/u16-strncmp: New file.
60951         * modules/unistr/u32-strncmp: New file.
60952         * lib/unistr/u8-strncmp.c: New file.
60953         * lib/unistr/u16-strncmp.c: New file.
60954         * lib/unistr/u32-strncmp.c: New file.
60955
60956         * modules/unistr/u8-strncpy: New file.
60957         * modules/unistr/u16-strncpy: New file.
60958         * modules/unistr/u32-strncpy: New file.
60959         * lib/unistr/u8-strncpy.c: New file.
60960         * lib/unistr/u16-strncpy.c: New file.
60961         * lib/unistr/u32-strncpy.c: New file.
60962         * lib/unistr/u-strncpy.h: New file.
60963
60964         * modules/unistr/u8-strnlen: New file.
60965         * modules/unistr/u16-strnlen: New file.
60966         * modules/unistr/u32-strnlen: New file.
60967         * lib/unistr/u8-strnlen.c: New file.
60968         * lib/unistr/u16-strnlen.c: New file.
60969         * lib/unistr/u32-strnlen.c: New file.
60970         * lib/unistr/u-strnlen.h: New file.
60971
60972         * modules/unistr/u8-strpbrk: New file.
60973         * modules/unistr/u16-strpbrk: New file.
60974         * modules/unistr/u32-strpbrk: New file.
60975         * lib/unistr/u8-strpbrk.c: New file.
60976         * lib/unistr/u16-strpbrk.c: New file.
60977         * lib/unistr/u32-strpbrk.c: New file.
60978         * lib/unistr/u-strpbrk.h: New file.
60979
60980         * modules/unistr/u8-strrchr: New file.
60981         * modules/unistr/u16-strrchr: New file.
60982         * modules/unistr/u32-strrchr: New file.
60983         * lib/unistr/u8-strrchr.c: New file.
60984         * lib/unistr/u16-strrchr.c: New file.
60985         * lib/unistr/u32-strrchr.c: New file.
60986
60987         * modules/unistr/u8-strspn: New file.
60988         * modules/unistr/u16-strspn: New file.
60989         * modules/unistr/u32-strspn: New file.
60990         * lib/unistr/u8-strspn.c: New file.
60991         * lib/unistr/u16-strspn.c: New file.
60992         * lib/unistr/u32-strspn.c: New file.
60993         * lib/unistr/u-strspn.h: New file.
60994
60995         * modules/unistr/u8-strstr: New file.
60996         * modules/unistr/u16-strstr: New file.
60997         * modules/unistr/u32-strstr: New file.
60998         * lib/unistr/u8-strstr.c: New file.
60999         * lib/unistr/u16-strstr.c: New file.
61000         * lib/unistr/u32-strstr.c: New file.
61001         * lib/unistr/u-strstr.h: New file.
61002
61003         * modules/unistr/u8-strtok: New file.
61004         * modules/unistr/u16-strtok: New file.
61005         * modules/unistr/u32-strtok: New file.
61006         * lib/unistr/u8-strtok.c: New file.
61007         * lib/unistr/u16-strtok.c: New file.
61008         * lib/unistr/u32-strtok.c: New file.
61009         * lib/unistr/u-strtok.h: New file.
61010
61011         * modules/unistr/u8-uctomb: New file.
61012         * modules/unistr/u16-uctomb: New file.
61013         * modules/unistr/u32-uctomb: New file.
61014         * lib/unistr/u8-uctomb.c: New file.
61015         * lib/unistr/u16-uctomb.c: New file.
61016         * lib/unistr/u32-uctomb.c: New file.
61017
61018         * MODULES.html.sh (Unicode string functions): Add the new modules.
61019
61020 2007-01-08  Bruno Haible  <bruno@clisp.org>
61021
61022         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
61023         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
61024         subdirectories.
61025
61026 2007-01-08  Karl Berry  <karl@gnu.org>
61027
61028         * doc/error.texi: mention that main() fns must set program_name
61029         when progname is used.
61030
61031 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
61032
61033         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
61034         WCTYPE_H is empty, for the benefit of builds from non-distclean
61035         directories.  Problem reported by Eric Blake in
61036         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
61037
61038 2007-01-08  Bruno Haible  <bruno@clisp.org>
61039
61040         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
61041         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
61042         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
61043         PROVIDE_CANONICALIZE_FILENAME_MODE.
61044         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
61045
61046 2007-01-08  Bruno Haible  <bruno@clisp.org>
61047
61048         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
61049         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
61050         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
61051         * lib/fts.c: Likewise.
61052         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
61053
61054 2006-12-25  Bruno Haible  <bruno@clisp.org>
61055
61056         * modules/utf8-ucs4-safe: New file.
61057         * lib/utf8-ucs4-safe.h: New file.
61058         * lib/unistr/utf8-ucs4-safe.c: New file.
61059
61060         * modules/utf16-ucs4-safe: New file.
61061         * lib/utf16-ucs4-safe.h: New file.
61062         * lib/unistr/utf16-ucs4-safe.c: New file.
61063
61064         * MODULES.html.sh (Unicode string functions): Add the new modules.
61065
61066 2007-01-08  Bruno Haible  <bruno@clisp.org>
61067
61068         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
61069         (Depends-on): Add unitypes.
61070         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
61071         (u8_mbtouc_aux): Move out to separate file.
61072         (u8_mbtouc): Use ucs4_t, uint8_t types.
61073         * lib/unistr/utf8-ucs4.c: New file.
61074
61075         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
61076         (Depends-on): Add unitypes.
61077         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
61078         (u16_mbtouc_aux): Move out to separate file.
61079         (u16_mbtouc): Use ucs4_t, uint16_t types.
61080         * lib/unistr/utf16-ucs4.c: New file.
61081
61082         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
61083         (Depends-on): Add unitypes.
61084         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
61085         (u8_uctomb_aux): Move out to separate file.
61086         (u8_uctomb): Use ucs4_t, uint8_t types.
61087         * lib/unistr/ucs4-utf8.c: New file.
61088
61089         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
61090         (Depends-on): Add unitypes.
61091         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
61092         (u16_uctomb_aux): Move out to separate file.
61093         (u16_uctomb): Use ucs4_t, uint16_t types.
61094         * lib/unistr/ucs4-utf16.c: New file.
61095
61096 2006-12-25  Bruno Haible  <bruno@clisp.org>
61097
61098         * modules/unitypes: New file.
61099         * lib/unitypes.h: New file.
61100         * MODULES.html.sh (func_all_modules): New section "Unicode string
61101         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
61102         this section. Add unitypes.
61103
61104 2007-01-08  Bruno Haible  <bruno@clisp.org>
61105
61106         Avoid variable names that conflict with those from libtool.
61107         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
61108         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
61109         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
61110         library_names_spec to acl_library_names_spec, hardcode_* to
61111         acl_hardcode_*.
61112         Reported by Ralf Wildenhues.
61113
61114 2007-01-08  Bruno Haible  <bruno@clisp.org>
61115
61116         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
61117         definition.
61118         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
61119         definition.
61120         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
61121         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
61122         definition.
61123         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
61124         definition.
61125         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
61126         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
61127         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
61128         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
61129         definition.
61130         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
61131         definition.
61132         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
61133         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
61134         GC_USE_<algorithm>.
61135         * lib/gc-libgcrypt.c: Likewise.
61136         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
61137         * modules/gc-arctwo (configure.ac): Likewise.
61138         * modules/gc-des (configure.ac): Likewise.
61139         * modules/gc-hmac-md5 (configure.ac): Likewise.
61140         * modules/gc-hmac-sha1 (configure.ac): Likewise.
61141         * modules/gc-md2 (configure.ac): Likewise.
61142         * modules/gc-md4 (configure.ac): Likewise.
61143         * modules/gc-md5 (configure.ac): Likewise.
61144         * modules/gc-random (configure.ac): Likewise.
61145         * modules/gc-rijndael (configure.ac): Likewise.
61146         * modules/gc-sha1 (configure.ac): Likewise.
61147
61148 2007-01-08  Bruno Haible  <bruno@clisp.org>
61149
61150         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
61151         macro definition.
61152         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
61153         definition.
61154         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
61155         definition.
61156         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
61157         * modules/fcntl-safer (configure.ac): Likewise.
61158         * modules/fopen-safer (configure.ac): Likewise.
61159         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
61160         GNULIB_FWRITEERROR macro definition.
61161
61162 2007-01-08  Bruno Haible  <bruno@clisp.org>
61163
61164         * m4/gnulib-common.m4: New file.
61165         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
61166         (func_get_filelist): Add m4/gnulib-common.m4.
61167
61168 2007-01-08  Bruno Haible  <bruno@clisp.org>
61169
61170         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
61171         command.
61172
61173 2007-01-08  Jim Meyering  <jim@meyering.net>
61174
61175         Use a more robust test for a "can't happen" condition.
61176         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
61177         narrowed the st_size value.  Presuming the "can't happen" condition
61178         is true, that narrowing could conceivably convert an invalid st_size
61179         value into a valid one.  Instead, use a change based on Matthew
61180         Woehlke's original patch.
61181
61182         Slight readability improvement: use an assert-like macro
61183         in place of literal "abort ()" uses.
61184         * lib/fts.c (fts_assert): Define.
61185         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
61186         Use this macro instead of a bare 'abort'.
61187
61188 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
61189
61190         Don't worry about using IRIX 5.3's wctype.h broken definitions;
61191         simply work around them.
61192         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
61193         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
61194         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
61195         declaring.
61196         Don't bother to define as macros, since the standard doesn't require it.
61197         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
61198         longer worry about IRIX 5.3.
61199         (HAVE_WCTYPE_CTMP_BUG): Remove.
61200
61201 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
61202
61203         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
61204         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
61205         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
61206         Problems reported by Georg Schwarz for IRIX 5.3.
61207
61208         * gnulib-tool (autoconf_minversion): Take the maximum version number
61209         found, not the minimum.  Problem reported by James Youngman.
61210
61211 2007-01-03  Karl Berry  <karl@gnu.org>
61212
61213         * doc/error.texi: new file, explaining interaction with progname.
61214         * doc/gnulib.texi: include it.  Update copyright.
61215
61216 2007-01-03  Simon Josefsson  <simon@josefsson.org>
61217
61218         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
61219         AC_CANONICAL_HOST, to improve autobuild outputs.
61220
61221 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
61222             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
61223
61224         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
61225         sockets, server sockets, and other file descriptors.  Count errors
61226         to compute the return value.  Reorder the code a bit to be easier
61227         to follow.  Don't set event bits that were not requested (except
61228         POLLERR and POLLHUP).
61229
61230 2007-01-01  Bruno Haible  <bruno@clisp.org>
61231
61232         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
61233
61234 2007-01-03  Jim Meyering  <jim@meyering.net>
61235
61236         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
61237
61238 2007-01-02  Bruno Haible  <bruno@clisp.org>
61239
61240         * modules/settime (Include): Require timespec.h.
61241         * modules/nanosleep (Include): Likewise.
61242
61243 2007-01-01  Bruno Haible  <bruno@clisp.org>
61244
61245         * gnulib-tool (func_emit_copyright_notice): Bump year.
61246         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
61247
61248 2007-01-01  Bruno Haible  <bruno@clisp.org>
61249
61250         Improve support for OpenBSD.
61251         * build-aux/config.rpath (libname_spec): Export.
61252         (library_names_spec): New variable. Export.
61253         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
61254         library_names_spec from the config.rpath output. Locate shared library
61255         through the name pattern in library_names_spec.
61256
61257 2007-01-01  Eric Blake  <ebb9@byu.net>
61258
61259         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
61260
61261 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
61262
61263         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
61264         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
61265         assume the C locale, and avoid an "eval" that could cause trouble.
61266         Problem with SORT reported by Bob Proulx.
61267
61268         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
61269         Define.  Trivial patch from Henning Nielsen Lund, originally
61270         sent to bug-grep@gnu.org today.
61271
61272 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
61273
61274         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
61275         struct stat.  Problem reported by Henning Nielsen Lund.
61276         * lib/acl.c: Include acl.h first, to check interface.  Don't
61277         bother to include sys/types.h and sys/stat.h again.
61278
61279 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
61280
61281         Import the following change from libc; problem reported by
61282         Sven Verdoolaege.
61283
61284         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
61285
61286         [BZ #1373]
61287         * lib/argp.h: Remove __NTH for __argp_usage inline function.
61288
61289 2006-12-28  Jim Meyering  <jim@meyering.net>
61290
61291         * build-aux/announce-gen: Do not assume that the package
61292         builds any of tar.gz, tar.bz2, and .xdelta files.
61293         Suggestion from Simon Josefsson.
61294
61295 2006-12-28  Simon Josefsson  <simon@josefsson.org>
61296
61297         * modules/announce-gen: New file.
61298
61299 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
61300
61301         * lib/mbchar.h: Just include <wctype.h>; the wctype module
61302         handles its gotchas now.
61303         * lib/mbswidth.c: Likewise.
61304         * lib/wcwidth.h: Likewise.
61305         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
61306         and iswcntrl; the wctype module does this stuff now.
61307         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
61308         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
61309         * modules/mbchar (Depends-on): Add wctype.
61310         * modules/mbswidth (Depends-on): Likewise.
61311         * modules/wcwidth (Depends-on): Likewise.
61312
61313 2006-12-27  Eric Blake  <ebb9@byu.net>
61314
61315         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
61316         module uses more than what <wctype.h> is required to provide.
61317
61318 2006-12-26  Eric Blake  <ebb9@byu.net>
61319
61320         * gnulib-tool (sed_extract_prog): Avoid space-tab.
61321
61322 2006-12-26  Eric Blake  <ebb9@byu.net>
61323
61324         * modules/absolute-header: New module.
61325         * modules/fcntl (Depends-on): Depend on it.
61326         * modules/inttypes (Depends-on): Likewise.
61327         * modules/stdint (Depends-on): Likewise.
61328         * modules/sys_stat (Depends-on): Likewise.
61329         * modules/wctype (Depends-on): Likewise.
61330         * MODULES.html.sh (Support for building libraries and
61331         executables): Document it.
61332
61333 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
61334
61335         * gnulib-tool (SED): Remove, undoing previous change.
61336         The problem was that it broke coreutils on Solaris, because
61337         "sed --posix" leaked into a makefile.
61338         (sed): New alias, if 'alias' and GNU sed.
61339
61340 2006-12-24  Jim Meyering  <jim@meyering.net>
61341
61342         Work around an fchownat bug in glibc-2.4:
61343         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
61344         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
61345         in spite of the -P option.
61346         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
61347         New macros.
61348         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
61349         * modules/openat (Files): Add lib/fchownat.c.
61350         * lib/openat.c (fchownat): Don't define here.  Move to...
61351         * lib/fchownat.c: ...this new file.
61352
61353 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
61354
61355         Fix bug reported by Bruno Haible in
61356         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
61357         where quotearg.c didn't compile on Mac OS X 10.2 because it
61358         lacks <wchar.h> and wint_t.
61359         * lib/wctype_.h (__wctype_wint_t): New type.
61360         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
61361         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
61362         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
61363         Arg is now of type __wctype_wint_t, not wint_t.
61364         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
61365         substitute HAVE_WINT_T.
61366         * modules/wctype (Files): Add m4/wint_t.m4.
61367         (wctype.h): Substitute HAVE_WINT_T.
61368
61369 2006-12-23  Bruno Haible  <bruno@clisp.org>
61370
61371         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
61372
61373 2006-12-23  Bruno Haible  <bruno@clisp.org>
61374
61375         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
61376         S_ISLNK.
61377         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
61378         mingw.
61379
61380 2006-12-22  Bruno Haible  <bruno@clisp.org>
61381
61382         * lib/copy-file.c: Include acl.h.
61383         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
61384         Close the file descriptors only after being done with copy_acl.
61385         * modules/copy-file (Depends-on): Add acl.
61386
61387 2006-12-22  Bruno Haible  <bruno@clisp.org>
61388
61389         * gnulib-tool (SED): New variable.
61390         Use $SED instead of sed everywhere.
61391
61392 2006-12-22  Bruno Haible  <bruno@clisp.org>
61393
61394         * modules/no-c++: New file.
61395         * m4/no-c++.m4: New file.
61396         * MODULES.html.sh (Support for building libraries and executables):
61397         Add no-c++.
61398
61399 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
61400
61401         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
61402         Include <limits.h>, and use its INT_MAX to rewrite the
61403         j loop so that it does not overflow 'int'.  Problem reported by
61404         Ralf Wildenhues in
61405         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
61406         Play it safe by shifting left by 1 rather than multiplying by 2,
61407         as GCC is less likely to optimize this away when the value
61408         is signed (when it assumes overflow leads to undefined behavior).
61409         Also, don't assume time_t uses two's complement.
61410
61411 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
61412
61413         * MODULES.html.sh: New module wctype.
61414         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
61415         * lib/fnmatch.c: Don't bother to include <wchar.h> before
61416         <wctype.h>, since the new wctype module should fix this.
61417         * lib/quotearg.c: Include <wctype.h> unconditionally, since
61418         the wctype module should arrange for it.
61419         * lib/regex_internal.h: Likewise.
61420         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
61421         since the wctype module should handle this now.
61422         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
61423         * modules/fnmatch (Depends-on): Add wctype.
61424         * modules/quotearg (Depends-on): Likewise.
61425         * modules/regex (Depends-on): Likewise.
61426
61427 2006-12-19  Bruno Haible  <bruno@clisp.org>
61428
61429         * lib/strdup.h [C++]: Wrap definitions in extern "C".
61430         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
61431
61432 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61433
61434         * modules/savewd (Depends-on): Fix dependency on fcntl.
61435
61436 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
61437
61438         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
61439         conforms to C99, rather than relying on the user's environment
61440         setting of STDINT_H.
61441
61442 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
61443         and Eric Blake  <ebb9@byu.net>
61444
61445         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
61446         This is more consistent with the other defines here.
61447         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
61448         Port to z/OS.  Problem reported by Paul Gilmartin.
61449         Change local vars to use gl_ prefix rather than ac_.
61450         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
61451         with other defines.
61452         * modules/double-slash-root: New module.
61453         * modules/dirname (Files): Remove m4/double-slash-root.m4.
61454         (Depends-on): Add double-slash-root.
61455         * MODULES.html.sh (File system functions): Mention new module.
61456
61457 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
61458
61459         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
61460         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
61461         This is for the benefit of gzip, which doesn't do i18n.
61462
61463 2006-12-12  Jim Meyering  <jim@meyering.net>
61464
61465         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
61466         Reported by Andreas Schwab <schwab@suse.de>.
61467
61468 2006-12-12  Bruno Haible  <bruno@clisp.org>
61469
61470         Merge these changes.
61471         2006-09-05  Bruno Haible  <bruno@clisp.org>
61472         * lib/iconvme.c (iconv_string): No need to save and restore errno when
61473         iconv_alloc succeeded.
61474         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
61475         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
61476         test for " && dest " at the end - dest is always != NULL there. Call
61477         iconv with 4xNULL arguments initially, to reset the state. Call iconv
61478         with 2xNULL arguments, also to flush the state storage. Handle the
61479         IRIX iconv behaviour. Realloc the final result, to throw away unused
61480         memory.
61481
61482 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
61483
61484         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
61485         and fchmodat unconditionally, since glibc 2.4 has them.
61486         Problem reported by Arkadiusz Miskiewicz.
61487
61488 2006-12-10  Bruno Haible  <bruno@clisp.org>
61489
61490         * gnulib-tool (func_import): Show the include files only for those
61491         modules that are copied and specified.
61492         Reported by Karl Berry.
61493
61494 2006-12-08  Jim Meyering  <jim@meyering.net>
61495
61496         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
61497         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
61498
61499         * build-aux/announce-gen: Add two new options, both optional:
61500         --bootstrap-tools=TOOL_LIST
61501               a comma-separated list of tools, e.g.,
61502               autoconf,automake,bison,gnulib
61503         --gnulib-snapshot-date=DATE
61504               if gnulib is in the bootstrap tool list,
61505               then report this as the snapshot date.
61506               If not specified, use the current date/time.
61507               If you specify a date here, be sure it's UTC.
61508
61509 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61510
61511         * tests/test-argp-2.sh: Fix test to match actual output.
61512         (func_compare): Fix sed script to be portable.
61513
61514 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
61515
61516         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
61517         workaround for this case.  It is not autoconfigured now; offhand
61518         it's hard to see how to autoconfigure it.
61519
61520 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
61521
61522         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
61523         a directory that is about to be chowned.  Such a directory's
61524         initial file permissions should permit the owner only and this
61525         should not be changed until after the chown, since the group and
61526         other bits would be incorrect if they granted permission before
61527         the chown.
61528
61529         Fix porting problem for iswctype reported by Georg Schwarz in:
61530         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
61531         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
61532         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
61533         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
61534         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
61535
61536 2006-12-03  Jim Meyering  <jim@meyering.net>
61537
61538         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
61539         p->fts_statp may not yet be defined.
61540         (fts_read): Instead, set it in the caller, once p->fts_statp is
61541         sure to be defined, and corresponds to a top-level directory.
61542         This bug made du -x fail.  Here's the coreutils test case:
61543         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
61544         Reported by Mike Frysinger.
61545
61546 2006-12-01  Jim Meyering  <jim@meyering.net>
61547
61548         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
61549         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
61550         Reported by Simon Josefsson.
61551
61552 2006-11-30  Jim Meyering  <jim@meyering.net>
61553
61554         * m4/warning.m4: Use the all-permissive copyright notice
61555         recommended by RMS (rather than LGPL).
61556         * m4/vararrays.m4: Likewise.
61557         * m4/flexmember.m4: Likewise.
61558
61559 2006-11-29  Bruno Haible  <bruno@clisp.org>
61560
61561         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
61562         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
61563         using +=.
61564         Reported by Simon Josefsson <simon@josefsson.org>.
61565
61566 2006-11-28  James Youngman <jay@gnu.org>
61567
61568         * README: Advise users that they might find the bug-gnulib@gnu.org
61569         and autotools-announce@gnu.org mailing lists useful.
61570
61571 2006-11-28  Bruno Haible  <bruno@clisp.org>
61572
61573         * m4/ptrdiff_max.m4: Remove file.
61574
61575 2006-11-21  Bruno Haible  <bruno@clisp.org>
61576
61577         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
61578         _AC_COMPUTE_INT.
61579         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
61580         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
61581         _AC_COMPUTE_INT.
61582         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
61583         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
61584         _AC_COMPUTE_INT.
61585         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
61586
61587 2006-11-28  Jim Meyering  <jim@meyering.net>
61588
61589         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
61590         warning from "gcc -Wshadow" about shadowing the builtin.
61591
61592 2006-11-27  Bruno Haible  <bruno@clisp.org>
61593
61594         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
61595         _AC_COMPUTE_INT.
61596         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
61597
61598 2006-11-27  Bruno Haible  <bruno@clisp.org>
61599             Paul Eggert  <eggert@cs.ucla.edu>
61600
61601         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
61602
61603 2006-11-26  Bruno Haible  <bruno@clisp.org>
61604
61605         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
61606         noinst_LTLIBRARIES.
61607
61608 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
61609             Bruno Haible  <bruno@clisp.org>
61610
61611         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
61612         if compiling with "gcc -ansi".
61613
61614 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
61615
61616         Fix some incompatibilities with gcc -ansi -pedantic.
61617         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
61618         if compiling pedantically with GCC, unless it's C99 or later.
61619         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
61620         it mishandles gcc -ansi -pedantic as well.
61621         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
61622         if gcc -pedantic.
61623         * lib/regexec.c (check_node_accept_bytes): Don't use auto
61624         initializers for struct if -pedantic, unless it's C99 or later.
61625
61626 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
61627
61628         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
61629         Don't close an fd more than once. Identical atimes indicate
61630         success, not failure.
61631
61632 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
61633
61634         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
61635
61636 2006-11-23  Jim Meyering  <jim@meyering.net>
61637
61638         * build-aux/announce-gen: New file.  From coreutils.
61639
61640 2006-11-22  Jim Meyering  <jim@meyering.net>
61641
61642         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
61643         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
61644         (fts_read): Use a temporary to narrow the overused st_size member
61645         before using it in a switch statement.  Reported by Matthew Woehlke.
61646
61647         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
61648         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
61649
61650 2006-11-20  Bruno Haible  <bruno@clisp.org>
61651
61652         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
61653         changequote instead of pairs of brackets.
61654         Reported by Andreas Schwab <schwab@suse.de>.
61655
61656 2006-11-21  Jim Meyering  <jim@meyering.net>
61657
61658         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
61659         so as to remain compatible with older compilers.
61660         Patch from Michael Deutschmann.
61661
61662 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
61663
61664         * MODULES.html.sh (File system functions): Add openat.
61665
61666         * lib/openat.h (rpl_fstatat): New macro, if
61667         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
61668         (fstatat): Define to rpl_fstatat under the same conditions,
61669         unless COMPILING_FSTATAT.
61670         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
61671         seems to have the bug.
61672         * lib/fstatat.c: New file.
61673         * modules/openat (Files): Add it.
61674
61675 2006-11-20  Bruno Haible  <bruno@clisp.org>
61676
61677         * Makefile: New file.
61678
61679 2006-11-20  Jim Meyering  <jim@meyering.net>
61680
61681         The beginnings of syntax-related checks for gnulib.
61682         * lib/Makefile: New file.
61683         * lib/t-idcache: New script.  Ensure that the two halves of
61684         idcache.c stay in sync.
61685
61686         * lib/idcache.c: Adjust comments in user- and group- portions to
61687         be more accurate, and to be consistent with one another.
61688
61689 2006-11-20  Jim Meyering  <jim@meyering.net>
61690
61691         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
61692         continue using the flexible array member (thus, this module performs
61693         half as many malloc calls), with the addition that...
61694         (getgroup, getuser): Consistently record a non-match via an empty
61695         "name" string, and map an empty string match to a NULL return value.
61696         * modules/idcache (Depends-on): Re-add flexmember.
61697
61698         * lib/idcache.c (getuser): Remove all uses of the register keyword.
61699         (getuidbyname, getgroup, getgidbyname): Likewise.
61700
61701         Use cleaner syntax: NULL rather than 0.
61702         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
61703
61704 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
61705
61706         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
61707         It mishandled the case where the group was missing.
61708         Problem reported by Greg Schafer.
61709         * modules/idcache: Likewise.
61710
61711 2006-11-18  Jim Meyering  <jim@meyering.net>
61712
61713         * check-module (%exempt_header): Add exception for some
61714         conditionally-included headers.
61715
61716         * modules/i-ring (Depends-on): Add verify.
61717         (License): Change to LGPL.
61718
61719 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
61720
61721         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
61722         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
61723         and inttostr.h.  Use snprintf rather than uinttostr, so that
61724         LGPLed code doesn't depend on GPLed.
61725
61726 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
61727
61728         * modules/inline (License): Change from GPL to LGPL.
61729
61730 2006-11-17  Jim Meyering  <jim@meyering.net>
61731
61732         * modules/d-type (License): Switch to LGPL.
61733
61734 2006-11-15  Bruno Haible  <bruno@clisp.org>
61735
61736         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
61737
61738 2006-11-15  Eric Blake  <ebb9@byu.net>
61739
61740         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
61741         the module dependency.
61742
61743 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
61744             Bruno Haible  <bruno@clisp.org>
61745
61746         * gnulib-tool (func_create_testdir): Add license consistency check.
61747
61748 2006-11-15  Eric Blake  <ebb9@byu.net>
61749
61750         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
61751         random "(cached)" in configure output.
61752
61753 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61754
61755         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
61756         test for conforming inttypes.h is both announced and cached.
61757
61758         * MODULES.html.sh (seen_modules, seen_files): New variables.
61759         (func_module): Rewrite to use a few less gnulib-tool and sed
61760         invocations.  Avoid a couple of quadratic algorithms for ...
61761         (missed_modules, missed_files): ... these, with ...
61762         (func_append, func_tmpdir): ... these new functions, from
61763         gnulib-tool.  Analogously, install traps for cleanup.
61764
61765         * tests/test-gc.c (main): Remove unused variables.
61766         * tests/test-read-file.c: Include stdlib.h, for 'free'.
61767
61768 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
61769
61770         * modules/inttostr (License): Change to LGPL.
61771
61772 2006-11-14  Eric Blake  <ebb9@byu.net>
61773
61774         * modules/tempname (License): Change to LGPL.
61775
61776 2006-11-14  Eric Blake  <ebb9@byu.net>
61777
61778         * doc/functions.texi (Function Portability): *printf functions on
61779         Cygwin now understand all POSIX size specifiers.
61780
61781 2006-11-14  Bruno Haible  <bruno@clisp.org>
61782
61783         * modules/c-ctype (License): Change to LGPL.
61784
61785 2006-11-12  Bruno Haible  <bruno@clisp.org>
61786
61787         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
61788         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
61789         for GNOME libraries, for which the include files are installed in
61790         subdirectories of $prefix/include.
61791
61792 2006-11-12  Bruno Haible  <bruno@clisp.org>
61793
61794         * m4/lib-link.m4: Require at least autoconf-2.54.
61795         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
61796         name to underscores for the --with option.
61797
61798 2006-11-13  Bruno Haible  <bruno@clisp.org>
61799
61800         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
61801         the tests directory.
61802         Reported by Ralf Wildenhues.
61803
61804 2006-11-13  Bruno Haible  <bruno@clisp.org>
61805
61806         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
61807         (func_emit_initmacro_end): Undo the override here.
61808         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
61809         Works around the famous automake error in coreutils.
61810
61811 2006-11-13  Eric Blake  <ebb9@byu.net>
61812
61813         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
61814         element, not its node.
61815
61816 2006-11-12  Bruno Haible  <bruno@clisp.org>
61817
61818         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
61819         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
61820
61821 2006-11-12  Bruno Haible  <bruno@clisp.org>
61822
61823         * gnulib-tool: New option --local-symlink.
61824         (func_usage): Document it.
61825         (lsymbolic): New variable.
61826         (func_import, func_create_testdir): If --symlink was not specified,
61827         test whether --local-symlink was specified and the file comes from
61828         the local_gnulib_dir.
61829
61830 2006-11-12  Bruno Haible  <bruno@clisp.org>
61831
61832         * gnulib-tool (func_ln): New function.
61833         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
61834
61835 2006-11-12  Bruno Haible  <bruno@clisp.org>
61836
61837         Finish support for source files in subdirectories.
61838         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
61839         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
61840         AUTOMAKE_OPTIONS.
61841         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
61842
61843 2006-11-12  Bruno Haible  <bruno@clisp.org>
61844
61845         * gnulib-tool (func_get_automake_snippet): Synthesize also an
61846         EXTRA_lib_SOURCES augmentation.
61847         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
61848
61849 2006-11-12  Jim Meyering  <jim@meyering.net>
61850
61851         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
61852         file descriptors.  This also averts a failure on systems with
61853         native openat support when a traversed directory lacks "x" access.
61854         * lib/fts_.h: Include "i-ring.h"
61855         (struct FTS) [fts_fd_ring]: New member.
61856         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
61857         (FCHDIR): Add parentheses.
61858         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
61859         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
61860         When descending, rather than simply closing the previous
61861         fts_cwd_fd value, push that file descriptor onto the ring.
61862         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
61863         (fts_open): Initialize the new fd_ring member.
61864         (fts_close): Clear the ring.
61865         (fts_safe_changedir): When possible, use our new fd_ring to skip
61866         the diropen and fstat and dev/ino comparison that would normally
61867         accompany a virtual `chdir ("..")'.
61868
61869         * modules/fts (Depends-on): Add i-ring.
61870         * modules/i-ring: New module.
61871         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
61872         * m4/i-ring.m4: New file.
61873
61874 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61875
61876         * gnulib-tool (func_create_testdir): Fix replacement of
61877         `build-aux' in configure.ac.  Run autotools in gltests
61878         subdirectory.
61879         (func_create_testdir, func_create_megatestdir, test): There is
61880         no need for '--force' in most autotool invocations in a new
61881         tree.  Actually fail the whole test if any of the tools, or the
61882         configure or make stages fail.
61883
61884         Sync from Automake.
61885         * build-aux/gnupload: Revert last change.  Add pointer to upload
61886         instructions of the GNU Maintenance Instructions.
61887         Suggestion by Karl Berry.
61888
61889 2006-11-10  Jim Meyering  <jim@meyering.net>
61890
61891         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
61892
61893 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
61894
61895         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
61896         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
61897         (bind_textdomain_codeset) [! ENABLE_NLS]:
61898         Evaluate all the arguments.  That way, callers get compatible behavior
61899         if the arguments have side effects.  Also, it avoids some GCC
61900         diagnostics in some cases; Joel E. Denny reported problems when Bison
61901         was configured with --enable-gcc-warnigs.
61902
61903 2006-11-10  Jim Meyering  <jim@meyering.net>
61904
61905         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
61906         relevant options in CFLAGS (like -O, -fno-inline) are taken into
61907         account.
61908
61909 2006-11-10  Jim Meyering  <jim@meyering.net>
61910
61911         * modules/inline: New file/module.
61912         * modules/xalloc (Files): Remove m4/inline.m4.
61913         (Depends-on): Add inline, instead.
61914         * modules/oset: Likewise.
61915         * modules/list: Likewise.
61916
61917 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
61918
61919         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
61920         Problem reported by Matthew Woehlke.
61921
61922 2006-11-09  Bruno Haible  <bruno@clisp.org>
61923
61924         * lib/tempname.c (gen_tempname): Remove variant that invokes
61925         __gen_tempname.
61926         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
61927         __gen_tempname.
61928
61929 2006-11-08  Bruno Haible  <bruno@clisp.org>
61930
61931         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
61932         to 'yes' instead of 'cross-compiling'.
61933
61934 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
61935
61936         * lib/quotearg.h (quotearg_free): New decl.
61937         * lib/quotearg.c (quotearg_free): New function.
61938         (slot0, nslots, slotvec0, slotvec):
61939         Now file-scope so that quotearg_free can get at them.
61940
61941 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61942
61943         Sync from Automake.
61944         * build-aux/gnupload: Add missing 'gnu' to example URL.
61945         Report by Karl Berry.
61946
61947 2006-11-08  Bruno Haible  <bruno@clisp.org>
61948
61949         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
61950         Suggested by Paul Eggert.
61951
61952 2006-11-08  Jim Meyering  <jim@meyering.net>
61953
61954         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
61955         It's already included if !_LIBC.
61956         (fts_safe_changedir): Add a comment.
61957
61958 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
61959
61960         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
61961         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
61962         Matthew Woehlke.
61963
61964         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
61965         definitions up, to avoid colliding with change below.
61966         (static_inline) [HAVE_INLINE]: New macro.
61967         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
61968         Provide extern decls when !HAVE_INLINE.  Do not define unless
61969         static_inline is defined, either by us or by xmalloc.c.  Use
61970         static_inline rather than static inline.
61971         (XCALLOC): Optimize sizeof(T) = 1 case.
61972         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
61973
61974 2006-11-07  Bruno Haible  <bruno@clisp.org>
61975
61976         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
61977         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
61978         AC_C_INLINE.
61979         * modules/xalloc (Files): Add m4/inline.m4.
61980
61981 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61982
61983         * README: Fix typo.
61984         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
61985         (Miscellanous Notes): ...from this.
61986
61987 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
61988
61989         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
61990         Mention that offsetof should be used instead of sizeof.
61991         From Bruno Haible.
61992
61993 2006-11-07  Bruno Haible  <bruno@clisp.org>
61994
61995         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
61996
61997 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
61998
61999         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
62000         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
62001         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
62002         (gl_tree_add_before, gl_tree_add_after):
62003         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
62004         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
62005         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
62006         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
62007         (gl_linked_add_after, gl_linked_add_at): Likewise.
62008         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
62009         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
62010         (gl_tree_add_before, gl_tree_add_after): Likewise.
62011         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
62012         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
62013         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
62014
62015 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62016
62017         * lib/gl_oset.h: Use C comment style, not C++ comment style.
62018
62019 2006-11-06  Bruno Haible  <bruno@clisp.org>
62020
62021         * m4/inline.m4: New file.
62022         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
62023         * modules/list (Files): Add m4/inline.m4.
62024         * modules/oset (Files): Likewise.
62025
62026 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
62027
62028         * lib/idcache.c: Include <stddef.h>, for offsetof.
62029         (struct userid.name): Change from char * to a flexible array member.
62030         All uses changed.
62031         * modules/idcache (Depends-on): Add flexmember.
62032
62033         * MODULES.html.sh (Core language properties): New module flexmember.
62034         * modules/flexmember, m4/flexmember.m4: New files.
62035
62036         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
62037         inline functions that are identical with the old xnmalloc_inline,
62038         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
62039         that we can avoid some unnecessary integer multiplications and
62040         divisions in the common case where the element size is known at
62041         compile time.
62042         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
62043         needed.
62044         (xnboundedmalloc): Remove.
62045         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
62046         arguments, for consistency with rest of this header.
62047         (xcharalloc): Rewrite using XNMALLOC.
62048         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
62049         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
62050         versions have been moved to lib/xalloc.h and renamed to be the
62051         non-*_inline versions.
62052         (xmalloc, xrealloc): Implement without reference to the xnmalloc
62053         and xnrealloc functions, since those functions are now inline and
62054         now call us.
62055         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
62056         renaming described above.
62057         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
62058         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
62059         captures the dependency in AC_C_INLINE.
62060
62061         New module canonicalize-lgpl, proposed by Charles Wilson in
62062         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
62063         with a few small changes afterwards.
62064         * MODULES.html.sh (File system functions): New module
62065         canonicalize-lgpl.
62066         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
62067         and canonicalize_file_name.
62068         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
62069         * modules/canonicalize-lgpl: New files.
62070
62071 2006-11-05  Bruno Haible  <bruno@clisp.org>
62072
62073         * gnulib-tool (func_import, func_create_testdir): Create directories
62074         also for files in subdirectories of lib/.
62075
62076 2006-11-05  Bruno Haible  <bruno@clisp.org>
62077
62078         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
62079         ANSI C compliant.
62080
62081 2006-11-03  Bruno Haible  <bruno@clisp.org>
62082
62083         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
62084         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
62085         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
62086         (xnboundedmalloc): New inline function.
62087         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
62088         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
62089         xmalloc.
62090         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
62091         xmalloc.
62092         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
62093         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
62094         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
62095         xmalloc.
62096         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
62097         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
62098         xmalloc.
62099         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
62100         gl_tree_add_after): Use XMALLOC instead of xmalloc.
62101         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
62102         xmalloc.
62103         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
62104         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
62105         gl_tree_add_after): Use XMALLOC instead of xmalloc.
62106         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
62107         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
62108         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
62109         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
62110
62111 2006-11-03  Bruno Haible  <bruno@clisp.org>
62112
62113         * lib/c-ctype.h [C++]: Define functions without name mangling.
62114         * lib/fwriteerror.h [C++]: Likewise.
62115         * lib/gcd.h [C++]: Likewise.
62116         * lib/linebreak.h [C++]: Likewise.
62117
62118 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
62119
62120         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
62121         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
62122         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
62123         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
62124         Check for functions and headers just once.
62125         Check for declaration of canonicalize_file_name.
62126         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
62127
62128 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
62129
62130         * gnulib-tool (func_import): Fix typo in actioncmd.
62131
62132 2006-11-02  Bruno Haible  <bruno@clisp.org>
62133
62134         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
62135         newline sequence in the Makefile.am snippet as a space, like "make"
62136         does.
62137         Reported by Roger Persson <perrog@gmail.com>.
62138
62139 2006-11-01  Bruno Haible  <bruno@clisp.org>
62140
62141         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
62142         already declared in <string.h>.
62143         * lib/strcase.h (strncasecmp): Don't declare it if yes.
62144
62145 2006-11-01  Bruno Haible  <bruno@clisp.org>
62146
62147         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
62148         * lib/strcase.h: Include <string.h>.
62149         (strcasecmp): Define to rpl_strcasecmp here.
62150
62151 2006-11-01  Bruno Haible  <bruno@clisp.org>
62152
62153         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
62154
62155 2006-11-01  Eric Blake  <ebb9@byu.net>
62156
62157         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
62158
62159         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
62160
62161 2006-10-29  Bruno Haible  <bruno@clisp.org>
62162
62163         Make it compile in C++ mode.
62164         * lib/full-write.c (full_rw): Add a cast.
62165
62166 2006-11-01  Bruno Haible  <bruno@clisp.org>
62167
62168         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
62169         be POSIX compliant.
62170         Reported by Roger Persson <perrog@gmail.com>.
62171
62172 2006-11-01  Eric Blake  <ebb9@byu.net>
62173
62174         * lib/getopt_.h: Fix comments.
62175
62176 2006-10-31  Eric Blake  <ebb9@byu.net>
62177
62178         * modules/tmpdir (Depends-on): Add sys_stat.
62179         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
62180         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
62181         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
62182         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
62183         tempname.
62184
62185 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
62186
62187         Avoid some C++ diagnostics reported by Bruno Haible.
62188         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
62189         xmalloc.
62190         (quotearg_alloc): Use xcharalloc rather than xmalloc.
62191         (struct slotvec): Move to top level.
62192         (quotearg_n_options): Rewrite to avoid xmalloc.
62193         * lib/xalloc.h (xcharalloc): New function.
62194         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
62195         [defined __cplusplus]: Add function template that provides result
62196         type propagation.  This part of the change is from Bruno Haible.
62197
62198 2006-10-29  Bruno Haible  <bruno@clisp.org>
62199
62200         Make it compile in C++ mode.
62201         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
62202         * lib/strnlen1.c (strnlen1): Cast memchr result.
62203         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
62204         * lib/clean-temp.c (string_equals, string_hash): Add casts.
62205         (create_temp_dir): Rename local variable 'template'.
62206         (compile_csharp_using_sscli): Add cast.
62207         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
62208         * lib/findprog.c (find_in_path): Likewise.
62209         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
62210         * lib/wait-process.c (register_slave_subprocess): Likewise.
62211
62212 2006-10-22  Bruno Haible  <bruno@clisp.org>
62213
62214         * modules/tsearch: New file.
62215         * lib/tsearch.h: New file.
62216         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
62217         * m4/tsearch.m4: New file.
62218         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
62219
62220 2006-10-29  Eric Blake  <ebb9@byu.net>
62221
62222         * lib/arcfour.c: Assume config.h.
62223         * lib/arctwo.c: Likewise.
62224         * lib/base64.c: Likewise.
62225         * lib/check-version.c: Likewise.
62226         * lib/crc.c: Likewise.
62227         * lib/des.c: Likewise.
62228         * lib/gc-gnulib.c: Likewise.
62229         * lib/gc-libgcrypt.c: Likewise.
62230         * lib/gc-pbkdf2-sha1.c: Likewise.
62231         * lib/getaddrinfo.c: Likewise.
62232         * lib/getdelim.c: Likewise.
62233         * lib/getline.c: Likewise.
62234         * lib/hmac-md5.c: Likewise.
62235         * lib/hmac-sha1.c: Likewise.
62236         * lib/iconvme.c: Likewise.
62237         * lib/md2.c: Likewise.
62238         * lib/md4.c: Likewise.
62239         * lib/memxor.c: Likewise.
62240         * lib/read-file.c: Likewise.
62241         * lib/readline.c: Likewise.
62242         * lib/rijndael-alg-fst.c: Likewise.
62243         * lib/rijndael-api-fst.c: Likewise.
62244         * lib/xgetdomainname.c: Likewise.
62245
62246 2006-10-28  Eric Blake  <ebb9@byu.net>
62247
62248         * lib/xstrndup.c: Assume config.h.
62249
62250 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
62251
62252         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
62253         stat-macros.h is now for our own macros, whereas stat_h is for
62254         macros in the <sys/stat.h> name space.
62255         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
62256         (STAT_MACROS_H): Remove.
62257         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
62258         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
62259         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
62260         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
62261         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
62262         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
62263         Move these macros to ...
62264         * lib/stat_.h: here.  Don't include stat-macros.h.
62265         * lib/canonicalize.c: Don't include stat-macros.h.
62266         * lib/chown.c: Likewise.
62267         * lib/euidaccess.c: Likewise.
62268         * lib/file-type.c: Likewise.
62269         * lib/filemode.c: Likewise.
62270         * lib/glob.c: Likewise.
62271         * lib/isapipe.c: Likewise.
62272         * lib/lchown.c: Likewise.
62273         * lib/lstat.c: Likewise.
62274         * lib/mkdir-p.c: Likewise.
62275         * lib/rmdir.c: Likewise.
62276         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
62277         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
62278         unless mkdir isn't declared, to speed up 'configure'.
62279         Always create sys/stat.h, since it's unlikely any real sys/stat.h
62280         would define all the S_* symbols.
62281         * modules/canonicalize (Depends-on):
62282         Depend on sys_stat, not stat-macros.
62283         * modules/chown: Likewise.
62284         * modules/euidaccess: Likewise.
62285         * modules/filemode: Likewise.
62286         * modules/file-type: Likewise.
62287         * modules/glob: Likewise.
62288         * modules/isapipe: Likewise.
62289         * modules/lchown: Likewise.
62290         * modules/lstat: Likewise.
62291         * modules/mkancesdirs: Likewise.
62292         * modules/rmdir: Likewise.
62293         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
62294         * modules/modechange: Likewise.
62295         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
62296         (configure.ac): Remove gl_STAT_MACROS.
62297         * modules/sys_stat (Depends-on): Remove stat-macros.
62298
62299 2006-10-27  Bruno Haible  <bruno@clisp.org>
62300
62301         * m4/signed.m4: Remove file.
62302         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
62303         invocation.
62304         * modules/vasnprintf (Files): Remove m4/signed.m4.
62305
62306 2006-10-27  Bruno Haible  <bruno@clisp.org>
62307
62308         Update to GNU gettext 0.16.
62309         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
62310         m4/inttypes-h.m4, m4/signed.m4.
62311         * m4/gettext.m4: Update to GNU gettext 0.16.
62312         * m4/intl.m4: New file, from GNU gettext.
62313         * m4/intldir.m4: New file, from GNU gettext.
62314         * config/srclist.txt: Update
62315
62316 2006-10-27  Eric Blake  <ebb9@byu.net>
62317
62318         * MODULES.html.sh: Document tempname.
62319         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
62320         dependencies.
62321         (Files): Move lib/tempname.c...
62322         * modules/tempname: ...to this new module.
62323         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
62324         (gl_PREREQ_TEMPNAME): Move...
62325         * m4/tempname.m4: ...to this new file.
62326         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
62327         * modules/sys_stat (Depends-on): Add stat-macros.
62328         * lib/stat_.h (includes): Pick up stat macros.
62329         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
62330         if stat macros are broken.
62331         * lib/tempname.c (includes): No need to include "stat-macros.h".
62332         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
62333         (direxists, __path_search) [!_LIBC]: Don't compile these in
62334         gnulib; the tmpdir module covers that.
62335         * lib/tempname.h: New file.
62336
62337 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
62338
62339         * COPYING: Explain how gnulib-tool converts licence headers.
62340         Almost all wording by Eric Blake.
62341
62342 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
62343
62344         * lib/mbchar.h (is_basic_table): Make read-only.
62345         * lib/mbchar.c (is_basic_table): Likewise.
62346         Reported by John Darrington.
62347
62348 2006-10-25  Bruno Haible  <bruno@clisp.org>
62349
62350         * lib/progname.h (set_program_name): Undefine before defining.
62351
62352 2006-10-25  Bruno Haible  <bruno@clisp.org>
62353
62354         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
62355         false for non-gcc C++ compilers.
62356         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
62357
62358 2006-10-24  Bruno Haible  <bruno@clisp.org>
62359
62360         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
62361         iconv implementations like Irix iconv.
62362
62363 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
62364
62365         * modules/vararrays: New file.
62366         * m4/vararrays.m4: New file, taken from diffutils.
62367         * MODULES.html.sh: New module vararrays.
62368
62369 2006-10-24  Karl Berry  <karl@gnu.org>
62370
62371         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
62372         Don't call GNU Unix.
62373
62374 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62375
62376         * users.txt: Add Libtool.
62377
62378         Sync from Libtool:
62379
62380         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
62381
62382         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
62383         to gnulib's policy of including config.h unconditionally.
62384
62385 2006-10-24  Bruno Haible  <bruno@clisp.org>
62386
62387         * modules/wcwidth (Files): Add m4/wint_t.m4.
62388         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
62389         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
62390
62391 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
62392
62393         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
62394         to pacify GCC with some -W flags enabled.  Problem reported by
62395         Bruno Haible.
62396
62397 2006-10-24  Jim Meyering  <jim@meyering.net>
62398
62399         * MODULES.html.sh: Remove uinttostr.  It's not a module.
62400         Reported by Karl Berry.
62401
62402 2006-10-23  Bruno Haible  <bruno@clisp.org>
62403
62404         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
62405
62406 2006-10-24  Bruno Haible  <bruno@clisp.org>
62407
62408         * lib/gl_list.h: Use C comment style, not C++ comment style.
62409
62410 2006-10-23  Eric Blake  <ebb9@byu.net>
62411
62412         * lib/getaddrinfo.c (includes): Add missing include.
62413
62414 2006-10-23  Bruno Haible  <bruno@clisp.org>
62415             Paul Eggert  <eggert@cs.ucla.edu>
62416
62417         Ability to rename obstack_free.
62418         * lib/obstack.h (__obstack_free): New macro. Declare instead of
62419         obstack_free.
62420         (obstack_free): Invoke the __obstack_free macro.
62421         * lib/obstack.c (obstack_free): Use __obstack_free macro.
62422
62423 2006-10-23  Bruno Haible  <bruno@clisp.org>
62424             Paul Eggert  <eggert@cs.ucla.edu>
62425
62426         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
62427         __argc, __argv from the declaration. (They are defined as macros on
62428         mingw.)
62429
62430 2006-10-22  Bruno Haible  <bruno@clisp.org>
62431
62432         * doc/gnulib-intro.texi: New file.
62433         * doc/gnulib.texi: Include it.
62434
62435 2006-10-21  Bruno Haible  <bruno@clisp.org>
62436
62437         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
62438         "Introduction", "Miscellanous Notes", "Particular Modules".
62439
62440 2006-10-21  Bruno Haible  <bruno@clisp.org>
62441
62442         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
62443         Change mostlyclean-local rule to avoid sh syntax error from bash
62444         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
62445
62446 2006-10-23  Jim Meyering  <jim@meyering.net>
62447
62448         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
62449         in place of snprintf.
62450
62451         * modules/inttostr (Files): Add lib/uinttostr.c.
62452         * lib/uinttostr.c (inttostr): New file/function.
62453         * lib/inttostr.h (uinttostr): Declare.
62454         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
62455         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
62456         Add uinttostr.
62457         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
62458
62459 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
62460
62461         * lib/canonicalize.c (ELOOP): Define if not already defined.
62462         Problem reported by Bruno Haible in
62463         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
62464
62465 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
62466
62467         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
62468         Problem reported by Perry Smith and Ville Laurikari.
62469
62470         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
62471         uses.
62472
62473 2006-10-19  Bruno Haible  <bruno@clisp.org>
62474
62475         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
62476         for mingw.
62477
62478 2006-10-19  Bruno Haible  <bruno@clisp.org>
62479
62480         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
62481         Needed for mingw.
62482
62483 2006-10-19  Bruno Haible  <bruno@clisp.org>
62484
62485         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
62486
62487 2006-10-19  Bruno Haible  <bruno@clisp.org>
62488
62489         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
62490         it.
62491
62492 2006-10-19  Bruno Haible  <bruno@clisp.org>
62493
62494         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
62495         invocation.
62496
62497 2006-10-19  Bruno Haible  <bruno@clisp.org>
62498
62499         * gnulib-tool (func_create_testdir): Don't include ftruncate and
62500         mountlist by default.
62501
62502 2006-10-16  Bruno Haible  <bruno@clisp.org>
62503
62504         * lib/c-strstr.c: Include c-strstr.h.
62505
62506 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
62507
62508         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
62509         in a slash.
62510
62511 2006-10-18  Bruno Haible  <bruno@clisp.org>
62512
62513         * lib/lock.h [C++]: Wrap definitions in extern "C".
62514
62515 2006-10-18  Bruno Haible  <bruno@clisp.org>
62516
62517         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
62518         gl_LIBOBJS list.
62519
62520 2006-10-18  Bruno Haible  <bruno@clisp.org>
62521
62522         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
62523
62524 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
62525
62526         * lib/xstrtol.h: Include gettext.h.
62527         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
62528         Problem reported by Eric Blake.
62529         * modules/xstrtol (Depends-on): Add gettext-h.
62530
62531 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
62532
62533         * lib/strftime.c (advance): New macro.
62534         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
62535         incomplete type, so you can't add 0 to it.  Problem and patch
62536         reported by Eelco Dolstra for dietlibc.
62537
62538 2006-10-18  Jim Meyering  <jim@meyering.net>
62539
62540         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
62541         type for a local, and rename it: s/up/user_proc/.
62542
62543 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
62544
62545         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
62546         READ_UTMP_USER_PROCESS.
62547         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
62548
62549 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
62550
62551         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
62552         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
62553
62554 2006-10-17  Eric Blake  <ebb9@byu.net>
62555
62556         * lib/sigprocmask.c (sigprocmask): Fix typo.
62557
62558         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
62559
62560         * modules/clean-temp (Makefile.am): Don't add to make output...
62561         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
62562         config.h.
62563
62564 2006-10-17  Bruno Haible  <bruno@clisp.org>
62565
62566         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
62567         differently if DEFAULT_TEXT_DOMAIN is set.
62568
62569 2006-10-16  Bruno Haible  <bruno@clisp.org>
62570
62571         * lib/clean-temp.c: Include fwriteerror.h.
62572
62573 2006-10-16  Bruno Haible  <bruno@clisp.org>
62574
62575         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
62576
62577 2006-10-16  Bruno Haible  <bruno@clisp.org>
62578
62579         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
62580         * lib/sigprocmask.h: Include <sys/types.h>.
62581         (sigset_t): Use the system's definition if present.
62582
62583 2006-10-17  Eric Blake  <ebb9@byu.net>
62584
62585         * lib/xvasprintf.c (includes): Assume config.h.
62586         * lib/xasprintf.c (includes): Likewise.
62587
62588 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
62589
62590         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
62591         at least as wide as intmax_t.
62592
62593 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
62594
62595         (Imported from Automake.)
62596         * build-aux/gnupload: Update to version 1.1 of directive file.
62597
62598 2006-10-16  Eric Blake  <ebb9@byu.net>
62599
62600         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
62601         match Automake 1.10a.
62602
62603 2006-10-14  Bruno Haible  <bruno@clisp.org>
62604
62605         * modules/sigprocmask: New file.
62606         * lib/sigprocmask.h: New file.
62607         * lib/sigprocmask.c: New file.
62608         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
62609         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
62610         request sigprocmask.o.
62611         (gl_PREREQ_SIGPROCMASK): New macro.
62612         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
62613         (Depends-on): Add sigprocmask.
62614         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
62615         gt_SIGNALBLOCKING. Test for 'raise' only once.
62616         * lib/fatal-signal.c: Include sigprocmask.h.
62617         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
62618         unblock_fatal_signals): Define always.
62619         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
62620         sigprocmask.
62621
62622 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
62623
62624         Sync from Automake.
62625         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
62626         which incorrectly sets the mode of an existing destination
62627         directory.  In some cases the unpatched install-sh could do the
62628         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
62629         system.  We hope this is rare in practice, but it's clearly worth
62630         fixing.  Problem reported by Alex Unleashed in
62631         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
62632         Also, don't bother to check for -m bugs unless we're using -m;
62633         suggested by Stepan Kasal.
62634
62635 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62636
62637         Sync from Automake.
62638         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
62639         `-c' flag, so they appear at the same position as in %FASTDEP%
62640         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
62641         which ignores unknown options only after the first non-option.
62642         Bug report against M4 by Nelson H. F. Beebe.
62643
62644 2006-10-13  Jim Meyering  <jim@meyering.net>
62645
62646         Fix a bug in yesterday's change.
62647         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
62648         p->fts_statp->st_dev would be used uninitialized.
62649         Ensures that we always call fts_stat on the very first entry.
62650         Miklos Szeredi reported that find -xdev stopped working.
62651
62652 2006-10-12  Bruno Haible  <bruno@clisp.org>
62653
62654         * gnulib-tool (func_get_automake_snippet): Append an automatically
62655         computed EXTRA_DIST augmentation.
62656         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
62657         * modules/alloca-opt (Makefile.am): Likewise.
62658         * modules/allocsa (Makefile.am): Likewise.
62659         * modules/arcfour (Makefile.am): Likewise.
62660         * modules/arctwo (Makefile.am): Likewise.
62661         * modules/argmatch (Makefile.am): Likewise.
62662         * modules/argz (Makefile.am): Likewise.
62663         * modules/atexit (Makefile.am): Likewise.
62664         * modules/backupfile (Makefile.am): Likewise.
62665         * modules/byteswap (Makefile.am): Likewise.
62666         * modules/c-strtod (Makefile.am): Likewise.
62667         * modules/c-strtold (Makefile.am): Likewise.
62668         * modules/calloc (Makefile.am): Likewise.
62669         * modules/canon-host (Makefile.am): Likewise.
62670         * modules/canonicalize (Makefile.am): Likewise.
62671         * modules/chdir-long (Makefile.am): Likewise.
62672         * modules/chdir-safer (Makefile.am): Likewise.
62673         * modules/check-version (Makefile.am): Likewise.
62674         * modules/chown (Makefile.am): Likewise.
62675         * modules/cloexec (Makefile.am): Likewise.
62676         * modules/close-stream (Makefile.am): Likewise.
62677         * modules/closeout (Makefile.am): Likewise.
62678         * modules/crc (Makefile.am): Likewise.
62679         * modules/csharpexec (Makefile.am): Likewise.
62680         * modules/cycle-check (Makefile.am): Likewise.
62681         * modules/des (Makefile.am): Likewise.
62682         * modules/dev-ino (Makefile.am): Likewise.
62683         * modules/dirfd (Makefile.am): Likewise.
62684         * modules/dirname (Makefile.am): Likewise.
62685         * modules/dup2 (Makefile.am): Likewise.
62686         * modules/eealloc (Makefile.am): Likewise.
62687         * modules/error (Makefile.am): Likewise.
62688         * modules/euidaccess (Makefile.am): Likewise.
62689         * modules/exclude (Makefile.am): Likewise.
62690         * modules/exitfail (Makefile.am): Likewise.
62691         * modules/fcntl-safer (Makefile.am): Likewise.
62692         * modules/fcntl (Makefile.am): Likewise.
62693         * modules/file-type (Makefile.am): Likewise.
62694         * modules/fileblocks (Makefile.am): Likewise.
62695         * modules/filemode (Makefile.am): Likewise.
62696         * modules/filenamecat (Makefile.am): Likewise.
62697         * modules/fnmatch (Makefile.am): Likewise.
62698         * modules/fopen-safer (Makefile.am): Likewise.
62699         * modules/fpending (Makefile.am): Likewise.
62700         * modules/fprintftime (Makefile.am): Likewise.
62701         * modules/free (Makefile.am): Likewise.
62702         * modules/fsusage (Makefile.am): Likewise.
62703         * modules/ftruncate (Makefile.am): Likewise.
62704         * modules/fts (Makefile.am): Likewise.
62705         * modules/gc-arcfour (Makefile.am): Likewise.
62706         * modules/gc-des (Makefile.am): Likewise.
62707         * modules/gc-hmac-md5 (Makefile.am): Likewise.
62708         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
62709         * modules/gc-md4 (Makefile.am): Likewise.
62710         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
62711         * modules/gc-sha1 (Makefile.am): Likewise.
62712         * modules/gc (Makefile.am): Likewise.
62713         * modules/getaddrinfo (Makefile.am): Likewise.
62714         * modules/getcwd (Makefile.am): Likewise.
62715         * modules/getdelim (Makefile.am): Likewise.
62716         * modules/getdomainname (Makefile.am): Likewise.
62717         * modules/getgroups (Makefile.am): Likewise.
62718         * modules/gethostname (Makefile.am): Likewise.
62719         * modules/gethrxtime (Makefile.am): Likewise.
62720         * modules/getline (Makefile.am): Likewise.
62721         * modules/getloadavg (Makefile.am): Likewise.
62722         * modules/getlogin_r (Makefile.am): Likewise.
62723         * modules/getndelim2 (Makefile.am): Likewise.
62724         * modules/getopt (Makefile.am): Likewise.
62725         * modules/getpagesize (Makefile.am): Likewise.
62726         * modules/getpass-gnu (Makefile.am): Likewise.
62727         * modules/getpass (Makefile.am): Likewise.
62728         * modules/getsubopt (Makefile.am): Likewise.
62729         * modules/gettime (Makefile.am): Likewise.
62730         * modules/gettimeofday (Makefile.am): Likewise.
62731         * modules/getugroups (Makefile.am): Likewise.
62732         * modules/getusershell (Makefile.am): Likewise.
62733         * modules/glob (Makefile.am): Likewise.
62734         * modules/group-member (Makefile.am): Likewise.
62735         * modules/hard-locale (Makefile.am): Likewise.
62736         * modules/hash (Makefile.am): Likewise.
62737         * modules/hmac-md5 (Makefile.am): Likewise.
62738         * modules/hmac-sha1 (Makefile.am): Likewise.
62739         * modules/human (Makefile.am): Likewise.
62740         * modules/idcache (Makefile.am): Likewise.
62741         * modules/imaxabs (Makefile.am): Likewise.
62742         * modules/imaxdiv (Makefile.am): Likewise.
62743         * modules/inet_ntop (Makefile.am): Likewise.
62744         * modules/inet_pton (Makefile.am): Likewise.
62745         * modules/intprops (Makefile.am): Likewise.
62746         * modules/inttostr (Makefile.am): Likewise.
62747         * modules/inttypes (Makefile.am): Likewise.
62748         * modules/isapipe (Makefile.am): Likewise.
62749         * modules/javaversion (Makefile.am): Likewise.
62750         * modules/lchmod (Makefile.am): Likewise.
62751         * modules/lchown (Makefile.am): Likewise.
62752         * modules/localcharset (Makefile.am): Likewise.
62753         * modules/long-options (Makefile.am): Likewise.
62754         * modules/lstat (Makefile.am): Likewise.
62755         * modules/malloc (Makefile.am): Likewise.
62756         * modules/mathl (Makefile.am): Likewise.
62757         * modules/mbchar (Makefile.am): Likewise.
62758         * modules/md2 (Makefile.am): Likewise.
62759         * modules/md4 (Makefile.am): Likewise.
62760         * modules/md5 (Makefile.am): Likewise.
62761         * modules/memcasecmp (Makefile.am): Likewise.
62762         * modules/memchr (Makefile.am): Likewise.
62763         * modules/memcmp (Makefile.am): Likewise.
62764         * modules/memcoll (Makefile.am): Likewise.
62765         * modules/memcpy (Makefile.am): Likewise.
62766         * modules/memmem (Makefile.am): Likewise.
62767         * modules/memmove (Makefile.am): Likewise.
62768         * modules/mempcpy (Makefile.am): Likewise.
62769         * modules/memrchr (Makefile.am): Likewise.
62770         * modules/memset (Makefile.am): Likewise.
62771         * modules/memxor (Makefile.am): Likewise.
62772         * modules/mkancesdirs (Makefile.am): Likewise.
62773         * modules/mkdir-p (Makefile.am): Likewise.
62774         * modules/mkdir (Makefile.am): Likewise.
62775         * modules/mkdtemp (Makefile.am): Likewise.
62776         * modules/mkstemp (Makefile.am): Likewise.
62777         * modules/mktime (Makefile.am): Likewise.
62778         * modules/modechange (Makefile.am): Likewise.
62779         * modules/mountlist (Makefile.am): Likewise.
62780         * modules/nanosleep (Makefile.am): Likewise.
62781         * modules/obstack (Makefile.am): Likewise.
62782         * modules/openat (Makefile.am): Likewise.
62783         * modules/pagealign_alloc (Makefile.am): Likewise.
62784         * modules/pathmax (Makefile.am): Likewise.
62785         * modules/physmem (Makefile.am): Likewise.
62786         * modules/poll (Makefile.am): Likewise.
62787         * modules/posixtm (Makefile.am): Likewise.
62788         * modules/posixver (Makefile.am): Likewise.
62789         * modules/putenv (Makefile.am): Likewise.
62790         * modules/quote (Makefile.am): Likewise.
62791         * modules/quotearg (Makefile.am): Likewise.
62792         * modules/raise (Makefile.am): Likewise.
62793         * modules/read-file (Makefile.am): Likewise.
62794         * modules/readline (Makefile.am): Likewise.
62795         * modules/readlink (Makefile.am): Likewise.
62796         * modules/readtokens (Makefile.am): Likewise.
62797         * modules/readutmp (Makefile.am): Likewise.
62798         * modules/realloc (Makefile.am): Likewise.
62799         * modules/regex (Makefile.am): Likewise.
62800         * modules/rename-dest-slash (Makefile.am): Likewise.
62801         * modules/rename (Makefile.am): Likewise.
62802         * modules/rijndael (Makefile.am): Likewise.
62803         * modules/rmdir (Makefile.am): Likewise.
62804         * modules/rpmatch (Makefile.am): Likewise.
62805         * modules/safe-read (Makefile.am): Likewise.
62806         * modules/safe-write (Makefile.am): Likewise.
62807         * modules/same-inode (Makefile.am): Likewise.
62808         * modules/same (Makefile.am): Likewise.
62809         * modules/save-cwd (Makefile.am): Likewise.
62810         * modules/savedir (Makefile.am): Likewise.
62811         * modules/setenv (Makefile.am): Likewise.
62812         * modules/settime (Makefile.am): Likewise.
62813         * modules/sha1 (Makefile.am): Likewise.
62814         * modules/sig2str (Makefile.am): Likewise.
62815         * modules/snprintf (Makefile.am): Likewise.
62816         * modules/stat-macros (Makefile.am): Likewise.
62817         * modules/stat-time (Makefile.am): Likewise.
62818         * modules/stdbool (Makefile.am): Likewise.
62819         * modules/stdint (Makefile.am): Likewise.
62820         * modules/stdlib-safer (Makefile.am): Likewise.
62821         * modules/stpcpy (Makefile.am): Likewise.
62822         * modules/stpncpy (Makefile.am): Likewise.
62823         * modules/strcase (Makefile.am): Likewise.
62824         * modules/strcasestr (Makefile.am): Likewise.
62825         * modules/strchrnul (Makefile.am): Likewise.
62826         * modules/strcspn (Makefile.am): Likewise.
62827         * modules/strdup (Makefile.am): Likewise.
62828         * modules/strerror (Makefile.am): Likewise.
62829         * modules/strftime (Makefile.am): Likewise.
62830         * modules/strndup (Makefile.am): Likewise.
62831         * modules/strnlen (Makefile.am): Likewise.
62832         * modules/strpbrk (Makefile.am): Likewise.
62833         * modules/strsep (Makefile.am): Likewise.
62834         * modules/strstr (Makefile.am): Likewise.
62835         * modules/strtod (Makefile.am): Likewise.
62836         * modules/strtoimax (Makefile.am): Likewise.
62837         * modules/strtok_r (Makefile.am): Likewise.
62838         * modules/strtol (Makefile.am): Likewise.
62839         * modules/strtoll (Makefile.am): Likewise.
62840         * modules/strtoul (Makefile.am): Likewise.
62841         * modules/strtoull (Makefile.am): Likewise.
62842         * modules/strtoumax (Makefile.am): Likewise.
62843         * modules/strverscmp (Makefile.am): Likewise.
62844         * modules/sys_socket (Makefile.am): Likewise.
62845         * modules/sys_stat (Makefile.am): Likewise.
62846         * modules/sysexits (Makefile.am): Likewise.
62847         * modules/time_r (Makefile.am): Likewise.
62848         * modules/timegm (Makefile.am): Likewise.
62849         * modules/timespec (Makefile.am): Likewise.
62850         * modules/tmpfile-safer (Makefile.am): Likewise.
62851         * modules/trim (Makefile.am): Likewise.
62852         * modules/unistd-safer (Makefile.am): Likewise.
62853         * modules/unlinkdir (Makefile.am): Likewise.
62854         * modules/unlocked-io (Makefile.am): Likewise.
62855         * modules/userspec (Makefile.am): Likewise.
62856         * modules/utime (Makefile.am): Likewise.
62857         * modules/utimecmp (Makefile.am): Likewise.
62858         * modules/utimens (Makefile.am): Likewise.
62859         * modules/vasnprintf (Makefile.am): Likewise.
62860         * modules/vasprintf (Makefile.am): Likewise.
62861         * modules/vsnprintf (Makefile.am): Likewise.
62862         * modules/xalloc (Makefile.am): Likewise.
62863         * modules/xgetcwd (Makefile.am): Likewise.
62864         * modules/xnanosleep (Makefile.am): Likewise.
62865         * modules/xreadlink (Makefile.am): Likewise.
62866         * modules/xstrtod (Makefile.am): Likewise.
62867         * modules/xstrtol (Makefile.am): Likewise.
62868         * modules/xstrtold (Makefile.am): Likewise.
62869         * modules/yesno (Makefile.am): Likewise.
62870         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
62871
62872 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
62873
62874         * modules/error (Makefile.am): Distribute files through
62875         EXTRA_DIST, not lib_SOURCES.
62876
62877 2006-10-12  Eric Blake  <ebb9@byu.net>
62878
62879         * modules/error (Makefile.am): Distribute files in /lib.
62880         * modules/obstack (Makefile.am): Likewise.
62881
62882 2006-10-12  Bruno Haible  <bruno@clisp.org>
62883
62884         * modules/acl (Makefile.am): Distribute all files in lib/ through
62885         EXTRA_DIST.
62886         * modules/arcfour (Makefile.am): Likewise.
62887         * modules/arctwo (Makefile.am): Likewise.
62888         * modules/argmatch (Makefile.am): Likewise.
62889         * modules/argz (Makefile.am): Likewise.
62890         * modules/atexit (Makefile.am): Likewise.
62891         * modules/backupfile (Makefile.am): Likewise.
62892         * modules/c-strtod (Makefile.am): Likewise.
62893         * modules/c-strtold (Makefile.am): Likewise.
62894         * modules/calloc (Makefile.am): Likewise.
62895         * modules/canon-host (Makefile.am): Likewise.
62896         * modules/canonicalize (Makefile.am): Likewise.
62897         * modules/chdir-long (Makefile.am): Likewise.
62898         * modules/chdir-safer (Makefile.am): Likewise.
62899         * modules/check-version (Makefile.am): Likewise.
62900         * modules/chown (Makefile.am): Likewise.
62901         * modules/cloexec (Makefile.am): Likewise.
62902         * modules/close-stream (Makefile.am): Likewise.
62903         * modules/closeout (Makefile.am): Likewise.
62904         * modules/crc (Makefile.am): Likewise.
62905         * modules/cycle-check (Makefile.am): Likewise.
62906         * modules/des (Makefile.am): Likewise.
62907         * modules/dirfd (Makefile.am): Likewise.
62908         * modules/dirname (Makefile.am): Likewise.
62909         * modules/dup2 (Makefile.am): Likewise.
62910         * modules/euidaccess (Makefile.am): Likewise.
62911         * modules/exclude (Makefile.am): Likewise.
62912         * modules/exitfail (Makefile.am): Likewise.
62913         * modules/fcntl-safer (Makefile.am): Likewise.
62914         * modules/file-type (Makefile.am): Likewise.
62915         * modules/fileblocks (Makefile.am): Likewise.
62916         * modules/filemode (Makefile.am): Likewise.
62917         * modules/filenamecat (Makefile.am): Likewise.
62918         * modules/fnmatch (Makefile.am): Likewise.
62919         * modules/fopen-safer (Makefile.am): Likewise.
62920         * modules/fpending (Makefile.am): Likewise.
62921         * modules/fprintftime (Makefile.am): Likewise.
62922         * modules/free (Makefile.am): Likewise.
62923         * modules/fsusage (Makefile.am): Likewise.
62924         * modules/ftruncate (Makefile.am): Likewise.
62925         * modules/fts (Makefile.am): Likewise.
62926         * modules/gc (Makefile.am): Likewise.
62927         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
62928         * modules/getaddrinfo (Makefile.am): Likewise.
62929         * modules/getcwd (Makefile.am): Likewise.
62930         * modules/getdelim (Makefile.am): Likewise.
62931         * modules/getdomainname (Makefile.am): Likewise.
62932         * modules/getgroups (Makefile.am): Likewise.
62933         * modules/gethostname (Makefile.am): Likewise.
62934         * modules/gethrxtime (Makefile.am): Likewise.
62935         * modules/getline (Makefile.am): Likewise.
62936         * modules/getloadavg (Makefile.am): Likewise.
62937         * modules/getlogin_r (Makefile.am): Likewise.
62938         * modules/getopt (Makefile.am): Likewise.
62939         * modules/getpass (Makefile.am): Likewise.
62940         * modules/getpass-gnu (Makefile.am): Likewise.
62941         * modules/getsubopt (Makefile.am): Likewise.
62942         * modules/gettime (Makefile.am): Likewise.
62943         * modules/gettimeofday (Makefile.am): Likewise.
62944         * modules/getugroups (Makefile.am): Likewise.
62945         * modules/getusershell (Makefile.am): Likewise.
62946         * modules/glob (Makefile.am): Likewise.
62947         * modules/group-member (Makefile.am): Likewise.
62948         * modules/hard-locale (Makefile.am): Likewise.
62949         * modules/hash (Makefile.am): Likewise.
62950         * modules/hmac-md5 (Makefile.am): Likewise.
62951         * modules/hmac-sha1 (Makefile.am): Likewise.
62952         * modules/human (Makefile.am): Likewise.
62953         * modules/idcache (Makefile.am): Likewise.
62954         * modules/imaxabs (Makefile.am): Likewise.
62955         * modules/imaxdiv (Makefile.am): Likewise.
62956         * modules/inet_ntop (Makefile.am): Likewise.
62957         * modules/inet_pton (Makefile.am): Likewise.
62958         * modules/inttostr (Makefile.am): Likewise.
62959         * modules/isapipe (Makefile.am): Likewise.
62960         * modules/lchown (Makefile.am): Likewise.
62961         * modules/long-options (Makefile.am): Likewise.
62962         * modules/lstat (Makefile.am): Likewise.
62963         * modules/malloc (Makefile.am): Likewise.
62964         * modules/mathl (Makefile.am): Likewise.
62965         * modules/mbchar (Makefile.am): Likewise.
62966         * modules/md2 (Makefile.am): Likewise.
62967         * modules/md4 (Makefile.am): Likewise.
62968         * modules/md5 (Makefile.am): Likewise.
62969         * modules/memcasecmp (Makefile.am): Likewise.
62970         * modules/memchr (Makefile.am): Likewise.
62971         * modules/memcmp (Makefile.am): Likewise.
62972         * modules/memcoll (Makefile.am): Likewise.
62973         * modules/memcpy (Makefile.am): Likewise.
62974         * modules/memmem (Makefile.am): Likewise.
62975         * modules/memmove (Makefile.am): Likewise.
62976         * modules/mempcpy (Makefile.am): Likewise.
62977         * modules/memrchr (Makefile.am): Likewise.
62978         * modules/memset (Makefile.am): Likewise.
62979         * modules/memxor (Makefile.am): Likewise.
62980         * modules/mkancesdirs (Makefile.am): Likewise.
62981         * modules/mkdir (Makefile.am): Likewise.
62982         * modules/mkdir-p (Makefile.am): Likewise.
62983         * modules/mkdtemp (Makefile.am): Likewise.
62984         * modules/mkstemp (Makefile.am): Likewise.
62985         * modules/mktime (Makefile.am): Likewise.
62986         * modules/modechange (Makefile.am): Likewise.
62987         * modules/mountlist (Makefile.am): Likewise.
62988         * modules/nanosleep (Makefile.am): Likewise.
62989         * modules/openat (Makefile.am): Likewise.
62990         * modules/pagealign_alloc (Makefile.am): Likewise.
62991         * modules/physmem (Makefile.am): Likewise.
62992         * modules/poll (Makefile.am): Likewise.
62993         * modules/posixtm (Makefile.am): Likewise.
62994         * modules/posixver (Makefile.am): Likewise.
62995         * modules/putenv (Makefile.am): Likewise.
62996         * modules/quote (Makefile.am): Likewise.
62997         * modules/quotearg (Makefile.am): Likewise.
62998         * modules/raise (Makefile.am): Likewise.
62999         * modules/read-file (Makefile.am): Likewise.
63000         * modules/readline (Makefile.am): Likewise.
63001         * modules/readlink (Makefile.am): Likewise.
63002         * modules/readtokens (Makefile.am): Likewise.
63003         * modules/readutmp (Makefile.am): Likewise.
63004         * modules/realloc (Makefile.am): Likewise.
63005         * modules/regex (Makefile.am): Likewise.
63006         * modules/rename (Makefile.am): Likewise.
63007         * modules/rename-dest-slash (Makefile.am): Likewise.
63008         * modules/rijndael (Makefile.am): Likewise.
63009         * modules/rmdir (Makefile.am): Likewise.
63010         * modules/rpmatch (Makefile.am): Likewise.
63011         * modules/safe-read (Makefile.am): Likewise.
63012         * modules/safe-write (Makefile.am): Likewise.
63013         * modules/same (Makefile.am): Likewise.
63014         * modules/save-cwd (Makefile.am): Likewise.
63015         * modules/savedir (Makefile.am): Likewise.
63016         * modules/setenv (Makefile.am): Likewise.
63017         * modules/settime (Makefile.am): Likewise.
63018         * modules/sha1 (Makefile.am): Likewise.
63019         * modules/sig2str (Makefile.am): Likewise.
63020         * modules/snprintf (Makefile.am): Likewise.
63021         * modules/stdlib-safer (Makefile.am): Likewise.
63022         * modules/stpcpy (Makefile.am): Likewise.
63023         * modules/stpncpy (Makefile.am): Likewise.
63024         * modules/strcase (Makefile.am): Likewise.
63025         * modules/strcasestr (Makefile.am): Likewise.
63026         * modules/strchrnul (Makefile.am): Likewise.
63027         * modules/strcspn (Makefile.am): Likewise.
63028         * modules/strdup (Makefile.am): Likewise.
63029         * modules/strerror (Makefile.am): Likewise.
63030         * modules/strftime (Makefile.am): Likewise.
63031         * modules/strndup (Makefile.am): Likewise.
63032         * modules/strnlen (Makefile.am): Likewise.
63033         * modules/strpbrk (Makefile.am): Likewise.
63034         * modules/strsep (Makefile.am): Likewise.
63035         * modules/strstr (Makefile.am): Likewise.
63036         * modules/strtod (Makefile.am): Likewise.
63037         * modules/strtoimax (Makefile.am): Likewise.
63038         * modules/strtok_r (Makefile.am): Likewise.
63039         * modules/strtol (Makefile.am): Likewise.
63040         * modules/strtoll (Makefile.am): Likewise.
63041         * modules/strtoul (Makefile.am): Likewise.
63042         * modules/strtoull (Makefile.am): Likewise.
63043         * modules/strtoumax (Makefile.am): Likewise.
63044         * modules/strverscmp (Makefile.am): Likewise.
63045         * modules/time_r (Makefile.am): Likewise.
63046         * modules/timegm (Makefile.am): Likewise.
63047         * modules/tmpfile-safer (Makefile.am): Likewise.
63048         * modules/unistd-safer (Makefile.am): Likewise.
63049         * modules/unlinkdir (Makefile.am): Likewise.
63050         * modules/userspec (Makefile.am): Likewise.
63051         * modules/utime (Makefile.am): Likewise.
63052         * modules/utimecmp (Makefile.am): Likewise.
63053         * modules/utimens (Makefile.am): Likewise.
63054         * modules/vasnprintf (Makefile.am): Likewise.
63055         * modules/vasprintf (Makefile.am): Likewise.
63056         * modules/vsnprintf (Makefile.am): Likewise.
63057         * modules/xalloc (Makefile.am): Likewise.
63058         * modules/xgetcwd (Makefile.am): Likewise.
63059         * modules/xnanosleep (Makefile.am): Likewise.
63060         * modules/xreadlink (Makefile.am): Likewise.
63061         * modules/xstrtod (Makefile.am): Likewise.
63062         * modules/xstrtol (Makefile.am): Likewise.
63063         * modules/xstrtold (Makefile.am): Likewise.
63064         * modules/yesno (Makefile.am): Likewise.
63065
63066 2006-10-12  Jim Meyering  <jim@meyering.net>
63067
63068         * m4/getloadavg.m4: Revert the change below.
63069
63070         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
63071         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
63072         fail with a symlink, which is what coreutils' ./bootstrap now
63073         creates by default.
63074
63075 2006-10-12  Bruno Haible  <bruno@clisp.org>
63076
63077         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
63078         mingw.
63079         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
63080         MSVC and mingw explicitly.
63081
63082 2006-10-11  Simon Josefsson  <jas@extundo.com>
63083             Bruno Haible  <bruno@clisp.org>
63084
63085         Add support for multiple gnulib-tool invocations in the scope of a
63086         single configure.ac file.
63087         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
63088         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
63089         with the same contents as the _LIBADD variable.
63090         (func_emit_initmacro_start, func_emit_initmacro_end,
63091         func_emit_initmacro_done): New functions.
63092         (func_import, func_create_testdir): Invoke them. Allow the identifiers
63093         gl_LIBOBJS and gl_LTLIBOBJS.
63094
63095 2006-10-11  Bruno Haible  <bruno@clisp.org>
63096
63097         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
63098         (func_create_testdir): Don't create po/Makefile.am, don't invoke
63099         autoreconf. Instead, invoke autopoint explicitly but move back the
63100         *.m4 files from gnulib.
63101
63102 2006-10-11  Bruno Haible  <bruno@clisp.org>
63103
63104         * gnulib-tool (func_usage): Make module names after --create-testdir
63105         optional.
63106         (func_create_testdir): If no module was specified, use nearly all
63107         modules.
63108
63109 2006-10-12  Jim Meyering  <jim@meyering.net>
63110
63111         Big performance improvement for fts-based tools that use FTS_NOSTAT.
63112         Avoid spurious inode-mismatch problems on non-POSIX file systems.
63113         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
63114         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
63115         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
63116         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
63117         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
63118         (fts_set_stat_required): New function.
63119         (fts_open): Defer the calls to fts_stat, if possible or requested.
63120         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
63121         into fts_stat itself.
63122         (fts_read): Perform any required (deferred) fts_stat call.
63123         (fts_build): Likewise, for the directory we're about to open and read.
63124         In the readdir loop, carefully decide whether each entry will require
63125         an eventual call to fts_stat, using dirent.d_type info if available.
63126         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
63127         a command line argument into this function.  Update all callers.
63128         Map a return value of FTS_DOT to FTS_D for a command line argument.
63129         * modules/fts (Depends-on): Add d-type.  Alphabetize.
63130         Thanks to Miklos Szeredi for his tenacity and for the initial
63131         bug report about "find" failing on a FUSE-based file system.
63132
63133         * lib/fts.c (fts_open): Use consistent indentation.
63134
63135 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
63136
63137         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
63138         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
63139         reported by Jim Meyering.  All uses of cache variables renamed
63140         to match Autoconf's.
63141         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
63142         the other one.
63143
63144         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
63145         Fix misspelling in diagnostic.
63146
63147 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
63148
63149         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
63150         defined.  Problem reported by Matthew Woehlke.
63151
63152         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
63153         Add support for Tandem NonStop R series.
63154         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
63155         Use new macro.
63156
63157         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
63158         (has_trailing_slash): Omit size arg; all callers changed.
63159         Omit 'inline', since it doesn't help performance and we'd
63160         need to configure it.
63161         Don't count //, ///, etc. as having a trailing slash.
63162         As a side effect, this removes a C99ism reported by Matthew Woehlke.
63163         (rpl_rename_dest_slash): On failure, use rename's errno rather
63164         than (in some cases) an incorrect or junk errno.
63165         Simplify code by removing need to compute length; this does
63166         cause it to make two passes instead of one over the file name,
63167         but it's worth it.
63168
63169         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
63170         change, since Autoconf's version may no longer be appropriate now
63171         that we are using CVS Autoconf's version.  Add support for Tandem.
63172
63173 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
63174             Bruno Haible  <bruno@clisp.org>
63175
63176         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
63177         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
63178         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
63179         gl_AC_TYPE_LONG_LONG.
63180
63181         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
63182         instead of HAVE_LONG_LONG.
63183         * lib/printf-args.c (printf_fetchargs): Likewise.
63184         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
63185         * lib/vasnprintf.c (VASNPRINTF): Likewise.
63186         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
63187         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
63188         gl_AC_TYPE_LONG_LONG.
63189
63190 2006-10-11  Bruno Haible  <bruno@clisp.org>
63191
63192         * m4/longlong.m4: Add comments.
63193         * m4/ulonglong.m4: Likewise.
63194
63195 2006-10-10  Bruno Haible  <bruno@clisp.org>
63196
63197         Make it possible to #define stpcpy, strdup to aliases.
63198         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
63199         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
63200
63201 2006-10-10  Bruno Haible  <bruno@clisp.org>
63202
63203         Make it possible to #define gcd to an alias.
63204         * lib/gcd.c: Include config.h.
63205
63206 2006-10-10  Bruno Haible  <bruno@clisp.org>
63207
63208         Make it possible to #define c_isascii to an alias.
63209         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
63210         defined. Undefine the macros before defining them, to avoid gcc
63211         warnings.
63212         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
63213         define NO_C_CTYPE_MACROS early.
63214
63215 2006-10-10  Bruno Haible  <bruno@clisp.org>
63216
63217         Make it possible to #define set_program_name to an alias.
63218         * lib/progname.c: Don't undefine set_program_name; instead, undefine
63219         ENABLE_RELOCATABLE early.
63220
63221 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
63222
63223         Port to Tandem NSK OSS, which has 64-bit signed int but at most
63224         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
63225         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
63226         More generally, don't assume that 64-bit signed int is available
63227         if unsigned int is, and vice versa.
63228         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
63229         unsigned symbols, not on their signed counterparts.
63230         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
63231         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
63232         (UINT64_C, UINTMAX_C):
63233         Likewise.
63234         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
63235         unsigned counterparts.
63236         (Have_long_long, Unsigned): New macros.
63237         (Int): Renamed from INT.
63238         (strtoimax): Use the new macros.
63239         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
63240         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
63241         * modules/inttypes (inttypes.h): Substitute
63242         HAVE_UNSIGNED_LONG_LONG_INT.
63243         * modules/stdint (stdint.h): Likewise.
63244         (Files): Add m4/ulonglong.m4.
63245
63246 2006-10-10  Bruno Haible  <bruno@clisp.org>
63247
63248         Fix a gcc -Wshadow warning.
63249         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
63250         to 'bucket'.
63251         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
63252         gl_linked_indexof_from_to): Likewise.
63253         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
63254         Likewise.
63255         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
63256         Likewise.
63257         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
63258         Reported by Eric Blake.
63259
63260 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
63261
63262         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
63263         for NetBSD.  Problem reported by Bruno Haible.
63264
63265 2006-10-09  Jim Meyering  <jim@meyering.net>
63266
63267         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
63268         Patch from Bruno Haible.
63269
63270 2006-10-09  Jim Meyering  <jim@meyering.net>
63271
63272         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
63273         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
63274         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
63275
63276 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
63277
63278         Don't include <config.h> twice; this doesn't work in some cases,
63279         e.g., when config.h has "#define intmax_t long long int" and
63280         we include <config.h>, <inttypes.h>, <config.h> in that order.
63281         Problem reported by Matthew Woehlke in:
63282         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
63283         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
63284         * lib/fts-cycle.c: Don't include config.h.
63285         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
63286         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
63287         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
63288         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
63289         inttypes.h.
63290         * lib/xstrtoumax.c: Likewise.
63291         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
63292         __strtol and the like, so that this module is more like its siblings.
63293         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
63294         Remove; no longer needed now that we assume gnulib inttypes.h.
63295
63296 2006-10-08  Bruno Haible  <bruno@clisp.org>
63297
63298         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
63299         option.
63300
63301 2006-10-07  Jim Meyering  <jim@meyering.net>
63302
63303         * modules/inttypes (inttypes.h): Revert what seems to have been
63304         an inadvertent part of today's change: use "|", not "/" in the
63305         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
63306
63307 2006-10-07  Bruno Haible  <bruno@clisp.org>
63308
63309         * modules/sublist: New file.
63310
63311 2006-10-07  Bruno Haible  <bruno@clisp.org>
63312
63313         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
63314         * modules/argz (argz.h): Likewise.
63315         * modules/arpa_inet (arpa/inet.h): Likewise.
63316         * modules/byteswap (byteswap.h): Likewise.
63317         * modules/configmake (configmake.h): Likewise.
63318         * modules/fcntl (fcntl.h): Likewise.
63319         * modules/fnmatch (fnmatch.h): Likewise.
63320         * modules/getopt (getopt.h): Likewise.
63321         * modules/glob (glob.h): Likewise.
63322         * modules/inttypes (inttypes.h): Likewise.
63323         * modules/netinet_in (netinet/in.h): Likewise.
63324         * modules/poll (poll.h): Likewise.
63325         * modules/stdbool (stdbool.h): Likewise.
63326         * modules/stdint (stdint.h): Likewise.
63327         * modules/sys_select (sys/select.h): Likewise.
63328         * modules/sys_socket (sys/socket.h): Likewise.
63329         * modules/sys_stat (sys/stat.h): Likewise.
63330         * modules/sysexits (sysexits.h): Likewise.
63331         * modules/unistd (unistd.h): Likewise.
63332         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
63333         Add a "DO NOT EDIT" comment to the generated file.
63334         (func_import): Likewise for gnulib-comp.m4.
63335
63336 2006-10-07  Bruno Haible  <bruno@clisp.org>
63337
63338         * lib/gl_sublist.h: New file.
63339         * lib/gl_sublist.c: New file.
63340
63341 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
63342
63343         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
63344         name (relative to the original working directory) and the file
63345         name component (relative to the temporary working directory).  All
63346         callers changed.
63347         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
63348         * lib/mkdir-p.c (make_dir_parents): Likewise.
63349         * lib/mkdir-p.h (make_dir_parents): Likewise.
63350
63351 2006-10-06  Eric Blake  <ebb9@byu.net>
63352
63353         Define several macros for use by the clean-temp module.
63354         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
63355         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
63356         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
63357
63358         * lib/clean-temp.h (close_stream_temp): New declaration.
63359         * lib/clean-temp.c (includes): Pull in headers according to what
63360         other modules are in use.
63361         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
63362
63363 2006-10-06  Bruno Haible  <bruno@clisp.org>
63364
63365         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
63366         instead of fopen, fwriteerror.
63367
63368 2006-10-06  Bruno Haible  <bruno@clisp.org>
63369
63370         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
63371         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
63372         int.
63373         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
63374         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
63375         Return an error indicator.
63376         Suggested by Eric Blake.
63377
63378 2006-10-06  Bruno Haible  <bruno@clisp.org>
63379
63380         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
63381         Reported by Eric Blake.
63382
63383 2006-10-06  Bruno Haible  <bruno@clisp.org>
63384
63385         * modules/closeout (Description): Mention stderr too.
63386
63387 2006-10-06  Bruno Haible  <bruno@clisp.org>
63388         and Paul Eggert  <eggert@cs.ucla.edu>
63389
63390         * lib/closeout.c (close_stdout): Also close stderr.
63391         * lib/closeout.h: Update comment.
63392
63393 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
63394
63395         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
63396         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
63397         * lib/dirchownmod.c: Include lchown.h.
63398         * lib/lchown.c: Don't include files that lchown.h now includes.
63399         Don't declare chown, since lchown.h now does that.
63400         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
63401         (lchown): Define to rpl_chown if lchown is declared but
63402         does not exist.  Declare using a prototype if lchown is not
63403         declared.  Add a copyright notice.
63404         * lib/mkstemp.h: Include <unistd.h>.
63405         * lib/openat.c: Include lchown.h.
63406
63407         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
63408         we now test for that separately.
63409         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
63410         rather than O_NOFOLLOW, when testing whether it's possible to
63411         avoid a race condition reliably.
63412         * lib/savewd.c (savewd_chdir): Likewise.
63413
63414         Remove macros that are no longer needed now that stdint.h is
63415         reliable.
63416         * lib/fsusage.c (UINTMAX_MAX): Remove.
63417         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
63418         * lib/utimecmp.c (SIZE_MAX): Remove.
63419
63420         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
63421
63422         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
63423         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
63424         O_NOATIME works.
63425
63426 2006-10-05  Bruno Haible  <bruno@clisp.org>
63427
63428         * lib/gl_list.h (gl_sortedlist_search_from_to,
63429         gl_sortedlist_indexof_from_to): New declarations.
63430         (gl_list_implementation): New fields sortedlist_search_from_to,
63431         sortedlist_indexof_from_to.
63432         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
63433         inline functions.
63434         * lib/gl_list.c (gl_sortedlist_search_from_to,
63435         gl_sortedlist_indexof_from_to): New functions.
63436         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
63437         function.
63438         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
63439         (gl_array_sortedlist_search_from_to): New function.
63440         (gl_array_list_implementation): Update.
63441         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
63442         function.
63443         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
63444         (gl_carray_sortedlist_search_from_to): New function.
63445         (gl_carray_list_implementation): Update.
63446         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
63447         gl_linked_sortedlist_indexof_from_to): New functions.
63448         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
63449         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
63450         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
63451         gl_tree_sortedlist_indexof_from_to): New functions.
63452         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
63453         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
63454         Update.
63455         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
63456         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
63457         Update.
63458
63459 2006-10-05  Bruno Haible  <bruno@clisp.org>
63460
63461         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
63462         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
63463         (struct gl_list_implementation): Add fields search_from_to,
63464         indexof_from_to. Remove fields search, indexof.
63465         (gl_list_search): Use the search_from_to method.
63466         (gl_list_search_from, gl_list_search_from_to): New functions.
63467         (gl_list_indexof): Use the indexof_from_to method.
63468         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
63469         * lib/gl_list.c (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_array_list.c (gl_array_indexof_from_to): Renamed from
63474         gl_array_indexof. Add start_index, end_index arguments.
63475         (gl_array_search_from_to): Renamed from gl_array_search. Add
63476         start_index, end_index arguments.
63477         (gl_array_remove, gl_array_list_implementation): Update.
63478         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
63479         gl_carray_indexof. Add start_index, end_index arguments.
63480         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
63481         start_index, end_index arguments.
63482         (gl_carray_remove, gl_carray_list_implementation): Update.
63483         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
63484         gl_linked_search. Add start_index, end_index arguments.
63485         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
63486         start_index, end_index arguments.
63487         (gl_linked_remove): Update.
63488         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
63489         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
63490         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
63491         field to 'size_t'.
63492         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
63493         gl_tree_search. Add start_index, end_index arguments.
63494         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
63495         start_index, end_index arguments.
63496         (gl_tree_remove): Update.
63497         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
63498         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
63499         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
63500         function.
63501         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
63502         gl_tree_search. Add start_index, end_index arguments.
63503         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
63504         start_index, end_index arguments.
63505         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
63506         Update.
63507         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
63508
63509 2006-10-05  Bruno Haible  <bruno@clisp.org>
63510
63511         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
63512
63513         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
63514         fwriteerror_temp): New declarations.
63515         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
63516         (descriptors): New variable.
63517         (cleanup): First, close the descriptors.
63518         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
63519         fclose_temp, fwriteerror_temp): New functions.
63520
63521 2006-10-04  Jim Meyering  <jim@meyering.net>
63522
63523         * lib/fts.c (fts_open): Tiny comment change.
63524
63525 2006-10-04  Bruno Haible  <bruno@clisp.org>
63526
63527         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
63528         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
63529         gl_LOCK_BODY.
63530         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
63531         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
63532         gl_LOCK_EARLY_BODY.
63533         (gl_LOCK): Require gl_LOCK_BODY.
63534
63535 2006-10-04  Bruno Haible  <bruno@clisp.org>
63536
63537         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
63538         (gl_oset_search_atleast): New declaration.
63539         (struct gl_oset_implementation): Add field 'search_atleast'.
63540         (gl_oset_search_atleast): New inline function.
63541         * lib/gl_oset.c (gl_oset_search_atleast): New function.
63542         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
63543         (gl_array_oset_implementation): Update.
63544         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
63545         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
63546         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
63547
63548 2006-10-04  Bruno Haible  <bruno@clisp.org>
63549
63550         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
63551
63552 2006-10-03  Bruno Haible  <bruno@clisp.org>
63553
63554         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
63555         from gl_avltreehash_list_implementation.
63556
63557 2006-10-03  Bruno Haible  <bruno@clisp.org>
63558
63559         * lib/gl_oset.c (gl_oset_add): Fix return type.
63560
63561 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
63562
63563         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
63564
63565 2006-10-02  Eric Blake  <ebb9@byu.net>
63566
63567         * modules/strnlen (Depends-on): Add extensions.
63568
63569 2006-10-02  Eric Blake  <ebb9@byu.net>
63570
63571         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
63572         definition in 2.60+.
63573
63574 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
63575
63576         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
63577         checks.
63578
63579 2006-10-02  Bruno Haible  <bruno@clisp.org>
63580
63581         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
63582         to the AUTOMAKE_OPTIONS.
63583         Reported by Jim Meyering.
63584
63585 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
63586
63587         Work around bug in Solaris 10 /proc file system:
63588         /proc/self/fd/NNN/.. isn't the parent directory of
63589         the directory whose file descriptor is NNN.  This needs to
63590         be worked around at run time, not compile time, since a
63591         program might be built on Solaris 8, where things work, and
63592         run on Solaris 10.
63593         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
63594         to use the following interface instead:
63595         (OPENAT_BUFFER_SIZE): New macro.
63596         (openat_proc_name): New function.
63597         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
63598         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
63599         Likewise.
63600         * lib/openat-proc.c: New file.
63601         * modules/openat (Files): Add lib/openat-proc.c.
63602         (Depends-on): Add same-inode, stdbool.
63603         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
63604
63605 2006-09-29  Bruno Haible  <bruno@clisp.org>
63606
63607         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
63608         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
63609         argument. Set stdout_closed before testing for ferror, not after.
63610         (fwriteerror, fwriteerror_no_ebadf): New functions.
63611
63612 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63613
63614         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
63615
63616 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
63617
63618         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
63619         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
63620
63621 2006-09-28  Jim Meyering  <jim@meyering.net>
63622
63623         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
63624         Include <unistd.h>.
63625
63626 2006-09-28  Bruno Haible  <bruno@clisp.org>
63627
63628         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
63629         * modules/linkedhash-list (Depends-on): Likewise.
63630         * modules/rbtreehash-list (Depends-on): Likewise.
63631
63632 2006-09-28  Bruno Haible  <bruno@clisp.org>
63633
63634         * lib/strndup.h: Simplify the redefinition of strndup.
63635         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
63636         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
63637
63638 2006-09-28  Bruno Haible  <bruno@clisp.org>
63639
63640         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
63641         * lib/gl_linkedhash_list.c: Likewise.
63642         * lib/gl_rbtreehash_list.c: Likewise.
63643
63644 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
63645
63646         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
63647         getaddrinfo.
63648
63649         * lib/__fpending.h: Don't include <stdio_ext.h> unless
63650         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
63651         it causes <stdio_ext.h> to cause a compile-time error.
63652         Problem reported by Nelson H. F. Beebe.
63653         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
63654         of HAVE_DECL___PENDING.
63655
63656         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
63657         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
63658         declaration.
63659
63660 2006-09-27  Jim Meyering  <jim@meyering.net>
63661
63662         This file could end up with a definition for a function
63663         named __strndup, rather than rpl_strndup on a system with
63664         incomplete weak_alias support.
63665         * lib/strndup.c (strndup): Rename from __strndup.
63666         Remove #defines that used to map __strndup to strndup.
63667         Don't use K&R prototypes.
63668         Remove LIBC-related code, since this file is not sync'd with glibc.
63669         * lib/strndup.h: Revamp, accordingly.
63670         * m4/strndup.m4: Modernize.
63671
63672 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
63673
63674         * modules/savewd (Depends-on): Add 'raise'.
63675         * lib/savewd.c: Include <signal.h>, for 'raise'.
63676
63677 2006-09-26  Jim Meyering  <jim@meyering.net>
63678
63679         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
63680         when we detect Darwin 8.7.0's acl_get_file bug.
63681         Rearrange to perform the new (below) run-test while $LIBS
63682         contains any acl-related library.  Set USE_ACL at the end.
63683         (gl_ACL_GET_FILE): New function.
63684
63685 2006-09-26  Eric Blake  <ebb9@byu.net>
63686
63687         * lib/verror.c: Include <config.h> unconditionally.
63688
63689 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
63690
63691         * modules/clock-time (Maintainer): Add self.
63692         * modules/getlogin_r (Depends-on): Add extensions.
63693
63694 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63695
63696         * modules/clock-time: New module.
63697         * modules/nanosleep (Depends-on): Add clock-time.
63698         * modules/gethrxtime (Depends-on): Likewise.
63699         * modules/gettime (Depends-on): Likewise.
63700         * modules/settime (Depends-on): Likewise.
63701
63702         * modules/fts-lgpl: Depend on openat.
63703         * modules/mkancesdirs: Depend on savewd.
63704         * modules/mkdir-p: Likewise.
63705
63706 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63707
63708         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
63709
63710         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
63711         `gl_have_arbitrary_file_name_length_limit' to
63712         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
63713         actually works between configure runs.
63714
63715 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63716             Bruno Haible  <bruno@clisp.org>
63717
63718         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
63719
63720 2006-09-25  Jim Meyering  <jim@meyering.net>
63721
63722         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
63723         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
63724
63725 2006-09-25  Eric Blake  <ebb9@byu.net>
63726
63727         * gnulib-tool (func_import, func_create_testdir): Fix typos in
63728         exec's in 2006-09-18 patch when shuffling fds.
63729
63730 2006-09-25  Bruno Haible  <bruno@clisp.org>
63731
63732         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
63733         Reported by Jim Meyering.
63734
63735 2006-09-24  Jim Meyering  <jim@meyering.net>
63736
63737         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
63738         compare a pointer against a literal "0".  That caused failures with
63739         at least HP-UX's hpcc.
63740
63741 2006-09-22  Simon Josefsson  <jas@extundo.com>
63742
63743         * modules/gc-sha1:
63744         * modules/gc-md4:
63745         * modules/gc-hmac-sha1:
63746         * modules/gc-hmac-md5:
63747         * modules/gc-des:
63748         * modules/gc-arcfour: Distribute more files.
63749
63750 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63751
63752         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
63753         (gl_linked_iterator_from_to): Initialize struct completely.
63754         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
63755         (gl_tree_iterator_from_to): Likewise
63756         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
63757         * lib/gl_array_list.c [lint] (gl_array_iterator)
63758         (gl_array_iterator_from_to): Likewise.
63759         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
63760         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
63761         (gl_carray_iterator_from_to): Likewise.
63762
63763         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
63764         * lib/md4.c (md4_process_block): Remove unused variable.
63765         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
63766         parentheses for clarity.
63767
63768 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63769
63770         * modules/bison-i18n (Depends-on): Add gettext.
63771
63772 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63773
63774         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
63775         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
63776         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
63777         also add missing comma that caused broken test.
63778         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
63779         stdlib.h, for `abort'.
63780         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
63781         variables.
63782         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
63783         include unistd.h if present, for `rmdir'.
63784         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
63785         variables.
63786         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
63787         in the process include standard headers for prototypes.
63788         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
63789         gets declared on GNU/Linux.
63790         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
63791         unistd.h, for `rmdir'.
63792         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
63793
63794         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
63795         always true.
63796         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
63797
63798         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
63799
63800 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63801
63802         * gnulib-tool (func_version): Create output all at once.  This
63803         may help avoid triggering unnecessary SIGPIPEs, and at any
63804         rate it doesn't hurt.
63805
63806 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63807             Bruno Haible  <bruno@clisp.org>
63808
63809         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
63810         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
63811         * m4/signed.m4 (bh_C_SIGNED): Likewise.
63812
63813         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
63814         (gl_FUNC_VASPRINTF): Invoke it.
63815
63816 2006-09-22  Bruno Haible  <bruno@clisp.org>
63817
63818         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
63819         getloadavg.c as first argument.
63820
63821 2006-09-22  Bruno Haible  <bruno@clisp.org>
63822
63823         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
63824         at the beginning of the gl_INIT macro.
63825         * modules/getloadavg (configure.ac): Pass $gl_source_base to
63826         gl_GETLOADAVG.
63827
63828 2006-09-22  Bruno Haible  <bruno@clisp.org>
63829
63830         * gnulib-tool (func_create_megatestdir): Don't include the config-h
63831         module.
63832         Suggested by Ralf Wildenhues.
63833
63834 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
63835
63836         Import this patch from libc:
63837
63838         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
63839
63840         * lib/regex_internal.c (re_string_reconstruct): Handle
63841         offset < pstr->valid_raw_len && pstr->offsets_needed case.
63842         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
63843         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
63844         re_string_context_at.
63845
63846         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
63847         now requires it.
63848         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
63849         gl_REGEX now does it for us.
63850         (gl_REGEX): Add test taken from
63851         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
63852
63853         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
63854         Check that large offsets work.  Modernize Autoconf usages.
63855         Prefer "yes" to mean a good thing rather than a bad.
63856         Don't put "#define mkstemp" in config.h, as this might interfere
63857         with standard system headers that "#define mkstemp mkstemp64".
63858
63859         * modules/mkstemp (Depends-on): Add extensions, so that
63860         mkstemp is visible on some platforms.
63861         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
63862         (Include): Change to "mkstemp.h" from <stdlib.h>.
63863         (Files): Add mkstemp.h.
63864
63865         * lib/mkstemp.h: New file, since some standard headers
63866         #define mkstemp.
63867         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
63868         Include "mkstemp.h".
63869         Make the _LIBC code resemble glibc original more,
63870         e.g., use K&R style.
63871         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
63872         (mkstemp): Remove, since mkstemp.h does this for us.
63873         * lib/stdlib--.h: Include mkstemp.h.
63874
63875         Import this patch from libc:
63876
63877         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
63878
63879         * lib/tempname.c (__gen_tempname): Change attempts_min
63880         into a macro.  Use preprocessor to decide how to initialize
63881         attempts [Coverity CID 67].
63882
63883 2006-09-20  Bruno Haible  <bruno@clisp.org>
63884
63885         * lib/mkdtemp.c: Import from libc.
63886         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
63887                 * sysdeps/posix/tempname.c (__gen_tempname): Change
63888                 attempts_min into a macro.  Use preprocessor to decide how to
63889                 initialize attempts [Coverity CID 67].
63890         2001-11-27  Paul Eggert  <eggert@twinsun.com>
63891                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
63892                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
63893
63894 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63895
63896         * gnulib-tool (func_exit): New function, to allow to pass the
63897         exit status portably through the trap.  Use everywhere.
63898         (--help, --version): Signal a write error.
63899         (trap): catch SIGPIPE, for write errors.
63900         Exit at the end of the trap, with the correct exit status.
63901
63902 2006-09-19  Karl Berry  <karl@gnu.org>
63903
63904         * doc/gnulib.texi: note about the license texinfo files.
63905
63906 2006-09-19  Eric Blake  <ebb9@byu.net>
63907
63908         * gnulib-tool: Avoid space-tab.
63909
63910 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
63911
63912         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
63913         that prevented coreutils 6.1 from building.  Problem reported
63914         by Petter Reinholdtsen.
63915
63916 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
63917
63918         * gnulib-tool (avoidlist): Fix typo that broke options like
63919         --avoid=lock that are used by coreutils bootstrap.
63920
63921 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
63922
63923         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
63924         more systematically.
63925
63926 2006-09-18  Jim Meyering  <jim@meyering.net>
63927
63928         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
63929
63930 2006-09-18  Bruno Haible  <bruno@clisp.org>
63931
63932         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
63933
63934 2006-09-18  Bruno Haible  <bruno@clisp.org>
63935
63936         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
63937         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
63938         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
63939         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
63940         * m4/gettext.m4: Require autoconf >= 2.52.
63941         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
63942         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
63943         of gl_cv_header_inttypes_h.
63944
63945 2006-09-18  Bruno Haible  <bruno@clisp.org>
63946
63947         * lib/javaversion.c: Include configmake.h.
63948
63949 2006-09-18  Bruno Haible  <bruno@clisp.org>
63950
63951         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
63952         avoid that the while loops be executed in a subshell.
63953
63954 2006-09-18  Bruno Haible  <bruno@clisp.org>
63955
63956         * MODULES.html.sh (func_module): Break long lines.
63957         Suggested by Bruce Korb <bkorb@gnu.org>.
63958
63959 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63960
63961         Speed up by a factor of 1.12.
63962         * gnulib-tool (nl): New variable.
63963         (func_import): Rewrite include directive extraction to only read each
63964         directive once.
63965
63966 2006-09-17  Bruno Haible  <bruno@clisp.org>
63967
63968         * modules/javaversion (Makefile.am): Remove DEFS setting.
63969         (Depends-on): Add configmake, for PKGDATADIR definition.
63970
63971 2006-09-17  Bruno Haible  <bruno@clisp.org>
63972
63973         * gnulib-tool (func_create_testdir): Rewrite all files at once.
63974
63975 2006-09-17  Bruno Haible  <bruno@clisp.org>
63976
63977         * gnulib-tool (func_append): New function, stolen from libtool.m4.
63978         (func_modules_transitive_closure, func_modules_add_dummy,
63979         func_modules_to_filelist, func_import, func_create_testdir,
63980         func_create_megatestdir, ...): Use it wherever possible.
63981         Suggested by Ralf Wildenhues.
63982
63983 2006-09-16  Karl Berry  <karl@gnu.org>
63984
63985         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
63986         to avoid sectioning errors.
63987         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
63988         [ifinfo]: blank line after @center-ed titles.
63989         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
63990         Spell FSF address consistently with others.
63991         (These changes approved by rms.)
63992
63993 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63994
63995         Speed up by a factor of 1.61.
63996         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
63997         already checked module names again.
63998
63999 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64000
64001         Speed up by a factor of 1.13.
64002         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
64003         for new_files, and the input to func_add_or_update.
64004
64005 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64006
64007         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
64008         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
64009
64010 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
64011
64012         * modules/mkancesdirs (Depends-on): Add fcntl.
64013         * modules/savewd: New file.
64014         * MODULES.html.sh (File system functions): Add savewd.
64015
64016         * modules/configmake (Makefile.am): Add support for the
64017         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
64018
64019 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
64020
64021         * m4/savewd.m4: New file.
64022
64023 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
64024
64025         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
64026         (dirchownmod): New arg FD.  All callers changed.
64027         Use FD rather than opening the directory ourself, as opening is
64028         now the caller's responsibility.
64029         * lib/dirchownmod.h: Likewise.
64030         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
64031         hosts that require <sys/types.h> before <sys/stat.h>.  Include
64032         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
64033         (test_dir): Remove.
64034         (mkancesdirs): Return length of prefix of FILE that has already
64035         been made, or -2 if there is a child doing the work.  Redo
64036         algorithm so that it is O(N) rather than O(N**2).  Optimize away
64037         ".", and treat ".." specially since it might stray back into
64038         already-created areas.  Use a subprocess if necessary.  New arg
64039         WD; all users changed.  MAKE_DIR function should now return 1
64040         if it creates a directory that is not readable.  Return -2 if
64041         a child process is spun off.
64042         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
64043         Adjust signature to match code.
64044         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
64045         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
64046         all users changed.
64047         * lib/savewd.c, lib/savewd.h: New files.
64048
64049 2006-09-15  Jim Meyering  <jim@meyering.net>
64050
64051         * modules/rename-dest-slash: New module.
64052         * MODULES.html.sh (posix_compat): Add it here.
64053
64054         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
64055
64056 2006-09-15  Jim Meyering  <jim@meyering.net>
64057
64058         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
64059         file.
64060
64061         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
64062
64063 2006-09-15  Jim Meyering  <jim@meyering.net>
64064
64065         * lib/rename-dest-slash.c (has_trailing_slash): Use
64066         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
64067         (rpl_rename_dest_slash): Perform the cheaper trailing slash
64068         test before testing whether SRC is a directory.
64069         Suggestions from Bruno Haible.
64070
64071         Avoid a warning about an unused variable.
64072         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
64073         into the #ifdef block where it's used.
64074
64075         * lib/rename-dest-slash.c: New file.
64076
64077 2006-09-14  Bruno Haible  <bruno@clisp.org>
64078
64079         * lib/allocsa.c: Include <config.h> unconditionally.
64080         * lib/asnprintf.c: Likewise.
64081         * lib/asprintf.c: Likewise.
64082         * lib/c-strcasecmp.c: Likewise.
64083         * lib/c-strcasestr.c: Likewise.
64084         * lib/c-strncasecmp.c: Likewise.
64085         * lib/c-strstr.c: Likewise.
64086         * lib/classpath.c: Likewise.
64087         * lib/clean-temp.c: Likewise.
64088         * lib/concatpath.c: Likewise.
64089         * lib/copy-file.c: Likewise.
64090         * lib/csharpcomp.c: Likewise.
64091         * lib/csharpexec.c: Likewise.
64092         * lib/execute.c: Likewise.
64093         * lib/fatal-signal.c: Likewise.
64094         * lib/findprog.c: Likewise.
64095         * lib/fwriteerror.c: Likewise.
64096         * lib/gl_array_list.c: Likewise.
64097         * lib/gl_array_oset.c: Likewise.
64098         * lib/gl_avltree_list.c: Likewise.
64099         * lib/gl_avltree_oset.c: Likewise.
64100         * lib/gl_avltreehash_list.c: Likewise.
64101         * lib/gl_carray_list.c: Likewise.
64102         * lib/gl_linked_list.c: Likewise.
64103         * lib/gl_linkedhash_list.c: Likewise.
64104         * lib/gl_list.c: Likewise.
64105         * lib/gl_oset.c: Likewise.
64106         * lib/gl_rbtree_list.c: Likewise.
64107         * lib/gl_rbtree_oset.c: Likewise.
64108         * lib/gl_rbtreehash_list.c: Likewise.
64109         * lib/imaxabs.c: Likewise.
64110         * lib/imaxdiv.c: Likewise.
64111         * lib/javacomp.c: Likewise.
64112         * lib/javaexec.c: Likewise.
64113         * lib/javaversion.c: Likewise.
64114         * lib/linebreak.c: Likewise.
64115         * lib/localcharset.c: Likewise.
64116         * lib/lock.c: Likewise.
64117         * lib/mbchar.c: Likewise.
64118         * lib/mbswidth.c: Likewise.
64119         * lib/mkdtemp.c: Likewise.
64120         * lib/pipe.c: Likewise.
64121         * lib/printf-args.c: Likewise.
64122         * lib/printf-parse.c: Likewise.
64123         * lib/progname.c: Likewise.
64124         * lib/progreloc.c: Likewise.
64125         * lib/readlink.c: Likewise.
64126         * lib/sh-quote.c: Likewise.
64127         * lib/stpcpy.c: Likewise.
64128         * lib/stpncpy.c: Likewise.
64129         * lib/strcasecmp.c: Likewise.
64130         * lib/strcasestr.c: Likewise.
64131         * lib/strcspn.c: Likewise.
64132         * lib/striconv.c: Likewise.
64133         * lib/strncasecmp.c: Likewise.
64134         * lib/strnlen1.c: Likewise.
64135         * lib/strstr.c: Likewise.
64136         * lib/strtok_r.c: Likewise.
64137         * lib/tls.c: Likewise.
64138         * lib/tmpdir.c: Likewise.
64139         * lib/unicodeio.c: Likewise.
64140         * lib/unsetenv.c: Likewise.
64141         * lib/vasnprintf.c: Likewise.
64142         * lib/vasprintf.c: Likewise.
64143         * lib/wait-process.c: Likewise.
64144         * lib/xallocsa.c: Likewise.
64145         * lib/xsetenv.c: Likewise.
64146         * lib/xstriconv.c: Likewise.
64147
64148 2006-09-13  Simon Josefsson  <jas@extundo.com>
64149
64150         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
64151         that internally, suggested by Ralf Wildenhues
64152         <Ralf.Wildenhues@gmx.de>.
64153
64154 2006-09-13  Simon Josefsson  <jas@extundo.com>
64155
64156         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
64157         @LIBOBJS@.
64158         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64159
64160 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
64161
64162         * lib/_fpending.c: Include <config.h> unconditionally, since we no
64163         longer worry about uses that don't define HAVE_CONFIG_H.
64164         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
64165         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
64166         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
64167         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
64168         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
64169         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
64170         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
64171         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
64172         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
64173         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
64174         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
64175         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
64176         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
64177         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
64178         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
64179         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
64180         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
64181         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
64182         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
64183         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
64184         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
64185         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
64186         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
64187         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
64188         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
64189         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
64190         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
64191         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
64192         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
64193         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
64194         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
64195         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
64196         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
64197         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
64198         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
64199         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
64200         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
64201         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
64202         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
64203         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
64204         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
64205         Likewise.
64206
64207 2006-09-13  Eric Blake  <ebb9@byu.net>
64208
64209         * lib/getopt.c: Fix typo in last commit.
64210
64211 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
64212
64213         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
64214         dgettext.
64215
64216 2006-09-12  Jim Meyering  <jim@meyering.net>
64217
64218         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
64219         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
64220         Reported by Nelson H. F. Beebe.
64221
64222 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
64223
64224         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
64225         program_invocation_name and program_invocation_short_name are
64226         initialized.
64227         * lib/argp-namefrob.h: Move declarations of program_invocation_name
64228         and program_invocation_short_name to argp.h, so they are visible
64229         to user programs.
64230         * lib/argp.h: Likewise
64231
64232 2006-09-10  Bruno Haible  <bruno@clisp.org>
64233
64234         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
64235         m4/inttypes_h.m4, m4/uintmax_t.m4.
64236
64237 2006-09-10  Bruno Haible  <bruno@clisp.org>
64238
64239         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
64240         gl_AC_TYPE_UINTMAX_T.
64241
64242 2006-09-10  Bruno Haible  <bruno@clisp.org>
64243
64244         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
64245
64246 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
64247
64248         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
64249         convention.  Text proposed by Bruno Haible.
64250         (struct argp_option): Document the use of N_() wrappers.
64251
64252         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
64253         '\v', and translate the two parts separately, instead of feeding
64254         the whole string to gettext.  This allows to exclude
64255         '\v' from the strings visible to the translator by writing doc
64256         strings as N_("..") "\v" N_("..").
64257
64258 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
64259
64260         * config/srclist.txt: Undo latest change; the bug was fixed.
64261
64262 2006-09-09  Bruno Haible  <bruno@clisp.org>
64263
64264         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
64265         assignments if building a library without libtool.
64266         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
64267         in func_emit_lib_Makefile_am.
64268         (func_import): When building a static library libfoo.a, arrange to
64269         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
64270         (func_create_testdir): Likewise.
64271         * modules/gc (configure.ac, Makefile.am): If building statically,
64272         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
64273         * modules/iconvme (configure.ac, Makefile.am): Likewise.
64274         * modules/striconv (configure.ac, Makefile.am): Likewise.
64275         Based on a suggestion by Ralf Wildenhues.
64276
64277 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
64278
64279         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
64280         Check for unistd.h too, since Autoconf doesn't assume POSIX.
64281         Also:
64282
64283         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
64284         Add year_2050_test to catch glibc bug 2821
64285         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
64286
64287         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
64288         Prefer #ifdef to #if.
64289
64290         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
64291         Return from 'main' instead of calling 'exit'.
64292
64293 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
64294
64295         * lib/mktime.c (guess_time_tm): Fix bug where mktime
64296         returned the maximum time_t value rather than (time_t) -1.
64297         Problem originally reported by William Bardwell
64298         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
64299
64300         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
64301         Moved to here ...
64302         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
64303         ... from here.
64304
64305 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
64306
64307         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
64308         2821 is fixed.
64309
64310 2006-09-08  Jim Meyering  <jim@meyering.net>
64311
64312         Don't make generated files read-only.  That would bother too many
64313         people.  However, do retain the ability to work when targets are
64314         read-only: remove the destination and temporary files before writing
64315         them (when generated via sed or echo), or by using the -f option for
64316         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
64317         * modules/alloca-opt, modules/argz, modules/arpa_inet:
64318         * modules/byteswap, modules/configmake, modules/fcntl:
64319         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
64320         * modules/localcharset, modules/netinet_in, modules/poll:
64321         * modules/stdbool, modules/stdint, modules/sys_select:
64322         * modules/sys_socket, modules/sys_stat, modules/sysexits:
64323
64324 2006-09-08  Jim Meyering  <jim@meyering.net>
64325
64326         Avoid new build failure on FreeBSD 6.0.
64327         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
64328         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
64329         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
64330
64331 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64332
64333         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
64334
64335 2006-09-07  Jim Meyering  <jim@meyering.net>
64336
64337         Fix global typo in last change: use chmod u-w, not chmod u-x.
64338         Spotted by Paul Eggert and Bruce Korb.
64339         * modules/alloca-opt, modules/argz, modules/arpa_inet:
64340         * modules/byteswap, modules/configmake, modules/fcntl:
64341         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
64342         * modules/localcharset, modules/netinet_in, modules/poll:
64343         * modules/stdbool, modules/stdint, modules/sys_select:
64344         * modules/sys_socket, modules/sys_stat, modules/sysexits:
64345
64346 2006-09-06  Jim Meyering  <jim@meyering.net>
64347
64348         Make generated files be read-only.
64349         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
64350         Ensure that each generated file is now read-only.
64351         * modules/argz: Likewise.
64352         * modules/arpa_inet: Likewise.
64353         * modules/byteswap: Likewise.
64354         * modules/configmake: Likewise.
64355         * modules/fcntl: Likewise.
64356         * modules/fnmatch: Likewise.
64357         * modules/getopt: Likewise.
64358         * modules/glob: Likewise.
64359         * modules/inttypes: Likewise.
64360         * modules/netinet_in: Likewise.
64361         * modules/poll: Likewise.
64362         * modules/stdbool: Likewise.
64363         * modules/stdint: Likewise.
64364         * modules/sys_select: Likewise.
64365         * modules/sys_socket: Likewise.
64366         * modules/sys_stat: Likewise.
64367         * modules/sysexits: Likewise.
64368         * modules/localcharset: Same as above, but continue using temporary
64369         file named "t-$@" (why different?) rather than the "$@-t" used
64370         everywhere else.
64371
64372         * modules/sysexits (Makefile.am): Replace literal occurrences
64373         of "sysexit.h" more readable, and more consistent, "$@".
64374
64375 2006-09-06  Bruno Haible  <bruno@clisp.org>
64376
64377         * modules/striconv: New file.
64378         * modules/xstriconv: New file.
64379         * MODULES.html.sh (Internationalization functions): Add striconv,
64380         xstriconv.
64381
64382 2006-09-06  Bruno Haible  <bruno@clisp.org>
64383
64384         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
64385         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
64386         not using libtool correctly.
64387
64388 2006-09-06  Bruno Haible  <bruno@clisp.org>
64389
64390         * lib/striconv.h: New file.
64391         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
64392         iconvstring.c.
64393         * lib/xstriconv.h: New file.
64394         * lib/xstriconv.c: New file.
64395
64396 2006-09-06  Bruno Haible  <bruno@clisp.org>
64397
64398         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
64399         lib_..._LDFLAGS.
64400
64401 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64402
64403         * lib/argz_.h: Sync from Libtool.
64404
64405         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
64406                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
64407
64408         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
64409
64410 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
64411
64412         * modules/trim: New file.
64413
64414 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
64415
64416         * lib/trim.h: New file.
64417         * lib/trim.c: New file.
64418
64419 2006-09-05  Bruno Haible  <bruno@clisp.org>
64420
64421         * MODULES.html.sh (String handling): Add trim.
64422
64423 2006-09-04  Karl Berry  <karl@gnu.org>
64424
64425         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
64426         until next release.
64427
64428 2006-09-03  Bruno Haible  <bruno@clisp.org>
64429
64430         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
64431         correctly.
64432
64433 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
64434
64435         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
64436         not gl_GETLOADAVG.  Omit unneeded semicolons.
64437         Problems reported by Ralf Wildenhues in
64438         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
64439         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
64440         at the end, which is the usual gnulib style.
64441
64442         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
64443         of doing all the work ourselves.
64444         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
64445         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
64446
64447 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
64448
64449         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
64450         Problem reported by Ralf Wildenhues in
64451         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
64452
64453         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
64454         HAVE_STRUCT_STATFS_F_FSTYPENAME.
64455
64456 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
64457
64458         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
64459         yesterday's patch by changing test -n to test -z.
64460
64461 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
64462
64463         * modules/getloadavg (Files): Add m4/getloadavg.m4.
64464         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
64465         the former is now obsolescent.
64466
64467         * modules/chdir-long (Depends-on): Add fcntl.
64468
64469 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
64470
64471         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
64472         obsolescent, and programs should use gnulib instead.
64473         * m4/getloadavg.m4: New file, with contents taken from Autoconf
64474         but with prefixes changed.
64475
64476 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
64477
64478         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
64479         or stdbool.h, because they might not exist while configuring.
64480
64481         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
64482         Don't include unistd.h or limits.h; not needed, since chdir-long.h
64483         does that for us.
64484         (O_DIRECTORY): Remove.
64485
64486 2006-08-31  Eric Blake  <ebb9@byu.net>
64487
64488         * gnulib-tool: Don't let emacs change spaces to TAB.
64489
64490 2006-08-31  Bruno Haible  <bruno@clisp.org>
64491
64492         * gnulib-tool: When calling func_import more than once, do it in a
64493         subshell.
64494         Reported by Eric Blake <ebb9@byu.net>.
64495
64496 2006-08-31  Bruno Haible  <bruno@clisp.org>
64497
64498         * gnulib-tool (nl): Remove variable.
64499         (sed_transform_lib_file): Use more robust test for config-h module.
64500         (func_import): Fix typo in 2006-08-25 patch.
64501
64502 2006-08-31  Bruno Haible  <bruno@clisp.org>
64503
64504         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
64505         specified, augment Makefile.am variables instead of assigning them.
64506
64507 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
64508
64509         Work around a bug in both the Linux and SunOS 64-bit kernels:
64510         nanosleep mishandles sleeps for longer than 2**31 seconds.
64511         Problem reported by Frank v Waveren in
64512         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
64513         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
64514         Check for nanosleep bug.
64515         (LIB_NANOSLEEP): Append clock_gettime library if needed.
64516
64517 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
64518
64519         Work around a bug in both the Linux and SunOS 64-bit kernels:
64520         nanosleep mishandles sleeps for longer than 2**31 seconds.
64521         Problem reported by Frank v Waveren in
64522         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
64523         * lib/nanosleep.c (BILLION): New constant.
64524         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
64525         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
64526         implementation.
64527
64528 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
64529
64530         * modules/nanosleep (Depends-on): Add gettime.
64531
64532 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
64533         and Simon Josefsson  <jas@extundo.com>
64534         and Oskar Liljeblad  <oskar@osk.mine.nu>
64535
64536         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
64537         * gnulib-tool (func_import): New license type 'unmodifiable license
64538         text'.
64539         * modules/fdl: Use it.  Longer description.
64540         * module/gpl, module/lgpl: New files.
64541
64542 2006-08-30  Jim Meyering  <jim@meyering.net>
64543
64544         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
64545         shadowing the parameter.
64546
64547 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64548
64549         Sync from Libtool:
64550
64551         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64552
64553         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
64554         sharing with gnulib.  Report by Eric Blake.
64555
64556 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
64557
64558         * modules/isapipe: New file.
64559         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
64560
64561 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
64562
64563         * modules/configmake (Makefile.am): Add a comment, and omit
64564         the CONFIGMAKE_ prefix from generated macro names.  Suggested
64565         by Bruno Haible.
64566
64567 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
64568
64569         * m4/isapipe.m4: New file.
64570
64571 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
64572
64573         * lib/isapipe.c, lib/isapipe.h: New files.
64574
64575 2006-08-29  Jim Meyering  <jim@meyering.net>
64576
64577         * modules/configmake (Makefile.am): Make configmake.h depend on
64578         Makefile.  Otherwise, a stale configmake.h could hang around.
64579
64580 2006-08-29  Eric Blake  <ebb9@byu.net>
64581
64582         * lib/error.c (error_at_line, print_errno_message): Match libc, after
64583         resolution of upstream bug 3044.
64584
64585 2006-08-29  Bruno Haible  <bruno@clisp.org>
64586
64587         * modules/localcharset (Depends-on): Add configmake.
64588         (Makefile.am): Remove setting of LIBDIR through DEFS.
64589
64590 2006-08-29  Bruno Haible  <bruno@clisp.org>
64591
64592         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
64593         defined.
64594
64595 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
64596
64597         * modules/fcntl: New file.
64598         * modules/chdir-safer (Depends-on): Add fcntl.
64599         * modules/fts: Likewise.
64600         * modules/mkdir-p: Likewise.
64601
64602         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
64603         This undoes the most recent change, since we're now addressing the
64604         problem in a different way.
64605
64606         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
64607         into output, since the output might be called Makefile.am even
64608         if $makefile_name is something different.
64609         (func_import): Use $makefile_am rather than
64610         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
64611         empty.
64612
64613         * modules/inttypes (Files): Add m4/inttypes-h.m4.
64614
64615 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
64616
64617         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
64618         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
64619         recent change to stdint.m4, since we're now addressing the problem in a
64620         different way.
64621
64622 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
64623
64624         * m4/fcntl_h.m4: New file.
64625
64626 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
64627
64628         * lib/fcntl_.h: New file.
64629         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
64630         the fcntl module.
64631         * lib/dirchownmod.c: Likewise.
64632         * lib/fts.c: Likewise.
64633
64634         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
64635         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
64636         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
64637         just before including <inttypes.h>, to avoid circular inclusion.
64638
64639 2006-08-28  Jim Meyering  <jim@meyering.net>
64640
64641         * doc/visibility.texi: Actually read and correct the grammar of the
64642         sentence affected by yesterday's change.
64643
64644 2006-08-28  Eric Blake  <ebb9@byu.net>
64645
64646         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
64647         needs wrapper.
64648
64649 2006-08-28  Eric Blake  <ebb9@byu.net>
64650
64651         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
64652
64653 2006-08-28  Eric Blake  <ebb9@byu.net>
64654
64655         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
64656
64657 2006-08-28  Bruno Haible  <bruno@clisp.org>
64658
64659         * modules/c-strstr: New file, from GNU gettext.
64660         * MODULES.html.sh (String handling): Add c-strstr.
64661
64662 2006-08-28  Bruno Haible  <bruno@clisp.org>
64663
64664         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
64665         macros.
64666         Reported by Eric Blake.
64667
64668 2006-08-28  Bruno Haible  <bruno@clisp.org>
64669
64670         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
64671         (VASNPRINTF): Return a string of length > INT_MAX without failing.
64672         * lib/vasprintf.c: Include errno.h, limits.h.
64673         (EOVERFLOW): New fallback definition.
64674         (vasprintf): Test here whether the string length is > INT_MAX.
64675         * lib/vsnprintf.c: Include errno.h, limits.h.
64676         (EOVERFLOW): New fallback definition.
64677         (vsnprintf): Fix bug when generated string was too long for the buffer.
64678         Test here whether the string length is > INT_MAX.
64679
64680 2006-08-28  Bruno Haible  <bruno@clisp.org>
64681
64682         * lib/inttypes_.h (SCNX*): Remove definitions.
64683         Reported by Eric Blake.
64684
64685 2006-08-28  Bruno Haible  <bruno@clisp.org>
64686
64687         * lib/c-strstr.h: New file, from GNU gettext.
64688         * lib/c-strstr.c: New file, from GNU gettext.
64689
64690 2006-08-28  Bruno Haible  <bruno@clisp.org>
64691
64692         * gnulib-tool: Reorder some statements.
64693
64694 2006-08-28  Bruno Haible  <bruno@clisp.org>
64695
64696         * gnulib-tool: New option --makefile-name.
64697         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
64698         $makefile_name.
64699         (func_import): Write $makefile_name to the cache file, and read it from
64700         there unless explicitly specified. Use $makefile_name as file name
64701         instead of Makefile.am. Adjust the recommendations accordingly.
64702
64703 2006-08-28  Bruno Haible  <bruno@clisp.org>
64704
64705         * gnulib-tool (func_verify_module): Check against misapplying patch.
64706
64707 2006-08-28  Bruno Haible  <bruno@clisp.org>
64708
64709         * gnulib-tool (func_relativize, func_relconcat): New functions.
64710         Give an error if --local-dir is given with --update.
64711         Remove trailing slashes from $local_gnulib_dir.
64712         (func_import): Store the relativized $local_gnulib_dir in
64713         gnulib-cache.m4, and read it from there if not specified explicitly.
64714
64715 2006-08-28  Bruno Haible  <bruno@clisp.org>
64716
64717         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
64718         is the current directory. Respect also $local_gnulib_dir.
64719
64720 2006-08-28  Bruno Haible  <bruno@clisp.org>
64721             Simon Josefsson  <jas@extundo.com>
64722
64723         BeOS portability.
64724         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
64725
64726 2006-08-27  Jim Meyering  <jim@meyering.net>
64727
64728         * doc/visibility.texi: Remove duplicate word: "pointer".
64729
64730 2006-08-26  Bruno Haible  <bruno@clisp.org>
64731
64732         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
64733         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
64734         (Makefile.am): Create inttypes.h from inttypes_.h.
64735         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
64736
64737         * modules/imaxabs: New file.
64738
64739         * modules/imaxdiv: New file.
64740
64741 2006-08-26  Bruno Haible  <bruno@clisp.org>
64742
64743         * m4/inttypes.m4: New file.
64744         * m4/_inttypes_h.m4: Remove file.
64745         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
64746         PRI_MACROS_BROKEN.
64747         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
64748
64749         * m4/imaxabs.m4: New file.
64750
64751         * m4/imaxdiv.m4: New file.
64752
64753 2006-08-26  Bruno Haible  <bruno@clisp.org>
64754
64755         * lib/inttypes_.h: New file.
64756         * lib/inttypes.h: Remove file.
64757         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
64758
64759         * lib/imaxabs.c: New file.
64760
64761         * lib/imaxdiv.c: New file.
64762
64763 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
64764
64765         New config-h module, so that "make" output needn't be cluttered
64766         by -DHAVE_CONFIG_H.
64767         * MODULES.html.sh (Support for building libraries and executables):
64768         Add config-h.
64769         * modules/config-h: New file.
64770         * gnulib-tool (nl, sed_transform_lib_file): New vars.
64771         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
64772         the config-h module is used.
64773
64774         New configmake module, so that "make" output needn't be cluttered
64775         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
64776         * MODULES.html.sh (Support for building libraries and executables):
64777         Add configmake.
64778         * modules/configmake: New file.
64779
64780 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
64781
64782         * m4/config-h.m4: New file.
64783
64784 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
64785
64786         * config/srclist.txt: Add elisp-comp.
64787
64788 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
64789
64790         * MODULES.html.sh (Support for building libraries and executables):
64791         Add elisp-comp.
64792         * build-aux/elisp-comp: New file.
64793         * modules/elisp-comp: New file.
64794
64795 2006-08-24  Bruno Haible  <bruno@clisp.org>
64796
64797         * gnulib-tool (func_create_testdir): Use non-default values of
64798         sourcebase and m4base.
64799
64800 2006-08-24  Bruno Haible  <bruno@clisp.org>
64801
64802         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
64803         HTML structure.
64804
64805 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
64806
64807         * modules/openat (Depends-on): Add lchown.
64808
64809 2006-08-23  Bruno Haible  <bruno@clisp.org>
64810
64811         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
64812         of gl_LOCK_EARLY instead of gl_LOCK.
64813
64814 2006-08-23  Bruno Haible  <bruno@clisp.org>
64815
64816         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
64817         on OSF/1 to no.
64818         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
64819
64820 2006-08-23  Bruno Haible  <bruno@clisp.org>
64821
64822         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
64823         as unusable.
64824
64825         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
64826         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
64827         (gl_LOCK): New macro.
64828
64829 2006-08-22  Simon Josefsson  <jas@extundo.com>
64830
64831         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
64832         to md5 module.
64833
64834 2006-08-22  Simon Josefsson  <jas@extundo.com>
64835
64836         * MODULES.html.sh: Add "Support for maintaining and release
64837         projects".
64838
64839         * build-aux/gnupload: New file, from coreutils.
64840
64841 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
64842
64843         Avoid the need for AC_LIBSOURCES in m4 macros.
64844         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
64845         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
64846         * modules/check-version (EXTRA_DIST): Add check-version.h.
64847         * modules/crc (EXTRA_DIST): Add crc.h.
64848         * modules/des (EXTRA_DIST): Add des.h.
64849         * modules/gc (EXTRA_DIST): Add gc.h.
64850         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
64851         * modules/getline (EXTRA_DIST): Add getline.h.
64852         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
64853         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
64854         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
64855         * modules/md2 (EXTRA_DIST): Add md2.h.
64856         * modules/md4 (EXTRA_DIST): Add md4.h.
64857         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
64858         * modules/read-file (EXTRA_DIST): Add read-file.h.
64859         * modules/readline (EXTRA_DIST): Add readline.h.
64860         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
64861         rijndael-api-fst.h.
64862
64863 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
64864
64865         * m4/rijndael.m4 (gl_ARCFOUR):
64866         * m4/arctwo.m4 (gl_ARCTWO):
64867         * m4/check-version.m4 (gl_CHECK_VERSION):
64868         * m4/crc.m4 (gl_CRC):
64869         * m4/des.m4 (gl_DES):
64870         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
64871         * m4/gc.m4 (gl_GC):
64872         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
64873         * m4/getline.m4 (gl_FUNC_GETLINE):
64874         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
64875         * m4/hmac-md5.m4 (gl_HMAC_MD5):
64876         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
64877         * m4/md2.m4 (gl_MD2):
64878         * m4/md4.m4 (gl_MD4):
64879         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
64880         * m4/read-file.m4 (gl_FUNC_READ_FILE):
64881         * m4/readline.m4 (gl_FUNC_READLINE):
64882         * m4/rijndael.m4 (gl_RIJNDAEL):
64883         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
64884         to get the necessary .h files and whatnot.
64885
64886 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
64887
64888         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
64889         gnulib rather than the other way around.
64890         * config/srclistvars.sh (COREUTILS): Remove.
64891
64892 2006-08-22  Jim Meyering  <jim@meyering.net>
64893
64894         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
64895
64896         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
64897
64898 2006-08-22  Eric Blake  <ebb9@byu.net>
64899
64900         * modules/regexprops-generic: New file.
64901         * MODULES.html.sh (Support for building documentation): List it.
64902
64903 2006-08-22  Eric Blake  <ebb9@byu.net>
64904
64905         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
64906         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
64907         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
64908         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
64909
64910 2006-08-22  Bruno Haible  <bruno@clisp.org>
64911
64912         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
64913         and lib_LTLIBRARIES like the other lib_* variables.
64914
64915 2006-08-22  Bruno Haible  <bruno@clisp.org>
64916
64917         * build-aux/x-to-1.in: New file, from GNU gettext.
64918
64919 2006-08-22  Bruno Haible  <bruno@clisp.org>
64920
64921         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
64922         <utmpx.h> exists.
64923
64924 2006-08-22  Bruno Haible  <bruno@clisp.org>
64925
64926         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
64927         <utmpx.h> exists.
64928
64929 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
64930
64931         BeOS portability.
64932         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
64933         exist.
64934         Problem reported by Bruno Haible.
64935
64936 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
64937
64938         Avoid the need for AC_LIBSOURCES in m4 macros.
64939         * modules/acl (EXTRA_DIST): Add acl.h.
64940         * modules/argmatch (Files): Add m4/argmatch.m4.
64941         (configure.ac): Add gl_ARGMATCH.
64942         (EXTRA_DIST): Renamed from lib_SOURCES, for
64943         consistency with the other modules.  Remove argmatch.c.
64944         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
64945         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
64946         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
64947         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
64948         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
64949         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
64950         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
64951         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
64952         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
64953         * modules/closeout (EXTRA_DIST): Add closeout.h.
64954         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
64955         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
64956         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
64957         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
64958         dirname.h; remove basename.c and stripslash.c.
64959         * modules/exclude (EXTRA_DIST): Add exclude.h.
64960         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
64961         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
64962         * modules/file-type (EXTRA_DIST): Add file-type.h.
64963         * modules/filemode (EXTRA_DIST): Add filemode.h.
64964         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
64965         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
64966         * modules/fpending (EXTRA_DIST): Add __fpending.h.
64967         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
64968         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
64969         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
64970         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
64971         * modules/getdate (EXTRA_DIST): Add getdate.c.
64972         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
64973         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
64974         * modules/getpass (EXTRA_DIST): Add getpass.h.
64975         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
64976         * modules/group-member (EXTRA_DIST): Add group-member.h.
64977         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
64978         * modules/hash (EXTRA_DIST): Add hash.h.
64979         * modules/human (EXTRA_DIST): Add human.h.
64980         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
64981         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
64982         * modules/lchown (EXTRA_DIST): Add lchown.h.
64983         * modules/long-options (EXTRA_DIST): Add long-options.h.
64984         * modules/lstat (EXTRA_DIST): Add lstat.h.
64985         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
64986         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
64987         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
64988         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
64989         * modules/memxor (EXTRA_DIST): Add memxor.h.
64990         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
64991         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
64992         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
64993         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
64994         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
64995         * modules/physmem (EXTRA_DIST): Add physmem.h.
64996         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
64997         * modules/posixver (EXTRA_DIST): Add posixver.h.
64998         * modules/quote (EXTRA_DIST): Add quote.h.
64999         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
65000         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
65001         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
65002         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
65003         regex_internal.h regexec.c.
65004         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
65005         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
65006         * modules/same (EXTRA_DIST): Add same.h.
65007         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
65008         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
65009         * modules/savedir (EXTRA_DIST): Add savedir.h.
65010         * modules/sha1 (EXTRA_DIST): Add sha1.h.
65011         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
65012         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
65013         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
65014         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
65015         * modules/strdup (EXTRA_DIST): Add strdup.h.
65016         * modules/strftime (EXTRA_DIST): Add strftime.h.
65017         * modules/strndup (EXTRA_DIST): Add strndup.h.
65018         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
65019         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
65020         * modules/time_r (EXTRA_DIST): Add time_r.h.
65021         * modules/timespec (EXTRA_DIST): Add timespec.h.
65022         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
65023         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
65024         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
65025         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
65026         * modules/userspec (EXTRA_DIST): Add userspec.h.
65027         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
65028         * modules/utimens (EXTRA_DIST): Add utimens.h.
65029         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
65030         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
65031         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
65032         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
65033         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
65034         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
65035         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
65036         * modules/yesno (EXTRA_DIST): Add yesno.h.
65037
65038 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
65039
65040         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
65041
65042         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
65043         * m4/dev-ino.m4, same-inode.m4: Remove.
65044
65045         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
65046         * m4/acl.m4 (AC_FUNC_ACL):
65047         * m4/backupfile.m4 (gl_BACKUPFILE):
65048         * m4/c-strtod.m4 (gl_C99_STRTOLD):
65049         * m4/canon-host.m4 (gl_CANON_HOST):
65050         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
65051         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
65052         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
65053         * m4/cloexec.m4 (gl_CLOEXEC):
65054         * m4/close-stream.m4 (gl_CLOSE_STREAM):
65055         * m4/closeout.m4 (gl_CLOSEOUT):
65056         * m4/dirfd.m4 (gl_FUNC_DIRFD):
65057         * m4/dirname.m4 (gl_DIRNAME):
65058         * m4/exclude.m4 (gl_EXCLUDE):
65059         * m4/exitfail.m4 (gl_EXITFAIL):
65060         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
65061         * m4/file-type.m4 (gl_FILE_TYPE):
65062         * m4/filemode.m4 (gl_FILEMODE):
65063         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
65064         * m4/fpending.m4 (gl_FUNC_FPENDING):
65065         * m4/fprintftime.m4 (gl_FPRINTFTIME):
65066         * m4/fts.m4 (gl_FUNC_FTS):
65067         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
65068         * m4/getdate.m4 (gl_GETDATE):
65069         * m4/gethrxtime.m4 (gl_GETHRXTIME):
65070         * m4/getpagesize.m4 (gl_GETPAGESIZE):
65071         * m4/getpass.m4 (gl_FUNC_GETPASS):
65072         * m4/gettime.m4 (gl_GETTIME):
65073         * m4/getugroups.m4 (gl_GETUGROUPS):
65074         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
65075         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
65076         * m4/hard-locale.m4 (gl_HARD_LOCALE):
65077         * m4/hash.m4 (gl_HASH):
65078         * m4/idcache.m4 (gl_IDCACHE):
65079         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
65080         * m4/lchown.m4 (gl_FUNC_LCHOWN):
65081         * m4/long-options.m4 (gl_LONG_OPTIONS):
65082         * m4/lstat.m4 (gl_FUNC_LSTAT):
65083         * m4/md5.m4 (gl_MD5):
65084         * m4/memcasecmp.m4 (gl_MEMCASECMP):
65085         * m4/memcoll.m4 (gl_MEMCOLL):
65086         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
65087         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
65088         * m4/memxor.m4 (gl_MEMXOR):
65089         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
65090         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
65091         * m4/modechange.m4 (gl_MODECHANGE):
65092         * m4/mountlist.m4 (gl_MOUNTLIST):
65093         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
65094         * m4/openat.m4 (gl_FUNC_OPENAT):
65095         * m4/pathmax.m4 (gl_PATHMAX):
65096         * m4/physmem.m4 (gl_PHYSMEM):
65097         * m4/posixtm.m4 (gl_POSIXTM):
65098         * m4/posixver.m4 (gl_POSIXVER):
65099         * m4/quote.m4 (gl_QUOTE):
65100         * m4/quotearg.m4 (gl_QUOTEARG):
65101         * m4/readtokens.m4 (gl_READTOKENS):
65102         * m4/readutmp.m4 (gl_READUTMP):
65103         * m4/regex.m4 (gl_REGEX):
65104         * m4/safe-read.m4 (gl_SAFE_READ):
65105         * m4/safe-write.m4 (gl_SAFE_WRITE):
65106         * m4/same.m4 (gl_SAME):
65107         * m4/save-cwd.m4 (gl_SAVE_CWD):
65108         * m4/savedir.m4 (gl_SAVEDIR):
65109         * m4/settime.m4 (gl_SETTIME):
65110         * m4/sha1.m4 (gl_SHA1):
65111         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
65112         * m4/stat-macros.m4 (gl_STAT_MACROS):
65113         * m4/stat-time.m4 (gl_STAT_TIME):
65114         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
65115         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
65116         * m4/strdup.m4 (gl_FUNC_STRDUP):
65117         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
65118         * m4/strndup.m4 (gl_FUNC_STRNDUP):
65119         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
65120         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
65121         * m4/time_r.m4 (gl_TIME_R):
65122         * m4/timespec.m4 (gl_TIMESPEC):
65123         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
65124         * m4/unlinkdir.m4 (gl_UNLINKDIR):
65125         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
65126         * m4/userspec.m4 (gl_USERSPEC):
65127         * m4/utimecmp.m4 (gl_UTIMECMP):
65128         * m4/utimens.m4 (gl_UTIMENS):
65129         * m4/xalloc.m4 (gl_XALLOC):
65130         * m4/xgetcwd.m4 (gl_XGETCWD):
65131         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
65132         * m4/xreadlink.m4 (gl_XREADLINK):
65133         * m4/xstrtod.m4 (gl_XSTRTOD):
65134         * m4/yesno.m4 (gl_YESNO):
65135         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
65136         to get the necessary .h files and whatnot.
65137
65138 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
65139             Bruno Haible  <bruno@clisp.org>
65140
65141         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
65142         /bin/sh understanding of '!' conditional negation.
65143
65144 2006-08-21  Jim Meyering  <jim@meyering.net>
65145
65146         * modules/openat (Depends-on): Really alphabetize.
65147
65148         * modules/acl (Depends-on): Add error and quote.
65149
65150         * check-module (find_included_lib_files): Add at-func.c to the
65151         ok-to-include-more-than-once white list.
65152
65153         * modules/openat (Depends-on): Add lstat.  Alphabetize.
65154
65155 2006-08-21  Bruno Haible  <bruno@clisp.org>
65156
65157         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
65158         Emit a pkgdata_DATA variable only if some snippets add contents to it.
65159         Reported by Martin Lambers <marlam@marlam.de>.
65160
65161 2006-08-21  Bruno Haible  <bruno@clisp.org>
65162
65163         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
65164         specify an installation location, don't emit a noinst_LIBRARIES or
65165         noinst_LTLIBRARIES assignment.
65166
65167 2006-08-21  Bruno Haible  <bruno@clisp.org>
65168
65169         BeOS portability.
65170         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
65171         BeOS has mbrtowc() but no <wctype.h>.
65172
65173 2006-08-21  Bruno Haible  <bruno@clisp.org>
65174
65175         BeOS portability.
65176         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
65177         exist.
65178
65179 2006-08-21  Bruno Haible  <bruno@clisp.org>
65180
65181         BeOS portability.
65182         * lib/mbchar.h: Include <wctype.h> only if it exists.
65183
65184 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
65185
65186         Remove files that are no longer needed by their respective modules.
65187         * m4/obstack.m4: Remove.
65188         * m4/strerror_r.m4: Remove.
65189         * m4/uint32_t.m4: Remove.
65190         * m4/uintptr_t.m4: Remove.
65191         * m4/ullong_max.m4: Remove.
65192         * m4/xstrtoimax.m4: Remove.
65193         * m4/xstrtoumax.m4: Remove.
65194
65195         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
65196         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
65197         dependencies now capture this.
65198
65199         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
65200         Do not use AC_LIBSOURCES, since gnulib modules now do this.
65201         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
65202         * m4/human.m4 (gl_HUMAN): Likewise.
65203         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
65204         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
65205
65206         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
65207
65208         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
65209         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
65210         stdint.
65211         * m4/human.m4 (gl_HUMAN): Likewise.
65212         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
65213         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
65214         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
65215         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
65216         * m4/xstrtol (gl_XSTRTOL): Likewise.
65217
65218         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
65219         AC_TYPE_LONG_LONG_INT.
65220         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
65221         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
65222         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
65223         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
65224
65225         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
65226         on stdbool.
65227
65228         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
65229         (gl_PREREQ_XSTRTOUL): Remove.
65230
65231         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
65232
65233         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
65234         mode.
65235
65236 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
65237
65238         Add and change modules to make it easier for coreutils to use
65239         gnulib-tool.
65240         * modules/backupfile (Files): Remove m4/d-ino.m4.
65241         (Depends-on): Add d-ino.
65242         * modules/cycle-check (Depends-on): Add stdint.
65243         (lib_SOURCES): Add cycle-check.h.
65244         * modules/d-ino: New module.
65245         * modules/d-type: New module.
65246         * modules/error (Files): Remove m4/strerror_r.m4.
65247         * modules/filemode (Files): Add m4/st_dm_mode.m4.
65248         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
65249         m4/inttypes_h.m4, m4/uintmax_t.m4.
65250         (Depends-on): Add stdint.
65251         (lib_SOURCES): Add fsusage.h.
65252         * modules/getcwd (Files): Remove d-ino.m4.
65253         (Depends-on): Add d-ino.
65254         * modules/getndelim2 (Depends-on): Add stdint.
65255         * modules/glob (Files): Remove m4/d-type.m4.
65256         (Depends-on): Add d-type.
65257         * modules/host-os: New module.
65258         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
65259         m4/inttypes_h.m4, m4/uintmax_t.m4.
65260         * Depends-on: Add stdint.
65261         (lib_SOURCES): Add human.h.
65262         * modules/inttostr (Files): Remove m4/intmax_t.m4,
65263         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
65264         m4/uintmax_t.m4, m4/ulonglong.m4.
65265         (Depends-on): Add stdint.
65266         (EXTRA_DIST): Add inttostr.h.
65267         * modules/lchmod: New module.
65268         * modules/link-follow: New module.
65269         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
65270         (Depends-on): Add lchmod.
65271         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
65272         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
65273         (Depends-on): Add stdint.
65274         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
65275         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
65276         (Depends-on): Add stdint.
65277         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
65278         * modules/perl: New module.
65279         * modules/regex (Depends-on): Add stdint.
65280         * modules/rmdir-errno: New module.
65281         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
65282         m4/intmax_t.m4.
65283         (Depends-on): Add stdint.
65284         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
65285         m4/uintmax_t.m4.
65286         (Depends-on): Add stdint.
65287         * modules/unlink-busy: New module.
65288         * modules/utimecmp (Depends-on): Add stdint.
65289         * modules/uptime: New module.
65290         * modules/winsz-ioctl: New module.
65291         * modules/winsz-termios: New module.
65292         * modules/xnanosleep (Depends-on): Add nanosleep.
65293         * modules/ullong_max: Remove.
65294         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
65295         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
65296         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
65297         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
65298         (Depends-on): Add inttypes.
65299         (lib_SOURCES): Add xstrtol.h.
65300         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
65301         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
65302         * MODULES.html.sh: Move 'assert' into the assert section.
65303         Move 'dummy' into the linking section.
65304         Remove ullong_max.
65305         Add section for compatibility checks for POSIX:2001 functions,
65306         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
65307         winsz-ioctl, and winsz-termios into it.
65308         Add lchmod.
65309         Add top-level Misc section and put host-os, perl, and uptime
65310         into it.
65311
65312 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
65313
65314         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
65315         now assume the stdint module.  Do not include inttypes.h.
65316         * lib/fsusage.h: Likewise.
65317         * lib/getndelim2.c: Likewise.
65318         * lib/human.h: Likewise.
65319         * lib/inttostr.h: Likewise.
65320         * lib/obstack.c: Likewise.
65321         * lib/regex_internal.h: Likewise.
65322         * lib/tempname.c: Likewise.
65323         * lib/utimecmp.c: Likewise.
65324         * lib/xstrtol.h: Likewise.
65325
65326         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
65327
65328         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
65329         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
65330         * lib/xtime.h: Likewise.
65331
65332 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
65333
65334         * modules/openat (Files): Add lib/fchmodat.c.
65335         Fixes problem reported by Jay Youngman.
65336
65337 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
65338
65339         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
65340         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
65341
65342 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
65343             Bruno Haible  <bruno@clisp.org>
65344
65345         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
65346         and is a script that invokes bison. Tighten the code. Add comments.
65347
65348 2006-08-18  Jim Meyering  <jim@meyering.net>
65349
65350         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
65351         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
65352         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
65353         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
65354
65355 2006-08-18  Bruno Haible  <bruno@clisp.org>
65356
65357         * modules/bison-i18n: New file.
65358         * MODULES.html.sh (Internationalization functions): Add it.
65359
65360 2006-08-18  Bruno Haible  <bruno@clisp.org>
65361
65362         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
65363         sys/statvfs.h. When getmntinfo was found, check its declaration and
65364         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
65365
65366 2006-08-18  Bruno Haible  <bruno@clisp.org>
65367
65368         * m4/bison-i18n.m4: New file, from bison.
65369
65370 2006-08-18  Bruno Haible  <bruno@clisp.org>
65371
65372         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
65373         (ME_DUMMY): Treat "kernfs" as a dummy.
65374         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
65375
65376 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
65377
65378         Update from coreutils.
65379
65380         2006-08-15  Jim Meyering  <jim@meyering.net>
65381
65382         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
65383
65384         2006-01-17  Jim Meyering  <jim@meyering.net>
65385
65386         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
65387
65388         2006-01-11  Jim Meyering  <jim@meyering.net>
65389
65390         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
65391         Check for the lchmod function.
65392
65393 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
65394
65395         Update from coreutils.
65396
65397         * lib/__fpending.h: Add copyright notice.
65398         * lib/fprintftime.h: Likewise.
65399         * lib/savedir.c: Use (C) in copyright notice.
65400         * lib/savedir.h: Likewise.
65401
65402         2006-08-15  Jim Meyering  <jim@meyering.net>
65403
65404         * lib/at-func.c: New file, with the logic of all emulated at-functions.
65405         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
65406         in support of the EXPECTED_ERRNO macro.
65407         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
65408         definitions.  Instead, define the appropriate symbols and include
65409         "at-func.c".
65410         * lib/mkdirat.c (mkdirat): Likewise.
65411         * lib/fchmodat.c (fchmodat): Likewise.
65412         (ENOSYS): Remove definition.
65413         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
65414         it.  Don't include "unistd--.h" -- it wasn't ever used.
65415
65416         2006-01-17  Jim Meyering  <jim@meyering.net>
65417
65418         Rewrite fts.c not to change the current working directory,
65419         by using openat, fstatat, fdopendir, etc..
65420
65421         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
65422         (HAVE_OPENAT_SUPPORT): Define.
65423         [_LIBC] (fchdir): Don't undef or define; no longer used.
65424         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
65425         Now, this `function' always succeeds, and consumes its file descriptor
65426         parameter -- so callers must not close such FDs.  Update callers.
65427         (diropen_fd, opendirat, cwd_advance_fd): New functions.
65428         (diropen): Add parameter, SP.  Adjust all callers.
65429         Implement using diropen_fd, rather than open.
65430         (fts_open): Initialize new member, fts_cwd_fd.
65431         Remove fts_rft-setting code.
65432         (fts_close): Close fts_cwd_fd, if necessary.
65433         (__opendir2): Define in terms of opendir or opendirat,
65434         depending on whether the FST_NOCHDIR flag is set.
65435         (fts_build): Since fts_safe_changedir consumes its FD, and since
65436         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
65437         and close the dup'd file descriptor upon failure.
65438         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
65439         (fts_safe_changedir): Tweak semantics to reflect that this function
65440         now calls cwd_advance_fd and hence consumes its FD argument.
65441         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
65442         [struct FTS] (fts_rft): Remove now-unused member.
65443         [struct FTS] (fts_cycle.state): Improve comment.
65444
65445         * lib/openat.c (openat_needs_fchdir): New function.
65446         * lib/openat.h (openat_needs_fchdir): Declare it.
65447
65448 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
65449
65450         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
65451         Problem and fix reported by Pádraig Brady in
65452         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
65453
65454 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
65455
65456         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
65457
65458 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
65459
65460         * lib/memcoll.c (memcoll): Optimize for the common case where the
65461         arguments are bytewise equal.
65462
65463 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
65464
65465         * doc/regexprops-generic.texi: Add a copyright notice.
65466
65467 2006-08-15  Bruno Haible  <bruno@clisp.org>
65468
65469         * modules/tmpdir (License): Change to LGPL.
65470
65471 2006-08-15  Bruno Haible  <bruno@clisp.org>
65472
65473         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
65474         module.
65475
65476 2006-08-14  Simon Josefsson  <jas@extundo.com>
65477
65478         * config/srclist.txt: Add gnupload.
65479
65480 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
65481
65482         Change copyright notice from LGPL 2 to GPL 2, since that's the
65483         standard form used in the gnulib repository.
65484         * tests/test-lock.c: Likewise.
65485         * tests/test-stdint.c: Likewise.
65486         * tests/test-tls.c: Likewise.
65487
65488         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
65489         prelude-manager.  User shorter URLs for GNU projects, without '?'.
65490         Add copyright notice.
65491
65492         * check-module: Add copyright notice.  Output a copyright
65493         notice if "--version" is specified.
65494         * modules/COPYING: New file.
65495         * tests/test-getaddrinfo.c: Add copyright notice.
65496         * tests/test-verify.c: Likewise.
65497
65498 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
65499
65500         Change copyright notice from LGPL 2 to GPL 2, since that's the
65501         standard form used in the gnulib repository.
65502         * lib/lock.c: LGPL -> GPL.
65503         * lib/lock.h: Likewise.
65504         * lib/strnlen1.c: Likewise.
65505         * lib/strnlen1.h: Likewise.
65506         * lib/tls.c: Likewise.
65507         * lib/tls.h: Likewise.
65508         * lib/tmpdir.c: Likewise.
65509
65510         * lib/TODO: Remove; this belongs only in coreutils.
65511
65512 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
65513
65514         Add copyright notices to long-enough files that lack them, since
65515         otherwise the files aren't clearly free.  Use the same notice that
65516         getdate.texi already uses.
65517         * doc/alloca-opt.texi: Add copyright notice.
65518         * doc/alloca.texi: Likewise.
65519         * doc/ctime.texi: Likewise.
65520         * doc/functions.texi: Likewise.
65521         * doc/gcd.texi: Likewise.
65522         * doc/gnulib-tool.texi: Likewise.
65523         * doc/inet_ntoa.texi: Likewise.
65524         * doc/visibility.texi: Likewise.
65525
65526         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
65527         * doc/quote.texi: Add copyright notice.
65528
65529         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
65530         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
65531         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
65532         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
65533         is now obsolete, and give a pointer to the Sun list.
65534         Add copyright notice.
65535
65536 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
65537
65538         * config/srclistvars.sh: Add copyright notice.
65539
65540 2006-08-14  Eric Blake  <ebb9@byu.net>
65541
65542         Import the following change from libc:
65543
65544         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
65545
65546         Upstream bug 2997.
65547         * lib/misc/error.c: Add space between program name and message if file
65548         name is missing.
65549
65550 2006-08-12  Karl Berry  <karl@gnu.org>
65551
65552         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
65553         remove, these originate in gnulib now.
65554
65555 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65556
65557         * doc/Makefile (standards.info standards.html standards.dvi):
65558         Also depend on make-stds.texi.
65559
65560 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
65561
65562         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
65563         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
65564
65565         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
65566         in wchar_t.  Problem reported by Eric Blake.
65567
65568         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
65569         LEN is smaller than SIZE.  Suggested by Bruno Haible.
65570         Also, help the compiler to keep LEN in a register.
65571
65572 2006-08-11  Eric Blake  <ebb9@byu.net>
65573
65574         * users.txt: Sort.  Add tar.
65575
65576 2006-08-11  Bruno Haible  <bruno@clisp.org>
65577
65578         * users.txt: New file.
65579
65580 2006-08-11  Bruno Haible  <bruno@clisp.org>
65581
65582         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
65583         before <wchar.h>. Needed for OSF/1 and BSD/OS.
65584
65585 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
65586
65587         * modules/snprintf (Depends-on): Remove minmax.
65588         (Maintainer): Add self and Bruno.
65589
65590 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
65591
65592         * lib/.cppi-disable: Add snprintf.h, socket_.h.
65593         * lib/snprintf.c: Include <errno.h> and <limits.h>.
65594         (EOVERFLOW): Define if the system does not.
65595         Do not include "minmax.h"; it wasn't used.
65596         (snprintf): Don't assume size_t promotes to an unsigned type.
65597         Fix bug when generated string was too long for the buffer: the
65598         buffer's contents are supposed to be the initial prefix of the
65599         output.  Don't assume vasnprintf returns EOVERFLOW if the size
65600         exceeds INT_MAX; do the check ourselves.
65601
65602         Import the following changes from libc:
65603
65604         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
65605
65606         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
65607         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
65608         set wc to the byte which couldn't be converted.
65609         (re_string_reconstruct): Don't clear valid_raw_len before calling
65610         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
65611         tip_context using re_string_context_at.
65612
65613         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
65614
65615         * lib/posix/regex.h: g++ still cannot handled [restrict].
65616
65617         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
65618
65619         * lib/posix/regex.h: Remove special handling for VMS.
65620
65621 2006-08-10  Jim Meyering  <jim@meyering.net>
65622
65623         * modules/same-inode: New module.
65624         * modules/dev-ino: New module.
65625         * modules/cycle-check: Depend on these modules, rather than simply
65626         including their .h files.
65627         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
65628         required via m4/cycle-check.m4.
65629         * modules/same: Depend on new same-inode module, rather than
65630         including same-inode.h.
65631         * modules/chdir-safer: New file.
65632
65633         * modules/chown (Depends-on): Add stat-macros.
65634
65635 2006-08-10  Jim Meyering  <jim@meyering.net>
65636
65637         * m4/cycle-check.m4: New file.
65638         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
65639         * m4/dev-ino.m4, m4/same-inode.m4: New files.
65640
65641 2006-08-10  Eric Blake  <ebb9@byu.net>
65642
65643         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
65644         in from original proposal.
65645
65646 2006-08-10  Eric Blake  <ebb9@byu.net>
65647         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
65648
65649         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
65650         namespace.
65651
65652 2006-08-10  Bruno Haible  <bruno@clisp.org>
65653
65654         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
65655         as well.
65656
65657 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
65658
65659         Sync from coreutils.
65660
65661         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
65662
65663         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
65664         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
65665
65666 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
65667
65668         * modules/restrict: Remove; no longer needed now that we assume
65669         Autoconf 2.59 or later.
65670         * MODULES.html.sh: Remove 'restrict'.
65671         * modules/argp (Depends-on): Remove 'restrict'.
65672         * modules/base64 (Depends-on): Likewise.
65673         * modules/gc (Depends-on): Likewise.
65674         * modules/getaddrinfo (Depends-on): Likewise.
65675         * modules/glob (Depends-on): Likewise.
65676         * modules/inet_ntop (Depends-on): Likewise.
65677         * modules/inet_pton (Depends-on): Likewise.
65678         * modules/memxor (Depends-on): Likewise.
65679         * modules/regex (Depends-on): Likewise.
65680         * modules/strtok_r (Depends-on): Likewise.
65681         * modules/time_r (Depends-on): Likewise.
65682
65683 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
65684
65685         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
65686         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
65687         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
65688         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
65689         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
65690         * m4/memxor.m4 (gl_MEMXOR): Likewise.
65691         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
65692         gl_C_RESTRICT replaced by AC_C_RESTRICT.
65693
65694         Merge from coreutils.
65695         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
65696         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
65697         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
65698         * m4/time_r.m4 (gl_TIME_R): Likewise.
65699
65700 2006-08-09  Karl Berry  <karl@gnu.org>
65701
65702         * config/srclist.txt: no more gettext-tools, per Bruno.
65703
65704 2006-08-08  Eric Blake  <ebb9@byu.net>
65705
65706         * modules/verror: New module.
65707         * MODULES.html.sh: Document it.
65708
65709 2006-08-08  Eric Blake  <ebb9@byu.net>
65710
65711         * lib/verror.h, lib/verror.c: New files.
65712
65713 2006-08-08  Eric Blake  <ebb9@byu.net>
65714
65715         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
65716         verror_at_line output complies with GNU Coding Standards even when
65717         file is NULL.
65718
65719 2006-08-07  Bruno Haible  <bruno@clisp.org>
65720
65721         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
65722         versions of AIX.
65723         Reported by Ralf Wildenhues.
65724
65725 2006-08-07  Bruno Haible  <bruno@clisp.org>
65726
65727         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
65728         in an AC_DEFUN. Needed so that the autoconf snippets can use
65729         AC_REQUIRE.
65730
65731 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65732
65733         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
65734         Initialize pkgdata_DATA.
65735         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
65736         overriding it.
65737
65738 2006-08-06  Eric Blake  <ebb9@byu.net>
65739
65740         * lib/error.h: Fold in some upstream changes from glibc.
65741         * lib/error.c: Likewise.
65742
65743 2006-08-04  Bruno Haible  <bruno@clisp.org>
65744
65745         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
65746         Make the mostlyclean-local rule depend on mostlyclean-generic.
65747         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
65748
65749 2006-07-31  Bruno Haible  <bruno@clisp.org>
65750
65751         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
65752         <stdlib.h>, <string.h>.
65753
65754 2006-07-30  Bruno Haible  <bruno@clisp.org>
65755
65756         * modules/readlink (License): Change to LGPL.
65757
65758 2006-07-30  Bruno Haible  <bruno@clisp.org>
65759
65760         * modules/javaversion (Makefile.am): Distribute javaversion.java and
65761         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
65762         set PKGDATADIR to point to it.
65763
65764 2006-07-30  Bruno Haible  <bruno@clisp.org>
65765
65766         * modules/csharpexec (configure.ac): Comment out macro invocation.
65767         * modules/javaexec (configure.ac): Likewise.
65768         * modules/javacomp-script (configure.ac): Likewise.
65769
65770         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
65771
65772 2006-07-30  Bruno Haible  <bruno@clisp.org>
65773
65774         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
65775         linked-list.
65776
65777 2006-07-30  Bruno Haible  <bruno@clisp.org>
65778
65779         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
65780
65781 2006-07-30  Bruno Haible  <bruno@clisp.org>
65782
65783         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
65784         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
65785         get removed.
65786
65787 2006-07-29  Bruno Haible  <bruno@clisp.org>
65788
65789         Make it possible for gnulib-tool to work with locally modified or
65790         augmented gnulib repositories.
65791         * gnulib-tool (func_usage): Document --local-dir option.
65792         (local_gnulib_dir): New variable.
65793         Handle --local-dir option.
65794         (func_lookup_file): New function.
65795         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
65796         (func_get_description, func_get_filelist, func_get_description,
65797         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
65798         func_get_automake_snippet, func_get_include_directive,
65799         func_get_license, func_get_maintainer): Use func_lookup_file.
65800         (func_import, func_create_testdir): Use func_lookup_file.
65801
65802 2006-07-29  Bruno Haible  <bruno@clisp.org>
65803
65804         * modules/setenv (Depends-on): Add unistd.
65805
65806 2006-07-29  Bruno Haible  <bruno@clisp.org>
65807
65808         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
65809
65810 2006-07-29  Bruno Haible  <bruno@clisp.org>
65811
65812         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
65813
65814 2006-07-29  Bruno Haible  <bruno@clisp.org>
65815
65816         * gnulib-tool (import, update): If there is no Makefile.am, look at
65817         aclocal.m4, instead of bailing out.
65818
65819 2006-07-29  Bruno Haible  <bruno@clisp.org>
65820
65821         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
65822         Categorize the options by when they are useful.
65823
65824 2006-07-29  Bruno Haible  <bruno@clisp.org>
65825
65826         * gnulib-tool (func_usage): Document option --no-libtool.
65827         Handle option --no-libtool.
65828         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
65829         for changed semantics of $libtool variable.
65830         (func_import): Likewise. If libtool is not used, show this through
65831         an option --no-libtool.
65832         (func_create_testdir): Update.
65833
65834 2006-07-29  Bruno Haible  <bruno@clisp.org>
65835
65836         * gnulib-tool (func_import): Extend error message about missing
65837         --doc-base.
65838
65839 2006-07-29  Bruno Haible  <bruno@clisp.org>
65840
65841         * gnulib-tool (func_import): Don't create the $docbase directory if
65842         there is no file to store there.
65843
65844 2006-07-29  Bruno Haible  <bruno@clisp.org>
65845
65846         * gnulib-tool (autoconf_minversion): If a --dir option is given and
65847         relevant, look for configure.ac there, not in the current directory.
65848         Also use a simple search for AC_PREREQ, not "autoconf --trace".
65849
65850 2006-07-29  Bruno Haible  <bruno@clisp.org>
65851
65852         * gnulib-tool (SORT): New variable.
65853         (func_usage): Undocument --assume-autoconf option.
65854         Remove --assume-autoconf option handling.
65855         (autoconf_minversion): Determine from the contents of configure.ac.
65856         (func_import): Remove autoconf_minversion handling.
65857         Suggested by Eric Blake.
65858
65859 2006-07-29  Bruno Haible  <bruno@clisp.org>
65860
65861         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
65862
65863 2006-07-29  Bruno Haible  <bruno@clisp.org>
65864
65865         * config/srclist.txt (*setenv.[ch]): Remove rules.
65866
65867 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65868
65869         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
65870
65871 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65872
65873         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
65874         arpa/inet.h.
65875
65876 2006-07-28  Simon Josefsson  <jas@extundo.com>
65877
65878         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
65879         * modules/inet_pton (Depends-on): Likewise.
65880
65881 2006-07-28  Simon Josefsson  <jas@extundo.com>
65882
65883         * m4/netinet_in_h.m4: New file.
65884
65885 2006-07-28  Simon Josefsson  <jas@extundo.com>
65886
65887         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
65888         #include's.
65889
65890 2006-07-28  Simon Josefsson  <jas@extundo.com>
65891
65892         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
65893         #include's.
65894
65895 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
65896
65897         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
65898         setgid on directories only if they set these bits.
65899         * lib/modechange.h: Remove obsolete comment about masks.
65900
65901 2006-07-28  Eric Blake  <ebb9@byu.net>
65902
65903         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
65904         macro expansion.
65905
65906 2006-07-28  Bruno Haible  <bruno@clisp.org>
65907
65908         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
65909
65910 2006-07-28  Bruno Haible  <bruno@clisp.org>
65911
65912         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
65913
65914 2006-07-28  Bruno Haible  <bruno@clisp.org>
65915
65916         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
65917         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
65918         Define fallbacks.
65919         Avoids link error on FreeBSD 4.x.
65920         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
65921
65922         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
65923         encoding.
65924         * lib/mbswidth.c (iswcntrl): Likewise.
65925
65926 2006-07-27  Bruno Haible  <bruno@clisp.org>
65927
65928         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
65929         test.
65930
65931 2006-07-27  Bruno Haible  <bruno@clisp.org>
65932
65933         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
65934         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
65935         defined.
65936
65937 2006-07-26  Eric Blake  <ebb9@byu.net>
65938
65939         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
65940
65941 2006-07-26  Eric Blake  <ebb9@byu.net>
65942
65943         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
65944         like mingw that lack mkstemp.
65945         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
65946         avoid compilation warning on mingw.
65947
65948 2006-07-26  Bruno Haible  <bruno@clisp.org>
65949
65950         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
65951         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
65952         INT_FAST*_MIN, INTPTR_MIN.
65953
65954 2006-07-25  Bruno Haible  <bruno@clisp.org>
65955
65956         * modules/version-etc (Depends-on): Add stdarg.
65957
65958 2006-07-25  Bruno Haible  <bruno@clisp.org>
65959
65960         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
65961         complex commands.
65962
65963 2006-07-25  Bruno Haible  <bruno@clisp.org>
65964
65965         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
65966         defined in <stdarg.h> or config.h.
65967
65968 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
65969
65970         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
65971         (gl_STDIO_SAFER): Remove.
65972
65973 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
65974
65975         * MODULES.html.sh (File stream based Input/Output):
65976         Add fopen-safer, tmpfile-safer; remove stdio-safer.
65977         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
65978         * modules/fopen-safer, modules/tmpfile-safer: New files.
65979         * modules/stdio-safer: Remove.
65980
65981 2006-07-24  Bruno Haible  <bruno@clisp.org>
65982
65983         * modules/tmpdir: New file.
65984         * MODULES.html.sh (File system functions): Add it.
65985
65986 2006-07-24  Bruno Haible  <bruno@clisp.org>
65987
65988         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
65989         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
65990
65991 2006-07-24  Bruno Haible  <bruno@clisp.org>
65992
65993         * modules/clean-temp: New file.
65994
65995 2006-07-24  Bruno Haible  <bruno@clisp.org>
65996
65997         * m4/tmpdir.m4: New file, from GNU gettext.
65998
65999 2006-07-24  Bruno Haible  <bruno@clisp.org>
66000
66001         * lib/tmpdir.h: New file, from GNU gettext.
66002         * lib/tmpdir.c: New file, from GNU gettext.
66003
66004 2006-07-24  Bruno Haible  <bruno@clisp.org>
66005
66006         * lib/clean-temp.h: New file, from GNU gettext.
66007         * lib/clean-temp.c: New file, from GNU gettext.
66008
66009 2006-07-23  Eric Blake  <ebb9@byu.net>
66010
66011         * modules/stdio-safer (Files): Add tmpfile-safer.c.
66012         (Depends-on): Add binary-io.
66013
66014 2006-07-23  Eric Blake  <ebb9@byu.net>
66015
66016         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
66017
66018 2006-07-23  Eric Blake  <ebb9@byu.net>
66019
66020         * lib/tmpfile-safer.c: New file.
66021         * lib/stdio-safer.h (fopen_safer): Add prototype.
66022         * lib/stdio--.h (tmpfile): Make safer.
66023
66024 2006-07-23  Bruno Haible  <bruno@clisp.org>
66025
66026         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
66027         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
66028         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
66029         gl_linked_remove_at): Use it.
66030
66031 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66032         and Simon Josefsson <jas@extundo.com>
66033
66034         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
66035
66036         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
66037
66038 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
66039
66040         * modules/close-stream: New file.
66041         * modules/closeout (Description): Make it clear that it exits
66042         with a diagnostic on error.
66043         (Depends-on): Add close-stream.  Remove fpending, stdbool.
66044         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
66045
66046 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
66047
66048         * m4/close-stream.m4: New file.
66049
66050 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
66051
66052         * lib/close-stream.c, lib/close-stream.h: New files.
66053
66054 2006-07-22  Bruno Haible  <bruno@clisp.org>
66055
66056         Merge from GNU gettext 0.15.
66057
66058         2006-05-01  Bruno Haible  <bruno@clisp.org>
66059
66060                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
66061
66062         2006-07-22  Bruno Haible  <bruno@clisp.org>
66063
66064                 * modules/javaversion: New file.
66065                 * MODULES.html.sh (Java): Add javaversion.
66066
66067         2006-03-12  Bruno Haible  <bruno@clisp.org>
66068
66069                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
66070
66071         2005-12-04  Bruno Haible  <bruno@clisp.org>
66072
66073                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
66074                 (untested).
66075
66076         2006-06-21  Bruno Haible  <bruno@clisp.org>
66077
66078                 Avoid warnings from recent versions of mcs.
66079                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
66080                 -o, -L, -r any more. Use options documented since mcs-1.0
66081                 instead. Similarly for -g.
66082
66083         2005-12-04  Bruno Haible  <bruno@clisp.org>
66084
66085                 * build-aux/csharpcomp.sh.in: Suffix for resources is
66086                 .resources, not .resource.
66087
66088         2005-07-09  Bruno Haible  <bruno@clisp.org>
66089
66090                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
66091                 add a .dll suffix.
66092                 Reported by Mark Junker <mjscod@gmx.de>.
66093
66094         2006-07-22  Bruno Haible  <bruno@clisp.org>
66095
66096                 * modules/gettext: Upgrade to gettext-0.15.
66097                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
66098                 m4/visibility.m4.
66099                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
66100
66101 2006-07-22  Bruno Haible  <bruno@clisp.org>
66102
66103         Merge from GNU gettext 0.15.
66104
66105         2006-03-25  Bruno Haible  <bruno@clisp.org>
66106
66107                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
66108
66109         2006-07-21  Bruno Haible  <bruno@clisp.org>
66110
66111                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
66112                 "1.1".
66113
66114         2006-05-09  Bruno Haible  <bruno@clisp.org>
66115
66116                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
66117                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
66118                 for the conftestver execution.
66119
66120         2006-05-01  Bruno Haible  <bruno@clisp.org>
66121
66122                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
66123                 optional target-version argument. Verify that the compiler
66124                 groks source of the specified source-version, or add -source
66125                 option as necessary. Verify that the compiler produces
66126                 bytecode in the specified target-version, or add -target and
66127                 -source options as necessary. Make the result of the test
66128                 available as variable CONF_JAVAC. Also log error output in
66129                 config.log.
66130
66131         2006-03-11  Bruno Haible  <bruno@clisp.org>
66132
66133                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
66134
66135         2006-05-09  Bruno Haible  <bruno@clisp.org>
66136
66137                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
66138                 CLASSPATH_SEPARATOR to a semicolon.
66139
66140         2006-03-12  Bruno Haible  <bruno@clisp.org>
66141
66142                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
66143                 available as variable CONF_JAVA, for subsequent autoconf
66144                 tests. Also log error output in config.log.
66145
66146         2006-07-19  Bruno Haible  <bruno@clisp.org>
66147
66148                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
66149                 that getline works on glibc2 systems. Needed to avoid trouble
66150                 in relocatable.c.
66151                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
66152
66153         2005-12-04  Bruno Haible  <bruno@clisp.org>
66154
66155                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
66156                 launcher (untested).
66157
66158         2005-12-04  Bruno Haible  <bruno@clisp.org>
66159
66160                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
66161
66162         2006-07-22  Bruno Haible  <bruno@clisp.org>
66163
66164                 * gettext.m4: Update from GNU gettext-0.15.
66165                 * nls.m4: Likewise.
66166                 * po.m4: Likewise.
66167                 * inttypes-pri.m4: Likewise.
66168                 * inttypes-h.m4: Renamed from inttypes.m4.
66169                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
66170
66171 2006-07-22  Bruno Haible  <bruno@clisp.org>
66172
66173         Merge from GNU gettext 0.15.
66174
66175         2005-07-05  Bruno Haible  <bruno@clisp.org>
66176
66177                 * printf-args.c (printf_fetchargs): Work around broken
66178                 definition of wint_t on mingw.
66179
66180         2005-02-12  Bruno Haible  <bruno@clisp.org>
66181
66182                 * xallocsa.h: Add extern "C" for C++.
66183
66184         2006-05-17  Bruno Haible  <bruno@clisp.org>
66185
66186                 Cygwin portability.
66187                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
66188
66189         2006-04-30  Bruno Haible  <bruno@clisp.org>
66190
66191                 * progreloc.c: Include <mach-o/dyld.h> if available.
66192                 (find_executable): Use _NSGetExecutablePath when possible.
66193
66194         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
66195
66196                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
66197                 function.
66198
66199         2005-12-29  Bruno Haible  <bruno@clisp.org>
66200
66201                 * progreloc.c (set_program_name_and_installdir): Fix
66202                 compilation error.
66203
66204         2005-12-04  Bruno Haible  <bruno@clisp.org>
66205
66206                 Cygwin portability.
66207                 * progreloc.c: Include <windows.h> also on Cygwin.
66208                 (find_executable): Add support for Cygwin.
66209                 (set_program_name_and_installdir): Handle also platforms with
66210                 nonempty EXEEXT.
66211
66212         2006-07-11  Bruno Haible  <bruno@clisp.org>
66213
66214                 * javacomp.c: Fix a comment.
66215                 Reported by Jim Meyering.
66216
66217         2006-04-30  Bruno Haible  <bruno@clisp.org>
66218
66219                 * javacomp.h (compile_java_class): Add source_version,
66220                 target_version arguments.
66221                 * javacomp.c: Rewritten to choose only a compiler that
66222                 respects the specified source_version and target_version.
66223
66224         2006-06-27  Bruno Haible  <bruno@clisp.org>
66225
66226                 Assume correct S_ISDIR macro.
66227                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
66228
66229         2006-07-22  Bruno Haible  <bruno@clisp.org>
66230
66231                 * javaversion.h: New file, from GNU gettext.
66232                 * javaversion.c: New file, from GNU gettext.
66233                 * javaversion.java: New file, from GNU gettext.
66234                 * javaversion.class: New file, from GNU gettext.
66235
66236         2006-05-17  Bruno Haible  <bruno@clisp.org>
66237
66238                 Cygwin portability.
66239                 * javaexec.c (execute_java_class): Test for jview program
66240                 also on Cygwin.
66241
66242         2006-04-09  Bruno Haible  <bruno@clisp.org>
66243
66244                 * fatal-signal.c: Don't include string.h.
66245                 (at_fatal_signal): Use a copying loop instead of memcpy.
66246
66247         2005-12-04  Bruno Haible  <bruno@clisp.org>
66248
66249                 * csharpexec.c: Add support for 'clix' launcher (untested).
66250                 (execute_csharp_using_sscli): New function.
66251                 (execute_csharp_program): Call it.
66252
66253         2006-06-21  Bruno Haible  <bruno@clisp.org>
66254
66255                 Avoid warnings from recent versions of mcs.
66256                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
66257                 -o, -L, -r any more. Use options documented since mcs-1.0
66258                 instead. Similarly for -g.
66259
66260         2005-07-09  Bruno Haible  <bruno@clisp.org>
66261
66262                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
66263                 add a .dll suffix.
66264                 Reported by Mark Junker <mjscod@gmx.de>.
66265
66266         2006-06-17  Bruno Haible  <bruno@clisp.org>
66267
66268                 * config.charset: Update for NetBSD 3.0.
66269
66270         2006-05-17  Bruno Haible  <bruno@clisp.org>
66271
66272                 Cygwin portability.
66273                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
66274
66275         2006-05-16  Bruno Haible  <bruno@clisp.org>
66276
66277                 * localcharset.c [CYGWIN]: Include <windows.h>.
66278                 (get_charset_aliases): For Cygwin, return the same CPxxx
66279                 aliases list as under WIN32.
66280                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
66281                 the environment variables. Fall back to GetACP().
66282
66283         2006-04-05  Bruno Haible  <bruno@clisp.org>
66284
66285                 * config.charset: Update Juan Manuel Guerrero's address.
66286
66287         2005-02-12  Bruno Haible  <bruno@clisp.org>
66288
66289                 * allocsa.h: Add extern "C" for C++.
66290
66291         2005-02-10  Bruno Haible  <bruno@clisp.org>
66292
66293                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
66294                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
66295
66296         2006-07-22  Bruno Haible  <bruno@clisp.org>
66297
66298                 * gettext.h: Update to GNU gettext-0.15.
66299
66300 2006-07-22  Bruno Haible  <bruno@clisp.org>
66301
66302         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
66303         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
66304         lib-prefix.m4, longdouble.m4, ssize_t.m4.
66305
66306 2006-07-21  Eric Blake  <ebb9@byu.net>
66307
66308         * modules/stdlib-safer: New file.
66309         * MODULES.html.sh (File stream based Input/Output): Add
66310         stdlib-safer.
66311
66312 2006-07-21  Eric Blake  <ebb9@byu.net>
66313
66314         * lib/stdlib-safer.h: New file from coreutils, required by
66315         stdlib--.h.
66316
66317 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
66318
66319         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
66320
66321 2006-07-20  Bruno Haible  <bruno@clisp.org>
66322
66323         * gnulib-tool: Recognize new option --assume-autoconf.
66324         (autoconf_minversion): New variable.
66325         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
66326
66327 2006-07-20  Bruno Haible  <bruno@clisp.org>
66328
66329         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
66330
66331 2006-07-19  Derek R. Price  <derek@ximbiot.com>
66332
66333         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
66334         Reindent and repaginate.
66335
66336 2006-07-19  Derek Price  <derek@ximbiot.com>
66337
66338         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
66339         Correct grammar.
66340
66341 2006-07-17  Bruno Haible  <bruno@clisp.org>
66342
66343         * modules/list: New file.
66344         * modules/array-list: New file.
66345         * modules/carray-list, modules/carray-list-tests: New files.
66346         * modules/linked-list, modules/linked-list-tests: New files.
66347         * modules/avltree-list, modules/avltree-list-tests: New files.
66348         * modules/rbtree-list, modules/rbtree-list-tests: New files.
66349         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
66350         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
66351         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
66352         * modules/oset: New file.
66353         * modules/array-oset: New file.
66354         * modules/avltree-oset, modules/avltree-oset-tests: New files.
66355         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
66356         * tests/test-carray_list.c: New file.
66357         * tests/test-linked_list.c: New file.
66358         * tests/test-avltree_list.c: New file.
66359         * tests/test-rbtree_list.c: New file.
66360         * tests/test-linkedhash_list.c: New file.
66361         * tests/test-avltreehash_list.c: New file.
66362         * tests/test-rbtreehash_list.c: New file.
66363         * tests/test-avltree_oset.c: New file.
66364         * tests/test-rbtree_oset.c: New file.
66365         * MODULES.html.sh (Container data structures): New section.
66366
66367 2006-07-17  Bruno Haible  <bruno@clisp.org>
66368
66369         * m4/gl_list.m4: New file.
66370
66371 2006-07-17  Bruno Haible  <bruno@clisp.org>
66372
66373         * lib/gl_list.h: New file.
66374         * lib/gl_list.c: New file.
66375         * lib/gl_array_list.h: New file.
66376         * lib/gl_array_list.c: New file.
66377         * lib/gl_carray_list.h: New file.
66378         * lib/gl_carray_list.c: New file.
66379         * lib/gl_linked_list.h: New file.
66380         * lib/gl_linked_list.c: New file.
66381         * lib/gl_anylinked_list1.h: New file.
66382         * lib/gl_anylinked_list2.h: New file.
66383         * lib/gl_avltree_list.h: New file.
66384         * lib/gl_avltree_list.c: New file.
66385         * lib/gl_anyavltree_list1.h: New file.
66386         * lib/gl_anyavltree_list2.h: New file.
66387         * lib/gl_rbtree_list.h: New file.
66388         * lib/gl_rbtree_list.c: New file.
66389         * lib/gl_anyrbtree_list1.h: New file.
66390         * lib/gl_anyrbtree_list2.h: New file.
66391         * lib/gl_anytree_list1.h: New file.
66392         * lib/gl_anytree_list2.h: New file.
66393         * lib/gl_linkedhash_list.h: New file.
66394         * lib/gl_linkedhash_list.c: New file.
66395         * lib/gl_anyhash_list1.h: New file.
66396         * lib/gl_anyhash_list2.h: New file.
66397         * lib/gl_avltreehash_list.h: New file.
66398         * lib/gl_avltreehash_list.c: New file.
66399         * lib/gl_rbtreehash_list.h: New file.
66400         * lib/gl_rbtreehash_list.c: New file.
66401         * lib/gl_anytreehash_list1.h: New file.
66402         * lib/gl_anytreehash_list2.h: New file.
66403
66404         * lib/gl_oset.h: New file.
66405         * lib/gl_oset.c: New file.
66406         * lib/gl_array_oset.h: New file.
66407         * lib/gl_array_oset.c: New file.
66408         * lib/gl_avltree_oset.h: New file.
66409         * lib/gl_avltree_oset.c: New file.
66410         * lib/gl_rbtree_oset.h: New file.
66411         * lib/gl_rbtree_oset.c: New file.
66412         * lib/gl_anytree_oset.h: New file.
66413
66414 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
66415
66416         * m4/mkancesdirs.m4: New file.
66417         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
66418         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
66419         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
66420         it.
66421
66422 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
66423
66424         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
66425         * lib/mkancesdirs.h: New files.
66426         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
66427         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
66428         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
66429         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
66430         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
66431         callers changed.  Revamp internals significantly, by not
66432         attempting to create directories that are temporarily more
66433         permissive than the final results.  Do not attempt to use
66434         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
66435         This removes some race conditions, fixes some bugs, and simplifies
66436         things.  Use new dirchownmod function to do owner and mode changes.
66437         * lib/mkdir-p.h: Likewise.
66438         * lib/modechange.c (octal_to_mode): New function.
66439         (struct mode_change): New member mentioned.
66440         (make_node_op_equals): New arg mentioned.  All callers changed.
66441         (mode_compile): Keep track of which mode bits the user has explicitly
66442         mentioned.
66443         (mode_adjust): New arg DIR, so that we implement the X op correctly.
66444         New arg PMODE_BITS, to keep track of which mode bits the user
66445         mentioned; it treats S_ISUID and S_ISGID speciall.
66446         All callers changed.
66447         * lib/modechange.h: Likewise.
66448
66449 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
66450
66451         * MODULES.html.sh: Add mkancestors.
66452         * modules/mkancesdirs: New module.
66453         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
66454         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
66455         The chdir-safer and afs files are now orphans; I'll remove them
66456         unless someone speaks up.
66457         Add lib/dirchownmod.c, lib/dirchownmod.h.
66458         (Depends-on): Remove alloca, chown, save-cwd, dirname.
66459         Add lchown, mkancesdirs.
66460         (Maintainer): Add self.
66461
66462 2006-07-15  Karl Berry  <karl@gnu.org>
66463
66464         * gnulib-tool: help message wording/arrangement.
66465
66466 2006-07-14  Simon Josefsson  <jas@extundo.com>
66467
66468         * doc/gnulib.texi (Libtool and Windows): New section.
66469
66470 2006-07-12  Simon Josefsson  <jas@extundo.com>
66471
66472         * modules/gendocs (License): Fix license, approved by Karl.
66473
66474 2006-07-12  Eric Blake  <ebb9@byu.net>
66475
66476         * MODULES.html.sh: Add gendocs.
66477
66478 2006-07-11  Eric Blake  <ebb9@byu.net>
66479
66480         * modules/fdl: New module, to install doc/fdl.texi.
66481         * MODULES.html.sh: Add new section for documentation modules.
66482         * gnulib-tool: Avoid space-tab.
66483         (--doc-base): New option, to manage files from doc.
66484
66485 2006-07-11  Eric Blake  <ebb9@byu.net>
66486
66487         * m4/absolute-header.m4: Fix comments to match recent change.
66488
66489 2006-07-11  Eric Blake  <ebb9@byu.net>
66490
66491         * gnulib-tool: List --doc-base before --tests-base.
66492
66493 2006-07-11  Derek R. Price  <derek@ximbiot.com>
66494
66495         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
66496
66497 2006-07-11  Bruno Haible  <bruno@clisp.org>
66498
66499         * README: Mention where to put documentation.
66500
66501 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66502
66503         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
66504
66505 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
66506
66507         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
66508         to stdint.m4.
66509
66510 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
66511
66512         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
66513         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
66514         "no/such/file/stdint.h" when there is no such file, so that
66515         the resulting C code can be parsed by dodgy compilers.
66516         Problems reported by Bob Proulx.
66517
66518 2006-07-10  Derek R. Price  <derek@ximbiot.com>
66519
66520         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
66521         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
66522         macros into the GNU _D_EXACT_NAMLEN.
66523         * lib/savedir.c:  Likewise.
66524         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
66525
66526 2006-07-10  Derek R. Price  <derek@ximbiot.com>
66527         and Paul Eggert  <eggert@cs.ucla.edu>
66528
66529         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
66530         * m4/savedir.m4:
66531         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
66532         macros into the GNU _D_EXACT_NAMLEN.
66533
66534 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
66535
66536         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
66537         around the absolute name, to work around a problem with the HP-UX
66538         11.23 native C compiler, reported by Bob Proulx.
66539
66540 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
66541
66542         * doc/maintain.texi, make-stds.texi: Sync from
66543         <http://savannah.gnu.org/projects/gnustandards>.
66544
66545 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
66546
66547         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
66548
66549 2006-07-09  Jim Meyering  <jim@meyering.net>
66550
66551         * m4/glob.m4: Remove a doubled word in a comment.
66552
66553 2006-07-09  Jim Meyering  <jim@meyering.net>
66554
66555         * lib/argp-pv.c: Remove a doubled word in a comment.
66556         * lib/check-version.c (check_version): Likewise.
66557         * lib/javacomp.c (compile_java_class): Likewise.
66558
66559 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
66560
66561         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
66562         for the benefit of people using Autoconf 2.60.  If you want to
66563         support older Autoconf versions you can copy m4/onceonly_2_57.m4
66564         (or m4/onceonly.m4, if pre-2.57) manually.
66565
66566 2006-07-08  Jim Meyering  <jim@meyering.net>
66567
66568         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
66569         comment.
66570         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
66571         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
66572         comment.
66573
66574 2006-07-08  Jim Meyering  <jim@meyering.net>
66575
66576         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
66577
66578 2006-07-07  Simon Josefsson  <jas@extundo.com>
66579
66580         * tests/test-crc.c: Change expected crc value, the test vector
66581         were probably computed using the old broken crc.c?
66582
66583 2006-07-06  Simon Josefsson  <jas@extundo.com>
66584
66585         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
66586         now the canonical place for the M4 file).
66587
66588         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
66589         from the sys_socket dependency now.
66590
66591         * modules/inet_pton (Files): Ditto.
66592
66593         * modules/inet_ntop (Files): Ditto.
66594
66595 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
66596
66597         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
66598         not gl_PREREQ_GETUSERSHELL.
66599
66600 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66601
66602         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
66603         with only one argument, for Autoconf 2.60.
66604         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
66605         expand to nothing, so add a shell command to avoid syntax error.
66606         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
66607
66608 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66609
66610         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
66611
66612 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
66613
66614         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
66615         no longer needed.  Check for isblank decl.
66616         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
66617         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
66618         of existence.
66619
66620 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
66621
66622         * lib/getloadavg.c: Use __VMS, not VMS.
66623         * lib/getopt.c: Likewise.
66624         * lib/getpagesize.h: Likewise.
66625         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
66626         and probably does not work.
66627
66628 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
66629
66630         * lib/.cppi-disable: Add wcwidth.
66631         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
66632         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
66633         (ISGRAPH): Remove.  All uses changed to isgraph.
66634         (FOLD) [!defined _LIBC]: Remove special case.
66635         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
66636         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
66637         HAVE_ISBLANK.
66638         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
66639         case.
66640
66641 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
66642
66643         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
66644         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
66645         brackets.  Other minor changes to suppress some compiler
66646         warnings.
66647
66648 2006-07-06  Derek R. Price  <derek@ximbiot.com>
66649         and Paul Eggert  <eggert@cs.ucla.edu>
66650
66651         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
66652         of invoking obsolescent AC_HEADER_DIRENT macro.
66653         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
66654         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
66655         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
66656         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
66657         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
66658         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
66659         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
66660         * m4/readdir.m4: Remove; no longer needed.
66661
66662 2006-07-06  Derek R. Price  <derek@ximbiot.com>
66663         and Paul Eggert  <eggert@cs.ucla.edu>
66664
66665         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
66666         Don't worry about this obsolete case any more.
66667         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
66668         directories.
66669         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
66670         worry about this obsolete case any more.
66671         * lib/fts.c: Likewise.
66672         * lib/getcwd.c: Likewise.
66673         * lib/glob.h: Likewise.
66674         * lib/savedir.c: Likewise.
66675
66676 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
66677
66678         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
66679         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
66680         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
66681         needed.
66682         All uses removed.
66683         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
66684         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
66685         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
66686         needed.
66687         * m4/getdate.m4 (gl_GETDATE): Likewise.
66688         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
66689         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
66690         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
66691         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
66692         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
66693         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
66694         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
66695         needed.
66696
66697 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
66698
66699         * lib/memcasecmp.c: Include <limits.h>.
66700         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
66701         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
66702         Don't assume isdigit succeeds only on '0' through '9'.
66703
66704 2006-07-05  Eric Blake  <ebb9@byu.net>
66705
66706         * modules/getaddrinfo (Depends-on): Add snprintf.
66707
66708 2006-07-05  Eric Blake  <ebb9@byu.net>
66709
66710         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
66711         to avoid 'header present but could not be compiled' on cygwin.
66712
66713 2006-07-05  Eric Blake  <ebb9@byu.net>
66714
66715         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
66716         missing from netdb.h.
66717         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
66718
66719 2006-07-05  Derek R. Price  <derek@ximbiot.com>
66720
66721         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
66722         no longer needed.
66723         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
66724         * m4/getdate.m4 (gl_GETDATE): Likewise.
66725         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
66726         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
66727         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
66728         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
66729         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
66730
66731 2006-07-05  Derek R. Price  <derek@ximbiot.com>
66732
66733         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
66734         All uses of is_space replaced by isspace.
66735         * lib/exit.h: Don't talk about STDC_HEADERS.
66736         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
66737         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
66738         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
66739         replaced by isprint etc.
66740         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
66741         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
66742         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
66743         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
66744         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
66745         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
66746
66747 2006-07-05  Bruno Haible  <bruno@clisp.org>
66748
66749         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
66750         the function exists, before testing against AIX.
66751         Reported by Martin Lambers <marlam@marlam.de>.
66752
66753 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
66754
66755         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
66756         From Mark D. Baushke.
66757
66758 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
66759
66760         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
66761         to the absolute name, not just one, to bypass Sun C 5.8's
66762         "warning: #include of /usr/include/... may be non-portable".
66763
66764 2006-07-04  Eric Blake  <ebb9@byu.net>
66765
66766         * modules/dirname-tests: New test module.
66767         * tests/test-dirname.c: New file, replacing dirname.c
66768         TEST_DIRNAME section that was recently deleted.
66769
66770 2006-07-04  Bruno Haible  <bruno@clisp.org>
66771
66772         Assume ANSI C header files and <ctype.h> functions.
66773         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
66774         (mbsnwidth): Use isprint, iscntrl instead.
66775
66776 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
66777
66778         Merge from coreutils.
66779         * MODULES.html.sh: Add xstrtold.
66780         * modules/xstrtold: New file.
66781         * modules/cycle-check (Files): Add lib/same-inode.h.
66782         * modules/dirname (Files): Add m4/double-slash-root.m4.
66783         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
66784         * modules/mkdir-p (Files): Add lib/same-inode.h.
66785         * modules/same (Files): Add lib/same-inode.h.
66786
66787 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
66788
66789         * m4/absolute-header.m4: Renamed from full-header-path.m4.
66790         This is to keep the terminology clean; POSIX talks about
66791         "absolute pathnames", not "full pathnames", but the GNU
66792         Coding Standards say to use "path" for something else;
66793         so use "absolute" to keep both sides happy.
66794         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
66795         Set gl_absolute_header, not gl_full_header_path.
66796         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
66797         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
66798         All uses changed.
66799
66800         Merge from coreutils.
66801
66802         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
66803
66804         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
66805         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
66806         want to require the building of c-strtod.o.
66807         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
66808         needs -lm directly.
66809         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
66810
66811         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
66812
66813         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
66814         --as-needed option if available.  Problem reported by Albert Chin in
66815         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
66816         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
66817         cc merely issues a bunch of annoying warnings for --as-needed
66818         (this problem was reported by Bob Proulx).  Also, try linking with
66819         -lm to detect a bug in binutils 2.16 (this problem was reported
66820         by Ralf Wildenhues).
66821
66822         2006-06-18  Jim Meyering  <jim@meyering.net>
66823
66824         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
66825         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
66826         macro.
66827         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
66828         also check for glibc-2.4's abort-inducing bug.
66829
66830         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
66831         Low-probability clean-up should be to use rmdir to get rid of
66832         the just-created directory, not unlink.
66833
66834         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
66835         configure fail, and request a bug report to inform us about it.
66836         Add a comment that, barring reports to the contrary, in 2007 we'll
66837         assume ftruncate is universally available.
66838
66839         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
66840
66841         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
66842
66843         2006-03-12  Jim Meyering  <jim@meyering.net>
66844
66845         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
66846         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
66847         * m4/same.m4 (gl_SAME): Likewise.
66848         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
66849
66850         2006-03-11  Eric Blake  <ebb9@byu.net>
66851
66852         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
66853         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
66854         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
66855         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
66856
66857 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
66858
66859         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
66860         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
66861         reported by Mark D. Baushke, one in
66862         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
66863
66864         Merge from coreutils.
66865
66866         * lib/.cppi-disable: Add stdint_.h.
66867         * lib/.cvsignore: Add stdint.h.
66868
66869         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
66870
66871         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
66872         both double and long double versions.
66873         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
66874         * lib/xstrtold.c: New file.
66875         * lib/xstrtod.h (xstrtold): New decl.
66876
66877         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
66878
66879         * lib/filemode.c (setst): Remove.
66880         (strmode): Rewrite to avoid setst.  This makes the code shorter,
66881         (arguably) clearer, and the generated code is a bit smaller on my
66882         Debian GNU/Linux stable x86 host.
66883
66884         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
66885
66886         * lib/filemode.c: Include "filemode.h" first, to test the interface.
66887         Assume that filemode.h includes sys/types.h and sys/stat.h.
66888         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
66889         (ftypelet): Reorder to put common cases first, for efficiency.
66890         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
66891         to do 'M'.
66892         (strmode): Renamed from mode_string, and now stores 12 bytes instead
66893         of 10, for compatibility with FreeBSD.  All callers changed.
66894         (filemodestring): Now stores 12 bytes instead of 10, and sets file
66895         types that can't be deduced solely from st_mode.  First arg is now a
66896         const pointer.
66897         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
66898         (strmode): Renamed from mode_string.
66899         (filemodestring): New decl.
66900         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
66901         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
66902         needed.
66903         (S_ISPORT, S_ISWHT): New macros, if not already defined.
66904
66905         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
66906
66907         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
66908         fsusage.h now does that.  Include fsusage.h first, to test interface.
66909         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
66910         at most one method (the old code could have generated decls that
66911         didn't conform to C89, not that this was ever exercised).
66912         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
66913
66914         2006-03-19  Jim Meyering  <jim@meyering.net>
66915
66916         Work even in a chroot where d_ino values for entries in "/"
66917         don't match the stat.st_ino values for the same names.
66918         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
66919         number, iterate through all entries again, using lstat instead.
66920         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
66921         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
66922
66923         * lib/getcwd.c (__getcwd): Clarify a comment.
66924         Use memcpy in place of a call to strcpy.
66925
66926         2006-03-12  Jim Meyering  <jim@meyering.net>
66927
66928         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
66929         matches that of the current directory (which we're about to chdir ".."
66930         out of), then save the dev-ino of the parent, instead.
66931
66932         * lib/same-inode.h (SAME_INODE): New file/macro.
66933         * lib/chdir-safer.c (SAME_INODE): Remove definition.
66934         Include "same-inode.h", instead.
66935         * lib/same.c: Likewise.
66936         * lib/cycle-check.h: Include "same-inode.h".
66937         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
66938         * lib/cycle-check.c (SAME_INODE): Remove definition.
66939         * lib/root-dev-ino.h: Include "same-inode.h".
66940
66941         2006-03-11  Eric Blake  <ebb9@byu.net>
66942
66943         * lib/same.c (same_name): s/base_name/last_component/
66944         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
66945         * lib/filenamecat.c (file_name_concat): Likewise.
66946
66947         2006-03-11  Eric Blake  <ebb9@byu.net>,
66948                     Paul Eggert  <eggert@cs.ucla.edu>
66949
66950         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
66951         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
66952         drive prefix.
66953         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
66954         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
66955         (last_component): New method.
66956         * lib/dirname.c (dir_len): Determine when drive letters need a
66957         subsequent slash.  Preserve // when it is special.
66958         (dir_name): Don't append dot when drive letter is absolute.
66959         [TEST_DIRNAME]: Move into a full-blown gnulib test.
66960         * lib/basename.c (base_name): New semantics - malloc the result.
66961         Preserve // when it is special.  Preserve relative files that look
66962         like drive letters.
66963         (base_len): Preserve // when it is special.
66964         (last_component): New method, similar to old base_name semantics.
66965         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
66966         base_name.  Strip redundant slashes from ///.
66967
66968 2006-07-03  Jim Meyering  <jim@meyering.net>
66969
66970         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
66971         macro is used before the first cycle_check call.
66972
66973 2006-07-03  Eric Blake  <ebb9@byu.net>
66974
66975         * modules/dirname (Depends-on): Add xstrndup.
66976
66977 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
66978
66979         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
66980         test cases, so that config.log is a bit easier to follow.
66981
66982 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
66983
66984         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
66985         both are 64 bits, since this seems to be the tradition, and this
66986         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
66987         we ever run into a host that prefers long long to long in this
66988         case, we'll need another configure-time test.  Problem reported by
66989         Jim Meyering.
66990
66991 2006-07-02  Eric Blake  <ebb9@byu.net>
66992
66993         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
66994
66995 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
66996
66997         * modules/inttypes (Depends-on): No longer depends on stdint.
66998         * modules/stdint (Description): Say more about assumptions.
66999         Say that the fast types might differ.  Say macros are used.
67000         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
67001         (Makefile.am): Revise list of substituted symbols to match
67002         new stdint.m4.
67003         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
67004         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
67005         * tests/test-stdint.c (verify_same_types)
67006         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
67007         the code conforms to C99/C89.
67008         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
67009         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
67010
67011 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
67012
67013         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
67014         but fix a bug, by requiring at least 64 bits.
67015         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
67016         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
67017         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
67018         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
67019
67020         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
67021         changes.  Make 2.59 a prerequisite.  Check and substitute for
67022         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
67023         inttypes.h.  Do not use special include files; just use the
67024         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
67025         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
67026         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
67027         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
67028         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
67029         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
67030         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
67031         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
67032         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
67033         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
67034         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
67035         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
67036         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
67037         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
67038         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
67039         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
67040         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
67041         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
67042         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
67043         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
67044         WINT_MAX.  Check for C99 conformance more strictly, by detecting
67045         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
67046         not check for things that C99 does not require, e.g., int8_t.  If
67047         a test isn't needed unless <stdint.h> isn't working, and is
67048         unlikely to be needed for any other reason, then don't do it
67049         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
67050         size_t, since we assume C89 freestanding at least.  Do not check
67051         for sig_atomic_t, wchar_t, or wint_t, since the code now does
67052         the right thing even if the types are not defined.  Instead use:
67053         (gl_STDINT_TYPE_PROPERTIES): New macro.
67054         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
67055         testing whether <sys/types.h> clashes, as Autoconf does this for
67056         us now.  All uses removed.
67057         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
67058         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
67059         (gl_CHECK_TYPE_SAME):
67060         Remove; no longer needed.
67061         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
67062         exists, since we'll return 0 anyway in that case.
67063         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
67064
67065 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
67066
67067         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
67068         possible collision with system files.
67069         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
67070         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
67071         WCHAR_MIN and WCHAR_MAX in this case.
67072         (<stddef.h>): Do not include; no longer needed.
67073         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
67074         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
67075         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
67076         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
67077         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
67078         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
67079         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
67080         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
67081         !defined(__c99))]: Include in this case too, since it's harmless
67082         now.
67083         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
67084         dangerous to do so.
67085         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
67086         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
67087         (_STDINT_MIN, _STDINT_MAX): New macros.
67088         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
67089         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
67090         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
67091         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
67092         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
67093         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
67094         macros, not typedefs; this simplifies things quite a bit.
67095         Use long int for all types narrower than int64_t.
67096         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
67097         Define in terms of long long int or int64_t or long int,
67098         not int64_t or int32_t.  This saves some compile-time testing.
67099         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
67100         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
67101         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
67102         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
67103         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
67104         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
67105         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
67106         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
67107         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
67108         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
67109         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
67110         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
67111         undef any previous version and define our own version, for
67112         simplicity and consistency with the new macros for types.
67113         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
67114         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
67115         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
67116         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
67117         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
67118         @WINT_T_SUFFIX@ to keep things simple here.
67119         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
67120         Simplify by assuming typical 8/16/32/64 host, since we're
67121         already doing that elsewhere anyway.
67122         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
67123         and assume long long int is 64 bits if available.  This
67124         speeds up 'configure'.
67125
67126 2006-07-01  Eric Blake  <ebb9@byu.net>
67127
67128         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
67129         Reported by Andreas Buening.
67130
67131 2006-07-01  Eric Blake  <ebb9@byu.net>
67132
67133         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
67134
67135 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
67136
67137         * lib/getaddrinfo.c: fixed typo
67138
67139 2006-06-29  Jim Meyering  <jim@meyering.net>
67140
67141         * modules/strftime (Maintainer): Add my name, since with the
67142         FPRINTFTIME changes strftime.c has forked from glibc.
67143
67144 2006-06-29  Eric Blake  <ebb9@byu.net>
67145
67146         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
67147
67148 2006-06-29  Eric Blake  <ebb9@byu.net>
67149
67150         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
67151
67152 2006-06-29  Eric Blake  <ebb9@byu.net>
67153
67154         * lib/stat_.h: New file.
67155
67156 2006-06-29  Eric Blake  <ebb9@byu.net>
67157
67158         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
67159         unused static function.
67160
67161 2006-06-29  Eric Blake  <ebb9@byu.net>
67162
67163         * doc/functions.texi (Function Portability): Document missing lstat
67164         on mingw.
67165
67166 2006-06-29  Eric Blake  <ebb9@byu.net>
67167
67168         * MODULES.html.sh: Add sys_stat.
67169         * modules/sys_stat: New module.
67170         * modules/mkstemp (Depends-on): Add sys_stat.
67171
67172 2006-06-29  Derek R. Price  <derek@ximbiot.com>
67173
67174         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
67175
67176 2006-06-29  Derek R. Price  <derek@ximbiot.com>
67177
67178         * m4/c-bs-a.m4: Removed.
67179
67180 2006-06-29  Derek R. Price  <derek@ximbiot.com>
67181
67182         * lib/strftime.c: Assume strftime() exists.
67183
67184 2006-06-29  Derek Price  <derek@ximbiot.com>
67185
67186         * modules/c-bs-a: Removed - \a is C89.
67187         * MODULES.html.sh: Remove c-bs-a.
67188
67189 2006-06-29  Bruno Haible  <bruno@clisp.org>
67190
67191         * modules/wcwidth (License): Change to LGPL.
67192
67193 2006-06-28  Simon Josefsson  <jas@extundo.com>
67194
67195         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
67196         on _WIN32.
67197
67198         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
67199         getnameinfo.
67200
67201 2006-06-28  Simon Josefsson  <jas@extundo.com>
67202
67203         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
67204
67205 2006-06-28  Simon Josefsson  <jas@extundo.com>
67206
67207         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
67208         functions there.  It will succeed on Windows XP, but on Windows
67209         2000 and (presumably) earlier, it will fail, and use the internal
67210         re-implementation.
67211         (use_win32_p): New function.
67212         (getaddrinfo): Use strtoul on servname, to support numeric ports.
67213         Support AI_NUMERICSERV to disable getservbyname.
67214         (getnameinfo): New function, only supports
67215         NI_NUMERICHOST|NI_NUMERICSERV for now.
67216
67217         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
67218         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
67219         getnameinfo.
67220
67221 2006-06-28  Eric Blake  <ebb9@byu.net>
67222
67223         * modules/wcwidth: New file.
67224         * modules/mbchar (Depends-on): Add wcwidth.
67225         * modules/mbswidth (Depends-on): Add wcwidth.
67226         * MODULES.html.sh: Add wcwidth.
67227
67228 2006-06-28  Eric Blake  <ebb9@byu.net>
67229
67230         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
67231         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
67232
67233 2006-06-28  Eric Blake  <ebb9@byu.net>
67234
67235         * lib/xvasprintf.h: Fix comments.
67236
67237 2006-06-28  Eric Blake  <ebb9@byu.net>
67238
67239         * lib/mbchar.h (wcwidth): Include wcwidth.h.
67240         * lib/mbswidth.c (wcwidth): Move from here...
67241         * lib/wcwidth.h: ...to this new file.
67242
67243 2006-06-28  Derek R. Price  <derek@ximbiot.com>
67244
67245         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
67246
67247         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
67248         it's obsolete.
67249         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
67250
67251 2006-06-28  Derek R. Price  <derek@ximbiot.com>
67252
67253         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
67254         Autoconf 2.60 says this stuff was obsolete.
67255
67256 2006-06-28  Bruno Haible  <bruno@clisp.org>
67257
67258         * modules/wcwidth (Files): Add m4/wchar_t.m4.
67259
67260 2006-06-28  Bruno Haible  <bruno@clisp.org>
67261
67262         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
67263         gt_TYPE_WCHAR_T.
67264
67265 2006-06-28  Bruno Haible  <bruno@clisp.org>
67266
67267         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
67268         declaration for wcwidth.
67269         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
67270
67271 2006-06-28  Bruno Haible  <bruno@clisp.org>
67272
67273         * lib/mkdtemp.c [MINGW]: Include <io.h>.
67274         (mkdir): Define using _mkdir.
67275
67276 2006-06-28  Bruno Haible  <bruno@clisp.org>
67277
67278         * lib/getaddrinfo.h: Fix POSIX URL.
67279         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
67280         _WIN32.
67281         (use_win32_p): Make static.
67282         (getaddrinfo): Reject service name if it is empty or does not consist
67283         solely of decimal digits, or if its value is > 65535.
67284         (getnameinfo): Remove useless casts.
67285
67286 2006-06-27  Simon Josefsson  <jas@extundo.com>
67287
67288         * modules/sys_select: New file, suggested by Bruno Haible, Paul
67289         Eggert and Martin Lambers.
67290
67291 2006-06-27  Simon Josefsson  <jas@extundo.com>
67292
67293         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
67294         Eggert and Martin Lambers.
67295
67296 2006-06-27  Bruno Haible  <bruno@clisp.org>
67297
67298         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
67299         result to 0, not to empty.
67300         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
67301
67302 2006-06-27  Bruno Haible  <bruno@clisp.org>
67303
67304         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
67305
67306 2006-06-26  Simon Josefsson  <jas@extundo.com>
67307
67308         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
67309         present.
67310
67311 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
67312
67313         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
67314         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
67315         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
67316
67317 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
67318
67319         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
67320
67321 2006-06-26  Bruno Haible  <bruno@clisp.org>
67322
67323         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
67324
67325 2006-06-26  Bruno Haible  <bruno@clisp.org>
67326
67327         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
67328
67329 2006-06-26  Bruno Haible  <bruno@clisp.org>
67330
67331         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
67332         SGI C compiler in pre-C99 mode.
67333         Suggested by Mark D. Baushke and Larry Jones.
67334
67335 2006-06-26  Bruno Haible  <bruno@clisp.org>
67336
67337         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
67338         WCHAR_MAX.
67339         Reported by Mark D. Baushke and Larry Jones.
67340
67341 2006-06-26  Bruno Haible  <bruno@clisp.org>
67342
67343         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
67344         in pre-C99 mode.
67345         Suggested by Mark D. Baushke and Larry Jones.
67346
67347 2006-06-23  Simon Josefsson  <jas@extundo.com>
67348             Bruno Haible  <bruno@clisp.org>
67349
67350         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
67351         Emit mostlyclean-local rule.
67352         (func_emit_tests_Makefile_am): Likewise.
67353         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
67354
67355 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
67356
67357         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
67358
67359 2006-06-23  Bruno Haible  <bruno@clisp.org>
67360
67361         * tests/test-stdint.c: Update to match ISO C 99 Technical
67362         Corrigendum 1.
67363
67364 2006-06-23  Bruno Haible  <bruno@clisp.org>
67365
67366         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
67367
67368 2006-06-23  Bruno Haible  <bruno@clisp.org>
67369
67370         * lib/stdint_.h: Treat IRIX like OpenBSD.
67371
67372 2006-06-23  Bruno Haible  <bruno@clisp.org>
67373
67374         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
67375         ISO C 99 Technical Corrigendum 1.
67376
67377 2006-06-22  Simon Josefsson  <jas@extundo.com>
67378
67379         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
67380         MinGW.
67381
67382 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
67383
67384         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
67385         needed.  Some compiler complained about some of them.  Problem reported
67386         by Larry Jones in
67387         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
67388
67389 2006-06-21  Simon Josefsson  <jas@extundo.com>
67390
67391         * tests/test-getaddrinfo.c: New file.
67392
67393         * modules/getaddrinfo-tests: New file.
67394
67395         * MODULES.html.sh: Add inet_pton.
67396
67397         * modules/inet_pton: New file.
67398
67399 2006-06-21  Simon Josefsson  <jas@extundo.com>
67400
67401         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
67402         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
67403         of using the (limited) gnulib implementation on Windows XP.
67404
67405         * m4/inet_pton.m4: New file.
67406
67407 2006-06-21  Simon Josefsson  <jas@extundo.com>
67408
67409         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
67410         variable.
67411
67412         * lib/socket_.h: Don't define WINVER.
67413
67414         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
67415         slightly modified to work in gnulib.
67416
67417 2006-06-21  Simon Josefsson  <jas@extundo.com>
67418
67419         * doc/gnulib.texi (Windows sockets): Add.
67420
67421 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
67422
67423         * lib/read-file.c (fread_file): Start with buffer allocation of
67424         0 bytes rather than 1 byte; this simplifies the code.
67425         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
67426         code to free buffer and save/restore errno.
67427         (internal_read_file): Remove unused local.
67428
67429 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
67430
67431         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
67432         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
67433         Problem reported by Denis Excoffier in
67434         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
67435
67436 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67437
67438         * modules/sys_socket, modules/socklen: Include sys/types since
67439         FreeBSD 4.x's sys/socket.h needs it.
67440
67441 2006-06-19  Simon Josefsson  <jas@extundo.com>
67442
67443         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
67444
67445 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
67446
67447         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
67448
67449 2006-06-19  Bruno Haible  <bruno@clisp.org>
67450
67451         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
67452         and FULL_PATH_INTTYPES_H in angle brackets.
67453         Reported by Mark D. Baushke <mdb@gnu.org>.
67454
67455 2006-06-17  Eric Blake  <ebb9@byu.net>
67456
67457         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
67458         errno.
67459
67460 2006-06-17  Bruno Haible  <bruno@clisp.org>
67461
67462         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
67463         <sys/inttypes.h>.
67464
67465 2006-06-17  Bruno Haible  <bruno@clisp.org>
67466
67467         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
67468         whether errno is declared. Assume <errno.h> declares errno.
67469
67470 2006-06-17  Bruno Haible  <bruno@clisp.org>
67471
67472         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
67473
67474 2006-06-17  Bruno Haible  <bruno@clisp.org>
67475
67476         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
67477         problem on Solaris 2.5.1.
67478
67479 2006-06-16  Eric Blake  <ebb9@byu.net>
67480
67481         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
67482         * lib/unicodeio.c [!defined errno]: Likewise.
67483         * lib/strtol.c [!defined errno]: Likewise.
67484         * lib/strtod.c [!defined errno]: Likewise.
67485
67486 2006-06-15  Eric Blake  <ebb9@byu.net>
67487
67488         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
67489
67490 2006-06-15  Eric Blake  <ebb9@byu.net>
67491
67492         * config/srclist.txt (ssize_t.m4): Lose sync.
67493
67494 2006-06-15  Bruno Haible  <bruno@clisp.org>
67495
67496         * modules/stdint (Files): Include m4/full-header-path.m4,
67497         m4/size_max.m4, m4/wchar_t.m4.
67498         (Makefile.am): Many more substitutions.
67499         * modules/stdint-tests: New file.
67500         * tests/test-stdint.c: New file.
67501
67502 2006-06-15  Bruno Haible  <bruno@clisp.org>
67503
67504         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
67505         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
67506         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
67507         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
67508         gl_CHECK_TYPE_SAME): New macros.
67509
67510 2006-06-15  Bruno Haible  <bruno@clisp.org>
67511
67512         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
67513
67514 2006-06-15  Bruno Haible  <bruno@clisp.org>
67515
67516         * lib/stdint_.h: Rewritten to be fully auto-configured.
67517         Fixes bug on HP-UX/IA64.
67518
67519 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
67520
67521         * lib/getdate.y (__attribute__): Don't define if already defined.
67522         Problem reported by Larry Jones.
67523         * lib/utimens.c (__attribute__): Likewise.
67524
67525 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
67526
67527         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
67528         reported by Andreas Schwab.
67529
67530 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67531             Bruno Haible  <bruno@clisp.org>
67532
67533         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
67534         check for the declaration of strnlen and a run test that exposes the
67535         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
67536         rpl_strndup.
67537
67538 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67539             Bruno Haible  <bruno@clisp.org>
67540
67541         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
67542
67543 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67544
67545         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
67546         compile test, for Tru64 4.0D.
67547
67548 2006-05-28  Karl Berry  <karl@gnu.org>
67549
67550         * config/srclist.txt (printf-args.c): lose sync.
67551
67552 2006-05-26  Martin Lambers  <marlam@marlam.de>
67553
67554         * lib/getpass.c: Updates the test for the native W32 API, and adds
67555         missing includes, thus fixing compilation warnings.
67556
67557 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
67558
67559         * lib/exclude.c (exclude_fnmatch): New function.
67560         (excluded_file_name): Call exclude_fnmatch.
67561         * lib/exclude.h (excluded_file_name): New prototype
67562
67563 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
67564
67565         * lib/tempname.c (small_open, large_open): New macros.
67566         (__open, __open64) [!_LIBC]: Remove.
67567         (__gen_tempname): Use small_open and large_open instead of __open
67568         and __open64.  This fixes a portability bug on HP-UX 11.11i
67569         reported by Simon Wing-Tang in
67570         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
67571
67572 2006-05-24  Bruno Haible  <bruno@clisp.org>
67573
67574         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
67575         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
67576         Reported by Thorsten Maerz <torte@netztorte.de> via
67577         Aaron Stone <aaron@serendipity.cx>.
67578
67579 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
67580
67581         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
67582         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
67583         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
67584         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
67585         not really conditional on the cache.
67586         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
67587
67588 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
67589
67590         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
67591         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
67592         (my_usleep): Don't mishandle maximum value.
67593
67594 2006-05-19  Jim Meyering  <jim@meyering.net>
67595
67596         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
67597
67598 2006-05-17  Bruno Haible  <bruno@clisp.org>
67599
67600         Cygwin portability.
67601         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
67602
67603 2006-05-17  Bruno Haible  <bruno@clisp.org>
67604
67605         * lib/stdint_.h: Fix recognition of Cygwin.
67606
67607 2006-05-15  Bruno Haible  <bruno@clisp.org>
67608
67609         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
67610         on libtool patch by Ralf Wildenhues.
67611
67612 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
67613
67614         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
67615         test for C99 conformance; (bool) 0.5 is an integer constant
67616         expression, but (bool) -0.5 is not.  Problem reported by Fedor
67617         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
67618
67619 2006-05-11  Simon Josefsson  <jas@extundo.com>
67620
67621         * m4/xvasprintf.m4: Fix obvious typo.
67622
67623 2006-05-11  Jim Meyering  <jim@meyering.net>
67624
67625         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
67626         James Lemley.
67627
67628 2006-05-10  Simon Josefsson  <jas@extundo.com>
67629
67630         * lib/md4.c: Typo fix, update copyright years.
67631         (K1, K2): Don't use L because it turn computations into 64-bit on
67632         64-bit platforms.
67633
67634 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
67635
67636         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
67637         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
67638         unwanted sign propagation, e.g., on hosts with 64-bit int.
67639         There still are some problems with reeelly weird theoretical hosts
67640         (e.g., 33-bit int) but it's not worth worrying about now.
67641         * lib/sha1.c (rol): Likewise.
67642         (K1, K2, K3, K4): Remove unnecessary L suffix.
67643
67644 2006-05-10  Bruno Haible  <bruno@clisp.org>
67645
67646         * lib/des.c: Cast to avoid warnings.
67647
67648 2006-05-09  Bruno Haible  <bruno@clisp.org>
67649
67650         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
67651         (Depends-on): Depend also on xsize, stdarg.
67652         (configure.ac): Add gl_XVASPRINTF.
67653
67654 2006-05-09  Bruno Haible  <bruno@clisp.org>
67655
67656         * m4/xvasprintf.m4: New file.
67657
67658 2006-05-09  Bruno Haible  <bruno@clisp.org>
67659
67660         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
67661         (EOVERFLOW): Define fallback value.
67662         (xstrcat): New function.
67663         (xvasprintf): Recognize the special case of a string concatenation.
67664
67665 2006-05-08  Eric Blake  <ebb9@byu.net>
67666
67667         * gnulib-tool (func_version): Base copyright year on CVS date.
67668         (func_emit_copyright_notice): New function.
67669         (func_emit_lib_Makefile_am): Use it.
67670         (func_emit_tests_Makefile_am): Likewise.
67671         (func_import): Likewise.
67672
67673 2006-05-08  Bruno Haible  <bruno@clisp.org>
67674
67675         * modules/stdarg: New file.
67676         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
67677
67678 2006-05-08  Bruno Haible  <bruno@clisp.org>
67679
67680         * m4/stdarg.m4: New file, from GNU gettext.
67681
67682 2006-05-08  Bruno Haible  <bruno@clisp.org>
67683
67684         * config/srclist.txt (build-aux/config.rpath): different from latest
67685         release.
67686
67687 2006-05-08  Bruno Haible  <bruno@clisp.org>
67688
67689         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
67690
67691 2006-05-05  Jim Meyering  <jim@meyering.net>
67692
67693         * m4/warning.m4: New file, derived from bison's file by the same name.
67694
67695 2006-05-03  Bruno Haible  <bruno@clisp.org>
67696
67697         * lib/stdint_.h: Shorter URL.
67698         * lib/inttypes.h: Likewise.
67699
67700 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
67701
67702         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
67703
67704 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
67705
67706         * lib/verify.h: Document the internals better.  Most of this change
67707         was written by Bruno Haible.
67708
67709 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
67710
67711         * doc/verify.texi: New file, partly based on a proposal by
67712         Bruno Haible.
67713
67714 2006-05-02  Bruno Haible  <bruno@clisp.org>
67715
67716         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
67717         test from here...
67718         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
67719
67720 2006-04-29  Bruno Haible  <bruno@clisp.org>
67721
67722         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
67723         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
67724
67725 2006-04-29  Bruno Haible  <bruno@clisp.org>
67726
67727         * gnulib-tool: Make --update option actually work.
67728
67729 2006-04-29  Bruno Haible  <bruno@clisp.org>
67730
67731         * doc/gcd.texi: New file.
67732         * doc/gnulib.texi: Include it.
67733
67734 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
67735
67736         * lib/getdate.y (get_date): When adding relative date, start with the
67737         initial time, not with the result of the first mktime call.
67738
67739 2006-04-25  Bruno Haible  <bruno@clisp.org>
67740
67741         * gnulib-tool (func_import): Output the include directives in three
67742         blocks, sorted separately.
67743         Reported by Ben Pfaff <blp@cs.stanford.edu>.
67744
67745 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
67746
67747         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
67748         to define main with arguments, for C++.  Reported by Eric Blake.
67749         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
67750         Prefer 'int main ()' to 'int main (void)', for C++.
67751         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
67752         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
67753         for 'main', for C99 and C++.
67754
67755 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
67756
67757         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
67758         Don't assume that exit status -1 is valid.
67759         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
67760         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
67761         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
67762         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
67763         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
67764         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
67765         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
67766         functions can be used without declaring them, or that you can
67767         exit with status -1.
67768         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
67769
67770 2006-04-24  Karl Berry  <karl@gnu.org>
67771
67772         * config/srclist.txt (longdouble.m4): sync lost.
67773
67774 2006-04-24  Eric Blake  <ebb9@byu.net>
67775
67776         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
67777
67778 2006-04-24  Bruno Haible  <bruno@clisp.org>
67779
67780         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
67781         poll() implementation in AIX.
67782         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
67783
67784 2006-04-24  Bruno Haible  <bruno@clisp.org>
67785
67786         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
67787         assigned exactly once.
67788
67789 2006-04-23  Claudio Fontana  <claudio@gnu.org>
67790             Bruno Haible  <bruno@clisp.org>
67791
67792         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
67793         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
67794         for AM_CPPFLAGS.
67795
67796 2006-04-23  Bruno Haible  <bruno@clisp.org>
67797
67798         * modules/copy-file: Depend on unistd.
67799         * modules/execute: Likewise.
67800         * modules/fatal-signal: Likewise.
67801         * modules/findprog: Likewise.
67802         * modules/mkdtemp : Likewise.
67803         * modules/pipe: Likewise.
67804         * modules/wait-process: Likewise.
67805
67806 2006-04-23  Bruno Haible  <bruno@clisp.org>
67807
67808         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
67809         condition was already detected.
67810         Reported by Ben Pfaff <blp@cs.stanford.edu>.
67811
67812 2006-04-23  Bruno Haible  <bruno@clisp.org>
67813
67814         * lib/copy-file.c: Include <unistd.h> unconditionally.
67815         * lib/execute.c: Likewise.
67816         * lib/fatal-signal.c: Likewise.
67817         * lib/findprog.c: Likewise.
67818         * lib/mkdtemp.c: Likewise.
67819         * lib/pipe.h: Likewise.
67820         * lib/pipe.c: Likewise.
67821         * lib/wait-process.h: Likewise.
67822
67823 2006-04-23  Bruno Haible  <bruno@clisp.org>
67824
67825         * gnulib-tool (func_usage): Fix --import description. Document
67826         --update.
67827         (func_import): Create temporary file in a temporary directory, if
67828         --dry-run is specified. Silence errors from 'grep' when there are no
67829         m4 files in $m4dir.
67830         (func_create_testdir): Silence errors from 'grep' when there are no
67831         m4 files in $m4dir.
67832         Reported by Karl Berry <karl@freefriends.org>.
67833
67834 2006-04-20  Bruno Haible  <bruno@clisp.org>
67835
67836         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
67837         one argument, so that the code will be portable to Autoconf 2.60.
67838         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
67839         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
67840         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
67841
67842 2006-04-19  Derek Price  <derek@ximbiot.com>
67843             Eric Blake  <ebb9@byu.net>
67844
67845         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
67846         rather than "/full/path.h".  Update comment to match.  Shorten &
67847         generalize m4_translit call via AS_TR_CPP.
67848
67849 2006-04-19  Derek Price  <derek@ximbiot.com>
67850             Eric Blake  <ebb9@byu.net>
67851
67852         * lib/inttypes.h: Correct grammar in comment.
67853
67854 2006-04-18  Derek Price  <derek@ximbiot.com>
67855             Paul Eggert  <eggert@cs.ucla.edu>
67856
67857         * modules/inttypes: New file.
67858         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
67859
67860 2006-04-18  Derek Price  <derek@ximbiot.com>
67861             Paul Eggert  <eggert@cs.ucla.edu>
67862
67863         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
67864         New files.
67865
67866 2006-04-18  Derek Price  <derek@ximbiot.com>
67867             Paul Eggert  <eggert@cs.ucla.edu>
67868
67869         * lib/inttypes.h: New file.
67870         * lib/strtoimax.c: Assume <inttypes.h>.
67871
67872 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
67873
67874         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
67875         isn't mounted.  Problem reported by Kir Kolyshkin.
67876
67877 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
67878
67879         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
67880         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
67881         Derek R. Price.
67882         * lib/regex.h (RE_DUP_MAX): Update comment to match current
67883         implementation.
67884
67885 2006-04-12  Eric Blake  <ebb9@byu.net>
67886
67887         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
67888         is now done automatically by the corresponding Autoconf macro.
67889
67890 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
67891
67892         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
67893         time_r.h.
67894
67895 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
67896
67897         Merge regex changes from libc, removing some of our
67898         POSIX-conformance changes that were rejected and redoing them in a
67899         less-intrusive way.
67900
67901         * lib/regcomp.c (re_compile_internal, init_dfa):
67902         Length arg is now size_t, not Idx.  All uses changed.
67903         (peek_token): Forward decl now says internal_function.
67904         (__re_error_msgid, __re_error_msgid_idx):
67905         Now static rather than extern with attribute_hidden.
67906         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
67907         For some reason libc prefers K&R style defns for external functions.
67908         (regerror) [!defined _LIBC]: Likewise.
67909         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
67910         (seek_collating_symbol_entry, lookup_collation_sequence_value):
67911         (build_range_exp, build_collating_symbol):
67912         Use K&R-style defn.
67913         (re_compile_fastmap): Use '\0' to memset, not 0.
67914         (utf8_sb_map): Make the calculations more obvious.
67915         (init_dfa, parse_bracket_exp, build_charclass_op):
67916         Call calloc and cast result, as glibc does.
67917         (init_word_char, fetch_token, peek_token, peek_token_bracket):
67918         (build_range_exp, build_collating_symbol):
67919         Now internal functions.
67920
67921         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
67922
67923         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
67924         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
67925         Don't depend on VMS; depend on __VMS instead, for POSIX
67926         namespace cleanness.
67927         (regoff_t): Define to ssize_t, not long int.
67928
67929         Remove the REG_ macros named below.  Instead, make the old names
67930         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
67931         __USE_GNU_REGEX.
67932         (REG_BACKSLASH_ESCAPE_IN_LISTS):
67933         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
67934         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
67935         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
67936         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
67937         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
67938         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
67939         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
67940         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
67941         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
67942         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
67943         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
67944         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
67945         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
67946         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
67947         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
67948         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
67949         (REG_NREGS):
67950         Remove.  All uses replaced by the old RE_* names.
67951         (RE_BACKSLASH_ESCAPE_IN_LISTS):
67952         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
67953         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
67954         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
67955         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
67956         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
67957         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
67958         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
67959         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
67960         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
67961         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
67962         Don't bother having these macros be independent of each others'
67963         values, since they no longer exist in the POSIX name space.
67964
67965         Rename the following member names back to their old names,
67966         unless !__USE_GNU_REGEX.  All uses changed back.
67967         (buffer): Renamed from re_buffer.
67968         (allocated): Renamed from re_allocated.
67969         (used): Renamed from re_used.
67970         (syntax): Renamed from re_syntax.
67971         (fastmap): Renamed from re_fastmap.
67972         (translate): Renamed from re_translate.
67973         (can_be_null): Renamed from re_can_be_null.
67974         (regs_allocated): Renamed from re_regs_allocated.
67975         (fastmap_accurate): Renamed from re_fastmap_accurate.
67976         (no_sub): Renamed from re_no_sub.
67977         (not_bol): Renamed from re_not_bol.
67978         (not_eol): Renamed from re_not_eol.
67979         (newline_anchor): Renamed from re_newline_anchor.
67980         (num_regs): Renamed from rm_num_regs.
67981         (start): Renamed from rm_start.
67982         (end): Renamed from rm_end.
67983
67984         (free_state): Move up a bit.
67985
67986         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
67987         #define to be empty.
67988         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
67989         when that is what is intended.
67990         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
67991         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
67992         (MAX): New macro.
67993         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
67994         All uses changed back to re_malloc, etc.  It's now the caller's
67995         responsibility to check for overflow; all callers changed.
67996         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
67997         (re_x2nrealloc): Remove.
67998         (free_state): Remove decl.
67999
68000         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
68001         (re_set_registers, re_exec):
68002         Use K&R-style defn.
68003
68004         2006-01-31  Roland McGrath  <roland@redhat.com>
68005
68006         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
68007         Reported by Mike Frysinger <vapier@gentoo.org>.
68008
68009         2006-01-15  Andreas Jaeger  <aj@suse.de>
68010
68011         [BZ #1950]
68012         * lib/regex_internal.c (re_string_reconstruct): Adjust for
68013         build_wcs_upper_buffer change.
68014         (build_wcs_upper_buffer): Change return type.
68015
68016         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
68017
68018         * lib/regex_internal.h: Include <stdint.h> if available.
68019
68020         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
68021
68022         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
68023
68024         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
68025
68026         * lib/regcomp.c: Adjust for changed secondary hash function.
68027
68028         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
68029
68030         * lib/regex.h: Pretty printing.
68031         Clean up namespace a bit.
68032
68033         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
68034
68035         * lib/regexec.c (update_cur_sifted_state, check_arrival,
68036         check_arrival_add_next_nodes): Avoid using uninitialized variable.
68037
68038         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
68039                     Ulrich Drepper  <drepper@redhat.com>
68040
68041         [BZ #1302]
68042         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
68043         changed.
68044         (bitset_word_t): Renamed from bitset_word.  All uses changed.
68045
68046         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
68047
68048         [BZ #281]
68049         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
68050         * lib/regcomp.c: Remove unnecessary uses of
68051         unsigned RE_TRANSLATE_TYPE.
68052         * lib/regex_internal.h: Likewise.
68053         * lib/regex_internal.c: Likewise.
68054         * lib/regexec.c: Likewise.
68055         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
68056
68057         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
68058
68059         * lib/regexec.c (find_recover_state): Remove unnecessary
68060         initialization.
68061         (transit_state_bkref): Make DFA a const pointer.
68062         (get_subexp): Likewise.
68063         (check_arrival): Likewise.
68064         (update_cur_sifted_state): Likewise.
68065         (re_search_internal): Likewise.
68066         (prune_impossible_nodes): Likewise.
68067         (acquire_init_state_context): Likewise.
68068         (proceed_next_node): Likewise.
68069         (set_regs): Likewise.
68070         (free_fail_stack_return): Likewise.
68071         (check_arrival_expand_ecl): Mark DFA parameter as const.
68072         (check_arrival_expand_ecl_sub): Likewise.
68073         (check_subexp_limits): Likewise.
68074         (sub_epsilon_src_nodes):  Likewise.
68075         (add_epsilon_src_nodes):  Likewise.
68076         (merge_state_array): Likewise.
68077         (update_regs): Likewise.
68078         (build_trtable): Likewise.
68079         (sift_states_backward): Mark MCTX parameter as const.
68080         (build_sifted_states): Likewise.
68081         (update_cur_sifted_state): Likewise.
68082         (sift_states_mkref): Likewise.
68083         (check_arrival_expand_ecl): Mark eclosure as const.
68084         (check_dst_limits_calc_pos_1): Likewise.
68085         * lib/regex_internal.h (re_match_context_t): Make dfa a const
68086         pointer.
68087
68088         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
68089
68090         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
68091         (transit_state_sb): Likewise.
68092         (transit_state_mb): Likewise.
68093         (sift_states_iter_mb): Likewise.
68094         (check_arrival_add_next_nodes): Likewise.
68095         (check_node_accept_bytes): Change first parameter to pointer-to-const.
68096         [_LIBC] (re_search_2_stub): Use mempcpy.
68097
68098         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
68099         mbrtowc for very simple UTF-8 case.
68100
68101         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
68102         a pointer-to-const.
68103         (re_acquire_state_context): Likewise.
68104         * lib/regex_internal.h: Adjust prototypes.
68105
68106         * lib/regex.c: Prevent using C++ compilers.
68107
68108         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
68109         (re_acquire_state_context): Likewise.
68110
68111 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
68112
68113         * modules/regex (Depends-on): Add ssize_t.
68114
68115 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
68116
68117         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
68118         translation table.
68119
68120 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
68121
68122         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
68123
68124 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
68125             Bruno Haible  <bruno@clisp.org>
68126
68127         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
68128         <sys/types.h> and <inttypes.h>.
68129
68130 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68131
68132         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
68133         `__error_t_defined', so argp.h will not typedef the former.
68134
68135 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
68136
68137         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
68138         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
68139         glibc names.  Even if glibc is changed to conform to POSIX, the
68140         traditional names will be available anyway, since regex depends on
68141         the extensions module.  Also, fix a longstanding typo in the
68142         implementation of Spencer ERE test #75 from grep 2.3.  Problems
68143         reported by Emanuele Giaquinta.  Also, change sense of cached
68144         variable, so that the message makes sense.
68145
68146 2006-03-24  Simon Josefsson  <jas@extundo.com>
68147
68148         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
68149         including some doc fixes.
68150         (base64_encode_alloc): Fix +1 bug on allocation failures.
68151
68152 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68153
68154         * lib/base64.c (base64_encode): Do not read past end of array with
68155         unsanitized input on systems with CHAR_BIT > 8.
68156
68157 2006-03-24  Eric Blake  <ebb9@byu.net>
68158
68159         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
68160
68161 2006-03-22  Karl Berry  <karl@gnu.org>
68162
68163         * config/srclist.txt (*setenv.[ch]): get from coreutils.
68164         * config/srclistvars.sh (COREUTILS): new var.
68165
68166 2006-03-17  Jim Meyering  <jim@meyering.net>
68167
68168         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
68169         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
68170
68171 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
68172
68173         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
68174         no longer needs it.  Instead, check that regoff_t is as least
68175         as wide as ptrdiff_t.
68176
68177         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
68178         so that our regex.h stays compatible with the installed regex.
68179         This is helpful for installers who configure --without-included-regex.
68180         Problem reported by Emanuele Giaquinta.
68181
68182 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
68183
68184         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
68185         Typedef to long int, not to off_, as POSIX will likely change
68186         in that direction.
68187
68188 2006-03-15  Eric Blake  <ebb9@byu.net>
68189
68190         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
68191
68192 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
68193
68194         * lib/argp-help.c (validate_uparams): Fix typo
68195         * lib/argp-parse.c (argp_default_options): Consistently begin help
68196         messages with a lowercase letter.
68197
68198 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
68199
68200         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
68201         overrun buffers and shouldn't be used (much as gets shouldn't be
68202         used).
68203         * lib/time_r.c (asctime_r, ctime_r): Likewise.
68204
68205 2006-03-08  Simon Josefsson  <jas@extundo.com>
68206
68207         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
68208         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68209
68210 2006-03-08  Simon Josefsson  <jas@extundo.com>
68211
68212         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
68213         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68214
68215 2006-03-08  Simon Josefsson  <jas@extundo.com>
68216
68217         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
68218         signal that configure disabled the device.
68219
68220 2006-03-08  Simon Josefsson  <jas@extundo.com>
68221
68222         * build-aux/maint.mk: Fix refresh-po, to handle no translated
68223         languages.
68224
68225 2006-03-07  Simon Josefsson  <jas@extundo.com>
68226
68227         * modules/getopt (Depends-on): Add unistd.
68228
68229         * modules/unistd: New file.
68230
68231 2006-03-07  Simon Josefsson  <jas@extundo.com>
68232
68233         * modules/gc-random: New file.
68234
68235 2006-03-07  Simon Josefsson  <jas@extundo.com>
68236
68237         * m4/unistd_h.m4: New file.
68238
68239 2006-03-07  Simon Josefsson  <jas@extundo.com>
68240
68241         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
68242         test to be side-effect free by storing the result in the cache
68243         variable gl_cv_lib_readline, and moving the assignment of
68244         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
68245         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68246
68247 2006-03-07  Simon Josefsson  <jas@extundo.com>
68248
68249         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
68250         error on missing devices (the functions will return an error).
68251
68252         * m4/gc.m4: Move random stuff to gc-random.m4
68253
68254 2006-03-07  Simon Josefsson  <jas@extundo.com>
68255
68256         * lib/unistd_.h: New file.
68257
68258 2006-03-07  Simon Josefsson  <jas@extundo.com>
68259
68260         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
68261
68262 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
68263
68264         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
68265         Problem reported by Juan Manuel Guerrero.
68266
68267 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
68268
68269         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
68270         the unistd module.
68271         * lib/getlogin_r.c: Likewise.
68272         * lib/getlogin_r.h: Likewise.
68273         * lib/glob.c: Likewise.
68274         * lib/pagealign_alloc.c: Likewise.
68275         * lib/unistd_.h: Remove; no longer needed.
68276
68277 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
68278
68279         * MODULES.html.sh (Support for systems lacking POSIX:2001):
68280         Add unistd.
68281         * modules/c-stack (Depends-on): Add unistd.
68282         * modules/getlogin_r: Likewise.
68283         * modules/glob: Likewise.
68284         * modules/pagealign_alloc: Likewise.
68285         * modules/unistd (Files): Remove lib/unistd_.h.
68286         (EXTRA_DIST): Remove.
68287         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
68288         need unistd_.h.
68289         (MOSTLYCLEANFILES): Remove unistd.h-t.
68290
68291 2006-03-03  Simon Josefsson  <jas@extundo.com>
68292
68293         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
68294
68295 2006-03-03  Simon Josefsson  <jas@extundo.com>
68296
68297         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
68298         libidn and bison.
68299
68300 2006-03-03  Simon Josefsson  <jas@extundo.com>
68301
68302         * build-aux/maint.mk: Add indent target.
68303
68304 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
68305
68306         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
68307         our replacement poll.h in any case, to avoid a differing
68308         declaration from a system header.  Seen on AIX.
68309
68310 2006-03-01  Simon Josefsson  <jas@extundo.com>
68311
68312         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
68313         <kasal@ucw.cz>.
68314
68315 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
68316
68317         * modules/gettime (Depends-on): Add extensions module.
68318         * modules/nanosleep (Depends-on): Likewise.
68319         * modules/settime (Depends-on): Likewise.
68320
68321 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
68322
68323         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
68324         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
68325         pedantically.
68326         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
68327         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
68328
68329         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
68330         not "==".  Reported by Ralf Wildenhues.
68331
68332 2006-03-01  Karl Berry  <karl@gnu.org>
68333
68334         * doc/Copyright/request-*: new files, synced from gnuorg.
68335
68336 2006-03-01  Karl Berry  <karl@gnu.org>
68337
68338         * config/srclist.txt (Copyright/*): new entries.
68339
68340 2006-02-28  Simon Josefsson  <jas@extundo.com>
68341
68342         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
68343
68344 2006-02-27  Simon Josefsson  <jas@extundo.com>
68345
68346         * lib/base64.h: Indent #define's.  From Jim Meyering
68347         <jim@meyering.net>.
68348
68349 2006-02-27  Jim Meyering  <jim@meyering.net>
68350
68351         Revert the change of 2006-02-24, so these files can continue
68352         to be sync'd from gettext.
68353         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
68354         of `config.h'.
68355
68356 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
68357
68358         * modules/intprops: New file.
68359         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
68360         Add intprops.
68361         * modules/getloadavg (Files): Remove lib/intprops.h.
68362         (Depends-on): Add intprops.
68363         * modules/human: Likewise.
68364         * modules/inttostr: Likewise.
68365         * modules/openat: Likewise.
68366         * modules/sig2str: Likewise.
68367         * modules/userspec: Likewise.
68368         * modules/utimecmp: Likewise.
68369         * modules/xnanosleep: Likewise.
68370         * modules/xstrtol: Likewise.
68371
68372 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
68373
68374         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
68375         * modules/lock-tests (TESTS): Use $(EXEEXT).
68376         * modules/tls-tests: Likewise.
68377         * modules/argp-tests: Likewise.
68378         (check_PROGRAMS): New var, replacing...
68379         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
68380
68381 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68382
68383         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
68384         `config.h'.
68385
68386 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
68387
68388         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
68389
68390 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68391
68392         Sync from coreutils.
68393         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
68394         gl_CHDIR_SAFER.
68395
68396 2006-02-22  Jim Meyering  <jim@meyering.net>
68397
68398         Sync from coreutils.
68399         * m4/chdir-safer.m4: New file.
68400
68401 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
68402
68403         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
68404         AT_FDCWD exceeds INT_MAX.
68405         * lib/openat.h (AT_FDCWD): Likewise.
68406
68407 2006-02-17  Eric Blake  <address@hidden>
68408
68409         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
68410
68411 2006-02-16  Simon Josefsson  <jas@extundo.com>
68412
68413         * modules/getaddrinfo (Depends-on): Add sys_socket.
68414
68415 2006-02-15  Simon Josefsson  <jas@extundo.com>
68416
68417         * build-aux/maint.mk: Add dsyntax-check rule.
68418
68419 2006-02-15  Eric Blake  <ebb9@byu.net>
68420
68421         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
68422         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
68423         'present but cannot compile' warnings on cygwin.
68424         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
68425         use ws2tcpip.h if sys/socket.h works.
68426         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
68427         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
68428
68429 2006-02-14  Simon Josefsson  <jas@extundo.com>
68430
68431         * modules/maintainer-makefile (Files): Rename.
68432
68433         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
68434         and (the local) Makefile.cfg to maint-cfg.mk.
68435
68436         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
68437         to the latter.
68438
68439         * modules/maintainer-makefile: New module.
68440
68441         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
68442         severaly stripped to make it possible to build it up from scratch
68443         with reliable tests.
68444
68445         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
68446         fixes to permit overriding the default actions when configure and
68447         makefile are not available.
68448
68449 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
68450
68451         Sync from coreutils.
68452         * modules/lstat (Depends-on): Don't depend on xalloc.
68453         (License): Change from GPL to LGPL, since this is now simply a
68454         replacement for a libc function.
68455
68456 2006-02-14  Jim Meyering  <jim@meyering.net>
68457
68458         Sync from coreutils.
68459
68460         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
68461         failure on deficient systems, and simplify gnulib lgpl dependencies.
68462         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
68463         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
68464
68465         * lib/xalloc-die.c: Remove unused definition of N_.
68466
68467 2006-02-14  Jim Meyering  <jim@meyering.net>
68468
68469         Sync from coreutils.
68470         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
68471         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
68472         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
68473         double-quote uses of that variable, to accommodate the rare case in
68474         which getmntent is available in none of the libraries checked.  This
68475         happens at least on FreeBSD 5.0.
68476
68477 2006-02-13  Simon Josefsson  <jas@extundo.com>
68478
68479         * gnulib-tool (Usage): Fix --import, from
68480         karl@freefriends.org (Karl Berry).
68481
68482 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
68483
68484         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
68485
68486 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
68487
68488         * lib/argp-namefrob.h: Restore changes accidentally lost during the
68489         "autoupdate" on 2005-12-12.
68490
68491 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
68492
68493         * modules/closeout (Depends-on): Remove atexit.
68494
68495 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
68496
68497         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
68498         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
68499
68500 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
68501
68502         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
68503         __EXTENSIONS__ if this causes compilation to fail.  Problem
68504         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
68505         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
68506
68507 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
68508
68509         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
68510         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
68511         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
68512         All uses changed.
68513
68514 2006-01-26  Simon Josefsson  <jas@extundo.com>
68515
68516         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
68517         prototype is visible on mingw32.
68518
68519         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
68520         for mingw32.
68521
68522         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
68523         mingw32).
68524
68525 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
68526
68527         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
68528         attempt to open for write; this always fails, at least on POSIX
68529         hosts.  This reinstates the 2006-01-09 change, which was
68530         inadvertently removed.
68531
68532 2006-01-26  Bruno Haible  <bruno@clisp.org>
68533
68534         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
68535         Reported by Paul Eggert.
68536
68537 2006-01-26  Bruno Haible  <bruno@clisp.org>
68538             Paul Eggert  <eggert@cs.ucla.edu>
68539
68540         * lib/stdbool_.h (_Bool)
68541         [(! (defined __cplusplus || defined __BEOS__)
68542           && !defined __GNUC__
68543           && !(defined __HP_cc || defined __xlc__
68544                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
68545                || defined __sgi))]:
68546         #define to signed char in these cases too; this simplifies
68547         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
68548         etc., separately) and makes it more conservative.
68549
68550 2006-01-25  Simon Josefsson  <jas@extundo.com>
68551
68552         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
68553         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
68554         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
68555
68556 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
68557
68558         * lib/argp-namefrob.h: Bugfix. Remove stray #
68559
68560 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
68561
68562         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
68563         so that we test the test.
68564         Check for yet another HP-UX cc bug involving *bool |= bool.
68565
68566 2006-01-25  Karl Berry  <karl@gnu.org>
68567
68568         * config/srclist.txt (vasnprintf.c): sync lost.
68569
68570 2006-01-25  Jim Meyering  <jim@meyering.net>
68571
68572         Sync from the stable (b5) branch of coreutils:
68573
68574         * lib/fts.c (fts_children): Don't let close() clobber errno from
68575         failed fchdir().
68576
68577         * lib/fts.c (fts_stat): When following a symlink-to-directory,
68578         don't necessarily interpret stat-fails+lstat-succeeds as indicating
68579         a dangling symlink.  That can also happen at least for ELOOP.
68580         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
68581         FYI, this bug predates the inclusion of fts.c in coreutils.
68582
68583         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
68584         in their own block, so pre-c99 compilers don't object.
68585
68586         Avoid the double-free (first in fts_read, second in fts_close) that
68587         would occur when an `active' directory is made inaccessible (e.g.,
68588         via chmod a-x) during a traversal.
68589         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
68590         before returning.  Reproduce this failure by
68591         mkdir -p a/b; cd a; chmod a-x . b
68592         Reported by Stavros Passas.
68593
68594 2006-01-25  Jim Meyering  <jim@meyering.net>
68595
68596         * lib/fileblocks.c: Remove more useless parentheses.
68597         * lib/readutmp.h: Likewise.
68598
68599 2006-01-25  Bruno Haible  <bruno@clisp.org>
68600
68601         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
68602         warnings.
68603         Reported by Paul Eggert.
68604
68605 2006-01-25  Bruno Haible  <bruno@clisp.org>
68606
68607         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
68608         rid of a trap command. For Solaris sh.
68609         Reported by Mark D. Baushke <mdb@gnu.org>.
68610
68611 2006-01-24  Simon Josefsson  <jas@extundo.com>
68612
68613         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
68614         Bruno.
68615
68616 2006-01-24  Karl Berry  <karl@gnu.org>
68617
68618         * config/srclist.txt (argp-namefrob.h): sync lost.
68619
68620 2006-01-24  Jim Meyering  <jim@meyering.net>
68621
68622         * modules/openat (Files): Add lib/intprops.h.
68623         From Mark D. Baushke.
68624
68625 2006-01-24  Jim Meyering  <jim@meyering.net>
68626
68627         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
68628         Reported by Mark D. Baushke.
68629
68630 2006-01-24  Jim Meyering  <jim@meyering.net>
68631
68632         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
68633
68634 2006-01-24  Bruno Haible  <bruno@clisp.org>
68635
68636         * modules/strnlen (Maintainer): Change from glibc to all.
68637
68638 2006-01-24  Bruno Haible  <bruno@clisp.org>
68639
68640         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
68641         Patch by Paul Eggert.
68642
68643 2006-01-24  Bruno Haible  <bruno@clisp.org>
68644
68645         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
68646         already has it.
68647         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
68648         2005-11-26.
68649
68650         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
68651         'signed char' to avoid problems with the built-in _Bool type.
68652         Reported by Paul Eggert on 2005-11-26.
68653
68654 2006-01-24  Bruno Haible  <bruno@clisp.org>
68655
68656         * gnulib-tool (func_import): Avoid constructing complicated sed
68657         expressions inside backquote.
68658         Report and solution by Mark D. Baushke <mdb@gnu.org>.
68659
68660 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
68661
68662         These changes imported from libc.
68663         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
68664         test and two separate function calls.
68665         * lib/strndup.c (__strndup): Add libc_hidden_def.
68666
68667 2006-01-23  Simon Josefsson  <jas@extundo.com>
68668
68669         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
68670         Remove the test_*_SOURCES variable: automake infers it by default.
68671         * modules/tls-tests: Likewise.
68672
68673 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
68674
68675         Work around porting bugs reported by Dieter in
68676         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
68677         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
68678         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
68679         Include "getopt.h" first, to check interface.
68680         (getenv): Declare only if defined HAVE_DECL_GETENV &&
68681         !HAVE_DECL_GETENV.
68682         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
68683         (__strndup): Revert to K&R-style function dfns, the glibc style.
68684         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
68685         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
68686         Include strnlen.h first, to get prototype properly.
68687         (strnlen): Renamed from __strnlen.
68688         Remove weak alias.
68689
68690 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
68691
68692         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
68693
68694 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
68695
68696         * config/srclist.txt: Adjust to reflect glibc reorganization.
68697         This affects only comments.
68698
68699 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
68700
68701          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
68702          Reported by Bruce Korb <bkorb@gnu.org>.
68703
68704 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
68705
68706         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
68707         to pacify gcc -Wswitch-default.
68708
68709 2006-01-22  Bruno Haible  <bruno@clisp.org>
68710
68711         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
68712         temporary buffer for sprintf, take into account the precision also
68713         for 'd', 'i', 'u', 'o', 'x', 'X'.
68714
68715 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
68716
68717         * modules/argp-tests: New module
68718         * tests/test-argp.c: New file
68719         * tests/test-argp-2.sh: New file
68720
68721 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
68722
68723         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
68724         (__argp_base_name): Removed
68725         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
68726         typo.
68727         (__argp_base_name): Provide macro definition or extern declaration
68728         depending on the configuration
68729
68730 2006-01-20  Simon Josefsson  <jas@extundo.com>
68731
68732         * modules/inet_ntop (Depends-on): Depend on sys_socket.
68733
68734 2006-01-20  Simon Josefsson  <jas@extundo.com>
68735
68736         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
68737
68738 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
68739
68740         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
68741         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
68742         Suggested by Bruno Haible.
68743
68744 2006-01-20  Karl Berry  <karl@gnu.org>
68745
68746         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
68747         until changes propagate, I guess.
68748
68749 2006-01-19  Simon Josefsson  <jas@extundo.com>
68750
68751         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
68752
68753 2006-01-19  Simon Josefsson  <jas@extundo.com>
68754
68755         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
68756
68757 2006-01-19  Simon Josefsson  <jas@extundo.com>
68758
68759         * gnulib-tool: Set check_PROGRAMS.
68760
68761         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
68762         modules/des-tests, modules/gc-arcfour-tests,
68763         modules/gc-arctwo-tests, modules/gc-des-tests,
68764         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
68765         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
68766         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
68767         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
68768         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
68769         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
68770         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
68771         test_*_SOURCES.
68772
68773 2006-01-18  Simon Josefsson  <jas@extundo.com>
68774
68775         * modules/socklen (Depends-on): Depend on sys_socket.
68776
68777 2006-01-18  Simon Josefsson  <jas@extundo.com>
68778
68779         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
68780         modules/des-tests, modules/gc-arcfour-tests,
68781         modules/gc-arctwo-tests, modules/gc-des-tests,
68782         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
68783         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
68784         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
68785         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
68786         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
68787         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
68788         $(EXEEXT) to automake TESTS variable, for mingw32.
68789
68790 2006-01-17  Simon Josefsson  <jas@extundo.com>
68791
68792         * modules/socklen (Include): Need sys/socket.h.
68793
68794 2006-01-17  Bruno Haible  <bruno@clisp.org>
68795
68796         * modules/ssize_t (Include): Add <sys/types.h>.
68797
68798 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
68799
68800         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
68801         it's not portable and it doesn't work with cross-compiles.
68802         Problem reported by Bruno Haible.  Fix missing-$ typo in
68803         'test "gl_cv_ignore_unused_libraries" ...' that prevented
68804         -zignore from being used with Sun's C compiler.
68805
68806 2006-01-12  Simon Josefsson  <jas@extundo.com>
68807
68808         * lib/base64.c: Fix warning, reported by Bruno Haible
68809         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
68810
68811 2006-01-12  Bruno Haible  <bruno@clisp.org>
68812
68813         * modules/ldd: New file.
68814         * build-aux/ldd.sh.in: New file.
68815         * MODULES.html.sh (Support for building libraries and executables): Add
68816         ldd.
68817
68818 2006-01-12  Bruno Haible  <bruno@clisp.org>
68819
68820         * m4/ldd.m4: New file.
68821
68822 2006-01-12  Bruno Haible  <bruno@clisp.org>
68823
68824         * gnulib-tool (func_import, func_create_testdir): Don't go into an
68825         endless loop while replacing $auxdir with build-aux.
68826
68827 2006-01-11  Simon Josefsson  <jas@extundo.com>
68828
68829         * lib/stdint_.h (SIZE_MAX): Add missing (.
68830
68831 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
68832
68833         Sync from coreutils.
68834         * lib/md5.c: Fix commentary typos.
68835         (alignof, UNALIGNED_P): No need for a GCC-specific version.
68836         * lib/md5.h (__attribute__): Remove; unused.
68837         * lib/sha1.c: Fix commentary to match md5 better.
68838         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
68839         so that we don't need to worry about alignment.  All uses changed.
68840         This merges the 2005-10-28 md5 change into sha1.
68841
68842 2006-01-11  Jim Meyering  <jim@meyering.net>
68843
68844         Sync from coreutils.
68845         * lib/md5.c (OP): Fix spacing.
68846
68847 2006-01-11  Bruno Haible  <bruno@clisp.org>
68848
68849         Ensure automatic ordering between gl_LOCK and gl_ARGP.
68850         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
68851         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
68852
68853 2006-01-11  Bruno Haible  <bruno@clisp.org>
68854
68855         Ensure automatic ordering between gl_LOCK and gl_ARGP.
68856         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
68857         the "early" section as well.
68858
68859 2006-01-11  Bruno Haible  <bruno@clisp.org>
68860
68861         Avoid "ar: no archive members specified" error on MacOS X.
68862         * gnulib-tool (func_modules_add_dummy): New function.
68863         (func_import, func_create_testdir): Invoke it.
68864
68865 2006-01-11  Bruno Haible  <bruno@clisp.org>
68866
68867         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
68868         with $auxdir in AC_CONFIG_FILES statements.
68869
68870 2006-01-11  Bruno Haible  <bruno@clisp.org>
68871
68872         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
68873         Initialize also noinst_HEADERS to empty.
68874
68875 2006-01-11  Bruno Haible  <bruno@clisp.org>
68876
68877         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
68878         variables.
68879         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
68880         autoreconf.
68881
68882 2006-01-11  Bruno Haible  <bruno@clisp.org>
68883
68884         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
68885         overridable by the user.
68886         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68887
68888 2006-01-10  Simon Josefsson  <jas@extundo.com>
68889
68890         * modules/sys_socket: New file.
68891
68892 2006-01-10  Simon Josefsson  <jas@extundo.com>
68893
68894         * m4/sys_socket_h.m4: New file.
68895
68896 2006-01-10  Simon Josefsson  <jas@extundo.com>
68897
68898         * lib/socket_.h: New file.
68899
68900 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
68901
68902         * modules/readutmp (Maintainer): Add myself.
68903
68904 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
68905
68906         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
68907         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
68908         People who are still concerned with buggy memcmp implementations
68909         can invoke gl_FUNC_MEMCMP themselves.
68910
68911 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
68912
68913         * lib/regex_internal.h (BITSET_WORD_BITS):
68914         Work around a bug in 64-bit PGC (before version 6.1-2), where the
68915         preprocessor mishandles large unsigned values as if they were signed.
68916         Problem reported by Claudio Fontana in
68917         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
68918
68919 2006-01-10  Jim Meyering  <jim@meyering.net>
68920
68921         Avoid the double-free (first in fts_read, second in fts_close) that
68922         would occur when an `active' directory is made inaccessible (e.g.,
68923         via chmod a-x) during a traversal.
68924         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
68925         before returning.  Reproduce this failure by
68926         mkdir -p a/b; cd a; chmod a-x . b
68927         Reported by Stavros Passas.
68928
68929         Sync from coreutils.
68930         * lib/sha1.c: Tweak grammar in a comment.
68931
68932 2006-01-10  Jim Meyering  <jim@meyering.net>
68933
68934         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
68935         Patch by Joerg Sonnenberger.
68936
68937 2006-01-10  Bruno Haible  <bruno@clisp.org>
68938
68939         * modules/readutmp: Depend on module free.
68940         * modules/strtok_r: Depend on module restrict.
68941
68942 2006-01-10  Bruno Haible  <bruno@clisp.org>
68943
68944         * modules/gettext (configure.ac): Add an invocation of
68945         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
68946
68947 2006-01-10  Bruno Haible  <bruno@clisp.org>
68948
68949         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
68950         Reported by Werner Lemberg <wl@gnu.org>.
68951
68952 2006-01-10  Bruno Haible  <bruno@clisp.org>
68953
68954         * lib/localcharset.c: Update from GNU gettext.
68955
68956 2006-01-10  Bruno Haible  <bruno@clisp.org>
68957
68958         * lib/argp.h (__const): Remove macro. Use const instead.
68959         * lib/argp-fmtstream.h (__const): Likewise.
68960         * lib/glob_.h (__const): Remove macro.
68961         * lib/glob-libc.h: Use const instead of __const.
68962
68963 2006-01-10  Bruno Haible  <bruno@clisp.org>
68964
68965         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
68966         variable.
68967         Needed to avoid an automake error regarding the 'gettext' module.
68968
68969 2006-01-09  Simon Josefsson  <jas@extundo.com>
68970
68971         * modules/inet_ntop (Depends-on): Add restrict.
68972
68973 2006-01-09  Simon Josefsson  <jas@extundo.com>
68974
68975         * modules/gc-rijndael-tests (License): Put under LGPL.
68976
68977         * modules/gc-des-tests (License): Likewise.
68978
68979         * modules/gc-arcfour-tests (License): Likewise.
68980
68981         * modules/gc-arctwo-tests (License): Likewise.
68982
68983         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
68984
68985         * modules/gc-hmac-sha1-tests (Files): Likewise.
68986
68987         * modules/gc-hmac-md5-tests (License): Likewise.
68988
68989         * modules/gc-sha1-tests (License): Likewise.
68990
68991         * modules/gc-md5-tests (License): Likewise.
68992
68993         * modules/gc-md4-tests (License): Likewise.
68994
68995         * modules/gc-md2-tests (License): Likewise.
68996
68997         * modules/gc-tests (License): Likewise.
68998
68999         * modules/des-tests (License): Likewise.
69000
69001         * modules/md4-tests (License): Likewise.
69002
69003         * modules/md2-tests (License): Likewise.
69004
69005 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
69006
69007         Sync from coreutils:
69008
69009         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
69010         * modules/lib-ignore: New file.
69011         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
69012         chdir-safer.m4, lchmod.m4.
69013         * modules/openat: Add mkdirat.c, openat-priv.h.
69014
69015 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
69016
69017         Sync from coreutils.
69018         * m4/lib-ignore.m4: New file.
69019         * m4/lchmod.m4: New file.
69020
69021 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
69022
69023         Sync from coreutils.
69024         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
69025         for write access: POSIX says that must fail.
69026         * lib/fts.c (diropen): Likewise.
69027         * lib/save-cwd.c (save_cwd): Likewise.
69028         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
69029         well, for minor improvements on hosts that lack O_DIRECTORY.
69030         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
69031         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
69032         Fall back on chown if open failed with EACCES.
69033
69034         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
69035         Report an error at compile-time if only a 1-second nominal clock
69036         resolution is found.
69037
69038         * lib/lchmod.h: New file.
69039         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
69040         (make_dir_parents): Use lchown rather than chown, and
69041         lchmod rather than chmod.
69042
69043         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
69044         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
69045         "proc" reported by n0dalus.
69046
69047         * lib/mountlist.c: Include <limits.h>.
69048         (dev_from_mount_options)
69049         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
69050         New function.  It no longer assumes "dev=" has the System V meaning
69051         on Linux (since it doesn't).  It also parses "dev=" more carefully.
69052         (read_file_system_list)
69053         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
69054         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
69055         dev= in that case.
69056
69057         * lib/posixtm.h (PDS_PRE_2000): New macro.
69058         * lib/posixtm.c (year): Arg is now syntax_bits rather than
69059         allow_century.  All usages changed.  Reject dates outside the range
69060         1969-1999 if PDS_PRE_2000 is used.
69061
69062 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
69063
69064         Sync from coreutils.
69065         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
69066         (Time of day items): Mention the possibility of leap seconds.
69067         Problem reported by Dr. David Alan Gilbert.
69068
69069 2006-01-09  Jim Meyering  <jim@meyering.net>
69070
69071         Sync from coreutils.
69072
69073         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
69074
69075         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
69076
69077         * lib/modechange.c (mode_compile): Reject an invalid mode string
69078         that starts with an octal digit.  From Andreas Gruenbacher.
69079
69080         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
69081         and dup to open_safer and dup_safer, respectively.
69082         (openat_permissive): Fix typo in comment.
69083
69084         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
69085         "gettext.h"; either no longer needed or are guaranteed by openat.h.
69086         (_): Remove; no longer needed.
69087         (openat): Renamed from rpl_openat; no need for rpl_openat
69088         since openat.h renames openat for us.
69089         Replace most of the body with a call to openat_permissive,
69090         to avoid duplicate code.
69091         Port to (probably hypothetical) environments were mode_t is
69092         wider than int.
69093         (openat_permissive): Require mode arg, so that we can check
69094         types better.  Put it just after flags.  Change cwd failure
69095         indicator from pointer-to-bool to pointer-to-errno-value.
69096         All callers changed.
69097         Invoke openat_save_fail and/or openat_restore_fail if
69098         cwd_errno is null, so that openat can call us.
69099         (openat_permissive, fdopendir, fstatat, unlinkat):
69100         Simplify errno handling to avoid some duplicate code,
69101         as it's OK to set errno on success.
69102         * lib/openat.h: Revamp code so that function macros depend on
69103         __OPENAT_PREFIX only, not also on AT_FDCWD.
69104         (openat_ro): Remove.  Caller changed to use openat_permissive.
69105         (openat_permissive): Now a macro, if not a function.
69106         (openat_restore_fail, openat_save_fail): Now always functions,
69107         since mkdirat needs them even if __OPENAT_PREFIX is defined.
69108
69109         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
69110         and openat.c.
69111         * lib/mkdirat.c: Include openat-priv.h.
69112         Remove definitions of macros defined therein.
69113         * lib/openat.c: Likewise.
69114
69115         * lib/mkdirat.c (mkdirat): New file and function.
69116         * lib/openat.h (mkdirat): Declare.
69117
69118         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
69119
69120         * lib/openat.h (openat_permissive): Declare.
69121         (openat_ro): Define.
69122
69123         * lib/openat.c (EXPECTED_ERRNO): New macro.
69124         (openat_permissive): New function -- used in remove.c rewrite.
69125         (all functions): Set errno just before returning, only if there
69126         was an actual failure.
69127         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
69128
69129         Emulate openat-family functions using Linux's procfs, if possible.
69130         Idea and some code based on Ulrich Drepper's glibc changes.
69131
69132         * lib/openat.c: (BUILD_PROC_NAME): New macro.
69133         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
69134         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
69135         before falling back on save_cwd and restore_cwd.
69136         (fdopendir, fstatat, unlinkat): Likewise.
69137
69138         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
69139         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
69140
69141         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
69142         as second argument to va_arg.  Otherwise, some versions of gcc
69143         warn that `if this code is reached, the program will abort'.
69144
69145 2006-01-09  Jim Meyering  <jim@meyering.net>
69146
69147         Sync from coreutils.
69148         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
69149         Require openat-priv.h.
69150
69151 2006-01-09  Bruno Haible  <bruno@clisp.org>
69152
69153         * modules/strnlen (Include): Use strnlen.h.
69154
69155 2006-01-09  Bruno Haible  <bruno@clisp.org>
69156
69157         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
69158
69159 2006-01-09  Bruno Haible  <bruno@clisp.org>
69160
69161         * lib/sysexit_.h (EX_OK): New macro.
69162         Suggested by Martin Lambers <marlam@marlam.de>.
69163
69164 2006-01-09  Bruno Haible  <bruno@clisp.org>
69165
69166         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
69167         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
69168
69169 2006-01-09  Bruno Haible  <bruno@clisp.org>
69170
69171         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
69172         numbers.
69173
69174 2006-01-09  Bruno Haible  <bruno@clisp.org>
69175
69176         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
69177         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
69178         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
69179         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
69180
69181 2006-01-09  Bruno Haible  <bruno@clisp.org>
69182
69183         * build-aux/javacomp.sh.in: New file, moved from lib/.
69184         * modules/javacomp-script (Files): Update.
69185         (configure.ac): Add AC_CONFIG_FILES invocation.
69186         (EXTRA_DIST): Remove variable.
69187
69188         * build-aux/javaexec.sh.in: New file, moved from lib/.
69189         * modules/javaexec (Files): Update.
69190         (configure.ac): Add AC_CONFIG_FILES invocation.
69191         (EXTRA_DIST): Remove javaexec.sh.in.
69192
69193         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
69194         * modules/csharpcomp-script (Files): Update.
69195         (configure.ac): Add AC_CONFIG_FILES invocation.
69196         (EXTRA_DIST): Remove variable.
69197
69198         * build-aux/csharpexec.sh.in: New file, moved from lib/.
69199         * modules/csharpexec (Files): Update.
69200         (configure.ac): Add AC_CONFIG_FILES invocation.
69201         (EXTRA_DIST): Remove csharpexec.sh.in.
69202
69203 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
69204
69205         Sync from coreutils.
69206
69207         Add POSIX ACL support
69208         * lib/acl.h (copy_acl, set_acl): Add declarations.
69209         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
69210         systems other than Linux.
69211         (chmod_or_fchmod): New function: use fchmod when possible,
69212         and chmod otherwise.
69213         (file_has_acl): Add a POSIX ACL implementation, with a
69214         Linux-specific subcase.
69215         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
69216         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
69217         acls are unsupported.
69218         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
69219         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
69220         are unsupported.
69221
69222 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
69223
69224         Sync from coreutils.
69225         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
69226
69227 2006-01-07  Bruno Haible  <bruno@clisp.org>
69228
69229         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
69230         gl_EARLY.
69231
69232 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
69233
69234         * lib/strftime.c (tzname): Don't declare if it is already #defined.
69235         Problem reported for Mingw by Mark Junker.
69236
69237 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
69238
69239         * README: Gnulib normally doesn't generate a tarball.
69240
69241 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
69242
69243         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
69244         long int, not int, for nanosecond counts, so that people who are
69245         used to POSIX struct timespec won't be surprised.  Reported by Jim
69246         Meyering.
69247
69248 2005-12-28  Bruno Haible  <bruno@clisp.org>
69249
69250         * build-aux/config.rpath: Update from GNU gettext.
69251
69252 2005-12-16  Jim Meyering  <jim@meyering.net>
69253
69254         * modules/fprintftime: New module.
69255         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
69256
69257 2005-12-16  Jim Meyering  <jim@meyering.net>
69258
69259         * m4/fprintftime.m4: New file.
69260
69261 2005-12-16  Jim Meyering  <jim@meyering.net>
69262
69263         * lib/fprintftime.c, lib/fprintftime.h: New files.
69264
69265 2005-12-15  Simon Josefsson  <jas@extundo.com>
69266
69267         * modules/socklen (configure.ac): Fix M4 macro name, to align with
69268         new m4/socklen.m4.
69269
69270 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
69271
69272         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
69273         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
69274
69275 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
69276
69277         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
69278         * lib/argp-help.c (fill_in_uparams): Check if the constructed
69279         struct uparams is valid. Fall back to the default values if it is
69280         not.
69281
69282 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
69283
69284         * modules/argp (Files): Add argp-pin.c
69285         (Depends-on): dirname
69286         (lib_SOURCES): Add argp-pin.c
69287
69288 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
69289
69290         * m4/argp.m4:  Check if program_invocation_name and
69291         program_invocation_short_name are declared and define appropriate
69292         macros if they are not.
69293
69294 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
69295
69296         * lib/argp-help.c (__argp_base_name): New function
69297         (__argp_short_program_name): Rewrite using __argp_base_name
69298         * lib/argp-namefrob.h: Define program_invocation_name and
69299         program_invocation_short_name if requested
69300         (__argp_base_name): Add prototype
69301         * lib/argp-parse.c (argp_def): Use gettext wrappers
69302         (argp_default_parser): Use __argp_base_name
69303         * lib/argp-pin.c: New file. Defines program_invocation_name and
69304         program_invocation_short_name on systems that lack them.
69305
69306 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
69307
69308         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
69309         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
69310         porting problem reported by Georg Schwarz in
69311         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
69312
69313 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
69314
69315         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
69316         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
69317         porting problem reported by Georg Schwarz in
69318         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
69319
69320 2005-12-05  Bruno Haible  <bruno@clisp.org>
69321
69322         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
69323         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
69324         Reported by Mark Junker <mjscod@gmx.de>.
69325
69326 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
69327
69328         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
69329         Use implementation from Albert Chin, with some
69330         comments/corrections by Stepan Kasal and myself.
69331
69332 2005-12-02  Bruno Haible  <bruno@clisp.org>
69333
69334         * gnulib-tool (func_import): Accept GPLed build tool modules when
69335         --lgpl is given.
69336         * modules/csharpcomp-script: New file.
69337         * modules/csharpcomp: Depend on it.
69338         * modules/javacomp-script: New file.
69339         * modules/javacomp: Depend on it.
69340         Suggested by Simon Josefsson.
69341
69342 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
69343
69344         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
69345         statement, to work around an HP-UX 10.20 compiler bug reported by
69346         Peter O'Gorman.
69347
69348 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
69349
69350         * modules/savedir (Depends-on): Add openat.
69351
69352 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
69353
69354         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
69355         (uintmax_t) [defined uintmax_t]: Do not declare.
69356         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
69357         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
69358         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
69359         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
69360         sake of portability to weird hosts that C allows (though we don't
69361         know of any practical examples).
69362
69363         * lib/savedir.h (fdsavedir): New decl.
69364         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
69365         contains most of the former guts of savedir.
69366         (savedir): Use savedirstream.
69367         Include "openat.h".
69368
69369 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
69370
69371         * modules/obstack (Files): Add m4/ulonglong.m4.
69372         Problem reported by Davide Angelocola.
69373
69374 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
69375
69376         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
69377         coreutils no longer futzes with rounding modes.
69378
69379 2005-11-14  Jim Meyering  <jim@meyering.net>
69380
69381         * lib/mkstemp-safer.c: Include <config.h>, required for possible
69382         replacement of mkstemp.
69383
69384 2005-11-10  Simon Josefsson  <jas@extundo.com>
69385
69386         * lib/readline.c: Remove EOL.
69387
69388 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
69389
69390         * modules/gethrxtime (Depends-on): Add gettime.
69391
69392 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
69393
69394         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
69395         or gettimeofday; no longer needed.
69396
69397 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
69398
69399         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
69400         time business.
69401         (gethrxtime) [! (HAVE_NANOUPTIME
69402         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
69403         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
69404         our own approximation.
69405
69406 2005-11-08  Eric Blake  <ebb9@byu.net>
69407
69408         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
69409
69410 2005-11-08  Eric Blake  <ebb9@byu.net>
69411
69412         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
69413
69414 2005-11-04  Bruno Haible  <bruno@clisp.org>
69415
69416         * gnulib-tool: Implement --update mode.
69417
69418 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
69419
69420         Fix porting problem reported by Theodoros V. Kalamatianos.
69421         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
69422         Don't assume that futimes failing means we must fail.
69423
69424 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
69425
69426         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
69427         variables to suggest the intended function of the PATH_MAX check.
69428
69429 2005-10-30  Kean Johnston  <jkj@sco.com>
69430
69431         Trivial changes to support SCO systems.
69432         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
69433         as PATH_MAX.
69434         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
69435         where __ptr is null when no I/O is pending.
69436
69437 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
69438
69439         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
69440         leave errno alone.  Problem reported by Dmitry V. Levin.
69441
69442 2005-10-28  Simon Josefsson  <jas@extundo.com>
69443
69444         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
69445         Test more.
69446
69447         * tests/test-gc-md2.c, tests/test-md2.c: New files.
69448
69449         * modules/md2, modules/md2-tests: New files.
69450
69451 2005-10-28  Simon Josefsson  <jas@extundo.com>
69452
69453         * m4/inet_ntop.m4: More tests.
69454
69455         * m4/gc-md2.m4, md2.m4: New file.
69456
69457 2005-10-28  Simon Josefsson  <jas@extundo.com>
69458
69459         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
69460         "restrict" keywords, as per POSIX.  Protect the function
69461         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
69462         Don't use K&R prototypes.  Check the sprintf return values.
69463         Re-define EAFNOSUPPORT if not present.  Indent.
69464
69465         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
69466         suggested by Bruno Haible <bruno@clisp.org>.
69467
69468         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
69469
69470         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
69471
69472         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
69473         libgcrypt).
69474
69475         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
69476
69477         * lib/md2.h, lib/md2.c: New files.
69478
69479 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
69480
69481         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
69482         errno alone.  Problem reported by Frederic Jolliton.
69483
69484 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
69485
69486         * modules/verify (License): Change from GPL to LGPL.  This is a
69487         tiny module and there are apparently near-equivalents that are
69488         under the BSD license.
69489
69490 2005-10-24  Simon Josefsson  <jas@extundo.com>
69491
69492         * modules/sha1: Relicense to LGPL.
69493
69494 2005-10-24  Simon Josefsson  <jas@extundo.com>
69495
69496         * lib/md4.h: Shrink buffer size, now that we changed the type.
69497
69498 2005-10-23  Simon Josefsson  <jas@extundo.com>
69499
69500         * gnulib-tool (func_import): Fix --tests-base.
69501
69502 2005-10-22  Simon Josefsson  <jas@extundo.com>
69503
69504         * modules/arcfour (Depends-on): Need stdint.
69505
69506 2005-10-22  Simon Josefsson  <jas@extundo.com>
69507
69508         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
69509         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
69510
69511 2005-10-22  Simon Josefsson  <jas@extundo.com>
69512
69513         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
69514         suggested by Bruno Haible <bruno@clisp.org>.
69515
69516 2005-10-22  Simon Josefsson  <jas@extundo.com>
69517
69518         * lib/crc.h: Include stddef.h, for size_t.
69519
69520 2005-10-22  Simon Josefsson  <jas@extundo.com>
69521
69522         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
69523         arcfour_context struct (simplify test vector testing in GNU
69524         Shishi).
69525
69526 2005-10-21  Simon Josefsson  <jas@extundo.com>
69527
69528         * modules/des, modules/des-tests: New files.
69529
69530         * modules/gc-des, modules/gc-des-tests: New files.
69531
69532         * tests/test-des.c, tests/test-gc-des.c: New file.
69533
69534 2005-10-21  Simon Josefsson  <jas@extundo.com>
69535
69536         * modules/arctwo, modules/arctwo-tests: New files.
69537
69538         * tests/test-arctwo.c: New file.
69539
69540         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
69541
69542         * tests/test-gc-arctwo.c: New file.
69543
69544 2005-10-21  Simon Josefsson  <jas@extundo.com>
69545
69546         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
69547         Bruno Haible <bruno@clisp.org>.
69548
69549         * m4/gc-des.m4: New file.
69550
69551 2005-10-21  Simon Josefsson  <jas@extundo.com>
69552
69553         * m4/arctwo.m4: New file.
69554
69555         * m4/gc-arctwo.m4: New file.
69556
69557 2005-10-21  Simon Josefsson  <jas@extundo.com>
69558
69559         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
69560         block.
69561
69562 2005-10-21  Simon Josefsson  <jas@extundo.com>
69563
69564         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
69565         <bruno@clisp.org>.
69566
69567         * lib/hmac-sha1.c (hmac_sha1): Likewise.
69568
69569         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
69570         Bruno Haible <bruno@clisp.org>.
69571
69572         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
69573         <bruno@clisp.org>.
69574
69575 2005-10-21  Simon Josefsson  <jas@extundo.com>
69576
69577         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
69578
69579 2005-10-21  Simon Josefsson  <jas@extundo.com>
69580
69581         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
69582
69583 2005-10-21  Simon Josefsson  <jas@extundo.com>
69584
69585         * lib/des.h, lib/des.c: New files.
69586
69587         * lib/gc-gnulib.c: Support DES.c
69588
69589 2005-10-21  Simon Josefsson  <jas@extundo.com>
69590
69591         * lib/arctwo.h, lib/arctwo.c: New files.
69592
69593         * lib/gc-gnulib.c: Support ARCTWO.
69594
69595 2005-10-21  Simon Josefsson  <jas@extundo.com>
69596
69597         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
69598         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69599
69600 2005-10-21  Simon Josefsson  <jas@extundo.com>
69601
69602         * gnulib-tool (func_import, func_create_testdir): Define automake
69603         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
69604         Makefile.am snippet),
69605         suggested by Bruno Haible <bruno@clisp.org>.
69606
69607         * modules/gc (Makefile.am): Use it.
69608
69609 2005-10-21  Bruno Haible  <bruno@clisp.org>
69610
69611         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
69612         patch.
69613
69614 2005-10-19  Simon Josefsson  <jas@extundo.com>
69615
69616         * tests/test-gc-rijndael.c: New file.
69617
69618         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
69619
69620 2005-10-19  Simon Josefsson  <jas@extundo.com>
69621
69622         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
69623         interface too.
69624
69625 2005-10-19  Simon Josefsson  <jas@extundo.com>
69626
69627         * tests/test-gc-arcfour.c: New file.
69628
69629         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
69630
69631 2005-10-19  Simon Josefsson  <jas@extundo.com>
69632
69633         * modules/gc-md4, modules/gc-md4-tests: New file.
69634
69635         * tests/test-gc-md4.c: New file.
69636
69637 2005-10-19  Simon Josefsson  <jas@extundo.com>
69638
69639         * m4/gc-md4.m4: New file.
69640
69641 2005-10-19  Simon Josefsson  <jas@extundo.com>
69642
69643         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
69644         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
69645         <kasal@ucw.cz>.
69646
69647 2005-10-19  Simon Josefsson  <jas@extundo.com>
69648
69649         * m4/gc-arcfour.m4: New file.
69650
69651         * m4/gc-rijndael.m4: New file.
69652
69653 2005-10-19  Simon Josefsson  <jas@extundo.com>
69654
69655         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
69656
69657 2005-10-19  Simon Josefsson  <jas@extundo.com>
69658
69659         * lib/gc-gnulib.c: Support ARCFOUR.
69660
69661 2005-10-19  Simon Josefsson  <jas@extundo.com>
69662
69663         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
69664         support.
69665
69666         * lib/gc.h: Add ECB enum type.
69667
69668         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
69669
69670 2005-10-18  Simon Josefsson  <jas@extundo.com>
69671
69672         * tests/test-md5.c: New file.
69673
69674         * modules/md5-tests: New file.
69675
69676 2005-10-18  Simon Josefsson  <jas@extundo.com>
69677
69678         * tests/test-md4.c: New file.
69679
69680         * modules/md4, modules/md4-tests: New files.
69681
69682 2005-10-18  Simon Josefsson  <jas@extundo.com>
69683
69684         * m4/md4.m4: New file.
69685
69686 2005-10-18  Simon Josefsson  <jas@extundo.com>
69687
69688         * lib/md4.h, lib/md4.c: New files, based on md5.?.
69689
69690 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
69691
69692         * gnulib-tool (func_create_testdir): Omit the second check whether
69693         BUILT_SOURCES in nonempty.
69694
69695 2005-10-17  Simon Josefsson  <jas@extundo.com>
69696
69697         * tests/test-rijndael.c: New file.
69698
69699 2005-10-17  Simon Josefsson  <jas@extundo.com>
69700
69701         * modules/sha1: Depend on stdint instead of md5.
69702
69703         * modules/md5: Depend on stdint, remove uint32_t.
69704
69705 2005-10-17  Simon Josefsson  <jas@extundo.com>
69706
69707         * modules/gc-sha1-tests: New file.
69708
69709         * tests/test-gc-sha1.c: New file.
69710
69711 2005-10-17  Simon Josefsson  <jas@extundo.com>
69712
69713         * m4/md5.m4: Remove call to uint32_t.m4.
69714
69715 2005-10-17  Simon Josefsson  <jas@extundo.com>
69716
69717         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
69718
69719         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
69720         md5.h.
69721
69722         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
69723
69724         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
69725
69726 2005-10-17  Simon Josefsson  <jas@extundo.com>
69727
69728         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
69729
69730 2005-10-17  Simon Josefsson  <jas@extundo.com>
69731
69732         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
69733
69734 2005-10-17  Simon Josefsson  <jas@extundo.com>
69735
69736         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
69737
69738         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
69739
69740 2005-10-17  Bruno Haible  <bruno@clisp.org>
69741
69742         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
69743         that it can also be used in a test.
69744
69745 2005-10-16  Bruno Haible  <bruno@clisp.org>
69746
69747         * gnulib-tool (func_emit_tests_Makefile_am): Also define
69748         TESTS_ENVIRONMENT, so that individual tests can augment it.
69749
69750         * gnulib-tool (func_create_testdir): Use an intermediate target for
69751         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
69752         macros, like $(ALLOCA_H), which cannot be passed through the command
69753         line.
69754
69755 2005-10-15  Simon Josefsson  <jas@extundo.com>
69756
69757         * modules/rijndael-tests: New file.
69758
69759         * modules/rijndael: New file.
69760
69761 2005-10-15  Simon Josefsson  <jas@extundo.com>
69762
69763         * m4/rijndael.m4: New file.
69764
69765 2005-10-15  Simon Josefsson  <jas@extundo.com>
69766
69767         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
69768
69769         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
69770
69771 2005-10-14  Simon Josefsson  <jas@extundo.com>
69772
69773         * tests/test-arcfour.c: New file.
69774
69775         * modules/arcfour, modules/arcfour-tests: New files.
69776
69777 2005-10-14  Simon Josefsson  <jas@extundo.com>
69778
69779         * m4/arcfour.m4: New file.
69780
69781 2005-10-14  Simon Josefsson  <jas@extundo.com>
69782
69783         * lib/arcfour.h, lib/arcfour.c: New files.
69784
69785 2005-10-14  Roland McGrath  <roland@redhat.com>
69786
69787         Import from libc.  [BZ #1331]
69788         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
69789         macro argument.
69790         Reported by Matej Vela <vela@debian.org>.
69791
69792 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
69793
69794         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
69795         include <wchar.h>; no longer needed.
69796
69797 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
69798
69799         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
69800
69801 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
69802         and  Ulrich Drepper  <drepper@redhat.com>
69803
69804         Import from libc.
69805         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
69806         instead of inline stream orientation test and two separate
69807         function calls.  Pay no attention to USE_IN_LIBIO.
69808
69809 2005-10-13  Simon Josefsson  <jas@extundo.com>
69810
69811         * modules/gc-hmac-md5-tests: New file.
69812
69813         * tests/test-gc-hmac-sha1.c: New file.
69814
69815         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
69816
69817         * modules/gc-hmac-md5-tests: New file.
69818
69819         * tests/test-gc-md5.c: New file.
69820
69821         * modules/gc-md5-tests: New file.
69822
69823 2005-10-13  Simon Josefsson  <jas@extundo.com>
69824
69825         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
69826         Move memory allocation outside of loop.
69827
69828 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
69829
69830         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
69831         intermediate directory is in a read-only file system.  Problem
69832         reported by Eric Blake.
69833
69834 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
69835
69836         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
69837
69838 2005-10-12  Simon Josefsson  <jas@extundo.com>
69839
69840         * tests/test-hmac-sha1.c: New file.
69841
69842         * modules/hmac-sha1-tests: New file.
69843
69844         * modules/hmac-sha1: New file.
69845
69846 2005-10-12  Simon Josefsson  <jas@extundo.com>
69847
69848         * modules/gc-sha1: New file.
69849
69850 2005-10-12  Simon Josefsson  <jas@extundo.com>
69851
69852         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
69853
69854         * tests/test-gc-pbkdf2-sha1.c: New file.
69855
69856 2005-10-12  Simon Josefsson  <jas@extundo.com>
69857
69858         * modules/gc-md5, modules/gc-hmac-md5: New files.
69859
69860         * modules/gc (Files): Remove md5, memxor and hmac files.
69861
69862 2005-10-12  Simon Josefsson  <jas@extundo.com>
69863
69864         * m4/gc-pbkdf2-sha1.m4: New file.
69865
69866         * m4/gc-hmac-sha1.m4: New file.
69867
69868         * m4/gc-sha1: New file.
69869
69870         * m4/hmac-sha1.m4: New file.
69871
69872 2005-10-12  Simon Josefsson  <jas@extundo.com>
69873
69874         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
69875
69876         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
69877
69878 2005-10-12  Simon Josefsson  <jas@extundo.com>
69879
69880         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
69881         suggested by Bruno Haible <bruno@clisp.org>.
69882
69883 2005-10-12  Simon Josefsson  <jas@extundo.com>
69884
69885         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
69886
69887 2005-10-12  Simon Josefsson  <jas@extundo.com>
69888
69889         * lib/gc-pbkdf2-sha1.c: New file.
69890
69891         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
69892
69893 2005-10-12  Simon Josefsson  <jas@extundo.com>
69894
69895         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
69896
69897         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
69898
69899 2005-10-12  Simon Josefsson  <jas@extundo.com>
69900
69901         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
69902         GC_USE_HMAC_MD5, respectively.
69903
69904         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
69905         (gc_md5): Fix typo.
69906
69907         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
69908
69909         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
69910
69911         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
69912
69913 2005-10-12  Bruno Haible  <bruno@clisp.org>
69914
69915         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
69916         Reported by Stepan Kasal <kasal@ucw.cz>.
69917
69918 2005-10-11  Simon Josefsson  <jas@extundo.com>
69919
69920         * tests/test-crc.c: New file.
69921
69922         * modules/crc, modules/crc-tests: New files.
69923
69924 2005-10-11  Simon Josefsson  <jas@extundo.com>
69925
69926         * m4/crc.m4: New file.
69927
69928 2005-10-11  Simon Josefsson  <jas@extundo.com>
69929
69930         * lib/gc.h: Add gc_hash and gc_hash_buffer.
69931
69932         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
69933
69934         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
69935
69936 2005-10-11  Simon Josefsson  <jas@extundo.com>
69937
69938         * lib/crc.h, lib/crc.c: New files.
69939
69940         * lib/gc.h (gc_hash_buffer): Add doc.
69941
69942 2005-10-11  Bruno Haible  <bruno@clisp.org>
69943
69944         * modules/c-strcasestr: New file.
69945         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
69946
69947 2005-10-11  Bruno Haible  <bruno@clisp.org>
69948
69949         * modules/c-strcase: New file.
69950         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
69951
69952 2005-10-11  Bruno Haible  <bruno@clisp.org>
69953
69954         * lib/strcasecmp.c: Include limits.h.
69955         (strcasecmp): Avoid integer overflow on exotic platforms.
69956         * lib/strncasecmp.c: Include limits.h.
69957         (strncasecmp): Avoid integer overflow on exotic platforms.
69958         Reported by Paul Eggert.
69959
69960 2005-10-11  Bruno Haible  <bruno@clisp.org>
69961
69962         * lib/c-strcasestr.h: New file, from GNU gettext.
69963         * lib/c-strcasestr.c: New file, from GNU gettext.
69964
69965 2005-10-11  Bruno Haible  <bruno@clisp.org>
69966
69967         * lib/c-strcase.h: New file, from GNU gettext.
69968         * lib/c-strcasecmp.c: New file, from GNU gettext.
69969         * lib/c-strncasecmp.c: New file, from GNU gettext.
69970
69971 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
69972
69973         * modules/mempcpy (License): GPL -> LGPL.
69974         * modules/strchrnul (License): Likewise.
69975         * modules/sysexits (License): Likewise.
69976
69977 2005-10-08  Simon Josefsson  <jas@extundo.com>
69978
69979         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
69980
69981 2005-10-07  Simon Josefsson  <jas@extundo.com>
69982
69983         * m4/memxor.m4: Remove gl_C_RESTRICT call.
69984
69985 2005-10-06  Simon Josefsson  <jas@extundo.com>
69986
69987         * tests/test-hmac-md5.c: New file.
69988
69989         * modules/hmac-md5-tests: New file.
69990
69991         * modules/hmac-md5: New file.
69992
69993 2005-10-06  Simon Josefsson  <jas@extundo.com>
69994
69995         * m4/hmac-md5.m4: New file.
69996
69997         * m4/memxor.m4: Require gl_C_RESTRICT.
69998
69999 2005-10-06  Simon Josefsson  <jas@extundo.com>
70000
70001         * lib/memxor.c (memxor): Avoid casts and warnings.
70002
70003 2005-10-06  Simon Josefsson  <jas@extundo.com>
70004
70005         * lib/hmac-md5.c: New file.
70006
70007         * lib/hmac.h: New file.
70008
70009 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
70010
70011         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
70012         promotes to int, not unsigned int, to catch the AIX 5.3
70013         compiler bug.
70014
70015 2005-10-05  Simon Josefsson  <jas@extundo.com>
70016
70017         * modules/memxor: New file.
70018
70019         * modules/iconv (Files): Move config.rpath to havelib, it is used
70020         there.
70021
70022         * modules/havelib (Files): Add config.rpath.
70023
70024 2005-10-05  Simon Josefsson  <jas@extundo.com>
70025
70026         * m4/memxor.m4: New file.
70027
70028 2005-10-05  Simon Josefsson  <jas@extundo.com>
70029
70030         * lib/memxor.c (memxor): Fix compiler error.
70031
70032         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
70033         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
70034
70035         * lib/memxor.h, lib/memxor.c: New files.
70036
70037         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
70038         we assume all systems have it, suggested by Jim Meyering
70039         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
70040         any systems lack sys/socket.h; mingw32 is known to lack it, but we
70041         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
70042         same reasons.
70043
70044 2005-10-05  Simon Josefsson  <jas@extundo.com>
70045
70046         * config/srclist.txt: Add glibc bug 1423 for md5.h.
70047
70048 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
70049
70050         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
70051         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
70052         needed, since the source code now assumes these .h files.
70053
70054 2005-10-05  Derek Price  <derek@ximbiot.com>
70055
70056         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
70057
70058 2005-10-05  Bruno Haible  <bruno@clisp.org>
70059
70060         * modules/stdint (License): Change to LGPL.
70061
70062 2005-10-04  Simon Josefsson  <jas@extundo.com>
70063
70064         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
70065         D. Baushke" <mdb@gnu.org>.
70066
70067 2005-10-04  Bruno Haible  <bruno@clisp.org>
70068
70069         * lib/verify.h (verify_true): Provide alternative definition for C++.
70070
70071 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
70072
70073         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
70074         (SSIZE_MAX): New macro, if not already defined.
70075         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
70076         than 2 GiB.
70077
70078 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
70079
70080         Sync from coreutils.
70081         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
70082         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
70083         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
70084         ULLONG_MAX doesn't work with 2.7.2.1.
70085
70086 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
70087
70088         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
70089         From Ben Pfaff.
70090
70091         * modules/exclude (Depends-on): Depend on verify.
70092         * modules/strtoimax (Depends-on): Likewise.
70093         * modules/utimecmp (Depends-on): Likewise.
70094
70095 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
70096
70097         * lib/exclude.c: Include verify.h.
70098         (verify): Remove.  All callers changed to use verify.h's version.
70099         * lib/strtoimax.c: Likewise.
70100         * lib/utimecmp.c: Likewis.e
70101
70102         Sync from coreutils.
70103         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
70104         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
70105         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
70106         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
70107         bother returning ENOSYS if settimeofday or stime fails; just let
70108         them return whatever errno they want to return.
70109         * lib/utimens.c: Include unistd.h, for dup2.
70110         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
70111         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
70112
70113 2005-10-02  Jim Meyering  <jim@meyering.net>
70114
70115         Sync from coreutils.
70116         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
70117         from glibc-2.2.5 that fails for read-only files.
70118
70119 2005-10-02  Jim Meyering  <jim@meyering.net>
70120
70121         Sync from coreutils.
70122         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
70123         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
70124         `#if HAVE_CONFIG_H'.
70125         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
70126         Remove AT_FDCWD test.
70127         Do not consume the fd unless successful.
70128         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
70129         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
70130         block, so that we don't even try to compile it if settimeofday is
70131         available.  This works around a compilation failure on OSF1 V5.1,
70132         due to stime requiring a `long int*' while tv_sec is `int'.
70133
70134 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
70135
70136         Sync from coreutils.
70137         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
70138         against `yes', rather than just testing for nonempty.
70139
70140 2005-10-01  Simon Josefsson  <jas@extundo.com>
70141
70142         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
70143         and Darwin.
70144
70145         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
70146         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
70147         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
70148         freeaddrinfo and gai_strerror are declared by the POSIX headers.
70149         Check if struct addrinfo is declared.
70150
70151 2005-10-01  Simon Josefsson  <jas@extundo.com>
70152
70153         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
70154         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
70155         AI_* and EAI_* definitions.  Protect function declarations.
70156
70157 2005-10-01  Jim Meyering  <jim@meyering.net>
70158
70159         Sync from coreutils.
70160
70161         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
70162         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
70163         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
70164         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
70165         in the inet and nsl libraries.  Required on Solaris 5.7.
70166
70167 2005-10-01  Jim Meyering  <jim@meyering.net>
70168
70169         Sync from coreutils.
70170         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
70171         in the inet and nsl libraries.  Required on Solaris 5.7.
70172
70173 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
70174
70175         * lib/getdelim.c (getdelim): Remove unused variables.
70176
70177 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
70178
70179         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
70180         so that the code works even with ancient cpp.  Portability problem
70181         with GCC 2.7.2.1 reported by Thomas M.Ott.
70182
70183 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
70184
70185         * modules/regex (Depends-on): Add strcase.
70186
70187         * modules/gethostname (Licence): Change from GPL to LGPL, since
70188         gethostname.c is a trivial implementation of a standard library
70189         function.
70190         * modules/poll (License): Change from GPL to LGPL, since it's
70191         derived from LGPL code.
70192
70193 2005-09-27  Jim Meyering  <jim@meyering.net>
70194
70195         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
70196         HAVE_CONFIG_H.
70197
70198         * lib/intprops.h (signed_type_or_expr__): Define.
70199         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
70200         for unsigned types.
70201
70202 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
70203
70204         * lib/verify.h (verify_expr): Remove, replacing with:
70205         (verify_true): New macro that returns true instead of void.
70206         (verify_type__): Remove.
70207         (verify): Use verify_true rather than verify_type__.
70208
70209 2005-09-26  Bruno Haible  <bruno@clisp.org>
70210
70211         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
70212         is necessary.
70213         (lib_SOURCES): Remove mbchar.c.
70214         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
70215         (Files): Add m4/mbrtowc.m4.
70216         * modules/mbiter: Likewise.
70217         * modules/mbuiter: Likewise.
70218
70219 2005-09-26  Bruno Haible  <bruno@clisp.org>
70220
70221         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
70222         compile mbchar.c if they are not both present.
70223         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
70224         * m4/mbiter.m4 (gl_MBITER): Likewise.
70225         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
70226         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
70227         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
70228
70229 2005-09-25  Jim Meyering  <jim@meyering.net>
70230
70231         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
70232         also uses socklen_t.
70233
70234 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
70235
70236         * lib/utimens.c (ENOSYS): Define if not already defined.
70237         (futimens): Support having a null PATH if the file descriptor
70238         is nonnegative.
70239
70240         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
70241         Remove.
70242         (__attribute): Define to empty unless GCC 3.1 or later.
70243         This works around a core dump on OpenBSD 3.4, which has GCC
70244         2.95.3, which dumps core when given __attribute__(()).  It also
70245         simplifies other tests, since we really don't want to bother with
70246         worrying about which ancient version of GCC supported what.
70247         Original problem reported by Yoann Vandoorselaere, with part of
70248         the fix suggested by Derek Price.
70249
70250 2005-09-24  Jim Meyering  <jim@meyering.net>
70251
70252         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
70253         so we can once again use a positive bitfield width of 1 -- now we
70254         don't have to explain why we were using a bitfield width of 2.
70255
70256 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
70257
70258         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
70259         and similarly for the other external symbols.  Problem reported
70260         by James Gallager.
70261
70262         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
70263         bug reported by Jim Meyering.
70264
70265         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
70266         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
70267         not needed, since socklen is a prerequisite module.
70268
70269 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
70270
70271         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
70272         Problem reported by Eric Blake.
70273         (getaddrinfo): Initialize se so that it's not garbage.
70274         Redo internal storage allocation so that it doesn't make unportable
70275         assumptions about alignment.
70276         Fix a memory leak.
70277
70278         * lib/utimens.c (futimens): Use futimesat if available.
70279         Prefer it to futimes since it doesn't have the futimes bug.
70280
70281         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
70282         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
70283         Instead, declare a function that returns a pointer to an array,
70284         and use verify_type__ to declare the size of the array.
70285         Problem and germ of a solution reported by Bruno Haible.
70286         (verify_type__): Use 2, not 1, for bitfield size, to avoid
70287         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
70288
70289 2005-09-23  Jim Meyering  <jim@meyering.net>
70290
70291         Sync from coreutils.
70292         Correct build failure (socklen_t not defined) on at least
70293         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
70294         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
70295
70296 2005-09-23  Jim Meyering  <jim@meyering.net>
70297
70298         * modules/getaddrinfo (Depends-on): Add socklen.
70299
70300 2005-09-23  Bruno Haible  <bruno@clisp.org>
70301
70302         * tests/test-verify.c: New file.
70303
70304 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
70305
70306         Sync from coreutils.
70307
70308         * modules/argmatch (Depends-on): Add verify.
70309         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
70310         unistd-safer.
70311         * modules/save-cwd (Depends-on): Likewise.
70312
70313         * modules/openat (Files): Add lib/openat-die.c.
70314         (Depends-on): Remove error, exitfail.
70315         Add dirname.
70316
70317         * modules/verify: New file.
70318         * MODULES.html.sh (Diagnostics <assert.h>): New section,
70319         with "verify" module.
70320
70321 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
70322
70323         Sync from coreutils.
70324
70325         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
70326         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
70327         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
70328         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
70329         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
70330         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
70331         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
70332         Don't bother checking for string.h, stdlib.h, unistd.h.
70333         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
70334         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
70335         module's job.
70336         * m4/jm-macros.m4 (gl_MACROS): Likewise.
70337         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
70338
70339         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
70340         (gl_GETDATE): Use it.
70341
70342         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
70343
70344 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
70345
70346         Sync from coreutils.
70347
70348         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
70349         stat-time.h.
70350         * lib/argmatch.h: Include verify.h
70351         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
70352         (ARGMATCH_ASSERT): Remove; unused.
70353         * lib/canonicalize.c: Assume STDC_HEADERS.
70354         * lib/exclude.c: Include "strcase.h".
70355         * lib/regex_internal.h [!defined _LIBC]: Likewise.
70356         * lib/getusershell.c: Include stdio--.h rather than stdio.h
70357         and stdio-safer.h.
70358         (getusershell): Call fopen, not fopen_safer.
70359         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
70360         Do not include unistd-safer.h.
70361         (save_cwd): Don't call fd_safer; no longer needed
70362         now that we include fcntl--.h.
70363
70364         * lib/getdate.y (relative_time): New type.
70365         (RELATIVE_TIME_0): New constant.
70366         (parser_control): Use relative_time instead of doing it ourselves.
70367         (%union): Add new relative_time rel member.
70368         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
70369         Now typeless.
70370         (relunit, relunit_snumber): Now of type rel.
70371         (zone, rel, relunit, get_date): Adjust to above changes.
70372
70373         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
70374         Do not include unistd-safer.h.
70375         (getloadavg): Don't call fd_safer; no longer needed
70376         now that we include fcntl--.h.
70377
70378         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
70379         (make_dir_parents): Treat ENOSYS like EEXIST.
70380
70381         Improve quality of diagnostics on restore_cwd failure.
70382         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
70383         (make_dir_parents): Last arg is now int * (for errno), not bool *.
70384         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
70385         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
70386         each time through the loop.  Do not diagnose restore_cwd failure;
70387         that is the caller's job (and perhaps the caller does not care).
70388
70389         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
70390         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
70391         If the file already exists but is not a directory, don't bother
70392         to try to make its parents.
70393         Close potential file descriptor leak if we can't chdir("/") (!).
70394         Don't always return true if chdir($PWD) fails; return true only
70395         if the requested action was done successfully (except for the
70396         chdir($PWD)).
70397         Don't log final directory unless we actually made it.
70398         Refactor to avoid duplicate code to fix up permissions.
70399         Don't attempt to fix up parent permissions if chdir($PWD) fails.
70400
70401         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
70402         to make it a bit faster and (I hope) clearer.
70403         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
70404         Fix bug in formats like %2N.
70405
70406         * lib/verify.h: New file.
70407
70408 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
70409
70410         Sync from coreutils.
70411         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
70412
70413 2005-09-22  Jim Meyering  <jim@meyering.net>
70414
70415         Sync from coreutils.
70416
70417         * m4/lstat.m4 (gl_FUNC_LSTAT):
70418         Use AC_LIBSOURCES to require lstat.c and lstat.h.
70419         Remove obsolete comment.
70420         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
70421         * m4/xstrtod.m4: Likewise.
70422
70423         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
70424
70425 2005-09-22  Jim Meyering  <jim@meyering.net>
70426
70427         Sync from coreutils.
70428
70429         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
70430
70431         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
70432         the .tm_year member, since otherwise gcc-4.0 would now warn about
70433         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
70434
70435         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
70436         order to avoid an unsuppressible warning from gcc on 64-bit systems.
70437
70438         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
70439         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
70440         when run in a time zone for which daylight savings time is in effect
70441         for the starting date.
70442
70443         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
70444         stop us from restricting permissions of just-created absolute-named
70445         directories.
70446         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
70447         to restore initial working directory.
70448         * lib/mkdir-p.c (make_dir_parents): New parameter:
70449         different_working_dir, to tell caller if/when we change the working
70450         directory and are unable to return to the initial one.
70451         * lib/mkdir-p.h (make_dir_parents): Update prototype.
70452         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
70453         `return false'.  This fixes a bug introduced on 2004-07-30.
70454
70455         * lib/openat.c (fdopendir): Be sure to close the supplied
70456         file descriptor before returning.  This makes our replacement
70457         implementation a little closer to Solaris's, where fdopendir
70458         ties the file descriptor to the returned DIR* pointer.
70459         * lib/openat.c (unlinkat): New function.
70460         * lib/openat.h (unlinkat): Add prototype.
70461         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
70462         (openat_restore_fail): Rename from openat_restore_die.
70463         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
70464
70465         Provide an alternative to exiting immediately upon save_cwd or
70466         restore_cwd failure.  Now, an application can arrange e.g.,
70467         to perform a longjump in that case.
70468         * lib/openat.c: Include dirname.h.
70469         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
70470         (rpl_openat, fdopendir, fstatat): Call openat_save_die
70471         and openat_restore_die rather than calling error directly.
70472         Don't include "error.h" or "exitfail.h"; they're no longer needed.
70473
70474         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
70475         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
70476         define.
70477
70478         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
70479         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
70480                             int utc, int nanoseconds);
70481         Background:
70482         date should not have to allocate a megabyte of virtual memory to
70483         handle a format argument like +%1048575T.  When implemented with
70484         strftime, it must allocate such a buffer, use strftime to fill it
70485         in, print it, then free it.
70486         With fprintftime, it simply prints everything and exits.
70487         With no need for memory allocation, that's one fewer way to fail.
70488         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
70489         optional field width, not before, so we accept %9:z, not %:9z.
70490         (my_strftime): Be sure to use L_('x') for literals.
70491
70492         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
70493         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
70494         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
70495         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
70496         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
70497         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
70498         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
70499         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
70500         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
70501         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
70502         * lib/xgethostname.c, lib/xreadlink.c:
70503         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
70504
70505         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
70506         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
70507         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
70508         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
70509         and don't include <sys/file.h>).
70510
70511 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
70512
70513         Sync from coreutils.
70514
70515         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
70516         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
70517         [!LDAV_DONE]: Avoid unused variable warning.
70518
70519 2005-09-21  Bruno Haible  <bruno@clisp.org>
70520
70521         * lib/unicodeio.h (unicode_to_mb): New declaration.
70522
70523 2005-09-20  Derek Price  <derek@ximbiot.com>
70524
70525         * lib/getaddrinfo.c: Don't include <netdb.h> included from
70526         getaddrinfo.h.
70527
70528 2005-09-20  Bruno Haible  <bruno@clisp.org>
70529
70530         * gnulib-tool: Remove trailing slashes from the values specified for
70531         --source-base, --m4-base, --tests-base, --aux-dir.
70532         Suggested by Simon Josefsson <jas@extundo.com>.
70533
70534 2005-09-20  Bruno Haible  <bruno@clisp.org>
70535
70536         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
70537         func_modules_to_filelist, func_import, func_create_testdir): Make all
70538         sorting results locale-independent, so that gnulib-cache.m4 doesn't
70539         change when gnulib-tool is invoked in a different locale.
70540
70541 2005-09-19  Simon Josefsson  <jas@extundo.com>
70542
70543         * m4/socklen.m4: Fix typo.
70544
70545 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70546
70547         Use a consistent style for including <config.h>.
70548         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
70549         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
70550         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
70551         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
70552         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
70553         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
70554         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
70555         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
70556         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
70557         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
70558         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
70559         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
70560         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
70561         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
70562         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
70563         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
70564         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
70565         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
70566         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
70567         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
70568         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
70569         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
70570         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
70571         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
70572         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
70573         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
70574         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
70575         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
70576         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
70577         lib/xstrtoumax.c, lib/yesno.c:
70578         Standardize inclusion of config.h.
70579         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
70580         lib/inttostr.h:  Removed inclusion of config.h from header files.
70581         * lib/inttostr.c:  Adjusted in-tree users.
70582         * lib/timespec.h: Remove superfluous warning to include config.h.
70583         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
70584         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
70585         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
70586         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
70587         config.h with HAVE_CONFIG_H.
70588
70589 2005-09-19  Jim Meyering  <jim@meyering.net>
70590
70591         * modules/pathmax (License): Change to LGPL.
70592
70593 2005-09-19  Derek Price  <derek@ximbiot.com>
70594
70595         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
70596
70597 2005-09-19  Bruno Haible  <bruno@clisp.org>
70598
70599         * gnulib-tool (import): Provide default for --tests-base.
70600
70601 2005-09-19  Bruno Haible  <bruno@clisp.org>
70602
70603         * doc/quote.texi: New file, extracted from gnulib.texi.
70604         * doc/ctime.texi: New file, extracted from gnulib.texi.
70605         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
70606         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
70607         * doc/gnulib.texi: Include them.
70608
70609 2005-09-18  Bruno Haible  <bruno@clisp.org>
70610
70611         Portability fix.
70612         * gnulib-tool (func_readlink): New function.
70613         (func_ln_if_changed): Use it.
70614
70615 2005-09-18  Bruno Haible  <bruno@clisp.org>
70616
70617         * gnulib-tool: Support --with-tests also with --import.
70618         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
70619         (func_import): Use variables $testsbase and $inctests. Emit a
70620         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
70621         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
70622         SUBDIRS += $testsdir.
70623         (func_create_testdir): Update.
70624
70625 2005-09-18  Bruno Haible  <bruno@clisp.org>
70626
70627         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
70628         instead of $dry_run.
70629         (func_cp_if_changed, func_mv_if_changed): Remove functions.
70630         (func_ln_if_changed): Don't handle dry-run here.
70631         (func_import): In dry-run mode, detect more precisely which actions
70632         would be performed, and don't use "...ing" verbs.
70633
70634 2005-09-18  Bruno Haible  <bruno@clisp.org>
70635
70636         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
70637         (func_import): Use join on two temporary files instead of three nested
70638         loops, in order to determine which files are new or old.
70639
70640 2005-09-18  Bruno Haible  <bruno@clisp.org>
70641
70642         * gnulib-tool (func_import): Comment out code that spits out the
70643         new files with --dry-run.
70644
70645 2005-09-18  Bruno Haible  <bruno@clisp.org>
70646
70647         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
70648
70649 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
70650
70651         * lib/stat-time.h: New file.
70652         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
70653         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
70654         in a different way.
70655         (timespec_cmp): New function.
70656         * lib/utimecmp.c: Include stat-time.h.
70657         (SYSCALL_RESOLUTION): Depend on whether various struct stat
70658         members exist, not on the obsolescent ST_MTIM_NSEC.
70659         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
70660
70661 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
70662
70663         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
70664
70665 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
70666
70667         * MODULES.html.sh (File system functions): Add stat-time.
70668         * modules/stat-time: New file.
70669         * modules/timespec (Files): Remove m4/st_mtim.m4; this
70670         is now done in a different way, by the stat-time module.
70671         * modules/utimecmp (Depends-on): Add stat-time.
70672
70673 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
70674
70675         * m4/st_mtim.m4: Remove.  Superseded by...
70676         * m4/stat-time.m4: New file.
70677         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
70678         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
70679
70680 2005-09-15  Derek Price  <derek@ximbiot.com>
70681
70682         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
70683
70684 2005-09-15  Derek Price  <derek@ximbiot.com>
70685
70686         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
70687         * lib/regex_internal.c: Ditto, using this...
70688         (__GNUC_PREREQ): ...new macro.
70689         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
70690         using...
70691         (__GNUC_PREREQ): ...this new macro.
70692
70693         * lib/strstr.h: Include string.h. Define strstr as a macro here.
70694
70695 2005-09-15  Derek Price  <derek@ximbiot.com>
70696             Paul Eggert  <eggert@cs.ucla.edu>
70697
70698         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
70699         changes, consolidating in...
70700         * lib/regex_internal.h: ...this file.
70701
70702 2005-09-13  Jim Meyering  <jim@meyering.net>
70703
70704         * lib/canon-host.c: Filter through gnu indent and reword comments
70705         slightly.
70706         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
70707
70708 2005-09-13  Derek Price  <derek@ximbiot.com>
70709
70710         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
70711         failure.
70712         Reported by Jim Meyering  <jim@meyering.net>.
70713
70714 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
70715
70716         * lib/base64.c: Typo.
70717         (base64_encode): Put b64str in initialized data section.
70718
70719 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
70720
70721         Merge glibc and coreutils changes into gnulib, plus a few
70722         extra fixes.
70723         * lib/md5.c: Use #error rather than a string.
70724         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
70725         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
70726         (__attribute__): Define to empty for non recent-GCC.
70727         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
70728         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
70729         Renamed from their non-__ counterparts, with new macros replacing
70730         them if not _LIBC.  Add __THROW attribute.
70731         (rol): Remove.
70732         (struct md5_ctx): Align buffer if using GCC.
70733         * lib/sha1.h (struct sha1_ctx): Likewise.
70734         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
70735         The old name was backwards.
70736         (NOTSWAP): Remove; not used.
70737         (rol): New macro, moved here from md5.h.
70738         (sha1_process_block): Remove a FIXME that doesn't make sense.
70739
70740 2005-09-12  Derek Price  <derek@ximbiot.com>
70741
70742         Return usable errors from canon-host.
70743         * lib/canon-host.h: New file.
70744         * lib/canon-host.c (canon_host): Wrap...
70745         (canon_host_r): ...this new function, which now relies exclusively on
70746         getaddrinfo.
70747         (ch_strerror): New function.
70748         (last_cherror): New global.
70749         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
70750         interface.
70751         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
70752         void *.
70753         (freeaddrinfo): Free ai->ai_canonname when set.
70754
70755 2005-09-12  Derek Price  <derek@ximbiot.com>
70756
70757         Make canon-host require getaddrinfo.
70758         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
70759         AC_LIBSOURCE canon-host.h.  Call...
70760         (gl_PREREQ_CANON_HOST): ...this new function, which requires
70761         gl_GETADDRINFO.
70762         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
70763
70764 2005-09-12  Derek Price  <derek@ximbiot.com>
70765
70766         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
70767         LGPL.
70768         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
70769
70770 2005-09-12  Derek Price  <derek@ximbiot.com>
70771
70772         * lib/gai_strerror.c: Include config.h when available.  Include
70773         getaddrinfo.h before other headers to test interface.
70774         Reported by Larry Jones <lawrence.jones@ugs.com>.
70775
70776 2005-09-12  Derek Price  <derek@ximbiot.com>
70777             Paul Eggert  <eggert@cs.ucla.edu>
70778
70779         * modules/glob (Files): Add glob-libc.h.
70780
70781 2005-09-12  Derek Price  <derek@ximbiot.com>
70782             Paul Eggert  <eggert@cs.ucla.edu>
70783
70784         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
70785         glob_.h, glob-libc.h.
70786         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
70787
70788 2005-09-12  Derek Price  <derek@ximbiot.com>
70789             Paul Eggert  <eggert@cs.ucla.edu>
70790
70791         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
70792         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
70793         protecting things that should be done only in gnulib contexts.
70794         * lib/glob_.h: New file, containing only the glob things needed for
70795         gnulib.
70796         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
70797         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
70798         (glob, globfree, glob_pattern_p): Now defined simply in terms of
70799         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
70800         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
70801         and to respect the namespace rules better.
70802
70803 2005-09-08  Simon Josefsson  <jas@extundo.com>
70804
70805         * modules/socklen: New file.
70806
70807 2005-09-08  Simon Josefsson  <jas@extundo.com>
70808
70809         * m4/socklen.m4: New file.
70810
70811 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
70812
70813         * modules/utimens (Files): Add m4/utimbuf.m4, since
70814         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
70815         Reported by Sergey Poznyakoff.
70816
70817 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
70818
70819         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
70820         definitions, since that's the preferred style in glibc.
70821         Fix a minor spacing issue, and update copyright notice to match
70822         glibc's.
70823
70824 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
70825
70826         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
70827
70828 2005-09-06  Simon Josefsson  <jas@extundo.com>
70829
70830         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
70831         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
70832
70833 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
70834
70835         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
70836         warning.
70837
70838 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
70839
70840         * config/srclist.txt: Add glibc bug 1302.
70841
70842 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
70843
70844         Change bitset word type from unsigned int to unsigned long int,
70845         as this has better performance on typical 64-bit hosts.
70846         Port bitset code to hosts with unusual word sizes.
70847         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
70848         (build_collating_symbol):
70849         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
70850         argument is a bitset.  This is merely a style issue, but it makes
70851         it clearer that an entire array is expected.
70852         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
70853         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
70854         Port to the case where bitset_word is not the same as unsigned int.
70855         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
70856         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
70857         Likewise.
70858         * lib/regexec.c (check_dst_limits_calc_pos_1,
70859         check_subexp_matching_top):
70860         (build_trtable, group_nodes_into_DFAstates):
70861         Likewise.
70862         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
70863         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
70864         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
70865         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
70866         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
70867         * lib/regcomp.c (optimize_subexps, lower_subexp):
70868         Work even if bitset_word has holes in its bitwise representation.
70869         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
70870         * lib/regexec.c (check_dst_limits_calc_pos_1,
70871         check_subexp_matching_top):
70872         Likewise.
70873         * lib/regex_internal.c (re_string_reconstruct):
70874         Don't assume UCHAR_MAX == 255.
70875         * lib/regex_internal.h (bitset_set_all): Likewise.
70876         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
70877         All uses changed.
70878         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
70879         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
70880         All uses changed.
70881         (BITSET_WORD_MAX): New macro.
70882         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
70883         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
70884         (bitset_empty, bitset_copy):
70885         Prefer sizeof (bitset) to multiplying it out ourselves.
70886         (bitset_not_merge): Remove; unused.
70887         (bitset_contain): Return bool, not unsigned int with one bit on.
70888         All callers changed.
70889         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
70890         alignment than re_node_set; do this by defining a new internal
70891         type struct dests_alloc and using it to allocate memory.
70892
70893 2005-09-05  Bruno Haible  <bruno@clisp.org>
70894
70895         * gnulib-tool (func_import): Fix comparison in handling of symbolic
70896         links.
70897
70898 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
70899
70900         * modules/size_max (Makefile.am): Add size_max.h
70901
70902 2005-09-04  Derek Price  <derek@ximbiot.com>
70903
70904         * gnulib-tool (func_import): Fix reversed $symbolic logic.
70905
70906 2005-09-03  Simon Josefsson  <jas@extundo.com>
70907
70908         * gnulib-tool: Fix typo.
70909
70910 2005-09-03  Simon Josefsson  <jas@extundo.com>
70911
70912         * config/srclist.txt: Add glibc bug 1293.
70913
70914 2005-09-03  Derek Price  <derek@ximbiot.com>
70915
70916         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
70917         From Larry Jones <lawrence.jones@ugs.com>.
70918
70919 2005-09-02  Simon Josefsson  <jas@extundo.com>
70920
70921         * modules/socklen: New file.
70922
70923 2005-09-02  Simon Josefsson  <jas@extundo.com>
70924
70925         * modules/havelib: New module.
70926
70927         * modules/gettext, modules/iconv, modules/lock, modules/readline:
70928         Use havelib.
70929
70930 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
70931
70932         Check for arithmetic overflow when calculating sizes, to prevent
70933         some buffer-overflow issues.  These patches are conservative, in the
70934         sense that when I couldn't determine whether an overflow was possible,
70935         I inserted a run-time check.
70936         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
70937         macros.
70938         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
70939         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
70940         (re_xnrealloc, re_x2nrealloc): New inline functions.
70941         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
70942         parse_bracket_exp):
70943         (build_equiv_class, build_charclass): Check for arithmetic overflow
70944         in size expression calculations.
70945         * lib/regex_internal.c (re_string_realloc_buffers):
70946         (build_wcs_upper_buffer, re_node_set_add_intersect):
70947         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
70948         (re_dfa_add_node, register_state): Likewise.
70949         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
70950         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
70951         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
70952         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
70953
70954 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
70955
70956         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
70957         m4/ulonglong.m4.  Problem reported by Martin Lambers.
70958
70959 2005-09-02  Bruno Haible  <bruno@clisp.org>
70960
70961         Support for lib vs. lib64 distinction on biarch platforms.
70962         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
70963         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
70964         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
70965
70966 2005-09-02  Bruno Haible  <bruno@clisp.org>
70967
70968         * gnulib-tool (import): In the other first-use case, provide defaults
70969         as well.
70970
70971 2005-09-02  Bruno Haible  <bruno@clisp.org>
70972
70973         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
70974         patches not yet found in the latest gettext release.
70975
70976 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
70977
70978         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
70979         to avoid a collision with bits/local_lim.h in glibc.
70980         All uses changed.  Problem reported by Dmitry V. Levin in
70981         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
70982
70983         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
70984         bugs in int versus size_t comparisons.
70985         (re_string_context_at): Fix bug where the code assumed that
70986         Idx is signed.
70987
70988         Use bool where appropriate.
70989         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
70990         All callers changed.
70991         (calc_eclosure_iter): Likewise, for ROOT arg.
70992         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
70993         (build_charclass_op): Likewise, for NON_MATCH arg.
70994         * lib/regex_internal.c (re_string_allocate, re_string_construct):
70995         (re_string_construct_common): Likewise, for ICASE arg.
70996         * lib/regexec.c (re_search_2_stub, re_search_stub):
70997         Likewise, for RET_LEN arg.
70998         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
70999         (set_regs): Likewise, for FL_BACKTRACK arg.
71000         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
71001         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
71002         (calc_eclosure_iter, parse_bracket_exp):
71003         Use bool for internal variables that are booleans.
71004         * lib/regexec.c (re_search_internal, check_matching,
71005         proceed_next_node):
71006         (set_regs, build_sifted_states, sift_states_bkref):
71007         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
71008         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
71009         (find_collation_sequence_value):
71010         Likewise.
71011         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
71012         (re_node_set_compare):
71013         Return bool, not int. All callers changed.
71014         * lib/regexec.c (check_halt_node_context, check_dst_limits):
71015         (build_trtable, check_node_accept): Likewise.
71016         * lib/regex_internal.h: Include stdbool.h.
71017
71018         Fix bugs uncovered when converting to bool.
71019         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
71020         failure instead of charging ahead blindly.
71021         * lib/regex_internal.c (register_state): Likewise.
71022         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
71023         for freeing internal storage.
71024         (group_nodes_into_DFA_states): Use unsigned int, not int, for
71025         bitset pieces used as boolean, to avoid undefined behavior
71026         on hosts that do int overflow checking.
71027
71028 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
71029
71030         * config/srclist.txt: Add glibc bugs 1285-1287.
71031
71032 2005-09-01  Jim Meyering  <jim@meyering.net>
71033
71034         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
71035         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
71036         Require gl_STAT_MACROS, too.
71037
71038 2005-09-01  Bruno Haible  <bruno@clisp.org>
71039
71040         * gnulib-tool (import): In the first-use case, provide defaults.
71041
71042 2005-09-01  Bruno Haible  <bruno@clisp.org>
71043
71044         * gnulib-tool (func_import): Remove the .tmp files.
71045
71046 2005-09-01  Bruno Haible  <bruno@clisp.org>
71047
71048         * gnulib-tool (func_import): Fix handling of symbolic links.
71049
71050 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
71051
71052         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
71053         old glibc regex code mishandles strings longer than 2**31 bytes.
71054         This patch fixes this when the regex code is used in gnulib
71055         (i.e., outside glibc).
71056
71057         This patch should not affect the use of the regex code inside
71058         glibc.  No doubt this problem also needs to be handled for glibc
71059         as well, but the result will be an incompatible change to the
71060         glibc ABI, and the old ABI will have to be supported too.  That
71061         can be the the subject for another patch.
71062
71063         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
71064         governing whether the rest of this patch is active.  By default,
71065         the macro is disabled and the patch has no effect.
71066         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
71067         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
71068         (struct re_pattern_buffer, re_search, re_search_2, re_match):
71069         (re_match_2, re_set_registers): Use the new types.
71070         * lib/regex_internal.h (Idx, re_hashval_t): New types.
71071         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
71072         New macros.
71073         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
71074         (re_string_context_at, bin_tree_t, re_dfastate_t):
71075         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
71076         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
71077         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
71078         (re_string_char_size_at, re_string_wchar_at):
71079         (re_string_elem_size_at):
71080         Use the new types and macros to port to 64-bit hosts.
71081         Use unsigned types for internal values, so that the code
71082         mostly works even for arrays larger than SSIZE_MAX.
71083         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
71084         (search_duplicated_node, calc_eclosure_iter, fetch_number):
71085         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
71086         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
71087         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
71088         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
71089         (calc_inveclosure, parse_dup_op, build_range_exp):
71090         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
71091         (fetch_number, create_token_tree, mark_opt_subexp):
71092         Likewise.
71093         * lib/regex_internal.c (re_string_construct_common,
71094         create_ci_newstate):
71095         (create_cd_newstate, re_string_allocate, re_string_construct):
71096         (re_string_realloc_buffers, build_wcs_upper_buffer):
71097         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
71098         (re_string_reconstruct, re_string_peek_byte_case):
71099         (re_string_fetch_byte_case, re_string_context_at):
71100         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
71101         (re_node_set_init_copy, re_node_set_add_intersect):
71102         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
71103         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
71104         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
71105         (re_acquire_state, re_acquire_state_context, register_state):
71106         Likewise.
71107         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
71108         search_cur_bkref_entry):
71109         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
71110         (re_search_internal, re_search_2_stub, re_search_stub)
71111         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
71112         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
71113         (update_cur_sifted_state, check_dst_limits):
71114         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
71115         (check_subexp_limits, sift_states_bkref, merge_state_array):
71116         (check_subexp_matching_top, get_subexp, get_subexp_sub):
71117         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
71118         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
71119         (expand_bkref_cache, check_node_accept_bytes):
71120         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
71121         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
71122         (acquire_init_state_context, check_halt_node_context):
71123         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
71124         (sift_states_backward, clean_state_log_if_needed):
71125         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
71126         (find_recover_state, transit_state_sb, transit_state_mb):
71127         (transit_state_bkref, build_trtable, match_ctx_clean):
71128         Likewise.
71129         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
71130         to work around an assumption that REG_MISSING is negative.
71131
71132         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
71133         (seek_collating_symbol_entry) [defined _LIBC]:
71134         (lookup_collation_sequence_value) [defined _LIBC]:
71135         (build_range_exp, build_collating_symbol) [defined _LIBC]:
71136         Use prototypes rather than old-style function definitions.
71137         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
71138         (transit_state_sb) [0]:
71139         (find_collation_sequence_value) [defined _LIBC]: Likewise.
71140
71141         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
71142         rm_eo.
71143
71144         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
71145         (optimize_subexps, lower_subexp):
71146         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
71147         since the signed shift might overflow.  Use 1u<<31 instead.
71148         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
71149         Likewise.
71150         * lib/regexec.c (check_dst_limits_calc_pos_1,
71151         check_subexp_matching_top): Likewise.
71152
71153         * lib/regcomp.c (optimize_subexps, lower_subexp):
71154         Use CHAR_BIT rather than 8, for clarity.
71155         * lib/regexec.c (check_dst_limits_calc_pos_1):
71156         (check_subexp_matching_top): Likewise.
71157         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
71158         have to worry about portability issues when shifting it left.
71159         Remove no-longer-needed test for table_size > 0.
71160         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
71161         in a word, as the resulting behavior is undefined.
71162         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
71163         in one case, a <= should have been an <, and in another case the
71164         whole test was missing.
71165         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
71166         the standard name CHAR_BIT.
71167         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
71168         this is not true on one's complement and signed-magnitude hosts.
71169
71170         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
71171         next_last_offset.
71172         (struct re_dfa_t): Remove unused member states_alloc.
71173         * lib/regcomp.c (init_dfa): Don't initialize unused members.
71174
71175 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
71176
71177         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
71178         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
71179         and large-file glibc and in 32-bit large-file Solaris.
71180
71181 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
71182
71183         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
71184         lengths fit in regoff_t; this isn't true if regoff_t is the same
71185         width as size_t.
71186         * lib/regex.c (re_search_internal): 5th arg is LAST_START
71187         (= START + RANGE) instead of RANGE.  This avoids overflow
71188         problems when regoff_t is the same width as size_t.
71189         All callers changed.
71190         (re_search_2_stub): Check for overflow when adding the
71191         sizes of the two strings.
71192         (re_search_stub): Check for overflow when adding START
71193         to RANGE; if it occurs, substitute the extreme value.
71194
71195 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
71196
71197         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
71198
71199 2005-08-31  Jim Meyering  <jim@meyering.net>
71200
71201         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
71202         a pointer-to-const.
71203         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
71204         (register_state): Likewise.
71205         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
71206         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
71207         (group_nodes_into_DFAstates): Likewise.
71208
71209 2005-08-31  Jim Meyering  <jim@meyering.net>
71210
71211         * check-module: Add a FIXME comment.
71212
71213 2005-08-31  Eric Blake  <ebb9@byu.net>
71214
71215         * modules/unistd-safer (Files): Add unistd--.h.
71216         * modules/stdio-safer (Files): Add stdio--.h.
71217
71218 2005-08-31  Derek Price  <derek@ximbiot.com>
71219
71220         * lib/getdelim.c (getdelim): Return EOF on EOF.
71221         Reported by Larry Jones <lawrence.jones@ugs.com>.
71222
71223 2005-08-31  Bruno Haible  <bruno@clisp.org>
71224
71225         Avoid unnecessary diffs in the generated lib/Makefile.am.
71226         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
71227         the generated files.
71228         (func_import): Don't set cmd.
71229
71230 2005-08-31  Bruno Haible  <bruno@clisp.org>
71231
71232         * lib/strstr.c: Include <stddef.h>, for NULL.
71233         * lib/strcasestr.c: Likewise.
71234         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
71235
71236 2005-08-31  Bruno Haible  <bruno@clisp.org>
71237
71238         * gnulib-tool: New option --macro-prefix.
71239         (func_import): Use macro_prefix.
71240         (import): Handle option --macro-prefix.
71241
71242 2005-08-31  Bruno Haible  <bruno@clisp.org>
71243
71244         * gnulib-tool (import): Rename most ac_* variables to cached_*.
71245         Also use new variables cached_lgpl, cached_libtool.
71246
71247 2005-08-31  Bruno Haible  <bruno@clisp.org>
71248
71249         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
71250         always instantiating them.
71251
71252 2005-08-31  Bruno Haible  <bruno@clisp.org>
71253
71254         * gnulib-tool (func_import): Read the previous cached settings
71255         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
71256         earlier added by gnulib but are now dropped. Warn when a gnulib file
71257         overwrites a non-gnulib file.
71258
71259 2005-08-31  Bruno Haible  <bruno@clisp.org>
71260
71261         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
71262         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
71263         projects that don't keep autogenerated files in CVS. Put into
71264         actioncmd only the specified modules, not the transitive closure.
71265
71266 2005-08-31  Bruno Haible  <bruno@clisp.org>
71267
71268         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
71269         Create directories that shall be filled.
71270         (import): Don't look for gl_* macros in configure.ac. Recurse across
71271         all directories containing a gnulib-cache.m4 files, if meaningful.
71272
71273 2005-08-31  Bruno Haible  <bruno@clisp.org>
71274
71275         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
71276         (import): Set seen_libtool when we see gl_LIBTOOL.
71277
71278 2005-08-31  Bruno Haible  <bruno@clisp.org>
71279
71280         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
71281         declaration macro definitions from generated gnulib.m4.
71282
71283 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
71284
71285         * lib/iconvme.h: Add prototype for iconv_alloc.
71286
71287 2005-08-29  Simon Josefsson  <jas@extundo.com>
71288
71289         * lib/iconvme.c: Fix errno.
71290
71291 2005-08-29  Bruno Haible  <bruno@clisp.org>
71292
71293         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
71294         that it works when the directory contains spaces.
71295
71296 2005-08-29  Bruno Haible  <bruno@clisp.org>
71297
71298         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
71299
71300 2005-08-29  Bruno Haible  <bruno@clisp.org>
71301
71302         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
71303         Emit more advice.
71304
71305 2005-08-29  Bruno Haible  <bruno@clisp.org>
71306         and Stepan Kasal  <kasal@ucw.cz>
71307
71308         * check-module: If more parameters are given, check each of them
71309         separately; add more exceptions, as noted by Jim Meyering.
71310         (check_module): New procedure.
71311         (%exempt_header): Now contains all exceptions.
71312
71313 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
71314
71315         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
71316
71317 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
71318
71319         * lib/iconvme.c: Split iconv_string into iconv_alloc.
71320
71321 2005-08-28  Bruno Haible  <bruno@clisp.org>
71322
71323         * m4/gnulib-tool.m4: New file.
71324
71325 2005-08-27  Jim Meyering  <jim@meyering.net>
71326
71327         * modules/unistd-safer (Files): Add pipe-safer.c.
71328         * modules/fcntl-safer (Files): Add creat-safer.c.
71329
71330 2005-08-27  Jim Meyering  <jim@meyering.net>
71331
71332         * m4/stdlib-safer.m4: New file.  From coreutils.
71333         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
71334         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
71335         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
71336         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
71337         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
71338
71339 2005-08-27  Jim Meyering  <jim@meyering.net>
71340
71341         * lib/fopen-safer.c: Merge minor changes from coreutils.
71342         * lib/dup-safer.c: Likewise.
71343         * lib/fd-safer.c: Likewise.
71344
71345         Merge from coreutils.
71346         * lib/stdio--.h: New file.
71347         * lib/stdlib--.h: New file.
71348         * lib/mkstemp-safer.c: New file.
71349
71350         GNU tar needs these.
71351         * lib/pipe-safer.c: New file.
71352         * lib/creat-safer.c: New file.
71353         * lib/fcntl--.h (creat): Define to creat_safer.
71354         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
71355         * lib/unistd--.h (pipe): Define to pipe_safer.
71356         * lib/unistd-safer.h: Declare pipe_safer.
71357
71358 2005-08-26  Simon Josefsson  <jas@extundo.com>
71359
71360         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
71361         Haible <bruno@clisp.org>.
71362
71363 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
71364
71365         * lib/regex_internal.h: Remove all references to
71366         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
71367         or better.
71368         (bitset_not, bitset_merge, bitset_not_merge):
71369         (bitset_mask, re_string_allocate, re_string_construct):
71370         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
71371         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
71372         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
71373         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
71374         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
71375         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
71376         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
71377         (re_acquire_state_context):
71378         Remove unnecessary forward decls.
71379         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
71380         Put __attribute at function definition,
71381         now that the function decl has been removed.
71382         * lib/regex_internal.c (re_string_peek_byte_case):
71383         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
71384         Likewise.
71385
71386 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
71387
71388         * m4/regex.m4: Add AC_PREREQ(2.50).
71389         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
71390
71391 2005-08-25  Simon Josefsson  <jas@extundo.com>
71392
71393         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
71394         __fsetlocking.
71395
71396 2005-08-25  Simon Josefsson  <jas@extundo.com>
71397
71398         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
71399         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
71400         GLIBC specific code.
71401
71402 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
71403
71404         Make regex safe for g++.  This fixes one real bug (an "err"
71405         that should have been "*err").  g++ problem reported by
71406         Sam Steingold.
71407         * lib/regex_internal.h (re_calloc): New macro, consistent with
71408         re_malloc etc.  All callers of calloc changed to use re_calloc.
71409         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
71410         not int.  All callers changed.
71411         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
71412         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
71413         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
71414         (find_recover_state): Change "err" to "*err"; this fixes what
71415         appears to be a real bug.
71416         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
71417         versus int.
71418
71419 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
71420
71421         * modules/regex (Depends-on): Add malloc, since the code
71422         assumes that !malloc(0) means failure.
71423
71424 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
71425
71426         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
71427
71428         alloca modernization/simplification for regex.
71429         * lib/regex.c: Remove portability cruft for alloca.  This no longer
71430         needs to be at the start of the file, and can be moved into
71431         regex_internal.h and simplified.
71432         * lib/regex_internal.h: Include <alloca.h>.
71433         (__libc_use_alloca) [!defined _LIBC]: New macro.
71434         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
71435         now works outside glibc.
71436
71437 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
71438
71439         * config/srclist.txt: Add glibc bugs 1241, 1245.
71440
71441 2005-08-25  Jim Meyering  <jim@meyering.net>
71442
71443         * lib/open-safer.c: Include <config.h>.
71444         Otherwise, we'd lose LARGEFILE support in any file using
71445         e.g. "fcntl--.h"
71446
71447 2005-08-25  Bruno Haible  <bruno@clisp.org>
71448
71449         * m4/minmax.m4: Require autoconf 2.52.
71450         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
71451         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
71452         alternatives of translit over the alphabet.
71453         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
71454
71455 2005-08-24  Simon Josefsson  <jas@extundo.com>
71456
71457         * tests/test-getpass.c: New file.
71458
71459 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
71460
71461         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
71462         for GNU regex features.
71463
71464 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
71465
71466         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
71467         * lib/regex.h (regerror): Likewise.
71468
71469         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
71470         requires this.  (The code never needed it.)
71471
71472         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
71473         All uses of recently-renamed identifiers changed to use the new,
71474         POSIX-compliant names.  The code will build and run just fine
71475         without these changes, but it's better to eat our own dog food
71476         and use the standard-conforming names.
71477
71478         * lib/regex.h: Fix a multitude of POSIX name space violations.
71479         These changes have an effect only for programs that define
71480         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
71481         do not change anything for programs compiled in the normal way.
71482         Also, there is no effect on the ABI.
71483
71484         (_REGEX_SOURCE): New macro.
71485         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
71486         defined and _GNU_SOURCE is not; this fixes a name space violation.
71487
71488         Rename the following macros to obey POSIX requirements.
71489         The old names are still visible as macros if _REGEX_SOURCE is defined.
71490         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
71491         RE_BACKSLASH_ESCAPE_IN_LISTS.
71492         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
71493         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
71494         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
71495         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
71496         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
71497         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
71498         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
71499         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
71500         (REG_INTERVALS): renamed from RE_INTERVALS.
71501         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
71502         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
71503         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
71504         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
71505         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
71506         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
71507         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
71508         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
71509         RE_UNMATCHED_RIGHT_PAREN_ORD.
71510         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
71511         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
71512         (REG_DEBUG): renamed from RE_DEBUG.
71513         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
71514         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
71515         unusual, since we can't clash with the POSIX REG_ICASE.
71516         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
71517         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
71518         (REG_NO_SUB): renamed from RE_NO_SUB.
71519         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
71520         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
71521         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
71522         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
71523         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
71524         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
71525         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
71526         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
71527         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
71528         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
71529         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
71530         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
71531         RE_SYNTAX_POSIX_MINIMAL_BASIC.
71532         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
71533         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
71534         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
71535         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
71536         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
71537         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
71538         (REG_FIXED): Renamed from REGS_FIXED.
71539         (REG_NREGS): Renamed from RE_NREGS.
71540
71541         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
71542         of other REG_* macros, since POSIX says the user is allowed to
71543         #undef these macros selectively.
71544
71545         (reg_errcode_t): Update comment stating what other tables need
71546         to be consistent.
71547
71548         Rename the following enum values to obey POSIX requirements.
71549         The old names are still visible as macros.
71550         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
71551         is not defined, since GNU is supposed to be a superset of POSIX as
71552         much as possible, and since we want reg_errcode_t to be a signed
71553         type for implementation consistency.
71554         (_REG_NOERROR): Renamed from REG_NOERROR.
71555         (_REG_NOMATCH): Renamed from REG_NOMATCH.
71556         (_REG_BADPAT): Renamed from REG_BADPAT.
71557         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
71558         (_REG_ECTYPE): Renamed from REG_ECTYPE.
71559         (_REG_EESCAPE): Renamed from REG_EESCAPE.
71560         (_REG_ESUBREG): Renamed from REG_ESUBREG.
71561         (_REG_EBRACK): Renamed from REG_EBRACK.
71562         (_REG_EPAREN): Renamed from REG_EPAREN.
71563         (_REG_EBRACE): Renamed from REG_EBRACE.
71564         (_REG_BADBR): Renamed from REG_BADBR.
71565         (_REG_ERANGE): Renamed from REG_ERANGE.
71566         (_REG_ESPACE): Renamed from REG_ESPACE.
71567         (_REG_BADRPT): Renamed from REG_BADRPT.
71568         (_REG_EEND): Renamed from REG_EEND.
71569         (_REG_ESIZE): Renamed from REG_ESIZE.
71570         (_REG_ERPAREN): Renamed from REG_ERPAREN.
71571         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
71572         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
71573         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
71574         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
71575
71576         (_REG_RE_NAME, _REG_RM_NAME): New macros.
71577         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
71578         changed.  But support the old name if the new one is not defined
71579         and if _REGEX_SOURCE.
71580
71581         Change the following member names in struct re_pattern_buffer.
71582         The old names are still supported if !_REGEX_SOURCE.
71583         The new names are always supported, regardless of _REGEX_SOURCE.
71584         (re_buffer): Renamed from buffer.
71585         (re_allocated): Renamed from allocated.
71586         (re_used): Renamed from used.
71587         (re_syntax): Renamed from syntax.
71588         (re_fastmap): Renamed from fastmap.
71589         (re_translate): Renamed from translate.
71590         (re_can_be_null): Renamed from can_be_null.
71591         (re_regs_allocated): Renamed from regs_allocated.
71592         (re_fastmap_accurate): Renamed from fastmap_accurate.
71593         (re_no_sub): Renamed from no_sub.
71594         (re_not_bol): Renamed from not_bol.
71595         (re_not_eol): Renamed from not_eol.
71596         (re_newline_anchor): Renamed from newline_anchor.
71597
71598         Change the following member names in struct re_registers.
71599         The old names are still supported if !_REGEX_SOURCE.
71600         The new names are always supported, regardless of _REGEX_SOURCE.
71601         (rm_num_regs): Renamed from num_regs.
71602         (rm_start): Renamed from start.
71603         (rm_end): Renamed from end.
71604
71605         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
71606         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
71607         Prepend __ to parameter names.
71608
71609         Undo yesterday's changes.
71610
71611 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
71612
71613         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
71614         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
71615         lib/regex.c.
71616
71617 2005-08-24  Jim Meyering  <jim@meyering.net>
71618
71619         Sync from coreutils.
71620         * m4/fcntl-safer.m4: New file.
71621
71622         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
71623         and object files for this module.
71624
71625 2005-08-24  Jim Meyering  <jim@meyering.net>
71626
71627         Sync from coreutils.
71628         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
71629
71630 2005-08-24  Jim Meyering  <jim@meyering.net>
71631
71632         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
71633         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
71634
71635 2005-08-24  Jim Meyering  <jim@meyering.net>
71636
71637         * modules/fcntl-safer: New module.
71638         * modules/fts (Depends-on): Add fcntl-safer.
71639         * MODULES.html.sh (File descriptor based Input/Output):
71640         Add fcntl-safer.
71641
71642 2005-08-24  Bruno Haible  <bruno@clisp.org>
71643
71644         Support for unit test modules.
71645         * modules/README: Mention tests modules.
71646         * modules/TEMPLATE-TESTS: New file.
71647         * gnulib-tool: New options --extract-tests-module, --with-tests and
71648         --tests-base (unused for the moment).
71649         (testsbase, inctests): New variables.
71650         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
71651         (func_verify_module): Exclude TEMPLATE-TESTS.
71652         (func_verify_nontests_module, func_verify_tests_module): New functions.
71653         (func_get_dependencies): Add implicit dependency for tests modules.
71654         (func_get_tests_module): New function.
71655         (func_modules_transitive_closure): When --with-tests was specified,
71656         include the unit tests as well, unless explicitly avoided.
71657         (func_emit_lib_Makefile_am): Ignore the tests modules here.
71658         (func_emit_tests_Makefile_am): New function.
71659         (func_create_testdir): When --with-tests was specified, emit a
71660         tests/ directory.
71661         * MODULES.html.sh (Future developments): Update.
71662
71663 2005-08-24  Bruno Haible  <bruno@clisp.org>
71664
71665         * modules/tls-tests: New file.
71666         * tests/test-tls.c: New file, from GNU gettext.
71667
71668 2005-08-24  Bruno Haible  <bruno@clisp.org>
71669
71670         * modules/lock-tests: New file.
71671         * tests/test-lock.c: New file, from GNU gettext.
71672
71673 2005-08-24  Bruno Haible  <bruno@clisp.org>
71674
71675         * lib/lock.h: Add multiple inclusion guard.
71676         * lib/tls.h: Add multiple inclusion guard.
71677
71678 2005-08-24  Bruno Haible  <bruno@clisp.org>
71679
71680         * gnulib-tool: Add support for the --aux-dir option to
71681         --create-testdir, --create-megatestdir, --test, --megatest.
71682         (func_create_testdir, func_create_megatestdir): Optionally emit a
71683         AC_CONFIG_AUX_DIR directive.
71684         (create-testdir, create-megatestdir, test, megatest): Provide a
71685         default value for $auxdir.
71686
71687 2005-08-24  Bruno Haible  <bruno@clisp.org>
71688
71689         * gnulib-tool (import): Use compound statement instead of subshell
71690         where possible.
71691
71692 2005-08-24  Bruno Haible  <bruno@clisp.org>
71693
71694         * gnulib-tool (import): Change --aux-dir default to "build-aux".
71695
71696 2005-08-24  Bruno Haible  <bruno@clisp.org>
71697
71698         * gnulib-tool (func_version): Update.
71699
71700 2005-08-24  Bruno Haible  <bruno@clisp.org>
71701
71702         * gnulib-tool (func_import, func_create_testdir,
71703         func_create_megatestdir): Quote all autoconf macro arguments.
71704
71705 2005-08-24  Bruno Haible  <bruno@clisp.org>
71706
71707         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
71708         option --force, because --force causes the aclocal.m4 of each
71709         subdirectory to be newer than the corresponding config.h.in.
71710
71711 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
71712
71713         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
71714         All contents moved to gl_REGEX.
71715         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
71716         assume that it does.
71717
71718 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
71719
71720         * lib/regex.h (REG_NOSYS)
71721         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
71722         Define, since POSIX requires it as of 2001.
71723         (_REG_ENOSYS)
71724         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
71725         New private symbol, used to keep the enum signed in all cases.
71726         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
71727         Youngman in
71728         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
71729
71730         * lib/regex_internal.c (re_string_skip_chars, register_state):
71731         (calc_state_hash):
71732         Remove forward decls; no longer needed now that we use prototypes.
71733         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
71734         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
71735         (clean_state_log_if_needed): Likewise.
71736
71737 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
71738
71739         * config/srclist.txt: Add glibc bugs 1231-1233.
71740
71741 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
71742
71743         Fix problems reported by Sam Steingold in
71744         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
71745         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
71746         assumed that reg_errcode_t is a signed type, which is not
71747         necessarily true if _XOPEN_SOURCE is not defined.
71748         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
71749         since some compilers warn about it otherwise.
71750
71751 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
71752
71753         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
71754         (init_word_char, create_initial_state, duplicate_node_closure):
71755         (fetch_token, peek_token_bracket, build_range_exp):
71756         (build_collating_symbol): Remove forward decls; no longer needed
71757         now that we use prototypes.
71758
71759         * lib/regcomp.c:
71760         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
71761         (re_compile_fastmap_iter, regcomp, regerror, regfree):
71762         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
71763         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
71764         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
71765         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
71766         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
71767         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
71768         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
71769         (build_range_exp, build_collating_symbol, parse_bracket_exp):
71770         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
71771         (build_charclass, build_charclass_op, fetch_number, create_tree):
71772         (create_token_tree, mark_opt_subexp, duplicate_tree):
71773         Use prototypes rather than old-style definitions.
71774
71775         * lib/regex_internal.c:
71776         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
71777         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
71778         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
71779         (re_string_reconstruct, re_string_peek_byte_case):
71780         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
71781         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
71782         (re_node_set_init_copy, re_node_set_add_intersect):
71783         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
71784         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
71785         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
71786         (re_acquire_state, re_acquire_state_context, register_state):
71787         (create_ci_newstate, create_cd_newstate, free_state):
71788         Likewise.
71789         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
71790         re_search_2):
71791         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
71792         (re_search_internal, prune_impossible_nodes):
71793         (acquire_init_state_context, check_matching, static):
71794         (check_halt_node_context, check_halt_state_context, proceed_next_node):
71795         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
71796         (update_regs, sift_states_backward, build_sifted_states):
71797         (clean_state_log_if_needed, merge_state_array):
71798         (update_cur_sifted_state, add_epsilon_src_nodes):
71799         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
71800         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
71801         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
71802         (find_recover_state, check_subexp_matching_top, transit_state_mb):
71803         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
71804         (check_arrival, check_arrival_add_next_nodes):
71805         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
71806         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
71807         (check_node_accept_bytes, check_node_accept, extend_buffers):
71808         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
71809         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
71810         (sift_ctx_init):
71811         Likewise.
71812
71813         * lib/regex_internal.h:
71814         (re_string_allocate, re_string_construct, re_string_reconstruct):
71815         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
71816         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
71817         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
71818         (re_string_context_at, re_string_peek_byte_case):
71819         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
71820         is defined, since we now use prototypes always.
71821
71822         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
71823         C89 or better.  All uses removed.
71824
71825 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
71826
71827         * config/srclist.txt: Add glibc bugs 1220-1227.
71828
71829 2005-08-20  Jim Meyering  <jim@meyering.net>
71830
71831         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
71832         of unused local, dfa.
71833
71834 2005-08-20  Bruno Haible  <bruno@clisp.org>
71835
71836         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
71837
71838 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
71839
71840         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
71841         (re_node_set_insert_last, re_dfa_add_node):
71842         Rename local variables to avoid GCC shadowing warnings.
71843
71844 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
71845
71846         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
71847         [defined lint]: Suppress bogus uninitialized-variable warnings.
71848
71849         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
71850         and let the caller return REG_ESPACE if out of space.  This
71851         removes an uninitialied-variable warning with GCC 4.0.1, and also
71852         avoids taking the address of a local variable.  All callers
71853         changed.
71854
71855 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
71856
71857         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
71858         $LIBCSRC/posix/regexec.c.
71859         Add glibc bug 1217 for regcomp.c.
71860
71861 2005-08-19  Jim Meyering  <jim@meyering.net>
71862
71863         * lib/regexec.c (proceed_next_node): Redo local variables to
71864         avoid GCC shadowing warnings.
71865
71866 2005-08-18  Bruno Haible  <bruno@clisp.org>
71867
71868         * lib/strstr.c (strstr): Fix return value in multibyte case.
71869         * lib/strcasestr.c (strcasestr): Likewise.
71870
71871 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
71872
71873         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
71874
71875 2005-08-17  Jim Meyering  <jim@meyering.net>
71876
71877         Make the %s format (seconds since the epoch) work for a negative
71878         number and when used with a zero-padded field width, e.g. %015s.
71879
71880         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
71881         label so that it precedes the code to set `digits'.  Otherwise,
71882         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
71883         print `00-22'.  Now, it prints `-0022', as it should.
71884
71885 2005-08-17  Bruno Haible  <bruno@clisp.org>
71886
71887         * modules/strstr (Files): Add m4/mbrtowc.m4.
71888         (Depends-on): Add mbuiter.
71889
71890 2005-08-17  Bruno Haible  <bruno@clisp.org>
71891
71892         * modules/strcasestr: New file.
71893         * MODULES.html.sh (String handling, based on ANSI C 89): Add
71894         strcasestr.
71895
71896 2005-08-17  Bruno Haible  <bruno@clisp.org>
71897
71898         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
71899
71900 2005-08-17  Bruno Haible  <bruno@clisp.org>
71901
71902         * modules/mbuiter: New file.
71903         * MODULES.html.sh (Extended multibyte and wide character utilities):
71904         Add mbuiter.
71905
71906 2005-08-17  Bruno Haible  <bruno@clisp.org>
71907
71908         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
71909         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
71910
71911 2005-08-17  Bruno Haible  <bruno@clisp.org>
71912
71913         * m4/strcasestr.m4: New file.
71914
71915 2005-08-17  Bruno Haible  <bruno@clisp.org>
71916
71917         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
71918         * lib/strstr.c: Completely rewritten, with multibyte locale support.
71919
71920 2005-08-17  Bruno Haible  <bruno@clisp.org>
71921
71922         * lib/strcasestr.h: New file.
71923         * lib/strcasestr.c: New file.
71924
71925 2005-08-17  Bruno Haible  <bruno@clisp.org>
71926
71927         * lib/strcasecmp.c: Use mbuiter.h.
71928
71929 2005-08-17  Bruno Haible  <bruno@clisp.org>
71930
71931         * lib/mbuiter.h: New file.
71932
71933 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
71934
71935         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
71936         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
71937         and gl_GETOPT are both invoked via different paths (as happens
71938         with GNU tar CVS because it uses both argp and getopt), the former
71939         wins.
71940
71941 2005-08-16  Bruno Haible  <bruno@clisp.org>
71942
71943         * modules/tls: New file.
71944         * MODULES.html.sh (Multithreading): Add tls.
71945
71946 2005-08-16  Bruno Haible  <bruno@clisp.org>
71947
71948         * modules/strnlen1: New file.
71949         * MODULES.html.sh (String handling): Add strnlen1.
71950
71951 2005-08-16  Bruno Haible  <bruno@clisp.org>
71952
71953         * modules/strcase (Files): Add m4/mbrtowc.m4.
71954         (Depends-on): Add strnlen1, mbchar.
71955
71956 2005-08-16  Bruno Haible  <bruno@clisp.org>
71957
71958         * modules/mbiter: New file.
71959         * MODULES.html.sh (Extended multibyte and wide character utilities):
71960         Add mbiter.
71961
71962 2005-08-16  Bruno Haible  <bruno@clisp.org>
71963
71964         * modules/mbfile: New file.
71965         * MODULES.html.sh (Extended multibyte and wide character utilities):
71966         Add mbfile.
71967
71968 2005-08-16  Bruno Haible  <bruno@clisp.org>
71969
71970         * modules/mbchar: New file.
71971         * MODULES.html.sh (Extended multibyte and wide character utilities):
71972         New section.
71973
71974 2005-08-16  Bruno Haible  <bruno@clisp.org>
71975
71976         * m4/tls.m4: New file, from GNU gettext.
71977
71978 2005-08-16  Bruno Haible  <bruno@clisp.org>
71979
71980         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
71981         always.
71982         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
71983
71984 2005-08-16  Bruno Haible  <bruno@clisp.org>
71985
71986         * m4/mbiter.m4: New file.
71987
71988 2005-08-16  Bruno Haible  <bruno@clisp.org>
71989
71990         * m4/mbfile.m4: New file.
71991
71992 2005-08-16  Bruno Haible  <bruno@clisp.org>
71993
71994         * m4/mbchar.m4: New file.
71995
71996 2005-08-16  Bruno Haible  <bruno@clisp.org>
71997
71998         * lib/tls.h: New file, from GNU gettext.
71999         * lib/tls.c: New file, from GNU gettext.
72000
72001 2005-08-16  Bruno Haible  <bruno@clisp.org>
72002
72003         * lib/strnlen1.h: New file.
72004         * lib/strnlen1.c: New file.
72005
72006 2005-08-16  Bruno Haible  <bruno@clisp.org>
72007
72008         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
72009         (mbi_init): Update.
72010         (mbi_avail, mbi_advance): Let the iteration end before the terminating
72011         NUL byte, not after it.
72012
72013 2005-08-16  Bruno Haible  <bruno@clisp.org>
72014
72015         * lib/strcase.h (strcasecmp): Add note in comments.
72016         * lib/strncasecmp.c: Use code from strcasecmp.c.
72017         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
72018         (strcasecmp): Work correctly in multibyte locales.
72019
72020 2005-08-16  Bruno Haible  <bruno@clisp.org>
72021
72022         * lib/mbiter.h: New file.
72023
72024 2005-08-16  Bruno Haible  <bruno@clisp.org>
72025
72026         * lib/mbfile.h: New file.
72027
72028 2005-08-16  Bruno Haible  <bruno@clisp.org>
72029
72030         * lib/mbchar.h: New file.
72031         * lib/mbchar.c: New file.
72032
72033 2005-08-16  Bruno Haible  <bruno@clisp.org>
72034
72035         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
72036         the valid ones. Makes the comparison operations transitive:
72037         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
72038         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
72039
72040 2005-08-15  Simon Josefsson  <jas@extundo.com>
72041
72042         * modules/ssize_t (License): Change to 'unlimited'.
72043
72044         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
72045
72046 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
72047
72048         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
72049         Add comments for each pending glibc patch.
72050
72051 2005-08-15  Bruno Haible  <bruno@clisp.org>
72052
72053         * lib/regex.h (__restrict_arr): Don't define to __restrict if
72054         __cplusplus is defined.
72055
72056 2005-08-14  Jim Meyering  <jim@meyering.net>
72057
72058         Sync from coreutils.
72059
72060         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
72061         Use the hash-table-based cycle-detection code not just when
72062         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
72063         Reported by James Youngman in
72064         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
72065         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
72066         FTS_TIGHT_CYCLE_CHECK.
72067         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
72068         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
72069         once again.
72070         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
72071         * lib/fts.c (fd_safer): Remove decl.
72072         Include fcntl--.h rather than unistd-safer.h
72073         (fts_safe_changedir): Don't call fd_safer; no longer needed
72074         now that we include fcntl--.h.
72075
72076 2005-08-12  Simon Josefsson  <jas@extundo.com>
72077
72078         * modules/getndelim2: Use ssize_t module.
72079         * modules/getnline: Likewise.
72080         * modules/safe-read: Likewise.
72081         * modules/xreadlink: Likewise.
72082
72083         * modules/ssize_t: New file.
72084
72085 2005-08-12  Simon Josefsson  <jas@extundo.com>
72086
72087         * m4/readline.m4: Look for termcap, curses or ncurses if required.
72088
72089 2005-08-12  Simon Josefsson  <jas@extundo.com>
72090
72091         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
72092         ssize_t.
72093
72094 2005-08-12  Simon Josefsson  <jas@extundo.com>
72095
72096         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
72097         readline, getdelim and check_version.
72098         (Support for systems lacking ISO C 99: Sizes of integer types):
72099         Add size_max.
72100
72101 2005-08-12  Bruno Haible  <bruno@clisp.org>
72102
72103         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
72104
72105 2005-08-11  Simon Josefsson  <jas@extundo.com>
72106
72107         * modules/readline: New file.
72108
72109         * modules/strnlen (Files): Add strnlen.h.
72110
72111 2005-08-11  Simon Josefsson  <jas@extundo.com>
72112
72113         * m4/readline.m4: New file.
72114
72115 2005-08-11  Simon Josefsson  <jas@extundo.com>
72116
72117         * lib/readline.h, readline.c: New file.
72118
72119 2005-08-11  Simon Josefsson  <jas@extundo.com>
72120
72121         * doc/gnulib.texi (Initial import, Finishing touches): Mention
72122         gl_AVOID.
72123
72124 2005-08-11  Bruno Haible  <bruno@clisp.org>
72125
72126         * lib/strnlen.h (strnlen): Change parameter name to match comment.
72127
72128 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
72129
72130         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
72131
72132 2005-08-10  Simon Josefsson  <jas@extundo.com>
72133
72134         * tests/test-iconvme.c: New file.
72135
72136 2005-08-10  Simon Josefsson  <jas@extundo.com>
72137
72138         * m4/strnlen.m4: New file.
72139
72140         * m4/strndup.m4: Don't check for strnlen declaration, done in
72141         strnlen.m4.
72142
72143 2005-08-10  Simon Josefsson  <jas@extundo.com>
72144
72145         * lib/strndup.c: Use strnlen.h.
72146
72147         * lib/strnlen.h: New file.
72148
72149 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
72150
72151         * README: Typos.
72152
72153 2005-08-02  Simon Josefsson  <jas@extundo.com>
72154
72155         * modules/readline: New file.
72156
72157 2005-08-02  Simon Josefsson  <jas@extundo.com>
72158
72159         * modules/getdelim: New file.
72160
72161         * modules/getline: Rewrite, don't use getndelim2.
72162
72163 2005-08-02  Simon Josefsson  <jas@extundo.com>
72164
72165         * m4/getline.m4: Separate out getdelim stuff into separate module.
72166
72167         * m4/getdelim.m4: New file.
72168
72169 2005-08-02  Simon Josefsson  <jas@extundo.com>
72170
72171         * lib/getline.h, getline.c: Rewrite.
72172
72173         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
72174
72175 2005-07-31  Bruno Haible  <bruno@clisp.org>
72176
72177         * lib/lock.h (gl_lock_initializer): New macro.
72178         (gl_lock_define_initialized): Use it.
72179         (gl_rwlock_initializer): New macro.
72180         (gl_rwlock_define_initialized): Use it.
72181         (gl_recursive_lock_initializer): New macro.
72182         (gl_recursive_lock_define_initialized): Use it.
72183
72184 2005-07-30  Karl Berry  <karl@gnu.org>
72185
72186         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
72187         Report from Ben Pfaff, regarding getopt.
72188
72189 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
72190
72191         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
72192         normal way.
72193         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
72194         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
72195         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
72196         (gl_GETOPT): Use the new macros.  Most of the implementation
72197         is moved to the new macros.  This is for programs like Emacs
72198         that don't want all the functionality of gl_GETOPT.
72199
72200 2005-07-26  Bruno Haible  <bruno@clisp.org>
72201
72202         * m4/lock.m4: Update from GNU gettext.
72203
72204 2005-07-26  Bruno Haible  <bruno@clisp.org>
72205
72206         * lib/lock.h: Update from GNU gettext.
72207         * lib/lock.c: Update from GNU gettext.
72208
72209 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
72210
72211         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
72212         obsolescent AC_TRY_RUN.  Include the default includes files, for
72213         'exit'.
72214
72215 2005-07-24  Bruno Haible  <bruno@clisp.org>
72216
72217         * modules/visibility: New file.
72218         * MODULES.html.sh (Misc): Add visibility.
72219
72220 2005-07-24  Bruno Haible  <bruno@clisp.org>
72221
72222         * m4/visibility.m4: New file.
72223
72224 2005-07-24  Bruno Haible  <bruno@clisp.org>
72225
72226         * doc/visibility.texi: New file.
72227
72228 2005-07-22  Bruno Haible  <bruno@clisp.org>
72229
72230         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
72231         $(ALLOCA_H), redundant through BUILT_SOURCES.
72232         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
72233         redundant through BUILT_SOURCES.
72234         * modules/byteswap (Makefile.am): Remove explicit dependency on
72235         $(BYTESWAP_H), redundant through BUILT_SOURCES.
72236         * modules/fnmatch (Makefile.am): Remove explicit dependency on
72237         $(FNMATCH_H), redundant through BUILT_SOURCES.
72238         * modules/getopt (Makefile.am): Remove explicit dependency on
72239         $(GETOPT_H), redundant through BUILT_SOURCES.
72240         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
72241         redundant through BUILT_SOURCES.
72242         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
72243         redundant through BUILT_SOURCES.
72244         * modules/stdbool (Makefile.am): Remove explicit dependency on
72245         $(STDBOOL_H), redundant through BUILT_SOURCES.
72246         * modules/stdint (Makefile.am): Remove explicit dependency on
72247         $(STDINT_H), redundant through BUILT_SOURCES.
72248         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
72249         Remove explicit dependency on $(SYSEXITS_H).
72250         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
72251
72252 2005-07-18  Simon Josefsson  <jas@extundo.com>
72253
72254         * lib/check-version.c (check_version): Accept identical versions too.
72255
72256 2005-07-18  Bruno Haible  <bruno@clisp.org>
72257
72258         * modules/lock: New file.
72259         * MODULES.html.sh (Multithreading): New section.
72260
72261 2005-07-18  Bruno Haible  <bruno@clisp.org>
72262
72263         * m4/lock.m4: New file, from GNU gettext.
72264
72265 2005-07-18  Bruno Haible  <bruno@clisp.org>
72266
72267         * lib/lock.h: New file, from GNU gettext.
72268         * lib/lock.c: New file, from GNU gettext.
72269
72270 2005-07-18  Bruno Haible  <bruno@clisp.org>
72271
72272         * lib/lock.h (gl_once_t): New type.
72273         (gl_once_define, gl_once): New macros.
72274         * lib/lock.c (fresh_once): New variable.
72275         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
72276         functions.
72277
72278 2005-07-16  Simon Josefsson  <jas@extundo.com>
72279
72280         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
72281         workaround, suggested by Bruno.
72282
72283 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
72284
72285         * modules/xalloc (Depends-on): Add xalloc-die.
72286         * modules/xvasprintf (Depends-on): Add xalloc-die.
72287
72288 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
72289
72290         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
72291         with a minor change.
72292
72293 2005-07-15  Bruno Haible  <bruno@clisp.org>
72294
72295         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
72296         When using lib/poll.c, define poll as rpl_poll.
72297
72298 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
72299
72300         * modules/argp (Depends-on): Remove unlocked-io.
72301
72302 2005-07-14  Derek Price  <derek@ximbiot.com>
72303
72304         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
72305         for glob symlink bug.
72306
72307 2005-07-14  Bruno Haible  <bruno@clisp.org>
72308
72309         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
72310         Instead, test for *_unlocked function declarations directly.
72311
72312 2005-07-11  Simon Josefsson  <jas@extundo.com>
72313
72314         * modules/size_max: New file.
72315
72316         * modules/xsize: Depend on size_max module for size_max.m4.
72317
72318 2005-07-11  Simon Josefsson  <jas@extundo.com>
72319
72320         * lib/size_max.h: New file.
72321
72322 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
72323
72324         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
72325         copyright symbol and the year.
72326         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
72327         (version_etc_va): Use parameterized copyright notice.
72328         Reword to conform to the current GNU coding standards.
72329
72330 2005-07-11  Karl Berry  <karl@gnu.org>
72331
72332         * doc/gnulib.texi (Quoting): new node.
72333         (Initial import): more info, from Patrice.
72334
72335 2005-07-11  Bruno Haible  <bruno@clisp.org>
72336
72337         * gnulib-tool (func_usage): Document option --avoid.
72338         (Command line options): Handle --avoid.
72339         (func_acceptable): New function.
72340         (func_modules_transitive_closure): Use it.
72341
72342 2005-07-11  Bruno Haible  <bruno@clisp.org>
72343
72344         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
72345         Reported by Jim Meyering.
72346
72347 2005-07-10  Bruno Haible  <bruno@clisp.org>
72348
72349         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
72350         Needed when size_t is smaller than 'unsigned int'.
72351         Reported by Paul Eggert.
72352
72353 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
72354
72355         * modules/argp (Depends-on): Add unlocked-io
72356
72357 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
72358
72359         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
72360         block of defines.
72361
72362 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
72363
72364         * config/srclist.txt: Comment out regcomp.c, since we have a porting
72365         fix now.
72366
72367 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
72368         and Paul Eggert  <eggert@cs.ucla.edu>
72369
72370         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
72371         in wint_t, not wchar_t.  Remove now-unnecessary cast.
72372
72373 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
72374
72375         * modules/regex (Files): Add lib/regex_internal.c,
72376         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
72377         (Depends-on): Add extensions.
72378         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
72379
72380 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
72381
72382         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
72383         pathconf.
72384         * m4/same.m4 (gl_SAME): Likewise.
72385         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
72386
72387         * m4/regex.m4: Adjust to new libc regex implementation.
72388         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
72389         all the .c and .h parts of (the new) regex.
72390         Quote the m4 stuff better.
72391         Check for RE_ICASE bug of old gnulib.
72392         Check for REG_STARTEND of recent libc.
72393         Rename local variables from jm_* to gl_*.
72394         Quote operand of "test -f".
72395         Say "recent enough" version of libc, not "version 2".
72396         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
72397         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
72398         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
72399         Remove check for btowc, isascii.
72400         Require AM_LANGINFO_CODESET.
72401
72402 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
72403
72404         * lib/regex.c, regex.h: Sync from libc.
72405         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
72406         * lib/regexec.c:
72407         New files, synced from libc, except that regex_internal.h
72408         currently has a small porting fix.
72409
72410 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
72411
72412         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
72413         regex_internal.c, regexec.c.
72414         Add regex_internal.h too, but as a comment, since the libc version
72415         is currently broken in gnulib mode.
72416
72417 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
72418
72419         Support programs like Emacs that use gnulib but not gettext.
72420         * MODULES.html.sh (Internationalization functions): Add gettext-h.
72421         * modules/gettext-h: New file.
72422         * modules/gettext (Files): Remove lib/gettext.h.
72423         (Depends-on): Add gettext-h.
72424         (Makefile.am): Remove lib_SOURCES.
72425         * modules/argmatch, modules/c-stack, modules/closeout:
72426         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
72427         * modules/execute, modules/file-type, modules/getaddrinfo:
72428         * modules/getopt, modules/human, modules/javacomp:
72429         * modules/javaexec, modules/mkdir-p, modules/obstack:
72430         * modules/openat, modules/pagealign_alloc, modules/pipe:
72431         * modules/quotearg, modules/regex, modules/rpmatch:
72432         * modules/unicodeio, modules/userspec, modules/version-etc:
72433         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
72434         * modules/xsetenv:
72435         Depend on gettext-h, not gettext.
72436
72437 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
72438
72439         * gnulib-tool (func_import): Add support for 'public domain' license.
72440         * modules/alloca, modules/atexit, modules/memmove:
72441         Now public domain, not GPL.
72442         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
72443         * modules/realloc, modules/strerror, modules/strtod:
72444         Now LGPL, not GPL.
72445
72446 2005-07-05  Bruno Haible  <bruno@clisp.org>
72447
72448         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
72449         autoconf CVS. Needed for mingw.
72450
72451 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
72452
72453         Remove the dependency of the strftime module on the tzset module.
72454         * modules/strftime (Depends-on): Remove dependency on tzset.
72455
72456 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
72457
72458         Remove the dependency of the strftime module on the tzset module.
72459         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
72460         gl_FUNC_TZSET_CLOBBER.
72461
72462 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
72463
72464         Remove the dependency of the strftime module on the tzset module.
72465         * lib/strftime.c (my_strftime)
72466         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
72467         Copy the input structure, to work around some of the bug with
72468         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
72469         Solaris releases, you should also use the tzset module, but we won't
72470         require it as a dependency any more since we don't want LGPLed code
72471         to depend on GPLed code.
72472
72473 2005-07-02  Jim Meyering  <jim@meyering.net>
72474
72475         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
72476         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
72477         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
72478         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
72479
72480 2005-07-02  Jim Meyering  <jim@meyering.net>
72481
72482         * lib/backupfile.c (backup_args): Change a `0' to NULL.
72483
72484 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
72485
72486         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
72487         declares only 'struct timespec;' (!).
72488
72489 2005-07-01  Jim Meyering  <jim@meyering.net>
72490
72491         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
72492         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
72493         * lib/save-cwd.c, tempname.c:
72494         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
72495         and don't include <sys/file.h>).
72496
72497 2005-06-29  Jim Meyering  <jim@meyering.net>
72498
72499         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
72500         type name.  Use the variable name instead.
72501         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
72502         Likewise.
72503
72504 2005-06-28  Simon Josefsson  <jas@extundo.com>
72505
72506         * modules/check-version (Files): Add check-version.m4.
72507
72508 2005-06-28  Simon Josefsson  <jas@extundo.com>
72509
72510         * m4/check-version.m4: New file, suggested by Jim Meyering
72511         <jim@meyering.net>.
72512
72513 2005-06-28  Simon Josefsson  <jas@extundo.com>
72514
72515         * lib/check-version.h, lib/check-version.c: New files.
72516
72517 2005-06-28  Simon Josefsson  <jas@extundo.com>
72518
72519         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
72520         collision with global variable.  Better indentation.  Don't
72521         increment buffer pointer beyond buffer end.  Based on comments
72522         from Paul Eggert <eggert@cs.ucla.edu>.
72523
72524         * lib/base64.h: Indent.
72525
72526 2005-06-28  Simon Josefsson  <jas@extundo.com>
72527
72528         * doc/gnulib.texi (Library version handling): New section.
72529
72530 2005-06-28  Jim Meyering  <jim@meyering.net>
72531
72532         * check-module (find_included_lib_files): Hard-code another
72533         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
72534         but modules/fts-lgpl (correctly) does not list those files.
72535
72536         * modules/canonicalize (Files): Add lib/pathmax.h.
72537
72538 2005-06-25  Simon Josefsson  <jas@extundo.com>
72539
72540         * modules/check-version: New file.
72541
72542 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
72543
72544         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
72545         initializer of struct addrinfo, as an indication that we don't
72546         care how many members the structure has.
72547
72548 2005-06-24  Derek Price  <derek@ximbiot.com>
72549         and Bruno Haible  <bruno@clisp.org>
72550
72551         Remove stat module & update lstat.
72552         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
72553         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
72554         * m4/stat.m4: Remove this file.
72555
72556 2005-06-24  Derek Price  <derek@ximbiot.com>
72557         and Bruno Haible  <bruno@clisp.org>
72558
72559         Remove stat module & update lstat.
72560         * lib/stat.c: Remove this file...
72561         (slash_aware_lstat): ...moving this content and its support...
72562         * lib/lstat.c (rpl_lstat): ...into here.
72563         * lib/lstat.h: New file.
72564
72565 2005-06-24  Derek Price  <derek@ximbiot.com>
72566         and Bruno Haible  <bruno@clisp.org>
72567
72568         Remove stat module & update lstat.
72569         * config/srclist.txt (libc sources): Remove stat.
72570
72571 2005-06-24  Derek Price  <derek@ximbiot.com>
72572         and Bruno Haible  <bruno@clisp.org>
72573
72574         Remove stat module & update lstat.
72575         * MODULES.html.sh (stat): Remove.
72576         * MODULES.html: Regenerated.
72577         * modules/lstat (Description): Correct function name.
72578         (Files): Add "lstat.h".
72579         (Depends-on): Remove stat, add xalloc, stat-macros.
72580         * modules/stat: Remove this file.
72581         (Include): Add "lstat.h", remove <sys/stat.h>.
72582
72583 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
72584
72585         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
72586         (ranged_convert): Don't save conversion in a temporary struct.
72587         This causes a warning with GCC 4.0.0, and anyway in the typical
72588         case it's not worth the extra 100 bytes or so of code.
72589         (ranged_convert, __mktime_internal): When calling a function via a
72590         pointer P, use P () rather than (*P) (), as we now assume C89 or
72591         better.
72592
72593 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
72594
72595         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
72596         "who -r" failed to give output.  Problem reported by Tim Waugh.
72597
72598         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
72599         (xcalloc): Use it to avoid needless tests.
72600         Problem reported by Jim Meyering.
72601
72602 2005-06-20  Derek Price  <derek@ximbiot.com>
72603
72604         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
72605         unnecessary for Autoconfs > 2.59c.
72606
72607 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
72608
72609         * lib/argp.h (__option_is_short): Check upper limit of
72610         __key. Isprint() requires its argument to have the value
72611         of an unsigned char or EOF.
72612
72613 2005-06-16  Jim Meyering  <jim@meyering.net>
72614
72615         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
72616         when either N or S is zero.
72617
72618 2005-06-16  Derek Price  <derek@ximbiot.com>
72619
72620         * m4/bison.m4: Declare YACC & YFLAGS precious.
72621
72622 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
72623
72624         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
72625         multibyte string or pattern, fall back on unibyte matching.
72626         Problem reported by James Youngman.
72627
72628 2005-06-08  Bruno Haible  <bruno@clisp.org>
72629
72630         * modules/csharpcomp: New file.
72631         * MODULES.html.sh (C#): Add csharpcomp.
72632
72633 2005-06-08  Bruno Haible  <bruno@clisp.org>
72634
72635         * m4/csharpcomp.m4: New file, from GNU gettext.
72636
72637 2005-06-08  Bruno Haible  <bruno@clisp.org>
72638
72639         * lib/csharpcomp.h: New file, from GNU gettext.
72640         * lib/csharpcomp.c: New file, from GNU gettext.
72641         * lib/csharpcomp.sh.in: New file, from GNU gettext.
72642
72643 2005-06-08  Bruno Haible  <bruno@clisp.org>
72644
72645         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
72646         warning on mingw.
72647
72648 2005-06-07  Derek Price  <derek@ximbiot.com>
72649
72650         Sync from CVS.
72651         * lib/glob_.h: Indent nested #ifdef.
72652
72653 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
72654
72655         Sync from coreutils.
72656         Use "file name" when talking about file names, instead of "filename"
72657         or "path", as per the GNU coding standards.
72658         * lib/mkdir-p.c: Renamed from makepath.c.
72659         (make_dir_parents): Renamed from make_path.  All callers changed.
72660         * lib/mkdir-p.h: Likewise.  All includers changed.
72661         * lib/filenamecat.c: Renamed from path-concat.c.
72662         (file_name_concat): Renamed from path_concat.  All callers changed.
72663         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
72664         * lib/filenamecat.h: Likewise.  All includers changed.
72665         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
72666         in comments or local variable names.
72667         * lib/basename.c: Likewise.
72668         * lib/canonicalize.c, canonicalize.h: Likewise.
72669         * lib/dirname.c, dirname.h: Likewise.
72670         * lib/euidaccess.c: Likewise.
72671         * lib/exclude.c: Likewise
72672         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
72673         * lib/fsusage.c, fsuage.h: Likewise.
72674         * lib/fts.c, fts_.h: Likewise.
72675         * lib/getcwd.c: Likewise.
72676         * lib/getloadavg.c: Likewise.
72677         * lib/mkstemp.c: Likewise.
72678         * lib/mountlist.c, mountlist.h: Likewise.
72679         * lib/openat.c, openat.h: Likewise.
72680         * lib/readlink-stub.c: Likewise.
72681         * lib/readutmp.c, readutmp.h: Likewise.
72682         * lib/rename.c: Likewise.
72683         * lib/rmdir.c: Likewise.
72684         * lib/same.c: Likewise.
72685         * lib/savedir.c: Likewise.
72686         * lib/stripslash.c: Likewise.
72687         * lib/tempname.c: Likewise.
72688         * lib/xreadlink.c: Likewise.
72689         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
72690         All uses changed.
72691         * lib/exclude.h: Likewise.
72692
72693         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
72694         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
72695         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
72696         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
72697         * lib/pathmax.h: Include <limits.h> unconditionally, since other
72698         files have been getting away with it for years (MORE/BSD 4.3
72699         is extinct now).
72700         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
72701         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
72702
72703         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
72704         Define to 256, not 255, as per modern POSIX.
72705
72706 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
72707
72708         Sync from coreutils.
72709         Use "file name" when talking about file names, instead of "filename"
72710         or "path", as per the GNU coding standards.
72711         * MODULES.html.sh: mkdir-p renamed from makepath.
72712         filenamecat renamed from path-concat.
72713         * modules/filenamecat: Renamed from modules/path-concat.
72714         (Files): filenamecat.h and filenamecat.c renamed from
72715         path-concat.h and path-concat.c.
72716         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
72717         (Include): filenamecat.h, not path-concat.h.
72718         * modules/mkdir-p: Renamed from modules/makepath.
72719         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
72720         makepath.c.
72721         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
72722         (Include): mkdir-p.h, not makepath.h.
72723
72724 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
72725
72726         Sync from coreutils.
72727         * m4/mkdir-p.m4: Renamed from makepath.m4.
72728         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
72729         Rename files from makepath.c to mkdir-p.c, and from
72730         makepath.h to mkdir-p.h.
72731         * m4/filenamecat.m4: Renamed from path-concat.m4.
72732         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
72733         Rename files from path-concat.c to filenamecat.c,
72734         and from path-concat.h to filenamecat.h.
72735         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
72736         "file name" in local variables or comments.
72737         * m4/rename.m4: Likewise.
72738
72739 2005-06-01  Bruno Haible  <bruno@clisp.org>
72740
72741         * modules/csharpexec: New file.
72742         * MODULES.html.sh (C#): New section.
72743
72744 2005-06-01  Bruno Haible  <bruno@clisp.org>
72745
72746         * m4/csharp.m4: New file, from GNU gettext.
72747         * m4/csharpexec.m4: New file, from GNU gettext.
72748
72749 2005-06-01  Bruno Haible  <bruno@clisp.org>
72750
72751         * lib/csharpexec.h: New file, from GNU gettext.
72752         * lib/csharpexec.c: New file, from GNU gettext.
72753         * lib/csharpexec.sh.in: New file, from GNU gettext.
72754
72755 2005-05-31  Derek Price  <derek@ximbiot.com>
72756             Paul Eggert  <eggert@cs.ucla.edu>
72757
72758         Sync from cvs.
72759         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
72760
72761 2005-05-31  Derek Price  <derek@ximbiot.com>
72762             Paul Eggert  <eggert@cs.ucla.edu>
72763
72764         Sync from cvs.
72765         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
72766
72767 2005-05-29  Derek Price  <derek@ximbiot.com>
72768
72769         * config/srclist.txt (glob_.h, glob.c): Add these files.
72770
72771 2005-05-29  Derek Price  <derek@ximbiot.com>
72772
72773         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
72774         * modules/glob: New file.
72775         * modules/getlogin_r: Add link to POSIX spec in description.
72776
72777 2005-05-29  Derek Price  <derek@ximbiot.com>
72778             Paul Eggert  <eggert@cs.ucla.edu>
72779
72780         * m4/glob.m4: New file.
72781
72782 2005-05-29  Derek Price  <derek@ximbiot.com>
72783             Paul Eggert  <eggert@cs.ucla.edu>
72784
72785         * lib/glob_.h, lib/glob.c: New files.
72786
72787 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
72788
72789         * modules/fts (Files): Remove m4/inttypes-pri.m4.
72790         * modules/fts-lgpl (Depends-on): Remove gettext.
72791
72792 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
72793
72794         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
72795         and don't require gt_INTTYPES_PRI.
72796
72797 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
72798
72799         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
72800
72801         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
72802         the configuration hassle isn't worth it.
72803         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
72804         (LONGEST_MODIFIER, PRIuMAX): Remove.
72805
72806 2005-05-27  Bruno Haible  <bruno@clisp.org>
72807
72808         * lib/getlogin_r.h: Remove second include of <stddef.h>.
72809
72810 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
72811
72812         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
72813         _POSIX_PTHREAD_SEMANTICS for Solaris.
72814
72815 2005-05-25  Derek Price  <derek@ximbiot.com>
72816
72817         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
72818
72819 2005-05-25  Derek Price  <derek@ximbiot.com>
72820             Paul Eggert  <eggert@cs.ucla.edu>
72821
72822         * modules/getlogin_r, m4/getlogin_r.m4: New files.
72823         * lib/getlogin_r.c, getlogin_r.h: New files.
72824
72825 2005-05-25  Bruno Haible  <bruno@clisp.org>
72826             Derek Price  <derek@ximbiot.com>
72827
72828         * lib/getlogin_r.h: Simplify API documentation.
72829
72830 2005-05-23  Derek Price  <derek@ximbiot.com>
72831
72832         * modules/minmax (Files): Add m4/minmax.m4.
72833         (configure.ac): Add gl_MINMAX.
72834
72835 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
72836
72837         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
72838         so that unistd-safer.h (GPL'ed code) need not be included.
72839
72840 2005-05-22  Bruno Haible  <bruno@clisp.org>
72841
72842         * m4/minmax.m4: New file.
72843         Based on a patch by Derek Price <derek@ximbiot.com>.
72844
72845 2005-05-22  Bruno Haible  <bruno@clisp.org>
72846
72847         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
72848         (INT64_MIN): Fix definition.
72849         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
72850
72851         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
72852         NEED_SIGNED_INT_TYPES.
72853
72854         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
72855         HAVE_SYSTEM_INTTYPES.
72856
72857 2005-05-22  Bruno Haible  <bruno@clisp.org>
72858
72859         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
72860         Also include <sys/param.h> if it defines MIN, MAX.
72861         Based on a patch by Derek Price <derek@ximbiot.com>.
72862
72863 2005-05-21  Jim Meyering  <jim@meyering.net>
72864
72865         * modules/fts (Files): Add m4/inttypes-pri.m4.
72866         (Depends-on): Add lstat and remove gettext.  Alphabetize.
72867
72868 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
72869
72870         New fts module.
72871         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
72872         (setup_dir, free_dir): New functions.
72873         (enter_dir, leave_dir): Define trivial
72874         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
72875         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
72876         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
72877         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
72878         Move to fts-cycle.c.
72879         (fts_open): Use setup_dir.
72880         (fts_close): Use free_dir.
72881         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
72882         This adds a label and some gotos, but the alternatives were messier.
72883         Check for memory allocation failure when entering a dir.
72884         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
72885         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
72886         (FTS): New member fts_cycle, that is a union that contains the
72887         old active_dir_ht and cycle_state.  All uses changed to mention
72888         fts_cycle.ht and fts_cycle.state.
72889         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
72890         fts.c, with the following changes:
72891         (setup_dir, free_dir): New functions.
72892         (enter_dir): Now returns bool.  Return true if successful, false
72893         if memory exhausted.  All callers changed.
72894         Do not bother partly cleaning up on
72895         memory allocation failure; that is free_dir's job.
72896         However, free ad if hash_insert fails, to avoid memory leak.
72897         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
72898         fts->fts_options to see which union member to use.
72899
72900 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
72901
72902         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
72903         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
72904
72905 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
72906
72907         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
72908
72909 2005-05-20  Jim Meyering  <jim@meyering.net>
72910
72911         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
72912         Now a macro, to pacify GCC.
72913
72914 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
72915
72916         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
72917         of -1.
72918
72919 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
72920
72921         * lib/chown.c (rpl_chown): Return -1 on failure.
72922
72923 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
72924
72925         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
72926         Don't check for stddef.h.
72927         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
72928         don't use its results.
72929         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
72930         since we include them unconditionally.  Don't require
72931         AM_STDBOOL_H, since stdbool is a prerequisite.
72932         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
72933         since we assume C89 or better.
72934         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
72935         as we don't use their results.
72936         Don't check for fchdir, memmove, memset, strrchr, as we use
72937         them unconditionally.
72938         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
72939         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
72940
72941 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
72942
72943         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
72944         Include <stddef.h> unconditionally, since we assume C89 now.
72945         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
72946         * lib/fts.c: Include fts_.h first, to check interface.
72947         Do not include intprops.h; no longer needed.
72948         Include cycle-check.h and hash.h, since fts_.h no longer does.
72949         Remove unnecessary casts of closedir to void.
72950         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
72951         decide whether to decrement nlinks.
72952         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
72953         (FTS): Use struct hash_table * instead of Hash_table, so that
72954         we no longer need to include hash.h here.
72955
72956 2005-05-18  Jim Meyering  <jim@meyering.net>
72957
72958         * modules/dirfd (License): Change to LGPL.  Most of the code
72959         is already in the public domain.
72960
72961 2005-05-18  Jim Meyering  <jim@meyering.net>
72962
72963         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
72964         Reported by Yoann Vandoorselaere.
72965
72966 2005-05-17  Jim Meyering  <jim@meyering.net>
72967
72968         * m4/fts.m4: New file, from coreutils.
72969
72970 2005-05-17  Jim Meyering  <jim@meyering.net>
72971
72972         * lib/fts.c, lib/fts_.h: New files, from coreutils.
72973
72974 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
72975
72976         Sync from coreutils.
72977         * m4/unlinkdir.m4: New file.
72978
72979 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
72980
72981         Sync from coreutils.
72982         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
72983         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
72984         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
72985         White space changes only.
72986         * lib/makepath.c (make_path): Port to hosts where leading "//" is
72987         special.
72988         * lib/yesno.c: Include getline.h, not ctype.h.
72989         (yesno): Don't remove leading white space; POSIX doesn't allow it.
72990         Use getline to remove arbitrary restriction on response length.
72991
72992 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
72993
72994         * config/srclist-update: Spell out "Street" in FSF postal
72995         mail address; this is the style the FSF seems to prefer.
72996
72997         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
72998         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
72999         this updates FSF postal mail address.
73000
73001         Sync from coreutils.
73002         * modules/unlinkdir: New file.
73003         * modules/yesno (Depends-on): Add getline.
73004         * MODULES.html.sh (File system functions): Add unlinkdir.
73005
73006 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
73007
73008         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
73009         lib/strsep.h:
73010         Change the initial comment to refer to GPL, not LGPL.
73011         gnulib-tool will change it to LGPL as needed.
73012
73013         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
73014         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
73015         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
73016         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
73017         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
73018         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
73019         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
73020         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
73021         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
73022         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
73023         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
73024         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
73025         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
73026         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
73027         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
73028         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
73029         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
73030         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
73031         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
73032         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
73033         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
73034         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
73035         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
73036         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
73037         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
73038         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
73039         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
73040         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
73041         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
73042         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
73043         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
73044         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
73045         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
73046         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
73047         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
73048         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
73049         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
73050         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
73051         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
73052         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
73053         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
73054         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
73055         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
73056         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
73057         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
73058         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
73059         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
73060         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
73061         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
73062         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
73063         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
73064         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
73065         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
73066         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
73067         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
73068         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
73069         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
73070         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
73071         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
73072         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
73073         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
73074         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
73075         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
73076         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
73077         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
73078         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
73079         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
73080         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
73081         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
73082         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
73083         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
73084         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
73085         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
73086         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
73087         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
73088         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
73089         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
73090         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
73091         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
73092         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
73093         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
73094         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
73095         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
73096         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
73097         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
73098         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
73099         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
73100         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
73101         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
73102         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
73103         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
73104         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
73105         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
73106         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
73107         lib/yesno.c, lib/yesno.h:
73108         Update FSF postal mail address.
73109
73110 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
73111
73112         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
73113         tests/test-memmem.c, tests/test-stpncpy.c:
73114         Update FSF postal mail address.
73115
73116 2005-05-13  Bruno Haible  <bruno@clisp.org>
73117
73118         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
73119         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
73120         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
73121         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
73122         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
73123         Add support for 64-bit integers in the MSVC compiler.
73124
73125 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
73126
73127         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
73128
73129 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
73130
73131         * gnulib-tool (func_import): Sort and uniquify recommended includes.
73132
73133 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
73134
73135         * doc/getdate.texi (General date syntax): Don't say that date
73136         date --iso-8601=ns generates acceptable dates; it doesn't yet.
73137         Problem reported by Nic Ferrier.
73138
73139 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73140
73141         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
73142         specified in ai_socktype. Fix invalid ai_protocol
73143         check. ai_protocol is usually set to 0 or depending on
73144         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
73145         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
73146         ai_socktype / ai_protocol in the returned addrinfo structure.
73147
73148 2005-05-10  Simon Josefsson  <jas@extundo.com>
73149
73150         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
73151         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
73152
73153 2005-05-10  Karl Berry  <karl@gnu.org>
73154
73155         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
73156         (from http://www.gnu.org/licenses).
73157         * doc/COPYING.LIB: also rename to COPYING.LESSER.
73158         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
73159         fdl.texi suffices.
73160
73161 2005-05-10  Karl Berry  <karl@gnu.org>
73162
73163         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
73164         (COPYING.DOC): remove.
73165
73166         * config/srclist-update: new FSF address.
73167
73168 2005-05-10  Derek Price  <derek@ximbiot.com>
73169
73170         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
73171         possible.
73172
73173 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73174             Bruno Haible  <bruno@clisp.org>
73175
73176         * modules/inet_ntop: New file.
73177         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
73178         inet_ntop.
73179
73180 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73181             Bruno Haible  <bruno@clisp.org>
73182
73183         * m4/inet_ntop.m4: New file.
73184
73185 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73186             Bruno Haible  <bruno@clisp.org>
73187
73188         * lib/inet_ntop.h: New file.
73189         * lib/inet_ntop.c: New file, from glibc with modifications.
73190
73191 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
73192
73193         * modules/time_r (License): Change to LGPL.
73194         * modules/extensions (License): Change to LGPL.  Actually,
73195         the license is more permissive than that, but currently gnulib-tool
73196         doesn't know how to handle more-permissive licenses.
73197
73198         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
73199         Problem reported by Dave Love.
73200
73201 2005-05-08  Jim Meyering  <jim@meyering.net>
73202
73203         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
73204         blank.
73205
73206 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
73207
73208         * modules/argmatch (Depends-on): Add stdbool.
73209         * modules/backupfile (Depends-on): Likewise.
73210         * modules/chdir-long (Depends-on): Likewise.
73211         * modules/closeout (Depends-on): Likewise.
73212         * modules/cycle-check (Depends-on): Likewise.
73213         * modules/dirname (Depends-on): Likewise.
73214         * modules/fnmatch (Depends-on): Likewise.
73215         * modules/fsusage (Depends-on): Likewise.
73216         * modules/fwriteerror (Depends-on): Likewise.
73217         * modules/getcwd (Depends-on): Likewise.
73218         * modules/getloadavg (Depends-on): Likewise.
73219         * modules/hard-locale (Depends-on): Likewise.
73220         * modules/makepath (Depends-on): Likewise.
73221         * modules/mountlist (Depends-on): Likewise.
73222         * modules/nanosleep (Depends-on): Likewise.
73223         * modules/posixtm (Depends-on): Likewise.
73224         * modules/quotearg (Depends-on): Likewise.
73225         * modules/readtokens (Depends-on): Likewise.
73226         * modules/readtokens0 (Depends-on): Likewise.
73227         * modules/readutmp (Depends-on): Likewise.
73228         * modules/save-cwd (Depends-on): Likewise.
73229         * modules/strftime (Depends-on): Likewise.
73230         * modules/userspec (Depends-on): Likewise.
73231         * modules/utimecmp (Depends-on): Likewise.
73232         * modules/xgetcwd (Depends-on): Likewise.
73233         * modules/xnanosleep (Depends-on): Likewise.
73234         * modules/xstrtod (Depends-on): Likewise.
73235         * modules/yesno (Depends-on): Likewise.
73236
73237 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
73238
73239         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
73240         needless checks.
73241
73242 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
73243
73244         Merge from coreutils.  Among other things,
73245         add bulletproofing for cases where stdin, stdout, or stderr are closed.
73246         * lib/fd-safer.c: New file.
73247         * lib/fcntl-safer.h, open-safer.c: Remove.
73248         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
73249         * lib/dup-safer.c: Include unistd-safer.h first.
73250         Don't include errno.h.
73251         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
73252         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
73253         * lib/file-type.c: Rely on file-type.h change.
73254         * lib/getloadavg.c: Include unistd-safer.h.
73255         (getloadavg): Use safer open.
73256         * lib/getusershell.c: Include "stdio-safer.h".
73257         (getusershell): Use safer fopen.
73258         * lib/long-options.c (long_options): Use NULL rather than 0.
73259         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
73260         'free'.
73261         * lib/modechange.c: Likewise.
73262         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
73263         (MODE_DONE): New constant.
73264         (struct mode_change): Remove 'next' member.
73265         (make_node_op_equals): New function; like the old one of the
73266         same name, except it allocates an array.
73267         (mode_compile, mode_create_from_ref): Use it.
73268         (mode_compile): Allocate result as an array, not a linked list.
73269         Parse octal string ourself, so that we catch mistakes like "+0".
73270         (mode_adjust): Arg is an array, not a linked list.
73271         * lib/modechange.c: Include stat-macros.h, xalloc.h.
73272         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
73273         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
73274         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
73275         Remove.  This is now stat-macros.h's job.
73276         (talloc): Remove.  All callers replaced by xalloc, so that
73277         our invokers don't have to worry about reporting memory failures.
73278         (make_node_op_equals): Remove.
73279         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
73280         New constants.
73281         (struct mode_change): Moved here from modechange.h.
73282         (mode_append_entry): Remove.
73283         (mode_compile): Remove MASKED_OPS arg, since it encouraged
73284         apps to have incorrect behavior.  Use simpler algorithm for head
73285         and tail.  Don't futz with umask; that's now the job of mode_adjust.
73286         Detect more invalid usages rather than having somewhat-random behavior.
73287         Don't insert an "a=" action, as that leads to incorrect behavior.
73288         (mode_compile, mode_create_from_ref): Return NULL on error instead
73289         of an enum, since now there's only one way to have an error.  All
73290         callers changed.
73291         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
73292         at the correct time.  Simplify calculation of "+u" and its ilk.
73293         Don't mishandle "+X".
73294         (mode_free): Remove "register" and localize decls.
73295         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
73296         (struct mode_change): Move to modechange.c; callers don't
73297         need to see this stuff.
73298         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
73299         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
73300         (mode_change, mode_adjust): Reflect the new signatures noted above.
73301         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
73302         that might redefine system include files.
73303         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
73304         (my_usleep): Use NULL rather than (void *) 0.
73305         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
73306         Use siginterrupt to specify that system calls should be interrupted.
73307         (rpl_nanosleep): Move initialization of suspended closer to call of
73308         my_usleep.
73309         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
73310         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
73311         (desirable_utmp_entry): New function.
73312         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
73313         using x2nrealloc, to simplify logic.
73314         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
73315         size calculation.  Do not assume utmp file is a regular file.
73316         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
73317         (READ_UTMP_CHECK_PIDS): New constant.
73318         * lib/save-cwd.c: Include unistd-safer.h.
73319         (save_cwd): Use fd_safer.
73320         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
73321         [!_LIBC] Include "stat-macros.h" instead.
73322         * lib/unistd-safer.h (fd_safer): New decl.
73323
73324 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
73325
73326         * modules/getloadavg (Depends-on): Add unistd-safer.
73327         * modules/getusershell (Depends-on): Add stdio-safer.
73328         * modules/lstat (Depends-on): Remove xalloc.
73329         * modules/mkstemp (Depends-on): Add stat-macros.
73330         * modules/modechange (Depends-on): Remove xstrtol.
73331         Add stat-macros, xalloc.
73332         * modules/save-cwd (Depends-on): Add unistd-safer.
73333         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
73334         * modules/unistd-safer (Files): Add lib/fd-safer.c
73335         (Makefile.am): Remove lib_SOURCES.
73336
73337         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
73338         Remove fcntl-safer; unistd-safer supersedes it.
73339
73340 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
73341
73342         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
73343         AC_HEADER_STAT.
73344         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
73345         (gl_PREREQ_CHOWN): Remove.
73346         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
73347         it.  Don't require AC_HEADER_STAT.
73348         (gl_PREREQ_LSTAT): Remove.
73349         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
73350         Don't require AC_HEADER_STAT.
73351         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
73352         (gl_PREREQ_RMDIR): Remove.
73353         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
73354         mention stat-macros.h or AC_HEADER_STAT, since we'll make
73355         the stat-macros module a prerequisite.
73356         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
73357         * m4/filemode.m4 (gl_FILEMODE): Likewise.
73358         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
73359         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
73360         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
73361         variable names.
73362         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
73363         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
73364         variable prefixes.
73365         * m4/fcntl-safer.m4: Remove.
73366         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
73367         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
73368         Invoke gl_PREREQ_FD_SAFER.
73369         (gl_PREREQ_FD_SAFER): New macro.
73370         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
73371         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
73372         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
73373         Remove duplicate call to AC_LIBOBJ(readutmp).
73374         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
73375
73376         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
73377         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
73378
73379 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
73380
73381         * MODULES.html.sh (Misc): Add byteswap.
73382
73383 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
73384
73385         * modules/getcwd (Depends-on): Add extensions.
73386         * modules/openat (Depends-on): Likewise.
73387
73388 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
73389
73390         * modules/byteswap: New file.
73391
73392 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
73393
73394         * m4/byteswap.m4: New file.
73395
73396 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
73397
73398         * lib/byteswap_.h: New file.
73399
73400 2005-04-25  Karl Berry  <karl@gnu.org>
73401
73402         * m4/gettext.m4: Update from GNU gettext 0.14.4.
73403
73404 2005-04-25  Albert Chin  <china@thewrittenword.com>
73405
73406         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
73407         Toolkit C bug.
73408
73409 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
73410
73411         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
73412         (func_ln_if_changed): Remove forcibly for no error message
73413         in case file does not exist.
73414
73415 2005-04-19  Simon Josefsson  <jas@extundo.com>
73416
73417         * gnulib-tool (Options): Make --symlink mean --symbolic.
73418
73419 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
73420
73421         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
73422
73423 2005-04-16  Simon Josefsson  <jas@extundo.com>
73424
73425         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
73426
73427 2005-04-15  Simon Josefsson  <jas@extundo.com>
73428
73429         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
73430
73431 2005-04-15  Simon Josefsson  <jas@extundo.com>
73432
73433         * gnulib-tool: Rename --symlink to --symbolic.
73434
73435 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
73436
73437         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
73438         symbolic links to files instead of copying/moving.  Add --aux-dir,
73439         specifying directory relative --dir where auxiliary build tools
73440         are placed.
73441
73442 2005-04-14  Bruno Haible  <bruno@clisp.org>
73443
73444         * modules/allocsa (License): Change to LGPL.
73445         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
73446
73447 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
73448
73449         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
73450         that "UTC +1 second" continues to work.  Problem reported
73451         by Dmitry V. Levin.
73452         (relunit_snumber): New rule.
73453         (relunit): Use it.
73454
73455 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
73456
73457         * lib/getdate.y (universal_time_zone_table): New constant.
73458         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
73459         universal_time_zone_table.
73460         (lookup_zone): Prefer universal_time_zone_table to
73461         local_time_zone_table, so that "GMT" time stamps are allowed in
73462         London during the summer.  Problem reported by Ian Abbott.
73463
73464 2005-04-12  Jim Meyering  <jim@meyering.net>
73465
73466         * lib/human.c (humblock): Set *options even when returning due to
73467         xstrtoumax conversion failure.  Thanks to a used-uninitialized
73468         warning from gcc-4.
73469
73470 2005-04-09  Jim Meyering  <jim@meyering.net>
73471
73472         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
73473         -Wuninitialized: initialize tm0.tm_year.
73474
73475 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
73476
73477         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
73478         count, since there's no maximum.  All uses changed.
73479         Add member dsts_seen.
73480         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
73481         not being INT_MAX.
73482         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
73483         Use pc_rels_seen to decide whther a date is absolute.
73484
73485         * lib/getdate.y (number): Don't overwrite year.
73486         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
73487         check.
73488
73489 2005-04-02  Simon Josefsson  <jas@extundo.com>
73490
73491         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
73492         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
73493
73494 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
73495
73496         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
73497         where no absolute path name can be longer than PATH_MAX.
73498
73499 2005-03-27  Jim Meyering  <jim@meyering.net>
73500
73501         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
73502
73503 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
73504
73505         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
73506         "one's complement" -> "ones' complement" in comment, as per Knuth.
73507         "value of type" -> "type or expression" in comment.
73508         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
73509
73510 2005-03-26  Jim Meyering  <jim@meyering.net>
73511
73512         Comment nits.
73513         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
73514         Correct typos: s/or/of/.
73515
73516 2005-03-26  Jim Meyering  <jim@meyering.net>
73517
73518         * modules/check-include-files: Move to ../ and rename to...
73519         * check-module: ...this.
73520
73521 2005-03-25  Jim Meyering  <jim@meyering.net>
73522
73523         * modules/xvasprintf (Files): Add xalloc.h.
73524
73525 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
73526
73527         * modules/gettext (Files): config/config.rpath ->
73528         build-aux/config.rpath
73529         * modules/iconv (Files): Likewise.
73530         Problem reported by Oskar Liljeblad.
73531
73532 2005-03-23  Jim Meyering  <jim@meyering.net>
73533
73534         * modules/check-include-files: New script to check for
73535         missing dependencies, multiple includes, etc.
73536
73537         * modules/c-strtold (Depends-on): Add xalloc.
73538         * modules/c-strtod (Depends-on): Add xalloc.
73539         * modules/hash (Depends-on): Add xalloc.
73540         (Files): Remove lib/xalloc.h.
73541
73542         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
73543         * modules/userspec (Files): Add lib/inttostr.h.
73544
73545 2005-03-23  Jim Meyering  <jim@meyering.net>
73546
73547         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
73548
73549 2005-03-22  Jim Meyering  <jim@meyering.net>
73550
73551         * modules/stat-macros: New module.
73552         * modules/canonicalize, modules/euidaccess, modules/file-type,
73553         * modules/filemode, modules/lchown, modules/makepath,
73554         * modules/rmdir, modules/stat: Depend on new stat-macros module
73555         rather than listing lib/stat-macros.h manually.
73556         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
73557
73558 2005-03-22  Jim Meyering  <jim@meyering.net>
73559
73560         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
73561
73562 2005-03-22  Bruno Haible  <bruno@clisp.org>
73563
73564         * config/srclist.txt: Replace target directory 'config' with
73565         'build-aux'.
73566         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
73567         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
73568         ../build-aux/.
73569
73570 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
73571
73572         * modules/chdir-long (Depends-on): Add mempcpy.
73573
73574         * modules/acl, modules/backupfile, modules/c-strtod,
73575         modules/c-strtold, modules/canon-host, modules/canonicalize,
73576         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
73577         modules/exclude, modules/exitfail, modules/file-type,
73578         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
73579         modules/getdate, modules/getline, modules/getpagesize,
73580         modules/getpass, modules/getugroups, modules/group-member,
73581         modules/hard-locale, modules/hash, modules/human, modules/idcache,
73582         modules/inttostr, modules/long-options, modules/makepath,
73583         modules/md5, modules/memcasecmp, modules/memcoll,
73584         modules/modechange, modules/mountlist, modules/path-concat,
73585         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
73586         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
73587         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
73588         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
73589         modules/strftime, modules/strndup, modules/strverscmp,
73590         modules/timespec, modules/unlocked-io, modules/userspec,
73591         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
73592         modules/yesno:
73593         Remove lib_SOURCES line from Makefile.am section, as this is now
73594         done automatically by the corresponding Autoconf macro.
73595
73596 2005-03-21  Jim Meyering  <jim@meyering.net>
73597
73598         Changes imported from coreutils.
73599
73600         * lib/cycle-check.c: Don't include xalloc.h.
73601
73602         * lib/path-concat.c: Don't include assert.h.
73603         (path_concat): Remove assertion that would have triggered
73604         for ABASE starting with more than one slash.
73605         Reported by Andreas Schwab.
73606
73607         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
73608         properly when ABASE is an absolute file name.
73609         Correct the description of this function.
73610         Include <assert.h>.
73611         Add an assertion and a test driver.
73612         This fixes a bug introduced on 2004-07-02.
73613         Andreas Schwab reported the resulting failure of cp --parents:
73614         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
73615
73616 2005-03-21  Jim Meyering  <jim@meyering.net>
73617
73618         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
73619         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
73620
73621 2005-03-21  Jim Meyering  <jim@meyering.net>
73622         and  Paul Eggert  <eggert@cs.ucla.edu>
73623
73624         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
73625         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
73626         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
73627         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
73628         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
73629         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
73630         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
73631         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
73632         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
73633         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
73634         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
73635         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
73636         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
73637         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
73638         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
73639         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
73640         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
73641         for these modules.
73642
73643 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
73644
73645         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
73646         (which shouldn't happen), generate nothing instead of returning 0
73647         immediately, so that nstrftime (NULL, ...) doesn't return 0.
73648
73649 2005-03-16  Bruno Haible  <bruno@clisp.org>
73650
73651         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
73652         HAVE_LONGLONG_64BIT.
73653
73654 2005-03-16  Bruno Haible  <bruno@clisp.org>
73655
73656         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
73657         HAVE_LONGLONG_64BIT.
73658
73659 2005-03-16  Bruno Haible  <bruno@clisp.org>
73660
73661         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
73662         HAVE_LONGLONG_64BIT.
73663
73664 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
73665
73666         * lib/strftime.c (my_strftime): Prepend space to format so that we can
73667         reliably distinguish strftime failure from empty output on POSIX
73668         hosts.
73669
73670 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
73671
73672         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
73673         (iconv_string): Don't guess a size-zero buffer, as that might cause
73674         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
73675         result would be 'too large', where 'too large' is (heuristically)
73676         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
73677         overflow concerns.  This will prevent some unwanted malloc failures
73678         when the inputs are very large.
73679
73680 2005-03-15  Karl Berry  <karl@gnu.org>
73681
73682         * config/srclist.txt (config.rpath): from gettext.
73683         * config/config.rpath: update.
73684
73685 2005-03-15  Bruno Haible  <bruno@clisp.org>
73686
73687         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
73688         to 'negate'.
73689
73690         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
73691         variable.
73692
73693         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
73694         results.
73695
73696 2005-03-14  Simon Josefsson  <jas@extundo.com>
73697
73698         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
73699         <fx@gnu.org>.
73700
73701 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
73702
73703         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
73704         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
73705         intprops.h.
73706         * lib/strtol.c: Likewise.
73707
73708 2005-03-14  Jim Meyering  <jim@meyering.net>
73709
73710         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
73711         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
73712         to be nonzero so that we (and caller) can detect the difference
73713         between a valid zero-length expansion and an error return, even
73714         when the underlying strftime fails before writing anything into
73715         that location.
73716
73717 2005-03-14  Bruno Haible  <bruno@clisp.org>
73718
73719         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
73720         Update from GNU gettext 0.14.3.
73721
73722 2005-03-10  Jim Meyering  <jim@meyering.net>
73723
73724         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
73725
73726 2005-03-10  Jim Meyering  <jim@meyering.net>
73727
73728         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
73729         so that this module works on systems without fchdir.
73730
73731 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
73732
73733         Factor int-properties macros into a single file, except for
73734         glibc-related files.
73735         * lib/intprops.h: New file.
73736         * lib/getloadavg.c: Include it instead of limits.h.
73737         (INT_STRLEN_BOUND): Remove.
73738         * lib/human.c: Include intprops.h.
73739         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
73740         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
73741         302/1000.
73742         * lib/inttostr.h: Include intprops.h instead of limits.h.
73743         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
73744         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
73745         for consistency with intprops.h.
73746         (time_t_is_integer, twos_complement_arithmetic): Use them.
73747         * lib/sig2str.h: Include <signal.h>, intprops.h.
73748         (INT_STRLEN_BOUND): Remove.
73749         * lib/strftime.c (TYPE_SIGNED): Remove.
73750         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
73751         * lib/strtol.c: Adjust comments to match intprops.h.
73752         * lib/userspec.c: Include intprops.h.
73753         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
73754         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
73755         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
73756         instead of rolling our own expressions.
73757         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
73758
73759         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
73760         instead of int.
73761         (my_strftime): Do not mishandle years close to INT_MAX, by doing
73762         the right thing even if adding 1900 would overflow.  Similarly
73763         for tm_mon + 1 and tm_yday + 1.
73764         Make %Y always equivalent to %C%y, and similarly for %G and %g.
73765         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
73766         (DO_SIGNED_NUMBER): New macro.
73767         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
73768
73769 2005-03-07  Bruno Haible  <bruno@clisp.org>
73770
73771         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
73772
73773 2005-03-07  Bruno Haible  <bruno@clisp.org>
73774
73775         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
73776
73777 2005-03-04  Derek R. Price  <derek@ximbiot.com>
73778
73779         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
73780         (func_import): Only replace files via --import when they have actually
73781         changed.
73782
73783 2005-03-03  Derek R. Price  <derek@ximbiot.com>
73784
73785         * m4/mmap-anon.m4: New file.
73786         * m4/pagealign_alloc.m4: New file.
73787
73788 2005-03-03  Derek R. Price  <derek@ximbiot.com>
73789             Bruno Haible  <bruno@clisp.org>
73790
73791         * modules/pagealign_alloc: New file.
73792         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
73793
73794 2005-03-03  Derek R. Price  <derek@ximbiot.com>
73795             Bruno Haible  <bruno@clisp.org>
73796
73797         * lib/pagealign_alloc.h: New file.
73798         * lib/pagealign_alloc.c: New file.
73799
73800 2005-03-03  Bruno Haible  <bruno@clisp.org>
73801
73802         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
73803         Use an all-permissive copyright notice, recommended by RMS.
73804
73805 2005-03-02  Bruno Haible  <bruno@clisp.org>
73806
73807         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
73808         of AIX, the replacement has to be done only after <string.h> is
73809         included, therefore not in config.h. stpncpy.h does the replacement,
73810         and stpncpy.c uses it.
73811
73812 2005-03-02  Bruno Haible  <bruno@clisp.org>
73813
73814         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
73815         stpncpy.c uses it.
73816
73817 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
73818
73819         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
73820         The workaround isn't strictly needed for POSIX conformance, and
73821         it's too much of a pain to configure and maintain.  We'll ask
73822         people to fix their kernels instead.
73823         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
73824         (NANOSLEEP_BUG_WORKAROUND): Remove.
73825         (xnanosleep): Remove the workaround.
73826
73827 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
73828
73829         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
73830         Reported by Derek Price.
73831         (Include): Add "timespec.h".
73832
73833         * modules/xnanosleep (Depends-on): Remove gethrxtime.
73834
73835 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
73836
73837         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
73838         to detect nanosleep bug.
73839
73840 2005-03-01  Bruno Haible  <bruno@clisp.org>
73841
73842         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
73843
73844 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
73845
73846         * modules/gethrxtime: New file.
73847         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
73848         (Depends-on): Add gethrxtime.
73849         (configure.ac): Add gl_XNANOSLEEP.
73850         (Makefile.am): Remove lib_SOURCES line.
73851
73852 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
73853
73854         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
73855         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
73856
73857 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
73858
73859         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
73860         * lib/timespec.h (gettime): Return void, since it always
73861         succeeds now.  All uses changed.
73862         * lib/gettime.c (gettime): Likewise.
73863         [HAVE_NANOTIME]: Prefer nanotime.
73864         Assume gettimeofday succeeds, as POSIX requires.
73865         Assime time () succeeds, since other code already does.
73866         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
73867         (timespec_subtract): Remove.
73868         (NANOSLEEP_BUG_WORKAROUND): New constant.
73869         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
73870         things considerably.  Use it only on GNU/Linux hosts, since the
73871         workaround shouldn't be needed elsewhere.
73872
73873 2005-02-24  Bruno Haible  <bruno@clisp.org>
73874
73875         * modules/gettext (Files): Add m4/glibc2.m4.
73876
73877 2005-02-24  Bruno Haible  <bruno@clisp.org>
73878
73879         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
73880         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
73881         * m4/progtest.m4:
73882         Update from GNU gettext 0.14.2.
73883         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
73884
73885 2005-02-24  Bruno Haible  <bruno@clisp.org>
73886
73887         * lib/localcharset.c: Update from GNU gettext 0.14.2.
73888         * lib/config.charset: Update from GNU gettext 0.14.2.
73889
73890 2005-02-24  Bruno Haible  <bruno@clisp.org>
73891
73892         * lib/gettext.h: Update from GNU gettext 0.14.2.
73893
73894 2005-02-23  Simon Josefsson  <jas@extundo.com>
73895
73896         * m4/iconvme.m4: New file.
73897
73898 2005-02-23  Jim Meyering  <jim@meyering.net>
73899
73900         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
73901         change.
73902         Thanks to Bruno Haible for catching it.
73903
73904 2005-02-22  Simon Josefsson  <jas@extundo.com>
73905
73906         * modules/iconvme: New file.
73907
73908         * MODULES.html.sh: Add iconvme.
73909
73910 2005-02-22  Simon Josefsson  <jas@extundo.com>
73911
73912         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
73913
73914 2005-02-22  Simon Josefsson  <jas@extundo.com>
73915
73916         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
73917
73918 2005-02-22  Jim Meyering  <jim@meyering.net>
73919
73920         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
73921         s/ifndef/ifdef/.
73922
73923 2005-02-20  Neil Conway  <neilc@samurai.com>
73924
73925         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
73926         returned by OSX/Darwin if the specified buffer is not large
73927         enough for the hostname.
73928
73929 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
73930
73931         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
73932         pass it to _help, otherwise the latter coredumps trying to
73933         dereference state.root_argp.
73934
73935 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
73936
73937         * modules/chdir-long (Depends-on): Add memrchr.
73938         * modules/memrchr (Files): Add lib/memrchr.h.
73939         (Include): "memrchr.h".
73940
73941 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
73942
73943         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
73944
73945 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
73946
73947         * lib/memrchr.h: New file.
73948         * lib/chdir-long.c: Include it.
73949         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
73950         Don't bother including stddef.h.
73951
73952 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
73953
73954         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
73955         inclusion.
73956         Include <sys/types.h>, for dev_t.
73957         (ME_DUMMY, ME_REMOTE): Move from here....
73958         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
73959         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
73960         Dmitry V. Levin.
73961         Include mountlist.h first, to test the interface.
73962
73963 2005-01-29  Bruno Haible  <bruno@clisp.org>
73964
73965         * lib/progname.c (program_name): Initialize.
73966         Needed when linking statically on MacOS X.
73967
73968 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
73969
73970         Sync from coreutils.
73971         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
73972         (Depends-on): Add c-strtod.
73973         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
73974
73975 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
73976
73977         Sync from coreutils.
73978         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
73979
73980         Remove files that are specific to coreutils.
73981         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
73982
73983 2005-01-28  Bruno Haible  <bruno@clisp.org>
73984
73985         * modules/javacomp: New file.
73986         * MODULES.html.sh (Java): Add javacomp.
73987
73988 2005-01-28  Bruno Haible  <bruno@clisp.org>
73989
73990         * m4/javacomp.m4: New file, from GNU gettext.
73991
73992 2005-01-28  Bruno Haible  <bruno@clisp.org>
73993
73994         * lib/javacomp.sh.in: New file, from GNU gettext.
73995         * lib/javacomp.h: New file, from GNU gettext.
73996         * lib/javacomp.c: New file, from GNU gettext.
73997
73998 2005-01-26  Simon Josefsson  <jas@extundo.com>
73999
74000         * lib/gai_strerror.c: Use GPL in header.
74001
74002 2005-01-26  Bruno Haible  <bruno@clisp.org>
74003
74004         * modules/javaexec: New file.
74005         * MODULES.html.sh (Java): Add javaexec.
74006
74007 2005-01-26  Bruno Haible  <bruno@clisp.org>
74008
74009         * m4/javaexec.m4: New file, from GNU gettext.
74010
74011 2005-01-26  Bruno Haible  <bruno@clisp.org>
74012
74013         * lib/javaexec.sh.in: New file, from GNU gettext.
74014         * lib/javaexec.h: New file, from GNU gettext.
74015         * lib/javaexec.c: New file, from GNU gettext.
74016
74017 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74018
74019         * modules/lchown (Depends-on): Remove lchown.h
74020
74021 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74022
74023         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
74024         must be defined if the header file was not found, in order
74025         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
74026
74027 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74028
74029         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
74030         initializers for struct pentry_state.
74031         (__argp_error): Check return value of __asprintf
74032         (__argp_failure): Translate error message
74033
74034         * lib/argp-parse.c: Removed braces around the expansion of N_()
74035
74036 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
74037
74038         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
74039         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
74040         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
74041         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
74042         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
74043         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
74044         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
74045         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
74046         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
74047         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
74048         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
74049         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
74050         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
74051         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
74052         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
74053         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
74054         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
74055         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
74056         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
74057         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
74058         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
74059         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
74060         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
74061         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
74062         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
74063         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
74064         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
74065         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
74066         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
74067         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
74068         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
74069         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
74070         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
74071         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
74072         xstrtol.m4, xstrtoumax.m4, yesno.m4:
74073         Use an all-permissive copyright notice, recommended by RMS.
74074
74075 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
74076
74077         * modules/chdir-long (Depends-on): Remove mempcpy.
74078
74079 2005-01-21  Jim Meyering  <jim@meyering.net>
74080
74081         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
74082         same value as for Solaris 9.
74083
74084         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
74085         component length.  This included changing the parameter to be
74086         of type `char *' rather than `char const *'.
74087         * lib/chdir-long.h (chdir_long): Update prototype.
74088
74089         * lib/openat.c (fdopendir, fstatat): New functions.
74090         * lib/openat.h: Include headers required for use of DIR and struct
74091         stat.
74092         [AT_SYMLINK_NOFOLLOW]: Define.
74093         (fdopendir, fstatat): Add prototypes.
74094
74095 2005-01-21  Bruno Haible  <bruno@clisp.org>
74096
74097         * modules/classpath: New file.
74098         * MODULES.html.sh (Java): Add classpath.
74099
74100 2005-01-21  Bruno Haible  <bruno@clisp.org>
74101
74102         * lib/classpath.h: New file, from GNU gettext.
74103         * lib/classpath.c: New file, from GNU gettext.
74104
74105 2005-01-20  Simon Josefsson  <jas@extundo.com>
74106
74107         * modules/version-etc-fsf: New file.
74108
74109 2005-01-20  Simon Josefsson  <jas@extundo.com>
74110
74111         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
74112         * lib/version-etc.c: Remove version_etc_copyright.
74113         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
74114         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
74115
74116 2005-01-20  Simon Josefsson  <jas@extundo.com>
74117
74118         * lib/base64.h (isbase64): Add.
74119
74120         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
74121         using a unsigned prototype, don't inline.
74122         (base64_decode): Use it.
74123
74124 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
74125
74126         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
74127         it.
74128
74129 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
74130
74131         * lib/save-cwd.c (save_cwd): Remove code to support the case
74132         where fchdir is missing or flaky.
74133
74134 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
74135
74136         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
74137
74138 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
74139
74140         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
74141         AC_LIBSOURCES now does this.
74142         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
74143         with new ullong_max module.
74144
74145 2005-01-19  Bruno Haible  <bruno@clisp.org>
74146
74147         * modules/sh-quote: New file.
74148         * MODULES.html.sh (Executing programs): Add sh-quote.
74149
74150 2005-01-19  Bruno Haible  <bruno@clisp.org>
74151
74152         * lib/sh-quote.h: New file, from GNU gettext.
74153         * lib/sh-quote.c: New file, from GNU gettext.
74154
74155 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
74156
74157         Merge from coreutils.
74158         * m4/ullong_max.m4: New file.
74159         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
74160         (gl_MACROS): Assume localeconv exists.
74161
74162 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
74163
74164         Merge changes from coreutils, as described below in several
74165         changelogs dated today.
74166
74167         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
74168         (O_DIRECTORY): Remove; not needed here, since "." must be
74169         a directory.  All uses removed.
74170         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
74171         universal on Suns, and we also need to test for IRIX.
74172         Revamp code to use 'if' rather than '#if'.
74173         Avoid unnecessary comparison of cwd->desc to 0.
74174
74175         * lib/utimens.c (futimens): Robustify the previous patch, by checking
74176         for known valid error numbers rather than observed invalid ones.
74177
74178 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
74179
74180         * modules/ullong_max: New file.
74181
74182         * modules/chdir-long, modules/openat: New files.
74183         * modules/save-cwd (Depends-on): Depend on chdir-long.
74184         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
74185
74186 2005-01-18  Jim Meyering  <jim@meyering.net>
74187
74188         Merge from coreutils.
74189         * m4/chdir-long.m4, m4/openat.m4: New files.
74190         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
74191         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
74192         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
74193         is sane and DOES follow symlinks.  Besides, testing 20 different
74194         systems found no broken chown implementations.
74195         Prompted by a change in rsync's copy of this macro.
74196         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
74197
74198         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
74199
74200         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
74201         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
74202         NULL-means-set-to-current-time semantics.
74203         Remove temporary file immediately, rather than waiting
74204         for configure's at-exit trap code to do it.
74205
74206 2005-01-18  Jim Meyering  <jim@meyering.net>
74207
74208         * lib/version-etc.c (version_etc_copyright): Update copyright date.
74209
74210         * lib/utimens.c (futimens): Account for the fact that futimes
74211         can also fail with errno == ENOSYS or errno == ENOENT.
74212         Patch from Dmitry V. Levin.
74213
74214         Change the name of the robust chdir function from chdir to chdir_long.
74215         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
74216         (restore_cwd): Use chdir_long, not chdir.
74217         * lib/chdir-long.c: Renamed from chdir.c.
74218         * lib/chdir-long.h: Renamed from chdir.h.
74219         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
74220         Hurd.
74221
74222 2005-01-18  Bruno Haible  <bruno@clisp.org>
74223
74224         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
74225         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
74226         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
74227         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
74228         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
74229         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
74230         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
74231         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
74232         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
74233         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
74234         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
74235         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
74236         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
74237         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
74238         Use an all-permissive copyright notice, recommended by RMS.
74239
74240 2005-01-18  Bob Proulx  <bob@proulx.com>
74241
74242         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
74243         simplify offsetof() macro construct to avoid compile failure with
74244         native HP-UX 11.0 ANSI C compiler.
74245
74246 2005-01-17  Bruno Haible  <bruno@clisp.org>
74247
74248         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
74249         redundant because stpncpy.m4 takes care of it.
74250
74251 2005-01-17  Bruno Haible  <bruno@clisp.org>
74252
74253         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
74254
74255 2005-01-17  Bruno Haible  <bruno@clisp.org>
74256
74257         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
74258         used.
74259
74260 2005-01-17  Bruno Haible  <bruno@clisp.org>
74261
74262         * lib/fwriteerror.h (fwriteerror): Change specification to include
74263         fclose.
74264         * lib/fwriteerror.c: Include <stdbool.h>.
74265         (fwriteerror): At the end, close the file stream. Record whether
74266         stdout was already closed.
74267
74268 2005-01-17  Bruno Haible  <bruno@clisp.org>
74269
74270         * lib/execute.c (environ): Declare if needed.
74271         * lib/pipe.c (environ): Likewise.
74272         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
74273
74274 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74275
74276         * modules/argp: Depend on vsnprintf
74277
74278 2005-01-10  Jim Meyering  <jim@meyering.net>
74279
74280         * modules/closeout (Depends-on): Add atexit.
74281
74282 2005-01-06  Bruno Haible  <bruno@clisp.org>
74283
74284         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
74285
74286 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
74287
74288         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
74289         definitions to be after all include files, to avoid collisions.
74290         Problem reported by Bob Proulx.
74291
74292 2005-01-04  Jim Meyering  <jim@meyering.net>
74293
74294         Changes imported from coreutils.
74295         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
74296         as the mkstemp template, use a temporary directory and an
74297         8.3-friendly template to avoid trouble on systems like DJGPP.
74298         Reported by Juan M. Guerrero via Stepan Kasal.
74299         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
74300         close. Remove the temporary directory right away, rather than waiting
74301         for configure's at-exit trap code to do it.
74302         Suggestion from Stepan Kasal.
74303
74304 2005-01-01  Simon Josefsson  <jas@extundo.com>
74305
74306         * gnulib-tool: Print #include directives when --import'ing.
74307
74308 2004-12-28  Simon Josefsson  <jas@extundo.com>
74309
74310         * tests/test-base64.c: Include required header files.  Remove
74311         unused variables.
74312
74313 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
74314
74315         * modules/error (Depends-on): Remove gettext.
74316
74317 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
74318
74319         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
74320         not needed.  This removes a dependency on the gettext module.
74321         [defined _LIBC]: Do not include <libintl.h>; not needed.
74322
74323 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
74324
74325         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
74326         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
74327
74328 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
74329
74330         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
74331         HAVE_DECL_STRTOLD.
74332
74333 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
74334
74335         * modules/getdate (Depends-on): Remove alloca-opt.
74336
74337 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
74338
74339         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
74340
74341 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
74342
74343         * lib/argp-parse.c: Include <stddef.h>.
74344         (alignof, alignto): New macros.
74345         (parser_init): Don't assume that void * is aligned sufficiently
74346         for struct option.
74347
74348         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
74349         need to extend the stack.
74350         (YYINITDEPTH): New macro, so that the initial stack isn't overly
74351         large.
74352
74353 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74354
74355         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
74356
74357 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
74358
74359         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
74360         (2004-10-24) change.  Apparently this was a false alarm.
74361
74362         * modules/getdate: Depend on alloca-opt, not alloca.
74363
74364 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
74365
74366         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
74367         Remove now-obsolete comment about AIX.
74368         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
74369         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
74370         (YYMAXDEPTH): New macro.
74371
74372 2004-12-18  Simon Josefsson  <jas@extundo.com>
74373
74374         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
74375
74376 2004-12-18  Bruno Haible  <bruno@clisp.org>
74377
74378         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
74379
74380 2004-12-18  Bruno Haible  <bruno@clisp.org>
74381
74382         * lib/fatal-signal.c (fatal_signals): Make non-const.
74383         (init_fatal_signals): New function.
74384         (uninstall_handlers, install_handlers): Ignore signals that were set to
74385         SIG_IGN.
74386         (at_fatal_signal): Call init_fatal_signals.
74387         (init_fatal_signal_set): Likewise. Ignore signals that were set to
74388         SIG_IGN.
74389         Reported by Paul Eggert.
74390
74391 2004-12-18  Bruno Haible  <bruno@clisp.org>
74392
74393         * doc/alloca.texi: New file.
74394         * doc/alloca-opt.texi: New file.
74395
74396 2004-12-17  Jim Meyering  <jim@meyering.net>
74397
74398         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
74399         Otherwise, install-sh could exit with improper exit status when
74400         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
74401
74402 2004-12-16  Simon Josefsson  <jas@extundo.com>
74403
74404         * tests/test-base64.c: Add license.
74405
74406 2004-12-15  Stepan Kasal  <address@hidden>
74407
74408         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
74409
74410 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
74411
74412         * modules/getcwd (Files): Add m4/d-ino.m4.
74413         Suggested by Mark D. Baushke.
74414
74415 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
74416
74417         * lib/getdate.y (textint): New member "negative".
74418         (time_zone_hhmm): New function.
74419         Expect 14 shift-reduce conflicts, not 13.
74420         (o_colon_minutes): New rule.
74421         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
74422         (yylex): Set the "negative" member of signed numbers.
74423
74424 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
74425
74426         * doc/getdate.texi (Time of day items, Time zone items):
74427         Describe new formats +00:00, UTC+00:00.
74428
74429 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
74430
74431         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
74432         spurious "-l"s.  Problem reported by Stepan Kasal.
74433
74434 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
74435
74436         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
74437         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
74438
74439 2004-12-04  Simon Josefsson  <jas@extundo.com>
74440
74441         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
74442         Vandoorselaere <yoann@prelude-ids.org>.
74443
74444 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
74445
74446         Changes imported from coreutils.
74447         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
74448         exist.
74449         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
74450
74451 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
74452
74453         Changes imported from coreutils.
74454         * lib/hard-locale.c: Assume <locale.h> exists.
74455         Include "strdup.h".
74456         (GLIBC_VERSION): New macro.
74457         (hard_locale): Assume setlocale exists.
74458         Rewrite to avoid #ifdef.
74459         Use strdup rather than malloc + strcpy.
74460         * lib/human.c: Assume <locale.h> exists.
74461         (human_readable): Assume localeconv exists.
74462
74463 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
74464
74465         * modules/hard-locale (Depends-on): Add strdup.
74466
74467 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
74468
74469         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
74470         convert T2, not T.  (Imported from libc.)
74471
74472 2004-11-30  Simon Josefsson  <jas@extundo.com>
74473
74474         * modules/restrict (License): Change to LGPL.
74475
74476 2004-11-30  Simon Josefsson  <jas@extundo.com>
74477
74478         * m4/restrict.m4: Add copyright and copying conditions.
74479
74480 2004-11-30  Simon Josefsson  <jas@extundo.com>
74481
74482         * m4/base64.m4: New file.
74483
74484 2004-11-30  Simon Josefsson  <jas@extundo.com>
74485
74486         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
74487         base64.
74488
74489         * tests/test-base64.c: New file.
74490
74491         * modules/base64: New file.
74492
74493 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
74494
74495         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
74496         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
74497
74498         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
74499
74500 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
74501
74502         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
74503         (__getcwd.c): Don't restore errno; glibc doesn't.
74504         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
74505         first, falling back to our code only if its results look suspicious.
74506         Ensure that the resulting buffer is only as large as necessary.
74507
74508         * lib/readutmp.c: Include readutmp.h first.
74509         Include <errno.h>, since readutmp.h no longer does that.
74510         * lib/readutmp.h: Don't include <errno.h>,
74511         <sys/param.h>, <time.h>; not needed to establish interface.
74512         (errno): Remove decl.
74513         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
74514         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
74515         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
74516
74517 2004-11-28  Simon Josefsson  <jas@extundo.com>
74518
74519         * lib/base64.h, base64.c: New file.
74520
74521 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
74522
74523         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
74524
74525 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
74526
74527         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
74528         (Depends-on): Remove pathmax, same.  Add mempcpy.
74529         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
74530         (Makefile.am): Append getcwd.h to lib_SOURCES.
74531         (Include): Add getcwd.h.
74532         (Maintainer): Change from Jim Meyering to "all, glibc",
74533         since getdate now uses intended-for-glibc code.
74534         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
74535         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
74536
74537 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
74538
74539         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
74540         HP's ANSI C compiler.
74541         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
74542         Declaring int functions causes warnings on some modern systems and
74543         shouldn't be needed to compile on ancient ones.
74544         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
74545         defined.
74546
74547         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
74548         with the following changes.
74549         (__set_errno): Parenthesize properly.
74550         Include <stdbool.h>.
74551         (MIN, MAX, MATCHING_INO): New macros.
74552         (__getcwd): Define with prototype, not K&R form.
74553         Use heuristics to allocate default buffer on stack if possible.
74554         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
74555         behavior, and to avoid the PATH_MAX limit when computing
74556         ../../../../...
74557         Use MATCHING_INO to compare inode number to file.
74558         Check for arithmetic overflow in size calculations.
74559         Fix bug in reallocation of dot array that caused getcwd to fail
74560         on directories nested deeper than 75.
74561         Be more careful about saving errno on error.
74562         Do not use realloc; use only free+malloc, as this is a bit
74563         more flexible and avoids a needless copy operation.
74564         Do not inspect st_dev and st_ino for symbolic links; POSIX
74565         doesn't specify the latter.
74566         Check for closedir errors.
74567         Avoid needless casts.
74568         Use "#ifdef weak_alias" around weak_alias, to be like other
74569         glibc code.
74570         The following changes to getcwd.c have effect only when used in
74571         gnulib; they have no effect inside glibc proper.
74572         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
74573         as alloca isn't used.
74574         (alloca, __alloca): Likewise.
74575         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
74576         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
74577         unconditionally, as gnulib assumes C89 or better.
74578         Do not include <sys/param.h>.
74579         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
74580         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
74581         better.
74582         (NULL) [!defined NULL]: Remove; we assume C89 or better.
74583         Include <dirent.h> in a way that is compatible with modern Autoconf.
74584         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
74585         New macros, if not already defined.
74586         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
74587         Use "_LIBC", not "defined _LIBC", for consistency.
74588         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
74589         a mempcpy module.
74590         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
74591         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
74592         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
74593         credit only to Jim Meyering and adjust the copyright dates.
74594         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
74595         <stdlib.h>, <unistd.h>, "pathmax.h".
74596         Instead, include "xgetcwd.h" (first) and "getcwd.h".
74597         (INITIAL_BUFFER_SIZE): Remove.
74598         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
74599
74600 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
74601
74602         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
74603         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
74604         Use the _ONCE methods, for efficiency.
74605         Check for fcntl.h.  In test program, include <errno.h>
74606         and <fcntl.h> if available.  Remove old K&R cruft from
74607         test program.  Check for common errors in GNU/Linux,
74608         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
74609         don't do AC_LIBOBJ, as that's getcwd.m4's job.
74610         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
74611         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
74612         name accordingly.
74613         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
74614         accommodate new getcwd.c.
74615         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
74616         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
74617         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
74618         that's all we need now.
74619
74620 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74621
74622         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
74623         argp-parse.c depends on getopt internals, that means we should
74624         always use our getopt, to be on the safe side.
74625         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
74626         order not to spoil the result of an eventual previous invocation
74627         of gl_GETOPT_SUBSTITUTE.
74628
74629 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74630
74631         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
74632         redefinition warnings. To avoid them, include the defines
74633         in `#if !defined __need_getopt ... #endif'. The only place
74634         where __getopt_argv_const is used is in definitions
74635         of getopt_long and getopt_long_only below, which are as well
74636         protected by `#ifndef __need_getopt'.
74637         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
74638         __need_getopt after including <stdio.h> and <unistd.h> These
74639         headers might have defined it.
74640
74641 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
74642
74643         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
74644
74645 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
74646
74647         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
74648         (futimens): New function, which uses futimes if available.
74649         (futimens, utimens): Support timespec==NULL, with same semantics
74650         as utime and utimens.
74651         * lib/utimens.h (futimens): New decl.
74652
74653 2004-11-23  Jim Meyering  <jim@meyering.net>
74654
74655         * lib/getopt_.h: Remove trailing blanks.
74656
74657 2004-11-23  Jim Meyering  <jim@meyering.net>
74658
74659         * lib/__fpending.c: Add comment.
74660
74661 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
74662
74663         * modules/canonicalize (Depends-on): Add xreadlink.
74664         Problem reported by James Youngman.
74665
74666 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
74667
74668         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
74669         New macros.
74670         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
74671         optopt): Use them instead of invoking ## directly; otherwise, the
74672         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
74673
74674 2004-11-19  Bruno Haible  <bruno@clisp.org>
74675
74676         * lib/strtok_r.c: Move comments from here...
74677         * lib/strtok_r.h: ... to here.
74678
74679 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
74680
74681         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
74682         implementations that mishandle size_t overflow.
74683
74684 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
74685
74686         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
74687         might fail.  Problem reported by Yoann Vandoorselaere.
74688         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
74689         implementations that mishandle size_t overflow.
74690
74691 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
74692
74693         * modules/canon-host (Depends-on): Add strdup.
74694
74695 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
74696
74697         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
74698
74699 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
74700
74701         * lib/canon-host.c: Include "strdup.h".
74702         (canon_host): Use getaddrinfo if available, so that IPv6 works.
74703         Use strdup instead of malloc/strcpy to duplicate strings.
74704
74705         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
74706         (human_space_before_unit): New constant.
74707         * lib/human.c (human_readable): Support it.
74708
74709         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
74710         (xgetcwd): Set errno correctly when failing.
74711         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
74712         the failure is actually due to a PATH_MAX problem.
74713
74714         Further getopt changes to make it more likely that glibc will
74715         buy the changes back.
74716         * lib/getopt.c (POSIXLY_CORRECT): New constant.
74717         (getopt): Use it, so to preserve glibc semantic
74718         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
74719         when compiling for libc.
74720         * lib/getopt_.h (__getopt_argv_const): Bring it back.
74721         (getopt_long, getopt_long_only): Use it.
74722
74723         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
74724         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
74725         (getopt): Argv is now char * const *, as per standard.
74726         (_getopt_internal_r, _getopt_internal): Argv is now char **,
74727         not char *__getopt_argv_const *.
74728         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
74729         _getopt_long_only_r): Likewise.
74730         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
74731         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
74732         _getopt_long_r, _getopt_long_only_r): Likewise.
74733         * lib/getopt_.h (__getopt_argv_const): Remove.
74734         (getopt): Argv is now char * const *, as per standard.
74735
74736         * lib/getdate.y (tORDINAL): New token.
74737         (day, relunit): Allow it for relative times.
74738         (relative_time_table): Use tORDINAL for ordinals.
74739
74740 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
74741
74742         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
74743         Document that "second" isn't allowed as an ordinal number.
74744
74745 2004-11-16  Jim Meyering  <jim@meyering.net>
74746
74747         * modules/closeout (Depends-on): Add fpending.
74748
74749 2004-11-15  Jim Meyering  <jim@meyering.net>
74750
74751         * lib/closeout.c: Include "__fpending.h" once again.
74752         Include <stdbool.h>.
74753         (close_stdout): Don't fail just because stdout was closed initially,
74754         since some programs don't write to stdout in the normal course of
74755         operation (other than --version and --help), and we don't want this
74756         function to make e.g. `touch file >&-' fail.
74757         But do fail if it was closed and someone has tried to write to it.
74758         E.g., `printf foo >&-' must fail.
74759
74760 2004-11-13  Jim Meyering  <jim@meyering.net>
74761
74762         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
74763
74764 2004-11-12  Simon Josefsson  <jas@extundo.com>
74765
74766         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
74767         small doc fix is still pending.
74768
74769 2004-11-11  Simon Josefsson  <jas@extundo.com>
74770
74771         * modules/strtok_r: New file.
74772
74773         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
74774         strtok_r.
74775
74776 2004-11-11  Simon Josefsson  <jas@extundo.com>
74777
74778         * m4/strtok_r.m4: New file.
74779
74780         * m4/getopt.m4: Replace opterr.
74781
74782 2004-11-11  Simon Josefsson  <jas@extundo.com>
74783
74784         * lib/strtok_r.h, strtok_r.c: New file.
74785
74786 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
74787
74788         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
74789         of replacing opterr, getopt, etc.  This should handle the
74790         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
74791
74792 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
74793
74794         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
74795         we can stop lying to compilers about the constness of argv when we
74796         are compiled outside glibc.
74797         (getopt, getopt_long, getopt_long_only): Use it.
74798         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
74799         _getopt_internal, getopt): Likewise.
74800         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
74801         _getopt_long_only_r): Likewise.
74802         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
74803         _getopt_long_r, _getopt_long_only_r): Likewise.
74804
74805         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
74806         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
74807         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
74808         the other external symbols.
74809         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
74810         declaration, since the above renaming now works around collisions.
74811
74812 2004-11-11  Jim Meyering  <jim@meyering.net>
74813
74814         * lib/linebreak.c: Remove trailing blanks.
74815         * lib/alloca_.h: Likewise.
74816         * lib/acosl.c: Likewise.
74817         * lib/euidaccess.c: Likewise.
74818         * lib/allocsa.h: Likewise.
74819
74820 2004-11-10  Simon Josefsson  <jas@extundo.com>
74821
74822         * m4/getaddrinfo.m4: New file.
74823
74824 2004-11-10  Simon Josefsson  <jas@extundo.com>
74825
74826         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
74827
74828 2004-11-10  Simon Josefsson  <jas@extundo.com>
74829
74830         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
74831         getaddrinfo.
74832
74833         * modules/getaddrinfo: New file.
74834
74835 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
74836
74837         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
74838
74839 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
74840
74841         * lib/mktime.c (SHR): New macro, which is a portable
74842         substitute for >> that should work even on Crays.
74843         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
74844         Problem reported by Mark D. Baushke in
74845         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
74846         * lib/getdate.y (SHR): Likewise.
74847         (tm_diff): Use it.
74848         * lib/strftime.c (SHR): Likewise.
74849         (tm_diff): Use it.
74850         * lib/quotearg.c (struct quoting_options): Use unsigned int for
74851         quote_these_too, so that right shifts are well defined.  All uses
74852         changed.
74853
74854 2004-11-10  Jim Meyering  <jim@meyering.net>
74855
74856         Ensure that no close failure goes unreported.
74857         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
74858         return early when it seems there's nothing to flush.
74859         Don't include __fpending.h.
74860
74861 2004-11-10  Jim Meyering  <jim@meyering.net>
74862
74863         * modules/closeout (Depends-on): Remove fpending.
74864
74865 2004-11-10  Jim Meyering  <jim@meyering.net>
74866
74867         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
74868
74869 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
74870
74871         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
74872         gl_FUNC_STRFTIME.
74873         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
74874         and AC_REQUIRE when possible, to avoid duplicate checks.
74875         Check for <wchar.h>.
74876
74877 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
74878
74879         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
74880
74881 2004-11-09  Bruno Haible  <bruno@clisp.org>
74882
74883         * m4/sockpfaf.m4: New file.
74884
74885 2004-11-05  Bruno Haible  <bruno@clisp.org>
74886
74887         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
74888         Reported by Mark D. Baushke <mdb@cvshome.org>.
74889
74890 2004-11-04  Bruno Haible  <bruno@clisp.org>
74891
74892         2004-09-11  Bruno Haible  <bruno@clisp.org>
74893                 * allocsa.valgrind: New file.
74894         2004-02-06  Bruno Haible  <bruno@clisp.org>
74895                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
74896                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
74897                 Reported by Christopher Seip <chris.seip@hp.com>.
74898
74899 2004-11-04  Bruno Haible  <bruno@clisp.org>
74900
74901         * modules/allocsa (Files): Add lib/allocsa.valgrind.
74902         (Makefile.am): Distribute it.
74903
74904 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
74905
74906         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
74907         with errno == ERANGE if the buffer is too small.
74908         Problem reported by Mark D. Baushke.
74909
74910 2004-11-03  Albert Chin  <china@thewrittenword.com>
74911             Paul Eggert  <eggert@cs.ucla.edu>
74912
74913         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
74914         equivalent, substitute $ac_type for equivalent type rather than
74915         blindly using uint32_t *always* which won't work if uint32_t is not
74916         available.  Define _UINT32_T to work around typedef of uint32_t if
74917         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
74918         2.5.1.
74919
74920 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
74921
74922         * m4/jm-macros.m4: Sync from coreutils.
74923         (gl_MACROS): Check for mbrlen, for pathchk.
74924         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
74925
74926 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
74927
74928         * lib/xreadlink.c (MAXSIZE): New macro.
74929         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
74930         size does not exceed MAXSIZE.  Avoid cast.
74931         As suggested by Mark D. Baushke in
74932         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
74933         if readlink fails with buffer size just under MAXSIZE, try again
74934         with MAXSIZE.
74935
74936 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
74937
74938         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
74939
74940 2004-11-02  Derek R. Price  <derek@ximbiot.com>
74941         and  Paul Eggert  <eggert@cs.ucla.edu>
74942
74943         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
74944         (get_date): Overparenthesize to avoid GCC warning.
74945
74946 2004-11-02  Bruno Haible  <bruno@clisp.org>
74947
74948         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
74949         returns void.
74950
74951 2004-11-02  Bruno Haible  <bruno@clisp.org>
74952
74953         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
74954         function returns void.
74955
74956 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
74957
74958         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
74959         fflush_unlocked, flockfile, funlockfile, funlockfile,
74960         fputs_unlocked, putc_unlocked.
74961
74962 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
74963
74964         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
74965         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
74966         already declared.
74967
74968 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
74969
74970         * modules/getdate (Files): Add doc/getdate.texi.
74971         (Depends-on): Add setenv, xalloc.
74972
74973 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
74974
74975         * lib/getdate.y: Add support for TZ="foo" within a date string.
74976         Fix some bugs near time_t boundaries.  Reject dates with
74977         out-of-range components, e.g., "Sept 31".
74978         Include <stdlib.h>, "setenv.h", "xalloc.h".
74979         (ISDIGIT_LOCALE): Remove; unused.
74980         Note that the TZ and time functions used here are not reentrant.
74981         (mktime_ok, get_tz): New functions.
74982         (TZBUFSIZE): New constant.
74983         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
74984         This requires that we sometimes generate our own TZ="XXX..." setting.
74985
74986 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
74987
74988         * doc/getdate.texi: New file, from coreutils with modifications for
74989         the new TZ parsing.
74990
74991 2004-10-27  Derek R. Price  <derek@ximbiot.com>
74992
74993         * lib/mktime.c (not_equal_tm): Remove redundant check.
74994
74995 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
74996
74997         * modules/regex (lib_SOURCES): Add regex.c.
74998         Reported by James Youngman in
74999         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
75000
75001 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
75002
75003         * lib/getdate.y: Use Bison 1.875 features, and some minor
75004         code cleanups.  This change does not affect semantics.
75005         Don't include <stdlib.h>; no longer needed.
75006         Don't include unlocked-io.h; only the "#if TEST" code uses
75007         stdio, and performance isn't crucial there.
75008         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
75009         Bison 1.875 features as described below.
75010         All uses of "PC." replaced by "pc->".
75011         (YYSTYPE): Add a forward declaration.
75012         (yylex, yyerror): Use full prototypes in forward decls.
75013         Use "%pure-parser" rather than obsolescent "%pure_parser".
75014         Use %parse-param and %lex-param instead of obsolescent
75015         YYPARSE_PARAM and YYLEX_PARAM.
75016         (meridian_table, month_and_day_table, time_units_table,
75017         relative_time_table, time_zone_table, military_table,
75018         lookup_zone, lookup_word, get_date):
75019         Use NULL instead of 0 where appropriate.
75020         (to_hour): Avoid abort (), to avoid a dependency on
75021         stdlib.h.
75022         (yyerror, yylex): Now accepts parser_control * arg.
75023         (main) [TEST]: Use '\0' rather than 0 for char.
75024
75025 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
75026
75027         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
75028
75029 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
75030
75031         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
75032         It's now the caller's responsibility to handle the case where
75033         !HAVE_GETPAGESIZE && !defined getpagesize.
75034
75035         * lib/mktime.c (leapyear): Arg is long int, not int.
75036
75037 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
75038
75039         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
75040
75041 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
75042
75043         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
75044         missing.  Problem reported by James Youngman.
75045
75046 2004-10-16  Simon Josefsson  <jas@extundo.com>
75047
75048         * gnulib-tool: Fix comments.  Fix parse problem.
75049         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
75050
75051 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
75052
75053         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
75054         implementation of getopt_long.  Problem reported by Alexander Taler in:
75055         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
75056
75057 2004-10-15  Bruno Haible  <bruno@clisp.org>
75058
75059         * gnulib-tool: Untabify. Initialize supplied_libname.
75060         (func_usage): More homogenous output.
75061         (func_modules_transitive_closure, func_modules_to_filelist,
75062         func_emit_lib_Makefile_am): New functions.
75063         (func_import): New function, extracted from big case statement. Use
75064         func_get_license, func_modules_transitive_closure,
75065         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
75066         opt_lgpl. Don't use test -a, as it's not portable.
75067         (func_create_testdir): Use func_modules_transitive_closure,
75068         func_modules_to_filelist, func_emit_lib_Makefile_am.
75069
75070 2004-10-15  Bruno Haible  <bruno@clisp.org>
75071
75072         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
75073
75074 2004-10-15  Bruno Haible  <bruno@clisp.org>
75075
75076         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
75077         the portions belonging to each module.
75078         Suggested by Derek Robert Price <derek@ximbiot.com>.
75079
75080 2004-10-12  Simon Josefsson  <jas@extundo.com>
75081
75082         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
75083         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
75084         to real functions.
75085
75086 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
75087
75088         * modules/vsnprintf: New file.
75089
75090 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
75091
75092         * m4/vsnprintf.m4: New file.
75093
75094 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
75095
75096         * lib/vsnprintf.h: New file.
75097         * lib/vsnprintf.c: New file.
75098
75099 2004-10-11  Bruno Haible  <bruno@clisp.org>
75100
75101         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
75102         vsnprintf.
75103
75104 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
75105
75106         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
75107
75108 2004-10-07  Bruno Haible  <bruno@clisp.org>
75109
75110         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
75111         fits into the provided buffer.
75112
75113 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
75114
75115         * lib/diacrit.c, diacrit.h: Add GPL notice.
75116
75117         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
75118         notice.
75119         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
75120         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
75121         This avoids a potential constant-folding bug.
75122
75123 2004-10-05  Bruno Haible  <bruno@clisp.org>
75124
75125         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
75126         for the declaration of strsep.
75127
75128 2004-10-05  Bruno Haible  <bruno@clisp.org>
75129
75130         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
75131
75132 2004-10-04  Simon Josefsson  <jas@extundo.com>
75133
75134         * modules/memmem: New file.
75135         * tests/test-memmem.c: New file.
75136         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
75137
75138 2004-10-04  Simon Josefsson  <jas@extundo.com>
75139
75140         * m4/memmem.m4: New file.
75141
75142 2004-10-04  Simon Josefsson  <jas@extundo.com>
75143
75144         * lib/memmem.h: New file.
75145         * lib/memmem.c: New file, taken from glibc.
75146
75147 2004-10-04  Simon Josefsson  <jas@extundo.com>
75148
75149         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
75150         '#ifdef USE_UNLOCKED_IO'.
75151
75152 2004-10-04  Simon Josefsson  <jas@extundo.com>
75153
75154         * config/srclist.txt: Add memmem from glibc.
75155
75156 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
75157
75158         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
75159
75160         * modules/argmatch, modules/argp, modules/closeout, modules/error,
75161         modules/exclude, modules/getdate, modules/getline,
75162         modules/getndelim2, modules/getpass, modules/getpass-gnu,
75163         modules/getusershell, modules/linebuffer, modules/md5,
75164         modules/mountlist, modules/posixtm, modules/readtokens,
75165         modules/readutmp, modules/regex, modules/sha1,
75166         modules/version-etc, modules/yesno:
75167         Remove dependency on unlocked-io.
75168
75169 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
75170
75171         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
75172
75173         * m4/unlocked-io.m4: Add copyright notice.
75174         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
75175
75176 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
75177
75178         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
75179         * lib/xmalloc.c (xmemdup): Likewise.
75180         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
75181         XFREE): Remove these long-obsolescent macros.
75182         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
75183         * lib/xstrdup.c: Remove.
75184
75185         * lib/regex.c (re_comp): Cast gettext return value to char *,
75186         Problem reported by Martin Neitzel via Mark D. Baushke.
75187
75188 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
75189
75190         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
75191         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
75192         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
75193         regex.c, sha1.c, version-etc.c, yesno.c:
75194         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
75195         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
75196         the includer's responsibility.
75197
75198         Sync from coreutils.
75199
75200         * lib/modechange.c (mode_compile): Don't decrement a pointer that
75201         points to the start of a string, as the C Standard says the
75202         resulting behavior is undefined.
75203
75204         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
75205         simple -> simple_backups, numbered_existing ->
75206         numbered_existing_backups, numbered -> numbered_backups
75207         to avoid shadowing problems.  All uses changed.
75208         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
75209         * lib/backupfile.c (check_extension, numbered_backup):
75210         Rename locals to avoid shadowing 'basename'.
75211         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
75212         once.
75213
75214         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
75215         * lib/.cvsignore: Add getopt.h.
75216
75217 2004-10-04  Bruno Haible  <bruno@clisp.org>
75218
75219         * modules/README: New file.
75220         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
75221         not a module.
75222
75223 2004-10-02  Jim Meyering  <jim@meyering.net>
75224
75225         * lib/dirfd.h, getpagesize.h: Add copyright notice.
75226
75227 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
75228
75229         * modules/strsep: New file.
75230
75231 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
75232
75233         * m4/strsep.m4: New file.
75234
75235 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
75236
75237         * lib/strsep.h: New file.
75238         * lib/strsep.c: New file.
75239
75240 2004-10-01  Simon Josefsson  <jas@extundo.com>
75241
75242         * lib/snprintf.c (snprintf): Handle size==0.
75243
75244 2004-10-01  Simon Josefsson  <jas@extundo.com>
75245             Bruno Haible  <bruno@clisp.org>
75246
75247         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
75248         (snprintf): Declare 'args'.
75249
75250 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
75251
75252         * lib/snprintf.c: Remove comments as to why each header is needed.
75253
75254 2004-10-01  Bruno Haible  <bruno@clisp.org>
75255
75256         * MODULES.html.sh: Add strsep.
75257
75258 2004-09-30  Simon Josefsson  <jas@extundo.com>
75259
75260         * modules/snprintf: New file.
75261
75262 2004-09-30  Simon Josefsson  <jas@extundo.com>
75263
75264         * m4/snprintf.m4: New file.
75265
75266 2004-09-30  Simon Josefsson  <jas@extundo.com>
75267
75268         * lib/snprintf.h, lib/snprintf.c: New files.
75269
75270 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
75271
75272         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
75273         (hol_entry_help): Never translate an empty string.
75274         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
75275         * lib/argp.h (OPTION_NO_TRANS): New option.
75276
75277 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
75278
75279         * modules/argp (Maintainer): Replace Simon Josefsson
75280         by Sergey Poznyakoff.
75281
75282 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
75283
75284         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
75285         changes merged back into glibc.
75286
75287 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
75288
75289         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
75290
75291 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
75292
75293         * lib/xvasprintf.c: Include xalloc.h.
75294         (xvasprintf): Use xalloc_die, not xmalloc_die.
75295
75296 2004-09-29  Bruno Haible  <bruno@clisp.org>
75297
75298         * modules/alloca-opt: New file, derived from modules/alloca.
75299         * modules/allocsa: Depend on alloca-opt instead of alloca.
75300         * modules/setenv: Likewise.
75301         * modules/vasnprintf: Likewise.
75302         * MODULES.html.sh: Add alloca-opt.
75303
75304 2004-09-28  Simon Josefsson  <jas@extundo.com>
75305
75306         * gnulib-tool: New parameter --lgpl, to asseert that modules are
75307         LGPL, and to replace license template from GPL to LGPL.
75308
75309 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
75310
75311         * modules/dummy: Change license to LGPL.
75312
75313 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
75314
75315         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
75316
75317 2004-09-24  Simon Josefsson  <jas@extundo.com>
75318
75319         * modules/minmax (License): Change from GPL to LGPL.
75320
75321 2004-09-23  Simon Josefsson  <jas@extundo.com>
75322
75323         * gnulib-tool (--import): Typo.
75324
75325 2004-09-23  Simon Josefsson  <jas@extundo.com>
75326
75327         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
75328
75329 2004-09-22  Bruno Haible  <bruno@clisp.org>
75330
75331         * modules/*: Add 'License' field.
75332         * gnulib-tool: Accept --extract-license option.
75333         (func_get_license): New function.
75334
75335 2004-09-21  Bruno Haible  <bruno@clisp.org>
75336
75337         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
75338         Reported by Simon Josefsson.
75339
75340 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
75341
75342         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
75343         gl_AC_TYPE_LONG_LONG.
75344
75345 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
75346
75347         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
75348
75349 2004-09-18  Simon Josefsson  <jas@extundo.com>
75350         and  Paul Eggert  <eggert@cs.ucla.edu>
75351
75352         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
75353         calls with autoreconf.  Define GL_LIB.
75354
75355 2004-09-14  Karl Berry  <karl@gnu.org>
75356
75357         * config/srclist.txt: unsync setenv.c, sigh.
75358
75359 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
75360
75361         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
75362         Problem reported by Bruno Haible in:
75363         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
75364
75365 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
75366
75367         * config/srclist.txt: Comment out argp-pvh.c.
75368
75369 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
75370
75371         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
75372         in case some system header has #define'd it.  Problem reported by
75373         Soeren D. Schulze in
75374         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
75375
75376 2004-09-09  Karl Berry  <karl@gnu.org>
75377
75378         * regex.[ch]: delete from the root.  These were supposed to be
75379                 synced with emacs cvs, but this has not happened for about
75380                 a year, and anyway nothing else uses emacs regex.[ch].
75381                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
75382                 lib/regex[.ch] is untouched.
75383
75384 2004-09-09  Bruno Haible  <bruno@clisp.org>
75385
75386         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
75387
75388 2004-09-09  Bruno Haible  <bruno@clisp.org>
75389
75390         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
75391         modifications.
75392         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
75393
75394 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
75395
75396         * modules/xvasprintf: New file.
75397         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
75398
75399 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
75400
75401         * lib/xvasprintf.h: New file.
75402         * lib/xvasprintf.c: New file.
75403         * lib/xasprintf.c: New file.
75404
75405 2004-09-08  Bruno Haible  <bruno@clisp.org>
75406
75407         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
75408
75409 2004-09-08  Bruno Haible  <bruno@clisp.org>
75410
75411         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
75412         length is > INT_MAX.
75413         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
75414         more.
75415
75416 2004-09-08  Bruno Haible  <bruno@clisp.org>
75417
75418         * lib/stdint_.h: New file, taken from GNU clisp.
75419
75420 2004-09-08  Bruno Haible  <bruno@clisp.org>
75421             Oskar Liljeblad  <oskar@osk.mine.nu>
75422
75423         * modules/stdint: New file.
75424         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
75425
75426 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
75427
75428         Import from coreutils.
75429         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
75430         strings on unbounded length.  alloca's performance benefits aren't
75431         that important here.
75432         (V_STRDUP): Remove.
75433         (parse_with_separator): New function, with most of the internals
75434         of the old parse_user_spec.  Allow user to omit both user and group,
75435         for compatibility with FreeBSD.
75436         Clone only the user name, not the entire spec.
75437         Do not set *uid, *gid unless entirely successful.
75438         Avoid memory leak in some failing cases.
75439         Fix regression for USER.GROUP reported by Dmitry V. Levin in
75440         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
75441         (parse_user_spec): Rewrite to use parse_with_separator.
75442
75443 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
75444
75445         * modules/userspec: Don't depend on alloca.
75446
75447 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
75448
75449         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
75450
75451 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
75452
75453         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
75454         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
75455         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
75456
75457 2004-08-16  Simon Josefsson  <jas@extundo.com>
75458
75459         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
75460         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
75461         Add --dry-run for --import.
75462         Let user provided command line parameters override configure.ac
75463         settings.
75464
75465 2004-08-12  Simon Josefsson  <jas@extundo.com>
75466
75467         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
75468         as discussed with Paul Eggert in threads rooted at
75469         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
75470         and
75471         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
75472         Before, the test was empty, and relied on ELIDE_CODE in source
75473         code.)
75474         (gl_PREREQ_GETOPT): New macro.
75475         (gl_GETOPT): Use them.
75476
75477 2004-08-12  Simon Josefsson  <jas@extundo.com>
75478
75479         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
75480         * lib/getopt_.h: Renamed from getopt.h.
75481
75482 2004-08-12  Simon Josefsson  <jas@extundo.com>
75483
75484         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
75485         Change default library name from libfoo to libgnu.
75486         Now, if you have a configure.ac that says:
75487                 gl_SOURCE_BASE(gl)
75488                 gl_M4_BASE(gl/m4)
75489                 gl_MODULES(error getopt etcetera)
75490                 gl_INIT
75491         you can import all you need by running:
75492                 ../gnulib/gnulib-tool --import
75493
75494         * modules/getopt (Files): Rename getopt.h to getopt_.h.
75495         (Makefile.am): Rewrite, use logic from argz.
75496         (Include): Use <getopt.h> instead of "getopt.h".
75497
75498 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
75499
75500         * modules/argp (Files): Add m4/unlocked-io.m4.
75501         (Depends-on): Add extensions.
75502
75503 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
75504
75505         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
75506         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
75507         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
75508         Check for program_invocation_name, program_invocation_short_name,
75509         flockfile, funlockfile, features.h, _getopt_long_only_r.
75510
75511 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
75512
75513         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
75514         its complicated substitute.
75515         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
75516         and program_invocation_name.
75517         (__argp_basename) [!_LIBC]: Remove; the only use was
75518         replaced by its body.
75519         (__argp_short_program_name): Change condition from
75520         !defined __argp_short_program_name to
75521         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
75522         to match argp-namefrob.h.
75523         (__argp_failure): Don't assume strerror_r returns char *.
75524         * lib/argp-parse.c (N_): Define unconditionally.
75525         (argp_default_options): Fill out initializers with 0 to avoid
75526         gcc warnings.
75527
75528 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
75529
75530         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
75531         getopt1.c.
75532
75533 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
75534
75535         Merge from coreutils.
75536
75537         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
75538
75539         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
75540         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
75541
75542 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
75543
75544         Merge from coreutils.
75545
75546         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
75547         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
75548         for Reliant Unix 5.43.
75549
75550         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
75551         (union fooround): Use uintmax_t, not long int.
75552         The rest is a merge from libc:
75553         [defined _LIBC]: Include <shlib-compat.h>.
75554         (_obstack) [defined _LIBC]: Remove after 2.3.4.
75555
75556         * lib/settime.c (settime): Recode to avoid warning with
75557         Sun Forte C 6U2.
75558
75559         * lib/strverscmp.c: Convert to UTF-8.
75560
75561 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
75562
75563         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
75564         m4/uintmax_t.m4.
75565
75566 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
75567
75568         * modules/xalloc-die: New file.
75569         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
75570
75571         * modules/md5 (Files): Add m4/uint32_t.m4.
75572         * modules/sha1: Renamed from modules/sha.
75573         (Files):
75574         Rename lib/sha.h to lib/sha1.h.
75575         Rename lib/sha.c to lib/sha1.c.
75576         Rename m4/sha.m4 to m4/sha1.m4.
75577         (lib_SOURCES): Likewise.
75578         (configure.ac): Rename gl_SHA to gl_SHA1.
75579         (Include): sha.h -> sha1.h.
75580
75581 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
75582
75583         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
75584         * m4/sha1.m4: Renamed from sha.m4.
75585         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
75586
75587 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
75588
75589         * lib/obstack.h (obstack_empty_p):
75590         Don't assume that chunk->contents is suitably aligned.
75591         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
75592         Likewise. Problem reported by Benno in
75593         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
75594
75595         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
75596         readable.  This could be improved further but it'd take some work.
75597
75598 2004-08-08  Simon Josefsson  <jas@extundo.com>
75599
75600         * modules/xgethostname (Depends-on): Remove exit and error (not
75601         used).
75602
75603         * modules/getpass-gnu: Add getpass.h.
75604         (Depends-on): Add stdbool.
75605         * modules/getpass: Add getpass.h.
75606
75607 2004-08-08  Simon Josefsson  <jas@extundo.com>
75608
75609         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
75610         Check getpass declaration.
75611
75612 2004-08-08  Simon Josefsson  <jas@extundo.com>
75613
75614         * lib/xgethostname.c: Don't include error.h (not used).
75615
75616         * lib/getpass.h: Add.
75617         * lib/getpass.c: Include getpass.h first.
75618
75619 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
75620
75621         * lib/xalloc-die.c: New file.
75622         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
75623         All uses removed.
75624         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
75625         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
75626         xalloc-die.c.
75627         (_, N_, xalloc_die): Move to xalloc-die.c.
75628         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
75629         so that we needn't mess with xalloc_msg_memory_exhausted.
75630
75631         * lib/sha1.h: Renamed from sha.h.
75632         (SHA1_H): Renamed from _SHA_H.
75633         (sha1_ctx): Renamed from sha_ctx.
75634         (sha1_init_ctx): Renamed from sha_init_ctx.
75635         (sha1_process_block): Renamed from sha_process_block.
75636         (sha1_process_bytes): Renamed from sha_process_bytes.
75637         (sha1_finish_ctx): Renamed from sha_finish_ctx.
75638         (sha1_read_ctx): Renamed from sha_read_ctx.
75639         (sha1_stream): Renamed from sha_stream.
75640         (sha1_buffer): Renamed from sha_buffer.
75641         * lib/sha1.c: Likewise; renamed from sha.c.
75642         Do not include <sys/types.h>.
75643         Include <stddef.h> rather than <stdlib.h>.
75644
75645 2004-08-08  Bruno Haible  <bruno@clisp.org>
75646
75647         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
75648         FILESYSTEM_PREFIX_LEN.
75649         * lib/progreloc.c: Likewise.
75650         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
75651
75652 2004-08-06  Simon Josefsson  <jas@extundo.com>
75653
75654         * modules/progname (Depends-on): Don't depend on stdbool.
75655
75656 2004-08-06  Simon Josefsson  <jas@extundo.com>
75657
75658         * modules/getsubopt: New file.
75659         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
75660         getsubopt.
75661
75662 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
75663
75664         More merge from coreutils.
75665
75666         * m4/utimens.m4, m4/utimecmp.m4: New files.
75667         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
75668         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
75669         prereq.m4, sha.m4: Import changes from coreutils.
75670
75671 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
75672
75673         More merge from coreutils.
75674         * modules/raise, modules/readtokens0, modules/utimens:
75675         * modules/utimecmp, module/xnanosleep: New files.
75676         * modules/strftime: Add lib/strftime.h.
75677         Change include from <time.h> to "strftime.h".
75678         * modules/yesno: Add lib/yesno.h.
75679         * modules/backupfile: Remove lib/addext.c.
75680         * modules/euidaccess: Add stat-macros.h.
75681         * modules/canonicalize, modules/euidaccess,
75682         modules/filemode, modules/lchown, modules/makepath,
75683         modules/rmdir, modules/stat: Likewise.
75684
75685 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
75686
75687         Merge from tar.
75688         * lib/argp-help.c (make_hol, hol_append): Don't assume that
75689         SIZE_MAX is a valid preprocessor constant.
75690         (__argp_basename): Change from "#ifndef _LIBC"
75691         to "#ifndef __argp_short_program_name", so that
75692         we don't compile these functions for tar.
75693
75694         More merges from coreutils.
75695         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
75696         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
75697         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
75698         * lib/addext.c: Remove; no longer needed.
75699         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
75700         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
75701         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
75702         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
75703         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
75704         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
75705         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
75706         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
75707         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
75708         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
75709         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
75710         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
75711         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
75712         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
75713         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
75714         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
75715         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
75716         Import changes from coreutils.
75717
75718 2004-08-05  Simon Josefsson  <jas@extundo.com>
75719
75720         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
75721
75722 2004-08-05  Simon Josefsson  <jas@extundo.com>
75723
75724         * m4/getsubopt.m4: New file.
75725
75726 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
75727
75728         Merge from coreutils.
75729
75730         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
75731         * m4/getcwd-path-max.m4: New files.
75732
75733         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
75734         FILESYSTEM_PREFIX_LEN ->
75735         FILE_SYSTEM_PREFIX_LEN.
75736         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
75737         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
75738         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
75739         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
75740
75741         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
75742         prerequisite modules now handle the DOS stuff.
75743         Don't check for unistd.h.
75744
75745 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
75746
75747         Merge from coreutils.
75748
75749         * lib/.gdb-history: Remove; this doesn't belong here.
75750
75751         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
75752         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
75753         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
75754         * lib/getcwd.c: New files.
75755
75756         * lib/dirname.h: Include <stdbool.h>.
75757         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
75758         for consistency with POSIX terminology.  All uses changed.
75759         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
75760         (strip_trailing_slashes): Use bool for booleans.
75761         * lib/stripslash.c (strip_trailing_slashes): Likewise.
75762
75763         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
75764         sometimes returns a positive errno value even when it succeeds.
75765         (print_errno_message) [!LIBC]: Fall back on strerror if
75766         __strerror_r fails.
75767
75768         * lib/path-concat.c (mempcpy): Don't define if a system header defines
75769         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
75770         (longest_relative_suffix): New function.
75771         (path_concat): Use it.  Assume first argument is not NULL.
75772         Port to DOS.  Omit redundant separators.
75773         Report an error instead of returning NULL.
75774         Use mempcpy instead of memcpy.
75775         (xpath_concat): Remove: not declared or used.
75776
75777         * lib/same.h: Include <stdbool.h>
75778         (same_name): Return bool, not int.
75779         * lib/same.c (same_name): Likewise.
75780         (errno): Don't declare; we assume C89 or better now.
75781
75782         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
75783         if not already defined.
75784
75785         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
75786         * lib/dup-safer.c (errno): Likewise.
75787
75788 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
75789
75790         Merge from coreutils.
75791         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
75792         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
75793         * modules/path-concat: Don't depend on strdup.
75794
75795 2004-08-03  Simon Josefsson  <jas@extundo.com>
75796
75797         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
75798         * lib/progname.h: Don't include stdbool.h.
75799
75800 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
75801
75802         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
75803         * MODULES.html.sh (func_all_modules): Remove fatal.
75804
75805 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
75806
75807         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
75808
75809 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
75810
75811         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
75812         working.
75813
75814 2004-08-02  Simon Josefsson  <jas@extundo.com>
75815
75816         * lib/getsubopt.h: New file, with comments from Bruno Haible.
75817         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
75818         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
75819
75820 2004-08-01  Simon Josefsson  <jas@extundo.com>
75821
75822         * lib/xgetdomainname.c: Include stdlib.h, for free().
75823
75824 2004-07-19  Bruno Haible  <bruno@clisp.org>
75825
75826         * MODULES.html.sh (func_all_modules): Add dummy.
75827
75828 2004-07-16  Simon Josefsson  <jas@extundo.com>
75829
75830         * modules/dummy: New file.
75831
75832 2004-07-16  Simon Josefsson  <jas@extundo.com>
75833
75834         * lib/dummy.c: New file.
75835
75836 2004-07-16  Bruno Haible  <bruno@clisp.org>
75837
75838         * lib/backupfile.h: Add extern "C" for C++.
75839         * lib/closeout.h: Likewise.
75840         * lib/copy-file.h: Likewise.
75841         * lib/findprog.h: Likewise.
75842         * lib/full-write.h: Likewise.
75843         * lib/pathname.h: Likewise.
75844         * lib/progname.h: Likewise.
75845         * lib/stpcpy.h: Likewise.
75846         * lib/stpncpy.h: Likewise.
75847         * lib/strcase.h: Likewise.
75848         * lib/strstr.h: Likewise.
75849         * lib/xalloc.h: Likewise.
75850
75851         * lib/mbswidth.h: Add extern "C" for C++.
75852         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
75853
75854 2004-07-13  Robert Millan  <robertmh@gnu.org>
75855
75856         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
75857
75858 2004-07-09  Simon Josefsson  <jas@extundo.com>
75859
75860         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
75861         failed without this.)
75862
75863 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
75864
75865         * modules/chown (Files): Add lib/fchown-stub.c, since
75866         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
75867
75868 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
75869
75870         * lib/fchown-stub.c: New file.
75871
75872 2004-06-24  Jim Meyering  <jim@meyering.net>
75873
75874         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
75875
75876 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
75877
75878         * modules/argz: Omit "#include".
75879
75880         * MODULES.html.sh (func_all_modules): Add calloc, to match
75881         2004-06-01 addition of calloc module.
75882
75883 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
75884
75885         * m4/argz.m4: New file, which is autoupdated from libtool.
75886
75887 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
75888
75889         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
75890         libtool.
75891
75892 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
75893
75894         * config/srclist-update: Don't insist on "USA." before the
75895         close-comment, as libtool omits the period and puts the */ on a
75896         separate line.
75897         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
75898         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
75899
75900 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
75901
75902         * modules/argz: New file.
75903         * MODULES.html.sh (func_all_modules): Add argz.
75904
75905 2004-06-12  Jim Meyering  <jim@meyering.net>
75906         and  Paul Eggert  <eggert@cs.ucla.edu>
75907
75908         * modules/hash (Files): Add lib/xalloc.h.
75909         * modules/pipe (Depends-on): Add wait-process.
75910         * modules/stat (Depends-on): Add xalloc.
75911         * modules/userspec (Files): Add lib/userspec.h.
75912         * modules/xstrto
75913
75914         Upgrade from gettext-0.13.
75915         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
75916         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
75917         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
75918
75919 2004-06-10  Jim Meyering  <jim@meyering.net>
75920
75921         * lib/calloc.c: New file.
75922
75923 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
75924
75925         * lib/getdate.y (yylex): Allow space between sign and number.
75926         Problem reported by Dan Jacobson.
75927
75928 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
75929
75930         Merge from coreutils CVS.
75931
75932         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
75933         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
75934         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
75935         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
75936         xstrtol.m4: Fix copyright date and/or serial number.
75937
75938         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
75939         See if we need an fchown replacement.
75940         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
75941         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
75942         and use the replacement function if we detect either defect.
75943
75944         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
75945         gl_UTIMECMP.
75946
75947 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
75948         and  Jim Meyering  <jim@meyering.net>
75949
75950         Merge from coreutils CVS.
75951
75952         * lib/stat-macros.h: New file, with contents from file-type.h
75953         and coreutils' system.h.
75954         * lib/file-type.c: Include "stat-macros.h".
75955         * lib/file-type.h (file_type): Move all macro definitions to new file,
75956         stat-macros.h.
75957
75958         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
75959         Wrap old code with this conditional.
75960         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
75961         function that does not dereference symlinks.
75962         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
75963
75964         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
75965         dependency problems.
75966         (xreadlink): Accept new arg SIZE, for efficiency.
75967         All decls and uses changed.
75968         * lib/xreadlink.h: Include <stddef.h>, for size_t.
75969
75970         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
75971         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
75972
75973         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
75974         sysexits.h.
75975
75976 2004-06-01  Jim Meyering  <jim@meyering.net>
75977
75978         * m4/calloc.m4: New file.
75979
75980 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
75981
75982         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
75983         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
75984         Also, fix a typo in a diagnostic.
75985
75986 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
75987
75988         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
75989         or AC_FUNC_REALLOC.
75990
75991 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
75992
75993         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
75994         macros to be defined.
75995         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
75996         the allocator returns NULL because the requested size is zero.
75997
75998 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
75999
76000         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
76001         var.  Add comment explaining why libc still defines it.  This
76002         merges the following patch from glibc:
76003         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
76004
76005 2004-05-20  Andreas Schwab  <schwab@suse.de>
76006
76007         * m4/free.m4: Replace free if it not known to work, not the other
76008         way round.
76009
76010 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
76011
76012         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
76013         present in glibc since revision 1.1 of this file.
76014         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
76015         obstack_alignment_mask, obstack_alloc, obstack_base,
76016         obstack_blank, obstack_blank_fast, obstack_chunk_size,
76017         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
76018         obstack_grow0, obstack_init, obstack_int_grow,
76019         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
76020         obstack_next_free, obstack_object_size, obstack_ptr_grow,
76021         obstack_ptr_grow_fast, obstack_room): Remove declarations of
76022         nonexistent functions.
76023
76024 2004-05-18  Karl Berry  <karl@gnu.org>
76025
76026         * config/srclist.txt: break link for vasnprintf.c.
76027
76028 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
76029
76030         Port obstack to the AS/400, where pointers are 16 bytes wide and
76031         you cannot cast an integer to a valid pointer.  This patch is
76032         currently waiting to be integrated into glibc; see
76033         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
76034
76035         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
76036         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
76037         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
76038         (struct obstack): temp member is now a union of a pointer and
76039         an integer, instead of an integer.  All integer uses changed.
76040         This does not affect the physical layout of struct obstack,
76041         except on hosts (like the AS/400) where the size or alignment of
76042         void * is greater than that of ptrdiff_t.
76043         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
76044         __STDC__)]: Store temporary in pointer member of union, not
76045         integer member.
76046         * lib/obstack.c: Include <stddef.h>, for offsetof.
76047         (struct fooalign): Remove; it doesn't need a name.
76048         (union fooround): Change double to long double, and add void *.
76049         (DEFAULT_ALIGNMENT): Use offsetof to compute.
76050         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
76051         not a macro.  Hence the values are always int; so remove all
76052         casts-to-int in uses.
76053
76054 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
76055
76056         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
76057         we can get this patch merged into glibc.
76058
76059 2004-05-17  Derek R. Price  <derek@ximbiot.com>
76060             Paul Eggert  <eggert@cs.ucla.edu>
76061
76062         * m4/argp: Depend on alloca.
76063
76064 2004-05-17  Derek R. Price  <derek@ximbiot.com>
76065             Paul Eggert  <eggert@cs.ucla.edu>
76066
76067         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
76068         freecoding.
76069
76070 2004-05-17  Bruno Haible  <bruno@clisp.org>
76071
76072         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
76073         precision that consists of a '.' followed by an empty digit string.
76074         Patch by Tor Lillqvist <tml@iki.fi>.
76075
76076 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
76077
76078         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
76079         for backward compatibility with older code.  We need our own
76080         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
76081         it under some other name, and our alloca.h will define it.
76082
76083 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
76084             Derek Price  <derek@ximbiot.com>
76085
76086         * lib/alloca.c: Include <alloca.h>, to get our interface.
76087         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
76088         include <alloca.h> first.  Use C89 prototype for alloca; this
76089         requires including <stddef.h> for size_t.  Use extern "C" if C++.
76090         Use #elif for simplicity, since we can assume C89 now.
76091         Don't try to source the system alloca.h since it will not be found
76092         and to prevent recursively including its replacement.
76093         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
76094         * lib/regex.c: Likewise.
76095
76096 2004-05-16  Derek Price  <derek@ximbiot.com>
76097             Paul Eggert  <eggert@cs.ucla.edu>
76098
76099         getline cleanup.  This changes the getndelim2 API: both order of
76100         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
76101         no delimiter).
76102
76103         * lib/getline.c: Don't include stddef.h or stdio.h, since our
76104         interface does that.
76105         (getline): Always use getdelim, so that we don't have two
76106         copies of this code.
76107         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
76108         if available.
76109         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
76110         (GETNDELIM2_MAXIMUM): New macro.
76111         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
76112         instead of the old practice of delim2==0.  All callers changed.
76113         Return -1 on overflow, instead of returning junk.
76114         Do not set *linesize unless allocation succeeds.
76115         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
76116         that we include sys/types.h.
76117         * lib/getnline.h: Likewise.
76118         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
76119         (getndelim2): Reorder arguments.
76120         * lib/getnline.c (getnline, getndelim):
76121         Don't discard the NMAX argument.
76122         (getnline): Invoke getndelim, to avoid code duplication.
76123         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
76124         of (size_t) -1 by callers of the getnline family.
76125
76126 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
76127
76128         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
76129         Check for gettimeofday.
76130         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
76131         Check for settimeofday, stime.
76132
76133 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
76134
76135         * lib/nanosleep.c (suspended): Change its type from int to
76136         sig_atomic_t volatile.
76137         (first_call): Make it private to rpl_nanosleep, and have it
76138         be zero initially as that's a bit faster.
76139         (my_usleep): Round up fractional times instead of truncating them,
76140         as this is the usual meaning for 'sleep'.
76141
76142         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
76143         doesn't work.
76144         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
76145         (ENOSYS): Define if not defined.
76146         (settime): Fall back on stime if it exists and settimeofday fails.
76147         But don't bother with fallbacks if a method fails with errno == EPERM.
76148
76149 2004-05-11  Jim Meyering  <jim@meyering.net>
76150
76151         Prior to this change, the save_cwd caller required read access to the
76152         current directory on most systems (ones with the fchdir function).
76153
76154         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
76155         fails, try write-only, and finally, resort to using xgetcwd.
76156
76157 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
76158
76159         * lib/obstack.c, obstack.h: Import changes from libc.
76160
76161 2004-04-28  Bruno Haible  <bruno@clisp.org>
76162
76163         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
76164         also implicitly appends .exe to executables.
76165         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
76166         accepts Windows pathnames.
76167         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
76168         Treat Cygwin like Windows, since it now accepts Windows pathnames.
76169         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
76170         Treat Cygwin like Windows, since it now accepts Windows pathnames.
76171         Reported by Derek Robert Price <derek@ximbiot.com>.
76172
76173 2004-04-21  Karl Berry  <karl@gnu.org>
76174
76175         * config/srclist.txt (localcharset.c): break sync.
76176
76177 2004-04-20  Paul Eggert  <eggert@twinsun.com>
76178
76179         * m4/host-os.m4: Add a copyright notice.
76180
76181 2004-04-20  Jim Meyering  <jim@meyering.net>
76182
76183         Change UTILS_ to gl_ in AC_DEFINE'd names.
76184         Change utils_- and jm_-prefixed variables, too.
76185         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
76186         UTILS_FUNC_MKDIR_TRAILING_SLASH.
76187         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
76188
76189         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
76190         Don't emit trailing blanks.
76191         Also rename jm_-prefixed variables to have gl_ prefix.
76192
76193         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
76194         Also rename jm_-prefixed variables to have gl_ prefix.
76195
76196         * m4/jm-macros.m4: Reflect the renamings.
76197         * m4/prereq.m4: Likewise.
76198
76199 2004-04-20  Jim Meyering  <jim@meyering.net>
76200
76201         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
76202         memory.
76203
76204 2004-04-20  Jim Meyering  <jim@meyering.net>
76205             Bruno Haible  <bruno@clisp.org>
76206
76207         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
76208         memory when realloc fails.
76209
76210 2004-04-19  Jim Meyering  <jim@meyering.net>
76211
76212         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
76213         now that readutmp.c may call `free (0)'.
76214
76215 2004-04-19  Bruno Haible  <bruno@clisp.org>
76216
76217         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
76218         * m4/inttypes_h.m4: Likewise.
76219         * m4/stdint_h.m4: Likewise.
76220         * m4/intmax_t.m4: Likewise.
76221         * m4/uintmax_t.m4: Likewise.
76222
76223 2004-04-18  Jim Meyering  <jim@meyering.net>
76224
76225         * m4/prereq.m4: Don't forbid jm_ prefix.
76226
76227         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
76228         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
76229         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
76230         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
76231         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
76232         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
76233         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
76234         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
76235         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
76236         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
76237         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
76238         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
76239         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
76240         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
76241         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
76242         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
76243         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
76244         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
76245         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
76246
76247 2004-04-18  Jim Meyering  <jim@meyering.net>
76248
76249         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
76250         failure, don't leak memory and do call END_UTMP_ENT.
76251
76252 2004-04-16  Jim Meyering  <jim@meyering.net>
76253
76254         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
76255         coreutils' stat program.
76256         (gl_PREREQ): Don't require jm_PREREQ_STAT.
76257
76258 2004-04-11  Paul Eggert  <eggert@twinsun.com>
76259
76260         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
76261         C89.
76262         (CHAR_BIT): Remove, since we assume C89.
76263         Include <stdint.h> if available, as per current Autoconf CVS advice.
76264
76265 2004-03-31  Jim Meyering  <jim@meyering.net>
76266
76267         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
76268         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
76269         * m4/xalloc.m4: Likewise.
76270
76271 2004-03-30  Paul Eggert  <eggert@twinsun.com>
76272
76273         Merge from coreutils.
76274
76275         * m4/inttostr.m4: New file.
76276         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
76277         Require AM_STDBOOL_H and gl_TIMESPEC instead.
76278         Require gl_CLOCK_TIME.
76279         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
76280
76281 2004-03-30  Paul Eggert  <eggert@twinsun.com>
76282
76283         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
76284         not bool, to be more consistent with Unix conventions.
76285         Suggested by Bruno Haible.
76286
76287         Merge from coreutils.
76288
76289         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
76290         * lib/umaxtostr.c: New files.
76291
76292         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
76293         the usual <time.h> dance.
76294         (get_date): Change signature to support fractional time stamps.
76295         All callers changed.
76296         * lib/getdate.y: Include "getdate.h" first, as we can now
76297         assume C89 and don't need to worry about 'const'.
76298         Similarly, include "unlocked-io.h" near start, not in middle.
76299         Include <limits.h>.
76300         (textint.value): Use long int rather than int.
76301         (textint.digits): Use size_t rather than int.
76302         (BILLION, LOG10_BILLION): New constants.
76303         (parser_control): New member rel_ns.  Members day_ordinal,
76304         time_zone, month, day, hour, minutes, rel_year, rel_month,
76305         rel_day, rel_hour, rel_minutes, rel_seconds
76306         are now long int, not int.  Member seconds is now struct timespec,
76307         not int.  New member timespec_seen.  Members dates_seen, days_seen,
76308         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
76309         not int.
76310         (%union.intval): Now long int, not int.
76311         New member timespec.
76312         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
76313         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
76314         (spec): Now is a timespec or an item list.
76315         (timespec, items): New nonterminals.
76316         (time, rel, relunit, number, get_date):
76317         Add support for fractional seconds.
76318         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
76319         (gmtime, localtime, mktime): Remove decls; not needed with C89.
76320         (to_hour): First arg is now long int, not int.
76321         (to_year): Returns long int, not int.
76322         Don't treat year -70 like 70.
76323         (tm_diff): Returns long int, not int.
76324         (lookup_word): Use bool instead of int when appropriate.
76325         (yylex): Use size_t for count, not int.
76326         Detect overflow when parsing large integer constants.
76327         Add support for fractions.
76328         (get_date): Make pointers 'const' if possible.
76329         Use more-portable code to detect integer overflow.
76330         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
76331         Don't use ctime; it's not reliable if the year has >4 digits.
76332
76333         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
76334         This is for compatibility with BSD.
76335
76336         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
76337         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
76338         From coreutils' system.h.
76339
76340         * lib/userspec.c: Don't include "posixver.h".
76341         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
76342         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
76343         compatible extension.  Simplify code by removing a boolean int
76344         that was always nonzero if a string was nonnull.
76345
76346 2004-03-30  Jim Meyering  <jim@meyering.net>
76347
76348         Merge from coreutils.
76349
76350         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
76351         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
76352         on some systems one must include <grp.h> before it.
76353         Reported by Christian Krackowizer.
76354
76355 2004-03-30  Jim Meyering  <jim@meyering.net>
76356
76357         Merge from coreutils.
76358
76359         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
76360
76361         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
76362         an empty input stream.
76363
76364         * lib/readtokens.c: Include <stdbool.h>.
76365         (readtoken): Use `size_t' rather than int/long.
76366         All callers adjusted.
76367         Use `bool' rather than `int' where appropriate.
76368         Use memset rather than an explicit loop.
76369         Use x2nrealloc rather than xrealloc.
76370         Allow the use of `\0' as a delimiter.
76371         (readtokens): Likewise.
76372         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
76373
76374 2004-03-30  Jim Meyering  <jim@meyering.net>
76375
76376         * m4/realloc.m4: Remove file, since now it does no more than
76377         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
76378         the `configure.ac' section of module/realloc.
76379         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
76380
76381 2004-03-30  Bruno Haible  <bruno@clisp.org>
76382
76383         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
76384         nonnull.
76385
76386 2004-03-29  Paul Eggert  <eggert@twinsun.com>
76387
76388         Merge changes to getloadavg.c from coreutils and Emacs.
76389
76390         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
76391         Define to an expression, not to the empty string.
76392         Include cloexec.h and xalloc.h.
76393         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
76394         Use set_cloexec_flag rather than rolling our own.
76395         * lib/cloexec.c, lib/cloexec.h: New files.
76396
76397 2004-03-29  Paul Eggert  <eggert@twinsun.com>
76398
76399         * m4/cloexec.m4: New file.
76400
76401 2004-03-18  Paul Eggert  <eggert@twinsun.com>
76402
76403         * lib/getopt.h: Sync with libc CVS.
76404
76405 2004-03-18  Paul Eggert  <eggert@twinsun.com>
76406             Bruno Haible  <bruno@clisp.org>
76407
76408         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
76409         mbswidth.
76410
76411 2004-03-18  Paul Eggert  <eggert@twinsun.com>
76412             Bruno Haible  <bruno@clisp.org>
76413
76414         * lib/mbswidth.h: Include <wchar.h> only if
76415         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
76416         <wchar.h>.
76417         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
76418
76419 2004-03-09  Paul Eggert  <eggert@twinsun.com>
76420
76421         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
76422         Sync with libc CVS.
76423         * lib/getopt_int.h: New file, also synced from libc.
76424
76425 2004-03-09  Paul Eggert  <eggert@twinsun.com>
76426
76427         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
76428         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
76429         Bring back getopt.c, getopt.h, getopt1.c.
76430
76431 2004-03-07  Paul Eggert  <eggert@twinsun.com>
76432
76433         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
76434         All uses changed.  Check for sa_sigaction member; this fixes
76435         a bug first reported by Jason Andrade in
76436         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
76437
76438 2004-03-07  Paul Eggert  <eggert@twinsun.com>
76439
76440         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
76441         '#if' expressions.  Unlike the code it replaces, it does not
76442         depend on (defined _SC_PAGESIZE).  However, it does depend on
76443         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
76444         first reported by Jason Andrade in
76445         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
76446
76447 2004-02-25  Simon Josefsson  <jas@extundo.com>
76448
76449         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
76450
76451 2004-02-25  Simon Josefsson  <jas@extundo.com>
76452
76453         * lib/strdup.h: New file.
76454         * lib/strdup.c: Include it.
76455         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
76456         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
76457
76458 2004-02-23  Karl Berry  <karl@gnu.org>
76459
76460         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
76461         (from fencepost.gnu.org:/gd/gnuorg).
76462
76463 2004-02-23  Karl Berry  <karl@gnu.org>
76464
76465         * config/srclistvars.sh (GNUORG) [karl]: redefine.
76466         * config/srclist.txt: add maintain/standards documents.
76467
76468 2004-02-18  Bruno Haible  <bruno@clisp.org>
76469
76470         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
76471         Reported by Derek Robert Price <derek@ximbiot.com>.
76472
76473 2004-02-16  Karl Berry  <karl@gnu.org>
76474
76475         * config/mkinstalldirs, install-sh: update from automake.
76476
76477 2004-02-06  Karl Berry  <karl@gnu.org>
76478
76479         * m4/po.m4: update from gettext 0.14.1.
76480
76481 2004-02-06  Karl Berry  <karl@gnu.org>
76482
76483         * lib/config.charset: update from gettext 0.14.1.
76484
76485 2004-02-05  Paul Eggert  <eggert@twinsun.com>
76486
76487         Add comments and code, prompted by suggestions from Bruno Haible
76488         for sh-quote.
76489         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
76490         describing the enum quoting_style values.
76491         * lib/quotearg.c (quotearg_alloc): New function.
76492         (quotearg_buffer_restyled): Treat lone { and } as special.
76493         Treat = as special.  Work around bug with older shells
76494         that "see" a '\' that is really the 2nd byte of a multibyte char.
76495         Quote empty string with shell_quoting_style.
76496
76497 2004-02-03  Bruno Haible  <bruno@clisp.org>
76498
76499         * m4/pipe.m4: New file, from GNU gettext.
76500
76501 2004-02-03  Bruno Haible  <bruno@clisp.org>
76502
76503         * lib/pipe.h: New file, from GNU gettext.
76504         * lib/pipe.c: New file, from GNU gettext.
76505
76506 2004-01-27  Bruno Haible  <bruno@clisp.org>
76507
76508         * m4/execute.m4: New file, from GNU gettext.
76509
76510 2004-01-27  Bruno Haible  <bruno@clisp.org>
76511
76512         * lib/execute.h: New file, from GNU gettext.
76513         * lib/execute.c: New file, from GNU gettext.
76514         * lib/w32spawn.h: New file, from GNU gettext.
76515
76516 2004-01-24  Paul Eggert  <eggert@twinsun.com>
76517
76518         Merge from diffutils.
76519
76520         * lib/file-type.c (file_type): Add typed memory objects.
76521         * lib/file-type.h (S_TYPEISTMO): New macro.
76522
76523         * lib/c-stack.h (c_stack_action): Remove argv argument.
76524         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
76525         (die): Don't calculate message unless segv_action returns.
76526         (get_stack_location, min_address_from_argv, max_address_from_argv,
76527         volatile stack_base, volatile_stack_size): Remove.
76528         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
76529         that every segmentation violation is a stack overflow.  (Ouch!)
76530         See Debian bug 136249 (still outstanding) for more info about why
76531         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
76532
76533 2004-01-24  Paul Eggert  <eggert@twinsun.com>
76534
76535         Exit-status fix from coreutils.
76536
76537         Use exit_failure consistently in place of EXIT_FAILURE,
76538         so that program exit statuses are consistent on failure.
76539
76540         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
76541         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
76542         * lib/argmatch.h: Comment fix to match the above.
76543         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
76544         Now a macro referring to exit_failure, instead of a separate
76545         variable.  Include "exitfail.h" to get it.
76546         * lib/xstrtol.h: Include "exitfail.h".
76547         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
76548
76549         * lib/long-options.c (parse_long_options): Use prototype
76550         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
76551         for clarity.
76552
76553 2004-01-21  Jim Meyering  <jim@meyering.net>
76554
76555         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
76556         so as not to conflict with a different-sized __mktime_internal
76557         function in GNU libc.
76558         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
76559         Problem building statically-linked `ls' reported by Michael Brunnbauer.
76560
76561 2004-01-20  Karl Berry  <karl@gnu.org>
76562
76563         * config/config.guess: update from config.
76564
76565         * config/srclistvars.sh: GNUWWWLICENSES for karl.
76566
76567 2004-01-20  Bruno Haible  <bruno@clisp.org>
76568
76569         Safer stack allocation.
76570         * lib/setenv.c: Include allocsa.h.
76571         (alloca): Remove fallback definition.
76572         (freea): Remove macro.
76573         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
76574         instead of freea.
76575
76576 2004-01-20  Bruno Haible  <bruno@clisp.org>
76577
76578         * m4/eealloc.m4: New file, from GNU gettext.
76579
76580 2004-01-20  Bruno Haible  <bruno@clisp.org>
76581
76582         * m4/allocsa.m4: New file, from GNU gettext.
76583
76584 2004-01-20  Bruno Haible  <bruno@clisp.org>
76585
76586         * lib/xallocsa.h: New file, from GNU gettext.
76587         * lib/xallocsa.c: New file, from GNU gettext.
76588
76589 2004-01-20  Bruno Haible  <bruno@clisp.org>
76590
76591         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
76592
76593 2004-01-20  Bruno Haible  <bruno@clisp.org>
76594
76595         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
76596         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
76597         specially.
76598
76599 2004-01-20  Bruno Haible  <bruno@clisp.org>
76600
76601         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
76602         patch.
76603
76604 2004-01-20  Bruno Haible  <bruno@clisp.org>
76605
76606         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
76607
76608 2004-01-20  Bruno Haible  <bruno@clisp.org>
76609
76610         * lib/eealloc.h: New file.
76611
76612 2004-01-20  Bruno Haible  <bruno@clisp.org>
76613
76614         * lib/binary-io.h: Avoid warnings on Cygwin.
76615
76616 2004-01-20  Bruno Haible  <bruno@clisp.org>
76617
76618         * lib/allocsa.h: New file, from GNU gettext.
76619         * lib/allocsa.c: New file, from GNU gettext.
76620
76621 2004-01-18  Karl Berry  <karl@gnu.org>
76622
76623         * doc/gpl.texi, doc/lgpl.texi: new files.
76624
76625 2004-01-18  Karl Berry  <karl@gnu.org>
76626
76627         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
76628         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
76629
76630 2004-01-15  Paul Eggert  <eggert@twinsun.com>
76631
76632         Merge from coreutils.
76633
76634         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
76635         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
76636         (gl_DEFAULT_POSIX2_VERSION): Move
76637         the documentation from 'configure' into 'config.hin',
76638         so that 'configure --help' isn't burdened by it and
76639         we don't have to worry about its formatting there.
76640         Reword the documentation so that it's more succinct
76641         and can be run together into a single paragraph.
76642         * m4/same.m4 (gl_SAME): Check for pathconf.
76643
76644 2004-01-15  Paul Eggert  <eggert@twinsun.com>
76645
76646         Merge from coreutils.
76647
76648         * lib/posixver.c: Include posixver.h.
76649
76650         * lib/same.c: Include <stdbool.h>, <limits.h>.
76651         (_POSIX_NAME_MAX): Define if not defined.
76652         (MIN): New macro.
76653         (same_name): If file names are silently truncated, report
76654         that the file names are the same if they are the same after
76655         the silent truncation.
76656
76657         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
76658         conversion function.
76659         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
76660         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
76661         longer needed.
76662
76663 2004-01-15  Jim Meyering  <jim@meyering.net>
76664
76665         Merge from coreutils.
76666
76667         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
76668         if no library is required.
76669         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
76670         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
76671         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
76672         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
76673         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
76674         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
76675         value, $ac_cv_search_crypt, if it's "none required".
76676         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
76677         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
76678         not gl_FUNC_GETLOADAVG.
76679         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
76680         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
76681
76682 2004-01-15  Jim Meyering  <jim@meyering.net>
76683
76684         Merge from coreutils.
76685
76686         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
76687         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
76688         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
76689
76690         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
76691         optional configure-time default.
76692
76693         * lib/version-etc.c (version_etc_copyright): Update copyright date.
76694
76695         * lib/xreadlink.c (xreadlink): Correct outdated comment.
76696
76697 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
76698
76699         Merge from coreutils.
76700
76701         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
76702         value, $ac_cv_search_nanosleep, if it's "none required".
76703
76704 2004-01-14  Paul Eggert  <eggert@twinsun.com>
76705
76706         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
76707         with like-named macro in fnmatch.c.
76708         (EXT): Use an internal constant instead.
76709
76710         Merge fnmatch patches from glibc.
76711         * lib/fnmatch.c (mbsinit): Remove define.
76712         Add libc_hidden_ver (__fnmatch, fnmatch).
76713         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
76714         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
76715
76716 2004-01-14  Karl Berry  <karl@gnu.org>
76717
76718         * config/install-sh: update from automake.
76719
76720 2004-01-13  Karl Berry  <karl@gnu.org>
76721
76722         * config/install-sh: update from automake.
76723
76724 2004-01-09  Karl Berry  <karl@gnu.org>
76725
76726         * config/install-sh: update from automake.
76727
76728 2004-01-05  Karl Berry  <karl@gnu.org>
76729
76730         * config/config.{sub,guess}: update from config.
76731
76732 2003-12-31  Karl Berry  <karl@gnu.org>
76733
76734         * config/depcomp: update from automake.
76735
76736 2003-12-14  Karl Berry  <karl@gnu.org>
76737
76738         * lib/config.charset: update from gettext-runtime.
76739
76740 2003-12-03  Paul Eggert  <eggert@twinsun.com>
76741
76742         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
76743         Bug reported by Alfred M. Szmidt.
76744
76745 2003-12-03  Bruno Haible  <bruno@clisp.org>
76746
76747         * m4/gettext.m4: Upgrade from gettext-0.13.
76748         * m4/po.m4: Upgrade from gettext-0.13.
76749         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
76750         * m4/intmax.m4: New file, from gettext-0.13.
76751         * m4/printf-posix.m4: New file, from gettext-0.13.
76752
76753 2003-11-29  Karl Berry  <karl@gnu.org>
76754
76755         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
76756
76757 2003-11-25  Paul Eggert  <eggert@twinsun.com>
76758             Bruno Haible  <bruno@clisp.org>
76759
76760         * lib/printf-parse.h: Don't include sys/types.h.
76761         (ARG_NONE): New macro.
76762         (char_directive): Change type of *arg_index fields to size_t.
76763         * lib/printf-parse.c: Don't include sys/types.h.
76764         (SSIZE_MAX): Remove macro.
76765         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
76766         Remove unnecessary overflow check.
76767         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
76768         fields.
76769
76770 2003-11-25  Bruno Haible  <bruno@clisp.org>
76771
76772         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
76773
76774 2003-11-25  Bruno Haible  <bruno@clisp.org>
76775
76776         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
76777         gt_TYPE_SSIZE_T.
76778
76779 2003-11-24  Paul Eggert  <eggert@twinsun.com>
76780
76781         * modules/alloca: Remove dependency on xalloc.
76782
76783 2003-11-24  Paul Eggert  <eggert@twinsun.com>
76784
76785         * lib/alloca.c: Remove dependency on xalloc module.
76786         (xalloc_die): Remove.
76787         (memory_full) [!defined emacs]: New macro.
76788         [!defined emacs]: Don't include xalloc.h.
76789         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
76790         address arithmetic overflows.  Change datatypes a bit to avoid
76791         unnecessary casts.
76792
76793 2003-11-22  Jim Meyering  <jim@meyering.net>
76794
76795         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
76796         s/size/size_t/.
76797
76798 2003-11-21  Karl Berry  <karl@gnu.org>
76799
76800         * config/config.{sub,guess}: update from config.
76801
76802 2003-11-18  Karl Berry  <karl@gnu.org>
76803
76804         * config/config.{sub,guess}: update from config.
76805
76806         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
76807
76808 2003-11-17  Paul Eggert  <eggert@twinsun.com>
76809
76810         * README: Mention that S+T cannot overflow if S is the size of
76811         an existing object and T is sufficiently small.
76812
76813 2003-11-17  Jim Meyering  <jim@meyering.net>
76814
76815         On systems without utime and without a utimes function capable of
76816         dealing with a NULL struct utimbuf* argument, this utime replacement
76817         could -- in unusual circumstances -- leak a file descriptor.
76818         * lib/utime.c: Include <unistd.h> and <errno.h>.
76819         (utime_null): Be sure to close `fd' and to preserve errno.
76820         Reported by Geoff Collyer via Arnold Robbins.
76821
76822 2003-11-17  Bruno Haible  <bruno@clisp.org>
76823
76824         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
76825         (Depends-on): Add xsize.
76826
76827 2003-11-17  Bruno Haible  <bruno@clisp.org>
76828
76829         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
76830
76831 2003-11-17  Bruno Haible  <bruno@clisp.org>
76832
76833         * lib/vasnprintf.c (alloca): Remove fallback definition.
76834         (freea): Remove definition.
76835         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
76836         Reported by Paul Eggert.
76837
76838 2003-11-16  Paul Eggert  <eggert@twinsun.com>
76839             Bruno Haible  <bruno@clisp.org>
76840
76841         Protect against address arithmetic overflow.
76842         * lib/printf-args.h: Include stddef.h.
76843         (arguments): Change type of field 'count' to size_t.
76844         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
76845         'unsigned int' where appropriate.
76846         * lib/printf-parse.h: Include sys/types.h.
76847         (char_directive): Change type of *arg_index fields to ssize_t.
76848         (char_directives): Change type of fields 'count', max_*_length to
76849         size_t.
76850         * lib/printf-parse.c: Include sys/types.h and xsize.h.
76851         (SSIZE_MAX): Define fallback value.
76852         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
76853         instead of 'int' where appropriate. Check a_allocated, d_allocated
76854         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
76855         * lib/vasnprintf.c: Include xsize.h.
76856         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
76857         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
76858         overflow. Avoid wraparound when converting a width or precision from
76859         decimal to binary.
76860
76861 2003-11-16  Bruno Haible  <bruno@clisp.org>
76862
76863         Update from GNU gettext.
76864         * lib/printf-parse.c: Generalize to it can be compiled for wide
76865         strings.
76866         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
76867         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
76868         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
76869         SNPRINTF): New macros.
76870         Don't include <alloca.h> if the file is used inside libintl.
76871         (local_wcslen): New function, for Solaris 2.5.1.
76872         (VASNPRINTF): Use it instead of wcslen.
76873
76874 2003-11-16  Bruno Haible  <bruno@clisp.org>
76875
76876         * lib/xsize.h (xmax): New function.
76877         (xsum, xsum3, xsum4): Declare as "pure" functions.
76878
76879 2003-11-12  Paul Eggert  <eggert@twinsun.com>
76880
76881         * modules/xalloc (Files): Undo latest change, since xalloc.h
76882         no longer needs SIZE_MAX or PTRDIFF_MAX.
76883
76884 2003-11-12  Paul Eggert  <eggert@twinsun.com>
76885
76886         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
76887         gl_PTRDIFF_MAX.
76888
76889 2003-11-12  Paul Eggert  <eggert@twinsun.com>
76890
76891         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
76892         "return", to pacify some unknown compiler.  Problem reported
76893         by Joerg Schilling.
76894
76895 2003-11-12  Paul Eggert  <eggert@twinsun.com>
76896
76897         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
76898         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
76899         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
76900         heuristic is just as accurate as far as we know, and it removes a
76901         dependency on size_max.m4 and ptrdiff_max.m4.
76902
76903 2003-11-11  Bruno Haible  <bruno@clisp.org>
76904
76905         * modules/xsize (Files): Add m4/size_max.m4.
76906         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
76907
76908 2003-11-11  Bruno Haible  <bruno@clisp.org>
76909
76910         * m4/size_max.m4: New file.
76911         * m4/ptrdiff_max.m4: New file.
76912         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
76913         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
76914         (gl_XALLOC): Invoke it.
76915
76916 2003-11-11  Bruno Haible  <bruno@clisp.org>
76917
76918         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
76919         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
76920         defined.
76921
76922 2003-11-10  Paul Eggert  <eggert@twinsun.com>
76923
76924         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
76925         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
76926         rejected some allocations of exactly SIZE_MAX - 2 bytes.
76927         From Bruno Haible.
76928         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
76929         not (size_t) -1, since it's defined here.
76930
76931 2003-11-09  Karl Berry  <karl@gnu.org>
76932
76933         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
76934
76935 2003-11-06  Paul Eggert  <eggert@twinsun.com>
76936
76937         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
76938         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
76939         Reject sizes of exactly SIZE_MAX bytes.
76940         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
76941         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
76942
76943 2003-11-05  Bruno Haible  <bruno@clisp.org>
76944
76945         * lib/xsize.h: Include limits.h, to avoid a possible collision with
76946         SIZE_MAX defined in <limits.h> on Solaris.
76947
76948 2003-11-04  Jim Meyering  <jim@meyering.net>
76949
76950         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
76951         variable names, rather than @VAR@.
76952         * modules/poll: Likewise.
76953
76954 2003-11-04  Bruno Haible  <bruno@clisp.org>
76955
76956         * modules/xsize: New file.
76957         * modules/linebreak: Depend on xsize.
76958         * MODULES.html.sh (func_all_modules): Add xsize.
76959
76960 2003-11-04  Bruno Haible  <bruno@clisp.org>
76961
76962         * m4/xsize.m4: New file.
76963
76964 2003-11-04  Bruno Haible  <bruno@clisp.org>
76965
76966         * lib/xsize.h: New file.
76967         * lib/linebreak.c: Include xsize.h.
76968         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
76969         argument for overflow.
76970         Suggested by Paul Eggert.
76971
76972 2003-11-03  Karl Berry  <karl@gnu.org>
76973
76974         * config/config.{guess,sub}: update from config.
76975
76976 2003-11-03  Jim Meyering  <jim@meyering.net>
76977
76978         * modules/userspec (lib_SOURCES): Add userspec.h.
76979         (Include): Add "userspec.h".
76980         Improve description.
76981
76982 2003-11-03  Jim Meyering  <jim@meyering.net>
76983
76984         * lib/userspec.c: Include "userspec.h".
76985         * lib/userspec.h: New file.
76986
76987 2003-11-03  Bruno Haible  <bruno@clisp.org>
76988
76989         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
76990
76991 2003-11-03  Bruno Haible  <bruno@clisp.org>
76992
76993         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
76994         available, to avoid (extremely rare) race condition.
76995         Suggested by Paul Eggert.
76996
76997 2003-11-02  Karl Berry  <karl@gnu.org>
76998
76999         * config/srclist.txt (vasprintf.c): sync broken, sigh.
77000
77001 2003-10-31  Paul Eggert  <eggert@twinsun.com>
77002
77003         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
77004         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
77005         (read_filesystem_list): Set and use me_type_malloced.
77006         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
77007         whatever the type happens to be), for brevity and consistency.
77008         Check for size calculation overflow on Alphas running OSF/1.
77009
77010 2003-10-31  Jim Meyering  <jim@meyering.net>
77011
77012         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
77013
77014         * lib/linebuffer.c: Include <string.h> for declaration of memset.
77015
77016 2003-10-30  Paul Eggert  <eggert@twinsun.com>
77017             Bruno Haible  <bruno@clisp.org>
77018
77019         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
77020         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
77021
77022 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
77023
77024         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
77025         netbsd*-gnu*.  Suggested by Robert Millan.
77026
77027 2003-10-29  Paul Eggert  <eggert@twinsun.com>
77028
77029         * modules/group-member: Depend on stdbool.
77030
77031 2003-10-29  Paul Eggert  <eggert@twinsun.com>
77032
77033         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
77034
77035 2003-10-29  Paul Eggert  <eggert@twinsun.com>
77036
77037         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
77038         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
77039         after the 'gnu' in these cases.  This fixes some bugs in the
77040         previous change, and is based on suggestions by Robert Millan.
77041
77042 2003-10-29  Paul Eggert  <eggert@twinsun.com>
77043
77044         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
77045         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
77046         no longer needed.
77047         * lib/quotearg.c (quotearg_n_options): Use it.
77048         * lib/group-member.c: Include <stdbool.h>.
77049         (free_group_info): Arg is now const *; don't free arg.
77050         (get_group_info): Now returns bool and accepts struct group_info *,
77051         rather than returning a malloc'ed struct group_info *.
77052         All uses changed.  Check for overflow in internal size calculation.
77053
77054         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
77055         rather than xmalloc/xrealloc.
77056         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
77057         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
77058         conformance bug: the old code used a pointer after freeing the
77059         storage that it addressed.
77060         * lib/hash.c (hash_initialize): Simplify the code by using
77061         xalloc_oversized rather than doing it by hand.
77062         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
77063         the buffer preserved.  Use free and xmalloc instead.
77064         * lib/quotearg.c (quotearg_n_options): Likewise.
77065         Use a simpler test for size overflow.  Don't use xalloc_oversized
77066         because unsigned int might be wider than size_t (!); this suggests
77067         that we should switch from unsigned int to size_t for slot numbers.
77068
77069 2003-10-28  Paul Eggert  <eggert@twinsun.com>
77070
77071         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
77072         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
77073         NetBSD kernels.  Requested by Richard Stallman.
77074
77075 2003-10-27  Paul Eggert  <eggert@twinsun.com>
77076
77077         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
77078         to allocate the returned structure.  Do not allocate a subarray,
77079         as x2nrealloc will do that.
77080         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
77081         instead of xnrealloc.
77082         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
77083
77084 2003-10-27  Bruno Haible  <bruno@clisp.org>
77085
77086         * lib/stdbool_.h: Better support for BeOS.
77087
77088 2003-10-26  Paul Eggert  <eggert@twinsun.com>
77089
77090         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
77091         now uses inline.
77092
77093 2003-10-26  Paul Eggert  <eggert@twinsun.com>
77094
77095         * lib/xalloc.h (xalloc_oversized): New static inline function, for
77096         callers that want to do their own size-overflow checking.  Include
77097         <stdbool.h>, since xalloc_oversized returns bool.
77098         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
77099         to use xalloc_oversized.
77100
77101         Add two functions x2realloc, x2nrealloc, for programs that grow
77102         arrays dynamically by doubling their sizes.
77103         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
77104         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
77105         New functions.
77106
77107         Port to C99 semantics for 'inline' of external functions.
77108         Bug reported by Bruno Haible.
77109         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
77110         with the old contents of xnmalloc.
77111         (xnmalloc, xmalloc): Use it.
77112         (xnrealloc_inline): New static inline function,
77113         with the old contents of xnrealloc.
77114         (xnrealloc, xrealloc): Use it.
77115
77116         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
77117         that.
77118
77119 2003-10-26  Karl Berry  <karl@gnu.org>
77120
77121         * config/srclist.txt (COPYING.DOC): no longer available from
77122         /gd/gnuorg; don't know where the ultimate source is.
77123
77124 2003-10-25  Paul Eggert  <eggert@twinsun.com>
77125
77126         Fix several address-calculation bugs in the hash modules,
77127         plus some minor code cleanup.
77128
77129         * lib/hash.h: Include <stdbool.h>, for bool.
77130         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
77131         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
77132         hash_get_n_entries, hash_get_max_bucket_length,
77133         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
77134         hash_rehash): Use size_t rather than unsigned.
77135         * lib/hash.c (struct hash_table, hash_get_n_buckets,
77136         hash_get_n_buckets_used, hash_get_n_entries,
77137         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
77138         hash_get_entries, hash_do_for_each, hash_string, is_prime,
77139         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
77140         Likewise.
77141         (SIZE_MAX): Define if not defined.
77142         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
77143         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
77144         hash_print):
77145         Use const * when possible.
77146         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
77147         (check_tuning): Fix bug: if tuning parameters were very close to
77148         0 or 1, rounding errors could have caused subscript violations.
77149         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
77150         (hash_initialize): Add 'fail:' label
77151         to free table and return NULL, and use it to simplify code.
77152         Use calloc rather than clearing the storage ourself.
77153         (hash_initialize, hash_rehash): Check for arithmetic overflow in
77154         buffer size calculations.
77155         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
77156         Include <stddef.h>, for size_t.
77157         * lib/hash-pjw.c (hash_pjw): Likewise.
77158         Switch to method described by Bruno Haible.
77159         Include <limits.h>, for CHAR_BIT.
77160         (SIZE_BITS): New macro.
77161
77162 2003-10-23  Paul Eggert  <eggert@twinsun.com>
77163
77164         * m4/getline.m4 (AM_FUNC_GETLINE):
77165         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
77166         hosts.  Problem reported by Derek Robert Price in
77167         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
77168         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
77169         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
77170
77171 2003-10-21  Paul Eggert  <eggert@twinsun.com>
77172
77173         * lib/getndelim2.c (getndelim2): When size calculation overflows,
77174         ceiling the allocation at NMAX bytes rather than silently
77175         discarding input bytes before NMAX is reached.  This makes
77176         a difference only if NMAX exceeds SIZE_MAX / 2.
77177
77178         * lib/obstack.c: Merge from glibc.
77179         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
77180         Add libc_hidden_def (_obstack_newchunk).
77181         (_obstack_free) [! defined _LIBC]: Remove.
77182         [defined _LIBC]: Make a strong alias from obstack_free, rather than
77183         a clone of the function body.
77184         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
77185         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
77186
77187         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
77188         glibc.
77189         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
77190         arg to memcpy.
77191
77192         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
77193         (obstack_ptr_grow_fast, obstack_int_grow_fast):
77194         Don't use lvalue casts, as GCC plans to remove support for them
77195         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
77196         was also present in the non-GCC version, indicating that this
77197         code had always been buggy and had never been widely used.
77198         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
77199         Use the fast variant of each macro, rather than copying the
77200         definiens of the fast variant; that way, we'll be more likely to
77201         catch future bugs in the fast variants.
77202
77203 2003-10-20  Bruno Haible  <bruno@clisp.org>
77204
77205         * modules/wait-process: New file.
77206         * MODULES.html.sh (func_all_modules): Add wait-process.
77207
77208 2003-10-20  Bruno Haible  <bruno@clisp.org>
77209
77210         * m4/wait-process.m4: New file.
77211
77212 2003-10-20  Bruno Haible  <bruno@clisp.org>
77213
77214         * lib/wait-process.h: New file, from GNU gettext.
77215         * lib/wait-process.c: New file, from GNU gettext.
77216
77217 2003-10-19  Jim Meyering  <jim@meyering.net>
77218
77219         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
77220         HPUX 10.20.
77221
77222 2003-10-18  Karl Berry  <karl@gnu.org>
77223
77224         * config/config.guess: update from config.
77225
77226 2003-10-16  Paul Eggert  <eggert@twinsun.com>
77227
77228         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
77229         (getgroups): First arg is int, not size_t.
77230         Don't let 'free' mangle errno.
77231
77232 2003-10-16  Paul Eggert  <eggert@twinsun.com>
77233
77234         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
77235
77236 2003-10-16  Karl Berry  <karl@gnu.org>
77237
77238         * config/config.{guess,sub}: update from config.
77239
77240 2003-10-16  Jim Meyering  <jim@meyering.net>
77241
77242         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
77243         memcpy.
77244
77245 2003-10-15  Paul Eggert  <eggert@twinsun.com>
77246
77247         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
77248         (SIZE_MAX): Remove.
77249         (new_exclude, add_exclude_file): Initial size no longer needs to
77250         be a power of 2.
77251         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
77252         our own address arithmetic overflow checking.
77253
77254         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
77255         (fnmatch): Do not alloca more than 2000 wide characters;
77256         instead, use malloc for large buffers.
77257         Check for address arithmetic overflow, and return -1
77258         with errno set to ENOMEM in that case.
77259         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
77260         (NEW_PATTERN): Do not alloca more than 8000 bytes;
77261         instead, return -1.  Check for address arithmetic overflow.
77262
77263 2003-10-14  Paul Eggert  <eggert@twinsun.com>
77264
77265         Handle invalid suffixes and overflow independently, so that
77266         callers can treat them independently as needed.  Fix some bugs in
77267         suffix handling, e.g., "100k@" was not diagnosed as an invalid
77268         suffix for a human-readable blocksize.  The major caller-visible
77269         change is the addition of a new
77270         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
77271         that both overflow and suffix chars were found.
77272
77273         * lib/human.c (humblock): Don't check separately for invalid suffix
77274         char; that is xstrtoumax's job (now that its bug is fixed).
77275         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
77276         INTMAX_MAX]: New macros.
77277         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
77278         TYPE_MAXIMUM): New macros.
77279         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
77280         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
77281         if overflow occurs, as it's what __strtol does and it's more useful
77282         in practice.
77283         (__xstrtol): If __strtol reports some error other than ERANGE,
77284         reflect it to the caller as LONGINT_INVALID.  If it reports
77285         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
77286         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
77287         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
77288         value.
77289         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
77290         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
77291         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
77292         [defined UINTMAX_MAX]: New macros.
77293
77294 2003-10-14  Bruno Haible  <bruno@clisp.org>
77295
77296         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
77297
77298 2003-10-14  Bruno Haible  <bruno@clisp.org>
77299
77300         * m4/sig_atomic_t: New file, from GNU gettext.
77301         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
77302
77303 2003-10-14  Bruno Haible  <bruno@clisp.org>
77304
77305         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
77306         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
77307         Also use volatile where needed.
77308
77309 2003-10-12  Paul Eggert  <eggert@twinsun.com>
77310
77311         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
77312         Change maintainer from Bruno Haible to 'all'.
77313
77314 2003-10-12  Paul Eggert  <eggert@twinsun.com>
77315
77316         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
77317
77318 2003-10-12  Paul Eggert  <eggert@twinsun.com>
77319
77320         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
77321         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
77322         and define in terms of the other primitives.
77323         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
77324         (SIZE_MAX): Define if not already defined.
77325         (array_size_overflow): New function.
77326         (xalloc_die): Abort instead of exiting if 'error' returns.
77327         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
77328         (xmalloc, xrealloc): Use them.
77329         (xcalloc): Check for address arithmetic overflow.
77330         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
77331         a bit faster than strcpy.
77332
77333 2003-10-10  Simon Josefsson  <jas@extundo.com>
77334
77335         * modules/argp (Depends-on): Add restrict and strcase.
77336
77337 2003-10-10  Simon Josefsson  <jas@extundo.com>
77338
77339         * m4/argp.m4: Add AC_C_INLINE.
77340
77341 2003-10-08  Paul Eggert  <eggert@twinsun.com>
77342
77343         Merge getpass from libc, plus a few fixes.
77344
77345         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
77346         Include <stdbool.h>.
77347         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
77348         __fsetlocking to empty.
77349         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
77350         do include <bits/libc-lock.h>.
77351         Do not include <fcntl.h>; not needed.
77352         [_LIBC]: Include <wchar.h>.
77353         (NOTCANCEL_MODE): New macro.
77354         (flockfile, funlockfile) [_LIBC]: New macros.
77355         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
77356         [!_LIBC]: New macros.
77357         (call_fclose): New function.
77358         (getpass): Use it.  Save tty stream separately; this simplifies the
77359         code and makes it more reliable if stdin happens to equal stdout.
77360         Invoke __fsetlocking on tty.
77361         Handle thread cancellation if needed.
77362         Namespace cleanup (use __tcgetattr, __getline).
77363         Use bool for Booleans.
77364         [USE_IN_LIBIO]: Handle wide streams.
77365         [!_LIBC]: Unconditionally do the fseek, since we don't know what
77366         stream might go where.
77367
77368         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
77369         doesn't have to include <stdio.h> before us.
77370         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
77371         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
77372         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
77373         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
77374         if not declared, so that we can use getpass.c code from libc without
77375         rewriting it.
77376         (flockfile, ftrylockfile, funlockfile): New macros.
77377
77378 2003-10-08  Paul Eggert  <eggert@twinsun.com>
77379
77380         * modules/getpass: Depend on stdbool.
77381
77382 2003-10-08  Paul Eggert  <eggert@twinsun.com>
77383
77384         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
77385
77386 2003-10-07  Karl Berry  <karl@gnu.org>
77387
77388         * config/config.{guess,sub}: update from config.
77389
77390 2003-10-06  Jim Meyering  <jim@meyering.net>
77391             Bruno Haible  <bruno@clisp.org>
77392
77393         This lets translators provide better translations for the
77394         "Written by ..." part of --version output.
77395         * lib/version-etc.h: Include stdarg.h.
77396         (version_etc_copyright): Declare as readonly.
77397         (version_etc): Make this function variadic with a NULL-terminated list
77398         of author name strings.
77399         (version_etc_va): New declaration.
77400         * lib/version-etc.c: Include stdarg.h, stdlib.h.
77401         (version_etc_copyright): Declare as readonly.
77402         (version_etc_va): New function. Provide a different translatable string
77403         for each possible number of authors < 10. Abbreviate when there are 10
77404         authors or more.
77405         (version_etc): Make this function variadic. Call version_etc_va.
77406         Suggestion from Gary V. Vaughan.
77407
77408         * lib/long-options.h (parse_long_options): Change prototype: the
77409         authors string is moved to the end and becomes variadic.
77410         * lib/long-options.c: Include stdarg.h.
77411         (parse_long_options): Make this function variadic, too.
77412         Call version_etc_va, not version_etc.
77413
77414 2003-10-06  Bruno Haible  <bruno@clisp.org>
77415
77416         * modules/version-etc-2: Remove file.
77417         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
77418
77419 2003-10-06  Bruno Haible  <bruno@clisp.org>
77420
77421         * modules/fatal-signal: New file.
77422         * MODULES.html.sh (func_all_modules): Add fatal-signal.
77423
77424 2003-10-06  Bruno Haible  <bruno@clisp.org>
77425
77426         * m4/fatal-signal.m4: New file.
77427         * m4/signalblocking.m4: New file, from GNU gettext.
77428
77429 2003-10-06  Bruno Haible  <bruno@clisp.org>
77430
77431         * lib/version-etc-2.h: Remove file.
77432         * lib/version-etc-2.c: Remove file.
77433
77434 2003-10-06  Bruno Haible  <bruno@clisp.org>
77435
77436         * lib/fatal-signal.h: New file, from GNU gettext.
77437         * lib/fatal-signal.c: New file, from GNU gettext.
77438
77439 2003-10-05  Paul Eggert  <eggert@twinsun.com>
77440
77441         * README: Rework advice for preventing empty .o files.
77442         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
77443         not <sys/types.h>.
77444
77445 2003-10-04  Karl Berry  <karl@gnu.org>
77446
77447         * lib/argp*: update from libc.
77448
77449 2003-10-04  Karl Berry  <karl@gnu.org>
77450
77451         * config/config.{guess,sub}: update from config.
77452
77453 2003-10-02  Bruno Haible  <bruno@clisp.org>
77454
77455         * modules/lchown (Include): Add lchown.h.
77456         * modules/time_r (Include): Use "..." syntax.
77457         * modules/xgetdomainname (Include): Add xgetdomainname.h.
77458
77459 2003-10-01  Simon Josefsson  <jas@extundo.com>
77460
77461         * MODULES.html.sh (func_all_modules): Move gethostname from section
77462         'based on' to section 'lacking' POSIX:2001.
77463
77464 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
77465
77466         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
77467         to output mode on the same stream.
77468
77469 2003-09-29  Paul Eggert  <eggert@twinsun.com>
77470
77471         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
77472         Fix arg typo in previous patch.
77473
77474 2003-09-28  Jim Meyering  <jim@meyering.net>
77475
77476         * lib/error.c: Correct cpp indentation.
77477
77478 2003-09-27  Paul Eggert  <eggert@twinsun.com>
77479
77480         * modules/free: New file.
77481
77482 2003-09-27  Paul Eggert  <eggert@twinsun.com>
77483
77484         * m4/free.m4: New file.
77485
77486 2003-09-27  Paul Eggert  <eggert@twinsun.com>
77487
77488         * lib/minmax.h (MIN, MAX)
77489         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
77490         Omit the special code that used __typeof__, since we worry that
77491         it could be more trouble than it's worth.  See:
77492         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
77493         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
77494
77495         * lib/free.c: New file.
77496
77497 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
77498
77499         Trivial fixes to Makefile.am parts of module listings.
77500         * modules/strstr: Append strstr.h to lib_SOURCES.
77501         * modules/strcase: Likewise, for strcase.h.
77502
77503 2003-09-27  Karl Berry  <karl@gnu.org>
77504
77505         * config/mkinstalldirs: update from automake.
77506
77507 2003-09-26  Paul Eggert  <eggert@twinsun.com>
77508
77509         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
77510         (error_tail): Do not loop, reallocating temporary buffer, since
77511         the output cannot contain more wide characters than the input
77512         contains bytes, the size must be big enough already.  This avoids
77513         one potential size overflow calculation.  Check for size overflow
77514         when calculating temporary buffer size.  Free temporary buffer
77515         when done, if it was allocated with malloc; this plugs a memory
77516         leak.  Remove casts from void * to pointers, that are no longer
77517         needed now that we're assuming C89 or better.
77518
77519         Merge error changes from glibc.
77520
77521         * lib/error.c, error.h: Update copyright notice header to match glibc.
77522         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
77523         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
77524         Disable cancellation while printing error.
77525         * lib/error.h: Prepend __ to parameter names.
77526
77527 2003-09-26  Jim Meyering  <jim@meyering.net>
77528
77529         * lib/error.c (error_tail): Move some declarations
77530         into inner scope where the local variables are used.
77531
77532 2003-09-26  Bruno Haible  <bruno@clisp.org>
77533
77534         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
77535         stpncpy().
77536         Don't define stpncpy through config.h; it's now done through stpncpy.h.
77537
77538 2003-09-26  Bruno Haible  <bruno@clisp.org>
77539
77540         * lib/stpncpy.h (gnu_stpncpy): New declaration.
77541         (stpncpy): Define as alias for gnu_stpncpy.
77542         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
77543
77544 2003-09-25  Simon Josefsson  <jas@extundo.com>
77545
77546         * lib/xgetdomainname.h: New file.
77547         * lib/xgetdomainname.c: New file.
77548
77549 2003-09-25  Simon Josefsson  <jas@extundo.com>
77550             Bruno Haible  <bruno@clisp.org>
77551
77552         * modules/getdomainname: New file.
77553         * modules/xgetdomainname: New file.
77554         * MODULES.html.sh (func_all_modules): Add getdomainname,
77555         xgetdomainname.
77556
77557 2003-09-25  Simon Josefsson  <jas@extundo.com>
77558             Bruno Haible  <bruno@clisp.org>
77559
77560         * m4/getdomainname.m4: New file.
77561
77562 2003-09-25  Simon Josefsson  <jas@extundo.com>
77563             Bruno Haible  <bruno@clisp.org>
77564
77565         * lib/getdomainname.h: New file.
77566         * lib/getdomainname.c: New file.
77567
77568 2003-09-25  Karl Berry  <karl@gnu.org>
77569
77570         * lib/argp-fmtstream.c, argp-help.c: update from libc.
77571
77572 2003-09-25  Karl Berry  <karl@gnu.org>
77573
77574         * config/install-sh: update from automake.
77575
77576 2003-09-25  Bruno Haible  <bruno@clisp.org>
77577
77578         * modules/version-etc-2: New file, from modules/version-etc with
77579         modifications.
77580         * MODULES.html.sh (func_all_modules): Add version-etc-2.
77581
77582 2003-09-25  Bruno Haible  <bruno@clisp.org>
77583
77584         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
77585         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
77586
77587 2003-09-24  Simon Josefsson  <jas@extundo.com>
77588
77589         * modules/xgethostname: Add xgethostname.h.
77590
77591 2003-09-24  Paul Eggert  <eggert@twinsun.com>
77592
77593         * lib/linebuffer.c (freebuffer): Don't free the argument, just
77594         the buffer associated with the argument.  Bug reported by
77595         Simon Josefsson.
77596
77597 2003-09-24  Paul Eggert  <eggert@twinsun.com>
77598
77599         * README: Document assumptions that 'int' is at least 32 bits
77600         wide, that integer arithmetic is 2's complement without overflow,
77601         that there are no holes in integer values, that adding sizes of
77602         two nonoverlapping objects can't overflow, and that all-bits-zero
77603         yields scalar zero.  Fix spelling and capitalization typos.
77604
77605 2003-09-19  Karl Berry  <karl@gnu.org>
77606
77607         * lib/argp.h: update from libc.
77608
77609 2003-09-17  Paul Eggert  <eggert@twinsun.com>
77610
77611         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
77612         to avoid spurious warnings like "AC_RUN_IFELSE was called before
77613         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
77614
77615 2003-09-17  Paul Eggert  <eggert@twinsun.com>
77616
77617         * gnulib-tool: Use "test -h", not "test -L", for portability
77618         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
77619         (tags_regexp): Remove, since \| doesn't conform to POSIX.
77620         (sed_extract_prog): Issue s commands one-by-one, rather than
77621         using \| in one s command.
77622
77623 2003-09-16  Paul Eggert  <eggert@twinsun.com>
77624
77625         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
77626         input error, instead of returning NULL the next time we are called
77627         (and therefore losing track of errno).
77628
77629 2003-09-16  Bruno Haible  <bruno@clisp.org>
77630
77631         * gnulib-tool (func_create_testdir): Warn about duplicated
77632         dependencies.
77633
77634 2003-09-15  Paul Eggert  <eggert@twinsun.com>
77635
77636         * modules/argmatch, modules/fatal, modules/obstack,
77637         modules/xalloc, modules/xgethostname: Sort dependencies by
77638         importance, not alphabetically.
77639
77640 2003-09-15  Paul Eggert  <eggert@twinsun.com>
77641
77642         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
77643         fails, so that the caller gets the proper errno.
77644
77645         * lib/readutmp.c (read_utmp): Likewise.
77646         Check for fstat error.  Close stream and free storage
77647         when failing.
77648
77649 2003-09-14  Karl Berry  <karl@gnu.org>
77650
77651         * config/srclist.txt (strdup.c): disable for c89 changes.
77652
77653 2003-09-14  Jim Meyering  <jim@meyering.net>
77654
77655         * lib/getloadavg.c: Correct cpp indentation.
77656         * lib/strdup.c: Likewise.
77657         * lib/vasnprintf.c: Likewise.
77658
77659 2003-09-14  Bruno Haible  <bruno@clisp.org>
77660
77661         * modules/fwriteerror: New file.
77662         * MODULES.html.sh (func_all_modules): Add fwriteerror.
77663
77664 2003-09-14  Bruno Haible  <bruno@clisp.org>
77665
77666         * lib/fwriteerror.h: New file.
77667         * lib/fwriteerror.c: New file.
77668
77669 2003-09-12  Paul Eggert  <eggert@twinsun.com>
77670
77671         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
77672         modules/xgethostname, modules/xalloc: Depend on exit.
77673
77674 2003-09-12  Paul Eggert  <eggert@twinsun.com>
77675
77676         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
77677
77678         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
77679         and AC_MINIX, too, so that their extensions are available.
77680
77681         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
77682         This macro has been superseded by gl_BACKUPFILE.
77683
77684         More patches to assume C89 or better.
77685
77686         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
77687
77688         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
77689         unconditionally.
77690         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
77691         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
77692         Include <string.h>, <stdlib.h> unconditionally.
77693         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
77694         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
77695         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
77696         headers or for string.h.
77697         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
77698         or strtoul.
77699
77700         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
77701         headers.
77702         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
77703         * m4/userspec.m4 (gl_USERSPEC): Likewise.
77704         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
77705         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
77706         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
77707         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
77708         memcpy, memset.
77709         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
77710         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
77711         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
77712         strtol.
77713         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
77714         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
77715         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
77716         strtoul.
77717
77718 2003-09-12  Paul Eggert  <eggert@twinsun.com>
77719
77720         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
77721         * lib/obstack.c [!defined _LIBC]: Likewise.
77722         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
77723         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
77724         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
77725
77726         More changes to assume C89 or better.
77727
77728         * lib/error.c (error_tail): Assume vprintf.
77729
77730         * lib/argmatch.c (getenv): Remove decl.
77731         * lib/progreloc.c (get_full_program_name): Define via prototype.
77732         * lib/setenv.c (clearenv): Likewise.
77733         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
77734         needed.
77735         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
77736         (malloc, memcpy): Remove decls.
77737         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
77738         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
77739         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
77740         (memcpy): Remove macro.
77741         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
77742         (__P): Remove.  All uses removed.
77743         (PTR): Remove.  All uses changed to void *.
77744         (CHAR_BIT, NULL): Remove.
77745         (spaces, zeros, memset_space, memset_zero)
77746         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
77747         Remove.
77748         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
77749         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
77750         Define with prototype.
77751         Remove now-unnecessary prototype decl.
77752         (extra_args_spec): Assume ANSI C.  All uses changed.
77753         (extra_args_spec_iso): Remove.
77754         (my_strftime, emacs_strftimeu): Define via prototype.
77755         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
77756         unconditionally.
77757         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
77758         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
77759         (strtoul, strtol): Remove decls.
77760         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
77761         LONG_MAX): Remove.
77762         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
77763         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
77764         (LOCALE_PARAM_PROTO): New macro.
77765         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
77766         (INTERNAL (strtol), strtol): Define with a prototype.
77767         (PARAMS): Remove.  All uses removed.
77768         * lib/tempname.c: Include <string.h> unconditionally.
77769         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
77770         * lib/xgethostname.c (main): Define with a prototype.
77771         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
77772         Include <stdlib.h> unconditionally.
77773         (calloc, malloc, realloc, free): Remove decls.
77774         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
77775         Include <stdlib.h> unconditionally.  Sort include file names.
77776         (strtod): Remove.
77777         (xstrtod): Define with a prototype.
77778         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
77779         (strtol, strtoul): Remove decls.
77780
77781 2003-09-11  Paul Eggert  <eggert@twinsun.com>
77782
77783         More patches to assume C89 or better.
77784         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
77785         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
77786         string.h, memchr, STDC_HEADERS.
77787
77788 2003-09-11  Paul Eggert  <eggert@twinsun.com>
77789
77790         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
77791         Include <stdlib.h>, <string.h> unconditionally.
77792         Remove now-unnecessary cast to char *.
77793         * lib/strnlen.c: Include <string.h> unconditionally.
77794         * lib/yesno.c (yesno): Define with a prototype.
77795
77796 2003-09-11  Bruno Haible  <bruno@clisp.org>
77797
77798         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
77799
77800 2003-09-10  Jim Meyering  <jim@meyering.net>
77801
77802         * lib/error.c: Correct indentation of cpp directives.
77803
77804 2003-09-10  Bruno Haible  <bruno@clisp.org>
77805
77806         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
77807         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
77808         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
77809         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
77810         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
77811         <stdlib.h> and <string.h> checks.
77812         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
77813         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
77814
77815 2003-09-10  Bruno Haible  <bruno@clisp.org>
77816
77817         * lib/strcspn.c: Include <string.h> unconditionally.
77818         * lib/strpbrk.c: Include <string.h> unconditionally.
77819         * lib/strstr.c: Include <string.h> unconditionally.
77820         * lib/unicodeio.c: Include <string.h> unconditionally.
77821         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
77822         * lib/unsetenv.c: Likewise.
77823         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
77824         * lib/yesno.c: Include <stdlib.h> unconditionally.
77825         (rpmatch): Add prototype.
77826
77827 2003-09-09  Paul Eggert  <eggert@twinsun.com>
77828
77829         More patches to assume C89 or better.
77830         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
77831         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
77832         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
77833         or for string.h.
77834         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
77835         stdlib.h.
77836         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
77837         C headers.
77838         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
77839         string.h.
77840         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
77841         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
77842         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
77843         or for string.h.
77844         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
77845         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
77846         C headers.
77847         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
77848         memcpy.
77849         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
77850         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
77851         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
77852         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
77853         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
77854         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
77855         string.h, free.
77856         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
77857         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
77858         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
77859         C headers, or for string.h.
77860         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
77861         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
77862         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
77863         headers, memory.h, stdlib.h, string.h, strings.h.
77864         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
77865         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
77866         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
77867         strchr.
77868         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
77869         headers, memory.h, string.h.
77870         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
77871         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
77872         free.
77873         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
77874         headers.
77875         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
77876         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
77877         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
77878         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
77879         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
77880
77881 2003-09-09  Paul Eggert  <eggert@twinsun.com>
77882
77883         More K&R removal.
77884
77885         * lib/acosl.c (main): Use a prototype.
77886         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
77887         tanl.c: Likewise.
77888
77889         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
77890
77891         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
77892         (getopt, etopt_long, getopt_long_only, _getopt_internal)
77893         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
77894         with a prototype.
77895         * lib/getopt.c (const): Remove macro.
77896         Include <string.h> unconditionally.
77897         (my_index): Remove; all uses changed to strchr.
77898         (strlen): Remove decl.
77899         (exchange): Remove forward decl; no longer needed.
77900         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
77901         Define with prototype.
77902         * lib/getopt1.c (const): Remove macro.
77903         (getopt_long, getopt_long_only, main): Define with prototype.
77904
77905         * lib/getugroups.c: Include <string.h> unconditionally.
77906
77907         * lib/getusershell.c: Include <stdlib.h> unconditionally.
77908         (getusershell, setusershell, endusershell, readname, main):
77909         Define with prototypes.
77910
77911         * lib/group-member.c: Include group-member.h first.
77912         Include <stdlib.h> unconditionally.
77913
77914         * lib/hard-locale.c: Include hard-locale.h first.
77915         Include <stdlib.h>, <string.h> unconditionally.
77916
77917         * lib/hash.c (free, malloc): Remove decls.
77918         Include <stdlib.h> unconditionally.
77919
77920         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
77921         (getenv): Do not declare.
77922
77923         * lib/idcache.c: Include <string.h> unconditionally.
77924
77925         * lib/long-options.c: Include long-options.h first, to test interface.
77926         Include <stdlib.h> unconditionally.
77927
77928         * lib/makepath.c: Include makepath.h first, to test interface.
77929         Include <stdlib.h> and <string.h> unconditionally.
77930
77931         * lib/linebuffer.c: Include <stdlib.h>.
77932         (free): Remove decl.
77933
77934         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
77935         stddef.h. rpl_malloc returns void *, not char *.
77936         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
77937         prototype.
77938
77939         * lib/md5.h: Include <limits.h> unconditionally.
77940         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
77941         (__P): Remove; all uses removed.
77942         * lib/md5.c: Include "md5.h" first.
77943         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
77944         md5_buffer, md5_process_bytes, md5_process_block):
77945         Define with prototypes.
77946         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
77947         * lib/sha.c: Include "sha.h" first.
77948         Include <stdlib.h>, <string.h> unconditionally.
77949
77950         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
77951         * lib/memcmp.c (__ptr_t): Likewise.
77952         * lib/memrchr.c (__ptr_t): Likewise.
77953         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
77954         Include <string.h> unconditionally.
77955         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
77956         * lib/memchr.c: Include <stdlib.h> unconditionally.
77957         * lib/memchr.c (LONG_MAX): Remove.
77958         * lib/memrchr.c (LONG_MAX): Likewise.
77959         * lib/memchr.c (__memchr): Define via a prototype.
77960         * lib/memrchr.c (__memrchr): Likewise.
77961         * lib/memcmp.c (__P): Remove, and remove all uses.
77962         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
77963         Remove forward decls; no longer needed.
77964         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
77965         Use types required by C89 in prototype.
77966
77967         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
77968         * lib/savedir.c: Likewise.
77969         * lib/mkdir.c (free): Remove decl.
77970         * lib/rmdir.c (rmdir): Define with a prototype.
77971         * lib/savedir.c: Include savedir.h first, to test interface.
77972
77973         * lib/mktime.c (STDC_HEADERS): Remove.
77974         Include <stdlib.h>, <string.h> unconditionally.
77975
77976         * lib/modechange.c: Include <stdlib.h> unconditionally.
77977         (malloc): Remove decl.
77978
77979         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
77980         (free): Remove decl.
77981
77982         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
77983         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
77984         (This type really should be intptr_t, but that's a C99ism.)
77985         (_obstack_memcpy): Remove: all uses changed to memcpy.
77986         Include <string.h> unconditionally.
77987         (struct obstack): Assume __STDC__ for types of members
77988         chunkfun, freefun, extra_arg.
77989         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
77990         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
77991         obstack_begin, obstack_specify_allocation,
77992         obstack_specify_allocation_with_arg, obstack_chunkfun,
77993         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
77994         Remove unprototyped decls and the macros that use them.
77995         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
77996         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
77997         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
77998         (defined __STDC__ && __STDC__)]:
77999         Remove nonprototyped code.
78000         Include <stdlib.h> unconditionally.
78001         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
78002         _obstack_allocated_p, _obstack_free, obstack_free,
78003         _obstack_memory_used, print_and_abort):
78004         Define using prototypes.
78005         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
78006         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
78007         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
78008         obstack_next_free, obstack_object_size, obstack_room) [0]:
78009         Remove unused, unprototyped code.
78010
78011         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
78012
78013         * lib/physmem.c (physmem_total, physmem_available, main): Define
78014         with prototypes.
78015
78016         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
78017         (main): Define with a prototype.
78018
78019         * lib/posixver.c (getenv): Remove decl.
78020
78021         * lib/putenv.c (malloc): Returns void *, not char *.
78022         Include <string.h> unconditionally.
78023         (strchr, memcpy, NULL): Do not define.
78024
78025         * lib/readtokens.c: Include readtokens.h first, to test interface.
78026         Include <stdlib.h>, <string.h> unconditionally.
78027         (init_tokenbuffer): Define with a prototype.
78028
78029         * lib/regex.c (PARAMS): Remove.  All uses removed.
78030         All uses of _RE_ARGS removed, too.
78031         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
78032         unconditionally.
78033         (bzero): Assume memset exists.
78034         (memcmp, memcpy, NULL): Remove.
78035         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
78036         char, or assignments to local vars of type signed char.
78037         (init_syntax_once, PREFIX(extract_number_and_incr),
78038         PREFIX(print_partial_compiled_pattern),
78039         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
78040         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
78041         PREFIX(regex_grow_registers), PREFIX(regex_compile),
78042         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
78043         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
78044         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
78045         wcs_compile_range, byte_compile_range, truncate_wchar,
78046         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
78047         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
78048         count_mbs_length, wcs_re_match_2_internal,
78049         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
78050         PREFIX(alt_match_null_string_p),
78051         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
78052         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
78053         regfree, PREFIX(extract_number)): Define with prototype.  Remove
78054         now-unnecessary declaration, if any.
78055         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
78056         regcomp, regexec):
78057         Remove now-unnecessary casts among pointer types.
78058         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
78059
78060         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
78061         (free): Remove decl.
78062
78063         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
78064
78065         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
78066         (free): Remove decl.
78067
78068         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
78069         * lib/xgetcwd.c: Likewise.
78070
78071         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
78072         (free): Remove decl.
78073
78074         * lib/strchrnul.c (strchrnul): Define with a prototype.
78075         Fix bug: c_in was not converted to char before searching.
78076
78077         The following changes are not K&R related:
78078
78079         * lib/group-member.h: Include <sys/types.h>, so that this file is
78080         self-contained.
78081         * lib/makepath.h: Likewise.
78082
78083         * lib/getusershell.c (readname, default_index, line_size, readname):
78084         Use size_t, not int, for sizes.
78085         (readname): If the size overflows, report an error instead of
78086         looping forever.
78087
78088 2003-09-09  Paul Eggert  <eggert@twinsun.com>
78089
78090         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
78091         libc.
78092
78093 2003-09-09  Paul Eggert  <eggert@twinsun.com>
78094
78095         * README: New section: portability guidelines.
78096
78097 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
78098
78099         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
78100         C89 spec.
78101
78102 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
78103
78104         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
78105
78106 2003-09-08  Paul Eggert  <eggert@twinsun.com>
78107
78108         Assume C89 or better; remove K&R cruft.
78109         A few of these changes were first proposed by Derek Robert Price
78110         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
78111
78112         * lib/addext.c: Include <string.h> unconditionally.
78113         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
78114         Don't declare getenv or malloc.
78115
78116         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
78117         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
78118         (NULL): Remove.
78119         (find_stack_direction, alloca): Use prototypes.
78120
78121         * lib/atexit.c (atexit): Define using a prototype.
78122
78123         * lib/basename.c, dirname.c, stripslash.c:
78124         Include <string.h> unconditionally.
78125
78126         * lib/bcopy.c: Include <stddef.h>.
78127         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
78128
78129         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
78130
78131         * lib/error.h (error, error_at_line, error_print_progname)
78132         [! (defined (__STDC__) && __STDC__)]: Remove decls.
78133         * lib/error.c: Include error.h first, to check interface.
78134         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
78135         (VA_START): Remove; all uses changeed to va_start.
78136         (exit, strerror): Remove decls.
78137         (error_print_progname): Prototype uncondionally.
78138         Don't include <errno.h>; no longer needed.
78139         (private_strerror): Remove.
78140         (error_tail): Always define.
78141         (error, error_at_line): Assume C89 or better; always use prototypes.
78142         * lib/fatal.c: Include "fatal.h" first, to test interface.
78143         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
78144         (VA_START): Remove; all uses changed to va_start.
78145         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
78146         this case.
78147         (exit): Remove decl.
78148         (fatal): Prototype unconditionally.  Assume va_start works.
78149         Abort at end, to pacify gcc.
78150
78151         * lib/euidaccess.c (main): Define with a prototype.
78152
78153         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
78154
78155         * lib/exitfail.c: Include <stdlib.h> unconditionally.
78156
78157         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
78158         prototypes.
78159         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
78160         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
78161         (getenv): Remove decl.
78162         (fnmatch): Define using a prototype.
78163         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
78164         (FCT): Define using a prototype.
78165
78166         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
78167
78168         * lib/gethostname.c: Include <stddef.h>.
78169         (gethostname): Define with prototype.  Length is size_t, not int.
78170
78171 2003-09-08  Paul Eggert  <eggert@twinsun.com>
78172
78173         Assume C89 or better; remove K&R cruft.
78174         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
78175         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
78176         string.h, getenv, malloc.
78177         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
78178         headers.
78179         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
78180         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
78181         do not check for strerror.
78182         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
78183         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
78184         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
78185         do not check for doprnt or vprintf.
78186         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
78187         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
78188
78189 2003-09-08  Paul Eggert  <eggert@twinsun.com>
78190
78191         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
78192         getversion.c should have been removed then, but was accidentally
78193         preserved.
78194
78195         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
78196         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
78197
78198 2003-09-08  Karl Berry  <karl@gnu.org>
78199
78200         * config/config.sub, config.guess, srclistvars.sh: update from savannah
78201                 config, forget about prep.
78202
78203         * config/depcomp, missing: update from automake.
78204
78205 2003-09-07  Paul Eggert  <eggert@twinsun.com>
78206
78207         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
78208         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
78209
78210 2003-09-07  Paul Eggert  <eggert@twinsun.com>
78211
78212         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
78213         copy_tm_result.  Bug reported by Simon Josefsson in
78214         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
78215
78216 2003-09-06  Paul Eggert  <eggert@twinsun.com>
78217
78218         * m4/time_r.m4: New file.
78219         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
78220         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
78221         is. Check for timegm declaration.
78222         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
78223         Do not check for gmtime_r.
78224         Replace mktime if __mktime_internal does not exist and if mktime
78225         hasn't been replaced already.
78226
78227 2003-09-06  Paul Eggert  <eggert@twinsun.com>
78228
78229         * lib/time_r.c, lib/time_r.h: New files.
78230
78231         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
78232         __localtime_r.
78233         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
78234         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
78235
78236         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
78237         __gmtime_r.
78238         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
78239         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
78240         Include <time_r.h>.
78241
78242         * lib/timegm.c: Switch to glibc implementation, with the following
78243         changes:
78244         [defined HAVE_CONFIG_H]: Include <config.h>.
78245         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
78246         (__mktime_internal) [!defined _LIBC]: New decl.
78247         (__gmtime_r) [!defined _LIBC]: New macro and function.
78248         (timegm): Use a prototype, since gnulib assumes C89.
78249         Do not bother declaring tmp to be const, as it's not really usefu.
78250         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
78251         (timegm): Declare only if HAVE_DECL_TIMEGM.
78252
78253 2003-09-06  Paul Eggert  <eggert@twinsun.com>
78254
78255         * MODULES.html.sh (func_all_modules): Add time_r.
78256         * modules/time_r: New file.
78257         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
78258         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
78259
78260 2003-09-03  Paul Eggert  <eggert@twinsun.com>
78261
78262         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
78263         Bug reported by Lute Kamstra in
78264         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
78265
78266         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
78267         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
78268         course with correspondingly smaller numbers for tomorrow and
78269         yesterday.  From Tadayoshi Funaba.  Originally installed into
78270         sh-utils on 1999-08-07, but the patch got lost (I guess during the
78271         coreutils merge?).
78272
78273 2003-08-31  Simon Josefsson  <jas@extundo.com>
78274
78275         * modules/timegm: New file.
78276         * MODULES.html.sh (func_all_modules): Add timegm.
78277
78278 2003-08-31  Simon Josefsson  <jas@extundo.com>
78279
78280         * m4/timegm.m4: New file.
78281
78282 2003-08-31  Simon Josefsson  <jas@extundo.com>
78283
78284         * lib/timegm.h: New file.
78285         * lib/timegm.c: New file.  Based on
78286         wget-1.8.2/src/http.c:mktime_from_utc.
78287
78288 2003-08-31  Karl Berry  <karl@gnu.org>
78289
78290         * lib/argp.h: update from libc.
78291
78292 2003-08-28  Bruno Haible  <bruno@clisp.org>
78293
78294         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
78295         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
78296         followed by '#define fnmatch fnmatch_posix' gives an error.
78297
78298 2003-08-28  Bruno Haible  <bruno@clisp.org>
78299
78300         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
78301         warning on QNX, which defines O_BINARY to 000000.
78302
78303 2003-08-27  Jim Meyering  <jim@meyering.net>
78304
78305         * m4/mkstemp.m4: Require that the system mkstemp be able to create
78306         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
78307         would fail after 32.  Reported by Danny Levinson.  Details here:
78308         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
78309
78310 2003-08-24  Bruno Haible  <bruno@clisp.org>
78311
78312         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
78313         MSVC7 <stdio.h> is included later.
78314
78315 2003-08-22  Simon Josefsson  <jas@extundo.com>
78316
78317         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
78318
78319 2003-08-20  Karl Berry  <karl@gnu.org>
78320
78321         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
78322
78323 2003-08-20  Bruno Haible  <bruno@clisp.org>
78324
78325         * modules/progname: New file.
78326         * MODULES.html.sh (func_all_modules): Add progname.
78327
78328 2003-08-20  Bruno Haible  <bruno@clisp.org>
78329
78330         * lib/progname.h: New file, from GNU gettext.
78331         * lib/progname.c: New file, from GNU gettext.
78332         * lib/progreloc.c: New file, from GNU gettext.
78333
78334 2003-08-19  Jim Meyering  <jim@meyering.net>
78335
78336         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
78337         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
78338
78339 2003-08-19  Bruno Haible  <bruno@clisp.org>
78340
78341         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
78342         more.
78343
78344 2003-08-19  Bruno Haible  <bruno@clisp.org>
78345
78346         * lib/xstrdup.c: Assume <string.h> exists.
78347
78348 2003-08-18  Paul Eggert  <eggert@twinsun.com>
78349
78350         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
78351         in makefile rules.
78352
78353 2003-08-18  Jim Meyering  <jim@meyering.net>
78354
78355         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
78356         * m4/lib-ld.m4: Likewise.
78357
78358 2003-08-18  Jim Meyering  <jim@meyering.net>
78359
78360         * lib/setenv.h: Indent nested cpp directive.
78361         * lib/vasnprintf.c: Remove trailing blanks.
78362
78363 2003-08-17  Simon Josefsson  <jas@extundo.com>
78364
78365         * modules/xstrndup: New file.
78366         * MODULES.html.sh (func_all_modules): Add xstrndup.
78367
78368 2003-08-17  Simon Josefsson  <jas@extundo.com>
78369
78370         * modules/argp: Fix autoconf macro name. Add more dependencies.
78371
78372 2003-08-17  Simon Josefsson  <jas@extundo.com>
78373
78374         * m4/xstrndup.m4: New file.
78375
78376 2003-08-17  Simon Josefsson  <jas@extundo.com>
78377
78378         * m4/argp.m4: New file.
78379
78380 2003-08-17  Simon Josefsson  <jas@extundo.com>
78381             Bruno Haible  <bruno@clisp.org>
78382
78383         * lib/xstrndup.h: New file.
78384         * lib/xstrndup.c: New file.
78385
78386 2003-08-17  Bruno Haible  <bruno@clisp.org>
78387
78388         * modules/strndup (Files, Include): Add lib/strndup.h.
78389
78390 2003-08-17  Bruno Haible  <bruno@clisp.org>
78391
78392         * modules/euidaccess (Files): Add lib/euidaccess.h.
78393
78394 2003-08-17  Bruno Haible  <bruno@clisp.org>
78395
78396         * lib/strndup.h: New file.
78397
78398 2003-08-17  Bruno Haible  <bruno@clisp.org>
78399
78400         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
78401         like AC_GNU_SOURCE.
78402         * modules/extensions (configure.ac): Comment out the invocation of
78403         gl_USE_SYSTEM_EXTENSIONS.
78404
78405 2003-08-16  Paul Eggert  <eggert@twinsun.com>
78406
78407         Merges from coreutils, etc.
78408         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
78409         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
78410         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
78411         fixing a typo.
78412         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
78413         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
78414
78415 2003-08-16  Paul Eggert  <eggert@twinsun.com>
78416
78417         Document merge from coreutils.
78418         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
78419         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
78420         * modules/utime: Add m4/utimes-null.m4.
78421
78422 2003-08-16  Paul Eggert  <eggert@twinsun.com>
78423
78424         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
78425         space, undoing this 2003-08-12 change:
78426         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
78427
78428 2003-08-16  Paul Eggert  <eggert@twinsun.com>
78429
78430         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
78431         strtoul.c from libc, undoing this 2003-08-12 change:
78432         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
78433
78434 2003-08-16  Jim Meyering  <jim@meyering.net>
78435
78436         Merges from coreutils.
78437         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
78438         prefix.  Adjust cache variables similarly.  Create 500 rather than
78439         just 300 files, to exercise bug on Darwin6.5, too.
78440         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
78441         $missing_dir.
78442         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
78443         AM_SYS_POSIX_TERMIOS.
78444         Reported by mkc@mathdogs.com.
78445         Also change use of $am_cv_sys_posix_termios
78446         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
78447         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
78448         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
78449         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
78450         in /proc/mounts until it finds one with matching device number.  This
78451         is unnecessary when the FILE argument *is* a mount point.  No stat call
78452         is necessary in that case.  So, disable the statvfs-testing code on
78453         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
78454         as RedHat bug# 84846.
78455         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
78456         to 1MB, so as not to render systems with no stack size limit (e.g.,
78457         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
78458         Include <unistd.h>.  On some systems,
78459         it is required for the definition of _SC_PAGESIZE.
78460
78461 2003-08-16  Jim Meyering  <jim@meyering.net>
78462
78463         Merge from coreutils.
78464         * lib/xstrtoimax.c: #else #if -> #elif.
78465         * lib/xstrtoumax.c: Likewise.
78466
78467 2003-08-16  Jim Meyering  <jim@meyering.net>
78468
78469         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
78470         * m4/utimes.m4: Removed.
78471         * m4/utimes-null.m4: Renamed from utimes.m4.
78472
78473         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
78474         to 1MB, so as not to render systems with no stack size limit (e.g.,
78475         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
78476         Include <unistd.h>.  On some systems,
78477         it is required for the definition of _SC_PAGESIZE.
78478
78479 2003-08-16  Jim Meyering  <jim@meyering.net>
78480         and Paul Eggert  <eggert@cs.ucla.edu>
78481
78482         Merges from coreutils, etc.
78483
78484         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
78485         using the latest version from cvs.  This avoids problems with #line
78486         directives using a vendor (Sun) compiler.
78487         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
78488         Don't set GETGROUPS_LIB here; now it's
78489         done via getgroups.m4's wrapper function.
78490         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
78491         rather than just in sh-util/configure.in, so that the
78492         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
78493         same.
78494         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
78495         AC_FUNC_GETLOADAVG where to find getloadavg.c.
78496         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
78497         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
78498         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
78499         Remove code that is now done by the newly-required macros.
78500         Append $(EXEEXT) to DF_PROG.
78501         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
78502         Do not invoke or require the following here,
78503         since prereq.m4 or some gnulib .m4 now does this for us:
78504         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
78505         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
78506         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
78507         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
78508         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
78509         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
78510         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
78511         AC_FUNC_OBSTACK.
78512         Do not replace the following functions, as this is now the job
78513         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
78514         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
78515         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
78516         atexit getpass, strdup, getpagesize.
78517         Replace 'raise'.
78518         Do not check for the following functions, as this is now the job
78519         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
78520         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
78521         setregid.
78522         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
78523         Check for sys/sysctl.h.
78524         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
78525         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
78526         of checking for ssize_t ourselves.
78527
78528         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
78529         Require every macro that gnulib/modules/* suggests for us.
78530         (jm_PREREQ_ADDEXT): New macro.
78531         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
78532         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
78533
78534         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
78535         (gl_PHYSMEM): Use it.
78536         Also check for `table' function.
78537         Check for new headers and functions.
78538         Add check for sys/sysmp.h.
78539         With suggestions from Kaveh Ghazi.
78540         Ignore headers that are present but cannot be compiled.  This
78541         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
78542         C 5.4.
78543
78544 2003-08-15  Paul Eggert  <eggert@twinsun.com>
78545
78546         Document merge from coreutils.
78547         * modules/userspec: Depend on posixver.
78548         * modules/strftime: Depend on tzset.
78549
78550 2003-08-15  Paul Eggert  <eggert@twinsun.com>
78551
78552         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
78553         rather than tab, after '#' in shell-script copyright notices.
78554         Suggested by Bruno Haible.
78555
78556 2003-08-15  Paul Eggert  <eggert@twinsun.com>
78557
78558         * config/srclist-update: Use three spaces, rather than tab, after '#'
78559         in shell-script copyright notices.  Suggested by Bruno Haible.
78560         Remove unnecessary parenthesization in regular expression.
78561
78562 2003-08-15  Jim Meyering  <jim@meyering.net>
78563
78564         Merge from coreutils.
78565         * lib/xgethostname.c: Include <stdlib.h>.
78566         (xghostname): Don't exit for anything other than memory-related
78567         failure; just return NULL.
78568         * lib/userspec.c: Include "posixver.h".
78569         (parse_user_spec): Accept `.' as a separator only
78570         in pre-POSIX-200112 mode.
78571         * lib/strtoimax.c: Use #elif rather than #else #if.
78572         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
78573         Remove function, now that we can rely on a working tzset function.
78574         [!_LIBC]: Ensure that the required autoconf test has been run.
78575         [!defined _NL_CURRENT && HAVE_STRFTIME]:
78576         Use underlying_strftime for %r.
78577         * lib/sha.c: Merge in some clean-up and optimization changes from
78578         glibc.
78579         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
78580         Ensure that it is a multiple of 64.
78581         Rearrange loop exit tests so as to avoid performing an
78582         additional fread after encountering an error or EOF.
78583         * lib/realloc.c: Update copyright date.
78584
78585 2003-08-15  Jim Meyering  <jim@meyering.net>
78586         and Paul Eggert  <eggert@twinsun.com>
78587
78588         Merge from coreutils.
78589         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
78590         member but strut utmpx does not.  Needed for AIX 4.3.3.
78591         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
78592
78593 2003-08-15  Jim Meyering  <jim@meyering.net>
78594         and Paul Eggert  <eggert@cs.ucla.edu>
78595
78596         Merges from coreutils, etc.
78597         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
78598         Require gl_FUNC_TZSET_CLOBBER.
78599         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
78600         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
78601         members.
78602
78603 2003-08-14  Paul Eggert  <eggert@twinsun.com>
78604
78605         Help the merge from coreutils.
78606         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
78607         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
78608         * m4/tzset.m4: Use it too.
78609
78610 2003-08-14  Paul Eggert  <eggert@twinsun.com>
78611
78612         * modules/tzset: New file.
78613
78614 2003-08-14  Jim Meyering  <jim@meyering.net>
78615
78616         Merges from coreutils.
78617         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
78618         variable names, rather than @FNMATCH_H@.
78619         * modules/alloca: Likewise for $(ALLOCA_H).
78620
78621         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
78622         the three copies of the literal target, `fnmatch.h'.
78623         * modules/alloca (alloca.h): Likewise.
78624
78625 2003-08-14  Jim Meyering  <jim@meyering.net>
78626
78627         Merge from coreutils.
78628         * m4/tzset.m4: New file.
78629         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
78630         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
78631         otherwise, AIX 5.1 systems would end up using the latter.
78632         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
78633         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
78634         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
78635         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
78636
78637 2003-08-14  Jim Meyering  <jim@meyering.net>
78638
78639         Merge from coreutils.
78640         * lib/obstack.h: Whitespace changes.
78641         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
78642         and xcalloc return values.
78643         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
78644         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
78645         hang on OSF/1 5.1 for DIR on both local and remote file systems.
78646         Reported by (and fix confirmed by) Nelson H. F. Beebe.
78647         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
78648         error from mntctl.
78649         Use mntctl's return value to drive the entry-processing loop, since
78650         we can't rely on the value of the vmt_length member in the last
78651         entry.  On some systems doing so could result in exhausting
78652         virtual memory.  Based in part on a patch from Mike Jetzer.
78653
78654 2003-08-14  Jim Meyering  <jim@meyering.net>
78655         and Paul Eggert  <eggert@twinsun.com>
78656
78657         Merges from coreutils, plus other fixes.
78658         * lib/physmem.c: Merge in portability changes from gcc/libiberty
78659         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
78660         for credits and details.  Thanks to Kaveh Ghazi for helping
78661         to keep these files in sync.
78662         (ARRAY_SIZE): Define it.
78663         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
78664         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
78665         (memcasecmp): Don't assume size_t fits in unsigned int.
78666         Remove casts and duplicate code.
78667         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
78668         (memcpy): Remove definition.
78669         Merge in some clean-up and optimization changes from glibc.
78670         [BLOCKSIZE]: Move definition to top of file.
78671         Ensure that it is a multiple of 64.
78672         Rearrange loop exit tests so as to avoid performing an
78673         additional fread after encountering an error or EOF.
78674         * lib/md5.h (md5_uintptr): Define.
78675         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
78676         return to the initial working directory.  Preserve errno
78677         for caller.
78678         * lib/idcache.c: Include "xalloc.h".
78679         (xmalloc, xrealloc): Remove decls.
78680         (getuser): Remove casts no longer required in C89.
78681         * lib/human.c: Include stdio.h, for sprintf.
78682         * lib/group-member.c: Include "xalloc.h".
78683         (xmalloc, xrealloc): Remove decls.
78684         (get_group_info): Remove casts no longer required in C89.
78685         * lib/getusershell.c (readname): Remove casts no longer required in
78686         C89.
78687         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
78688         * lib/getline.c: Whitespace fix, from coreutils.
78689
78690 2003-08-13  Paul Eggert  <eggert@twinsun.com>
78691
78692         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
78693         Check for isascii.
78694
78695         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
78696         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
78697         Undo previous (whitespace-only) change.
78698
78699 2003-08-13  Paul Eggert  <eggert@twinsun.com>
78700
78701         * lib/exclude.c: Include <ctype.h>
78702         (IN_CTYPE_DOMAIN): New macro.
78703         (is_space): New fn.
78704         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
78705         and empty lines.
78706
78707         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
78708         Undo previous (whitespace-only) change.
78709
78710 2003-08-13  Paul Eggert  <eggert@twinsun.com>
78711
78712         * config/srclist-update: Change update back to the old behavior,
78713         leaving whitespace alone.  Use one 'sed' command rather than a
78714         pipeline.
78715         (fixlicense): Now a variable, not a function.
78716         (remove_trailing_blanks): Remove.
78717         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
78718         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
78719         Undo previous (whitespace-only) change.
78720
78721 2003-08-12  Paul Eggert  <eggert@twinsun.com>
78722
78723         Merge from coreutils.
78724         * modules/euidaccess: Add lib_SOURCES, include for new
78725         file euidaccess.h
78726
78727 2003-08-12  Paul Eggert  <eggert@twinsun.com>
78728
78729         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
78730         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
78731         Normalize leading white space and remove trailing white space.
78732
78733         Merge from coreutils
78734         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
78735
78736         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
78737         0.12.1.  These files are now being upgraded automatically by
78738         ../config/srclist-update.
78739
78740 2003-08-12  Paul Eggert  <eggert@twinsun.com>
78741
78742         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
78743         Normalize leading white space and remove trailing white space.
78744         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
78745         notice, as per ../config/srclist-update.
78746
78747         Merge from coreutils.
78748         * lib/euidaccess.h: New file.
78749         * lib/euidaccess.c: Include it.
78750         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
78751         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
78752         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
78753
78754 2003-08-12  Paul Eggert  <eggert@twinsun.com>
78755
78756         * config/srclist-update: Add copyright notice.
78757         (remove_id_lines, remove_trailing_blanks): New constants.
78758         (fixfile): Use them to normalize spacing a bit in copied files.
78759         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
78760         Normalize leading white space and remove trailing white space.
78761
78762         * config/texinfo.tex: Sync with texinfo.
78763
78764         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
78765         strtoul.c from libc, to merge coreutils whitespace changes.
78766
78767         * config/srclist.txt: Get the following m4 files from gettext:
78768         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
78769         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
78770         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
78771         wint_t.m4.
78772
78773 2003-08-12  Karl Berry  <karl@gnu.org>
78774
78775         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
78776         been made.
78777
78778 2003-08-11  Paul Eggert  <eggert@twinsun.com>
78779
78780         * modules/gnu-source, m4/gnu-source.m4:
78781         Remove; we're assuming Autoconf 2.54 or later now.
78782         Suggested by Bruno Haible.
78783         * MODULES.html.sh (func_all_modules): Remove gnu-source.
78784
78785 2003-08-11  Bruno Haible  <bruno@clisp.org>
78786
78787         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
78788
78789 2003-08-11  Bruno Haible  <bruno@clisp.org>
78790
78791         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
78792         (vasnprintf): Use it instead of wcslen.
78793
78794 2003-08-11  Bruno Haible  <bruno@clisp.org>
78795
78796         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
78797         value to ensure that _Bool promotes to int. Use #define for _Bool when
78798         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
78799
78800 2003-08-10  Karl Berry  <karl@gnu.org>
78801
78802         * lib/regex.h: update from libc (whitespace fix).
78803
78804 2003-08-09  Paul Eggert  <eggert@twinsun.com>
78805
78806         Merge some files from coreutils.  These changes were
78807         originally made by Jim Meyering.
78808         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
78809         many older Unixes require this.
78810         * lib/alloca.c (alloca): Remove cast to argument of free;
78811         no longer needed in C89.
78812         * lib/alloca_.h, regex.h: Fix white space to match
78813         what GNU indent does.
78814
78815 2003-08-09  Paul Eggert  <eggert@twinsun.com>
78816
78817         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
78818         apparently Emacs's Unicode mode got confused before my 2003-08-05
78819         checkin.
78820
78821 2003-08-08  Paul Eggert  <eggert@twinsun.com>
78822
78823         * m4/extensions.m4: New file.
78824         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
78825         Require gl_USE_SYSTEM_EXTENSIONS.
78826         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
78827         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
78828
78829 2003-08-08  Paul Eggert  <eggert@twinsun.com>
78830
78831         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
78832         * modules/extensions, modules/gnu-source: New files.
78833         * modules/timespec, modules/unlocked-io: Depend on extensions.
78834
78835 2003-08-07  Paul Eggert  <eggert@twinsun.com>
78836
78837         * modules/restrict: New file.
78838         * MODULES.html.sh (func_all_modules): Add restrict.
78839         * modules/regex: Depend on restrict.
78840
78841 2003-08-07  Paul Eggert  <eggert@twinsun.com>
78842
78843         * m4/restrict.m4: New file.
78844         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
78845
78846 2003-08-07  Bruno Haible  <bruno@clisp.org>
78847
78848         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
78849         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
78850
78851 2003-08-07  Bruno Haible  <bruno@clisp.org>
78852
78853         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
78854         makes the module 'getndelim2' compatible with the module 'getline'.
78855
78856 2003-08-05  Paul Eggert  <eggert@twinsun.com>
78857
78858         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
78859         byte with "\201" to avoid glitches when editing that source file
78860         with multi-gnome-terminal.
78861
78862 2003-08-05  Paul Eggert  <eggert@twinsun.com>
78863
78864         * lib/bumpalloc.h: Remove.
78865
78866 2003-08-05  Paul Eggert  <eggert@twinsun.com>
78867
78868         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
78869         * modules/bumpalloc: Remove.
78870
78871 2003-08-04  Paul Eggert  <eggert@twinsun.com>
78872
78873         * lib/getloadavg.c: Change copyright notice and spacing to conform to
78874         GNU coding style.
78875
78876         Merge from coreutils.
78877         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
78878         1. From glibc.
78879         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
78880         from Karl Berry, implemented by Jim Meyering.
78881         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
78882         from Dmitry V. Levin.
78883         Remove anachronistic cast of xrealloc.
78884         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
78885         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
78886         type. Otherwise, it wouldn't compile with at least /bin/cc on
78887         ymp-cray-unicos9.0.2.X.
78888         Combine two mostly-identical uses of alloca into one.
78889         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
78890
78891 2003-08-04  Dave Love  <d.love@dl.ac.uk>
78892
78893         [From Emacs.]
78894
78895         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
78896         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
78897         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
78898         obsolete NLIST_NAME_UNION.
78899         [__GNU__]: Undef BSD and FSCALE.
78900         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
78901
78902 2003-08-03  Paul Eggert  <eggert@twinsun.com>
78903
78904         * lib/stdbool_.h (_Bool): Make it signed char, instead of
78905         an enum type, so that it's guaranteed to promote to int.  See:
78906         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
78907
78908 2003-08-03  Karl Berry  <karl@gnu.org>
78909
78910         * config/depcomp: update from automake.
78911
78912 2003-07-31  Paul Eggert  <eggert@twinsun.com>
78913
78914         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
78915         (strerror): Don't assume that a printable int fits in 14 bytes.
78916
78917 2003-07-31  Bruno Haible  <bruno@clisp.org>
78918
78919         * modules/getpass-gnu: New file.
78920         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
78921
78922 2003-07-31  Bruno Haible  <bruno@clisp.org>
78923
78924         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
78925
78926 2003-07-24  Karl Berry  <karl@gnu.org>
78927
78928         * config/missing: update from automake.
78929
78930 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
78931             Bruno Haible  <bruno@clisp.org>
78932
78933         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
78934         * lib/getline.c (getline, getdelim): Likewise.
78935         Remove _GNU_SOURCE define; now it's defined in config.h through
78936         m4/getline.m4.
78937
78938 2003-07-23  Karl Berry  <karl@gnu.org>
78939
78940         * config/config.sub: update from prep.
78941
78942 2003-07-22  Paul Eggert  <eggert@twinsun.com>
78943
78944         * modules/xalloc (Depends-on): Add exitfail.
78945         * modules/xmemcoll: Likewise.
78946
78947 2003-07-22  Paul Eggert  <eggert@twinsun.com>
78948
78949         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
78950         over-parenthesization in macros.
78951
78952         Sync with coreutils.
78953
78954         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
78955         required by C99.
78956
78957         Use `exit_failure' for xalloc and xmemcoll instead of their own
78958         private exit-failure variables.
78959         * lib/xalloc.h (xalloc_exit_failure): Remove.
78960         * lib/xmalloc.c: Likewise.  Include exitfail.h.
78961         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
78962         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
78963         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
78964         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
78965
78966 2003-07-20  Jim Meyering  <jim@meyering.net>
78967
78968         * modules/closeout (Depends-on): Add exitfail.
78969         Suggestion from Bruno Haible.
78970
78971 2003-07-19  Karl Berry  <karl@gnu.org>
78972
78973         * config/config.sub: update from prep.
78974
78975 2003-07-18  Paul Eggert  <eggert@twinsun.com>
78976
78977         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
78978         Remove.
78979         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
78980         to test that it can stand by itself.  Include "exitfail.h".
78981         Clients should set exit_failure instead.
78982         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
78983
78984 2003-07-18  Bruno Haible  <bruno@clisp.org>
78985
78986         * modules/getndelim2: New file.
78987         * modules/getline: Share files with module getndelim2.
78988         * modules/getnline: Depend on getndelim2 instead of sharing files with
78989         it. Add getnline.c to lib_SOURCES.
78990         * MODULES.html.sh (func_all_modules): Add getndelim2.
78991
78992 2003-07-18  Bruno Haible  <bruno@clisp.org>
78993
78994         * m4/getndelim2.m4: New file.
78995         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
78996         invoke gl_PREREQ_GETNDELIM2.
78997         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
78998         gl_PREREQ_GETNDELIM2.
78999         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
79000         gl_GETNDELIM2.
79001
79002 2003-07-18  Bruno Haible  <bruno@clisp.org>
79003
79004         * lib/getndelim2.h: New file.
79005         * lib/getndelim2.c: Make into a module of its own. Include config.h,
79006         getndelim2.h.
79007         (getndelim2): Make non-static. Change return type to ssize_t.
79008         * lib/getline.h: Change argument names.
79009         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
79010         * lib/getnline.c: Include getndelim2.h.
79011
79012 2003-07-18  Andreas Schwab  <schwab@suse.de>
79013
79014         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
79015
79016 2003-07-17  Karl Berry  <karl@gnu.org>
79017
79018         * config/config.sub: update from prep.
79019
79020 2003-07-17  Bruno Haible  <bruno@clisp.org>
79021
79022         * modules/getnline: New file.
79023         * modules/getline: Add lib/getndelim2.c to source file list.
79024         * MODULES.html.sh (func_all_modules): Add getnline.
79025
79026 2003-07-17  Bruno Haible  <bruno@clisp.org>
79027
79028         * m4/getnline.m4: New file.
79029
79030 2003-07-17  Bruno Haible  <bruno@clisp.org>
79031
79032         * m4/Makefile.am.in: Remove file.
79033         * m4/Makefile.am: Remove file.
79034         * m4/Makefile.in: Remove file.
79035
79036 2003-07-17  Bruno Haible  <bruno@clisp.org>
79037
79038         * lib/getnline.h: New file.
79039         * lib/getnline.c: New file.
79040         * lib/getndelim2.c: New file, extracted from getline.c.
79041         (getndelim2): Renamed from getdelim2, with added nmax argument.
79042         * lib/getline.c: Include getndelim2.c.
79043         (getdelim2): Moved out to getndelim2.c.
79044         (getline, getdelim): Update.
79045
79046 2003-07-17  Bruno Haible  <bruno@clisp.org>
79047
79048         * lib/Makefile.am: Remove file.
79049         * lib/Makefile.in: Remove file.
79050
79051 2003-07-17  Bruno Haible  <bruno@clisp.org>
79052
79053         * configure.in: Remove file.
79054         * Makefile.in: Remove file.
79055
79056 2003-07-17  Bruno Haible  <bruno@clisp.org>
79057
79058         * MODULES.html.sh: Put the </BODY> right before </HTML>.
79059
79060 2003-07-16  Karl Berry  <karl@gnu.org>
79061
79062         * config/srclist-update: was running fixlicense twice, which caused
79063                 texinfo.tex to be nullified for some reason.  Simplify,
79064                 $gplsrc is no longer needed as far as I can see?
79065
79066 2003-07-16  Jim Meyering  <jim@meyering.net>
79067
79068         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
79069
79070 2003-07-15  Paul Eggert  <eggert@twinsun.com>
79071
79072         * config/srclist.txt: Get the following files from gettext-runtime/intl
79073         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
79074         ref-del.sin.  From Bruno Haible.
79075         * config/srclist-update (fixfile): Change grep pattern again, since the
79076         previous fix didn't work (there was another trailing $).  Use
79077         '[$]' to escape the $s.
79078
79079 2003-07-15  Karl Berry  <karl@gnu.org>
79080
79081         * lib/vasnprintf.c: update from gettext.
79082
79083 2003-07-15  Karl Berry  <karl@gnu.org>
79084
79085         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
79086         gets expanded when surrounded by '$'.
79087
79088 2003-07-15  Jim Meyering  <jim@meyering.net>
79089
79090         * modules/save-cwd: Don't depend on error.  From Derek Price.
79091
79092 2003-07-15  Jim Meyering  <jim@meyering.net>
79093
79094         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
79095
79096 2003-07-14  Simon Josefsson  <jas@extundo.com>
79097
79098         * modules/mempcpy: New file.
79099         * MODULES.html.sh (func_all_modules): Add mempcpy.
79100
79101 2003-07-14  Simon Josefsson  <jas@extundo.com>
79102
79103         * m4/mempcpy.m4: New file.
79104
79105 2003-07-14  Simon Josefsson  <jas@extundo.com>
79106
79107         * lib/mempcpy.h: New file.
79108         * lib/mempcpy.c: New file.
79109
79110 2003-07-14  Paul Eggert  <eggert@twinsun.com>
79111
79112         * modules/getdate, modules/posixtm: Depend on mktime.
79113
79114 2003-07-14  Paul Eggert  <eggert@twinsun.com>
79115
79116         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
79117         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
79118         unicodeio.c, unicodeio.h, unlocked-io.h:
79119         Switch from LGPL to GPL.
79120
79121 2003-07-14  Paul Eggert  <eggert@twinsun.com>
79122
79123         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
79124         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
79125         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
79126         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
79127         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
79128         updated automatically by ../config/srclist-update.  This changes
79129         their license from LPGL to GPL.
79130
79131 2003-07-14  Paul Eggert  <eggert@twinsun.com>
79132
79133         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
79134         assumed to refer to the root of the most recent stable gettext version.
79135         * config/srclistvars.sh: Add defaults for eggert.
79136         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
79137         Match "This program" as well as "The program".  This is needed
79138         for gettext.
79139
79140 2003-07-14  Jim Meyering  <jim@meyering.net>
79141
79142         Don't emit diagnostics.  Let callers do that.
79143         * lib/save-cwd.c: Don't include "error.h".
79144         (save_cwd): Don't call error.  Ensure that errno is valid
79145         when returning nonzero.
79146
79147         * lib/save-cwd.h (restore_cwd): Update prototype.
79148         * lib/save-cwd.c (restore_cwd): Remove two parameters.
79149         Simplify.  Don't call error upon failure.  Let callers do that.
79150         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
79151         when auditing is enabled.  But don't bother updating the #if.
79152
79153 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
79154
79155         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
79156         it breaks C++ compilation.
79157         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
79158
79159 2003-07-10  Simon Josefsson  <jas@extundo.com>
79160
79161         * modules/strchrnul (Makefile.am): Add strchrnul.h.
79162
79163 2003-07-10  Jim Meyering  <jim@meyering.net>
79164
79165         * m4/clock_time.m4: Remove trailing blank.
79166         * m4/intmax_t.m4: Likewise.
79167
79168 2003-07-10  Jim Meyering  <jim@meyering.net>
79169
79170         * lib/vasnprintf.c: Remove trailing blanks.
79171         Make cpp indentation consistent.
79172
79173 2003-07-09  Paul Eggert  <eggert@twinsun.com>
79174
79175         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
79176         posixver.c, strftime.c, strnlen.c, strverscmp.c:
79177         Switch from LGPL to GPL.
79178
79179 2003-07-09  Paul Eggert  <eggert@twinsun.com>
79180
79181         * config/srclist.txt: Sort sublists.  Add
79182         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
79183         that differ from gnulib for one reason or another; we'd like this list
79184         to be smaller but for now let's document what we have.
79185
79186 2003-07-08  Paul Eggert  <eggert@twinsun.com>
79187
79188         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
79189         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
79190         and sweeter "eval x=$x".
79191         * config/srclist.txt: Get lib/argp* from glibc.
79192
79193 2003-07-07  Paul Eggert  <eggert@twinsun.com>
79194
79195         * lib/mktime.c: Fix some boundary cases and remove need for floating
79196         point.
79197
79198         Issue a compile-time diagnostic if time_t is floating point, or if
79199         two's complement arithmetic is not in effect, or if arithmetic
79200         right shift does not propagate the sign.  These assumptions were
79201         all in the original code but they weren't checked.
79202
79203         (TIME_T_MIDPOINT, verify): New macros.
79204         (__isleap): Remove; it has integer overflow problems.
79205         (leapyear): New function, without those problems.
79206         (ydhms_tm_diff): Remove; splitting into two parts.
79207         (ydhms_diff): New function, containing the arithmetic part of
79208         the old ydhms_tm_diff function.  Issue a compile-time
79209         diagnostic if we are not using C99 integer division.
79210         Avoid casts when possible.
79211         (guess_time_tm): New function, containing the checking part of
79212         the old ydhms_tm_diff function.  Return the new value, rather than
79213         the difference between it and the old.  Accept a new argument T
79214         so that *T specifies the old value.  Check for overflow in the result.
79215
79216         (__mktime_internal): Use a time_t offset, not a long int offset.
79217         This undoes the 2003-06-04 change, which is no longer needed now
79218         that we have better overflow checking.
79219         (localtime_offset): Likewise.
79220
79221         (__mktime_internal): Avoid harmful overflow on hosts where time_t
79222         and long are 64-bit but int is only 32-bit.
79223         (ydhms_diff): Use long int to store year1 and yday1.
79224         Issue a compile-time diagnostic if long int is not wide enough.
79225
79226         (__mktime_internal): Use long int to store adjusted year and yday.
79227         Use plain C rather than preprocessor commands, if that doesn't
79228         affect efficiency.
79229         Check for overflow (and try to repair) after each probe
79230         rather than checking only at the very end.  This avoids some bugs
79231         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
79232         does not equal GMT offset at maximum time).
79233         Use integer to check for overflow rather than floating point; this
79234         is more portable to non-IEEE hosts, and is a tad faster.
79235         When we detect that we are oscillating between two values,
79236         don't check whether tm_isdst has the requested value, since
79237         we already know the answer.  When tm_isdst has the wrong value,
79238         use a different heuristic to find the right one, based on the
79239         extreme values actually observed in practice in tz2003a,
79240         rather than the (overly optimistic) "previous 3 calendar quarters".
79241
79242         (not_equal_tm, print_tm, check_result): Use "const T" rather than
79243         "T const" to accommodate glibc style.
79244         (check_result): Use less-confusing report format.  "long" -> "long int.
79245         (main): Likewise.
79246         Don't loop if the iteration overflows time_t.
79247         Allow a negative step in the iteration.
79248
79249 2003-07-06  Karl Berry  <karl@gnu.org>
79250
79251         * config/depcomp: update from automake.
79252         * config/config.sub: update from prep.
79253
79254 2003-07-03  Karl Berry  <karl@gnu.org>
79255
79256         * config/config.guess: update from prep.
79257
79258 2003-07-01  Paul Eggert  <eggert@twinsun.com>
79259
79260         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
79261         xreadlink.c now includes it unconditionally.
79262
79263 2003-07-01  Paul Eggert  <eggert@twinsun.com>
79264
79265         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
79266         having it depend on HAVE_SYS_TYPES_H.
79267
79268 2003-07-01  Bruno Haible  <bruno@clisp.org>
79269
79270         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
79271         <sys/types.h> should be sufficient.
79272         Reported by Paul Eggert.
79273
79274 2003-06-26  Karl Berry  <karl@gnu.org>
79275
79276         * config/depcomp: update from automake.
79277
79278 2003-06-26  Bruno Haible  <bruno@clisp.org>
79279
79280         * modules/human: Depend on module stdbool.
79281
79282 2003-06-25  Bruno Haible  <bruno@clisp.org>
79283
79284         * modules/readlink: New file.
79285         * modules/xreadlink: Depend on it.
79286         * MODULES.html.sh (func_all_modules): Add readlink.
79287
79288 2003-06-25  Bruno Haible  <bruno@clisp.org>
79289
79290         * m4/readlink.m4: New file.
79291
79292 2003-06-25  Bruno Haible  <bruno@clisp.org>
79293
79294         * lib/readlink.c: New file.
79295
79296 2003-06-22  Karl Berry  <karl@gnu.org>
79297
79298         * config/srclist.txt: update mkinstalldirs from automake.
79299         * config/mkinstalldirs: update.
79300
79301 2003-06-22  Bruno Haible  <bruno@clisp.org>
79302
79303         Portability to mingw32.
79304         * m4/ssize_t.m4: New file, from GNU gettext.
79305         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
79306         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
79307
79308 2003-06-22  Bruno Haible  <bruno@clisp.org>
79309
79310         * modules/safe-read: Add m4/ssize_t.m4.
79311         * modules/xreadlink: Add m4/ssize_t.m4.
79312
79313 2003-06-20  Bruno Haible  <bruno@clisp.org>
79314
79315         Assume C89, so PARAMS isn't needed.
79316         * lib/unicodeio.h (PARAMS): Remove.
79317         * lib/unicodeio.c: Don't use PARAMS.
79318
79319 2003-06-18  Karl Berry  <karl@gnu.org>
79320
79321         * config/config.{guess,sub}: update from prep.
79322
79323 2003-06-18  Jim Meyering  <jim@meyering.net>
79324
79325         Merge changes from coreutils.
79326         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
79327         Remove explicit declarations of xmalloc and realloc.
79328         Include xalloc.h.
79329         (read_utmp): Remove anachronistic cast of xmalloc.
79330
79331 2003-06-17  Paul Eggert  <eggert@twinsun.com>
79332
79333         Assume C89, so PARAMS isn't needed.
79334         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
79335         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
79336         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
79337         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
79338         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
79339         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
79340         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
79341         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
79342         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
79343         lib/xstrtod.h, lib/xstrtol.h: Likewise.
79344         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
79345         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
79346         no longer needed. Anyway, config.h should always be included before any
79347         other file.
79348
79349 2003-06-11  Simon Josefsson  <jas@extundo.com>
79350
79351         * modules/sysexits: New file.
79352         * MODULES.html.sh (func_all_modules): Add sysexits.
79353
79354 2003-06-11  Simon Josefsson  <jas@extundo.com>
79355
79356         * lib/sysexit_.h: New file.
79357
79358 2003-06-11  Derek Price  <derek@ximbiot.com>
79359
79360         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
79361         necessary.
79362
79363 2003-06-11  Bruno Haible  <bruno@clisp.org>
79364
79365         * m4/sysexits.m4: New file.
79366
79367 2003-06-10  Simon Josefsson  <jas@extundo.com>
79368
79369         * lib/argp.h: New file, from glibc.
79370         * lib/argp-ba.c: New file, from glibc.
79371         * lib/argp-eexst.c: New file, from glibc.
79372         * lib/argp-fmtstream.c: New file, from glibc.
79373         * lib/argp-fmtstream.h: New file, from glibc.
79374         * lib/argp-fs-xinl.c: New file, from glibc.
79375         * lib/argp-help.c: New file, from glibc.
79376         * lib/argp-namefrob.h: New file, from glibc.
79377         * lib/argp-parse.c: New file, from glibc.
79378         * lib/argp-pv.c: New file, from glibc.
79379         * lib/argp-pvh.c: New file, from glibc.
79380         * lib/argp-xinl.c: New file, from glibc.
79381
79382 2003-06-10  Simon Josefsson  <jas@extundo.com>
79383
79384         * modules/strchrnul: New file.
79385
79386 2003-06-10  Simon Josefsson  <jas@extundo.com>
79387
79388         * modules/argp: New file.
79389
79390 2003-06-10  Simon Josefsson  <jas@extundo.com>
79391
79392         * m4/strchrnul.m4: New file.
79393
79394 2003-06-10  Simon Josefsson  <jas@extundo.com>
79395
79396         * lib/strchrnul.h: New file.
79397         * lib/strchrnul.c: New file.
79398
79399 2003-06-10  Bruno Haible  <bruno@clisp.org>
79400
79401         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
79402
79403 2003-06-07  Karl Berry  <karl@gnu.org>
79404
79405         * config/config.{guess,sub}: update from prep.
79406
79407 2003-06-07  Jim Meyering  <jim@meyering.net>
79408
79409         * modules/strtod: Use $(...) notation, not @...@ for
79410         AC_REPLACE'd variables.
79411         * modules/localcharset: Likewise.
79412
79413 2003-06-07  Jim Meyering  <jim@meyering.net>
79414
79415         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
79416         in place of my name in the copyright comment.
79417         Remove definition and uses of __P.
79418
79419         From coreutils.
79420         * lib/stat.c: Don't declare xmalloc explicitly.
79421         Instead, include "xalloc.h".
79422         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
79423         xrealloc, and xcalloc return values.
79424         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
79425         Improve comment.
79426         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
79427
79428 2003-06-07  Bruno Haible  <bruno@clisp.org>
79429
79430         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
79431         avoid AC_CONFIG_LINKS.
79432         * modules/fnmatch (Makefile.am): Use explicit creation rule for
79433         fnmatch.h, to avoid AC_CONFIG_LINKS.
79434         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
79435
79436 2003-06-07  Bruno Haible  <bruno@clisp.org>
79437
79438         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
79439         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
79440         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
79441         directory.
79442         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
79443         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
79444         directory.
79445
79446 2003-06-06  Jim Meyering  <jim@meyering.net>
79447
79448         Merge from coreutils.
79449         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
79450         Consolidate declarations and initializations of *_base* locals.
79451
79452         Merge from coreutils.
79453         This avoids a core dump on systems without GNU putenv,
79454         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
79455         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
79456         (unsetenv): New static function, from GNU libc.
79457         (rpl_putenv): Use it.
79458
79459         * lib/modechange.c: Remove trailing blanks.
79460
79461         Merge from coreutils.
79462         * lib/fsusage.c: Remove declaration of statfs.
79463         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
79464
79465         * lib/posixtm.c: Include <stdbool.h> unconditionally.
79466
79467 2003-06-06  Jim Meyering  <jim@meyering.net>
79468
79469         * lib/stdbool_.h: Renamed from stdbool.h.in.
79470
79471 2003-06-06  Jim Meyering  <jim@meyering.net>
79472             Bruno Haible  <bruno@clisp.org>
79473
79474         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
79475         Adjust Makefile.am snippet not to redirect directly to target.
79476         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
79477
79478 2003-06-05  Paul Eggert  <eggert@twinsun.com>
79479
79480         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
79481         mismatch, look in future quarters as well as past.  This fixes a
79482         bug when processing fall-backwards gaps immediately after a long
79483         period of daylight-saving time.
79484
79485         * lib/mktime.c: Assume freestanding C89 or better.
79486         (HAVE_LIMITS_H): Remove.  Assume it's 1.
79487         (__P): Remove; not used.
79488         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
79489         (mktime, not_equal_tm, print_tm, check_result,
79490         main): Use prototypes.  Use const * where appropriate.
79491         (main): Fix typo in testing code that uncovered by above changes.
79492         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
79493
79494 2003-06-04  Paul Eggert  <eggert@twinsun.com>
79495
79496         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
79497         locale.h, localeconv.  This merges changes from coreutils.
79498
79499         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
79500         It can be removed after the next Autoconf is released.
79501         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
79502         needed.
79503
79504 2003-06-04  Paul Eggert  <eggert@twinsun.com>
79505
79506         * lib/mktime.c: Fix Debian bug 177940
79507         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
79508         (localtime_offset): Now long int, not time_t, because we want it
79509         to be guaranteed to be signed.  All uses changed.
79510         (__mktime_internal): If overflow would occur when adding offset,
79511         don't add it.
79512
79513         Merge 'human' changes from coreutils.  Rewrite to support
79514         locale-specific notations like thousands separators.
79515         * lib/human.c: Simplify authorship notice.
79516         Include human.h immediately after config.h.
79517         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
79518         <limits.h>: Do not include, since human.h does.
79519         (SIZE_MAX, UINTMAX_MAX): New macros.
79520         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
79521         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
79522         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
79523         (power_letter): Renamed from suffixes.
79524         (generate_suffix_backwards): Remove.
79525         (adjust_value): Now takes int style (because of human.h changes)
79526         and long double value (for greater precision on some platforms).
79527         (group_number): New function.
79528         (human_readable): Use it.  Use integer options, not enum.
79529         Put the options before the sizes in the arg list.
79530         Support all the new options.
79531         The old human_readable function has been removed;
79532         use inttostr.h instead.
79533         (human_readable, default_block_size, humblock):
79534         Use uintmax_t, not int, for block sizes.
79535         (human_readable_inexact, block_size_types): Remove.
79536         (block_size_opts): New constant.
79537         (human_options): Renamed from human_block_size, with new signature
79538         that allows block sizes up to UINTMAX_MAX.  All callers changed.
79539         * lib/human.h: Add copyright and authorship notice.
79540         Include <limits.h> and <stdbool.h> unconditionally.
79541         (PARAMS): Remove.  All uses removed.
79542         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
79543         (enum human_inexact_style): Remove tag; now a nameless enum.
79544         (human_floor, human_ceiling, human_round_to_even): Now have
79545         values 2, 0, 1 rather than -1, 1, 0.
79546         (human_group_digits, human_suppress_point_zero, human_autoscale,
79547         human_base_1024, human_SI, human_B): New constants.
79548         (human_readable_inexact, human_block_size): Remove.
79549         (human_readable): Size args are now uintmax_t, not int.
79550         (human_options): New decl.
79551
79552         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
79553         unnecessary now that we assume C89 or better.  This change
79554         imported from coreutils.
79555
79556         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
79557         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
79558         in the 2003-05-30 sync from glibc.
79559
79560         .h files should stand alone, but we shouldn't include <sys/types.h>
79561         if we can get away with just <stddef.h>.
79562
79563         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
79564         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
79565         rather than <sys/types.h>, as we merely need size_t.
79566         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
79567         to get size_t.
79568         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
79569         Include <stdio.h>, to get FILE.
79570         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
79571         memcasecmp.h has included <stddef.h> and all we need is size_t.
79572         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
79573         our interface, instead of including <sys/types.h>
79574
79575 2003-06-04  Paul Eggert  <eggert@twinsun.com>
79576
79577         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
79578         now, as glibc mktime is buggy on non-glibc systems.
79579
79580 2003-06-03  Karl Berry  <karl@gnu.org>
79581
79582         * config/config.sub: update from prep.
79583
79584 2003-06-02  Paul Eggert  <eggert@twinsun.com>
79585
79586         [from coreutils]
79587         Fix some minor time-related bugs with POSIX time arguments.
79588         Some valid time stamps were being rejected (notably -1, and
79589         time stamps before 1900 on 64-bit hosts).  And some invalid
79590         time stamps were being accepted, e.g. September 31.
79591
79592         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
79593         that we can return (time_t) -1 successfully.
79594         * lib/posixtm.c: Likewise.
79595         [HAVE_STDBOOL_H]: Include <stdbool.h>.
79596         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
79597         (t): Remove static var.
79598         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
79599         of static var.  All uses changed.
79600         (year): Do not reject years before 1900; they can occur with
79601         64-bit time_t.
79602         (posix_time_parse): Do not check for out-of-range components;
79603         that is now the caller's responsibility, since our checks were
79604         only approximations.
79605         (posixtime): Use mktime to check for out-of-range components,
79606         since it knows them exactly.
79607         If mktime returns (time_t) -1, check whether an error actually occurred
79608         by invoking localtime on -1.
79609         (main) [TEST_POSIXTIME]: Check for input data errors, and report
79610         posixtime failures better.
79611         Improve the test data (in comments only).
79612
79613 2003-06-02  Karl Berry  <karl@gnu.org>
79614
79615         * config/mkinstalldirs (version): new variable.
79616         (--version): new option.
79617         (usage): improve message.
79618
79619 2003-05-30  Karl Berry  <karl@gnu.org>
79620
79621         * lib/mktime.c: update from libc.
79622
79623 2003-05-30  Bruno Haible  <bruno@clisp.org>
79624
79625         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
79626         * config/config.rpath: Upgrade to gettext-0.12.1.
79627
79628 2003-05-30  Bruno Haible  <bruno@clisp.org>
79629
79630         * m4/gettext.m4: Upgrade to gettext-0.12.1.
79631         * m4/nls.m4: New file, from gettext-0.12.1.
79632         * m4/po.m4: New file, from gettext-0.12.1.
79633         * m4/progtest.m4: Upgrade to gettext-0.12.1.
79634
79635 2003-05-30  Bruno Haible  <bruno@clisp.org>
79636
79637         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
79638         * lib/localcharset.h: Likewise.
79639         * lib/localcharset.c: Likewise.
79640
79641 2003-05-29  Karl Berry  <karl@gnu.org>
79642
79643         * config/config.rpath: update from gettext.
79644
79645 2003-05-28  Paul Eggert  <eggert@twinsun.com>
79646
79647         Assume the headers required for C89 freestanding compilers.
79648         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
79649         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
79650         * m4/human.m4 (gl_HUMAN): Likewise.
79651         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
79652         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
79653         * m4/userspec.m4 (gl_USERSPEC): Likewise.
79654         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
79655         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
79656         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
79657
79658 2003-05-28  Paul Eggert  <eggert@twinsun.com>
79659
79660         Assume the headers required for C89 freestanding compilers.
79661         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
79662         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
79663         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
79664         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
79665         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
79666         define, since <limits.h> is guaranteed to do that.
79667         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
79668         * lib/exclude.c: Include <stdbool.h> unconditionally.
79669         * lib/tempname.c: Include <stddef.h> unconditionally.
79670         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
79671         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
79672         <stddef.h> does that.
79673         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
79674         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
79675         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
79676         needed.
79677         * lib/xstrtol.c: Likewise.
79678         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
79679         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
79680
79681         * lib/addext.c (addext): Use assignment rather than cast, to avoid
79682         warnings on some platforms.
79683
79684         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
79685         arbitrarily.
79686
79687 2003-05-26  Jim Meyering  <jim@meyering.net>
79688
79689         Merge in a change from coreutils:
79690         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
79691         that is guaranteed to be `no'.  Use `no_such_member' to indicate
79692         that condition, rather than `-1' which is slightly misleading.
79693         Change the name of the cache variable to have the gl_ prefix.
79694         Prompted by a patch from Richard Dawe for DJGPP.
79695
79696 2003-05-24  Karl Berry  <karl@gnu.org>
79697
79698         * config/config.guess: update from prep.
79699
79700 2003-05-22  Karl Berry  <karl@gnu.org>
79701
79702         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
79703
79704 2003-05-20  Karl Berry  <karl@gnu.org>
79705
79706         * config/config.guess: update from prep.
79707
79708 2003-05-18  Karl Berry  <karl@gnu.org>
79709
79710         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
79711         might actually be set by the user.
79712
79713         * config/depcomp, install-sh, mdate-sh: update from automake.
79714
79715 2003-05-17  Bruno Haible  <bruno@clisp.org>
79716
79717         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
79718         invalid expansion for AC_EGREP_CPP.
79719         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
79720         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
79721         Suggested by Akim Demaille <akim@epita.fr> in
79722         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
79723
79724 2003-05-12  Jim Meyering  <jim@meyering.net>
79725
79726         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
79727         the space-padded-by-default conversion specifiers, %e, %k, %l.
79728
79729 2003-05-12  Bruno Haible  <bruno@clisp.org>
79730
79731         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
79732         the string is longer than 4 KB.
79733
79734 2003-05-11  Karl Berry  <karl@gnu.org>
79735
79736         * config/config.{guess,sub}: update from prep.
79737
79738 2003-05-09  Bruno Haible  <bruno@clisp.org>
79739
79740         * modules/error: Add m4/strerror_r.m4 to file list.
79741
79742 2003-05-03  Bruno Haible  <bruno@clisp.org>
79743
79744         Upgrade to Unicode-4.0.
79745         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
79746         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
79747         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
79748         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
79749         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
79750         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
79751         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
79752         Change width of U+E0100..U+E01EF from 1 to 0.
79753
79754 2003-04-25  Jim Meyering  <jim@meyering.net>
79755
79756         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
79757         of type size_t, not int.
79758
79759 2003-04-25  Bruno Haible  <bruno@clisp.org>
79760
79761         * lib/copy-file.c: Include <stddef.h>, for size_t.
79762
79763 2003-04-21  Paul Eggert  <eggert@twinsun.com>
79764
79765         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
79766         code which expansion is under static control.  Patch imported from
79767         Akim Demaille's patch to Bison; see
79768         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
79769
79770 2003-04-14  Bruno Haible  <bruno@clisp.org>
79771
79772         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
79773
79774 2003-04-11  Jim Meyering  <jim@meyering.net>
79775
79776         Merge changes from Coreutils.
79777
79778         2003-03-22  Jim Meyering  <jim@meyering.net>
79779
79780         * lib/strftime.c (widen): Cast alloca return value to proper type.
79781
79782         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
79783
79784         From GNU libc.
79785         * lib/strftime.c (my_strftime): Handle very large width
79786         specifications for numeric values correctly.  Improve checks for
79787         overflow.
79788
79789         2003-01-19  Jim Meyering  <jim@meyering.net>
79790
79791         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
79792         definitions.
79793         (nl_get_alt_digit) [! defined my_strftime]: Define.
79794         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
79795         _nl_get_alt_digit and _nl_get_walt_digit.
79796
79797         * lib/strftime.c (my_strftime): Merge in locale-related changes from
79798         libc. These changes have no effect outside of _LIBC.
79799
79800 2003-04-10  Bruno Haible  <bruno@clisp.org>
79801
79802         * modules/findprog: New file.
79803         * MODULES.html.sh (func_all_modules): Add it.
79804
79805 2003-04-10  Bruno Haible  <bruno@clisp.org>
79806
79807         * m4/findprog.m4: New file.
79808         * m4/eaccess.m4: New file.
79809
79810 2003-04-10  Bruno Haible  <bruno@clisp.org>
79811
79812         * lib/findprog.h: New file, from GNU gettext.
79813         * lib/findprog.c: New file, from GNU gettext.
79814
79815 2003-04-05  Jim Meyering  <jim@meyering.net>
79816
79817         Merge changes from Coreutils.
79818
79819         * lib/exclude.h (PARAMS): Remove definition and uses.
79820         * lib/exclude.c: Remove uses of `PARAMS'.
79821
79822         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
79823         Add test-cases for DOS filenames. Declare program_name.
79824         (main): Set up program_name.  Patch by Rich Dawe.
79825
79826         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
79827         error from mntctl.
79828         Use mntctl's return value to drive the entry-processing loop, since
79829         we can't rely on the value of the vmt_length member in the last
79830         entry.  On some systems doing so could result in exhausting
79831         virtual memory.  Based in part on a patch from Mike Jetzer.
79832
79833 2003-04-04  Bruno Haible  <bruno@clisp.org>
79834
79835         * modules/linebreak: New file.
79836         * MODULES.html.sh (func_all_modules): Add it.
79837
79838 2003-04-04  Bruno Haible  <bruno@clisp.org>
79839
79840         * m4/linebreak.m4: New file.
79841
79842 2003-04-04  Bruno Haible  <bruno@clisp.org>
79843
79844         * lib/linebreak.h: New file, from GNU gettext.
79845         * lib/linebreak.c: New file, from GNU gettext with slight
79846         modifications.
79847         * lib/lbrkprop.h: New file, from GNU gettext.
79848
79849 2003-04-03  Bruno Haible  <bruno@clisp.org>
79850
79851         * modules/utf8-ucs4: New file.
79852         * modules/utf16-ucs4: New file.
79853         * modules/ucs4-utf8: New file.
79854         * modules/ucs4-utf16: New file.
79855         * MODULES.html.sh (func_all_modules): Add them.
79856
79857 2003-04-03  Bruno Haible  <bruno@clisp.org>
79858
79859         * m4/utf-ucs4.m4: New file.
79860         * m4/ucs4-utf.m4: New file.
79861
79862 2003-04-03  Bruno Haible  <bruno@clisp.org>
79863
79864         * lib/utf8-ucs4.h: New file, from GNU gettext.
79865         * lib/utf16-ucs4.h: New file, from GNU gettext.
79866         * lib/ucs4-utf8.h: New file, from GNU gettext.
79867         * lib/ucs4-utf16.h: New file, from GNU gettext.
79868
79869 2003-04-02  Bruno Haible  <bruno@clisp.org>
79870
79871         * modules/binary-io: New file.
79872         * MODULES.html.sh (func_all_modules): Add it.
79873
79874 2003-04-02  Bruno Haible  <bruno@clisp.org>
79875
79876         * lib/binary-io.h: New file, from GNU gettext.
79877
79878 2003-04-01  Bruno Haible  <bruno@clisp.org>
79879
79880         * modules/pathname: New file.
79881         * MODULES.html.sh (func_all_modules): Add it.
79882
79883 2003-04-01  Bruno Haible  <bruno@clisp.org>
79884
79885         * lib/pathname.h: New file, from GNU gettext.
79886         * lib/concatpath.c: New file, from GNU gettext.
79887
79888 2003-03-30  Bruno Haible  <bruno@clisp.org>
79889
79890         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
79891
79892 2003-03-30  Bruno Haible  <bruno@clisp.org>
79893
79894         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
79895         function chown() doesn't exist.
79896
79897 2003-03-28  Bruno Haible  <bruno@clisp.org>
79898
79899         * modules/copy-file: New file.
79900         * MODULES.html.sh (func_all_modules): Add it.
79901
79902 2003-03-28  Bruno Haible  <bruno@clisp.org>
79903
79904         * m4/copy-file.m4: New file.
79905
79906 2003-03-28  Bruno Haible  <bruno@clisp.org>
79907
79908         * lib/copy-file.h: New file, from GNU gettext.
79909         * lib/copy-file.c: New file, from GNU gettext.
79910
79911 2003-03-18  Jim Meyering  <jim@meyering.net>
79912
79913         * lib/quote.c (quote_n): Fix typo in comment.
79914
79915 2003-03-18  Bruno Haible  <bruno@clisp.org>
79916
79917         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
79918         checking.
79919         * m4/onceonly_2_57.m4: Likewise.
79920
79921 2003-03-17  Bruno Haible  <bruno@clisp.org>
79922
79923         * m4/onceonly.m4: Require autoconf 2.54 or newer.
79924         (m4_quote): Remove macro.
79925         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
79926
79927 2003-03-14  Jim Meyering  <jim@meyering.net>
79928
79929         Merge changes from Coreutils.
79930         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
79931         to be const, in order to avoid warnings.
79932         (obstack_room): Likewise.
79933         (obstack_empty_p): Likewise.
79934
79935 2003-03-14  Bruno Haible  <bruno@clisp.org>
79936
79937         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
79938         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
79939
79940 2003-03-13  Paul Eggert  <eggert@twinsun.com>
79941
79942         Merge changes from Bison.
79943         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
79944         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
79945         when compiling Bison 1.875's `bitset bset = obstack_alloc
79946         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
79947         * lib/hash.c: Include <stdbool.h> unconditionally.
79948
79949 2003-03-13  Paul Eggert  <eggert@twinsun.com>
79950
79951         * m4/onceonly.m4 (m4_quote): New macro.
79952         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
79953         Quote AC_FOREACH variable-expansions properly.
79954
79955 2003-03-13  Paul Eggert  <eggert@twinsun.com>
79956
79957         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
79958
79959 2003-03-09  Paul Eggert  <eggert@twinsun.com>
79960
79961         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
79962         Reported by Bruce Becker; see:
79963         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
79964
79965 2003-03-03  Paul Eggert  <eggert@twinsun.com>
79966             Bruno Haible  <bruno@clisp.org>
79967
79968         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
79969         Reported by John Hughes, see
79970         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
79971
79972 2003-02-20  Bruno Haible  <bruno@clisp.org>
79973
79974         * MODULES.html.sh (func_all_modules): Add poll.
79975
79976 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
79977
79978         * modules/poll: New file.
79979
79980 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
79981
79982         * lib/poll_.h: New file.
79983         * lib/poll.c: New file.
79984
79985 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
79986
79987         * m4/poll.m4: New file.
79988
79989 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
79990
79991         * modules/mathl: New file.
79992
79993 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
79994
79995         * lib/mathl.h: New file.
79996         * lib/acosl.c: New file.
79997         * lib/asinl.c: New file.
79998         * lib/atanl.c: New file.
79999         * lib/ceill.c: New file.
80000         * lib/cosl.c: New file.
80001         * lib/expl.c: New file.
80002         * lib/floorl.c: New file.
80003         * lib/frexpl.c: New file.
80004         * lib/ldexpl.c: New file.
80005         * lib/logl.c: New file.
80006         * lib/sincosl.c: New file.
80007         * lib/sinl.c: New file.
80008         * lib/sqrtl.c: New file.
80009         * lib/tanl.c: New file.
80010         * lib/trigl.c: New file.
80011         * lib/trigl.h: New file.
80012
80013 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
80014
80015         * m4/mathl.m4: New file.
80016
80017 2003-02-18  Bruno Haible  <bruno@clisp.org>
80018
80019         * MODULES.html.sh (func_all_modules): Add mathl.
80020
80021 2003-02-17  Bruno Haible  <bruno@clisp.org>
80022
80023         * modules/mkdtemp: New module.
80024         * MODULES.html.sh (func_all_modules): Add it.
80025
80026 2003-02-17  Bruno Haible  <bruno@clisp.org>
80027
80028         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
80029
80030 2003-02-17  Bruno Haible  <bruno@clisp.org>
80031
80032         * lib/mkdtemp.h: New file, from GNU gettext.
80033         * lib/mkdtemp.c: New file, from GNU gettext.
80034
80035 2003-02-02  Jim Meyering  <jim@meyering.net>
80036
80037         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
80038         e.g. glibc-2.2.93.
80039
80040 2003-01-31  Bruno Haible  <bruno@clisp.org>
80041
80042         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
80043         'rpl_rename'.
80044         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
80045         'rpl_strnlen'.
80046         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
80047         'rpl_strtod'.
80048         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
80049         'rpl_utime'.
80050
80051 2003-01-31  Bruno Haible  <bruno@clisp.org>
80052
80053         * lib/rename.c: #undef rename before defining rpl_rename.
80054         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
80055
80056 2003-01-30  Bruno Haible  <bruno@clisp.org>
80057
80058         * modules/vasnprintf, modules/vasprintf: New modules.
80059         * MODULES.html.sh (func_all_modules): Add them.
80060
80061 2003-01-30  Bruno Haible  <bruno@clisp.org>
80062
80063         * m4/signed.m4: New file, from GNU gettext.
80064         * m4/longdouble.m4: New file, from GNU gettext.
80065         * m4/wchar_t.m4: New file, from GNU gettext.
80066         * m4/wint_t.m4: New file, from GNU gettext.
80067         * m4/vasnprintf.m4: New file.
80068         * m4/vasprintf.m4: New file.
80069
80070 2003-01-30  Bruno Haible  <bruno@clisp.org>
80071
80072         * lib/printf-args.h: New file, from GNU gettext.
80073         * lib/printf-args.c: New file, from GNU gettext.
80074         * lib/printf-parse.h: New file, from GNU gettext.
80075         * lib/printf-parse.c: New file, from GNU gettext.
80076         * lib/vasnprintf.h: New file, from GNU gettext.
80077         * lib/vasnprintf.c: New file, from GNU gettext.
80078         * lib/asnprintf.c: New file, from GNU gettext.
80079         * lib/vasprintf.h: New file, from GNU gettext with modifications.
80080         * lib/vasprintf.c: New file, from GNU gettext.
80081         * lib/asprintf.c: New file, from GNU gettext.
80082
80083 2003-01-29  Bruno Haible  <bruno@clisp.org>
80084
80085         * modules/stpncpy: New module.
80086         * MODULES.html.sh (func_all_modules): Add it.
80087
80088 2003-01-29  Bruno Haible  <bruno@clisp.org>
80089
80090         * m4/stpncpy.m4: New file.
80091
80092 2003-01-29  Bruno Haible  <bruno@clisp.org>
80093
80094         * lib/stpncpy.h: New file, from GNU gettext with modifications.
80095         * lib/stpncpy.c: New file, from GNU gettext with modifications.
80096
80097 2003-01-28  Bruno Haible  <bruno@clisp.org>
80098
80099         * modules/c-ctype: New module.
80100         * MODULES.html.sh (func_all_modules): Add it.
80101
80102 2003-01-28  Bruno Haible  <bruno@clisp.org>
80103
80104         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
80105         Paul Eggert.
80106         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
80107         Paul Eggert.
80108
80109 2003-01-27  Bruno Haible  <bruno@clisp.org>
80110
80111         * modules/xsetenv: New module.
80112         * MODULES.html.sh (func_all_modules): Add it.
80113
80114 2003-01-27  Bruno Haible  <bruno@clisp.org>
80115
80116         * lib/xsetenv.h: New file, from GNU gettext.
80117         * lib/xsetenv.c: New file, from GNU gettext.
80118
80119 2003-01-23  Jim Meyering  <jim@meyering.net>
80120
80121         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
80122         from working on systems without dirfd (at least Irix and OSF1/Tru64).
80123
80124 2003-01-23  Bruno Haible  <bruno@clisp.org>
80125
80126         * modules/minmax: New module.
80127         * MODULES.html.sh (func_all_modules): Add it.
80128
80129 2003-01-23  Bruno Haible  <bruno@clisp.org>
80130
80131         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
80132         Eggert.
80133
80134 2003-01-22  Bruno Haible  <bruno@clisp.org>
80135
80136         * modules/exit: New module.
80137         * MODULES.html.sh (func_all_modules): Add it.
80138
80139 2003-01-22  Bruno Haible  <bruno@clisp.org>
80140
80141         * lib/exit.h: New file, from GNU gettext.
80142
80143 2003-01-19  Bruno Haible  <bruno@clisp.org>
80144
80145         * gnulib-tool: Recognize option --extract-maintainer.
80146         (func_get_maintainer): New function.
80147         * modules/*: Add Maintainer entry.
80148
80149 2003-01-16  Jim Meyering  <jim@meyering.net>
80150
80151         * m4/regex.m4: The `regex' struct is both input and output.
80152         Initialize it before each use.  Patch by Tim Waugh.
80153
80154 2003-01-16  Bruno Haible  <bruno@clisp.org>
80155
80156         * MODULES.html.sh: Add a table of contents. Add the module name as
80157         leftmost column. Add hyperlinks.
80158
80159 2003-01-15  Bruno Haible  <bruno@clisp.org>
80160
80161         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
80162
80163 2003-01-15  Bruno Haible  <bruno@clisp.org>
80164
80165         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
80166         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
80167         suffix.
80168
80169 2003-01-15  Bruno Haible  <bruno@clisp.org>
80170
80171         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
80172
80173 2003-01-15  Bruno Haible  <bruno@clisp.org>
80174
80175         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
80176         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
80177
80178 2003-01-14  Jim Meyering  <jim@meyering.net>
80179
80180         * lib/same.c (same_name): Tweak a comment.
80181
80182 2003-01-14  Bruno Haible  <bruno@clisp.org>
80183
80184         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
80185         when a string comparison is sufficient.
80186
80187 2003-01-14  Bruno Haible  <bruno@clisp.org>
80188
80189         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
80190         'unsigned int'.
80191
80192 2003-01-14  Bruno Haible  <bruno@clisp.org>
80193
80194         * lib/hash-pjw.c: Add comment about low quality of this function.
80195
80196 2003-01-13  Bruno Haible  <bruno@clisp.org>
80197
80198         * modules/stpcpy: Distribute lib/stpcpy.h.
80199         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
80200
80201 2003-01-13  Bruno Haible  <bruno@clisp.org>
80202
80203         * modules/*: Add a description.
80204         * modules/strpbrk: Fix Makefile.am snippet.
80205         * modules/strtoimax: Fix dependencies.
80206         * modules/strtoumax: Likewise.
80207
80208 2003-01-13  Bruno Haible  <bruno@clisp.org>
80209
80210         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
80211         * modules/alloca (Makefile.am): All object files depend on alloca.h.
80212         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
80213
80214 2003-01-13  Bruno Haible  <bruno@clisp.org>
80215
80216         * gnulib-tool (func_create_testdir): Store config/* files in the main
80217         directory.
80218         * config.rpath: Move to ...
80219         * config/config.rpath: ... here.
80220         * modules/gettext: Contains config/config.rpath, not config.rpath.
80221         * modules/iconv: Likewise.
80222
80223 2003-01-12  Paul Eggert  <eggert@twinsun.com>
80224
80225         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
80226         to avoid collisions with libcurses and libreadline.
80227
80228         * m4/getstr.m4: Remove.
80229         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
80230
80231 2003-01-12  Paul Eggert  <eggert@twinsun.com>
80232
80233         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
80234         to avoid collisions with libcurses and libreadline.
80235
80236         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
80237         * lib/getstr.h, getstr.c: Remove.
80238         * lib/getline.c: Include "getline.h", to check interface.
80239         Move body of old getstr.c here: this defines MIN_CHUNK and
80240         declares getdelim2, which is renamed from getstr.
80241         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
80242
80243         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
80244         All uses changed.
80245         * lib/linebuffer.h: Likewise.
80246         (readline): Remove backward-compatibility macro.
80247
80248 2003-01-12  Paul Eggert  <eggert@twinsun.com>
80249
80250         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
80251         to avoid collisions with libcurses and libreadline.
80252         * getstr: Remove.
80253         * MODULES.html.sh: Remove getstr.
80254         * modules/getline: Depend on unlocked-io, not getstr.
80255
80256 2003-01-12  Jim Meyering  <jim@meyering.net>
80257
80258         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
80259
80260 2003-01-10  Bruno Haible  <bruno@clisp.org>
80261
80262         * modules/alloca: Change Makefile.am requirements. Simplify Include
80263         requirements. Add lib/alloca_.h to file list.
80264
80265 2003-01-10  Bruno Haible  <bruno@clisp.org>
80266
80267         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
80268
80269 2003-01-10  Bruno Haible  <bruno@clisp.org>
80270
80271         * lib/alloca_.h: New file.
80272         * lib/getdate.y: Unconditionally include alloca.h.
80273         * lib/makepath.c: Likewise.
80274         * lib/setenv.c: Likewise.
80275         * lib/userspec.c: Likewise.
80276
80277 2003-01-09  Karl Berry  <karl@gnu.org>
80278
80279         * MODULES.html.sh: include `dirname $0` in PATH, to find
80280         gnulib-tool.
80281
80282 2003-01-09  Bruno Haible  <bruno@clisp.org>
80283
80284         * modules/stdbool: Change configure.ac, Makefile.am requirements.
80285         Simplify Include requirements. Add lib/stdbool.h.in to file list.
80286
80287 2003-01-09  Bruno Haible  <bruno@clisp.org>
80288
80289         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
80290
80291 2003-01-09  Bruno Haible  <bruno@clisp.org>
80292
80293         * lib/stdbool.h.in: New file.
80294
80295 2003-01-09  Bruno Haible  <bruno@clisp.org>
80296
80297         * gnulib-tool (func_all_modules): Ignore files ending in ~.
80298         * MODULES.html.sh: Likewise.
80299
80300 2003-01-08  Jim Meyering  <jim@meyering.net>
80301
80302         * lib/full-write.c: Undefine and define-away `const' after inclusion
80303         of errno.h, not before.  Suggestion from Bruno Haible.
80304
80305 2003-01-08  Bruno Haible  <bruno@clisp.org>
80306
80307         * modules/full-read: Depend on full-write.
80308
80309 2003-01-08  Bruno Haible  <bruno@clisp.org>
80310
80311         * lib/safe-read.c: Include specification header first, to ensure its
80312         selfcontainedness.
80313         * lib/full-write.c: Likewise.
80314
80315 2003-01-07  Jim Meyering  <jim@meyering.net>
80316
80317         * lib/full-write.c: Rework so that it may serve to define full_read,
80318         too.
80319         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
80320
80321 2003-01-07  Bruno Haible  <bruno@clisp.org>
80322
80323         * lib/strtoimax.c: Include <stdint.h> as an alternative to
80324         <inttypes.h>.
80325         * lib/xstrtol.h: Likewise.
80326         * lib/xstrtoimax.c: Likewise.
80327         * lib/xstrtoumax.c: Likewise.
80328         * lib/human.h: Likewise.
80329
80330         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
80331         on systems that have <inttypes.h> but not <stdint.h>.
80332
80333 2003-01-07  Bruno Haible  <bruno@clisp.org>
80334
80335         * MODULES.html.sh: Add copyright notice.
80336         (missed_files): Omit CVS directory entries.
80337         (func_module): Make it work with sed-3.02.
80338         * MODULES.txt: Remove file.
80339
80340 2003-01-06  Jim Meyering  <jim@meyering.net>
80341
80342         * lib/version-etc.c: Update year in translatable copyright string.
80343
80344 2003-01-03  Karl Berry  <karl@gnu.org>
80345
80346         * config/config.{guess,sub}: update from prep.
80347
80348 2003-01-02  Karl Berry  <karl@gnu.org>
80349
80350         * doc/COPYING.DOC: belatedly updated to 1.2.
80351
80352 2003-01-01  Karl Berry  <karl@gnu.org>
80353
80354         * gnulib-tool (func_verify_module): report module name $module in
80355         error message, not $1.
80356         * gnulib-tool (create-testdir): don't complain if destdir couldn't
80357         be created, only if it doesn't exist.
80358         * gnulib-tool (last_checkin_date): don't expand the $Date here.
80359
80360 2002-12-31  Paul Eggert  <eggert@twinsun.com>
80361
80362         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
80363
80364 2002-12-31  Paul Eggert  <eggert@twinsun.com>
80365
80366         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
80367         memcmp if strcoll doesn't work.
80368
80369 2002-12-31  Bruno Haible  <bruno@clisp.org>
80370
80371         * lib/utime.c (utime_null): No need to call ftruncate if the file was
80372         nonempty.
80373
80374 2002-12-31  Bruno Haible  <bruno@clisp.org>
80375
80376         * lib/memcoll.c (STRCOLL): New macro.
80377         (memcoll): Use it.
80378
80379 2002-12-31  Bruno Haible  <bruno@clisp.org>
80380
80381         * lib/localcharset.h: New file.
80382         * lib/localcharset.c: Include it.
80383         * lib/unicodeio.c: Likewise.
80384
80385 2002-12-31  Bruno Haible  <bruno@clisp.org>
80386
80387         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
80388         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
80389
80390 2002-12-31  Bruno Haible  <bruno@clisp.org>
80391
80392         * lib/getline.h: Include <stddef.h>, for size_t.
80393
80394         * lib/unicodeio.h: Include <stddef.h>, for size_t.
80395         * lib/unicodeio.c: Don't include <stddef.h>.
80396
80397 2002-12-31  Bruno Haible  <bruno@clisp.org>
80398
80399         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
80400         HAVE_TM_ZONE.
80401
80402 2002-12-24  Karl Berry  <karl@gnu.org>
80403
80404         * config/config.guess: update from prep.
80405
80406 2002-12-24  Bruno Haible  <bruno@clisp.org>
80407
80408         General infrasructure.
80409         * m4/README: Rewritten.
80410         * m4/onceonly.m4: New file.
80411         * m4/onceonly_2_57.m4: New file.
80412
80413         Module atexit.
80414         * m4/atexit.m4: New file.
80415
80416         Module strtod.
80417         * m4/strtod.m4: New file.
80418
80419         Module strtol.
80420         * m4/strtol.m4: New file.
80421
80422         Module strtoul.
80423         * m4/strtoul.m4: New file.
80424
80425         Module memchr.
80426         * m4/memchr.m4: New file.
80427
80428         Module memcmp.
80429         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
80430         (jm_FUNC_MEMCMP): Invoke it.
80431
80432         Module memcpy.
80433         * m4/memcpy.m4: New file.
80434
80435         Module memmove.
80436         * m4/memmove.m4: New file.
80437
80438         Module memset.
80439         * m4/memset.m4: New file.
80440
80441         Module strcspn.
80442         * m4/strcspn.m4: New file.
80443
80444         Module strpbrk.
80445         * m4/strpbrk.m4: New file.
80446
80447         Module strstr.
80448         * m4/strstr.m4: New file.
80449
80450         Module strerror.
80451         * m4/strerror.m4: New file.
80452
80453         Module mktime.
80454         * m4/mktime.m4: Renamed from jm-mktime.m4.
80455         (gl_PREREQ_MKTIME): New macro.
80456         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
80457
80458         Module malloc.
80459         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
80460         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
80461         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
80462
80463         Module realloc.
80464         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
80465         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
80466         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
80467
80468         Module strftime.
80469         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
80470         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
80471         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
80472         gl_TM_GMTOFF.
80473         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
80474
80475         Module xalloc.
80476         * m4/xalloc.m4: New file.
80477
80478         Module alloca.
80479         * m4/alloca.m4: New file.
80480
80481         Module putenv.
80482         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
80483         (jm_FUNC_PUTENV): Invoke it.
80484
80485         Module setenv.
80486         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
80487         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
80488         when invoked twice.
80489         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
80490         gt_FUNC_SETENV.
80491
80492         Module memrchr.
80493         * m4/memrchr.m4: New file.
80494
80495         Module stpcpy.
80496         * m4/stpcpy.m4: New file.
80497
80498         Module strcase.
80499         * m4/strcase.m4: New file.
80500
80501         Module strdup.
80502         * m4/strdup.m4: New file.
80503
80504         Module strnlen.
80505         * m4/strnlen.m4: New file.
80506
80507         Module strndup.
80508         * m4/strndup.m4: New file.
80509
80510         Module xstrtod.
80511         * m4/xstrtod.m4: New file.
80512
80513         Module xstrtol.
80514         * m4/xstrtol.m4: New file.
80515
80516         Module getdate.
80517         * m4/getdate.m4: New file.
80518
80519         Module unlocked-io.
80520         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
80521         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
80522         * m4/jm-glibc-io.m4n: Remove file.
80523
80524         Module long-options.
80525         * m4/long-options.m4: New file.
80526
80527         Module md5.
80528         * m4/md5.m4: New file.
80529
80530         Module sha.
80531         * m4/sha.m4: New file.
80532
80533         Module getstr.
80534         * m4/getstr.m4: New file.
80535
80536         Module getline.
80537         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
80538         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
80539         <sys/types.h>, for size_t. Use the function name gnu_getline, not
80540         simply getline. Infoke gl_PREREQ_GETLINE.
80541
80542         Module obstack.
80543         * m4/obstack.m4: New file.
80544
80545         Module hash.
80546         * m4/hash.m4: New file.
80547
80548         Module readtokens.
80549         * m4/readtokens.m4: New file.
80550
80551         Module strverscmp.
80552         * m4/strverscmp.m4: New file.
80553
80554         Module stdbool.
80555         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
80556         OSF/1.
80557
80558         Module strtoll.
80559         * m4/strtoll.m4: New file.
80560
80561         Module strtoull.
80562         * m4/strtoull.m4: New file.
80563
80564         Module strtoimax.
80565         * m4/strtoimax.m4: New file.
80566
80567         Module strtoumax.
80568         * m4/strtoumax.m4: New file.
80569
80570         Module xstrtoimax.
80571         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
80572         jm_AC_PREREQ_XSTRTOIMAX.
80573         Moved the strtol prerequisites to strtol.m4.
80574         Moved the strtoll prerequisites to strtoll.m4.
80575         Moved the strtoimax prerequisites to strtoimax.m4.
80576
80577         Module xstrtoumax.
80578         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
80579         jm_AC_PREREQ_XSTRTOUMAX.
80580         Moved the strtoul prerequisites to strtoul.m4.
80581         Moved the strtoull prerequisites to strtoull.m4.
80582         Moved the strtoumax prerequisites to strtoumax.m4.
80583
80584         Module chown.
80585         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
80586         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
80587
80588         Module dup2.
80589         * m4/dup2.m4: New file.
80590
80591         Module ftruncate.
80592         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
80593         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
80594
80595         Module getgroups.
80596         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
80597         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
80598
80599         Module gettimeofday.
80600         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
80601         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
80602         gl_PREREQ_GETTIMEOFDAY.
80603
80604         Module mkdir.
80605         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
80606         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
80607
80608         Module mkstemp.
80609         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
80610         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
80611         jm_AC_TYPE_UINTMAX_T.
80612         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
80613
80614         Module stat.
80615         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
80616         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
80617
80618         Module lstat.
80619         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
80620         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
80621
80622         Module timespec.
80623         * m4/timespec.m4 (gl_TIMESPEC): New macro.
80624         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
80625         * m4/st_mtim.m4: Indentation.
80626
80627         Module nanosleep.
80628         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
80629         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
80630         gl_PREREQ_NANOSLEEP.
80631
80632         Module regex.
80633         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
80634         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
80635         (gl_REGEX): New macro.
80636
80637         Module rename.
80638         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
80639         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
80640
80641         Module rmdir.
80642         * m4/rmdir.m4: New file.
80643
80644         Module utime.
80645         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
80646         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
80647         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
80648
80649         Module dirname.
80650         * m4/dirname.m4: New file.
80651
80652         Module getopt.
80653         * m4/getopt.m4: New file.
80654
80655         Module unistd-safer.
80656         * m4/unistd-safer.m4: New file.
80657
80658         Module fnmatch.
80659         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
80660         declaration.
80661         (gl_PREREQ_FNMATCH_EXTRA): New macro.
80662         (gl_FUNC_FNMATCH_POSIX): New macro.
80663         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
80664         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
80665         simply fnmatch.
80666
80667         Module exclude.
80668         * m4/exclude.m4: New file.
80669
80670         Module human.
80671         * m4/human.m4: New file.
80672
80673         Module acl.
80674         * m4/acl.m4: Nop.
80675
80676         Module backupfile.
80677         * m4/backupfile.m4: New file.
80678         * m4/d-ino.m4: Indentation.
80679
80680         Module fsusage.
80681         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
80682         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
80683         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
80684
80685         Module dirfd.
80686         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
80687         requirements.
80688
80689         Module euidaccess.
80690         * m4/euidaccess.m4: New file.
80691
80692         Module file-type.
80693         * m4/file-type.m4: New file.
80694
80695         Module fileblocks.
80696         * m4/fileblocks.m4: New file.
80697
80698         Module filemode.
80699         * m4/filemode.m4: New file.
80700
80701         Module isdir.
80702         * m4/isdir.m4: New file.
80703
80704         Module lchown.
80705         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
80706         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
80707
80708         Module makepath.
80709         * m4/makepath.m4: New file.
80710
80711         Module modechange.
80712         * m4/modechange.m4: New file.
80713
80714         Module mountlist.
80715         * m4/mountlist.m4: New file.
80716         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
80717         Indentation.
80718
80719         Module path-concat.
80720         * m4/path-concat.m4: New file.
80721
80722         Module pathmax.
80723         * m4/pathmax.m4: New file.
80724
80725         Module same.
80726         * m4/same.m4: New file.
80727
80728         Module save-cwd.
80729         * m4/save-cwd.m4: New file.
80730
80731         Module savedir.
80732         * m4/savedir.m4: New file.
80733
80734         Module xgetcwd.
80735         * m4/xgetcwd.m4: New file.
80736         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
80737
80738         Module xreadlink.
80739         * m4/xreadlink.m4: New file.
80740
80741         Module safe-read.
80742         * m4/safe-read.m4: New file.
80743
80744         Module safe-write.
80745         * m4/safe-write.m4: New file.
80746
80747         Module closeout.
80748         * m4/closeout.m4: New file.
80749
80750         Module stdio-safer.
80751         * m4/stdio-safer.m4: New file.
80752
80753         Module getpass.
80754         * m4/getpass.m4: New file.
80755
80756         Module getugroups.
80757         * m4/getugroups.m4: New file.
80758
80759         Module group-member.
80760         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
80761         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
80762
80763         Module idcache.
80764         * m4/idcache.m4: New file.
80765
80766         Module userspec.
80767         * m4/userspec.m4: New file.
80768
80769         Module gettime.
80770         * m4/clock_time.m4: New file.
80771         * m4/gettime.m4: New file.
80772
80773         Module settime.
80774         * m4/settime.m4: New file.
80775
80776         Module posixtm.
80777         * m4/posixtm.m4: New file.
80778
80779         Module gethostname.
80780         * m4/gethostname.m4: New file.
80781
80782         Module canon-host.
80783         * m4/canon-host.m4: New file.
80784
80785         Module gettext.
80786         * m4/codeset.m4: New file, from gettext-0.11.5.
80787         * m4/gettext.m4: New file, from gettext-0.11.5.
80788         * m4/glibc21.m4: New file, from gettext-0.11.5.
80789         * m4/iconv.m4: New file, from gettext-0.11.5.
80790         * m4/intdiv0.m4: New file, from gettext-0.11.5.
80791         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
80792         * m4/inttypes.m4: New file, from gettext-0.11.5.
80793         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
80794         * m4/isc-posix.m4: New file, from gettext-0.11.5.
80795         * m4/lcmessage.m4: New file, from gettext-0.11.5.
80796         * m4/lib-ld.m4: New file, from gettext-0.11.5.
80797         * m4/lib-link.m4: New file, from gettext-0.11.5.
80798         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
80799         * m4/progtest.m4: New file, from gettext-0.11.5.
80800         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
80801         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
80802         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
80803
80804         Module localcharset.
80805         * m4/localcharset.m4: New file.
80806
80807         Module hard-locale.
80808         * m4/hard-locale.m4: New file.
80809
80810         Module mbswidth.
80811         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
80812         onceonly macros.
80813         * m4/mbrtowc.m4: Add comment.
80814
80815         Module memcasecmp.
80816         * m4/memcasecmp.m4: New file.
80817
80818         Module memcoll.
80819         * m4/memcoll.m4: New file.
80820
80821         Module unicodeio.
80822         * m4/unicodeio.m4: New file.
80823
80824         Module rpmatch.
80825         * m4/rpmatch.m4: New file.
80826
80827         Module yesno.
80828         * m4/yesno.m4: New file.
80829
80830         Module exitfail.
80831         * m4/exitfail.m4: New file.
80832
80833         Module c-stack.
80834         * m4/c-stack.m4 (gl_C_STACK): New macro.
80835         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
80836
80837         Module error.
80838         * m4/error.m4 (gl_ERROR): New macro.
80839         (jm_PREREQ_ERROR): Use onceonly macros.
80840
80841         Module fatal.
80842         * m4/fatal.m4: New file.
80843
80844         Module getloadavg.
80845         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
80846         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
80847
80848         Module getpagesize.
80849         * m4/getpagesize.m4: New file.
80850
80851         Module getusershell.
80852         * m4/getusershell.m4: New file.
80853
80854         Module physmem.
80855         * m4/physmem.m4: New file.
80856
80857         Module posixver.
80858         * m4/posixver.m4: New file.
80859
80860         Module quotearg.
80861         * m4/quotearg.m4: New file.
80862
80863         Module quote.
80864         * m4/quote.m4: New file.
80865
80866         Module readutmp.
80867         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
80868
80869         Module sig2str.
80870         * m4/sig2str.m4: New file.
80871
80872         Other.
80873         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
80874         ulonglong.m4.
80875         * m4/intmax_t.m4: New file.
80876         * m4/d-type.m4: Indentation.
80877         * m4/jm-macros.m4: Update.
80878         * m4/prereq.m4 (jm_PREREQ): Update.
80879         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
80880         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
80881         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
80882         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
80883         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
80884         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
80885         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
80886         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
80887         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
80888         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
80889         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
80890         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
80891         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
80892         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
80893         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
80894         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
80895         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
80896         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
80897         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
80898
80899 2002-12-24  Bruno Haible  <bruno@clisp.org>
80900
80901         * MODULES.txt: Update according to m4/ changes.
80902
80903         Module gettext.
80904         * config.rpath: New file, from gettext-0.11.5.
80905
80906         * modules/*: New module descriptions.
80907         * gnulib-tool: New file.
80908         * MODULES.html.sh: New file.
80909
80910 2002-12-21  Karl Berry  <karl@gnu.org>
80911
80912         * doc/fdl.texi: update to version 1.2.
80913
80914 2002-12-19  Karl Berry  <karl@gnu.org>
80915
80916         * config/config.guess: update from prep.
80917
80918 2002-12-18  Bruno Haible  <bruno@clisp.org>
80919
80920         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
80921         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
80922
80923 2002-12-17  Bruno Haible  <bruno@clisp.org>
80924
80925         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
80926         stdlib.h, string.h.
80927
80928 2002-12-17  Bruno Haible  <bruno@clisp.org>
80929
80930         * lib/canon-host.c (strdup): Remove unused declaration.
80931
80932         * lib/fsusage.c: Include full_read.h.
80933         (get_fs_usage): Use full_read instead of safe_read.
80934
80935         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
80936
80937 2002-12-12  Karl Berry  <karl@gnu.org>
80938
80939         * config/config.guess: update from prep.
80940
80941 2002-12-11  Bruno Haible  <bruno@clisp.org>
80942
80943         * m4/setenv.m4: New file, from gettext-0.11.5.
80944
80945 2002-12-11  Bruno Haible  <bruno@clisp.org>
80946
80947         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
80948         not unsetenv().
80949         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
80950         modifications:
80951
80952         2002-12-11  Bruno Haible  <bruno@clisp.org>
80953
80954                 * setenv.c (alloca): Fall back to malloc.
80955                 (freea): New macro.
80956                 (setenv): Use freea() to free memory allocated with alloca().
80957
80958         2002-11-13  Bruno Haible  <bruno@clisp.org>
80959
80960                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
80961                 function declarations.
80962                 * unsetenv.c (unsetenv): Likewise.
80963
80964         2002-03-04  Bruno Haible  <bruno@clisp.org>
80965
80966                 Portability to AIX 4.3.3.
80967                 * unsetenv.c: New file, extracted from setenv.c.
80968                 * setenv.c: Move the unsetenv() function to unsetenv.c.
80969
80970         2001-12-20  Bruno Haible  <bruno@clisp.org>
80971
80972                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
80973                 use malloc instead. For SunOS 4.
80974
80975         2001-12-11  Bruno Haible  <bruno@clisp.org>
80976
80977                 * setenv.c: Declare alloca.
80978                 (compar_fn_t): New typedef.
80979                 (KNOWN_VALUE, STORE_VALUE): Use it.
80980
80981         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
80982         setenv.h.
80983
80984 2002-12-10  Paul Eggert  <eggert@twinsun.com>
80985
80986         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
80987         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
80988         Choose values that are less likely to collide with system fnmatch
80989         options.
80990         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
80991         defined (e.g., a pure POSIX system).
80992         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
80993         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
80994
80995 2002-12-06  Paul Eggert  <eggert@twinsun.com>
80996
80997         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
80998         a pain in practice to deal with generated m4 files.  This change
80999         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
81000
81001         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
81002         and jm-glibc-io.m4, as they are no longer a special case.
81003         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
81004         kludge and the auto-generation stuff.  Check only whether the
81005         functions are declared, not whether they exist, since older hosts
81006         that don't declare the functions can't use the optimization anyway.
81007
81008 2002-12-06  Jim Meyering  <jim@meyering.net>
81009
81010         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
81011
81012         Merge in changes from libc's misc/error.c, in preparation
81013         for the merge of gnulib's changes back into libc.
81014
81015         * lib/error.c (_): Define only if not already defined.
81016         Move definition to follow all #include directives.
81017         Include unlocked-io.h only if !_LIBC.
81018         [_LIBC]: Include <libio/libioP.h>.
81019         [USE_IN_LIBIO]: Include <libio/iolibio.h>
81020         (fflush): Tweak definition to use INTUSE.
81021         (putc): Define.
81022
81023 2002-12-05  Paul Eggert  <eggert@twinsun.com>
81024
81025         * lib/alloca.c [defined emacs]: Include "lisp.h".
81026         (xalloc_die) [defined emacs]: New macro.
81027         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
81028         [! defined emacs]: Include <xalloc.h>.
81029         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
81030         (pointer): Typedef to POINTER_TYPE *.
81031         (malloc): Remove decl; we now always use xmalloc.
81032         (alloca): Use old-style definition, since Emacs needs this.
81033         Check for arithmetic overflow when computing combined size.
81034
81035 2002-12-04  Paul Eggert  <eggert@twinsun.com>
81036
81037         Do not generate unlocked-io.h automatically, since it's easier to
81038         maintain it by hand.
81039
81040         * lib/unlocked-io.h: New file, from GNU diffutils,
81041         but with proper copyright notice and attribution.
81042         * lib/gen-uio: Remove.
81043         * lib/Makefile.am: Add copyright notice.
81044         (libfetish_a_SOURCES): Add unlocked-io.h.
81045         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
81046         (DISTCLEANFILES, io_functions): Remove macros.
81047         (EXTRA_DIST): Remove gen_uio.
81048         (unlocked-io.h): Remove rule.
81049
81050 2002-12-04  Jim Meyering  <jim@meyering.net>
81051
81052         Reflect the fact that stat.c and lstat.c are no longer generated.
81053         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
81054         (DISTCLEANFILES): Likewise.
81055         (EXTRA_DIST): Likewise.
81056         (all_local): Don't depend on stat.c or lstat.c.
81057         (stat.c, lstat.c): Remove rules.
81058         (EXTRA_DIST): Remove xstat.in.
81059
81060         * lib/xstat.in: Remove file.  Contents moved into stat.c.
81061         * lib/stat.c: New file.  Contents mostly from xstat.in.
81062         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
81063         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
81064
81065         * lib/safe-read.c: Rework so that it may serve to define safe_write,
81066         too.
81067         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
81068
81069 2002-12-03  Jim Meyering  <jim@meyering.net>
81070
81071         * lib/safe-read.c, safe-write.c: Change variable names and comments,
81072         but not semantics, to minimize the differences between these two files.
81073         (safe_read): Change comment to mention SAFE_READ_ERROR.
81074
81075         * lib/safe-read.c (IS_EINTR): Define.
81076         (safe_read): Use IS_EINTR in place of in-function cpp directives.
81077
81078 2002-12-02  Jim Meyering  <jim@meyering.net>
81079
81080         * lib/safe-read.c (EINTR): Define.
81081         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
81082         (INT_MAX): Provide fallback.
81083         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
81084
81085         * lib/safe-read.h (SAFE_READ_ERROR): Define.
81086
81087 2002-12-02  Bruno Haible  <bruno@clisp.org>
81088
81089         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
81090         Define, taken from safe-read.c.
81091         (INT_MAX): Provide fallback.
81092         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
81093         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
81094
81095         * lib/safe-read.c (EINTR): Remove definition.
81096         (safe_read): Don't use EINTR if it is absent.
81097
81098 2002-12-01  Jim Meyering  <jim@meyering.net>
81099
81100         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
81101         zero.
81102         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
81103
81104 2002-11-27  Paul Eggert  <eggert@twinsun.com>
81105
81106         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
81107         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
81108         with `if (! (value < limit)) abort ();', for readability.
81109
81110 2002-11-26  Karl Berry  <karl@gnu.org>
81111
81112         * lib/strdup.c: copy from libc again, with jim's ok.
81113         * lib/.cppi-disable: re-add strdup.c
81114
81115 2002-11-25  Karl Berry  <karl@gnu.org>
81116
81117         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
81118         instead of "strtol.c".
81119
81120 2002-11-25  Karl Berry  <karl@gnu.org>
81121
81122         * config/install-sh: update from automake for variable quoting, $0 in
81123         error msgs, etc.
81124
81125         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
81126         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
81127         entry.
81128
81129 2002-11-25  Jim Meyering  <jim@meyering.net>
81130
81131         * lib/mktime.c: Sync from libc, now that it has the latest fix.
81132
81133 2002-11-24  Karl Berry  <karl@gnu.org>
81134
81135         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
81136         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
81137
81138 2002-11-24  Jim Meyering  <jim@meyering.net>
81139
81140         Update from coreutils:
81141
81142         * lib/mktime.c: Merge in changes from libc.
81143
81144         Avoid a link-time failure on some Linux systems.
81145         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
81146         (otherwise).
81147         (__mon_yday): Declare with the STATIC attribute.
81148         (__mktime_internal): Likewise.
81149         Based on a report from Greg Schafer.
81150
81151 2002-11-23  Jim Meyering  <jim@meyering.net>
81152
81153         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
81154         Use `unsigned', not `int', as type of index.
81155
81156         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
81157
81158         * lib/fsusage.c: Remove unneeded parentheses around operands of
81159         `defined'.
81160
81161 2002-11-22  Paul Eggert  <eggert@twinsun.com>
81162
81163         * lib/quotearg.h: Allow multiple inclusion by surrounding with
81164         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
81165         so that we can be included first.
81166         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
81167         * lib/quotearg.c: Include quotearg.h immediately after config.h.
81168         No need to include stddef.h or sys/types.h any more.
81169         Surround local include files with "", not "<>".
81170         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
81171         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
81172         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
81173         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
81174         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
81175         (ISPRINT): Remove; no longer needed now that we assume C89.
81176
81177         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
81178         Preserve errno.
81179
81180         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
81181         quotearg_char): Use SIZE_MAX rather than
81182         (size_t) -1 when we are talking about "infinity".
81183
81184         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
81185
81186 2002-11-22  Paul Eggert  <eggert@twinsun.com>
81187
81188         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
81189         hint that one should use `if (! x) abort ();' rather than `assert
81190         (x);', and anyway it's one less thing to worry about configuring.
81191         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
81192         hash_rehash, hash_insert): Use abort rather than assert.
81193
81194 2002-11-22  Bruno Haible  <bruno@clisp.org>
81195
81196         * lib/safe-read.h: Assume C89. Add comments.
81197         (safe_read): Change return type to size_t.
81198         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
81199         byte counts > SSIZE_MAX correctly.
81200         * lib/safe-write.h: New file.
81201         * lib/safe-write.c: New file.
81202         * lib/full-read.h: New file.
81203         * lib/full-read.c: New file.
81204         * lib/full-write.h: Assume C89. Add comments.
81205         * lib/full-write.c: Include safe-write.h.
81206         (full_write): Rewritten to use safe_write.
81207         Suggested by Jim Meyering and Paul Eggert.
81208
81209 2002-11-21  Jim Meyering  <jim@meyering.net>
81210
81211         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
81212
81213         Merge in changes from the coreutils.
81214
81215         2002-09-25  Paul Eggert  <eggert@twinsun.com>
81216         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
81217         <stdint.h>.
81218         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
81219         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
81220         int.  Work more efficiently if X is the same width as uintmax_t.
81221         Do not compare X to -1, to avoid bogus compiler warning.
81222         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
81223         Don't assume that f_frsize and f_bsize are the same type.
81224
81225         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
81226         warning on FreeBSD.
81227
81228         * lib/makepath.c (make_path): Restore umask *before* creating the final
81229         component.
81230         (make_path): Minor reformatting.
81231
81232         * lib/xmalloc.c: Adjust to work with new autoconf macros,
81233         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
81234         HAVE_MALLOC/HAVE_REALLOC.
81235
81236         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
81237         dummy ones.  At least on GNU/Linux systems, `auto' means something
81238         else.
81239         From Michael Stone.
81240
81241 2002-11-21  Bruno Haible  <bruno@clisp.org>
81242
81243         Remove case insensitive option matching.
81244         * lib/argmatch.h (argcasematch): Remove declaration.
81245         (ARGCASEMATCH): Remove macro.
81246         (__xargmatch_internal): Remove case_sensitive argument.
81247         (XARGMATCH): Update.
81248         (XARGCASEMATCH): Remove macro.
81249         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
81250         case_sensitive argument.
81251         (argcasematch): Remove function.
81252         (__xargmatch_internal): Remove case_sensitive argument.
81253         (main): Use XARGMATCH instead of XARGCASEMATCH.
81254
81255         * lib/xmalloc.c: Change compile-time error message. Add comment about
81256         required autoconf version.
81257
81258 2002-11-20  Paul Eggert  <eggert@twinsun.com>
81259
81260         Merge argmatch cleanups from Bison.  Assume C89.
81261
81262         * lib/argmatch.c: Include config.h here, not in argmatch.h.
81263         Include stdlib.h, for EXIT_FAILURE.
81264         Always include <string.h>, since we assume C89.
81265         (EXIT_FAILURE): Remove pre-C89 bug workaround.
81266         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
81267         Include <stddef.h> instead, since it's all we need for size_t.
81268         (PARAMS): Remove.  All uses removed.
81269         (ARRAY_CARDINALITY): Do not bother to #undef.
81270         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
81271         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
81272         Remove unnecessary parentheses.
81273         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
81274         Insert necessary parentheses.
81275         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
81276         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
81277
81278 2002-11-19  Bruno Haible  <bruno@clisp.org>
81279
81280         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
81281         * lib/mbswidth.h: Include <stddef.h>, for size_t.
81282
81283         * lib/mbswidth.h (PARAMS): Remove macro.
81284         (mbswidth, mbsnwidth): Use ANSI C function declarations.
81285         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
81286
81287         * lib/gcd.h (PARAMS): Remove macro.
81288         (gcd): Use ANSI C function declarations.
81289         * lib/gcd.c (gcd): Likewise.
81290
81291 2002-11-15  Bruno Haible  <bruno@clisp.org>
81292
81293         * lib/strcspn.c: Include <stddef.h>.
81294         (strcspn): Use ANSI C function declaration. Change return type to
81295         size_t. Use NULL.
81296         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
81297         (strpbrk): Use NULL.
81298         * lib/strpbrk.h (PARAMS): Remove macro.
81299         (strpbrk): Use ANSI C function declaration.
81300         * lib/strstr.c: Don't include <sys/types.h>.
81301         * lib/strstr.h (PARAMS): Remove macro.
81302         (strstr): Use ANSI C function declarations.
81303
81304 2002-11-14  Karl Berry  <karl@gnu.org>
81305
81306         * config/mkinstalldirs: `do' on separate line, instead of
81307         `for var; do'.
81308
81309 2002-11-06  Bruno Haible  <bruno@clisp.org>
81310
81311         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
81312         * lib/gcd.c (gcd): Likewise.
81313
81314 2002-11-05  Bruno Haible  <bruno@clisp.org>
81315
81316         * lib/gcd.h: New file, from gettext-0.11.5.
81317         * lib/gcd.c: New file, from gettext-0.11.5.
81318
81319 2002-11-05  Bruno Haible  <bruno@clisp.org>
81320
81321         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
81322         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
81323         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
81324         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
81325
81326         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
81327         <libintl.h>.
81328         * lib/makepath.c: Include gettext.h instead of <locale.h> and
81329         <libintl.h>.
81330
81331         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
81332         * lib/human.c: Include gettext.h instead of <libintl.h>.
81333         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
81334         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
81335         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
81336         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
81337         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
81338         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
81339         (textdomain): Remove definition.
81340         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
81341
81342         * lib/long-options.c: Remove include of <libintl.h> and definition of
81343         _.
81344         * lib/same.c: Remove include of <libintl.h> and definition of _.
81345
81346 2002-11-04  Owen Taylor  <otaylor@redhat.com>
81347
81348         * lib/config.charset: A few additions for Solaris.
81349
81350 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
81351
81352         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
81353         * lib/localcharset.c (locale_charset): Declare as extern "C".
81354
81355 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
81356
81357         * lib/config.charset: msdos in uk_UA uses CP1125.
81358
81359 2002-11-04  Bruno Haible  <bruno@clisp.org>
81360
81361         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
81362         * lib/strcase.h: New file, from GNU gettext-0.11.5.
81363         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
81364         * lib/strstr.h: New file, from GNU gettext-0.11.5.
81365         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
81366
81367 2002-11-04  Bruno Haible  <bruno@clisp.org>
81368
81369         * lib/localcharset.c (locale_charset): Don't return an empty string.
81370
81371 2002-11-04  Bruno Haible  <bruno@clisp.org>
81372
81373         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
81374         aliases.
81375
81376 2002-11-04  Bruno Haible  <bruno@clisp.org>
81377
81378         * lib/config.charset: Update for newest glibc. Add canonical names
81379         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
81380
81381 2002-11-04  Bruno Haible  <bruno@clisp.org>
81382
81383         * lib/config.charset: Add support for NetBSD.
81384
81385 2002-11-04  Bruno Haible  <bruno@clisp.org>
81386
81387         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
81388
81389 2002-11-01  Bruno Haible  <bruno@clisp.org>
81390
81391         * configure.in: Add AC_CONFIG_AUX_DIR call.
81392         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
81393         test/Makefile.
81394         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
81395
81396 2002-09-28  Karl Berry  <karl@gnu.org>
81397
81398         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
81399         installed automake until the next release, since changes have been
81400         made.
81401
81402 2002-09-25  Karl Berry  <karl@gnu.org>
81403
81404         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
81405         * lib/getopt*: copy from libc/posix.
81406         * lib/gettext.h: copy from gettext.
81407         * lib/.cppi-disable: add strdup.c, gettext.h.
81408
81409 2002-09-25  Karl Berry  <karl@gnu.org>
81410
81411         * config/srclist.txt: enable gettext.h check.
81412         * config/config.{guess,sub}: update from prep.
81413         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
81414                 from automake 1.6.3.
81415         See srclist*.
81416
81417 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
81418
81419         * regex.c (PATFETCH): Remove the translating fetch.
81420         (PATFETCH_RAW): Rename to PATFETCH.
81421         (set_image_of_range): New fun.
81422         (SET_RANGE_TABLE_WORK_AREA): Use it.
81423         (regex_compile): Don't translate the pattern chars so eagerly.
81424         Only do it when inserting an `exactn' bytecode or when handling
81425         a char-range.
81426         (mutually_exclusive_p): Avoid empty statement.
81427
81428 2002-07-06  Jim Meyering  <meyering@lucent.com>
81429
81430         * m4/README: Don't mention Makefile.am.in.
81431         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
81432
81433 2002-07-01  Jim Meyering  <meyering@lucent.com>
81434
81435         * lib/c-stack.c: Include sys/time.h.
81436         From Volker Borchert.
81437
81438 2002-06-26  Paul Eggert  <eggert@twinsun.com>
81439
81440         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
81441
81442 2002-06-26  Paul Eggert  <eggert@twinsun.com>
81443
81444         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
81445         New macro.  Use it uniformly instead of
81446         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
81447         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
81448         reported by Vin Shelton.
81449
81450 2002-06-22  Paul Eggert  <eggert@twinsun.com>
81451
81452         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
81453         Do not assume SA_SIGINFO behavior.
81454         Bug reported by Jim Meyering on NetBSD 1.5.2.
81455
81456 2002-06-22  Jim Meyering  <meyering@lucent.com>
81457
81458         * m4/c-stack.m4: New file, from diffutils-2.8.2.
81459         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
81460
81461         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
81462         now that configure.ac uses AC_GNU_SOURCE.
81463         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
81464         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
81465
81466         Update to latest tools.  Suggestions from Paul Eggert.
81467         * m4/stdbool.m4: New file, from diffutils-2.8.2.
81468         * m4/gnu-source.m4: Update from diffutils-2.8.2.
81469         * m4/fnmatch.m4: Likewise.
81470         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
81471         to AC_HEADER_STDBOOL
81472
81473 2002-06-22  Jim Meyering  <meyering@lucent.com>
81474
81475         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
81476         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
81477
81478 2002-06-22  Jim Meyering  <meyering@lucent.com>
81479
81480         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
81481
81482         * lib/exitfail.c, exitfail.h: Likewise.
81483         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
81484
81485         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
81486         of fnmatch.h.
81487         (EXTRA_DIST): Add fnmatch_loop.c.
81488         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
81489
81490         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
81491         * lib/fnmatch.c: Update from diffutils-2.8.2.
81492         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
81493         * lib/fnmatch.h: Remove file.
81494
81495 2002-06-21  Jim Meyering  <meyering@lucent.com>
81496
81497         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
81498         * m4/mbrtowc.m4: Likewise.
81499
81500         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
81501         * m4/mbswidth.m4: Reflect name change:
81502         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
81503         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
81504
81505         * m4/lib-link.m4: Update from gettext-0.11.2.
81506         * m4/gettext.m4: Likewise.
81507
81508         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
81509         From Alfred M. Szmidt.
81510
81511 2002-06-18  Paul Eggert  <eggert@twinsun.com>
81512
81513         * lib/file-type.h: Report an error if neither S_ISREG nor
81514         S_IFREG is defined, instead of using a test specific to glibc
81515         2.2.  This should be safe, since POSIX requires S_ISREG and
81516         Unix Version 7 had S_IFREG.  We don't need to check for
81517         <sys/types.h> since we don't use any symbols that it defines.
81518
81519 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
81520
81521         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
81522         $@-t, so that each temporary file name is unique and valid in the first
81523         8 characters, for operation under DOS.
81524
81525 2002-06-15  Paul Eggert  <eggert@twinsun.com>
81526
81527         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
81528
81529 2002-06-15  Jim Meyering  <meyering@lucent.com>
81530
81531         Work even with DJGPP 2.03, which lacks support for symlinks.
81532         From Richard Dawe.
81533         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
81534         is defined.
81535         * lib/lchown.c (S_ISLNK): Likewise.
81536
81537 2002-06-15  Jim Meyering  <meyering@lucent.com>
81538
81539         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
81540         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
81541         have been included before this file.
81542
81543 2002-06-14  Jim Meyering  <meyering@lucent.com>
81544
81545         * lib/file-type.h: Use the version from diffutils-2.8.2.
81546         * lib/file-type.c: Likewise.
81547
81548 2002-06-07  Jim Meyering  <meyering@lucent.com>
81549
81550         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
81551         They're needed at least for NetBSD 1.5.2.
81552         ($statxfs_includes): Include those same headers.
81553         ($statxfs_includes): Include sys/vfs.h if available.
81554         ($statxfs_includes): Likewise for sys/statvfs.h.
81555         Check for the following members in both structs statfs and statvfs:
81556         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
81557
81558 2002-06-01  Jim Meyering  <meyering@lucent.com>
81559
81560         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
81561         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
81562
81563 2002-05-28  Jim Meyering  <meyering@lucent.com>
81564
81565         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
81566         Reported by Volker Borchert.
81567
81568 2002-05-27  Jim Meyering  <meyering@lucent.com>
81569
81570         Fix a problem seen only on nonconforming systems whereby ls.c's
81571         use of localtime, and then of gettimeofday would cause trouble:
81572         the localtime call used to initialize rpl_gettimeofday's save
81573         mechanism would clobber ls's current local time information so
81574         that in any long listing the first file would always be listed
81575         with date 1970-01-01.  Analysis by Volker Borchert.
81576
81577         * lib/gettimeofday.c (localtime): Undefine.
81578         (rpl_localtime): New function.
81579
81580 2002-05-27  Jim Meyering  <meyering@lucent.com>
81581
81582         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
81583         localtime.
81584
81585         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
81586         use the replacement function; it wouldn't resolve at link time.
81587         Reported by Volker Borchert.
81588
81589 2002-05-22  Jim Meyering  <meyering@lucent.com>
81590
81591         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
81592         file-type.h.
81593         * lib/file-type.h: New file.
81594         * lib/file-type.c (file_type): New file/function.  Extracted from
81595         diffutils.
81596
81597 2002-04-30  Jim Meyering  <meyering@lucent.com>
81598
81599         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
81600
81601 2002-04-29  Paul Eggert  <eggert@twinsun.com>
81602
81603         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
81604
81605 2002-04-29  Paul Eggert  <eggert@twinsun.com>
81606
81607         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
81608         Do not check for alloca.h (no longer used) or stdbool.h (was never
81609         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
81610
81611 2002-04-29  Paul Eggert  <eggert@twinsun.com>
81612
81613         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
81614
81615 2002-04-29  Jim Meyering  <meyering@lucent.com>
81616
81617         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
81618         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
81619         Use AC_FUNC_STRNLEN here instead.
81620
81621         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
81622         With autoconf-2.53a, it's part of AC_PROG_CC.
81623
81624 2002-04-28  Paul Eggert  <eggert@twinsun.com>
81625
81626         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
81627         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
81628
81629 2002-04-28  Paul Eggert  <eggert@twinsun.com>
81630
81631         * lib/sig2str.h, lib/sig2str.c: New files.
81632         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
81633
81634 2002-04-28  Paul Eggert  <eggert@twinsun.com>
81635
81636         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
81637         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
81638         of 127, since 64 is the largest conceivable number for ancient
81639         nonstandard hosts.
81640         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
81641
81642 2002-04-28  Jim Meyering  <meyering@lucent.com>
81643
81644         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
81645
81646 2002-04-24  Jim Meyering  <meyering@lucent.com>
81647
81648         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
81649         (jm_PREREQ): Use it.
81650
81651         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
81652         mach/mach.h fcntl.h.
81653         Check for this function: setlocale.
81654
81655 2002-04-24  Jim Meyering  <meyering@lucent.com>
81656
81657         * lib/gettext.h: New file, from Gettext.
81658         * lib/Makefile.am (INCLUDES): Remove -I../intl.
81659         (libfetish_a_SOURCES): Add gettext.h.
81660
81661 2002-04-16  Jim Meyering  <meyering@lucent.com>
81662
81663         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
81664         ut_pid, ut_id, ut_exit.
81665
81666 2002-04-16  Jim Meyering  <meyering@lucent.com>
81667
81668         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
81669         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
81670         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
81671
81672 2002-04-12  Jim Meyering  <meyering@lucent.com>
81673
81674         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
81675         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
81676         existence of the getmntinfo function.  Needed for Darwin 5.3.
81677
81678         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
81679         This is necessary at least on Darwin 5.3.
81680
81681         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
81682         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
81683         strnlen.o in the library, and that makes some versions of ranlib
81684         object.
81685
81686 2002-04-12  Jim Meyering  <meyering@lucent.com>
81687
81688         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
81689
81690 2002-04-09  Jim Meyering  <meyering@lucent.com>
81691
81692         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
81693         to be more precise.  Rather than saying we're checking whether the
81694         function `works', say what we're testing.
81695         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
81696         Reported by Bruno Haible.
81697
81698 2002-03-10  Jim Meyering  <meyering@lucent.com>
81699
81700         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
81701         Suggestion from Santiago Vila.
81702
81703 2002-03-08  Jim Meyering  <meyering@lucent.com>
81704
81705         * lib/rename.c: Mention that this wrapper is needed also on
81706         mips-dec-ultrix4.4 systems.
81707
81708 2002-03-02  Jim Meyering  <meyering@lucent.com>
81709
81710         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
81711         not HAVE_CLOCK_SETTIME.
81712
81713 2002-02-27  Paul Eggert  <eggert@twinsun.com>
81714
81715         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
81716         Check for clock_settime.
81717
81718 2002-02-27  Paul Eggert  <eggert@twinsun.com>
81719
81720         * lib/nanosleep.h: Rename to....
81721         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
81722
81723         * lib/gettime.c: New file.
81724         * lib/settime.c: New file.
81725         * lib/stime.c: Remove.
81726
81727         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
81728         timespec.h.  Remove nanosleep.h.
81729
81730 2002-02-25  Paul Eggert  <eggert@twinsun.com>
81731
81732         * m4/acl.m4: New file.
81733         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
81734         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
81735
81736 2002-02-25  Paul Eggert  <eggert@twinsun.com>
81737
81738         * lib/acl.c, lib/acl.h: New files.
81739         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
81740
81741 2002-02-24  Jim Meyering  <meyering@lucent.com>
81742
81743         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
81744         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
81745         cause trouble.  Reported by Nelson Beebe.
81746
81747 2002-02-23  Paul Eggert  <eggert@twinsun.com>
81748
81749         * lib/path-concat.c (xpath_concat): Reorder code to pacify
81750         compilers that don't know that xalloc_die never returns.
81751
81752 2002-02-20  Jim Meyering  <meyering@lucent.com>
81753
81754         * lib/getdate.c: Regenerate using bison-1.33.
81755
81756 2002-02-17  Jim Meyering  <meyering@lucent.com>
81757
81758         * config/config.guess (main): Don't use `head -1'; it's no longer
81759         portable. Use `sed 1q' instead.
81760
81761 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
81762
81763         * m4/codeset.m4: Upgrade to gettext-0.11.
81764         * m4/gettext.m4: Upgrade to gettext-0.11.
81765         * m4/glibc21.m4: Upgrade to gettext-0.11.
81766         * m4/iconv.m4: Upgrade to gettext-0.11.
81767         * m4/isc-posix.m4: Upgrade to gettext-0.11.
81768         * m4/lcmessage.m4: Upgrade to gettext-0.11.
81769         * m4/lib-ld.m4: New file, from gettext-0.11.
81770         * m4/lib-link.m4: New file, from gettext-0.11.
81771         * m4/lib-prefix.m4: New file, from gettext-0.11.
81772         * m4/progtest.m4: Upgrade to gettext-0.11.
81773
81774 2002-02-15  Paul Eggert  <eggert@twinsun.com>
81775
81776         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
81777         (jm_PREREQ): Use it.
81778
81779 2002-02-15  Paul Eggert  <eggert@twinsun.com>
81780
81781         * lib/posixver.c, lib/posixver.h: New files.
81782         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
81783
81784 2002-02-02  Paul Eggert  <eggert@twinsun.com>
81785             Bruno Haible  <bruno@clisp.org>
81786
81787         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
81788         (fwrite_success_callback): New declaration.
81789         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
81790         print_unicode_char. Call failure callback instead of error.
81791         (fwrite_success_callback): New function.
81792         (exit_failure_callback): New function.
81793         (fallback_failure_callback): New function.
81794         (print_unicode_char): Call unicode_to_mb.
81795
81796 2002-01-26  Jim Meyering  <meyering@lucent.com>
81797
81798         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
81799         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
81800
81801 2002-01-26  Jim Meyering  <meyering@lucent.com>
81802
81803         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
81804
81805 2002-01-22  Paul Eggert  <eggert@twinsun.com>
81806
81807         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
81808
81809 2002-01-22  Jim Meyering  <meyering@lucent.com>
81810
81811         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
81812         Otherwise, some versions of automake would omit the rule that makes
81813         Makefile from Makefile.in.
81814
81815 2002-01-21  Paul Eggert  <eggert@twinsun.com>
81816
81817         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
81818         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
81819         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
81820         (memcoll): Set errno to zero if there is no error.
81821
81822         * lib/quotearg.c (quotearg_buffer_restyled):
81823         Fix bug with quoting buffers containing NUL when backslashing escapes.
81824         This bug was exposed by the other changes in this patch.
81825         (quotearg_n_options): New arg ARGSIZE.
81826         All callers changed.
81827         (quoting_options_from_style): New function.
81828         (quotearg_n_style): Use it.
81829         (quotearg_n_style_mem): New function.
81830
81831         * lib/quotearg.h (quotearg_n_style_mem): New function.
81832
81833 2002-01-19  Jim Meyering  <meyering@lucent.com>
81834
81835         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
81836         Remove useless quotes: DF_PROG="df".
81837         * m4/strnlen.m4: New file.
81838
81839 2002-01-16  Paul Eggert  <eggert@twinsun.com>
81840
81841         * lib/backupfile.c (ISDIGIT): Comment fix.
81842         * lib/getdate.y (ISDIGIT): Likewise.
81843         * lib/posixtm.c (ISDIGIT, year): Likewise.
81844         * lib/strverscmp.c (ISDIGIT): Likewise.
81845         * lib/userspec.c (ISDIGIT): Likewise.
81846
81847 2002-01-16  Jim Meyering  <meyering@lucent.com>
81848
81849         * lib/getdate.y: Add three semicolons, each just before a closing
81850         brace. Bison (as of version 1.31) no longer papers over that mistake.
81851
81852 2002-01-05  Jim Meyering  <meyering@lucent.com>
81853
81854         * lib/version-etc.c (version_etc_copyright): Update copyright year.
81855
81856 2001-12-19  Paul Eggert  <eggert@twinsun.com>
81857
81858         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
81859         not silently exit merely because the output buffer happens to
81860         have nothing pending.
81861
81862 2001-12-18  Paul Eggert  <eggert@twinsun.com>
81863
81864         See the big note in ../ChangeLog.
81865         * lib/human.c (suffixes): Prefer K to k for 1024.
81866         (generate_suffix_backwards): New function.
81867         (human_readable_inexact): Use it.
81868         * lib/xstrtol.c (__xstrtol): If there is no number but there
81869         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
81870         Accept 'K' as well as 'k'.
81871
81872 2001-12-15  Jim Meyering  <meyering@lucent.com>
81873
81874         * lib/regex.h (__restrict_arr): Update from libc.
81875
81876         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
81877         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
81878         (STREQ): Define.
81879
81880 2001-12-14  Jim Meyering  <meyering@lucent.com>
81881
81882         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
81883         Suggestion from Bruno Haible.
81884
81885 2001-12-10  Jim Meyering  <meyering@lucent.com>
81886
81887         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
81888         xrealloc, Instead, include "xalloc.h".
81889         (initbuffer): Don't cast xmalloc return value to char*.
81890         (readline): Reword comment.
81891         Don't cast xrealloc return value to char*
81892         Return NULL, not 0.
81893
81894 2001-12-09  Jim Meyering  <meyering@lucent.com>
81895
81896         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
81897         about `signed and unsigned type in conditional expression'.
81898         * lib/posixtm.c (posix_time_parse): Likewise.
81899
81900         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
81901
81902         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
81903         to avoid a pedantic warning.
81904
81905         * lib/getstr.c: Don't include assert.h.
81906         (getstr): Remove warning-evoking assertions.
81907         Return -1 if offset parameter is out of bounds.
81908         Change the type of a local from int to size_t.
81909
81910         * lib/strftime.c (my_strftime_localtime_r): Include this function
81911         definition in the `#if ! HAVE_TM_GMTOFF' block.
81912
81913         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
81914         Include xalloc.h instead.
81915
81916 2001-12-02  Jim Meyering  <meyering@lucent.com>
81917
81918         * lib/tempname.c: Don't declare getenv, thus reverting the change of
81919         2001-11-18.  It's no longer necessary, now that stdlib.h is always
81920         included.
81921
81922         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
81923         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
81924
81925 2001-11-30  Akim Demaille  <akim@epita.fr>
81926
81927         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
81928         before being defined.
81929
81930 2001-11-27  Paul Eggert  <eggert@twinsun.com>
81931
81932         * lib/quotearg.h (quotearg_n, quotearg_n_style):
81933         First arg is int, not unsigned.
81934         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
81935         (SIZE_MAX, UINT_MAX): New macros.
81936         (quotearg_n_options): Abort if N is negative.
81937         Avoid overflow check on hosts where size_t is 64 bits and int
81938         is 32 bits, as overflow is impossible there.
81939         Fix off-by-one typo that caused unnecessary reallocation.
81940
81941 2001-11-27  Jim Meyering  <meyering@lucent.com>
81942
81943         * lib/tempname.c: Merge with version from libc.
81944         * lib/regex.c: Likewise.
81945
81946         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
81947         systems for which STDC_HEADERS is 0, it was not included, resulting in
81948         a warning about an integer-to-pointer conversion problem with getenv.
81949         Reported by Volker Borchert.
81950
81951 2001-11-26  Jim Meyering  <meyering@lucent.com>
81952
81953         * lib/gtod.h: Remove file.
81954         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
81955         * lib/gettimeofday.c: Don't include gtod.h.
81956         (GTOD_init): Remove function.
81957         (rpl_gettimeofday): Do its job here instead, rather than aborting.
81958         Suggestion from Volker Borchert.
81959
81960 2001-11-23  Jim Meyering  <meyering@lucent.com>
81961
81962         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
81963         it.
81964         * lib/hash.c (struct hash_table): Define it here instead.
81965
81966 2001-11-22  Jim Meyering  <meyering@lucent.com>
81967
81968         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
81969
81970 2001-11-20  Jim Meyering  <meyering@lucent.com>
81971
81972         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
81973         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
81974
81975 2001-11-19  Jim Meyering  <meyering@lucent.com>
81976
81977         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
81978         directory.  Use "conftestXXXXXX" as the template.
81979         Suggestion from Paul Eggert.
81980
81981         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
81982         immediately, so the test doesn't mistakenly hit the max-open-files
81983         limit.
81984
81985 2001-11-18  Paul Eggert  <eggert@twinsun.com>
81986
81987         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
81988         (TEMPORARIES): New macro.
81989         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
81990         removes an artificial limitation (e.g. HP-UX 10.20, where
81991         TMP_MAX is 17576).
81992
81993 2001-11-18  Jim Meyering  <meyering@lucent.com>
81994
81995         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
81996
81997 2001-11-18  Jim Meyering  <meyering@lucent.com>
81998
81999         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
82000         on SunOS 4.
82001
82002         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
82003         files will be created before anything else.
82004
82005 2001-11-17  Paul Eggert  <eggert@twinsun.com>
82006
82007         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
82008         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
82009
82010 2001-11-17  Jim Meyering  <meyering@lucent.com>
82011
82012         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
82013         Prompted by a report from Bob Proulx.
82014
82015         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
82016         Instead, require UTILS_FUNC_MKSTEMP.
82017
82018 2001-11-17  Jim Meyering  <meyering@lucent.com>
82019
82020         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
82021         Now, that's done as part of AC_FUNC_STRTOD.
82022
82023 2001-11-17  Jim Meyering  <meyering@lucent.com>
82024
82025         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
82026         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
82027         rather than group writable.  Patch by Juan F. Codagnone.
82028
82029         * lib/readtokens.c: Remove explicit declarations of xmalloc and
82030         xrealloc, Instead, include "xalloc.h".
82031
82032         * lib/mountlist.c: Include unlocked-io.h after all system headers.
82033         Remove explicit declarations of xmalloc, xrealloc,
82034         and xstrdup.  Instead, include "xalloc.h".
82035
82036         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
82037         unlocked-io.h.
82038         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
82039         Likewise.
82040         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
82041
82042         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
82043         Reported by Padraig Brady.
82044
82045         * lib/mkstemp.c: #undef mkstemp.
82046         Include config.h.
82047         (rpl_mkstemp): Rename from mkstemp.
82048         Protoize.
82049
82050 2001-11-16  Jim Meyering  <meyering@lucent.com>
82051
82052         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
82053         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
82054         determine the amount of total physical memory, use pstat_getstatic.
82055         HPUX-11 doesn't define _SC_PHYS_PAGES.
82056         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
82057         If sysconf couldn't be used to determine the amount of available
82058         physical memory, use both pstat_getstatic and pstat_getdynamic.
82059         Based on a patch from Bob Proulx.
82060
82061 2001-11-10  Jim Meyering  <meyering@lucent.com>
82062
82063         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
82064         (jm_PREREQ): Use it.
82065
82066 2001-11-09  Jim Meyering  <meyering@lucent.com>
82067
82068         * m4/jm-macros.m4: Require autoconf-2.52f.
82069         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
82070         Use these AC_-prefixed names, not the AM_-prefixed ones.
82071
82072         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
82073
82074 2001-11-05  Jim Meyering  <meyering@lucent.com>
82075
82076         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
82077
82078 2001-11-04  Jim Meyering  <meyering@lucent.com>
82079
82080         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
82081         $DEFS.
82082
82083 2001-11-03  Jim Meyering  <meyering@lucent.com>
82084
82085         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
82086         of AC_DEFUN.
82087
82088         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
82089         know the name of the variable in the macro definition.
82090
82091 2001-11-03  Jim Meyering  <meyering@lucent.com>
82092
82093         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
82094         in argmatch_to_argument call.
82095
82096         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
82097         argument.
82098
82099         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
82100         e.g., a fault due to an attempt to free a NULL pointer.
82101
82102 2001-11-01  Jim Meyering  <meyering@lucent.com>
82103
82104         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
82105         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
82106
82107 2001-11-01  Jim Meyering  <meyering@lucent.com>
82108
82109         * lib/dirfd.c, lib/dirfd.h: New files.
82110         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
82111
82112         * lib/hash.c (hash_print) [TESTING]: Clean up.
82113
82114 2001-10-22  Paul Eggert  <eggert@twinsun.com>
82115
82116         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
82117         to avoid a warning if -Wall.
82118
82119 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
82120
82121         * README: New file
82122         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
82123         (per RMS's instructions, this is now the canonical source)
82124         * lgpl/, gpl/: New directories.
82125
82126 2001-10-21  Paul Eggert  <eggert@twinsun.com>
82127
82128         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
82129
82130 2001-10-21  Jim Meyering  <meyering@lucent.com>
82131
82132         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
82133         this code would end up calling gettext even in packages built
82134         with --disable-nls.
82135         * lib/getopt.c (_): Likewise.
82136         * lib/regex.c (_): Likewise.
82137
82138 2001-10-20  Paul Eggert  <eggert@twinsun.com>
82139
82140         * m4/error.m4 (jm_PREREQ_ERROR):
82141         Do not invoke AC_CHECK_FUNCS with strerror_r, as
82142         AC_FUNC_STRERROR_R does that.
82143         Check for strerror declaration.
82144
82145         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
82146         are supposed to have them these days.
82147         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
82148         Merge changes from latest Autoconf CVS.
82149         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
82150         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
82151         POSIX decided to standardize on the int flavor of strerror_r.
82152
82153 2001-10-20  Paul Eggert  <eggert@twinsun.com>
82154
82155         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
82156         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
82157         Use strerror_r that is only a macro, even if it is not a function.
82158         (strerror): Check for HAVE_DECL_STRERROR before declaring.
82159         (private_strerror): Use prototypes, not old-style function definition.
82160         (print_errno_message): New function.
82161         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
82162         char*-flavored one.
82163         (error_tail, error, error_at_line): Use it.
82164
82165 2001-10-11  Jim Meyering  <meyering@lucent.com>
82166
82167         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
82168         and quote_n (1, ... to avoid clobbering a buffer.
82169
82170 2001-10-05  Jim Meyering  <meyering@lucent.com>
82171
82172         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
82173         hash-pjw.h.
82174         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
82175         * lib/hash-pjw.h: New file.
82176
82177 2001-09-30  Jim Meyering  <meyering@lucent.com>
82178
82179         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
82180         `struct fsstat' has the `f_fstypename' member.
82181         Use that to define FS_TYPE, which is now used to make
82182         the getfsstat link test tighter.
82183
82184 2001-09-30  Jim Meyering  <meyering@lucent.com>
82185
82186         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
82187         Include <sys/ucred.h>, for Apple Darwin.
82188         Include sys/mount.h and sys/fs_types.h only if available.
82189         (FS_TYPE): Define.
82190         (read_filesystem_list): Use FS_TYPE.
82191
82192 2001-09-29  Paul Eggert  <eggert@twinsun.com>
82193
82194         * lib/exclude.c (excluded_filename): 0 -> false, since it's
82195         a boolean context.
82196
82197 2001-09-29  Jim Meyering  <meyering@lucent.com>
82198
82199         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
82200         [one-argument getmntent function]): Include stdio.h before mntent.h.
82201         SunOS 4.1.x needs it for the declaration of `FILE'.
82202         Patch by Volker Borchert.
82203
82204         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
82205         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
82206         sys/fs_types.h, and make the link-test for getfsstat guard #include
82207         directives with appropriate #if HAVE_*_H tests so that we can
82208         detect getfsstat on Apple Darwin1.3.7 systems.
82209         Reported by Nelson Beebe.
82210         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
82211
82212 2001-09-28  Paul Eggert  <eggert@twinsun.com>
82213
82214         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
82215         #defines strtoimax.  Also treat the other strto* functions
82216         like strtoimax.
82217
82218         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
82219         Check for strtoul and strtoumax,
82220         as those declarations are made even in the signed case.
82221         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
82222         Likewise, for strtol and strtoimax.
82223
82224 2001-09-28  Paul Eggert  <eggert@twinsun.com>
82225
82226         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
82227         #defines strtoimax.  Also treat the other strto* functions
82228         like strtoimax.
82229
82230         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
82231         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
82232         (strtoimax, strtoumax): Do not declare if already defined as a macro.
82233
82234 2001-09-26  Jim Meyering  <meyering@lucent.com>
82235
82236         Most macros in unlocked-io.h had the wrong number of arguments.
82237         * lib/gen-uio: New script.
82238         (USE_UNLOCKED_IO): Define to 1 if not already defined.
82239         * lib/unlocked-io.hin: Remove file.
82240         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
82241         rather than trying to embed it here.
82242         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
82243         Reported by Padraig Brady.
82244
82245 2001-09-25  Volker Borchert  <bt@teknon.de>
82246
82247         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
82248         `result'.
82249
82250 2001-09-24  Jim Meyering  <meyering@lucent.com>
82251
82252         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
82253
82254 2001-09-23  Jim Meyering  <meyering@lucent.com>
82255
82256         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
82257         instead of the mere test for existence of mntent.h.  The latter
82258         would get a false-positive on AIX 3.4 systems.
82259         In the outer getmntent if-block, don't die if neither of the getmntent
82260         tests succeeds.  Instead, just fall through and continue with the
82261         remaining tests.
82262
82263 2001-09-23  Jim Meyering  <meyering@lucent.com>
82264
82265         * lib/mountlist.c: Remove useless parentheses in #if directives.
82266         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
82267         the deprecated MOUNTED symbol is no longer defined in mntent.h.
82268
82269 2001-09-22  Jim Meyering  <meyering@lucent.com>
82270
82271         * m4/gettext.m4: New file.  From gettext.
82272         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
82273         * m4/progtest.m4: Likewise
82274         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
82275         * m4/glibc21.m4: Likewise.
82276
82277         * m4/libintl.m4: Remove.  No longer used.
82278
82279 2001-09-22  Jim Meyering  <meyering@lucent.com>
82280
82281         * lib/localcharset.c: Update from latest gettext.
82282         * lib/config.charset: Likewise.
82283
82284 2001-09-20  Jim Meyering  <meyering@lucent.com>
82285
82286         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
82287         strtoimax.
82288         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
82289         strtoumax.
82290
82291 2001-09-20  Jim Meyering  <meyering@lucent.com>
82292
82293         * lib/xstrtol.c (strtoimax): Guard declaration with
82294         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
82295         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
82296         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
82297         (strtoumax): Likewise, for completeness (it wasn't necessary).
82298
82299 2001-09-17  Paul Eggert  <eggert@twinsun.com>
82300
82301         * lib/strtoimax.c (HAVE_LONG_LONG):
82302         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
82303         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
82304         to work around bug in IBM C compiler.
82305
82306 2001-09-17  Jim Meyering  <meyering@lucent.com>
82307
82308         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
82309         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
82310         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
82311         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
82312         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
82313         whenever the right hand side need not be expanded by the shell.
82314
82315 2001-09-16  Paul Eggert  <eggert@twinsun.com>
82316
82317         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
82318         library.  It's not correct, as some older glibcs are buggy.
82319         fnmatch wasn't fixed until glibc 2.2.
82320
82321         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
82322         special shell magic here.
82323
82324 2001-09-16  Jim Meyering  <meyering@lucent.com>
82325
82326         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
82327         * m4/jm-macros.m4: Require it.
82328
82329 2001-09-16  Jim Meyering  <meyering@lucent.com>
82330
82331         * lib/mkdir.c: New file.
82332
82333 2001-09-15  Jim Meyering  <meyering@lucent.com>
82334
82335         * m4/jm-macros.m4: Check for help2man.
82336
82337 2001-09-11  Jim Meyering  <meyering@lucent.com>
82338
82339         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
82340         The body, by Paul Eggert, was moved here from configure.in.
82341         * m4/jm-macros.m4: Require UTILS_HOST_OS.
82342
82343 2001-09-04  Paul Eggert  <eggert@twinsun.com>
82344
82345         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
82346         (jm_PREREQ): Use it.
82347
82348 2001-09-04  Paul Eggert  <eggert@twinsun.com>
82349
82350         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
82351         Use ssize_t, not int, to store result of readlink.
82352         Check for ssize_t overflow as well as size_t overflow,
82353         as POSIX says the result of readlink is implementation-defined
82354         when ssize_t overflows.
82355         Remove unnecessary cast to char*.
82356         Use free+malloc instead of realloc, as the storage doesn't need
82357         to be preserved and it's clearer and can be more efficient that way.
82358         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
82359         * lib/xreadlink.h (xreadlink): Update prototype.
82360
82361 2001-09-04  Paul Eggert  <eggert@twinsun.com>
82362
82363         * lib/xgetcwd.c: Revert some of the previous change; intead,
82364         fix the HAVE_GETCWD_NULL code to behave more like the
82365         !HAVE_GETCWD_NULL code used to.
82366
82367         Include "xalloc.h".
82368         (xgetcwd): Do not return NULL when memory is exhausted; instead,
82369         invoke xalloc_die.
82370
82371 2001-09-03  Paul Eggert  <eggert@twinsun.com>
82372
82373         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
82374         sys/param.h, as pathmax.h includes them.
82375
82376 2001-09-03  Paul Eggert  <eggert@twinsun.com>
82377
82378         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
82379         (jm_PREREQ_XGETCWD): New macro.
82380
82381         * m4/getcwd.m4: New file.
82382
82383 2001-09-03  Paul Eggert  <eggert@twinsun.com>
82384
82385         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
82386         like the HAVE_GETCWD_NULL code.
82387         Include pathmax.h if not HAVE_GETCWD.
82388         Do not include xalloc.h.
82389         (INITIAL_BUFFER_SIZE): New symbol.
82390         Do not use xmalloc / xrealloc, since the caller is responsible for
82391         handling errors.  Preserve errno around `free' during failure.
82392         Do not overrun buffer when using getwd.
82393
82394 2001-09-03  Paul Eggert  <eggert@twinsun.com>
82395
82396         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
82397         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
82398         getcwd (NULL, 0).
82399
82400 2001-09-03  Paul Eggert  <eggert@twinsun.com>
82401
82402         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
82403         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
82404         spotted by Jim Meyering.
82405
82406 2001-09-03  Jim Meyering  <meyering@lucent.com>
82407
82408         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
82409         failure.
82410
82411 2001-09-02  Jim Meyering  <meyering@lucent.com>
82412
82413         * lib/error.c: Update from GNU libc.
82414
82415 2001-09-01  Jim Meyering  <meyering@lucent.com>
82416
82417         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
82418         Used by df.
82419
82420 2001-09-01  Jim Meyering  <meyering@lucent.com>
82421
82422         * lib/xreadlink.c: New file.
82423         * lib/xreadlink.h: New file.
82424         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
82425         xreadlink.h.
82426
82427         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
82428         doesn't conflict with sparc Solaris 7's definition in
82429         /usr/include/sys/int_types.h.
82430
82431         * lib/exclude.c: Use `""', not `<>' to #include non-system header
82432         files.
82433         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
82434         and strncasecmp as r-values.  Unixware didn't have declarations.
82435
82436 2001-08-31  Paul Eggert  <eggert@twinsun.com>
82437
82438         * lib/xstrtol.h: Add copyright notice.
82439         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
82440         LONGINT_INVALID_SUFFIX_CHAR.
82441
82442 2001-08-31  Paul Eggert  <eggert@twinsun.com>
82443
82444         * lib/xstrtol.c (strtoimax): New decl.
82445
82446 2001-08-31  Paul Eggert  <eggert@twinsun.com>
82447
82448         * lib/xgetcwd.c: Don't include pathmax.h.
82449         Include stdlib.h and unistd.h if available.
82450         Include xalloc.h.
82451         (xmalloc, xstrdup, free): Remove decls.
82452         (xgetcwd): Don't assume sizes fit in unsigned.
82453         Check for overflow when computing sizes.
82454         Simplify reallocation code.
82455
82456 2001-08-31  Paul Eggert  <eggert@twinsun.com>
82457
82458         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
82459         a directory's st_size can have an arbitrary value, so the old
82460         usage could waste an arbitrary amount of memory.  All uses
82461         changed.
82462         * lib/savedir.h: Update prototype.
82463
82464 2001-08-31  Paul Eggert  <eggert@twinsun.com>
82465
82466         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
82467
82468         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
82469         old strtoimax.c.
82470
82471         Also, make the following further changes to make this file's
82472         configuration more similar to that of strtol.c:
82473         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
82474         (strtoumax, uintmax_t, strtoull, strtol): Remove.
82475         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
82476         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
82477         changed to signed values.
82478
82479         And make the following changes as well:
82480         Fix copyright notice, as 1999 was missing.
82481         (verify): New macro.
82482         (strtoimax): Check sizes at compile-time, not run-time.
82483         Prefer strtol to strtoll if both work.
82484         (main): Remove; it was not that useful and was a pain to maintain.
82485
82486         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
82487
82488 2001-08-31  Jim Meyering  <meyering@lucent.com>
82489
82490         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
82491         Use an initial, malloc'd, buffer of length 128 rather than
82492         a statically allocated one of length 1024.
82493
82494 2001-08-30  Paul Eggert  <eggert@twinsun.com>
82495
82496         Simplify code, partly by assuming autoconf 2.52 semantics.
82497
82498         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
82499
82500         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
82501         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
82502         All uses removed.
82503         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
82504         Move AC_REQUIRE to next-to-top level, to avoid confusion.
82505         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
82506         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
82507         jm_AC_HEADER_INTTYPES_H.
82508         * m4/jm-macros.m4 (jm_MACROS): Likewise.
82509
82510         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
82511
82512         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
82513         Quote first arg of AC_DEFUN.
82514         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
82515         since they are needed to parse the include file even if we need
82516         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
82517         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
82518         but with opposite signedness.
82519
82520 2001-08-30  Paul Eggert  <eggert@twinsun.com>
82521
82522         Merge 'exclude' changes from tar 1.13.22.
82523         This fixes one or two unlikely storage allocation overflow bugs,
82524         but doesn't change user-visible behavior otherwise.
82525
82526 2001-08-30  Paul Eggert  <eggert@twinsun.com>
82527
82528         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
82529         (jm_PREREQ_EXCLUDE): New macro.
82530
82531 2001-08-30  Paul Eggert  <eggert@twinsun.com>
82532
82533         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
82534         tm to be declared.
82535
82536 2001-08-30  Paul Eggert  <eggert@twinsun.com>
82537
82538         * lib/hash.c: Remove '2001' from copyright notice.
82539
82540 2001-08-30  Paul Eggert  <eggert@twinsun.com>
82541
82542         * lib/full-write.h: New file.
82543         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
82544         * lib/full-write.c: Correct credits, as cccp.c no longer
82545         exists and anyway it was so heavily changed from the old cccp
82546         code as to be unrecognizable.  Include full-write.h.
82547         (full_write): Return size_t, with short writes meaning failure.
82548         All callers changed.  This fixes a bug with large buffers
82549         on 64-bit hosts.
82550         * lib/utime.c: Include full-write.h.
82551
82552 2001-08-30  Paul Eggert  <eggert@twinsun.com>
82553
82554         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
82555         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
82556         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
82557         Include if available.
82558         (<xalloc.h>): Include
82559         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
82560         (verify): New macro.  Use it to verify that EXCLUDE macros do not
82561         collide with FNM macros.
82562         (struct patopts): New struct.
82563         (struct exclude): Use it, as exclude patterns now come with options.
82564         (new_exclude): Support above changes.
82565         (new_exclude, add_exclude_file):
82566         Initial size must now be a power of two to simplify overflow checking.
82567         (free_exclude, fnmatch_no_wildcards): New function.
82568         (excluded_filename): No longer requires options arg, as the options
82569         are determined by add_exclude.  Now returns bool, not int.
82570         (excluded_filename, add_exclude):
82571         Add support for the fancy new exclusion options.
82572         (add_exclude, add_exclude_file): Now takes int options arg.
82573         Check for arithmetic overflow when computing sizes.
82574         (add_exclude_file): xrealloc might modify errno, so don't
82575         realloc until after errno might be used.
82576
82577         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
82578         New macros.
82579         (free_exclude): New decl.
82580         (add_exclude, add_exclude_file): Now takes int options arg.
82581         (excluded_filename): No longer requires options arg, as the options
82582         are determined by add_exclude.  Now returns bool, not int.
82583
82584 2001-08-30  Paul Eggert  <eggert@twinsun.com>
82585
82586         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
82587
82588 2001-08-27  Jim Meyering  <meyering@lucent.com>
82589
82590         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
82591
82592         * lib/version-etc.c (N_): Remove definition.
82593         Revert most of last change.
82594         Instead, simply don't mark the `Copyright...' string for translation.
82595         Based on advice from Paul Eggert.
82596
82597         * lib/strtoxmax.c: Tweak comment.
82598
82599 2001-08-26  Jim Meyering  <meyering@lucent.com>
82600
82601         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
82602
82603         * m4/xstrtoimax.m4: New file.
82604         * m4/xstrtoumax.m4: Add comments explaining why we
82605         AC_REPLACE_FUNCS(strtol).
82606
82607 2001-08-26  Jim Meyering  <meyering@lucent.com>
82608
82609         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
82610         of copyright with `%s' so translators don't get an untranslated
82611         message in 2002.
82612         (COPYRIGHT_YEAR): Define.
82613         (version_etc): Use fprintf rather than fputs.
82614         Suggestion from Ulrich Drepper.
82615
82616         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
82617
82618         * lib/strtoll.c: New file, from GNU libc.
82619         * lib/xstrtoimax.c: New file.
82620
82621         * lib/xstrtol.h: Add xstrtoimax.
82622         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
82623         * lib/strtoimax.c: New file.  Likewise, but first define
82624         STRTOUXMAX_SIGNED.
82625
82626         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
82627         ...
82628         * lib/strtoxmax.c: ... then renamed to this.
82629
82630 2001-08-18  Paul Eggert  <eggert@twinsun.com>
82631
82632         * m4/inttypes.m4: Add AC_PREREQ(2.13).
82633         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
82634         (jm_AC_TYPE_INTMAX_T): New macro.
82635         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
82636
82637         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
82638
82639         * m4/longlong.m4: Renamed from ulonglong.m4.
82640         * m4/inttypes.m4: Renamed from inttypes_h.m4.
82641         * m4/uintmax_t.m4: Removed.
82642
82643 2001-08-13  Paul Eggert  <eggert@twinsun.com>
82644
82645         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
82646         Port to Solaris 8, where 'sed' requires a space after the 'r'
82647         command, and where sh dislikes "$/".  Clean up the spacing a bit.
82648         Redirect output to $tmp just once.
82649
82650 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
82651
82652         * lib/addext.c (<errno.h>): Include.
82653         (errno): Declare if not defined.
82654         (addext): Work correctly when pathconf returns -1 and leaves
82655         errno alone because there is no limit.  Also, work even if
82656         pathconf returns a value greater than SIZE_MAX.
82657
82658 2001-08-12  Jim Meyering  <meyering@lucent.com>
82659
82660         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
82661         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
82662         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
82663         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
82664         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
82665         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
82666         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
82667         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
82668         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
82669         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
82670         utime.m4, utimes.m4, xstrtoumax.m4:
82671         Quote the first argument in each use of AC_DEFUN.
82672
82673 2001-08-12  Jim Meyering  <meyering@lucent.com>
82674
82675         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
82676         Simply `return getcwd (NULL, 0);'.
82677         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
82678         Use 1300 as initial value for length, not PATH_MAX.
82679
82680         * lib/pathmax.h: Clean up cpp syntax.
82681
82682 2001-08-12  Jim Meyering  <meyering@lucent.com>
82683
82684         * lib/gettimeofday.c: New file.
82685         * lib/gtod.h: New file.
82686         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
82687
82688 2001-08-05  Jim Meyering  <meyering@lucent.com>
82689
82690         * m4/jm-macros.m4: Require autoconf-2.52.
82691
82692 2001-08-04  Jim Meyering  <meyering@lucent.com>
82693
82694         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
82695         stmt, to get in sync with glibc.
82696
82697 2001-08-03  Paul Eggert  <eggert@twinsun.com>
82698
82699         The following changes are from gettext 0.10.39 as maintained by
82700         Bruno Haible.
82701
82702         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
82703         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
82704         with inverted sense.  All uses changed.
82705
82706         * lib/mbswidth.c: Don't include <limits.h>.
82707         Include <stdlib.h> and <string.h> unconditionally.
82708         (iswcntrl, mbsinit, ISCNTRL): New macros.
82709         (mbsnwidth): Use K&R style function declarations.
82710         Don't bother checking for MB_LEN_MAX == 1, since the compiler
82711         can optimize it when MB_CUR_MAX == 1.
82712         The width of control characters is zero, not 1.
82713
82714 2001-08-03  Paul Eggert  <eggert@twinsun.com>
82715
82716         The following changes are from gettext 0.10.39 as maintained by
82717         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
82718
82719         * m4/codeset.m4: Upgrade to serial AM1.
82720         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
82721         all uses changed.  Quote first arg of AC_DEFUN.
82722         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
82723
82724         * m4/iconv.m4: Upgrade to serial AM2.
82725         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
82726         Add --with-libconv-prefix.
82727         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
82728         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
82729         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
82730         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
82731         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
82732
82733         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
82734         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
82735         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
82736         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
82737         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
82738         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
82739         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
82740         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
82741         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
82742
82743         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
82744         string.h any more.
82745
82746         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
82747         not the default value.
82748
82749         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
82750         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
82751         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
82752         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
82753         Also check for iswcntrl, used for wcwidth fallback.
82754         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
82755         to Autoconf 2.13.
82756
82757 2001-08-03  Jim Meyering  <meyering@lucent.com>
82758
82759         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
82760         as it was in the original.  Reported by Paul Eggert.
82761
82762 2001-07-16  Jim Meyering  <meyering@lucent.com>
82763
82764         * m4/gettimeofday.m4: New file.
82765         Prompted by a report from Bernhard Baehr.
82766
82767 2001-07-15  Jim Meyering  <meyering@lucent.com>
82768
82769         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
82770         stuff. Now it's in ../Makefile.cfg.
82771
82772 2001-07-15  Jim Meyering  <meyering@lucent.com>
82773
82774         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
82775         (BUILT_SOURCES): Add unlocked-io.h.
82776         (io_functions): Define.
82777         (unlocked-io.h): New rule.
82778         (DISTCLEANFILES): Add unlocked-io.h.
82779         (all-local): Depend on unlocked-io.h, to ensure it is created.
82780
82781         * lib/unlocked-io.hin: New file
82782
82783         * lib/regex.c: Update from glibc.
82784
82785 2001-07-05  Jim Meyering  <meyering@lucent.com>
82786
82787         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
82788         recommendation.
82789         (libfetish_a_SOURCES): Put all .h files here instead.
82790         Remove a thus-exposed (better checks in automake) duplicate and
82791         two unnecessary .h files.
82792
82793 2001-07-04  Jim Meyering  <meyering@lucent.com>
82794
82795         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
82796         that generates jm-glibc-io.m4 so that it doesn't trigger any make
82797         distcheck failure.
82798
82799 2001-07-02  Jim Meyering  <meyering@lucent.com>
82800
82801         The following changes were prompted by suggestions from Bruno Haible.
82802
82803         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
82804         is now generated.
82805         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
82806         definition of EXTRA_DIST.
82807         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
82808         ensure that the generated file is created/updated whenever the list
82809         of $(unlocked_functions) is changed.
82810         (jm-glibc-io.m4): New rule.
82811         (unlocked-io.h): New rule -- currently unused.
82812
82813 2001-06-24  Jim Meyering  <meyering@lucent.com>
82814
82815         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
82816         unmatched right bracket, rather than kludging it with an extra,
82817         falsely-matching quote in a comment.  Patch by Akim Demaille.
82818
82819 2001-06-11  Jim Meyering  <meyering@lucent.com>
82820
82821         * lib/regex.c: Update from GNU libc.
82822
82823 2001-05-27  Jim Meyering  <meyering@lucent.com>
82824
82825         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
82826         Check for ut_type in struct utmp.
82827
82828 2001-05-27  Jim Meyering  <meyering@lucent.com>
82829
82830         * lib/readutmp.h (UT_TYPE): Define.
82831
82832 2001-05-24  Jim Meyering  <meyering@lucent.com>
82833
82834         * lib/argmatch.c: Include "quote.h".
82835         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
82836         quote function.  Reported by Göran Uddeborg.
82837
82838 2001-05-22  Jim Meyering  <meyering@lucent.com>
82839
82840         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
82841         now that we use the package-supplied version unconditionally.
82842         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
82843
82844 2001-05-21  Jim Meyering  <meyering@lucent.com>
82845
82846         * m4/regex.m4: Change a couple backticks to single quotes to avoid
82847         shell syntax errors.
82848
82849 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
82850
82851         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
82852
82853 2001-05-20  Paul Eggert  <eggert@twinsun.com>
82854
82855         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
82856         Don't bother to check library strftime, since
82857         we'll be using our own my_strftime function anyway.
82858         Define my_strftime instead of strftime.
82859
82860 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
82861
82862         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
82863         which is not yet declared.
82864
82865 2001-05-15  Jim Meyering  <meyering@lucent.com>
82866
82867         * m4/regex.m4: Use proper quoting so brackets appear in the test
82868         program.
82869         Reported by, and with help from, Bruno Haible.
82870
82871 2001-05-13  Jim Meyering  <meyering@lucent.com>
82872
82873         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
82874         undefined.
82875
82876 2001-05-11  Paul Eggert  <eggert@twinsun.com>
82877
82878         dirname code cleanup.  base_name now behaves more compatibly
82879         with POSIX basename when given file names that have trailing
82880         slashes, and similarly for dir_name.  Add new primitives
82881         base_len and dir_len.  Put the directory-name-related decls
82882         into dirname.h.
82883
82884         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
82885         * lib/backupfile.c (base_name): Likewise.
82886         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
82887         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
82888         * lib/makepath.c (strip_trailing_slashes): Likewise.
82889         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
82890         ISSLASH): Likewise.
82891         * lib/rename.c (strip_trailing_slashes): Likewise.
82892         * lib/same.c (base_name): Likewise.
82893         * lib/stripslash.c (ISSLASH): Likewise.
82894
82895         * lib/addext.c: Include <dirname.h> after size_t is defined.
82896         * lib/backupfile.c: Likewise.
82897
82898         * lib/addext.c (addext): Use base_len to trim redundant
82899         trailing slashes instead of doing it ourselves.
82900         But do not trim the last slash if it is not redundant.
82901
82902         * lib/backupfile.c (find_backup_file_name,
82903         max_backup_version): Use base_len instead of rolling it ourselves.
82904         Handle the case of "" and (on DOS) "C:" correctly.
82905
82906         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
82907         needed. Include <string.h>, <dirname.h>.
82908         (base_name): Allow file names ending in slashes, other than names
82909         that are all slashes.  In this case, return the basename followed
82910         by the slashes.  This is more general, and can be used in places
82911         where the original base_name purposely had an assertion failure.
82912         (base_len): New function.
82913
82914         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
82915         Do not include <assert.h>; no longer needed.
82916         Include xalloc.h.
82917         (memrchr): Remove decl.
82918         (dir_name_r): Remove.
82919         (dir_len): Renamed from dirlen.  All callers changed.
82920         Rewrite in terms of base_name, for simplicity and consistency.
82921         (dir_name): Never return NULL.  All callers changed.
82922         Do not include <stdlib.h> in test program; no longer needed.
82923         return 0; is fine for test program.
82924
82925         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
82926         New macros.
82927         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
82928
82929         * lib/path-concat.c (path_concat): Use base_len to compute
82930         base length, not strlen; this means we cannot rely on memcpy
82931         to null-terminate.
82932
82933         * lib/same.c (STREQ): Remove.
82934         (same_name): Handle the case where the basename ends in trailing '/'.
82935
82936         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
82937         a slash was stripped.  Do not strip the last slash after a
82938         file system prefix.
82939
82940 2001-05-11  Paul Eggert  <eggert@twinsun.com>
82941
82942         * lib/Makefile.am (libfetish_a_SOURCES):
82943         Add strftime.c, since we now compile it on all hosts.
82944
82945         * lib/strftime.c (my_strftime):
82946         Define to nstrftime if emacs, but only if my_strftime is not defined.
82947         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
82948         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
82949         Add one more extra argument: a nanoseconds value.
82950         All uses changed.
82951         (ns): New macro.
82952         (my_strftime function): Add %N format.
82953         (emacs_strftimeu): Renamed from emacs_strftime,
82954         with extra ut argument.
82955
82956 2001-05-09  Paul Eggert  <eggert@twinsun.com>
82957
82958         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
82959
82960 2001-04-21  Jim Meyering  <meyering@lucent.com>
82961
82962         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
82963         doesn't interfere.
82964
82965 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
82966
82967         * m4/ftruncate.m4: Check for chsize.
82968         Link with ftruncate.o unconditionally if ftruncate is missing.
82969         This was required when cross-compiling to i586-mingw32msvc.
82970
82971 2001-04-08  Jim Meyering  <meyering@lucent.com>
82972
82973         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
82974         recomputed; that's necessary when the offset spans a DST transition.
82975         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
82976
82977 2001-04-02  Jim Meyering  <meyering@lucent.com>
82978
82979         * lib/regex.h, regex.c: Update from GNU libc.
82980
82981 2001-03-24  Jim Meyering  <meyering@lucent.com>
82982
82983         * m4/jm-macros.m4: Require autoconf-2.49d.
82984
82985 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
82986
82987         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
82988
82989 2001-03-19  Paul Eggert  <eggert@twinsun.com>
82990
82991         * lib/version-etc.c (version_etc_copyright): Update to 2001.
82992
82993 2001-03-17  Jim Meyering  <meyering@lucent.com>
82994
82995         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
82996         now that the version in autoconf is equivalent.
82997         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
82998
82999         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
83000         Suggestion from Akim Demaille.
83001
83002         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
83003         (jm_PREREQ_TEMPNAME): New function.
83004
83005 2001-03-16  Paul Eggert  <eggert@twinsun.com>
83006
83007         * lib/tempname.c (uint64_t): Define to uintmax_t if
83008         not defined, and if UINT64_MAX is not defined.
83009         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
83010         Reported by John David Anglin.
83011
83012 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
83013
83014         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
83015         resolve alias if codeset is empty.
83016         * lib/config.charset (BeOS): Use wildcard syntax.
83017
83018 2001-03-13  Jim Meyering  <meyering@lucent.com>
83019
83020         * lib/path-concat.c (path_concat)
83021         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
83022         concatenating e.g., `C:' and `foo'.
83023         From Bruno Haible.
83024
83025 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
83026
83027         * lib/localcharset.c (locale_charset): Don't use
83028         setlocale(LC_CTYPE,NULL). Don't return NULL.
83029         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
83030
83031 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
83032
83033         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
83034         support for DOS/DJGPP.
83035
83036 2001-03-01  Paul Eggert  <eggert@twinsun.com>
83037
83038         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
83039         lacks mkstemp.  Compile our own tempname.c if we compile our own
83040         mkstemp.c, as mkstemp relies on tempname.
83041
83042 2001-03-01  Jim Meyering  <meyering@lucent.com>
83043
83044         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
83045         AH_VERBATIM really does output its argument verbatim.
83046
83047 2001-02-28  Paul Eggert  <eggert@twinsun.com>
83048
83049         * lib/Makefile.am (libfetish_a_SOURCES):
83050         Add dup-safer.c, fopen-safer.c.
83051         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
83052
83053         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
83054         * lib/unistd-safer.h: New files.
83055
83056 2001-02-25  Paul Eggert  <eggert@twinsun.com>
83057
83058         The mkstemp replacement is taken from glibc 2.2.2, with some
83059         portability fixes for use outside glibc, as follows:
83060
83061         * lib/tempname.c (struct_stat64): New macro.
83062         (direxists, __gen_tempname): Use it.
83063         This avoids a portability problem with Solaris 8.
83064
83065         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
83066         (<stddef.h>, <stdint.h>, <string.h>):
83067         Include only if STDC_HEADERS || _LIBC.
83068         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
83069         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
83070         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
83071         (__set_errno): Define this macro if <errno.h> doesn't.
83072         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
83073         Define these macros if <stdio.h> doesn't.
83074         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
83075         Define these macros if <sys/stat.h>
83076         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
83077         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
83078         __xstat64): Define if not _LIBC.
83079         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
83080         (__gen_tempname): Invoke gettimeofday only if
83081         HAVE_GETTIMEOFDAY || _LIBC;
83082         otherwise, fall back on plain "time".
83083         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
83084
83085         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
83086
83087         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
83088
83089 2001-02-18  Paul Eggert  <eggert@twinsun.com>
83090
83091         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
83092
83093 2001-02-17  Paul Eggert  <eggert@twinsun.com>
83094
83095         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
83096         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
83097         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
83098         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
83099
83100 2001-02-17  Paul Eggert  <eggert@twinsun.com>
83101
83102         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
83103         Remove workaround macros for hosts that have mbrtowc but not
83104         mbstate_t, as we now insist on proper declarations for both
83105         before using mbrtowc.
83106
83107 2001-02-17  Jim Meyering  <meyering@lucent.com>
83108
83109         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
83110         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
83111         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
83112         UnixWare 7.1.1.
83113
83114         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
83115         rather than AC_CACHE_VAL.
83116
83117 2001-02-17  Jim Meyering  <meyering@lucent.com>
83118
83119         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
83120         around included file name.
83121
83122         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
83123
83124         * lib/strftime.c: Update from GNU libc (the only changes were to
83125         comments).
83126
83127 2001-02-17  Jim Meyering  <meyering@lucent.com>
83128
83129         * lib/regex.c: Update from libc.
83130
83131 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
83132
83133         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
83134         clash.
83135
83136 2001-02-16  Paul Eggert  <eggert@twinsun.com>
83137
83138         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
83139         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
83140         Reported by Mark Hounschell via Paul Eggert.
83141
83142 2001-02-07  Jim Meyering  <meyering@lucent.com>
83143
83144         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
83145
83146 2001-02-05  Jim Meyering  <meyering@lucent.com>
83147
83148         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
83149         it includes the patch required for `large file' support with at least
83150         HP-UX's 10.20 /bin/cc.
83151
83152 2001-02-03  Jim Meyering  <meyering@lucent.com>
83153
83154         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
83155         AS_IF, now that it works once again (mysteriously).
83156         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
83157
83158 2001-01-30  Jim Meyering  <meyering@lucent.com>
83159
83160         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
83161         * m4/chown.m4: Rename conftestchown to conftest.chown.
83162         * m4/rename.m4: s/conftestdir/conftest.d1/ and
83163         s/conftestdir2/conftest.d2/.
83164         * m4/utimes.m4: s/conftestdata/conftest.data/
83165         Inspired by Pavel Roskin's change in autoconf.
83166
83167 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
83168
83169         * lib/config.charset: Update for FreeBSD 4.2.
83170
83171 2001-01-27  Jim Meyering  <meyering@lucent.com>
83172
83173         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
83174         a use of AS_IF.
83175         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
83176
83177 2001-01-26  Jim Meyering  <meyering@lucent.com>
83178
83179         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
83180         quotearg.c includes it.
83181
83182 2001-01-26  Jim Meyering  <meyering@lucent.com>
83183
83184         * lib/quotearg.c: Include stddef.h.
83185         * lib/quote.c: Include stddef.h.
83186         Reported by Axel Kittenberger.
83187
83188         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
83189         line in double quotes so that it evokes a better diagnostic.
83190         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
83191         Reported by Axel Kittenberger.
83192
83193 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
83194
83195         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
83196         as if it was a `charset'.
83197
83198 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
83199
83200         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
83201         has const.
83202
83203 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
83204
83205         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
83206         to avoid a warning.  Add back 'const' to inptr.
83207
83208 2001-01-20  Jim Meyering  <meyering@lucent.com>
83209
83210         Be sure that headers are checked before used in code compiled
83211         for the type checks.
83212         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
83213         In place of that, invoke jm_CHECK_ALL_TYPES.
83214         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
83215         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
83216         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
83217         The check for ssize_t was mistakenly run before the test for unistd.h.
83218
83219         The configure-time check for stdbool.h was missing.
83220         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
83221         (jm_PREREQ_HASH): New function.
83222
83223 2001-01-17  Jim Meyering  <meyering@lucent.com>
83224
83225         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
83226         for autoconf-2.49c.
83227         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
83228
83229 2001-01-16  Jim Meyering  <meyering@lucent.com>
83230
83231         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
83232         From Bruno Haible.
83233
83234 2001-01-14  Jim Meyering  <meyering@lucent.com>
83235
83236         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
83237         foo and bar.  Create conftestdir/ in the script, not in the C code.
83238         Remove directories in the script, not in the C code.
83239         Remove conftestdir{,2} before trying to create the directory.
83240         Make the entire configure script fail if the mkdir fails.
83241
83242 2001-01-14  Jim Meyering  <meyering@lucent.com>
83243
83244         * lib/rename.c: New file.  From Volker Borchert.
83245         Include stdlib.h, string.h or strings.h, and xalloc.h.
83246         Use strip_trailing_slashes rather than open-coding it.
83247
83248 2001-01-03  Paul Eggert  <eggert@twinsun.com>
83249
83250         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
83251
83252 2001-01-03  Jim Meyering  <meyering@lucent.com>
83253
83254         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
83255         of local `inptr' to avoid warning with some system declarations of
83256         iconv.
83257
83258 2001-01-02  Volker Borchert  <bt@teknon.de>
83259
83260         * m4/rename.m4: New file.
83261         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
83262
83263 2001-01-01  Jim Meyering  <meyering@lucent.com>
83264
83265         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
83266         even on systems with utmpx.h.  It's necessary for the declaration of
83267         utmp's ut_user member.  Reported by Andreas Jaeger.
83268
83269         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
83270         available. They are required for the declarations of getgrgid and
83271         getpwuid resp.
83272         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
83273         Reported by Andreas Jaeger.
83274
83275 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
83276
83277         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
83278         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
83279         so `make install' also works in VPATH builds.
83280
83281 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
83282
83283         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
83284         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
83285         can be used in subdirectories.
83286
83287 2000-12-29  Paul Eggert  <eggert@twinsun.com>
83288
83289         * lib/modechange.c: Do not assume that mode_t uses the
83290         traditional octal encoding.  E.g. "chmod 1 FOO" should set
83291         the other-execute bit of FOO even if S_IXOTH != 1.
83292
83293         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
83294         WOTH, XOTH, ALLM): New macros.
83295         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
83296          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
83297         Use them.
83298         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
83299         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
83300         (mode_compile):
83301         No need to use uintmax_t; unsigned long is long enough.
83302         Don't bother to get suffix since we don't use it.
83303
83304 2000-12-26  Jim Meyering  <meyering@lucent.com>
83305
83306         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
83307         better with autoheader.
83308
83309 2000-12-24  Jim Meyering  <meyering@lucent.com>
83310
83311         * lib/hash.c (is_prime): Return explicit boolean values.
83312         (hash_get_first): Return NULL to appease Irix5.6's 89.
83313         Reported by Nelson Beebe.
83314
83315 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
83316
83317         * lib/localcharset.c (locale_charset): Add support for Win32.
83318
83319 2000-12-18  Paul Eggert  <eggert@twinsun.com>
83320
83321         * lib/physmem.h, lib/physmem.c: New files.
83322
83323         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
83324         (noinst_HEADERS): Add physmem.h.
83325
83326         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
83327         't' for compatibility with Solaris 8 sort.
83328
83329 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
83330
83331         * lib/config.charset: Add support for BeOS.
83332
83333 2000-12-17  Jim Meyering  <meyering@lucent.com>
83334
83335         * m4/dos.m4 (jm_AC_DOS): New file and macro.
83336         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
83337
83338 2000-12-16  Jim Meyering  <meyering@lucent.com>
83339
83340         This bug had a serious impact on chown: `chown N:M FILE' (for integer
83341         N and M) would have treated it like `chown N:N FILE'.
83342
83343         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
83344
83345 2000-12-16  Jim Meyering  <meyering@lucent.com>
83346
83347         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
83348         SHELLS_FILE to a file name that's useful on djgpp systems.
83349         Include stdlib.h.
83350         (ADDITIONAL_DEFAULT_SHELLS): Define.
83351         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
83352         Based mostly on a patch from Prashant TR.
83353
83354 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
83355
83356         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
83357         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
83358         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
83359
83360 2000-12-08  Andreas Schwab  <schwab@suse.de>
83361
83362         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
83363         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
83364
83365 2000-12-07  Jim Meyering  <meyering@lucent.com>
83366
83367         * lib/stripslash.c (ISSLASH): Define.
83368         (strip_trailing_slashes): Use ISSLASH rather than comparing against
83369         `/'.
83370         From Prashant TR.
83371
83372         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
83373         (dir_name_r): Declare this function as static.
83374         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
83375         manifest itself on a name containing a mix of slashes and
83376         backslashes.
83377         Make this function work with names starting with a DOS-style
83378         drive letter and colon prefix.
83379         (dir_name): Append `.' if necessary.
83380         Based mostly on patches from Prashant TR and Eli Zaretskii.
83381
83382         * lib/dirname.h (dir_name_r): Remove prototype.
83383
83384 2000-12-06  Paul Eggert  <eggert@twinsun.com>
83385
83386         * m4/off_t-format.m4: Remove this file.
83387         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
83388
83389 2000-12-06  Jim Meyering  <meyering@lucent.com>
83390
83391         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
83392         replacement strtoull, we may well need the replacement strtoul, too.
83393         Check for declarations of strtoul and strtoull.
83394         Check for strtol.  Mainly as a cue to cause automake to include
83395         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
83396         Check for limits.h -- strtol.c needs it.
83397
83398 2000-12-05  Jim Meyering  <meyering@lucent.com>
83399
83400         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
83401
83402 2000-12-04  Jim Meyering  <meyering@lucent.com>
83403
83404         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
83405         Also include memory.h, stdlib.h, unistd.h if appropriate.
83406         Reported by Andreas Jaeger (conflicting declaration of malloc).
83407
83408 2000-12-02  Jim Meyering  <meyering@lucent.com>
83409
83410         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
83411         * m4/jm-macros.m4 (jm_MACROS): require it.
83412
83413 2000-12-02  Jim Meyering  <meyering@lucent.com>
83414
83415         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
83416
83417 2000-12-01  Paul Eggert  <eggert@twinsun.com>
83418
83419         * lib/memrchr.c: Include <config.h> before any system include file.
83420
83421 2000-11-30  Jim Meyering  <meyering@lucent.com>
83422
83423         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
83424
83425 2000-11-30  Jim Meyering  <meyering@lucent.com>
83426
83427         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
83428
83429 2000-11-29  Paul Eggert  <eggert@twinsun.com>
83430
83431         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
83432
83433 2000-11-26  Jim Meyering  <meyering@lucent.com>
83434
83435         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
83436
83437 2000-11-22  Paul Eggert  <eggert@twinsun.com>
83438
83439         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
83440         size of (size_t) -1; it's not portable.
83441
83442 2000-11-17  Jim Meyering  <meyering@lucent.com>
83443
83444         * lib/strstr.c: Update from GNU libc.
83445
83446 2000-11-17  Akim Demaille  <akim@epita.fr>
83447
83448         * lib/obstack.h: Formatting changes.
83449         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
83450         prevent type checking.
83451         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
83452         cast the value to (void *): assigning a `foo *' to a `void *'
83453         variable is valid.
83454         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
83455
83456 2000-11-16  Jim Meyering  <meyering@lucent.com>
83457
83458         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
83459
83460 2000-11-11  Jim Meyering  <meyering@lucent.com>
83461
83462         * lib/error.c: Add a couple #includes, merging from GNU libc version.
83463
83464 2000-11-10  Jim Meyering  <meyering@lucent.com>
83465
83466         * lib/obstack.h: Update from GNU libc.
83467         * lib/obstack.c: Likewise.
83468
83469 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
83470
83471         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
83472
83473 2000-11-06  Paul Eggert  <eggert@twinsun.com>
83474
83475         * lib/getusershell.c (setusershell): Use rewind rather than
83476         fseek/fseeko, to avoid configuration hassles with fseeko.
83477         Don't bother opening SHELLS_FILE if shellstream is NULL;
83478         it's not necessary.
83479
83480 2000-11-05  Jim Meyering  <meyering@lucent.com>
83481
83482         * lib/makepath.h (make_dir): Declare.
83483         * lib/makepath.c (make_dir): Remove `static' attribute.
83484         Tweak a comment.
83485
83486 2000-11-04  Jim Meyering  <meyering@lucent.com>
83487
83488         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
83489
83490 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
83491
83492         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
83493         last one in a bucket, advance to the next bucket.
83494
83495 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
83496
83497         * lib/fnmatch.c: Do not comment out all the code if we are using
83498         the GNU C library, because in some cases we are replacing buggy
83499         code in the GNU C library itself.
83500
83501 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
83502
83503         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
83504         (regex_compile): Catch bogus \(\1\).
83505
83506 2000-10-30  Paul Eggert  <eggert@twinsun.com>
83507
83508         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
83509         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
83510         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
83511
83512 2000-10-30  Paul Eggert  <eggert@twinsun.com>
83513
83514         * lib/error.h, getline.h, modechange.h:
83515         Remove "2000" from Copyright line, as the file hasn't been
83516         changed this year other than in the copyright notice.
83517
83518         * lib/xalloc.h: Add "2000" to Copyright line, as this file
83519         was changed this year.
83520
83521 2000-10-29  Jim Meyering  <meyering@lucent.com>
83522
83523         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
83524         renaming.
83525         * m4/ls-mntd-fs.m4: Likewise
83526
83527 2000-10-29  Jim Meyering  <meyering@lucent.com>
83528
83529         * lib/xstat.in: Fix grammar in comment.
83530
83531 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
83532
83533         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
83534         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
83535         doesn't define __restrict_arr.
83536
83537 2000-10-28  Jim Meyering  <meyering@lucent.com>
83538
83539         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
83540         (jm_PREREQ_MEMCHR): New function.
83541
83542 2000-10-28  Jim Meyering  <meyering@lucent.com>
83543
83544         * lib/memchr.c: Update from libc.
83545         Adjust for portability:
83546         [HAVE_STDLIB_H]: Include stdlib.h.
83547         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
83548         Undef __memchr, too.
83549         [!weak_alias]: Define __memchr to memchr.
83550
83551         * lib/regex.c: Update from libc.
83552         * lib/regex.h: Likewise.
83553         * lib/getopt1.c: Likewise.
83554         * lib/memcmp.c: Likewise.
83555
83556         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
83557         Avoid using fseek, when possible -- it's broken by design.
83558         Patch by Ulrich Drepper.
83559
83560 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
83561
83562         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
83563         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
83564         Giving in to popular pressure to shut up the compiler with casts.
83565
83566 2000-10-26  Jim Meyering  <meyering@lucent.com>
83567
83568         * lib/strftime.c: Update from libc.
83569
83570 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
83571
83572         * regex.c: More `unsigned char' -> `re_char' changes.
83573         Also change several `int' into `re_wchar_t'.
83574         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
83575         (PUSH_FAILURE_POINTER): Don't cast any more.
83576         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
83577         We want GCC to complain, since this piece of code makes
83578         re_match non-reentrant, which *should* be fixed.
83579         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
83580         (EXTEND_BUFFER): Use RETALLOC.
83581         (SET_LIST_BIT): Don't cast.
83582         (re_wchar_t): New type.
83583         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
83584         that those two functions will always properly return.
83585         (IMMEDIATE_QUIT_CHECK): Cast to void.
83586         (analyse_first): Use recursion rather than an explicit stack.
83587         (re_compile_fastmap): Can't fail anymore.
83588         (re_search_2): Don't check re_compile_fastmap for failure.
83589         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
83590         Now also sets the new value (passed in a new argument).
83591         (re_match_2_internal): Use it.
83592         Also, use a new var `reg' of type size_t when looping through regs
83593         rather than reuse the inappropriate `mcnt'.
83594
83595 2000-10-25  Jim Meyering  <meyering@lucent.com>
83596
83597         * lib/obstack.c: Update from libc.
83598
83599 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
83600
83601         * regex.c (regex_compile): Change the way of handling a range from
83602         a char less than 256 to a char not less than 256.
83603
83604 2000-10-24  Andrew Innes  <andrewi@gnu.org>
83605
83606         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
83607         NT-Emacs only.
83608         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
83609         so that re_search functions only quit when callers expect them to.
83610
83611 2000-10-23  Jim Meyering  <meyering@lucent.com>
83612
83613         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
83614         wrong.  That set_locale call must not have any side effects.
83615         From Paul Eggert.
83616
83617 2000-10-22  Jim Meyering  <meyering@lucent.com>
83618
83619         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
83620         [CYCLIC]: Remove now-unused definition.
83621
83622         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
83623         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
83624         Suggestion from Ulrich Drepper.
83625
83626 2000-10-21  Jim Meyering  <meyering@lucent.com>
83627
83628         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
83629         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
83630         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
83631
83632 2000-10-21  Jim Meyering  <meyering@lucent.com>
83633
83634         * lib/dirname.c (memrchr): Declare if necessary.
83635         (dir_name): Remove the restriction that there be no
83636         trailing slashes.  Now, this code skips past them, effectively
83637         ignoring them.
83638         [TEST_DIRNAME] (main): New unit tests.
83639
83640         * lib/memrchr.c: New file from GNU libc.
83641         Undef __memrchr, too.
83642         [!weak_alias]: Define __memrchr to memrchr.
83643         Guard weak_alias use with `#ifdef weak_alias'.
83644
83645 2000-10-21  Jim Meyering  <meyering@lucent.com>
83646
83647         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
83648         (dir_name): Use dir_name_r.
83649         * lib/dirname.h (dir_name_r): Declare it.
83650
83651 2000-10-17  Jim Meyering  <meyering@lucent.com>
83652
83653         * lib/quote.h (PARAMS): Define and use.
83654         Reported by Akim Demaille.
83655
83656         * lib/getopt.c: Update from libc.
83657
83658 2000-10-16  Jim Meyering  <meyering@lucent.com>
83659
83660         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
83661         setlocale.
83662         From Jan Fedak.
83663
83664 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
83665
83666         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
83667
83668 2000-09-25  Jim Meyering  <meyering@lucent.com>
83669
83670         * lib/md5.h (rol): Define (from GnuPG).
83671
83672         * lib/sha.c: Give credit (GnuPG) where due.
83673         (M): Use rol rather than open-coding it.
83674         Add a FIXME comment.
83675
83676 2000-09-21  Jim Meyering  <meyering@lucent.com>
83677
83678         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
83679         Reported by Michael Stone.
83680
83681 2000-09-20  Jim Meyering  <meyering@lucent.com>
83682
83683         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
83684         (noinst_HEADERS): Add sha.h.
83685         Based on code from Scott G. Miller and from GnuPG.
83686
83687 2000-09-18  Jim Meyering  <meyering@lucent.com>
83688
83689         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
83690         LIBS. Otherwise, everyone ends up linking with -lelf for some
83691         configurations.
83692         Reported by Mike Stone.
83693
83694 2000-09-15  Jim Meyering  <meyering@lucent.com>
83695
83696         * lib/regex.c: Update from libc.
83697
83698 2000-09-10  Jim Meyering  <meyering@lucent.com>
83699
83700         * lib/getopt.c (_getopt_internal): Update from glibc.
83701
83702 2000-09-09  Jim Meyering  <meyering@lucent.com>
83703
83704         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
83705         think it should be used as a general replacement for isascii.
83706         * lib/fnmatch.c: Likewise.
83707         * lib/mbswidth.c: Likewise
83708         * lib/regex.c: Likewise.
83709
83710         Don't use atoi.
83711         * lib/userspec.c: Include sys/param.h and limits.h.
83712         Include xstrtol.h.
83713         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
83714         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
83715         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
83716         UID, GID.  Check range.
83717
83718 2000-09-06  Jim Meyering  <meyering@lucent.com>
83719
83720         * lib/getopt.c (_getopt_internal): Update from glibc.
83721
83722 2000-08-30  Jim Meyering  <meyering@lucent.com>
83723
83724         * lib/strftime.c: Merge in changes from GNU libc.
83725
83726 2000-08-26  Jim Meyering  <meyering@lucent.com>
83727
83728         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
83729         * m4/fpending.m4: New file.
83730
83731 2000-08-26  Jim Meyering  <meyering@lucent.com>
83732
83733         * lib/closeout.c: Include "__fpending.h".
83734         (close_stdout_status): Return right away if there's nothing to flush.
83735
83736         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
83737         * lib/__fpending.c: New file.
83738         * lib/__fpending.h: New file.
83739
83740 2000-08-20  Jim Meyering  <meyering@lucent.com>
83741
83742         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
83743         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
83744         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
83745
83746 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
83747
83748         Improve fileutils installation on systems where running
83749         programs (like install) can't be unlinked.
83750         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
83751         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
83752
83753 2000-08-07  Paul Eggert  <eggert@twinsun.com>
83754
83755         Standardize on "memory exhausted" instead of "Memory exhausted"
83756         or "virtual memory exhausted".
83757         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
83758         "virtual memory exhausted".
83759         * lib/same.c (same_name): Invoke xalloc_die instead of printing
83760         our own message.
83761         * lib/userspec.c (parse_user_spec): Likewise.
83762         * lib/bumpalloc.h: comment fix
83763         * lib/same.c, userspec.c: Include xalloc.h.
83764
83765         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
83766         not char *const and pointing to a constant array.
83767         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
83768         (xrealloc): Comment fix.
83769
83770         * lib/userspec.c (parse_user_spec):
83771         Don't translate a message until just before returning,
83772         to avoid unnecessary translation.
83773
83774 2000-08-07  Jim Meyering  <meyering@lucent.com>
83775
83776         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
83777         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
83778         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
83779         getgroups.c, gethostname.c, getopt.h, group-member.c,
83780         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
83781         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
83782         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
83783         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
83784         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
83785         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
83786         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
83787         yesno.c: Back out Copyright date changes for each file with no change
83788         this year.  This eases coordination with other programs using the same
83789         source code modules.  From Paul Eggert.
83790
83791 2000-08-06  Paul Eggert  <eggert@twinsun.com>
83792
83793         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
83794         not char, for compatibility with glibc 2.1.3 strftime.c.
83795
83796 2000-08-03  Greg McGary  <greg@mcgary.org>
83797
83798         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
83799         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
83800         (EXTEND_BUFFER): Use them.
83801
83802 2000-08-01  Jim Meyering  <meyering@lucent.com>
83803
83804         * lib/dirname.c (ISSLASH): Define.
83805         (BACKSLASH_IS_PATH_SEPARATOR): Define.
83806         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
83807         both `\' and `/' may be use as path separators.
83808         Based on a patch from Prashant TR.
83809
83810 2000-07-31  Paul Eggert  <eggert@twinsun.com>
83811
83812         * lib/quotearg.c (quotearg_n_options): Don't make the initial
83813         slot vector a constant, since it might get modified.
83814
83815 2000-07-31  Jim Meyering  <meyering@lucent.com>
83816
83817         * lib/xmalloc.c: Use `virtual memory exhausted', not
83818         `Memory exhausted'.
83819         * lib/obstack.c (print_and_abort): Likewise.
83820
83821 2000-07-30  Paul Eggert  <eggert@twinsun.com>
83822
83823         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
83824         buffer, so that the caller can always quote one small
83825         component of a "memory exhausted" message in slot 0.
83826         From a suggestion by Jim Meyering.
83827
83828 2000-07-30  Jim Meyering  <meyering@lucent.com>
83829
83830         * lib/makepath.c (make_path): Quote the other instance, too.
83831
83832         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
83833         (STATIC_BUF_SIZE): Define.
83834         (quotearg_n_options): Use only statically allocated storage when
83835         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
83836         than STATIC_BUF_SIZE.
83837
83838 2000-07-29  Jim Meyering  <meyering@lucent.com>
83839
83840         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
83841         * lib/dirname.c (dir_name): Likewise.
83842
83843         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
83844         `/'.
83845
83846         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
83847         (dir_name): Assert that there are no trailing slashes.
83848
83849 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
83850
83851         * lib/mbswidth.h (mbswidth): Add a flags argument.
83852         (mbswidth): New declaration.
83853         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
83854         * lib/mbswidth.c (mbswidth): Add a flags argument.
83855         (mbsnwidth): New function.
83856
83857 2000-07-24  Jim Meyering  <meyering@lucent.com>
83858
83859         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
83860
83861 2000-07-23  Paul Eggert  <eggert@twinsun.com>
83862
83863         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
83864
83865 2000-07-23  Paul Eggert  <eggert@twinsun.com>
83866
83867         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
83868         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
83869         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
83870         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
83871         invoke multibyte primitives.
83872
83873 2000-07-23  Paul Eggert  <eggert@twinsun.com>
83874
83875         * lib/quotearg.c:
83876         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
83877         so that mbstate_t is always defined.
83878
83879         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
83880         be 1 in at least one GCC installation, and this configuration
83881         error is likely to be common.  Ignoring MB_LEN_MAX hurts
83882         performance on hosts that have mbrtowc but have only unibyte
83883         locales, but I assume these hosts are rare.
83884
83885 2000-07-23  Paul Eggert  <eggert@twinsun.com>
83886
83887         * lib/mbswidth.c (_XOPEN_SOURCE):
83888         Don't define; this causes problems on Solaris 7.
83889         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
83890
83891 2000-07-23  Jim Meyering  <meyering@lucent.com>
83892
83893         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
83894         too: getgrgid, getpwuid, getuid.
83895
83896 2000-07-23  Jim Meyering  <meyering@lucent.com>
83897
83898         * lib/basename.c (base_name): Add an assertion.
83899
83900 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
83901
83902         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
83903         shadow its mbsinit function.
83904
83905 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
83906
83907         * lib/mbswidth.h: New file.
83908         * lib/mbswidth.c: New file.
83909         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
83910         (noinst_HEADERS): Add mbswidth.h.
83911
83912 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
83913
83914         * lib/config.charset: Add support for FreeBSD. Improve support for
83915         HP-UX and IRIX 6.
83916
83917 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
83918
83919         * m4/mbswidth.m4: New file.
83920         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
83921
83922 2000-07-15  Jim Meyering  <meyering@lucent.com>
83923
83924         * lib/makepath.c: Include quote.h.
83925         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
83926         corresponding argument in a `quote (...)' call.
83927         Give better diagnostics.
83928
83929         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
83930         (noinst_HEADERS): Add quote.h.
83931
83932         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
83933         from tar's src/misc.c.
83934         * lib/quote.h: New file.  Prototypes for same.
83935
83936 2000-07-14  Paul Eggert  <eggert@twinsun.com>
83937
83938         From a suggestion by Bruno Haible.
83939         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
83940         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
83941         to decide whether to define the BeOS workaround macro;
83942         this adjusts to the change to AC_MBSTATE_T.
83943
83944 2000-07-14  Jim Meyering  <meyering@lucent.com>
83945
83946         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
83947         jm_AC_TYPE_UINTMAX_T.
83948
83949 2000-07-13  Paul Eggert  <eggert@twinsun.com>
83950
83951         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
83952
83953         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
83954         quotearg_buffer_restyled): Add support for
83955         clocale_quoting_style.  Undo previous change to
83956         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
83957         and "{RIGHT QUOTATION MARK}" msgids.
83958
83959 2000-07-10  Paul Eggert  <eggert@twinsun.com>
83960
83961         From a suggestion by Bruno Haible.
83962         * m4/mbstate_t.m4 (AC_MBSTATE_T):
83963         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
83964         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
83965         and mbstate_t, to a single-part test that simply defines mbstate_t.
83966         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
83967         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
83968
83969 2000-07-10  Jim Meyering  <meyering@lucent.com>
83970
83971         * m4/strerror_r.m4: Mirror the correction made in autoconf.
83972
83973         * m4/gnu-source.m4: Output to confdefs.h directly.
83974         Suggestion from Akim Demaille.
83975
83976 2000-07-09  Paul Eggert  <eggert@twinsun.com>
83977
83978         The old behavior of quoting `like this' doesn't look good with
83979         newer, ISO-style fonts.  See:
83980         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
83981
83982         Instead, quote "like this" by default.  Let the translator
83983         tailor the locale-specific quoting behavior by providing
83984         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
83985
83986         * lib/quotearg.c (N_): New macro.
83987         (gettext_default): New function.
83988         (quotearg_buffer_restyled): Use
83989         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
83990         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
83991
83992 2000-07-09  Jim Meyering  <meyering@lucent.com>
83993
83994         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
83995         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
83996
83997         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
83998         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
83999
84000 2000-07-09  Jim Meyering  <meyering@lucent.com>
84001
84002         * lib/Most files: Update copyright dates to include 2000.
84003
84004 2000-07-08  Jim Meyering  <meyering@lucent.com>
84005
84006         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
84007         if not defined.
84008         (xgethostname): Remove now-unnecessary #ifdef.
84009         Move declaration of `err' into loop where it's used.
84010
84011 2000-07-05  Paul Eggert  <eggert@twinsun.com>
84012         and Bruno Haible  <haible@clisp.cons.org>
84013
84014         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
84015         only if the test for an object-type mbstate_t fails.  This
84016         prevents us from mistakenly reporting that mbstate_t is a
84017         system object type after we "#define mbstate_t int" to work
84018         around its lack.
84019
84020 2000-07-05  Paul Eggert  <eggert@twinsun.com>
84021         and Bruno Haible  <haible@clisp.cons.org>
84022
84023         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
84024
84025 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
84026
84027         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
84028         to strerror_r.
84029         Include <ctype.h> for use of isalpha.
84030
84031 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
84032
84033         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
84034         by allocating a larger buffer. Test the gethostname return value for
84035         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
84036         returns an error and ENAMETOOLONG isn't defined.
84037
84038 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
84039
84040         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
84041         dimension.
84042
84043 2000-07-04  Jim Meyering  <meyering@lucent.com>
84044
84045         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
84046         of the deprecated AC_CHECKING.
84047
84048 2000-07-04  Jim Meyering  <meyering@lucent.com>
84049
84050         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
84051         Reported by Bruno Haible.
84052
84053 2000-07-04  Jim Meyering  <meyering@lucent.com>
84054
84055         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
84056         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
84057         lacks mbrtowc.
84058
84059 2000-07-03  Paul Eggert  <eggert@twinsun.com>
84060
84061         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
84062         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
84063
84064 2000-07-03  Paul Eggert  <eggert@twinsun.com>
84065         and Bruno Haible  <haible@clisp.cons.org>
84066
84067         * lib/quotearg.c (mbrtowc):
84068         Assign to *pwc, and return 1 only if result is nonzero.
84069         (iswprint): Use ISPRINT when substituting our own mbrtowc.
84070
84071 2000-07-03  Jim Meyering  <meyering@lucent.com>
84072
84073         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
84074
84075 2000-07-03  Jim Meyering  <meyering@lucent.com>
84076
84077         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
84078         This is necessary to get a definition of e.g., UTMP_FILE on
84079         HP-UX 10.20.
84080         From Bob Proulx.
84081
84082 2000-07-02  Jim Meyering  <meyering@lucent.com>
84083
84084         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
84085
84086         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
84087         AC_LIBOBJ(function_name).
84088         * m4/chown.m4: Likewise.
84089         * m4/fnmatch.m4: Likewise.
84090         * m4/ftruncate.m4: Likewise.
84091         * m4/getgroups.m4: Likewise.
84092         * m4/getline.m4: Likewise.
84093         * m4/group-member.m4: Likewise.
84094         * m4/jm-macros.m4: Likewise.
84095         * m4/lstat.m4: Likewise.
84096         * m4/malloc.m4: Likewise.
84097         * m4/memcmp.m4: Likewise.
84098         * m4/nanosleep.m4: Likewise.
84099         * m4/putenv.m4: Likewise.
84100         * m4/realloc.m4: Likewise.
84101         * m4/regex.m4: Likewise.
84102         * m4/stat.m4: Likewise.
84103         * m4/strftime.m4: Likewise.
84104
84105 2000-07-02  Jim Meyering  <meyering@lucent.com>
84106
84107         * lib/quotearg.c (mbstate_t): Don't define here.
84108
84109 2000-07-02  Jim Meyering  <meyering@lucent.com>
84110
84111         * lib/nanosleep.c (SIGCONT): Define if not already defined.
84112
84113 2000-07-01  Jim Meyering  <meyering@lucent.com>
84114
84115         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
84116
84117 2000-07-01  Jim Meyering  <meyering@lucent.com>
84118
84119         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
84120         problem.
84121
84122 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
84123
84124         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
84125         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
84126
84127 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
84128
84129         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
84130         per change in ../m4/ls-mntd-fs.m4.
84131         (read_filesystem_list): Ignore symbolic links.
84132
84133 2000-06-29  Jim Meyering  <meyering@lucent.com>
84134
84135         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
84136         for declaration of strcmp.
84137
84138         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
84139
84140         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
84141         Avoid warning by casting result to `char *' to remove `const'.
84142
84143 2000-06-28  Jim Meyering  <meyering@lucent.com>
84144
84145         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
84146         included by quotearg.c, for which we perform this test.  From
84147         Bruno Haible.
84148
84149 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
84150
84151         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
84152         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
84153         <utmpx.h> exists, put readutmp.o into LIBOBJS.
84154
84155 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
84156
84157         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
84158
84159 2000-06-26  Paul Eggert  <eggert@twinsun.com>
84160
84161         savedir now sets errno on failure and invokes xmalloc to get memory.
84162         Fix a couple of other minor bugs while we're at it.
84163
84164         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
84165         (NAMLEN): Remove macro.
84166         (malloc, realloc): Remove decls.
84167         (stpcpy): Likewise.
84168         ("xalloc.h"): Include.
84169         (NAME_SIZE_DEFAULT): New macro.
84170         (savedir): Use xmalloc / xrealloc to allocate memory.
84171         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
84172         Skip "" directory entries.
84173         Use strlen to calculate directory entry length, since the old method
84174         is rarely used these days and isn't worth supporting.
84175         Don't use a pointer after freeing it.
84176         Check for integer overflow when calculating allocation size.
84177         Use memcpy to copy entries, instead of stpcpy.
84178         Set errno properly when returning NULL.
84179         Check for readdir error.
84180
84181 2000-06-26  Jim Meyering  <meyering@lucent.com>
84182
84183         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
84184
84185 2000-06-25  Jim Meyering  <meyering@lucent.com>
84186
84187         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
84188         Linux header bug when _XOPEN_SOURCE is defined to 500.
84189
84190 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
84191
84192         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
84193         deficiency.
84194
84195 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
84196
84197         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
84198         Include xalloc.h.
84199         Don't include <stdlib.h>.  Don't declare malloc, realloc.
84200
84201 2000-06-24  Jim Meyering  <meyering@lucent.com>
84202
84203         * m4/strerror_r.m4: Revive this file -- to try out an experimental
84204         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
84205         for which strerror does return char*, but which lacks a conveniently
84206         accessible declaration of the function.  If the compile-test says
84207         strerror_r doesn't work, then resort to a `run'-test that works on
84208         BeOS and segfaults on DEC Unix.
84209
84210 2000-06-24  Jim Meyering  <meyering@lucent.com>
84211
84212         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
84213
84214 2000-06-23  Paul Eggert  <eggert@twinsun.com>
84215
84216         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
84217         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
84218
84219 2000-06-23  Paul Eggert  <eggert@twinsun.com>
84220
84221         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
84222         (mbrtowc, mbstate_t): Define substitutes if
84223         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
84224         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
84225         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
84226
84227 2000-06-23  Jim Meyering  <meyering@lucent.com>
84228
84229         * m4/afs.m4: Add missing AC_MSG_RESULT.
84230         Reported by Bruno Haible.
84231
84232         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
84233         Suggestion from Bruno Haible.
84234
84235 2000-06-23  Jim Meyering  <meyering@lucent.com>
84236
84237         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
84238
84239 2000-06-21  Jim Meyering  <meyering@lucent.com>
84240
84241         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
84242
84243 2000-06-21  Jim Meyering  <meyering@lucent.com>
84244
84245         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
84246         (noinst_HEADERS): Add getstr.h.
84247
84248         * lib/getline.c (getstr): Move into a separate file.
84249         * lib/getstr.c (getstr): New file, extracted from getline.c, with
84250         the following changes: new parameter, delim2; both delim[12]
84251         parameters have type `int', not `char'.  The latter would lose
84252         with 8-bit delimiters.
84253         * lib/getstr.h: New file.
84254
84255 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
84256
84257         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
84258         than 1024, return a memory chunk of least possible size, instead
84259         of size PATH_MAX + 2. In the loop, increment the size proportionally.
84260         Use free/xmalloc instead of xrealloc to avoid copying for very long
84261         paths.
84262
84263 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
84264
84265         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
84266         the empty string.
84267
84268 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
84269
84270         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
84271         address, not strdup.  Include <stdlib.h> and don't declare free().
84272
84273 2000-06-19  Jim Meyering  <meyering@lucent.com>
84274
84275         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
84276
84277 2000-06-18  Jim Meyering  <meyering@lucent.com>
84278
84279         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
84280
84281         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
84282         `checking whether...' message to be consistent with that of the
84283         lstat test.
84284
84285 2000-06-18  Jim Meyering  <meyering@lucent.com>
84286
84287         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
84288         Besides, these days every porting target provides a mkdir function.
84289
84290         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
84291         needed. (this snippet comes from src/system.h).
84292
84293 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
84294
84295         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
84296
84297 2000-06-15  Paul Eggert  <eggert@twinsun.com>
84298
84299         * lib/human.c (adjust_value): New function.
84300         (human_readable_inexact): Apply rounding style even when
84301         printing approximate values.
84302
84303 2000-06-14  Paul Eggert  <eggert@twinsun.com>
84304
84305         * lib/human.c (human_readable_inexact): Allow an input block
84306         size that is not a multiple of the output block size, and vice versa.
84307         Reported by Piergiorgio Sartor.
84308
84309 2000-06-14  Paul Eggert  <eggert@twinsun.com>
84310
84311         * lib/getdate.y (get_date): Apply relative times after time
84312         zone indicator, not before.  Reported by Todd A. Jacobs.
84313
84314 2000-06-13  Jim Meyering  <meyering@lucent.com>
84315
84316         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
84317
84318         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
84319
84320 2000-06-12  Paul Eggert  <eggert@twinsun.com>
84321
84322         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
84323
84324 2000-06-12  Jim Meyering  <meyering@lucent.com>
84325
84326         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
84327         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
84328         optional argument.
84329         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
84330         the optional argument, `lib'.
84331
84332 2000-06-08  Jim Meyering  <meyering@lucent.com>
84333
84334         * m4/largefile.m4: Remove file (now that it's part of autoconf).
84335
84336 2000-06-04  Paul Eggert  <eggert@twinsun.com>
84337
84338         Rewrite largefile configuration so that we don't need to run
84339         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
84340         AC_CANONICAL_HOST in configure.in -- jmm]
84341
84342         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
84343         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
84344         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
84345         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
84346         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
84347         All uses changed.
84348         Instead of inspecting the output of getconf, try to compile the
84349         test program without and with the macro definition.
84350         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
84351         for getconf.  Instead, check for the needed flags by compiling
84352         test programs.
84353
84354 2000-06-04  Paul Eggert  <eggert@twinsun.com>
84355
84356         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
84357
84358 2000-06-04  Jim Meyering  <meyering@lucent.com>
84359
84360         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
84361         SunOS 4.1.4 for which gid_t is an unsigned type.
84362
84363 2000-06-03  Jim Meyering  <meyering@lucent.com>
84364
84365         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
84366         now that autoconf requires that.
84367
84368         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
84369         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
84370         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
84371
84372 2000-06-03  Jim Meyering  <meyering@lucent.com>
84373
84374         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
84375
84376 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
84377
84378         * m4/glibc21.m4: New file.
84379         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
84380
84381 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
84382
84383         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
84384         newer, don't install charset.alias.
84385         * lib/config.charset: Change the Linux/glibc rules so they become empty
84386         on glibc-2.1 or newer.
84387
84388 2000-06-02  Jim Meyering  <meyering@lucent.com>
84389
84390         * lib/mountlist.c: Back out last change.  Instead, do this...
84391         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
84392         me_dummy member using the same `ignore'-testing code.
84393         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
84394         fs_type strings.
84395         From Mark D. Roth.
84396
84397 2000-05-29  Jim Meyering  <meyering@lucent.com>
84398
84399         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
84400         mounts with the `ignore' attribute.  Based on a patch from
84401         Mark D. Roth.
84402
84403 2000-05-28  Jim Meyering  <meyering@lucent.com>
84404
84405         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
84406         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
84407         * m4/stat.m4: Likewise.
84408         * m4/lstat.m4: Likewise.
84409         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
84410
84411         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
84412         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
84413
84414 2000-05-26  Jim Meyering  <meyering@lucent.com>
84415
84416         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
84417
84418 2000-05-24  Jim Meyering  <meyering@lucent.com>
84419
84420         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
84421         autoconf requires that.
84422         * m4/lib-check.m4: Likewise.
84423         * m4/jm-macros.m4: Likewise.
84424         * m4/strftime.m4: Likewise.
84425
84426         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
84427         AC_CHECK_DECLS, now that autoconf requires that.
84428
84429 2000-05-22  Jim Meyering  <meyering@lucent.com>
84430
84431         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
84432         * m4/lstat.m4: Likewise.
84433
84434 2000-05-22  Jim Meyering  <meyering@lucent.com>
84435
84436         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
84437
84438 2000-05-20  Jim Meyering  <meyering@lucent.com>
84439
84440         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
84441         (jm_PREREQ): Use it.
84442
84443 2000-05-18  Jim Meyering  <meyering@lucent.com>
84444
84445         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
84446         back, too, since it may have been modified by allocate_entry.
84447         (hash_delete): Rewrite to use neither the assignment operator
84448         nor the comma operator in an if-expression.
84449
84450 2000-05-15  Paul Eggert  <eggert@twinsun.com>
84451
84452         * lib/closeout.c:
84453         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
84454         Remove; no longer needed.
84455         "quotearg.h": Add include.
84456         (file_name): Do not bother to explicitly initialize to NULL; it's less
84457         efficient on some hosts.
84458         (close_stdout_status): Remove test as to whether stdout was already
84459         closed; it breaks for the case "echo x | sort >&-".
84460         Quote file name colons.
84461         Do not assume that _("write error") lacks format strings.
84462
84463 2000-05-15  Jim Meyering  <meyering@lucent.com>
84464
84465         * lib/version-etc.c (version_etc_copyright): Update the copyright
84466         string used in all --version output.
84467
84468 2000-05-14  Jim Meyering  <meyering@lucent.com>
84469
84470         * lib/closeout.c (close_stdout_set_file_name): New function.
84471         (close_stdout_status): Use new file-scoped global.
84472         Return right away if fstat says the stdout file descriptor is invalid.
84473         * lib/closeout.h (close_stdout_set_file_name): Declare.
84474
84475 2000-05-10  Jim Meyering  <meyering@lucent.com>
84476
84477         * lib/closeout.c [default_exit_status]: New file-scoped variable.
84478         (close_stdout_set_status): New function.
84479         * lib/closeout.h (close_stdout_set_status): Declare.
84480
84481 2000-05-09  Jim Meyering  <meyering@lucent.com>
84482
84483         * m4/gettext.m4: Rename this...
84484         * m4/libintl.m4: ...to this.
84485
84486 2000-05-08  Jim Meyering  <meyering@lucent.com>
84487
84488         * lib/long-options.c: Don't include closeout.h.
84489         (parse_long_options): Don't call close_stdout for --version.
84490
84491 2000-05-06  Paul Eggert  <eggert@twinsun.com>
84492
84493         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
84494         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
84495         2.1.3 bug.  This avoids a clash when files like regex.c define
84496         _GNU_SOURCE.
84497
84498 2000-05-06  Jim Meyering  <meyering@lucent.com>
84499
84500         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
84501         (AC_REPLACE_FUNCS): Add strnlen.
84502
84503         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
84504         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
84505
84506         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
84507         AC_SEARCH_LIBS call for nanosleep.
84508         (LIB_NANOSLEEP): Set and AC_SUBST.
84509
84510 2000-05-06  Jim Meyering  <meyering@lucent.com>
84511
84512         * lib/strnlen.c: Undefine __strnlen and strnlen.
84513         [!weak_alias]: Define __strnlen to strnlen.
84514
84515         * lib/atexit.c: New file, from libiberty.
84516
84517 2000-05-06  Jim Meyering  <meyering@lucent.com>
84518
84519         * lib/closeout.c (close_stdout_status): Also check for errors on the
84520         stderr stream.
84521
84522 2000-05-05  Jim Meyering  <meyering@lucent.com>
84523
84524         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
84525         AC_SEARCH_LIBS call for clock_gettime.
84526         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
84527
84528         * m4/search-libs.m4: Update from autoconf.
84529
84530         su doesn't work on Solaris 2.6.
84531         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
84532         <shadow.h>.  Reported by Dragos Harabor.
84533
84534 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
84535
84536         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
84537         memcpy instead of xmalloc, xrealloc, path_concat.
84538         (locale_charset): Treat empty environment variables as absent.
84539         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
84540
84541 2000-05-04  Jim Meyering  <meyering@lucent.com>
84542
84543         * lib/getopt.c: Update from glibc.
84544         * lib/obstack.c: Likewise.
84545         * lib/obstack.h: Likewise.
84546         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
84547         file
84548
84549         * lib/regex.h: Likewise.
84550         * lib/strndup.c: Likewise.
84551         * lib/strnlen.c: New file, from glibc.
84552
84553 2000-05-03  Jim Meyering  <meyering@lucent.com>
84554
84555         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
84556
84557 2000-05-02  Paul Eggert  <eggert@twinsun.com>
84558
84559         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
84560         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
84561         compile-time test, rather than inspecting host and OS, to
84562         decide whether to define _LARGEFILE_SOURCE.
84563
84564 2000-05-01  Jim Meyering  <meyering@lucent.com>
84565
84566         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
84567
84568         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
84569         Based on a patch from Bruno Haible.
84570
84571 2000-05-01  Jim Meyering  <meyering@lucent.com>
84572
84573         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
84574
84575 2000-04-29  Jim Meyering  <meyering@lucent.com>
84576
84577         * lib/path-concat.c: Declare strdup only if it's not defined.
84578         * lib/canon-host.c: Likewise.
84579
84580 2000-04-28  Jim Meyering  <meyering@lucent.com>
84581
84582         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
84583         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
84584         is included first, then limits.h is included by locale.h by libintl.h.
84585         From John David Anglin.
84586
84587 2000-04-25  Jim Meyering  <meyering@lucent.com>
84588
84589         * lib/makepath.c (S_IRWXUGO): Define.
84590         (make_path): Always perform explicit chmod if MODE specifies any
84591         of the `special' permission bits.  Prompted by a bug report against
84592         install from Mate Wierdl and Joost van Baal.
84593
84594 2000-04-18  Jim Meyering  <meyering@lucent.com>
84595
84596         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
84597         (jm_PREREQ): Use it.
84598
84599 2000-04-18  Jim Meyering  <meyering@lucent.com>
84600
84601         * lib/README: New file.
84602
84603         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
84604         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
84605
84606 2000-04-17  Jim Meyering  <meyering@lucent.com>
84607
84608         Get it right :-)
84609         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
84610         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
84611         Suggestion from Akim Demaille.
84612
84613 2000-04-17  Jim Meyering  <meyering@lucent.com>
84614
84615         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
84616         the definition of it to rpl_strftime also defined-away the system's
84617         declaration.
84618
84619 2000-04-15  Jim Meyering  <meyering@lucent.com>
84620
84621         Use `C' to denote so-called `contiguous' files, the same way
84622         that tar does.
84623         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
84624         (ftypelet): Use S_ISCTG.
84625         From Michael Deutschmann.
84626
84627 2000-04-14  Jim Meyering  <meyering@lucent.com>
84628
84629         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
84630         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
84631         clobbered.
84632
84633 2000-04-14  Jim Meyering  <meyering@lucent.com>
84634
84635         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
84636
84637 2000-04-13  Jim Meyering  <meyering@lucent.com>
84638
84639         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
84640         AH_VERBATIM to insert required #ifndef into config.h.in.
84641         Suggestion from Akim Demaille.
84642
84643 2000-04-12  Jim Meyering  <meyering@lucent.com>
84644
84645         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
84646         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
84647         Christian Krackowizer.
84648
84649         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
84650         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
84651         (AC_SYS_LARGEFILE): Require.
84652         (AM_C_PROTOTYPES): Require.
84653
84654 2000-04-08  Jim Meyering  <meyering@lucent.com>
84655
84656         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
84657         names don't conflict.  Reported by Eli Zaretskii.
84658
84659 2000-04-07  Jim Meyering  <meyering@lucent.com>
84660
84661         * lib/putenv.c: Move inclusion of errno.h so it follows that of
84662         sys/types.h, to work around system header problems on AIX 3.2.5.
84663         From Bruno Haible.
84664
84665 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
84666
84667         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
84668         bug.  Deal with the different error behavior of Irix iconv.
84669
84670 2000-04-05  Paul Eggert  <eggert@twinsun.com>
84671
84672         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
84673         IRIX if the installer said otherwise.
84674
84675 2000-04-05  Jim Meyering  <meyering@lucent.com>
84676
84677         Portability tweaks required for ultrix4.3.
84678         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
84679         (jm_CHECK_DECLS): Add getutent to the list of functions.
84680         (_jm_DECL_HEADERS): Add utmpx.h.
84681         From John David Anglin.
84682
84683         * m4/strftime.m4: Back out the 2000-04-02 change.
84684         Instead of that change, simply undefine putenv in the test program.
84685
84686 2000-04-05  Jim Meyering  <meyering@lucent.com>
84687
84688         Portability tweaks required for ultrix4.3.
84689         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
84690         getutent.
84691         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
84692         * lib/canon-host.c: Declare strdup.
84693         * lib/path-concat.c: Likewise.
84694         From John David Anglin.
84695
84696 2000-04-04  Jim Meyering  <meyering@lucent.com>
84697
84698         Be more DOS 8.3-friendly.
84699         * lib/ref-add.sin: Renamed from ref-add.sed.in.
84700         * lib/ref-del.sin: Renamed from ref-del.sed.in.
84701         * lib/Makefile.am: Reflect renaming.
84702         Reported by Eli Zaretskii.
84703
84704         Use a temporary file name that won't clash with `charset.alias'
84705         in the DOS 8.3 name space.
84706         * lib/Makefile.am (charset_tmp): Define.
84707         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
84708         (uninstall-local): Likewise.
84709         Reported by Eli Zaretskii.
84710
84711 2000-04-03  Jim Meyering  <meyering@lucent.com>
84712
84713         * m4/gettext.m4: Fix typo in comment.
84714
84715         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
84716         textutils/configure.in).  Suggestion from Paul Eggert.
84717         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
84718
84719 2000-04-02  Paul Eggert  <eggert@twinsun.com>
84720
84721         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
84722         variable in the shell rather than using putenv, which isn't
84723         portable.  This avoids the configure-time inter-test dependency
84724         on the potentially-renamed putenv function.
84725
84726 2000-03-30  Paul Eggert  <eggert@twinsun.com>
84727
84728         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
84729         before checking struct stat.st_blksize, so that
84730         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
84731
84732 2000-03-29  Paul Eggert  <eggert@twinsun.com>
84733
84734         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
84735         since strftime.c uses HAVE_STRFTIME to decide whether to use
84736         the underlying strftime.
84737
84738 2000-03-29  Paul Eggert  <eggert@twinsun.com>
84739
84740         * lib/time/strftime.c (my_strftime): Make sure we call the system
84741         strftime, not ourselves, when invoking the underlying strftime.
84742
84743 2000-03-24  Jim Meyering  <meyering@lucent.com>
84744
84745         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
84746         (charset_alias): Define.
84747         (install-exec-local): Factor out common code.
84748         (uninstall-local): Split lines longer than 80.
84749         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
84750         (SUFFIXES): Define.
84751         (.sed.in.sed): New rule.  Don't redirect directly to $@.
84752         (CLEANFILES): Add ref-add.sed and ref-del.sed.
84753
84754 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
84755
84756         * lib/config.charset: Output a line containing "Packages using this
84757         file".
84758         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
84759         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
84760         ref-del.sed): New rules.
84761
84762 2000-03-17  Jim Meyering  <meyering@lucent.com>
84763
84764         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
84765         Otherwise, include <strings.h>
84766
84767 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
84768
84769         * lib/unicodeio.c (utf8_wctomb): New function.
84770         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
84771         format instead of in UCS-4 with platform dependent endianness.
84772
84773 2000-03-10  Jim Meyering  <meyering@lucent.com>
84774
84775         * m4/lib-check.m4: Look for getspnam in -lgen, too.
84776         From Marco Franzen.
84777
84778 2000-03-07  Paul Eggert  <eggert@twinsun.com>
84779
84780         * lib/savedir.c (savedir): Work even if directory size is
84781         negative; this can happen with some screwy NFS configurations.
84782
84783 2000-03-06  Jim Meyering  <meyering@lucent.com>
84784
84785         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
84786         if it's NULL (because we ran out of memory).  From Bruno Haible.
84787
84788 2000-03-05  Jim Meyering  <meyering@lucent.com>
84789
84790         * lib/localcharset.c ("path-concat.h"): Include.
84791         (get_charset_aliases): Use path_concat instead of ANSI string
84792         concatenation.
84793
84794         * lib/unicodeio.h (PARAMS): Define.
84795         Use it to guard prototype.
84796
84797 2000-03-04  Jim Meyering  <meyering@lucent.com>
84798
84799         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
84800         for lib/localcharset.c.
84801
84802 2000-03-04  Jim Meyering  <meyering@lucent.com>
84803
84804         * lib/Makefile.am (install-exec-local): Create $(libdir) before
84805         installing into it.
84806         (uninstall-local): Uncomment this rule so `make distcheck' works
84807         once again.
84808
84809         * lib/unicodeio.c (<errno.h>): Include it.
84810         (errno): Declare if not defined.
84811
84812         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
84813
84814         * lib/config.charset: New version, incorporating remarks from a linux
84815         i18n mailing list.  From Bruno Haible.
84816
84817 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
84818
84819         * m4/codeset.m4: New file.
84820         * m4/iconv.m4: New file.
84821         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
84822
84823 2000-03-03  Jim Meyering  <meyering@lucent.com>
84824
84825         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
84826
84827 2000-03-02  Jim Meyering  <meyering@lucent.com>
84828
84829         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
84830         the messages come out on separate lines.
84831
84832         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
84833         rather than jm_CHECK_DECLARATIONS.
84834         * m4/decl.m4: Remove now-unused file.
84835
84836         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
84837         geteuid.
84838
84839 2000-03-02  Jim Meyering  <meyering@lucent.com>
84840
84841         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
84842
84843 2000-03-01  Jim Meyering  <meyering@lucent.com>
84844
84845         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
84846         * lib/unicodeio.c: Likewise.
84847
84848 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
84849
84850         * lib/config.charset: New file.
84851         * lib/localcharset.c: New file.
84852         * lib/unicodeio.h, lib/unicodeio.c: New files.
84853         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
84854         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
84855         (noinst_HEADERS): Add unicodeio.h.
84856         (all-local, install-exec-local, charset.alias): New targets.
84857
84858 2000-02-28  Paul Eggert  <eggert@twinsun.com>
84859
84860         * lib/quotearg.c (ALERT_CHAR): New macro.
84861         (quotearg_buffer_restyled): Use it.
84862
84863 2000-02-27  Jim Meyering  <meyering@lucent.com>
84864
84865         * m4/check-decl.m4: Add getenv to the list.
84866
84867 2000-02-27  Jim Meyering  <meyering@lucent.com>
84868
84869         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
84870         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
84871
84872         * lib/backupfile.c: Guard inclusion of stdlib.h with
84873         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
84874         Declare malloc if needed.
84875
84876         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
84877         `#ifndef HAVE_DECL..'
84878         now that autoconf always defines the HAVE_DECL_ symbols.
84879         * lib/human.c: Likewise.
84880         * lib/same.c: Likewise.
84881         * lib/strtoumax.c: Likewise.
84882
84883         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
84884         declaration check was not run.
84885         * lib/hash.c: Likewise.
84886         * lib/human.c: Likewise.
84887         * lib/same.c: Likewise.
84888         * lib/strtoumax.c: Likewise.
84889
84890         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
84891         `.', then first look up the entire `.'-containing string as a login
84892         name.
84893
84894 2000-02-23  Jim Meyering  <meyering@lucent.com>
84895
84896         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
84897         in place of my hack.
84898
84899 2000-02-18  Paul Eggert  <eggert@twinsun.com>
84900
84901         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
84902         (textint): New typedef.
84903         (parser_control): Member year changed from int to textint.
84904         All uses changed.
84905         (YYSTYPE): Removed; replaced by %union with int and textint members.
84906         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
84907         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
84908         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
84909         (tSNUMBER, tUNUMBER): Now of type <textintval>.
84910         (date, number, to_year): Use width of number in digits, not its value,
84911         to determine whether it's a 2-digit year, or a 2-digit time.
84912         (yylex): Store number of digits of numeric tokens.
84913         Reported by John Kendall.
84914
84915         (parser_control): Changed from struct parser_control to typedef (for
84916         consistency).  All uses changed.
84917
84918         (tID): Removed; not used.
84919         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
84920
84921 2000-02-14  Paul Eggert  <eggert@twinsun.com>
84922
84923         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
84924         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
84925
84926 2000-02-12  Jim Meyering  <meyering@lucent.com>
84927
84928         * lib/userspec.c (ISDIGIT): Define it.
84929         (isdigit): Remove definition.
84930         (is_number): Use ISDIGIT, not isdigit.
84931         <libintl.h>: Include.
84932         (_ and N_): Define.
84933         (parse_user_spec): Mark translatable strings.
84934
84935 2000-02-10  Jim Meyering  <meyering@lucent.com>
84936
84937         With these changes, nanosleep.[ch] are finally enough like the other
84938         lib/* replacement files to compile on a few more losing systems.
84939
84940         * lib/nanosleep.h: Don't include config.h.
84941         Remove prototype from declaration of nanosleep.
84942         (PARAMS): Remove now-unneeded definition.
84943         * lib/nanosleep.c: #undef nanosleep.
84944         (rpl_nanosleep): Rename from nanosleep.
84945
84946 2000-02-10  Jim Meyering  <meyering@lucent.com>
84947
84948         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
84949         gnu_nanosleep to rpl_nanosleep.
84950
84951 2000-02-09  Jim Meyering  <meyering@lucent.com>
84952
84953         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
84954         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
84955
84956 2000-02-08  Akim Demaille  <akim@epita.fr>
84957
84958         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
84959         `[' and `]' and remove uses of `changequote'.
84960         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
84961         (AC_SYS_LARGEFILE): Likewise.
84962         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
84963         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
84964         of changequote.
84965         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
84966         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
84967         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
84968         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
84969
84970 2000-02-05  Jim Meyering  <meyering@lucent.com>
84971
84972         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
84973         Remove explicit use of AC_HEADER_TIME.  It is required by
84974         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
84975         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
84976         in autoconf whereby the expansion of the latter ended up preceding
84977         the expansion of its prerequisite, AC_HEADER_TIME.
84978         Reported by Volker Borchert.
84979
84980 2000-02-03  Jim Meyering  <meyering@lucent.com>
84981
84982         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
84983
84984 2000-02-03  Jim Meyering  <meyering@lucent.com>
84985
84986         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
84987         rather than with `#if HAVE_UTMPNAME'.
84988
84989 2000-02-02  Jim Meyering  <meyering@lucent.com>
84990
84991         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
84992         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
84993         Reported by Eli Zaretskii.
84994
84995 2000-02-01  Jim Meyering  <meyering@lucent.com>
84996
84997         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
84998
84999 2000-01-31  Jim Meyering  <meyering@lucent.com>
85000
85001         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
85002         functions.  Add the time.h and sys/time.h headers along with the
85003         AC_REQUIRE'ment of AC_HEADER_TIME.
85004
85005 2000-01-31  Jim Meyering  <meyering@lucent.com>
85006
85007         * lib/nanosleep.h (nanosleep): Guard declaration with
85008         `#if ! HAVE_DECL_NANOSLEEP'.
85009         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
85010         the declaration in that vendor's sys/timers.h.
85011         Reported by Christian Krackowizer.
85012
85013         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
85014         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
85015         (ISPRINT): Likewise.
85016         Reported by Tom Tromey.
85017
85018 2000-01-30  Jim Meyering  <meyering@lucent.com>
85019
85020         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
85021
85022         * m4/prereq.m4 (utmp_includes): Define.
85023         Check for ut_user and ut_name members in both struct utmpx
85024         and struct utmp.
85025
85026 2000-01-30  Jim Meyering  <meyering@lucent.com>
85027
85028         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
85029         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
85030         header files where only utmpx.ut_user is declared.
85031
85032         * lib/readutmp.h (UT_USER): Define.
85033
85034 2000-01-29  Jim Meyering  <meyering@lucent.com>
85035
85036         * m4/lib-check.m4: New file containing library-related checks from
85037         fileutils and sh-utils (textutils had none).
85038
85039 2000-01-28  Jim Meyering  <meyering@lucent.com>
85040
85041         * m4/perl.m4: Change format of warning message to look more like that
85042         from the missing script.  Suggestion from François Pinard.
85043
85044 2000-01-25  Jim Meyering  <meyering@lucent.com>
85045
85046         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
85047         well as time.h in the compile check.
85048         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
85049         Fix typo in cross-compiling case: s/yes/no/.
85050
85051 2000-01-23  Jim Meyering  <meyering@lucent.com>
85052
85053         * m4/jm-macros.m4: Move df-related tests here from
85054         fileutils/configure.in
85055
85056         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
85057         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
85058
85059         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
85060         s/space/ac_fsusage_space/.
85061         (jm_FILE_SYSTEM_USAGE): Take two parameters.
85062
85063         * m4/ftruncate.m4: New file (derived from part of
85064         fileutils/configure.in).
85065         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
85066         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
85067
85068         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
85069         AC_SUBST these here, rather than just in sh-util/configure.in, so
85070         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
85071         all the same.
85072         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
85073         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
85074         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
85075         (AC_SUBST(POW_LIBM)): Likewise.
85076         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
85077
85078 2000-01-23  Jim Meyering  <meyering@lucent.com>
85079
85080         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
85081         obstack.c.
85082
85083 2000-01-22  Jim Meyering  <meyering@lucent.com>
85084
85085         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
85086
85087         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
85088
85089         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
85090         configure.in
85091         (AC_CHECK_HEADERS): Likewise for sh-utils.
85092         (AC_CHECK_HEADERS): Likewise for textutils.
85093         Merge the three lists of headers.
85094
85095         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
85096         from fileutils' configure.in.
85097
85098         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
85099         code. Moved tests into their own function (_jm_DECL_HEADERS) in
85100         check-decl.m4.
85101
85102         * m4/check-decl.m4: Use #if rather than #ifdef.
85103         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
85104         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
85105         (_jm_DECL_HEADERS): Define new function.
85106         (jm_CHECK_DECLARATIONS): Require it.
85107
85108 2000-01-22  Jim Meyering  <meyering@lucent.com>
85109
85110         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
85111         [! HAVE_DECL_STRTOULL]: Declare strtoull.
85112         Required for some AIX systems.  Reported by Christian Krackowizer.
85113         [TESTING] (main): New function.
85114
85115         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
85116         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
85117         letters.
85118
85119         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
85120         iswprint.
85121
85122         * lib/strverscmp.c (ISDIGIT): Define.
85123         (strverscmp): Use ISDIGIT, not isdigit.
85124
85125 2000-01-19  Jim Meyering  <meyering@lucent.com>
85126
85127         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
85128         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
85129         defines `struct timespec' in <sys/time.h>
85130
85131         * m4/c-bs-a.m4: Remove uses of changequote altogether.
85132         Thanks to Akim for explaining.
85133
85134 2000-01-17  Paul Eggert  <eggert@twinsun.com>
85135
85136         * lib/nanosleep.c (nanosleep):
85137         Don't use SA_INTERRUPT to decide whether to call sigaction, as
85138         POSIX.1 doesn't require SA_INTERRUPT and some systems
85139         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
85140         it's been part of POSIX.1 since day 1 (in 1988).
85141
85142 2000-01-17  Jim Meyering  <meyering@lucent.com>
85143
85144         * lib/interlock: Remove unused file.  Reported by François Pinard.
85145
85146 2000-01-16  Paul Eggert  <eggert@twinsun.com>
85147
85148         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
85149         alert, backslash, formfeed, and vertical tab unnecessarily in
85150         shell quoting style.
85151
85152 2000-01-16  Jim Meyering  <meyering@lucent.com>
85153
85154         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
85155         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
85156         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
85157         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
85158
85159 2000-01-16  Jim Meyering  <meyering@lucent.com>
85160
85161         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
85162         because the latter didn't work.
85163
85164 2000-01-15  Jim Meyering  <meyering@lucent.com>
85165
85166         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
85167         (AC_REPLACE_FUNCS): Add memcpy and memset.
85168         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
85169         Add strpbrk.
85170         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
85171
85172 2000-01-12  Jim Meyering  <meyering@lucent.com>
85173
85174         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
85175         (jm_PREREQ): Use it.
85176         (jm_PREREQ_READUTMP): New macro.
85177         (jm_PREREQ): Use it.
85178
85179 2000-01-11  Paul Eggert  <eggert@twinsun.com>
85180
85181         Quote multibyte characters correctly.
85182         * m4/c-bs-a.m4: New file.
85183         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
85184         (jm_PREREQ): Use it.
85185
85186 2000-01-11  Paul Eggert  <eggert@twinsun.com>
85187
85188         * m4/uintmax_t.m4: Port to autoconf 2.13.
85189
85190 2000-01-08  Jim Meyering  <meyering@ascend.com>
85191
85192         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
85193         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
85194
85195 2000-01-04  Jim Meyering  <meyering@ascend.com>
85196
85197         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
85198         jm_STRUCT_DIRENT_D_TYPE.
85199         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
85200         jm_STRUCT_DIRENT_D_INO.
85201         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
85202         jm_STRUCT_UTIMBUF.
85203         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
85204         renamings.
85205         * m4/utime.m4: Likewise.
85206
85207         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
85208         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
85209
85210 2000-01-03  Paul Eggert  <eggert@twinsun.com>
85211
85212         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
85213         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
85214
85215 2000-01-02  Jim Meyering  <meyering@ascend.com>
85216
85217         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
85218         remember if this is necessary.
85219
85220 1999-12-26  Jim Meyering  <meyering@ascend.com>
85221
85222         * m4/jm-macros.m4: Use it here.
85223         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
85224
85225 1999-12-23  Jim Meyering  <meyering@ascend.com>
85226
85227         * m4/jm-macros.m4: Check for clock_gettime (moved from
85228         fileutils/configure.in)
85229         Check for gettimeofday.
85230
85231 1999-12-20  Jim Meyering  <meyering@ascend.com>
85232
85233         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
85234         autoconf-2.14a-1999-12-20.
85235
85236 1999-12-19  Jim Meyering  <meyering@ascend.com>
85237
85238         * m4/lstat-slash.m4: New file.
85239         * m4/jm-macros.m4: Use the new macro:
85240         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
85241
85242 1999-12-07  Jim Meyering  <meyering@ascend.com>
85243
85244         * m4/perl.m4: Require that File::Compare be available, too.
85245         Too many systems seem to lack it.
85246
85247         * m4/strftime.m4: Add checks for most of the cpp macros tested in
85248         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
85249
85250 1999-11-18  Paul Eggert  <eggert@twinsun.com>
85251
85252         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
85253         problem with the QNX 4.25 shell, which doesn't propagate exit
85254         status of failed commands inside shell assignments.
85255
85256 1999-11-17  Jim Meyering  <meyering@ascend.com>
85257
85258         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
85259
85260 1999-11-07  Jim Meyering  <meyering@ascend.com>
85261
85262         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
85263
85264 1999-11-06  Jim Meyering  <meyering@ascend.com>
85265
85266         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
85267         * m4/jm-macros.m4 (jm_MACROS): Use it here.
85268
85269 1999-11-05  Jim Meyering  <meyering@ascend.com>
85270
85271         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
85272         configure.in of textutils, fileutils, and sh-utils into this one
85273         (shared between those packages) file.
85274         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
85275         AC_STRUCT_ST_BLKSIZE.
85276
85277 1999-11-03  Jim Meyering  <meyering@ascend.com>
85278
85279         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
85280         of AC_CHECK_TYPE checks includes unistd.h.
85281         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
85282         Suggestion from Akim Demaille.
85283
85284 1999-10-30  Jim Meyering  <meyering@ascend.com>
85285
85286         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
85287         m4-quoted string.
85288         * m4/ls-mntd-fs.m4: Likewise.
85289         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
85290         * m4/jm-winsz1.m4: Likewise.
85291
85292         * m4/const.m4: Remove file, since the fix made it into the experimental
85293         version of autoconf.
85294         * m4/mktime.m4: Likewise.
85295
85296         * m4/check-type.m4: Remove file, now that the latest version of
85297         AC_CHECK_TYPE takes a third arg to specify additional #includes.
85298
85299         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
85300         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
85301         AC_CHECK_TYPE.
85302
85303 1999-10-04  Jim Meyering  <meyering@ascend.com>
85304
85305         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
85306
85307 1999-09-22  Paul Eggert  <eggert@twinsun.com>
85308
85309         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
85310         2.95.1 bug with HP-UX 10.20.
85311
85312 1999-09-17  Jim Meyering  <meyering@ascend.com>
85313
85314         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
85315         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
85316         due to missing strdup (against sh-utils-2.0).
85317
85318 1999-08-29  Jim Meyering  <meyering@ascend.com>
85319
85320         * m4/jm-macros.m4: Require jm_BISON.
85321         * m4/bison.m4: New file.
85322
85323 1999-08-17  Paul Eggert  <eggert@twinsun.com>
85324
85325         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
85326         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
85327
85328 1999-08-05  Jim Meyering  <meyering@ascend.com>
85329
85330         * m4/getline.m4: Rename test file from conftestdata to conftest.data
85331         to avoid conflicts with `conftest' on 8+3 filesystems.
85332         Suggestion from Eli Zaretskii.
85333
85334 1999-08-04  Jim Meyering  <meyering@ascend.com>
85335
85336         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
85337         fileutils and sh-utils (textutils's getline test was inadequate).
85338         (AM_FUNC_GETLINE): Run this test.
85339         (AC_CHECK_FUNCS): Check for getdelim.
85340         Reported by Bob Proulx.
85341
85342 1999-08-02  Jim Meyering  <meyering@ascend.com>
85343
85344         * m4/jm-macros.m4: Add a comment.
85345
85346 1999-08-01  Paul Eggert  <eggert@twinsun.com>
85347
85348         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
85349         <inttypes.h> defines strtoumax as a macro (and not as a
85350         function).
85351
85352 1999-08-01  Paul Eggert  <eggert@twinsun.com>
85353
85354         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
85355         that we can shift, multiply and divide unsigned long long
85356         values; Ultrix cc can't do it.
85357
85358 1999-08-01  Paul Eggert  <eggert@twinsun.com>
85359
85360         * m4/mktime.m4: New file, which is a preview of what should appear
85361         in the next public autoconf release.
85362
85363 1999-08-01  Paul Eggert  <eggert@twinsun.com>
85364
85365         * m4/lfs.m4: Remove this file.
85366         * m4/largefile.m4: New file.  It contains the old contents of
85367         lfs.m4, except that all names with prefix AC_LFS have been
85368         changed to use the prefix AC_SYS_LARGEFILE instead, to be
85369         compatible with future autoconf versions.  Also, some minor m4
85370         quoting problems have been fixed.
85371
85372 1999-08-01  Paul Eggert  <eggert@twinsun.com>
85373
85374         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
85375         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
85376         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
85377         and simplify the shell code.
85378
85379 1999-08-01  Jim Meyering  <meyering@ascend.com>
85380
85381         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
85382         m4.
85383
85384 1999-07-20  Jim Meyering  <meyering@ascend.com>
85385
85386         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
85387
85388 1999-07-15  Jim Meyering  <meyering@ascend.com>
85389
85390         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
85391
85392 1999-05-22  Jim Meyering  <meyering@ascend.com>
85393
85394         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
85395
85396 1999-05-20  Jim Meyering  <meyering@ascend.com>
85397
85398         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
85399         Add a colon after each `then' in case $4 is empty.
85400
85401 1999-05-16  Jim Meyering  <meyering@ascend.com>
85402
85403         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
85404
85405 1999-05-10  Jim Meyering  <meyering@ascend.com>
85406
85407         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
85408
85409         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
85410         AC_FUNC_MKTIME.
85411
85412 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
85413
85414         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
85415
85416 1999-05-04  Paul Eggert  <eggert@twinsun.com>
85417
85418         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
85419         not CPPFLAGS, so that linking works correctly in IRIX.
85420
85421 1999-04-30  Paul Eggert  <eggert@twinsun.com>
85422
85423         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
85424
85425 1999-04-20  Paul Eggert  <eggert@twinsun.com>
85426
85427         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
85428         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
85429         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
85430         jm_AC_TYPE_UNSIGNED_LONG_LONG.
85431         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
85432
85433         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
85434
85435 1999-04-20  Jim Meyering  <meyering@ascend.com>
85436
85437         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
85438         AC_REPLACE xstroull if necessary.  From Paul Eggert.
85439         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
85440
85441 1999-04-18  Jim Meyering  <meyering@ascend.com>
85442
85443         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
85444         * m4/jm-macros.m4: Use it.
85445
85446 1999-04-06  Jim Meyering  <meyering@ascend.com>
85447
85448         * m4/strftime.m4: Remove test for %f.
85449
85450 1999-03-29  Jim Meyering  <meyering@ascend.com>
85451
85452         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
85453         superset of the AC_TYPE_* checks in the textutils, fileutils,
85454         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
85455         AC_TYPE_PID_T.
85456
85457 1999-03-28  Jim Meyering  <meyering@ascend.com>
85458
85459         * m4/jm-macros.m4: Define GNU_PACKAGE here.
85460         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
85461         replaced e.g., in the *.sh files of the sh-utils.
85462
85463 1999-03-20  Jim Meyering  <meyering@ascend.com>
85464
85465         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
85466         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
85467         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
85468
85469 1999-03-19  Jim Meyering  <meyering@ascend.com>
85470
85471         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
85472
85473 1999-03-12  Jim Meyering  <meyering@ascend.com>
85474
85475         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
85476
85477 1999-03-07  Jim Meyering  <meyering@ascend.com>
85478
85479         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
85480         declared.
85481
85482 1999-02-17  Jim Meyering  <meyering@ascend.com>
85483
85484         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
85485         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
85486
85487 1999-02-07  Jim Meyering  <meyering@ascend.com>
85488
85489         * m4/group-member.m4: New file -- extracted from sh-utils'
85490         configure.in.
85491
85492         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
85493         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
85494
85495 1999-02-06  Jim Meyering  <meyering@ascend.com>
85496
85497         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
85498         * m4/fnmatch.m4: Likewise.
85499         * m4/getgroups.m4: Likewise.
85500         * m4/lstat.m4: Likewise.
85501         * m4/malloc.m4: Likewise.
85502         * m4/putenv.m4: Likewise.
85503         * m4/realloc.m4: Likewise.
85504         * m4/regex.m4: Likewise.
85505         * m4/stat.m4: Likewise.
85506         * m4/strftime.m4: Likewise.
85507         Suggestion from Alain Magloire.
85508
85509         * m4/chown.m4: Use `.$ac_objext', not `.o'.
85510         * m4/fnmatch.m4: Likewise.
85511         * m4/getgroups.m4: Likewise.
85512         * m4/getline.m4: Likewise.
85513         * m4/lstat.m4: Likewise.
85514         * m4/malloc.m4: Likewise.
85515         * m4/memcmp.m4: Likewise.
85516         * m4/putenv.m4: Likewise.
85517         * m4/realloc.m4: Likewise.
85518         * m4/regex.m4: Likewise.
85519         * m4/stat.m4: Likewise.
85520         * m4/strftime.m4: Likewise.
85521         Suggestion from Alain Magloire.
85522
85523         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
85524         an argument.
85525
85526         * m4/regex.m4: Add a run-time Test for proper operation of
85527         re_compile_pattern.
85528
85529 1999-01-31  Jim Meyering  <meyering@ascend.com>
85530
85531         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
85532
85533 1999-01-30  Jim Meyering  <meyering@ascend.com>
85534
85535         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
85536
85537         * m4/jm-mktime.m4: Make this a wrapper around the official
85538         AM_FUNC_MKTIME rather than my private copy, now that the official one
85539         is up to date.
85540         * m4/mktime.m4: Remove file.
85541
85542         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
85543         * m4/uptime.m4: Likewise.
85544         * m4/uintmax_t.m4: Likewise.
85545
85546 1999-01-28  Jim Meyering  <meyering@ascend.com>
85547
85548         * m4/jm-macros.m4: Use jm_AFS.
85549         * m4/afs.m4: New file (from fileutils' configure.in).
85550
85551         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
85552         * m4/chown.m4: Likewise.
85553         * m4/d-ino.m4: Likewise.
85554         * m4/d-type.m4: Likewise.
85555         * m4/fnmatch.m4: Likewise.
85556         * m4/getgroups.m4: Likewise.
85557         * m4/gettext.m4: Likewise.
85558         * m4/jm-mktime.m4: Likewise.
85559         * m4/jm-winsz2.m4: Likewise.
85560         * m4/lcmessage.m4: Likewise.
85561         * m4/ls-mntd-fs.m4: Likewise.
85562         * m4/malloc.m4: Likewise.
85563         * m4/memcmp.m4: Likewise.
85564         * m4/putenv.m4: Likewise.
85565         * m4/realloc.m4: Likewise.
85566         * m4/st_mtim.m4: Likewise.
85567         * m4/strftime.m4: Likewise.
85568
85569 1999-01-16  Jim Meyering  <meyering@ascend.com>
85570
85571         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
85572         (ARGMATCH_DIE_DECL): Define.
85573
85574 1999-01-12  Jim Meyering  <meyering@ascend.com>
85575
85576         * m4/Makefile.am.in: Rewrite to avoid using fmt.
85577         Reported by Lars Hecking.
85578
85579 1999-01-10  Jim Meyering  <meyering@ascend.com>
85580
85581         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
85582         gross kludge.
85583         * m4/inttypes_h.m4: Likewise.
85584         * m4/lstat.m4: Likewise.
85585         * m4/malloc.m4: Likewise.
85586         * m4/readdir.m4: Likewise.
85587         * m4/realloc.m4: Likewise.
85588         * m4/st_dm_mode.m4: Likewise.
85589         * m4/stat.m4: Likewise.
85590         * m4/utimbuf.m4: Likewise.
85591         * m4/utimes.m4: Likewise.
85592
85593         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
85594         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
85595         comments in config.h.in are meaningful.
85596
85597         * m4/jm-macros.m4: Require autoconf-2.13 here.
85598
85599         * m4/regex.m4: By default, don't use the included regex.c on systems
85600         with glibc 2.  Suggestion from Uli Drepper.
85601
85602 1999-01-02  Jim Meyering  <meyering@ascend.com>
85603
85604         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
85605
85606 1998-12-18  Jim Meyering  <meyering@ascend.com>
85607
85608         * m4/Makefile.am.in (Makefile.am): Simplify rule.
85609         Based on a suggestion from Lars Hecking.
85610
85611 1998-11-16  Paul Eggert  <eggert@twinsun.com>
85612
85613         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
85614
85615 1998-11-16  Jim Meyering  <meyering@ascend.com>
85616
85617         * m4/lfs.m4: Double-quote the `uname...` expression.
85618
85619 1998-11-14  Jim Meyering  <meyering@ascend.com>
85620
85621         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
85622         * m4/stat.m4: Likewise.
85623
85624 1998-11-03  Jim Meyering  <meyering@ascend.com>
85625
85626         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
85627         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
85628
85629 1998-10-18  Jim Meyering  <meyering@ascend.com>
85630
85631         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
85632
85633 1998-10-17  Jim Meyering  <meyering@ascend.com>
85634
85635         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
85636         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
85637         calls for those previously hard-coded headers.  Instead, take a new
85638         parameter.
85639         (jm_CHECK_DECLARATIONS): Reflect interface change.
85640         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
85641         (jm_CHECK_DECL_LOCALTIME_R): New macro.
85642
85643         * m4/mktime.m4: Test for spring-forward gap before long-running test.
85644
85645 1998-10-14  Jim Meyering  <meyering@ascend.com>
85646
85647         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
85648         instead of "TZ=America/Vancouver".  From Paul Eggert.
85649
85650 1998-10-11  Jim Meyering  <meyering@ascend.com>
85651
85652         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
85653         This adds a test for a recently added compatibility fix for mktime.c.
85654         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
85655
85656 1998-09-27  Jim Meyering  <meyering@ascend.com>
85657
85658         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
85659
85660         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
85661         ../configure.in, including a change from Gordon Matzigkeit to allow
85662         cross-compiling for the Hurd.
85663
85664         * m4/glibc.m4: New file/macro to test for the GNU C Library
85665         versions 1 and 2.  From Gordon Matzigkeit.
85666         Indent.
85667
85668 1998-09-21  Jim Meyering  <meyering@ascend.com>
85669
85670         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
85671
85672 1998-08-18  Paul Eggert  <eggert@twinsun.com>
85673
85674         Port nanosecond-resolution times to UnixWare 2.1.2 and
85675         pedantic Solaris 2.6.
85676
85677         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
85678         AC_STRUCT_ST_MTIM.
85679         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
85680         Generate name of ns member, instead of just 1 or undef.
85681         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
85682
85683 1998-08-15  Jim Meyering  <meyering@ascend.com>
85684
85685         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
85686         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
85687         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
85688         instead of jm_TYPE_SSIZE_T.
85689
85690 1998-08-12  Jim Meyering  <meyering@ascend.com>
85691
85692         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
85693
85694 1998-08-02  Jim Meyering  <meyering@ascend.com>
85695
85696         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
85697         in acconfig.h manually.
85698
85699 1998-07-31  Paul Eggert  <eggert@twinsun.com>
85700
85701         * m4/st_mtim.m4: New file.
85702
85703 1998-07-28  Jim Meyering  <meyering@ascend.com>
85704
85705         * m4/utimes.m4: Undef stat.
85706
85707 1998-07-25  Jim Meyering  <meyering@ascend.com>
85708
85709         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
85710         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
85711
85712 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
85713
85714         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
85715         uid and gid actually remain unchanged.
85716
85717 1998-07-07  Jim Meyering  <meyering@ascend.com>
85718
85719         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
85720
85721 1998-07-04  Jim Meyering  <meyering@ascend.com>
85722
85723         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
85724         to prove that this macro can be used in packages without regex.c.
85725
85726 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
85727
85728         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
85729         is to be used.
85730
85731 1998-07-03  Jim Meyering  <meyering@ascend.com>
85732
85733         * m4/gettext.m4: Add -lintl if it's found to be necessary.
85734
85735         * m4/gettext.m4: New file -- from gettext-0.10.35.
85736         * m4/lcmessage.m4: Likewise.
85737         * m4/progtest.m4: Likewise.
85738
85739         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
85740         * m4/jm-macros.m4: Require the new macro.
85741
85742 1998-06-29  Jim Meyering  <meyering@ascend.com>
85743
85744         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
85745         for the definition of NGROUPS (used in a system header included
85746         by sys/mount.h).
85747
85748 1998-06-28  Jim Meyering  <meyering@ascend.com>
85749
85750         * m4/ls-mntd-fs.m4: New file.
85751         * m4/fstypename.m4: New file.
85752
85753         * m4/jm-macros.m4: Require the new macro.
85754         * m4/jm-glibc-io.m4: New file.
85755
85756 1998-05-19  Jim Meyering  <meyering@ascend.com>
85757
85758         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
85759         * m4/lchown.m4: New file.
85760
85761         * m4/Makefile.am.in: New file.
85762         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
85763
85764 1998-05-14  Jim Meyering  <meyering@ascend.com>
85765
85766         * m4/Makefile.am (EXTRA_DIST): Add them.
85767         * m4/jm-macros.m4: New file.
85768         * m4/utimbuf.m4: New file.
85769
85770 1998-05-12  Jim Meyering  <meyering@ascend.com>
85771
85772         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
85773
85774 1998-05-11  Jim Meyering  <meyering@ascend.com>
85775
85776         * m4/isc-posix.m4: New file.
85777
85778 1998-05-10  Jim Meyering  <meyering@ascend.com>
85779
85780         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
85781
85782 1998-05-09  Jim Meyering  <meyering@ascend.com>
85783
85784         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
85785         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
85786         with automake.
85787
85788         * m4/ssize_t.m4: New file.
85789         * m4/mktime.m4: Remove file -- the new automake has this now.
85790
85791 1998-04-26  Jim Meyering  <meyering@ascend.com>
85792
85793         * m4/assert.m4: New file.
85794         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
85795
85796 1998-04-05  Jim Meyering  <meyering@ascend.com>
85797
85798         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
85799         (jm_PREREQ): Use it here.
85800
85801 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
85802
85803         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
85804         in acconfig.h.
85805
85806 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
85807
85808         * m4/prereq.m4: New file.
85809         * m4/error.m4: New file.
85810         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
85811
85812 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
85813
85814         * m4/getline.m4: Don't set am_cv_func_working_getline before the
85815         cache-check for the same variable -- that defeated the purpose of
85816         the test; the test program was never run.  This was a problem only
85817         on systems with losing getline functions -- HP-UX 10.20 is one.
85818         Reported by Bjorn Helgaas.
85819
85820 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
85821
85822         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
85823
85824 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
85825
85826         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
85827
85828         * m4/const.m4: New file.  Use an initializer in this declaration
85829         typedef int charset[2]; const charset x;
85830         Reported by Bob Glickstein.
85831
85832 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
85833
85834         * m4/chown.m4: Fix reversed types on -1 args to chown.
85835         From Kaveh Ghazi.
85836
85837 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
85838
85839         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
85840         Add lseek and memchr.
85841
85842         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
85843         T.E.Dickey <dickey@clark.net> said that some older preprocessors
85844         have a 20-character limit on names.
85845
85846 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
85847
85848         * m4/inttypes_h.m4: New file.
85849         * m4/uintmax_t.m4: New file.
85850         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
85851
85852
85853         -----
85854
85855         Local Variables:
85856         coding: utf-8
85857         End:
85858
85859         Copyright (C) 1997-2011 Free Software Foundation, Inc.
85860
85861         Copying and distribution of this file, with or without
85862         modification, are permitted provided the copyright notice
85863         and this notice are preserved.